diff --git a/assets/browser-YRefIO1l.js b/assets/browser-DNUtfqGr.js similarity index 99% rename from assets/browser-YRefIO1l.js rename to assets/browser-DNUtfqGr.js index 2f24697..cf8272d 100644 --- a/assets/browser-YRefIO1l.js +++ b/assets/browser-DNUtfqGr.js @@ -1,4 +1,4 @@ -import{aV as bt,aW as Pt}from"./index-XxsA1De3.js";var O={},Rt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},dt={},T={};let it;const Lt=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];T.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};T.getSymbolTotalCodewords=function(t){return Lt[t]};T.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};T.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');it=t};T.isKanjiModeEnabled=function(){return typeof it<"u"};T.toSJIS=function(t){return it(t)};var G={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+i)}}e.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,n){if(e.isValid(o))return o;try{return t(o)}catch{return n}}})(G);function ht(){this.buffer=[],this.length=0}ht.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let i=0;i>>t-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Ut=ht;function K(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}K.prototype.set=function(e,t,i,o){const n=e*this.size+t;this.data[n]=i,o&&(this.reservedBit[n]=!0)};K.prototype.get=function(e,t){return this.data[e*this.size+t]};K.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i};K.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Dt=K,wt={};(function(e){const t=T.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const n=Math.floor(o/7)+2,r=t(o),s=r===145?26:Math.ceil((r-13)/(2*n-2))*2,c=[r-7];for(let u=1;u=0&&n<=7},e.from=function(n){return e.isValid(n)?parseInt(n,10):void 0},e.getPenaltyN1=function(n){const r=n.size;let s=0,c=0,u=0,l=null,a=null;for(let A=0;A=5&&(s+=t.N1+(c-5)),l=g,c=1),g=n.get(w,A),g===a?u++:(u>=5&&(s+=t.N1+(u-5)),a=g,u=1)}c>=5&&(s+=t.N1+(c-5)),u>=5&&(s+=t.N1+(u-5))}return s},e.getPenaltyN2=function(n){const r=n.size;let s=0;for(let c=0;c=10&&(c===1488||c===93)&&s++,u=u<<1&2047|n.get(a,l),a>=10&&(u===1488||u===93)&&s++}return s*t.N3},e.getPenaltyN4=function(n){let r=0;const s=n.data.length;for(let u=0;u=0;){const s=r[0];for(let u=0;u0){const r=new Uint8Array(this.degree);return r.set(o,n),r}return o};var kt=st,Bt={},L={},ut={};ut.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var S={};const At="[0-9]+",zt="[A-Z $%*+\\-./:]+";let H="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";H=H.replace(/u/g,"\\u");const Vt="(?:(?![A-Z0-9 $%*+\\-./:]|"+H+`)(?:.|[\r +import{aV as bt,aW as Pt}from"./index-Mh1_DVck.js";var O={},Rt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},dt={},T={};let it;const Lt=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];T.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};T.getSymbolTotalCodewords=function(t){return Lt[t]};T.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};T.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');it=t};T.isKanjiModeEnabled=function(){return typeof it<"u"};T.toSJIS=function(t){return it(t)};var G={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+i)}}e.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,n){if(e.isValid(o))return o;try{return t(o)}catch{return n}}})(G);function ht(){this.buffer=[],this.length=0}ht.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let i=0;i>>t-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Ut=ht;function K(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}K.prototype.set=function(e,t,i,o){const n=e*this.size+t;this.data[n]=i,o&&(this.reservedBit[n]=!0)};K.prototype.get=function(e,t){return this.data[e*this.size+t]};K.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i};K.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Dt=K,wt={};(function(e){const t=T.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const n=Math.floor(o/7)+2,r=t(o),s=r===145?26:Math.ceil((r-13)/(2*n-2))*2,c=[r-7];for(let u=1;u=0&&n<=7},e.from=function(n){return e.isValid(n)?parseInt(n,10):void 0},e.getPenaltyN1=function(n){const r=n.size;let s=0,c=0,u=0,l=null,a=null;for(let A=0;A=5&&(s+=t.N1+(c-5)),l=g,c=1),g=n.get(w,A),g===a?u++:(u>=5&&(s+=t.N1+(u-5)),a=g,u=1)}c>=5&&(s+=t.N1+(c-5)),u>=5&&(s+=t.N1+(u-5))}return s},e.getPenaltyN2=function(n){const r=n.size;let s=0;for(let c=0;c=10&&(c===1488||c===93)&&s++,u=u<<1&2047|n.get(a,l),a>=10&&(u===1488||u===93)&&s++}return s*t.N3},e.getPenaltyN4=function(n){let r=0;const s=n.data.length;for(let u=0;u=0;){const s=r[0];for(let u=0;u0){const r=new Uint8Array(this.degree);return r.set(o,n),r}return o};var kt=st,Bt={},L={},ut={};ut.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var S={};const At="[0-9]+",zt="[A-Z $%*+\\-./:]+";let H="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";H=H.replace(/u/g,"\\u");const Vt="(?:(?![A-Z0-9 $%*+\\-./:]|"+H+`)(?:.|[\r ]))+`;S.KANJI=new RegExp(H,"g");S.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");S.BYTE=new RegExp(Vt,"g");S.NUMERIC=new RegExp(At,"g");S.ALPHANUMERIC=new RegExp(zt,"g");const Ht=new RegExp("^"+H+"$"),Kt=new RegExp("^"+At+"$"),Jt=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");S.testKanji=function(t){return Ht.test(t)};S.testNumeric=function(t){return Kt.test(t)};S.testAlphanumeric=function(t){return Jt.test(t)};(function(e){const t=ut,i=S;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(r,s){if(!r.ccBits)throw new Error("Invalid mode: "+r);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?r.ccBits[0]:s<27?r.ccBits[1]:r.ccBits[2]},e.getBestModeForData=function(r){return i.testNumeric(r)?e.NUMERIC:i.testAlphanumeric(r)?e.ALPHANUMERIC:i.testKanji(r)?e.KANJI:e.BYTE},e.toString=function(r){if(r&&r.id)return r.id;throw new Error("Invalid mode")},e.isValid=function(r){return r&&r.bit&&r.ccBits};function o(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+n)}}e.from=function(r,s){if(e.isValid(r))return r;try{return o(r)}catch{return s}}})(L);(function(e){const t=T,i=j,o=G,n=L,r=ut,s=7973,c=t.getBCHDigit(s);function u(w,g,E){for(let C=1;C<=40;C++)if(g<=e.getCapacity(C,E,w))return C}function l(w,g){return n.getCharCountIndicator(w,g)+4}function a(w,g){let E=0;return w.forEach(function(C){const N=l(C.mode,g);E+=N+C.getBitsLength()}),E}function A(w,g){for(let E=1;E<=40;E++)if(a(w,E)<=e.getCapacity(E,g,n.MIXED))return E}e.from=function(g,E){return r.isValid(g)?parseInt(g,10):E},e.getCapacity=function(g,E,C){if(!r.isValid(g))throw new Error("Invalid QR Code version");typeof C>"u"&&(C=n.BYTE);const N=t.getSymbolTotalCodewords(g),h=i.getTotalCodewordsCount(g,E),m=(N-h)*8;if(C===n.MIXED)return m;const d=m-l(C,g);switch(C){case n.NUMERIC:return Math.floor(d/10*3);case n.ALPHANUMERIC:return Math.floor(d/11*2);case n.KANJI:return Math.floor(d/13);case n.BYTE:default:return Math.floor(d/8)}},e.getBestVersionForData=function(g,E){let C;const N=o.from(E,o.M);if(Array.isArray(g)){if(g.length>1)return A(g,N);if(g.length===0)return 1;C=g[0]}else C=g;return u(C.mode,C.getLength(),N)},e.getEncodedBits=function(g){if(!r.isValid(g)||g<7)throw new Error("Invalid QR Code version");let E=g<<12;for(;t.getBCHDigit(E)-c>=0;)E^=s<=0;)n^=Nt<0&&(o=this.data.substr(i),n=parseInt(o,10),t.put(n,r*3+1))};var _t=U;const Ot=L,q=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function D(e){this.mode=Ot.ALPHANUMERIC,this.data=e}D.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};D.prototype.getLength=function(){return this.data.length};D.prototype.getBitsLength=function(){return D.getBitsLength(this.data.length)};D.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let o=q.indexOf(this.data[i])*45;o+=q.indexOf(this.data[i+1]),t.put(o,11)}this.data.length%2&&t.put(q.indexOf(this.data[i]),6)};var Gt=D;const jt=bt,vt=L;function F(e){this.mode=vt.BYTE,typeof e=="string"&&(e=jt(e)),this.data=new Uint8Array(e)}F.getBitsLength=function(t){return t*8};F.prototype.getLength=function(){return this.data.length};F.prototype.getBitsLength=function(){return F.getBitsLength(this.data.length)};F.prototype.write=function(e){for(let t=0,i=this.data.length;t=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),e.put(i,13)}};var Zt=k;(function(e){const t=L,i=_t,o=Gt,n=Qt,r=Zt,s=S,c=T,u=Pt;function l(h){return unescape(encodeURIComponent(h)).length}function a(h,m,d){const f=[];let y;for(;(y=h.exec(d))!==null;)f.push({data:y[0],index:y.index,mode:m,length:y[0].length});return f}function A(h){const m=a(s.NUMERIC,t.NUMERIC,h),d=a(s.ALPHANUMERIC,t.ALPHANUMERIC,h);let f,y;return c.isKanjiModeEnabled()?(f=a(s.BYTE,t.BYTE,h),y=a(s.KANJI,t.KANJI,h)):(f=a(s.BYTE_KANJI,t.BYTE,h),y=[]),m.concat(d,f,y).sort(function(I,p){return I.index-p.index}).map(function(I){return{data:I.data,mode:I.mode,length:I.length}})}function w(h,m){switch(m){case t.NUMERIC:return i.getBitsLength(h);case t.ALPHANUMERIC:return o.getBitsLength(h);case t.KANJI:return r.getBitsLength(h);case t.BYTE:return n.getBitsLength(h)}}function g(h){return h.reduce(function(m,d){const f=m.length-1>=0?m[m.length-1]:null;return f&&f.mode===d.mode?(m[m.length-1].data+=d.data,m):(m.push(d),m)},[])}function E(h){const m=[];for(let d=0;d=0&&c<=6&&(u===0||u===6)||u>=0&&u<=6&&(c===0||c===6)||c>=2&&c<=4&&u>=2&&u<=4?e.set(r+c,s+u,!0,!0):e.set(r+c,s+u,!1,!0))}}function se(e){const t=e.size;for(let i=8;i>c&1)===1,e.set(n,r,s,!0),e.set(r,n,s,!0)}function x(e,t,i){const o=e.size,n=oe.getEncodedBits(t,i);let r,s;for(r=0;r<15;r++)s=(n>>r&1)===1,r<6?e.set(r,8,s,!0):r<8?e.set(r+1,8,s,!0):e.set(o-15+r,8,s,!0),r<8?e.set(8,o-r-1,s,!0):r<9?e.set(8,15-r-1+1,s,!0):e.set(8,15-r-1,s,!0);e.set(o-8,8,1,!0)}function le(e,t){const i=e.size;let o=-1,n=i-1,r=7,s=0;for(let c=i-1;c>0;c-=2)for(c===6&&c--;;){for(let u=0;u<2;u++)if(!e.isReserved(n,c-u)){let l=!1;s>>r&1)===1),e.set(n,c-u,l),r--,r===-1&&(s++,r=7)}if(n+=o,n<0||i<=n){n-=o,o=-o;break}}}function ae(e,t,i){const o=new Xt;i.forEach(function(u){o.put(u.mode.bit,4),o.put(u.getLength(),re.getCharCountIndicator(u.mode,e)),u.write(o)});const n=Q.getSymbolTotalCodewords(e),r=ot.getTotalCodewordsCount(e,t),s=(n-r)*8;for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);const c=(s-o.getLengthInBits())/8;for(let u=0;uJSON.stringify(r,(t,s)=>typeof s=="bigint"?s.toString()+"n":s),ue=r=>{const t=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,s=r.replace(t,'$1"$2n"$3');return JSON.parse(s,(c,f)=>typeof f=="string"&&f.match(/^\d+n$/)?BigInt(f.substring(0,f.length-1)):f)};function he(r){if(typeof r!="string")throw new Error(`Cannot safe json parse value of type ${typeof r}`);try{return ue(r)}catch{return r}}function I(r){return typeof r=="string"?r:fe(r)||""}const de="PARSE_ERROR",le="INVALID_REQUEST",pe="METHOD_NOT_FOUND",ye="INVALID_PARAMS",$="INTERNAL_ERROR",S="SERVER_ERROR",be=[-32700,-32600,-32601,-32602,-32603],R={[de]:{code:-32700,message:"Parse error"},[le]:{code:-32600,message:"Invalid Request"},[pe]:{code:-32601,message:"Method not found"},[ye]:{code:-32602,message:"Invalid params"},[$]:{code:-32603,message:"Internal error"},[S]:{code:-32e3,message:"Server error"}},V=S;function me(r){return be.includes(r)}function U(r){return Object.keys(R).includes(r)?R[r]:R[V]}function ve(r){const t=Object.values(R).find(s=>s.code===r);return t||R[V]}function Ee(r,t,s){return r.message.includes("getaddrinfo ENOTFOUND")||r.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${s} RPC url at ${t}`):r}var ge={},b={},M;function we(){if(M)return b;M=1,Object.defineProperty(b,"__esModule",{value:!0}),b.isBrowserCryptoAvailable=b.getSubtleCrypto=b.getBrowerCrypto=void 0;function r(){return(E===null||E===void 0?void 0:E.crypto)||(E===null||E===void 0?void 0:E.msCrypto)||{}}b.getBrowerCrypto=r;function t(){const c=r();return c.subtle||c.webkitSubtle}b.getSubtleCrypto=t;function s(){return!!r()&&!!t()}return b.isBrowserCryptoAvailable=s,b}var m={},j;function Re(){if(j)return m;j=1,Object.defineProperty(m,"__esModule",{value:!0}),m.isBrowser=m.isNode=m.isReactNative=void 0;function r(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}m.isReactNative=r;function t(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}m.isNode=t;function s(){return!r()&&!t()}return m.isBrowser=s,m}(function(r){Object.defineProperty(r,"__esModule",{value:!0});const t=ae;t.__exportStar(we(),r),t.__exportStar(Re(),r)})(ge);function k(r=3){const t=Date.now()*Math.pow(10,r),s=Math.floor(Math.random()*Math.pow(10,r));return t+s}function _e(r=6){return BigInt(k(r))}function Ae(r,t,s){return{id:s||k(),jsonrpc:"2.0",method:r,params:t}}function Ne(r,t){return{id:r,jsonrpc:"2.0",result:t}}function Te(r,t,s){return{id:r,jsonrpc:"2.0",error:Oe(t,s)}}function Oe(r,t){return typeof r>"u"?U($):(typeof r=="string"&&(r=Object.assign(Object.assign({},U(S)),{message:r})),typeof t<"u"&&(r.data=t),me(r.code)&&(r=ve(r.code)),r)}class G{}class Fe extends G{constructor(t){super()}}class Pe extends G{constructor(){super()}}class Be extends Pe{constructor(t){super()}}const Se="^https?:",De="^wss?:";function xe(r){const t=r.match(new RegExp(/^\w+:/,"gi"));if(!(!t||!t.length))return t[0]}function X(r,t){const s=xe(r);return typeof s>"u"?!1:new RegExp(t).test(s)}function N(r){return X(r,Se)}function He(r){return X(r,De)}function qe(r){return new RegExp("wss?://localhost(:d{2,5})?").test(r)}function z(r){return typeof r=="object"&&"id"in r&&"jsonrpc"in r&&r.jsonrpc==="2.0"}function Je(r){return z(r)&&"method"in r}function Ce(r){return z(r)&&(Le(r)||W(r))}function Le(r){return"result"in r}function W(r){return"error"in r}class $e extends Be{constructor(t){super(t),this.events=new J.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(t),this.connection.connected&&this.registerEventListeners()}async connect(t=this.connection){await this.open(t)}async disconnect(){await this.close()}on(t,s){this.events.on(t,s)}once(t,s){this.events.once(t,s)}off(t,s){this.events.off(t,s)}removeListener(t,s){this.events.removeListener(t,s)}async request(t,s){return this.requestStrict(Ae(t.method,t.params||[],t.id||_e().toString()),s)}async requestStrict(t,s){return new Promise(async(c,f)=>{if(!this.connection.connected)try{await this.open()}catch(o){f(o)}this.events.on(`${t.id}`,o=>{W(o)?f(o.error):c(o.result)});try{await this.connection.send(t,s)}catch(o){f(o)}})}setConnection(t=this.connection){return t}onPayload(t){this.events.emit("payload",t),Ce(t)?this.events.emit(`${t.id}`,t):this.events.emit("message",{type:t.method,data:t.params})}onClose(t){t&&t.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${t.code} ${t.reason?`(${t.reason})`:""}`)),this.events.emit("disconnect")}async open(t=this.connection){this.connection===t&&this.connection.connected||(this.connection.connected&&this.close(),typeof t=="string"&&(await this.connection.open(t),t=this.connection),this.connection=this.setConnection(t),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",t=>this.onPayload(t)),this.connection.on("close",t=>this.onClose(t)),this.connection.on("error",t=>this.events.emit("error",t)),this.connection.on("register_error",t=>this.onClose()),this.hasRegisteredEventListeners=!0)}}var B={exports:{}};(function(r,t){var s=typeof self<"u"?self:E,c=function(){function o(){this.fetch=!1,this.DOMException=s.DOMException}return o.prototype=s,new o}();(function(o){(function(l){var p={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function Q(e){return e&&DataView.prototype.isPrototypeOf(e)}if(p.arrayBuffer)var K=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Y=ArrayBuffer.isView||function(e){return e&&K.indexOf(Object.prototype.toString.call(e))>-1};function g(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function D(e){return typeof e!="string"&&(e=String(e)),e}function A(e){var n={next:function(){var i=e.shift();return{done:i===void 0,value:i}}};return p.iterable&&(n[Symbol.iterator]=function(){return n}),n}function u(e){this.map={},e instanceof u?e.forEach(function(n,i){this.append(i,n)},this):Array.isArray(e)?e.forEach(function(n){this.append(n[0],n[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(n){this.append(n,e[n])},this)}u.prototype.append=function(e,n){e=g(e),n=D(n);var i=this.map[e];this.map[e]=i?i+", "+n:n},u.prototype.delete=function(e){delete this.map[g(e)]},u.prototype.get=function(e){return e=g(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(g(e))},u.prototype.set=function(e,n){this.map[g(e)]=D(n)},u.prototype.forEach=function(e,n){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(n,this.map[i],i,this)},u.prototype.keys=function(){var e=[];return this.forEach(function(n,i){e.push(i)}),A(e)},u.prototype.values=function(){var e=[];return this.forEach(function(n){e.push(n)}),A(e)},u.prototype.entries=function(){var e=[];return this.forEach(function(n,i){e.push([i,n])}),A(e)},p.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function T(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function x(e){return new Promise(function(n,i){e.onload=function(){n(e.result)},e.onerror=function(){i(e.error)}})}function Z(e){var n=new FileReader,i=x(n);return n.readAsArrayBuffer(e),i}function ee(e){var n=new FileReader,i=x(n);return n.readAsText(e),i}function te(e){for(var n=new Uint8Array(e),i=new Array(n.length),d=0;d-1?n:e}function v(e,n){n=n||{};var i=n.body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!i&&e._bodyInit!=null&&(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",(n.headers||!this.headers)&&(this.headers=new u(n.headers)),this.method=ne(n.method||this.method||"GET"),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})};function se(e){var n=new FormData;return e.trim().split("&").forEach(function(i){if(i){var d=i.split("="),h=d.shift().replace(/\+/g," "),a=d.join("=").replace(/\+/g," ");n.append(decodeURIComponent(h),decodeURIComponent(a))}}),n}function ie(e){var n=new u,i=e.replace(/\r?\n[\t ]+/g," ");return i.split(/\r?\n/).forEach(function(d){var h=d.split(":"),a=h.shift().trim();if(a){var _=h.join(":").trim();n.append(a,_)}}),n}L.call(v.prototype);function y(e,n){n||(n={}),this.type="default",this.status=n.status===void 0?200:n.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in n?n.statusText:"OK",this.headers=new u(n.headers),this.url=n.url||"",this._initBody(e)}L.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var oe=[301,302,303,307,308];y.redirect=function(e,n){if(oe.indexOf(n)===-1)throw new RangeError("Invalid status code");return new y(null,{status:n,headers:{location:e}})},l.DOMException=o.DOMException;try{new l.DOMException}catch{l.DOMException=function(n,i){this.message=n,this.name=i;var d=Error(n);this.stack=d.stack},l.DOMException.prototype=Object.create(Error.prototype),l.DOMException.prototype.constructor=l.DOMException}function O(e,n){return new Promise(function(i,d){var h=new v(e,n);if(h.signal&&h.signal.aborted)return d(new l.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function _(){a.abort()}a.onload=function(){var w={status:a.status,statusText:a.statusText,headers:ie(a.getAllResponseHeaders()||"")};w.url="responseURL"in a?a.responseURL:w.headers.get("X-Request-URL");var P="response"in a?a.response:a.responseText;i(new y(P,w))},a.onerror=function(){d(new TypeError("Network request failed"))},a.ontimeout=function(){d(new TypeError("Network request failed"))},a.onabort=function(){d(new l.DOMException("Aborted","AbortError"))},a.open(h.method,h.url,!0),h.credentials==="include"?a.withCredentials=!0:h.credentials==="omit"&&(a.withCredentials=!1),"responseType"in a&&p.blob&&(a.responseType="blob"),h.headers.forEach(function(w,P){a.setRequestHeader(P,w)}),h.signal&&(h.signal.addEventListener("abort",_),a.onreadystatechange=function(){a.readyState===4&&h.signal.removeEventListener("abort",_)}),a.send(typeof h._bodyInit>"u"?null:h._bodyInit)})}return O.polyfill=!0,o.fetch||(o.fetch=O,o.Headers=u,o.Request=v,o.Response=y),l.Headers=u,l.Request=v,l.Response=y,l.fetch=O,Object.defineProperty(l,"__esModule",{value:!0}),l})({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var f=c;t=f.fetch,t.default=f.fetch,t.fetch=f.fetch,t.Headers=f.Headers,t.Request=f.Request,t.Response=f.Response,r.exports=t})(B,B.exports);var Ie=B.exports;const F=ce(Ie),Ue={Accept:"application/json","Content-Type":"application/json"},Me="POST",H={headers:Ue,method:Me},q=10;class Ve{constructor(t,s=!1){if(this.url=t,this.disableProviderPing=s,this.events=new J.EventEmitter,this.isAvailable=!1,this.registering=!1,!N(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);this.url=t,this.disableProviderPing=s}get connected(){return this.isAvailable}get connecting(){return this.registering}on(t,s){this.events.on(t,s)}once(t,s){this.events.once(t,s)}off(t,s){this.events.off(t,s)}removeListener(t,s){this.events.removeListener(t,s)}async open(t=this.url){await this.register(t)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(t,s){this.isAvailable||await this.register();try{const c=I(t),o=await(await F(this.url,Object.assign(Object.assign({},H),{body:c}))).json();this.onPayload({data:o})}catch(c){this.onError(t.id,c)}}async register(t=this.url){if(!N(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);if(this.registering){const s=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=s||this.events.listenerCount("open")>=s)&&this.events.setMaxListeners(s+1),new Promise((c,f)=>{this.events.once("register_error",o=>{this.resetMaxListeners(),f(o)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return f(new Error("HTTP connection is missing or invalid"));c()})})}this.url=t,this.registering=!0;try{if(!this.disableProviderPing){const s=I({id:1,jsonrpc:"2.0",method:"test",params:[]});await F(t,Object.assign(Object.assign({},H),{body:s}))}this.onOpen()}catch(s){const c=this.parseError(s);throw this.events.emit("register_error",c),this.onClose(),c}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(t){if(typeof t.data>"u")return;const s=typeof t.data=="string"?he(t.data):t.data;this.events.emit("payload",s)}onError(t,s){const c=this.parseError(s),f=c.message||c.toString(),o=Te(t,f);this.events.emit("payload",o)}parseError(t,s=this.url){return Ee(t,s,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>q&&this.events.setMaxListeners(q)}}export{Ve as H,Fe as I,$e as J,he as a,qe as b,ge as c,Je as d,Ce as e,Te as f,Ne as g,Le as h,He as i,W as j,Ae as k,_e as l,k as m,Ee as p,I as s}; +import{p as E,r as ae,i as J,q as ce}from"./index-Mh1_DVck.js";const fe=r=>JSON.stringify(r,(t,s)=>typeof s=="bigint"?s.toString()+"n":s),ue=r=>{const t=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,s=r.replace(t,'$1"$2n"$3');return JSON.parse(s,(c,f)=>typeof f=="string"&&f.match(/^\d+n$/)?BigInt(f.substring(0,f.length-1)):f)};function he(r){if(typeof r!="string")throw new Error(`Cannot safe json parse value of type ${typeof r}`);try{return ue(r)}catch{return r}}function I(r){return typeof r=="string"?r:fe(r)||""}const de="PARSE_ERROR",le="INVALID_REQUEST",pe="METHOD_NOT_FOUND",ye="INVALID_PARAMS",$="INTERNAL_ERROR",S="SERVER_ERROR",be=[-32700,-32600,-32601,-32602,-32603],R={[de]:{code:-32700,message:"Parse error"},[le]:{code:-32600,message:"Invalid Request"},[pe]:{code:-32601,message:"Method not found"},[ye]:{code:-32602,message:"Invalid params"},[$]:{code:-32603,message:"Internal error"},[S]:{code:-32e3,message:"Server error"}},V=S;function me(r){return be.includes(r)}function U(r){return Object.keys(R).includes(r)?R[r]:R[V]}function ve(r){const t=Object.values(R).find(s=>s.code===r);return t||R[V]}function Ee(r,t,s){return r.message.includes("getaddrinfo ENOTFOUND")||r.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${s} RPC url at ${t}`):r}var ge={},b={},M;function we(){if(M)return b;M=1,Object.defineProperty(b,"__esModule",{value:!0}),b.isBrowserCryptoAvailable=b.getSubtleCrypto=b.getBrowerCrypto=void 0;function r(){return(E===null||E===void 0?void 0:E.crypto)||(E===null||E===void 0?void 0:E.msCrypto)||{}}b.getBrowerCrypto=r;function t(){const c=r();return c.subtle||c.webkitSubtle}b.getSubtleCrypto=t;function s(){return!!r()&&!!t()}return b.isBrowserCryptoAvailable=s,b}var m={},j;function Re(){if(j)return m;j=1,Object.defineProperty(m,"__esModule",{value:!0}),m.isBrowser=m.isNode=m.isReactNative=void 0;function r(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}m.isReactNative=r;function t(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}m.isNode=t;function s(){return!r()&&!t()}return m.isBrowser=s,m}(function(r){Object.defineProperty(r,"__esModule",{value:!0});const t=ae;t.__exportStar(we(),r),t.__exportStar(Re(),r)})(ge);function k(r=3){const t=Date.now()*Math.pow(10,r),s=Math.floor(Math.random()*Math.pow(10,r));return t+s}function _e(r=6){return BigInt(k(r))}function Ae(r,t,s){return{id:s||k(),jsonrpc:"2.0",method:r,params:t}}function Ne(r,t){return{id:r,jsonrpc:"2.0",result:t}}function Te(r,t,s){return{id:r,jsonrpc:"2.0",error:Oe(t,s)}}function Oe(r,t){return typeof r>"u"?U($):(typeof r=="string"&&(r=Object.assign(Object.assign({},U(S)),{message:r})),typeof t<"u"&&(r.data=t),me(r.code)&&(r=ve(r.code)),r)}class G{}class Fe extends G{constructor(t){super()}}class Pe extends G{constructor(){super()}}class Be extends Pe{constructor(t){super()}}const Se="^https?:",De="^wss?:";function xe(r){const t=r.match(new RegExp(/^\w+:/,"gi"));if(!(!t||!t.length))return t[0]}function X(r,t){const s=xe(r);return typeof s>"u"?!1:new RegExp(t).test(s)}function N(r){return X(r,Se)}function He(r){return X(r,De)}function qe(r){return new RegExp("wss?://localhost(:d{2,5})?").test(r)}function z(r){return typeof r=="object"&&"id"in r&&"jsonrpc"in r&&r.jsonrpc==="2.0"}function Je(r){return z(r)&&"method"in r}function Ce(r){return z(r)&&(Le(r)||W(r))}function Le(r){return"result"in r}function W(r){return"error"in r}class $e extends Be{constructor(t){super(t),this.events=new J.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(t),this.connection.connected&&this.registerEventListeners()}async connect(t=this.connection){await this.open(t)}async disconnect(){await this.close()}on(t,s){this.events.on(t,s)}once(t,s){this.events.once(t,s)}off(t,s){this.events.off(t,s)}removeListener(t,s){this.events.removeListener(t,s)}async request(t,s){return this.requestStrict(Ae(t.method,t.params||[],t.id||_e().toString()),s)}async requestStrict(t,s){return new Promise(async(c,f)=>{if(!this.connection.connected)try{await this.open()}catch(o){f(o)}this.events.on(`${t.id}`,o=>{W(o)?f(o.error):c(o.result)});try{await this.connection.send(t,s)}catch(o){f(o)}})}setConnection(t=this.connection){return t}onPayload(t){this.events.emit("payload",t),Ce(t)?this.events.emit(`${t.id}`,t):this.events.emit("message",{type:t.method,data:t.params})}onClose(t){t&&t.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${t.code} ${t.reason?`(${t.reason})`:""}`)),this.events.emit("disconnect")}async open(t=this.connection){this.connection===t&&this.connection.connected||(this.connection.connected&&this.close(),typeof t=="string"&&(await this.connection.open(t),t=this.connection),this.connection=this.setConnection(t),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",t=>this.onPayload(t)),this.connection.on("close",t=>this.onClose(t)),this.connection.on("error",t=>this.events.emit("error",t)),this.connection.on("register_error",t=>this.onClose()),this.hasRegisteredEventListeners=!0)}}var B={exports:{}};(function(r,t){var s=typeof self<"u"?self:E,c=function(){function o(){this.fetch=!1,this.DOMException=s.DOMException}return o.prototype=s,new o}();(function(o){(function(l){var p={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function Q(e){return e&&DataView.prototype.isPrototypeOf(e)}if(p.arrayBuffer)var K=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Y=ArrayBuffer.isView||function(e){return e&&K.indexOf(Object.prototype.toString.call(e))>-1};function g(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function D(e){return typeof e!="string"&&(e=String(e)),e}function A(e){var n={next:function(){var i=e.shift();return{done:i===void 0,value:i}}};return p.iterable&&(n[Symbol.iterator]=function(){return n}),n}function u(e){this.map={},e instanceof u?e.forEach(function(n,i){this.append(i,n)},this):Array.isArray(e)?e.forEach(function(n){this.append(n[0],n[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(n){this.append(n,e[n])},this)}u.prototype.append=function(e,n){e=g(e),n=D(n);var i=this.map[e];this.map[e]=i?i+", "+n:n},u.prototype.delete=function(e){delete this.map[g(e)]},u.prototype.get=function(e){return e=g(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(g(e))},u.prototype.set=function(e,n){this.map[g(e)]=D(n)},u.prototype.forEach=function(e,n){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(n,this.map[i],i,this)},u.prototype.keys=function(){var e=[];return this.forEach(function(n,i){e.push(i)}),A(e)},u.prototype.values=function(){var e=[];return this.forEach(function(n){e.push(n)}),A(e)},u.prototype.entries=function(){var e=[];return this.forEach(function(n,i){e.push([i,n])}),A(e)},p.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function T(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function x(e){return new Promise(function(n,i){e.onload=function(){n(e.result)},e.onerror=function(){i(e.error)}})}function Z(e){var n=new FileReader,i=x(n);return n.readAsArrayBuffer(e),i}function ee(e){var n=new FileReader,i=x(n);return n.readAsText(e),i}function te(e){for(var n=new Uint8Array(e),i=new Array(n.length),d=0;d-1?n:e}function v(e,n){n=n||{};var i=n.body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!i&&e._bodyInit!=null&&(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",(n.headers||!this.headers)&&(this.headers=new u(n.headers)),this.method=ne(n.method||this.method||"GET"),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})};function se(e){var n=new FormData;return e.trim().split("&").forEach(function(i){if(i){var d=i.split("="),h=d.shift().replace(/\+/g," "),a=d.join("=").replace(/\+/g," ");n.append(decodeURIComponent(h),decodeURIComponent(a))}}),n}function ie(e){var n=new u,i=e.replace(/\r?\n[\t ]+/g," ");return i.split(/\r?\n/).forEach(function(d){var h=d.split(":"),a=h.shift().trim();if(a){var _=h.join(":").trim();n.append(a,_)}}),n}L.call(v.prototype);function y(e,n){n||(n={}),this.type="default",this.status=n.status===void 0?200:n.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in n?n.statusText:"OK",this.headers=new u(n.headers),this.url=n.url||"",this._initBody(e)}L.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var oe=[301,302,303,307,308];y.redirect=function(e,n){if(oe.indexOf(n)===-1)throw new RangeError("Invalid status code");return new y(null,{status:n,headers:{location:e}})},l.DOMException=o.DOMException;try{new l.DOMException}catch{l.DOMException=function(n,i){this.message=n,this.name=i;var d=Error(n);this.stack=d.stack},l.DOMException.prototype=Object.create(Error.prototype),l.DOMException.prototype.constructor=l.DOMException}function O(e,n){return new Promise(function(i,d){var h=new v(e,n);if(h.signal&&h.signal.aborted)return d(new l.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function _(){a.abort()}a.onload=function(){var w={status:a.status,statusText:a.statusText,headers:ie(a.getAllResponseHeaders()||"")};w.url="responseURL"in a?a.responseURL:w.headers.get("X-Request-URL");var P="response"in a?a.response:a.responseText;i(new y(P,w))},a.onerror=function(){d(new TypeError("Network request failed"))},a.ontimeout=function(){d(new TypeError("Network request failed"))},a.onabort=function(){d(new l.DOMException("Aborted","AbortError"))},a.open(h.method,h.url,!0),h.credentials==="include"?a.withCredentials=!0:h.credentials==="omit"&&(a.withCredentials=!1),"responseType"in a&&p.blob&&(a.responseType="blob"),h.headers.forEach(function(w,P){a.setRequestHeader(P,w)}),h.signal&&(h.signal.addEventListener("abort",_),a.onreadystatechange=function(){a.readyState===4&&h.signal.removeEventListener("abort",_)}),a.send(typeof h._bodyInit>"u"?null:h._bodyInit)})}return O.polyfill=!0,o.fetch||(o.fetch=O,o.Headers=u,o.Request=v,o.Response=y),l.Headers=u,l.Request=v,l.Response=y,l.fetch=O,Object.defineProperty(l,"__esModule",{value:!0}),l})({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var f=c;t=f.fetch,t.default=f.fetch,t.fetch=f.fetch,t.Headers=f.Headers,t.Request=f.Request,t.Response=f.Response,r.exports=t})(B,B.exports);var Ie=B.exports;const F=ce(Ie),Ue={Accept:"application/json","Content-Type":"application/json"},Me="POST",H={headers:Ue,method:Me},q=10;class Ve{constructor(t,s=!1){if(this.url=t,this.disableProviderPing=s,this.events=new J.EventEmitter,this.isAvailable=!1,this.registering=!1,!N(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);this.url=t,this.disableProviderPing=s}get connected(){return this.isAvailable}get connecting(){return this.registering}on(t,s){this.events.on(t,s)}once(t,s){this.events.once(t,s)}off(t,s){this.events.off(t,s)}removeListener(t,s){this.events.removeListener(t,s)}async open(t=this.url){await this.register(t)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(t,s){this.isAvailable||await this.register();try{const c=I(t),o=await(await F(this.url,Object.assign(Object.assign({},H),{body:c}))).json();this.onPayload({data:o})}catch(c){this.onError(t.id,c)}}async register(t=this.url){if(!N(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);if(this.registering){const s=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=s||this.events.listenerCount("open")>=s)&&this.events.setMaxListeners(s+1),new Promise((c,f)=>{this.events.once("register_error",o=>{this.resetMaxListeners(),f(o)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return f(new Error("HTTP connection is missing or invalid"));c()})})}this.url=t,this.registering=!0;try{if(!this.disableProviderPing){const s=I({id:1,jsonrpc:"2.0",method:"test",params:[]});await F(t,Object.assign(Object.assign({},H),{body:s}))}this.onOpen()}catch(s){const c=this.parseError(s);throw this.events.emit("register_error",c),this.onClose(),c}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(t){if(typeof t.data>"u")return;const s=typeof t.data=="string"?he(t.data):t.data;this.events.emit("payload",s)}onError(t,s){const c=this.parseError(s),f=c.message||c.toString(),o=Te(t,f);this.events.emit("payload",o)}parseError(t,s=this.url){return Ee(t,s,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>q&&this.events.setMaxListeners(q)}}export{Ve as H,Fe as I,$e as J,he as a,qe as b,ge as c,Je as d,Ce as e,Te as f,Ne as g,Le as h,He as i,W as j,Ae as k,_e as l,k as m,Ee as p,I as s}; diff --git a/assets/index-Su3Bmzid.js b/assets/index-GY_DE3Uf.js similarity index 98% rename from assets/index-Su3Bmzid.js rename to assets/index-GY_DE3Uf.js index f1fddb8..9699b9a 100644 --- a/assets/index-Su3Bmzid.js +++ b/assets/index-GY_DE3Uf.js @@ -1,7 +1,7 @@ -import{aA as fe}from"./index-XxsA1De3.js";const me=Symbol(),ee=Object.getPrototypeOf,Q=new WeakMap,he=e=>e&&(Q.has(e)?Q.get(e):ee(e)===Object.prototype||ee(e)===Array.prototype),Ie=e=>he(e)&&e[me]||null,te=(e,t=!0)=>{Q.set(e,t)};var F={VITE_REACT_APP_PROJECT_ID:"9d80089c30635ff84b5339d993d63fa1",VITE_MUMBAI_RPC:"https://polygon-mumbai.g.alchemy.com/v2/BmepUpwxd86PJSuisn7P4f3lZJSqcAUt",VITE_PINATA_JWT:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M",VITE_PINATA_GET_URL:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/",VITE_PINATA_PIN_FILE_URL:"https://api.pinata.cloud/pinning/pinFileToIPFS",VITE_PINATA_PIN_JSON_URL:"https://api.pinata.cloud/pinning/pinJSONToIPFS",BASE_URL:"/real-token/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const B=e=>typeof e=="object"&&e!==null,A=new WeakMap,Z=new WeakSet,ge=(e=Object.is,t=(n,I)=>new Proxy(n,I),s=n=>B(n)&&!Z.has(n)&&(Array.isArray(n)||!(Symbol.iterator in n))&&!(n instanceof WeakMap)&&!(n instanceof WeakSet)&&!(n instanceof Error)&&!(n instanceof Number)&&!(n instanceof Date)&&!(n instanceof String)&&!(n instanceof RegExp)&&!(n instanceof ArrayBuffer),r=n=>{switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:throw n}},l=new WeakMap,c=(n,I,v=r)=>{const b=l.get(n);if((b==null?void 0:b[0])===I)return b[1];const y=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n));return te(y,!0),l.set(n,[I,y]),Reflect.ownKeys(n).forEach(_=>{if(Object.getOwnPropertyDescriptor(y,_))return;const E=Reflect.get(n,_),M={value:E,enumerable:!0,configurable:!0};if(Z.has(E))te(E,!1);else if(E instanceof Promise)delete M.value,M.get=()=>v(E);else if(A.has(E)){const[g,Y]=A.get(E);M.value=c(g,Y(),v)}Object.defineProperty(y,_,M)}),Object.preventExtensions(y)},m=new WeakMap,f=[1,1],L=n=>{if(!B(n))throw new Error("object required");const I=m.get(n);if(I)return I;let v=f[0];const b=new Set,y=(a,i=++f[0])=>{v!==i&&(v=i,b.forEach(o=>o(a,i)))};let _=f[1];const E=(a=++f[1])=>(_!==a&&!b.size&&(_=a,g.forEach(([i])=>{const o=i[1](a);o>v&&(v=o)})),v),M=a=>(i,o)=>{const h=[...i];h[1]=[a,...h[1]],y(h,o)},g=new Map,Y=(a,i)=>{if((F?"production":void 0)!=="production"&&g.has(a))throw new Error("prop listener already exists");if(b.size){const o=i[3](M(a));g.set(a,[i,o])}else g.set(a,[i])},q=a=>{var i;const o=g.get(a);o&&(g.delete(a),(i=o[1])==null||i.call(o))},ue=a=>(b.add(a),b.size===1&&g.forEach(([o,h],N)=>{if((F?"production":void 0)!=="production"&&h)throw new Error("remove already exists");const k=o[3](M(N));g.set(N,[o,k])}),()=>{b.delete(a),b.size===0&&g.forEach(([o,h],N)=>{h&&(h(),g.set(N,[o]))})}),z=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),R=t(z,{deleteProperty(a,i){const o=Reflect.get(a,i);q(i);const h=Reflect.deleteProperty(a,i);return h&&y(["delete",[i],o]),h},set(a,i,o,h){const N=Reflect.has(a,i),k=Reflect.get(a,i,h);if(N&&(e(k,o)||m.has(o)&&e(k,m.get(o))))return!0;q(i),B(o)&&(o=Ie(o)||o);let x=o;if(o instanceof Promise)o.then(j=>{o.status="fulfilled",o.value=j,y(["resolve",[i],j])}).catch(j=>{o.status="rejected",o.reason=j,y(["reject",[i],j])});else{!A.has(o)&&s(o)&&(x=L(o));const j=!Z.has(x)&&A.get(x);j&&Y(i,j)}return Reflect.set(a,i,x,h),y(["set",[i],o,k]),!0}});m.set(n,R);const pe=[z,E,c,ue];return A.set(R,pe),Reflect.ownKeys(n).forEach(a=>{const i=Object.getOwnPropertyDescriptor(n,a);"value"in i&&(R[a]=n[a],delete i.value,delete i.writable),Object.defineProperty(z,a,i)}),R})=>[L,A,Z,e,t,s,r,l,c,m,f],[be]=ge();function C(e={}){return be(e)}function P(e,t,s){const r=A.get(e);(F?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let l;const c=[],m=r[3];let f=!1;const n=m(I=>{if(c.push(I),s){t(c.splice(0));return}l||(l=Promise.resolve().then(()=>{l=void 0,f&&t(c.splice(0))}))});return f=!0,()=>{f=!1,n()}}function ye(e,t){const s=A.get(e);(F?"production":void 0)!=="production"&&!s&&console.warn("Please use proxy object");const[r,l,c]=s;return c(r,l(),t)}const d=C({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),de={state:d,subscribe(e){return P(d,()=>e(d))},push(e,t){e!==d.view&&(d.view=e,t&&(d.data=t),d.history.push(e))},reset(e){d.view=e,d.history=[e]},replace(e){d.history.length>1&&(d.history[d.history.length-1]=e,d.view=e)},goBack(){if(d.history.length>1){d.history.pop();const[e]=d.history.slice(-1);d.view=e}},setData(e){d.data=e}},p={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return p.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return p.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(p.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!p.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(p.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(p.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(p.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(p.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=de.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},we=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),u=C({enabled:we,userSessionId:"",events:[],connectedWalletId:void 0}),ve={state:u,subscribe(e){return P(u.events,()=>e(ye(u.events[u.events.length-1])))},initialize(){u.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(u.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){u.connectedWalletId=e},click(e){if(u.enabled){const t={type:"CLICK",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}},track(e){if(u.enabled){const t={type:"TRACK",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}},view(e){if(u.enabled){const t={type:"VIEW",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}}},O=C({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),w={state:O,subscribe(e){return P(O,()=>e(O))},setChains(e){O.chains=e},setWalletConnectUri(e){O.walletConnectUri=e},setIsCustomDesktop(e){O.isCustomDesktop=e},setIsCustomMobile(e){O.isCustomMobile=e},setIsDataLoaded(e){O.isDataLoaded=e},setIsUiLoaded(e){O.isUiLoaded=e},setIsAuth(e){O.isAuth=e}},J=C({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),D={state:J,subscribe(e){return P(J,()=>e(J))},setConfig(e){var t,s;ve.initialize(),w.setChains(e.chains),w.setIsAuth(!!e.enableAuthMode),w.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),w.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),p.setModalVersionInStorage(),Object.assign(J,e)}};var Oe=Object.defineProperty,se=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,ne=(e,t,s)=>t in e?Oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Le=(e,t)=>{for(var s in t||(t={}))We.call(t,s)&&ne(e,s,t[s]);if(se)for(var s of se(t))Ee.call(t,s)&&ne(e,s,t[s]);return e};const K="https://explorer-api.walletconnect.com",H="wcm",X="js-2.6.2";async function $(e,t){const s=Le({sdkType:H,sdkVersion:X},t),r=new URL(e,K);return r.searchParams.append("projectId",D.state.projectId),Object.entries(s).forEach(([l,c])=>{c&&r.searchParams.append(l,String(c))}),(await fetch(r)).json()}const U={async getDesktopListings(e){return $("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return $("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return $("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return $("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${K}/w3m/v1/getWalletImage/${e}?projectId=${D.state.projectId}&sdkType=${H}&sdkVersion=${X}`},getAssetImageUrl(e){return`${K}/w3m/v1/getAssetImage/${e}?projectId=${D.state.projectId}&sdkType=${H}&sdkVersion=${X}`}};var je=Object.defineProperty,oe=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Me=(e,t)=>{for(var s in t||(t={}))Ae.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))Ce.call(t,s)&&re(e,s,t[s]);return e};const ie=p.isMobile(),W=C({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Ve={state:W,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=D.state;if(e==="NONE"||t==="ALL"&&!e)return W.recomendedWallets;if(p.isArray(e)){const s={recommendedIds:e.join(",")},{listings:r}=await U.getAllListings(s),l=Object.values(r);l.sort((c,m)=>{const f=e.indexOf(c.id),L=e.indexOf(m.id);return f-L}),W.recomendedWallets=l}else{const{chains:s,isAuth:r}=w.state,l=s==null?void 0:s.join(","),c=p.isArray(t),m={page:1,sdks:r?"auth_v1":void 0,entries:p.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:f}=ie?await U.getMobileListings(m):await U.getDesktopListings(m);W.recomendedWallets=Object.values(f)}return W.recomendedWallets},async getWallets(e){const t=Me({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=D.state,{recomendedWallets:l}=W;if(r==="ALL")return W.wallets;l.length?t.excludedIds=l.map(v=>v.id).join(","):p.isArray(s)&&(t.excludedIds=s.join(",")),p.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(",")),w.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:m}=e,{listings:f,total:L}=ie?await U.getMobileListings(t):await U.getDesktopListings(t),n=Object.values(f),I=m?"search":"wallets";return W[I]={listings:[...W[I].listings,...n],total:L,page:c??1},{listings:n,total:L}},getWalletImageUrl(e){return U.getWalletImageUrl(e)},getAssetImageUrl(e){return U.getAssetImageUrl(e)},resetSearch(){W.search={listings:[],total:0,page:1}}},T=C({open:!1}),G={state:T,subscribe(e){return P(T,()=>e(T))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:r}=w.state;if(p.removeWalletConnectDeepLink(),w.setWalletConnectUri(e==null?void 0:e.uri),w.setChains(e==null?void 0:e.chains),de.reset("ConnectWallet"),s&&r)T.open=!0,t();else{const l=setInterval(()=>{const c=w.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),T.open=!0,t())},200)}})},close(){T.open=!1}};var Ue=Object.defineProperty,ae=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,le=(e,t,s)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,_e=(e,t)=>{for(var s in t||(t={}))Se.call(t,s)&&le(e,s,t[s]);if(ae)for(var s of ae(t))Pe.call(t,s)&&le(e,s,t[s]);return e};function Ne(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const V=C({themeMode:Ne()?"dark":"light"}),ce={state:V,subscribe(e){return P(V,()=>e(V))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(V.themeMode=t),s&&(V.themeVariables=_e({},s))}},S=C({open:!1,message:"",variant:"success"}),Re={state:S,subscribe(e){return P(S,()=>e(S))},openToast(e,t){S.open=!0,S.message=e,S.variant=t},closeToast(){S.open=!1}};class Te{constructor(t){this.openModal=G.open,this.closeModal=G.close,this.subscribeModal=G.subscribe,this.setTheme=ce.setThemeConfig,ce.setThemeConfig(t),D.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await fe(()=>import("./index-_NeuCN-A.js"),__vite__mapDeps([0,1,2,3]));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),w.setIsUiLoaded(!0)}}}const xe=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:Te},Symbol.toStringTag,{value:"Module"}));export{ve as R,de as T,p as a,xe as i,ce as n,Re as o,w as p,G as s,Ve as t,D as y}; +import{aA as fe}from"./index-Mh1_DVck.js";const me=Symbol(),ee=Object.getPrototypeOf,Q=new WeakMap,he=e=>e&&(Q.has(e)?Q.get(e):ee(e)===Object.prototype||ee(e)===Array.prototype),Ie=e=>he(e)&&e[me]||null,te=(e,t=!0)=>{Q.set(e,t)};var F={VITE_REACT_APP_PROJECT_ID:"9d80089c30635ff84b5339d993d63fa1",VITE_MUMBAI_RPC:"https://polygon-mumbai.g.alchemy.com/v2/BmepUpwxd86PJSuisn7P4f3lZJSqcAUt",VITE_PINATA_JWT:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M",VITE_PINATA_GET_URL:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/",VITE_PINATA_PIN_FILE_URL:"https://api.pinata.cloud/pinning/pinFileToIPFS",VITE_PINATA_PIN_JSON_URL:"https://api.pinata.cloud/pinning/pinJSONToIPFS",BASE_URL:"/real-token/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const B=e=>typeof e=="object"&&e!==null,A=new WeakMap,Z=new WeakSet,ge=(e=Object.is,t=(n,I)=>new Proxy(n,I),s=n=>B(n)&&!Z.has(n)&&(Array.isArray(n)||!(Symbol.iterator in n))&&!(n instanceof WeakMap)&&!(n instanceof WeakSet)&&!(n instanceof Error)&&!(n instanceof Number)&&!(n instanceof Date)&&!(n instanceof String)&&!(n instanceof RegExp)&&!(n instanceof ArrayBuffer),r=n=>{switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:throw n}},l=new WeakMap,c=(n,I,v=r)=>{const b=l.get(n);if((b==null?void 0:b[0])===I)return b[1];const y=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n));return te(y,!0),l.set(n,[I,y]),Reflect.ownKeys(n).forEach(_=>{if(Object.getOwnPropertyDescriptor(y,_))return;const E=Reflect.get(n,_),M={value:E,enumerable:!0,configurable:!0};if(Z.has(E))te(E,!1);else if(E instanceof Promise)delete M.value,M.get=()=>v(E);else if(A.has(E)){const[g,Y]=A.get(E);M.value=c(g,Y(),v)}Object.defineProperty(y,_,M)}),Object.preventExtensions(y)},m=new WeakMap,f=[1,1],L=n=>{if(!B(n))throw new Error("object required");const I=m.get(n);if(I)return I;let v=f[0];const b=new Set,y=(a,i=++f[0])=>{v!==i&&(v=i,b.forEach(o=>o(a,i)))};let _=f[1];const E=(a=++f[1])=>(_!==a&&!b.size&&(_=a,g.forEach(([i])=>{const o=i[1](a);o>v&&(v=o)})),v),M=a=>(i,o)=>{const h=[...i];h[1]=[a,...h[1]],y(h,o)},g=new Map,Y=(a,i)=>{if((F?"production":void 0)!=="production"&&g.has(a))throw new Error("prop listener already exists");if(b.size){const o=i[3](M(a));g.set(a,[i,o])}else g.set(a,[i])},q=a=>{var i;const o=g.get(a);o&&(g.delete(a),(i=o[1])==null||i.call(o))},ue=a=>(b.add(a),b.size===1&&g.forEach(([o,h],N)=>{if((F?"production":void 0)!=="production"&&h)throw new Error("remove already exists");const k=o[3](M(N));g.set(N,[o,k])}),()=>{b.delete(a),b.size===0&&g.forEach(([o,h],N)=>{h&&(h(),g.set(N,[o]))})}),z=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),R=t(z,{deleteProperty(a,i){const o=Reflect.get(a,i);q(i);const h=Reflect.deleteProperty(a,i);return h&&y(["delete",[i],o]),h},set(a,i,o,h){const N=Reflect.has(a,i),k=Reflect.get(a,i,h);if(N&&(e(k,o)||m.has(o)&&e(k,m.get(o))))return!0;q(i),B(o)&&(o=Ie(o)||o);let x=o;if(o instanceof Promise)o.then(j=>{o.status="fulfilled",o.value=j,y(["resolve",[i],j])}).catch(j=>{o.status="rejected",o.reason=j,y(["reject",[i],j])});else{!A.has(o)&&s(o)&&(x=L(o));const j=!Z.has(x)&&A.get(x);j&&Y(i,j)}return Reflect.set(a,i,x,h),y(["set",[i],o,k]),!0}});m.set(n,R);const pe=[z,E,c,ue];return A.set(R,pe),Reflect.ownKeys(n).forEach(a=>{const i=Object.getOwnPropertyDescriptor(n,a);"value"in i&&(R[a]=n[a],delete i.value,delete i.writable),Object.defineProperty(z,a,i)}),R})=>[L,A,Z,e,t,s,r,l,c,m,f],[be]=ge();function C(e={}){return be(e)}function P(e,t,s){const r=A.get(e);(F?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let l;const c=[],m=r[3];let f=!1;const n=m(I=>{if(c.push(I),s){t(c.splice(0));return}l||(l=Promise.resolve().then(()=>{l=void 0,f&&t(c.splice(0))}))});return f=!0,()=>{f=!1,n()}}function ye(e,t){const s=A.get(e);(F?"production":void 0)!=="production"&&!s&&console.warn("Please use proxy object");const[r,l,c]=s;return c(r,l(),t)}const d=C({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),de={state:d,subscribe(e){return P(d,()=>e(d))},push(e,t){e!==d.view&&(d.view=e,t&&(d.data=t),d.history.push(e))},reset(e){d.view=e,d.history=[e]},replace(e){d.history.length>1&&(d.history[d.history.length-1]=e,d.view=e)},goBack(){if(d.history.length>1){d.history.pop();const[e]=d.history.slice(-1);d.view=e}},setData(e){d.data=e}},p={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return p.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return p.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(p.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!p.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(p.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(p.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(p.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(p.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=de.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},we=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),u=C({enabled:we,userSessionId:"",events:[],connectedWalletId:void 0}),ve={state:u,subscribe(e){return P(u.events,()=>e(ye(u.events[u.events.length-1])))},initialize(){u.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(u.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){u.connectedWalletId=e},click(e){if(u.enabled){const t={type:"CLICK",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}},track(e){if(u.enabled){const t={type:"TRACK",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}},view(e){if(u.enabled){const t={type:"VIEW",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}}},O=C({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),w={state:O,subscribe(e){return P(O,()=>e(O))},setChains(e){O.chains=e},setWalletConnectUri(e){O.walletConnectUri=e},setIsCustomDesktop(e){O.isCustomDesktop=e},setIsCustomMobile(e){O.isCustomMobile=e},setIsDataLoaded(e){O.isDataLoaded=e},setIsUiLoaded(e){O.isUiLoaded=e},setIsAuth(e){O.isAuth=e}},J=C({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),D={state:J,subscribe(e){return P(J,()=>e(J))},setConfig(e){var t,s;ve.initialize(),w.setChains(e.chains),w.setIsAuth(!!e.enableAuthMode),w.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),w.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),p.setModalVersionInStorage(),Object.assign(J,e)}};var Oe=Object.defineProperty,se=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,ne=(e,t,s)=>t in e?Oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Le=(e,t)=>{for(var s in t||(t={}))We.call(t,s)&&ne(e,s,t[s]);if(se)for(var s of se(t))Ee.call(t,s)&&ne(e,s,t[s]);return e};const K="https://explorer-api.walletconnect.com",H="wcm",X="js-2.6.2";async function $(e,t){const s=Le({sdkType:H,sdkVersion:X},t),r=new URL(e,K);return r.searchParams.append("projectId",D.state.projectId),Object.entries(s).forEach(([l,c])=>{c&&r.searchParams.append(l,String(c))}),(await fetch(r)).json()}const U={async getDesktopListings(e){return $("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return $("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return $("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return $("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${K}/w3m/v1/getWalletImage/${e}?projectId=${D.state.projectId}&sdkType=${H}&sdkVersion=${X}`},getAssetImageUrl(e){return`${K}/w3m/v1/getAssetImage/${e}?projectId=${D.state.projectId}&sdkType=${H}&sdkVersion=${X}`}};var je=Object.defineProperty,oe=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Me=(e,t)=>{for(var s in t||(t={}))Ae.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))Ce.call(t,s)&&re(e,s,t[s]);return e};const ie=p.isMobile(),W=C({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Ve={state:W,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=D.state;if(e==="NONE"||t==="ALL"&&!e)return W.recomendedWallets;if(p.isArray(e)){const s={recommendedIds:e.join(",")},{listings:r}=await U.getAllListings(s),l=Object.values(r);l.sort((c,m)=>{const f=e.indexOf(c.id),L=e.indexOf(m.id);return f-L}),W.recomendedWallets=l}else{const{chains:s,isAuth:r}=w.state,l=s==null?void 0:s.join(","),c=p.isArray(t),m={page:1,sdks:r?"auth_v1":void 0,entries:p.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:f}=ie?await U.getMobileListings(m):await U.getDesktopListings(m);W.recomendedWallets=Object.values(f)}return W.recomendedWallets},async getWallets(e){const t=Me({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=D.state,{recomendedWallets:l}=W;if(r==="ALL")return W.wallets;l.length?t.excludedIds=l.map(v=>v.id).join(","):p.isArray(s)&&(t.excludedIds=s.join(",")),p.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(",")),w.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:m}=e,{listings:f,total:L}=ie?await U.getMobileListings(t):await U.getDesktopListings(t),n=Object.values(f),I=m?"search":"wallets";return W[I]={listings:[...W[I].listings,...n],total:L,page:c??1},{listings:n,total:L}},getWalletImageUrl(e){return U.getWalletImageUrl(e)},getAssetImageUrl(e){return U.getAssetImageUrl(e)},resetSearch(){W.search={listings:[],total:0,page:1}}},T=C({open:!1}),G={state:T,subscribe(e){return P(T,()=>e(T))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:r}=w.state;if(p.removeWalletConnectDeepLink(),w.setWalletConnectUri(e==null?void 0:e.uri),w.setChains(e==null?void 0:e.chains),de.reset("ConnectWallet"),s&&r)T.open=!0,t();else{const l=setInterval(()=>{const c=w.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),T.open=!0,t())},200)}})},close(){T.open=!1}};var Ue=Object.defineProperty,ae=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,le=(e,t,s)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,_e=(e,t)=>{for(var s in t||(t={}))Se.call(t,s)&&le(e,s,t[s]);if(ae)for(var s of ae(t))Pe.call(t,s)&&le(e,s,t[s]);return e};function Ne(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const V=C({themeMode:Ne()?"dark":"light"}),ce={state:V,subscribe(e){return P(V,()=>e(V))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(V.themeMode=t),s&&(V.themeVariables=_e({},s))}},S=C({open:!1,message:"",variant:"success"}),Re={state:S,subscribe(e){return P(S,()=>e(S))},openToast(e,t){S.open=!0,S.message=e,S.variant=t},closeToast(){S.open=!1}};class Te{constructor(t){this.openModal=G.open,this.closeModal=G.close,this.subscribeModal=G.subscribe,this.setTheme=ce.setThemeConfig,ce.setThemeConfig(t),D.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await fe(()=>import("./index-MQhzYnFg.js"),__vite__mapDeps([0,1,2,3]));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),w.setIsUiLoaded(!0)}}}const xe=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:Te},Symbol.toStringTag,{value:"Module"}));export{ve as R,de as T,p as a,xe as i,ce as n,Re as o,w as p,G as s,Ve as t,D as y}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/index-_NeuCN-A.js","assets/browser-YRefIO1l.js","assets/index-XxsA1De3.js","assets/index-bI5pgBhQ.css"] + __vite__mapDeps.viteFileDeps = ["assets/index-MQhzYnFg.js","assets/browser-DNUtfqGr.js","assets/index-Mh1_DVck.js","assets/index-bI5pgBhQ.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } \ No newline at end of file diff --git a/assets/index-wvsXXRnL.js b/assets/index-ItcG9P7Q.js similarity index 99% rename from assets/index-wvsXXRnL.js rename to assets/index-ItcG9P7Q.js index e96df5e..65ced12 100644 --- a/assets/index-wvsXXRnL.js +++ b/assets/index-ItcG9P7Q.js @@ -1,4 +1,4 @@ -import{q as pe,aD as Wn,aE as Fn,aF as Hn,aG as zn,aH as Qn,aI as Jn,aJ as Vn,aK as Gn,aL as Yn,aM as Kn,aN as Zn,aO as Xn,aP as er,aQ as tr,aR as nr,aS as rr,aT as or,aU as ir,f as et,E as tt}from"./index-XxsA1De3.js";import{a as sr,s as ar,m as cr,c as Q,I as lr,f as $e,J as je,H as ur}from"./http-1-zMwFp0.js";import{b as dr}from"./browser-YRefIO1l.js";import{b as A,l as S,y as x,g as $,$ as O,q as K,B as hr,E as fr,a as ee,c as ge,d as me,V as nt,s as rt,_ as ot,A as it,F as st,T as at,e as ct,x as lt,f as ut,i as dt,P as _r}from"./hooks.module-o1hAt1ko.js";const ae="Session currently connected",q="Session currently disconnected",pr="Session Rejected",gr="Missing JSON RPC response",mr='JSON-RPC success response must include "result" field',wr='JSON-RPC error response must include "error" field',yr='JSON RPC request must have valid "method" value',br='JSON RPC request must have valid "id" value',vr="Missing one of the required parameters: bridge / uri / session",Be="JSON RPC response format is invalid",Er="URI format is invalid",Sr="QRCode Modal not provided",We="User close QRCode Modal",Cr=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],kr=["wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],we=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign",...kr],ue="WALLETCONNECT_DEEPLINK_CHOICE",xr={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"};var ht=ye;ye.strict=ft;ye.loose=_t;var Ir=Object.prototype.toString,Rr={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function ye(t){return ft(t)||_t(t)}function ft(t){return t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array}function _t(t){return Rr[Ir.call(t)]}const Tr=pe(ht);var Or=ht.strict,Nr=function(e){if(Or(e)){var n=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(n=n.slice(e.byteOffset,e.byteOffset+e.byteLength)),n}else return Buffer.from(e)};const Mr=pe(Nr),be="hex",ve="utf8",Lr="binary",qr="buffer",Ar="array",Ur="typed-array",Pr="array-buffer",te="0";function j(t){return new Uint8Array(t)}function Ee(t,e=!1){const n=t.toString(be);return e?J(n):n}function Se(t){return t.toString(ve)}function pt(t){return t.readUIntBE(0,t.length)}function W(t){return Mr(t)}function N(t,e=!1){return Ee(W(t),e)}function gt(t){return Se(W(t))}function mt(t){return pt(W(t))}function Ce(t){return Buffer.from(B(t),be)}function M(t){return j(Ce(t))}function Dr(t){return Se(Ce(t))}function $r(t){return mt(M(t))}function ke(t){return Buffer.from(t,ve)}function wt(t){return j(ke(t))}function jr(t,e=!1){return Ee(ke(t),e)}function Br(t){const e=parseInt(t,10);return io(oo(e),"Number can only safely store up to 53 bits"),e}function Wr(t){return Qr(xe(t))}function Fr(t){return Ie(xe(t))}function Hr(t,e){return Jr(xe(t),e)}function zr(t){return`${t}`}function xe(t){const e=(t>>>0).toString(2);return Te(e)}function Qr(t){return W(Ie(t))}function Ie(t){return new Uint8Array(Xr(t).map(e=>parseInt(e,2)))}function Jr(t,e){return N(Ie(t),e)}function Vr(t){return!(typeof t!="string"||!new RegExp(/^[01]+$/).test(t)||t.length%8!==0)}function yt(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}function ne(t){return Buffer.isBuffer(t)}function Re(t){return Tr.strict(t)&&!ne(t)}function bt(t){return!Re(t)&&!ne(t)&&typeof t.byteLength<"u"}function Gr(t){return ne(t)?qr:Re(t)?Ur:bt(t)?Pr:Array.isArray(t)?Ar:typeof t}function Yr(t){return Vr(t)?Lr:yt(t)?be:ve}function Kr(...t){return Buffer.concat(t)}function vt(...t){let e=[];return t.forEach(n=>e=e.concat(Array.from(n))),new Uint8Array([...e])}function Zr(t,e=8){const n=t%e;return n?(t-n)/e*e+e:t}function Xr(t,e=8){const n=Te(t).match(new RegExp(`.{${e}}`,"gi"));return Array.from(n||[])}function Te(t,e=8,n=te){return eo(t,Zr(t.length,e),n)}function eo(t,e,n=te){return so(t,e,!0,n)}function B(t){return t.replace(/^0x/,"")}function J(t){return t.startsWith("0x")?t:`0x${t}`}function to(t){return t=B(t),t=Te(t,2),t&&(t=J(t)),t}function no(t){const e=t.startsWith("0x");return t=B(t),t=t.startsWith(te)?t.substring(1):t,e?J(t):t}function ro(t){return typeof t>"u"}function oo(t){return!ro(t)}function io(t,e){if(!t)throw new Error(e)}function so(t,e,n,r=te){const o=e-t.length;let i=t;if(o>0){const d=r.repeat(o);i=n?d+t:t+d}return i}function Z(t){return W(new Uint8Array(t))}function ao(t){return gt(new Uint8Array(t))}function Et(t,e){return N(new Uint8Array(t),!e)}function co(t){return mt(new Uint8Array(t))}function lo(...t){return M(t.map(e=>N(new Uint8Array(e))).join("")).buffer}function St(t){return j(t).buffer}function uo(t){return Se(t)}function ho(t,e){return Ee(t,!e)}function fo(t){return pt(t)}function _o(...t){return Kr(...t)}function po(t){return wt(t).buffer}function go(t){return ke(t)}function mo(t,e){return jr(t,!e)}function wo(t){return Br(t)}function yo(t){return Ce(t)}function Ct(t){return M(t).buffer}function bo(t){return Dr(t)}function vo(t){return $r(t)}function Eo(t){return Wr(t)}function So(t){return Fr(t).buffer}function Co(t){return zr(t)}function kt(t,e){return Hr(Number(t),!e)}const ko=zn,xo=Qn,Io=Jn,Ro=Vn,To=Gn,xt=Hn,Oo=Yn,It=Wn,No=Kn,Mo=Zn,Lo=Xn,re=Fn;function oe(t){return er(t)}function ie(){const t=oe();return t&&t.os?t.os:void 0}function Rt(){const t=ie();return t?t.toLowerCase().includes("android"):!1}function Tt(){const t=ie();return t?t.toLowerCase().includes("ios")||t.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function Ot(){return ie()?Rt()||Tt():!1}function Nt(){const t=oe();return t&&t.name?t.name.toLowerCase()==="node":!1}function Mt(){return!Nt()&&!!xt()}const Lt=sr,qt=ar;function Oe(t,e){const n=qt(e),r=re();r&&r.setItem(t,n)}function Ne(t){let e=null,n=null;const r=re();return r&&(n=r.getItem(t)),e=n&&Lt(n),e}function Me(t){const e=re();e&&e.removeItem(t)}function de(){return tr()}function qo(t){return to(t)}function Ao(t){return J(t)}function Uo(t){return B(t)}function Po(t){return no(J(t))}const At=cr;function Y(){return((e,n)=>{for(n=e="";e++<36;n+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return n})()}function Do(){console.warn("DEPRECATION WARNING: This WalletConnect client library will be deprecated in favor of @walletconnect/client. Please check docs.walletconnect.org to learn more about this migration!")}function Ut(t,e){let n;const r=xr[t];return r&&(n=`https://${r}.infura.io/v3/${e}`),n}function Pt(t,e){let n;const r=Ut(t,e.infuraId);return e.custom&&e.custom[t]?n=e.custom[t]:r&&(n=r),n}function $o(t,e){const n=encodeURIComponent(t);return e.universalLink?`${e.universalLink}/wc?uri=${n}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${n}`:""}function jo(t){const e=t.href.split("?")[0];Oe(ue,Object.assign(Object.assign({},t),{href:e}))}function Dt(t,e){return t.filter(n=>n.name.toLowerCase().includes(e.toLowerCase()))[0]}function Bo(t,e){let n=t;return e&&(n=e.map(r=>Dt(t,r)).filter(Boolean)),n}function Wo(t,e){return async(...r)=>new Promise((o,i)=>{const d=(f,p)=>{(f===null||typeof f>"u")&&i(f),o(p)};t.apply(e,[...r,d])})}function $t(t){const e=t.message||"Failed or Rejected Request";let n=-32e3;if(t&&!t.code)switch(e){case"Parse error":n=-32700;break;case"Invalid request":n=-32600;break;case"Method not found":n=-32601;break;case"Invalid params":n=-32602;break;case"Internal error":n=-32603;break;default:n=-32e3;break}const r={code:n,message:e};return t.data&&(r.data=t.data),r}const jt="https://registry.walletconnect.com";function Fo(){return jt+"/api/v2/wallets"}function Ho(){return jt+"/api/v2/dapps"}function Bt(t,e="mobile"){var n;return{name:t.name||"",shortName:t.metadata.shortName||"",color:t.metadata.colors.primary||"",logo:(n=t.image_url.sm)!==null&&n!==void 0?n:"",universalLink:t[e].universal||"",deepLink:t[e].native||""}}function zo(t,e="mobile"){return Object.values(t).filter(n=>!!n[e].universal||!!n[e].native).map(n=>Bt(n,e))}var Le={};(function(t){const e=or,n=ir,r=nr,o=rr,i=s=>s==null;function d(s){switch(s.arrayFormat){case"index":return a=>(u,c)=>{const h=u.length;return c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,[g(a,s),"[",h,"]"].join("")]:[...u,[g(a,s),"[",g(h,s),"]=",g(c,s)].join("")]};case"bracket":return a=>(u,c)=>c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,[g(a,s),"[]"].join("")]:[...u,[g(a,s),"[]=",g(c,s)].join("")];case"comma":case"separator":return a=>(u,c)=>c==null||c.length===0?u:u.length===0?[[g(a,s),"=",g(c,s)].join("")]:[[u,g(c,s)].join(s.arrayFormatSeparator)];default:return a=>(u,c)=>c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,g(a,s)]:[...u,[g(a,s),"=",g(c,s)].join("")]}}function f(s){let a;switch(s.arrayFormat){case"index":return(u,c,h)=>{if(a=/\[(\d*)\]$/.exec(u),u=u.replace(/\[\d*\]$/,""),!a){h[u]=c;return}h[u]===void 0&&(h[u]={}),h[u][a[1]]=c};case"bracket":return(u,c,h)=>{if(a=/(\[\])$/.exec(u),u=u.replace(/\[\]$/,""),!a){h[u]=c;return}if(h[u]===void 0){h[u]=[c];return}h[u]=[].concat(h[u],c)};case"comma":case"separator":return(u,c,h)=>{const m=typeof c=="string"&&c.includes(s.arrayFormatSeparator),_=typeof c=="string"&&!m&&w(c,s).includes(s.arrayFormatSeparator);c=_?w(c,s):c;const v=m||_?c.split(s.arrayFormatSeparator).map(T=>w(T,s)):c===null?c:w(c,s);h[u]=v};default:return(u,c,h)=>{if(h[u]===void 0){h[u]=c;return}h[u]=[].concat(h[u],c)}}}function p(s){if(typeof s!="string"||s.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function g(s,a){return a.encode?a.strict?e(s):encodeURIComponent(s):s}function w(s,a){return a.decode?n(s):s}function y(s){return Array.isArray(s)?s.sort():typeof s=="object"?y(Object.keys(s)).sort((a,u)=>Number(a)-Number(u)).map(a=>s[a]):s}function b(s){const a=s.indexOf("#");return a!==-1&&(s=s.slice(0,a)),s}function C(s){let a="";const u=s.indexOf("#");return u!==-1&&(a=s.slice(u)),a}function k(s){s=b(s);const a=s.indexOf("?");return a===-1?"":s.slice(a+1)}function I(s,a){return a.parseNumbers&&!Number.isNaN(Number(s))&&typeof s=="string"&&s.trim()!==""?s=Number(s):a.parseBooleans&&s!==null&&(s.toLowerCase()==="true"||s.toLowerCase()==="false")&&(s=s.toLowerCase()==="true"),s}function R(s,a){a=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},a),p(a.arrayFormatSeparator);const u=f(a),c=Object.create(null);if(typeof s!="string"||(s=s.trim().replace(/^[?#&]/,""),!s))return c;for(const h of s.split("&")){if(h==="")continue;let[m,_]=r(a.decode?h.replace(/\+/g," "):h,"=");_=_===void 0?null:["comma","separator"].includes(a.arrayFormat)?_:w(_,a),u(w(m,a),_,c)}for(const h of Object.keys(c)){const m=c[h];if(typeof m=="object"&&m!==null)for(const _ of Object.keys(m))m[_]=I(m[_],a);else c[h]=I(m,a)}return a.sort===!1?c:(a.sort===!0?Object.keys(c).sort():Object.keys(c).sort(a.sort)).reduce((h,m)=>{const _=c[m];return _&&typeof _=="object"&&!Array.isArray(_)?h[m]=y(_):h[m]=_,h},Object.create(null))}t.extract=k,t.parse=R,t.stringify=(s,a)=>{if(!s)return"";a=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},a),p(a.arrayFormatSeparator);const u=_=>a.skipNull&&i(s[_])||a.skipEmptyString&&s[_]==="",c=d(a),h={};for(const _ of Object.keys(s))u(_)||(h[_]=s[_]);const m=Object.keys(h);return a.sort!==!1&&m.sort(a.sort),m.map(_=>{const v=s[_];return v===void 0?"":v===null?g(_,a):Array.isArray(v)?v.reduce(c(_),[]).join("&"):g(_,a)+"="+g(v,a)}).filter(_=>_.length>0).join("&")},t.parseUrl=(s,a)=>{a=Object.assign({decode:!0},a);const[u,c]=r(s,"#");return Object.assign({url:u.split("?")[0]||"",query:R(k(s),a)},a&&a.parseFragmentIdentifier&&c?{fragmentIdentifier:w(c,a)}:{})},t.stringifyUrl=(s,a)=>{a=Object.assign({encode:!0,strict:!0},a);const u=b(s.url).split("?")[0]||"",c=t.extract(s.url),h=t.parse(c,{sort:!1}),m=Object.assign(h,s.query);let _=t.stringify(m,a);_&&(_=`?${_}`);let v=C(s.url);return s.fragmentIdentifier&&(v=`#${g(s.fragmentIdentifier,a)}`),`${u}${_}${v}`},t.pick=(s,a,u)=>{u=Object.assign({parseFragmentIdentifier:!0},u);const{url:c,query:h,fragmentIdentifier:m}=t.parseUrl(s,u);return t.stringifyUrl({url:c,query:o(h,a),fragmentIdentifier:m},u)},t.exclude=(s,a,u)=>{const c=Array.isArray(a)?h=>!a.includes(h):(h,m)=>!a(h,m);return t.pick(s,c,u)}})(Le);function Wt(t){const e=t.indexOf("?")!==-1?t.indexOf("?"):void 0;return typeof e<"u"?t.substr(e):""}function Ft(t,e){let n=qe(t);return n=Object.assign(Object.assign({},n),e),t=Ht(n),t}function qe(t){return Le.parse(t)}function Ht(t){return Le.stringify(t)}function zt(t){return typeof t.bridge<"u"}function Qt(t){const e=t.indexOf(":"),n=t.indexOf("?")!==-1?t.indexOf("?"):void 0,r=t.substring(0,e),o=t.substring(e+1,n);function i(y){const b="@",C=y.split(b);return{handshakeTopic:C[0],version:parseInt(C[1],10)}}const d=i(o),f=typeof n<"u"?t.substr(n):"";function p(y){const b=qe(y);return{key:b.key||"",bridge:b.bridge||""}}const g=p(f);return Object.assign(Object.assign({protocol:r},d),g)}function Qo(t){return t===""||typeof t=="string"&&t.trim()===""}function Jo(t){return!(t&&t.length)}function Vo(t){return ne(t)}function Go(t){return Re(t)}function Yo(t){return bt(t)}function Ko(t){return Gr(t)}function Zo(t){return Yr(t)}function Xo(t,e){return yt(t,e)}function ei(t){return typeof t.params=="object"}function Jt(t){return typeof t.method<"u"}function P(t){return typeof t.result<"u"}function z(t){return typeof t.error<"u"}function he(t){return typeof t.event<"u"}function Vt(t){return Cr.includes(t)||t.startsWith("wc_")}function Gt(t){return t.method.startsWith("wc_")?!0:!we.includes(t.method)}const ti=Object.freeze(Object.defineProperty({__proto__:null,addHexPrefix:Ao,appendToQueryString:Ft,concatArrayBuffers:lo,concatBuffers:_o,convertArrayBufferToBuffer:Z,convertArrayBufferToHex:Et,convertArrayBufferToNumber:co,convertArrayBufferToUtf8:ao,convertBufferToArrayBuffer:St,convertBufferToHex:ho,convertBufferToNumber:fo,convertBufferToUtf8:uo,convertHexToArrayBuffer:Ct,convertHexToBuffer:yo,convertHexToNumber:vo,convertHexToUtf8:bo,convertNumberToArrayBuffer:So,convertNumberToBuffer:Eo,convertNumberToHex:kt,convertNumberToUtf8:Co,convertUtf8ToArrayBuffer:po,convertUtf8ToBuffer:go,convertUtf8ToHex:mo,convertUtf8ToNumber:wo,detectEnv:oe,detectOS:ie,formatIOSMobile:$o,formatMobileRegistry:zo,formatMobileRegistryEntry:Bt,formatQueryString:Ht,formatRpcError:$t,getClientMeta:de,getCrypto:Mo,getCryptoOrThrow:No,getDappRegistryUrl:Ho,getDocument:Ro,getDocumentOrThrow:Io,getEncoding:Zo,getFromWindow:ko,getFromWindowOrThrow:xo,getInfuraRpcUrl:Ut,getLocal:Ne,getLocalStorage:re,getLocalStorageOrThrow:Lo,getLocation:It,getLocationOrThrow:Oo,getMobileLinkRegistry:Bo,getMobileRegistryEntry:Dt,getNavigator:xt,getNavigatorOrThrow:To,getQueryString:Wt,getRpcUrl:Pt,getType:Ko,getWalletRegistryUrl:Fo,isAndroid:Rt,isArrayBuffer:Yo,isBrowser:Mt,isBuffer:Vo,isEmptyArray:Jo,isEmptyString:Qo,isHexString:Xo,isIOS:Tt,isInternalEvent:he,isJsonRpcRequest:Jt,isJsonRpcResponseError:z,isJsonRpcResponseSuccess:P,isJsonRpcSubscription:ei,isMobile:Ot,isNode:Nt,isReservedEvent:Vt,isSilentPayload:Gt,isTypedArray:Go,isWalletConnectSession:zt,logDeprecationWarning:Do,parseQueryString:qe,parseWalletConnectUri:Qt,payloadId:At,promisify:Wo,removeHexLeadingZeros:Po,removeHexPrefix:Uo,removeLocal:Me,safeJsonParse:Lt,safeJsonStringify:qt,sanitizeHex:qo,saveMobileLinkInfo:jo,setLocal:Oe,uuid:Y},Symbol.toStringTag,{value:"Module"}));class ni{constructor(){this._eventEmitters=[],typeof window<"u"&&typeof window.addEventListener<"u"&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(e,n){this._eventEmitters.push({event:e,callback:n})}trigger(e){let n=[];e&&(n=this._eventEmitters.filter(r=>r.event===e)),n.forEach(r=>{r.callback()})}}const ri=typeof global.WebSocket<"u"?global.WebSocket:require("ws");class oi{constructor(e){if(this.opts=e,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=e.protocol,this._version=e.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=e.subscriptions||[],this._netMonitor=e.netMonitor||new ni,!e.url||typeof e.url!="string")throw new Error("Missing or invalid WebSocket url");this._url=e.url,this._netMonitor.on("online",()=>this._socketCreate())}set readyState(e){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(e){}get connecting(){return this.readyState===0}set connected(e){}get connected(){return this.readyState===1}set closing(e){}get closing(){return this.readyState===2}set closed(e){}get closed(){return this.readyState===3}open(){this._socketCreate()}close(){this._socketClose()}send(e,n,r){if(!n||typeof n!="string")throw new Error("Missing or invalid topic field");this._socketSend({topic:n,type:"pub",payload:e,silent:!!r})}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,n){this._events.push({event:e,callback:n})}_socketCreate(){if(this._nextSocket)return;const e=ii(this._url,this._protocol,this._version);if(this._nextSocket=new ri(e),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=n=>this._socketReceive(n),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=n=>this._socketError(n),this._nextSocket.onclose=()=>{setTimeout(()=>{this._nextSocket=null,this._socketCreate()},1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(e){const n=JSON.stringify(e);this._socket&&this._socket.readyState===1?this._socket.send(n):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let n;try{n=JSON.parse(e.data)}catch{return}if(this._socketSend({topic:n.topic,type:"ack",payload:"",silent:!0}),this._socket&&this._socket.readyState===1){const r=this._events.filter(o=>o.event==="message");r&&r.length&&r.forEach(o=>o.callback(n))}}_socketError(e){const n=this._events.filter(r=>r.event==="error");n&&n.length&&n.forEach(r=>r.callback(e))}_queueSubscriptions(){this._subscriptions.forEach(n=>this._queue.push({topic:n,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach(n=>this._socketSend(n)),this._queue=[]}}function ii(t,e,n){var r,o;const d=(t.startsWith("https")?t.replace("https","wss"):t.startsWith("http")?t.replace("http","ws"):t).split("?"),f=Mt()?{protocol:e,version:n,env:"browser",host:((r=It())===null||r===void 0?void 0:r.host)||""}:{protocol:e,version:n,env:((o=oe())===null||o===void 0?void 0:o.name)||""},p=Ft(Wt(d[1]||""),f);return d[0]+"?"+p}class si{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter(n=>n.event!==e)}trigger(e){let n=[],r;Jt(e)?r=e.method:P(e)||z(e)?r=`response:${e.id}`:he(e)?r=e.event:r="",r&&(n=this._eventEmitters.filter(o=>o.event===r)),(!n||!n.length)&&!Vt(r)&&!he(r)&&(n=this._eventEmitters.filter(o=>o.event==="call_request")),n.forEach(o=>{if(z(e)){const i=new Error(e.error.message);o.callback(i,null)}else o.callback(null,e)})}}class ai{constructor(e="walletconnect"){this.storageId=e}getSession(){let e=null;const n=Ne(this.storageId);return n&&zt(n)&&(e=n),e}setSession(e){return Oe(this.storageId,e),e}removeSession(){Me(this.storageId)}}const ci="walletconnect.org",li="abcdefghijklmnopqrstuvwxyz0123456789",Yt=li.split("").map(t=>`https://${t}.bridge.walletconnect.org`);function ui(t){let e=t.indexOf("//")>-1?t.split("/")[2]:t.split("/")[0];return e=e.split(":")[0],e=e.split("?")[0],e}function di(t){return ui(t).split(".").slice(-2).join(".")}function hi(){return Math.floor(Math.random()*Yt.length)}function fi(){return Yt[hi()]}function _i(t){return di(t)===ci}function pi(t){return _i(t)?fi():t}class gi{constructor(e){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new si,this._clientMeta=de()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new ai(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...we,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw new Error(vr);e.connectorOpts.bridge&&(this.bridge=pi(e.connectorOpts.bridge)),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);const n=e.connectorOpts.session||this._getStorageSession();n&&(this.session=n),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new oi({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),e.connectorOpts.uri&&this._subscribeToSessionRequest(),e.pushServerOpts&&this._registerPushServer(e.pushServerOpts)}set bridge(e){e&&(this._bridge=e)}get bridge(){return this._bridge}set key(e){if(!e)return;const n=Ct(e);this._key=n}get key(){return this._key?Et(this._key,!0):""}set clientId(e){e&&(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=Y()),this._clientId}set peerId(e){e&&(this._peerId=e)}get peerId(){return this._peerId}set clientMeta(e){}get clientMeta(){let e=this._clientMeta;return e||(e=this._clientMeta=de()),e}set peerMeta(e){this._peerMeta=e}get peerMeta(){return this._peerMeta}set handshakeTopic(e){e&&(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){e&&(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(e){if(!e)return;const{handshakeTopic:n,bridge:r,key:o}=this._parseUri(e);this.handshakeTopic=n,this.bridge=r,this.key=o}set chainId(e){this._chainId=e}get chainId(){return this._chainId}set networkId(e){this._networkId=e}get networkId(){return this._networkId}set accounts(e){this._accounts=e}get accounts(){return this._accounts}set rpcUrl(e){this._rpcUrl=e}get rpcUrl(){return this._rpcUrl}set connected(e){}get connected(){return this._connected}set pending(e){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){e&&(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}on(e,n){const r={event:e,callback:n};this._eventManager.subscribe(r)}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();const n=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=n.id,this.handshakeTopic=Y(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw new Error(We)});const r=()=>{this.killSession()};try{const o=await this._sendCallRequest(n);return o&&r(),o}catch(o){throw r(),o}}async connect(e){if(!this._qrcodeModal)throw new Error(Sr);return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise(async(n,r)=>{this.on("modal_closed",()=>r(new Error(We))),this.on("connect",(o,i)=>{if(o)return r(o);n(i.params[0])})}))}async createSession(e){if(this._connected)throw new Error(ae);if(this.pending)return;this._key=await this._generateKey();const n=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=n.id,this.handshakeTopic=Y(),this._sendSessionRequest(n,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw new Error(ae);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const n={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},r={id:this.handshakeId,jsonrpc:"2.0",result:n};this._sendResponse(r),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(e){if(this._connected)throw new Error(ae);const n=e&&e.message?e.message:pr,r=this._formatResponse({id:this.handshakeId,error:{message:n}});this._sendResponse(r),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:n}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw new Error(q);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const n={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},r=this._formatRequest({method:"wc_sessionUpdate",params:[n]});this._sendSessionRequest(r,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){const n=e?e.message:"Session Disconnected",r={approved:!1,chainId:null,networkId:null,accounts:null},o=this._formatRequest({method:"wc_sessionUpdate",params:[r]});await this._sendRequest(o),this._handleSessionDisconnect(n)}async sendTransaction(e){if(!this._connected)throw new Error(q);const n=e,r=this._formatRequest({method:"eth_sendTransaction",params:[n]});return await this._sendCallRequest(r)}async signTransaction(e){if(!this._connected)throw new Error(q);const n=e,r=this._formatRequest({method:"eth_signTransaction",params:[n]});return await this._sendCallRequest(r)}async signMessage(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"eth_sign",params:e});return await this._sendCallRequest(n)}async signPersonalMessage(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"personal_sign",params:e});return await this._sendCallRequest(n)}async signTypedData(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"eth_signTypedData",params:e});return await this._sendCallRequest(n)}async updateChain(e){if(!this._connected)throw new Error("Session currently disconnected");const n=this._formatRequest({method:"wallet_updateChain",params:[e]});return await this._sendCallRequest(n)}unsafeSend(e,n){return this._sendRequest(e,n),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:n}]}),new Promise((r,o)=>{this._subscribeToResponse(e.id,(i,d)=>{if(i){o(i);return}if(!d)throw new Error(gr);r(d)})})}async sendCustomRequest(e,n){if(!this._connected)throw new Error(q);switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return kt(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":e.params;break;case"personal_sign":e.params;break}const r=this._formatRequest(e);return await this._sendCallRequest(r,n)}approveRequest(e){if(P(e)){const n=this._formatResponse(e);this._sendResponse(n)}else throw new Error(mr)}rejectRequest(e){if(z(e)){const n=this._formatResponse(e);this._sendResponse(n)}else throw new Error(wr)}transportClose(){this._transport.close()}async _sendRequest(e,n){const r=this._formatRequest(e),o=await this._encrypt(r),i=typeof(n==null?void 0:n.topic)<"u"?n.topic:this.peerId,d=JSON.stringify(o),f=typeof(n==null?void 0:n.forcePushNotification)<"u"?!n.forcePushNotification:Gt(r);this._transport.send(d,i,f)}async _sendResponse(e){const n=await this._encrypt(e),r=this.peerId,o=JSON.stringify(n),i=!0;this._transport.send(o,r,i)}async _sendSessionRequest(e,n,r){this._sendRequest(e,r),this._subscribeToSessionResponse(e.id,n)}_sendCallRequest(e,n){return this._sendRequest(e,n),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:n}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(typeof e.method>"u")throw new Error(yr);return{id:typeof e.id>"u"?At():e.id,jsonrpc:"2.0",method:e.method,params:typeof e.params>"u"?[]:e.params}}_formatResponse(e){if(typeof e.id>"u")throw new Error(br);const n={id:e.id,jsonrpc:"2.0"};if(z(e)){const r=$t(e.error);return Object.assign(Object.assign(Object.assign({},n),e),{error:r})}else if(P(e))return Object.assign(Object.assign({},n),e);throw new Error(Be)}_handleSessionDisconnect(e){const n=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),Me(ue)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:n}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,n){n?n.approved?(this._connected?(n.chainId&&(this.chainId=n.chainId),n.accounts&&(this.accounts=n.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,n.chainId&&(this.chainId=n.chainId),n.accounts&&(this.accounts=n.accounts),n.peerId&&!this.peerId&&(this.peerId=n.peerId),n.peerMeta&&!this.peerMeta&&(this.peerMeta=n.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e):this._handleSessionDisconnect(e)}async _handleIncomingMessages(e){if(![this.clientId,this.handshakeTopic].includes(e.topic))return;let r;try{r=JSON.parse(e.payload)}catch{return}const o=await this._decrypt(r);o&&this._eventManager.trigger(o)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,n){this.on(`response:${e}`,n)}_subscribeToSessionResponse(e,n){this._subscribeToResponse(e,(r,o)=>{if(r){this._handleSessionResponse(r.message);return}P(o)?this._handleSessionResponse(n,o.result):o.error&&o.error.message?this._handleSessionResponse(o.error.message):this._handleSessionResponse(n)})}_subscribeToCallResponse(e){return new Promise((n,r)=>{this._subscribeToResponse(e,(o,i)=>{if(o){r(o);return}P(i)?n(i.result):i.error&&i.error.message?r(i.error):r(new Error(Be))})})}_subscribeToInternalEvents(){this.on("display_uri",()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,()=>{this._eventManager.trigger({event:"modal_closed",params:[]})},this._qrcodeModalOptions)}),this.on("connect",()=>{this._qrcodeModal&&this._qrcodeModal.close()}),this.on("call_request_sent",(e,n)=>{const{request:r}=n.params[0];if(Ot()&&this._signingMethods.includes(r.method)){const o=Ne(ue);o&&(window.location.href=o.href)}}),this.on("wc_sessionRequest",(e,n)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=n.id,this.peerId=n.params[0].peerId,this.peerMeta=n.params[0].peerMeta;const r=Object.assign(Object.assign({},n),{method:"session_request"});this._eventManager.trigger(r)}),this.on("wc_sessionUpdate",(e,n)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",n.params[0])})}_initTransport(){this._transport.on("message",e=>this._handleIncomingMessages(e)),this._transport.on("open",()=>this._eventManager.trigger({event:"transport_open",params:[]})),this._transport.on("close",()=>this._eventManager.trigger({event:"transport_close",params:[]})),this._transport.on("error",()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})),this._transport.open()}_formatUri(){const e=this.protocol,n=this.handshakeTopic,r=this.version,o=encodeURIComponent(this.bridge),i=this.key;return`${e}:${n}@${r}?bridge=${o}&key=${i}`}_parseUri(e){const n=Qt(e);if(n.protocol===this.protocol){if(!n.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");const r=n.handshakeTopic;if(!n.bridge)throw Error("Invalid or missing bridge url parameter value");const o=decodeURIComponent(n.bridge);if(!n.key)throw Error("Invalid or missing key parameter value");const i=n.key;return{handshakeTopic:r,bridge:o,key:i}}else throw new Error(Er)}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(e){const n=this._key;return this._cryptoLib&&n?await this._cryptoLib.encrypt(e,n):null}async _decrypt(e){const n=this._key;return this._cryptoLib&&n?await this._cryptoLib.decrypt(e,n):null}_getStorageSession(){let e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(e){if(!e.url||typeof e.url!="string")throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||typeof e.type!="string")throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||typeof e.token!="string")throw Error("Invalid or missing pushServerOpts.token parameter value");const n={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",async(r,o)=>{if(r)throw r;if(e.peerMeta){const i=o.params[0].peerMeta.name;n.peerName=i}try{if(!(await(await fetch(`${e.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)})).json()).success)throw Error("Failed to register in Push Server")}catch{throw Error("Failed to register in Push Server")}})}}function mi(t){return Q.getBrowerCrypto().getRandomValues(new Uint8Array(t))}const Kt=256,Zt=Kt,wi=Kt,L="AES-CBC",yi=`SHA-${Zt}`,fe="HMAC",bi="encrypt",vi="decrypt",Ei="sign",Si="verify";function Ci(t){return t===L?{length:Zt,name:L}:{hash:{name:yi},name:fe}}function ki(t){return t===L?[bi,vi]:[Ei,Si]}async function Ae(t,e=L){return Q.getSubtleCrypto().importKey("raw",t,Ci(e),!0,ki(e))}async function xi(t,e,n){const r=Q.getSubtleCrypto(),o=await Ae(e,L),i=await r.encrypt({iv:t,name:L},o,n);return new Uint8Array(i)}async function Ii(t,e,n){const r=Q.getSubtleCrypto(),o=await Ae(e,L),i=await r.decrypt({iv:t,name:L},o,n);return new Uint8Array(i)}async function Ri(t,e){const n=Q.getSubtleCrypto(),r=await Ae(t,fe),o=await n.sign({length:wi,name:fe},r,e);return new Uint8Array(o)}function Ti(t,e,n){return xi(t,e,n)}function Oi(t,e,n){return Ii(t,e,n)}async function Xt(t,e){return await Ri(t,e)}async function en(t){const e=(t||256)/8,n=mi(e);return St(W(n))}async function tn(t,e){const n=M(t.data),r=M(t.iv),o=M(t.hmac),i=N(o,!1),d=vt(n,r),f=await Xt(e,d),p=N(f,!1);return B(i)===B(p)}async function Ni(t,e,n){const r=j(Z(e)),o=n||await en(128),i=j(Z(o)),d=N(i,!1),f=JSON.stringify(t),p=wt(f),g=await Ti(i,r,p),w=N(g,!1),y=vt(g,i),b=await Xt(r,y),C=N(b,!1);return{data:w,hmac:C,iv:d}}async function Mi(t,e){const n=j(Z(e));if(!n)throw new Error("Missing key: required for decryption");if(!await tn(t,n))return null;const o=M(t.data),i=M(t.iv),d=await Oi(i,n,o),f=gt(d);let p;try{p=JSON.parse(f)}catch{return null}return p}const Li=Object.freeze(Object.defineProperty({__proto__:null,decrypt:Mi,encrypt:Ni,generateKey:en,verifyHmac:tn},Symbol.toStringTag,{value:"Module"}));class qi extends gi{constructor(e,n){super({cryptoLib:Li,connectorOpts:e,pushServerOpts:n})}}const Ai=et(ti);var Ui=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=Fe[e.format]||Fe.default;window.clipboardData.setData(y,t)}else w.clipboardData.clearData(),w.clipboardData.setData(e.format,t);e.onCopy&&(w.preventDefault(),e.onCopy(w.clipboardData))}),document.body.appendChild(f),i.selectNodeContents(f),d.addRange(i);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");p=!0}catch(w){n&&console.error("unable to copy using execCommand: ",w),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),p=!0}catch(y){n&&console.error("unable to copy using clipboardData: ",y),n&&console.error("falling back to prompt"),r=$i("message"in e?e.message:Di),window.prompt(r,t)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(i):d.removeAllRanges()),f&&document.body.removeChild(f),o()}return p}var Bi=ji;function nn(t,e){for(var n in e)t[n]=e[n];return t}function _e(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function X(t){this.props=t}function rn(t,e){function n(o){var i=this.props.ref,d=i==o.ref;return!d&&i&&(i.call?i(null):i.current=null),e?!e(this.props,o)||!d:_e(this.props,o)}function r(o){return this.shouldComponentUpdate=n,x(t,o)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(X.prototype=new A).isPureReactComponent=!0,X.prototype.shouldComponentUpdate=function(t,e){return _e(this.props,t)||_e(this.state,e)};var He=S.__b;S.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),He&&He(t)};var Wi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function on(t){function e(n){var r=nn({},n);return delete r.ref,t(r,n.ref||null)}return e.$$typeof=Wi,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var ze=function(t,e){return t==null?null:O(O(t).map(e))},sn={map:ze,forEach:ze,count:function(t){return t?O(t).length:0},only:function(t){var e=O(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:O},Fi=S.__e;S.__e=function(t,e,n,r){if(t.then){for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),o.__c(t,e)}Fi(t,e,n,r)};var Qe=S.unmount;function an(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=nn({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return an(r,e,n)})),t}function cn(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return cn(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function H(){this.__u=0,this.t=null,this.__b=null}function ln(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function un(t){var e,n,r;function o(i){if(e||(e=t()).then(function(d){n=d.default||d},function(d){r=d}),r)throw r;if(!n)throw e;return x(n,i)}return o.displayName="Lazy",o.__f=!0,o}function D(){this.u=null,this.o=null}S.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Qe&&Qe(t)},(H.prototype=new A).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=ln(r.__v),i=!1,d=function(){i||(i=!0,n.__R=null,o?o(f):f())};n.__R=d;var f=function(){if(!--r.__u){if(r.state.__a){var p=r.state.__a;r.__v.__k[0]=cn(p,p.__c.__P,p.__c.__O)}var g;for(r.setState({__a:r.__b=null});g=r.t.pop();)g.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(d,d)},H.prototype.componentWillUnmount=function(){this.t=[]},H.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=an(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__a&&x($,null,t.fallback);return o&&(o.__u&=-33),[x($,null,e.__a?null:t.children),o]};var Je=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(r)}}),K(x(Hi,{context:e.context},t.__v),e.l)}function dn(t,e){var n=x(zi,{__v:t,i:e});return n.containerInfo=e,n}(D.prototype=new A).__a=function(t){var e=this,n=ln(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),Je(e,t,r)):o()};n?n(i):i()}},D.prototype.render=function(t){this.u=null,this.o=new Map;var e=O(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},D.prototype.componentDidUpdate=D.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Je(t,n,e)})};var hn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Qi=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ji=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Vi=/[A-Z0-9]/g,Gi=typeof document<"u",Yi=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function fn(t,e,n){return e.__k==null&&(e.textContent=""),K(t,e),typeof n=="function"&&n(),t?t.__c:null}function _n(t,e,n){return hr(t,e),typeof n=="function"&&n(),t?t.__c:null}A.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(A.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Ve=S.event;function Ki(){}function Zi(){return this.cancelBubble}function Xi(){return this.defaultPrevented}S.event=function(t){return Ve&&(t=Ve(t)),t.persist=Ki,t.isPropagationStopped=Zi,t.isDefaultPrevented=Xi,t.nativeEvent=t};var Ue,es={enumerable:!1,configurable:!0,get:function(){return this.class}},Ge=S.vnode;S.vnode=function(t){typeof t.type=="string"&&function(e){var n=e.props,r=e.type,o={};for(var i in n){var d=n[i];if(!(i==="value"&&"defaultValue"in n&&d==null||Gi&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var f=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&d===!0?d="":f==="ondoubleclick"?i="ondblclick":f!=="onchange"||r!=="input"&&r!=="textarea"||Yi(n.type)?f==="onfocus"?i="onfocusin":f==="onblur"?i="onfocusout":Ji.test(i)?i=f:r.indexOf("-")===-1&&Qi.test(i)?i=i.replace(Vi,"-$&").toLowerCase():d===null&&(d=void 0):f=i="oninput",f==="oninput"&&o[i=f]&&(i="oninputCapture"),o[i]=d}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=O(n.children).forEach(function(p){p.props.selected=o.value.indexOf(p.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=O(n.children).forEach(function(p){p.props.selected=o.multiple?o.defaultValue.indexOf(p.props.value)!=-1:o.defaultValue==p.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",es)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),e.props=o}(t),t.$$typeof=hn,Ge&&Ge(t)};var Ye=S.__r;S.__r=function(t){Ye&&Ye(t),Ue=t.__c};var Ke=S.diffed;S.diffed=function(t){Ke&&Ke(t);var e=t.props,n=t.__e;n!=null&&t.type==="textarea"&&"value"in e&&e.value!==n.value&&(n.value=e.value==null?"":e.value),Ue=null};var pn={ReactCurrentDispatcher:{current:{readContext:function(t){return Ue.__n[t.__c].props.value}}}},ts="17.0.2";function gn(t){return x.bind(null,t)}function V(t){return!!t&&t.$$typeof===hn}function mn(t){return V(t)&&t.type===$}function wn(t){return V(t)?fr.apply(null,arguments):t}function yn(t){return!!t.__k&&(K(null,t),!0)}function bn(t){return t&&(t.base||t.nodeType===1&&t)||null}var vn=function(t,e){return t(e)},En=function(t,e){return t(e)},Sn=$;function Pe(t){t()}function Cn(t){return t}function kn(){return[!1,Pe]}var xn=ee,In=V;function Rn(t,e){var n=e(),r=ge({h:{__:n,v:e}}),o=r[0].h,i=r[1];return ee(function(){o.__=n,o.v=e,ce(o)&&i({h:o})},[t,n,e]),me(function(){return ce(o)&&i({h:o}),t(function(){ce(o)&&i({h:o})})},[t]),n}function ce(t){var e,n,r=t.v,o=t.__;try{var i=r();return!((e=o)===(n=i)&&(e!==0||1/e==1/n)||e!=e&&n!=n)}catch{return!0}}var ns={useState:ge,useId:nt,useReducer:rt,useEffect:me,useLayoutEffect:ee,useInsertionEffect:xn,useTransition:kn,useDeferredValue:Cn,useSyncExternalStore:Rn,startTransition:Pe,useRef:ot,useImperativeHandle:it,useMemo:st,useCallback:at,useContext:ct,useDebugValue:lt,version:"17.0.2",Children:sn,render:fn,hydrate:_n,unmountComponentAtNode:yn,createPortal:dn,createElement:x,createContext:ut,createFactory:gn,cloneElement:wn,createRef:dt,Fragment:$,isValidElement:V,isElement:In,isFragment:mn,findDOMNode:bn,Component:A,PureComponent:X,memo:rn,forwardRef:on,flushSync:En,unstable_batchedUpdates:vn,StrictMode:Sn,Suspense:H,SuspenseList:D,lazy:un,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pn};const rs=Object.freeze(Object.defineProperty({__proto__:null,Children:sn,Component:A,Fragment:$,PureComponent:X,StrictMode:Sn,Suspense:H,SuspenseList:D,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pn,cloneElement:wn,createContext:ut,createElement:x,createFactory:gn,createPortal:dn,createRef:dt,default:ns,findDOMNode:bn,flushSync:En,forwardRef:on,hydrate:_n,isElement:In,isFragment:mn,isValidElement:V,lazy:un,memo:rn,render:fn,startTransition:Pe,unmountComponentAtNode:yn,unstable_batchedUpdates:vn,useCallback:at,useContext:ct,useDebugValue:lt,useDeferredValue:Cn,useEffect:me,useErrorBoundary:_r,useId:nt,useImperativeHandle:it,useInsertionEffect:xn,useLayoutEffect:ee,useMemo:st,useReducer:rt,useRef:ot,useState:ge,useSyncExternalStore:Rn,useTransition:kn,version:ts},Symbol.toStringTag,{value:"Module"})),os=et(rs);function Tn(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var E=Ai,On=Tn(dr),is=Tn(Bi),l=os;function ss(t){On.toString(t,{type:"terminal"}).then(console.log)}var as=`:root { +import{q as pe,aD as Wn,aE as Fn,aF as Hn,aG as zn,aH as Qn,aI as Jn,aJ as Vn,aK as Gn,aL as Yn,aM as Kn,aN as Zn,aO as Xn,aP as er,aQ as tr,aR as nr,aS as rr,aT as or,aU as ir,f as et,E as tt}from"./index-Mh1_DVck.js";import{a as sr,s as ar,m as cr,c as Q,I as lr,f as $e,J as je,H as ur}from"./http-n9NI3oC7.js";import{b as dr}from"./browser-DNUtfqGr.js";import{b as A,l as S,y as x,g as $,$ as O,q as K,B as hr,E as fr,a as ee,c as ge,d as me,V as nt,s as rt,_ as ot,A as it,F as st,T as at,e as ct,x as lt,f as ut,i as dt,P as _r}from"./hooks.module-o1hAt1ko.js";const ae="Session currently connected",q="Session currently disconnected",pr="Session Rejected",gr="Missing JSON RPC response",mr='JSON-RPC success response must include "result" field',wr='JSON-RPC error response must include "error" field',yr='JSON RPC request must have valid "method" value',br='JSON RPC request must have valid "id" value',vr="Missing one of the required parameters: bridge / uri / session",Be="JSON RPC response format is invalid",Er="URI format is invalid",Sr="QRCode Modal not provided",We="User close QRCode Modal",Cr=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],kr=["wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],we=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign",...kr],ue="WALLETCONNECT_DEEPLINK_CHOICE",xr={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"};var ht=ye;ye.strict=ft;ye.loose=_t;var Ir=Object.prototype.toString,Rr={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function ye(t){return ft(t)||_t(t)}function ft(t){return t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array}function _t(t){return Rr[Ir.call(t)]}const Tr=pe(ht);var Or=ht.strict,Nr=function(e){if(Or(e)){var n=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(n=n.slice(e.byteOffset,e.byteOffset+e.byteLength)),n}else return Buffer.from(e)};const Mr=pe(Nr),be="hex",ve="utf8",Lr="binary",qr="buffer",Ar="array",Ur="typed-array",Pr="array-buffer",te="0";function j(t){return new Uint8Array(t)}function Ee(t,e=!1){const n=t.toString(be);return e?J(n):n}function Se(t){return t.toString(ve)}function pt(t){return t.readUIntBE(0,t.length)}function W(t){return Mr(t)}function N(t,e=!1){return Ee(W(t),e)}function gt(t){return Se(W(t))}function mt(t){return pt(W(t))}function Ce(t){return Buffer.from(B(t),be)}function M(t){return j(Ce(t))}function Dr(t){return Se(Ce(t))}function $r(t){return mt(M(t))}function ke(t){return Buffer.from(t,ve)}function wt(t){return j(ke(t))}function jr(t,e=!1){return Ee(ke(t),e)}function Br(t){const e=parseInt(t,10);return io(oo(e),"Number can only safely store up to 53 bits"),e}function Wr(t){return Qr(xe(t))}function Fr(t){return Ie(xe(t))}function Hr(t,e){return Jr(xe(t),e)}function zr(t){return`${t}`}function xe(t){const e=(t>>>0).toString(2);return Te(e)}function Qr(t){return W(Ie(t))}function Ie(t){return new Uint8Array(Xr(t).map(e=>parseInt(e,2)))}function Jr(t,e){return N(Ie(t),e)}function Vr(t){return!(typeof t!="string"||!new RegExp(/^[01]+$/).test(t)||t.length%8!==0)}function yt(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}function ne(t){return Buffer.isBuffer(t)}function Re(t){return Tr.strict(t)&&!ne(t)}function bt(t){return!Re(t)&&!ne(t)&&typeof t.byteLength<"u"}function Gr(t){return ne(t)?qr:Re(t)?Ur:bt(t)?Pr:Array.isArray(t)?Ar:typeof t}function Yr(t){return Vr(t)?Lr:yt(t)?be:ve}function Kr(...t){return Buffer.concat(t)}function vt(...t){let e=[];return t.forEach(n=>e=e.concat(Array.from(n))),new Uint8Array([...e])}function Zr(t,e=8){const n=t%e;return n?(t-n)/e*e+e:t}function Xr(t,e=8){const n=Te(t).match(new RegExp(`.{${e}}`,"gi"));return Array.from(n||[])}function Te(t,e=8,n=te){return eo(t,Zr(t.length,e),n)}function eo(t,e,n=te){return so(t,e,!0,n)}function B(t){return t.replace(/^0x/,"")}function J(t){return t.startsWith("0x")?t:`0x${t}`}function to(t){return t=B(t),t=Te(t,2),t&&(t=J(t)),t}function no(t){const e=t.startsWith("0x");return t=B(t),t=t.startsWith(te)?t.substring(1):t,e?J(t):t}function ro(t){return typeof t>"u"}function oo(t){return!ro(t)}function io(t,e){if(!t)throw new Error(e)}function so(t,e,n,r=te){const o=e-t.length;let i=t;if(o>0){const d=r.repeat(o);i=n?d+t:t+d}return i}function Z(t){return W(new Uint8Array(t))}function ao(t){return gt(new Uint8Array(t))}function Et(t,e){return N(new Uint8Array(t),!e)}function co(t){return mt(new Uint8Array(t))}function lo(...t){return M(t.map(e=>N(new Uint8Array(e))).join("")).buffer}function St(t){return j(t).buffer}function uo(t){return Se(t)}function ho(t,e){return Ee(t,!e)}function fo(t){return pt(t)}function _o(...t){return Kr(...t)}function po(t){return wt(t).buffer}function go(t){return ke(t)}function mo(t,e){return jr(t,!e)}function wo(t){return Br(t)}function yo(t){return Ce(t)}function Ct(t){return M(t).buffer}function bo(t){return Dr(t)}function vo(t){return $r(t)}function Eo(t){return Wr(t)}function So(t){return Fr(t).buffer}function Co(t){return zr(t)}function kt(t,e){return Hr(Number(t),!e)}const ko=zn,xo=Qn,Io=Jn,Ro=Vn,To=Gn,xt=Hn,Oo=Yn,It=Wn,No=Kn,Mo=Zn,Lo=Xn,re=Fn;function oe(t){return er(t)}function ie(){const t=oe();return t&&t.os?t.os:void 0}function Rt(){const t=ie();return t?t.toLowerCase().includes("android"):!1}function Tt(){const t=ie();return t?t.toLowerCase().includes("ios")||t.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function Ot(){return ie()?Rt()||Tt():!1}function Nt(){const t=oe();return t&&t.name?t.name.toLowerCase()==="node":!1}function Mt(){return!Nt()&&!!xt()}const Lt=sr,qt=ar;function Oe(t,e){const n=qt(e),r=re();r&&r.setItem(t,n)}function Ne(t){let e=null,n=null;const r=re();return r&&(n=r.getItem(t)),e=n&&Lt(n),e}function Me(t){const e=re();e&&e.removeItem(t)}function de(){return tr()}function qo(t){return to(t)}function Ao(t){return J(t)}function Uo(t){return B(t)}function Po(t){return no(J(t))}const At=cr;function Y(){return((e,n)=>{for(n=e="";e++<36;n+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return n})()}function Do(){console.warn("DEPRECATION WARNING: This WalletConnect client library will be deprecated in favor of @walletconnect/client. Please check docs.walletconnect.org to learn more about this migration!")}function Ut(t,e){let n;const r=xr[t];return r&&(n=`https://${r}.infura.io/v3/${e}`),n}function Pt(t,e){let n;const r=Ut(t,e.infuraId);return e.custom&&e.custom[t]?n=e.custom[t]:r&&(n=r),n}function $o(t,e){const n=encodeURIComponent(t);return e.universalLink?`${e.universalLink}/wc?uri=${n}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${n}`:""}function jo(t){const e=t.href.split("?")[0];Oe(ue,Object.assign(Object.assign({},t),{href:e}))}function Dt(t,e){return t.filter(n=>n.name.toLowerCase().includes(e.toLowerCase()))[0]}function Bo(t,e){let n=t;return e&&(n=e.map(r=>Dt(t,r)).filter(Boolean)),n}function Wo(t,e){return async(...r)=>new Promise((o,i)=>{const d=(f,p)=>{(f===null||typeof f>"u")&&i(f),o(p)};t.apply(e,[...r,d])})}function $t(t){const e=t.message||"Failed or Rejected Request";let n=-32e3;if(t&&!t.code)switch(e){case"Parse error":n=-32700;break;case"Invalid request":n=-32600;break;case"Method not found":n=-32601;break;case"Invalid params":n=-32602;break;case"Internal error":n=-32603;break;default:n=-32e3;break}const r={code:n,message:e};return t.data&&(r.data=t.data),r}const jt="https://registry.walletconnect.com";function Fo(){return jt+"/api/v2/wallets"}function Ho(){return jt+"/api/v2/dapps"}function Bt(t,e="mobile"){var n;return{name:t.name||"",shortName:t.metadata.shortName||"",color:t.metadata.colors.primary||"",logo:(n=t.image_url.sm)!==null&&n!==void 0?n:"",universalLink:t[e].universal||"",deepLink:t[e].native||""}}function zo(t,e="mobile"){return Object.values(t).filter(n=>!!n[e].universal||!!n[e].native).map(n=>Bt(n,e))}var Le={};(function(t){const e=or,n=ir,r=nr,o=rr,i=s=>s==null;function d(s){switch(s.arrayFormat){case"index":return a=>(u,c)=>{const h=u.length;return c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,[g(a,s),"[",h,"]"].join("")]:[...u,[g(a,s),"[",g(h,s),"]=",g(c,s)].join("")]};case"bracket":return a=>(u,c)=>c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,[g(a,s),"[]"].join("")]:[...u,[g(a,s),"[]=",g(c,s)].join("")];case"comma":case"separator":return a=>(u,c)=>c==null||c.length===0?u:u.length===0?[[g(a,s),"=",g(c,s)].join("")]:[[u,g(c,s)].join(s.arrayFormatSeparator)];default:return a=>(u,c)=>c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,g(a,s)]:[...u,[g(a,s),"=",g(c,s)].join("")]}}function f(s){let a;switch(s.arrayFormat){case"index":return(u,c,h)=>{if(a=/\[(\d*)\]$/.exec(u),u=u.replace(/\[\d*\]$/,""),!a){h[u]=c;return}h[u]===void 0&&(h[u]={}),h[u][a[1]]=c};case"bracket":return(u,c,h)=>{if(a=/(\[\])$/.exec(u),u=u.replace(/\[\]$/,""),!a){h[u]=c;return}if(h[u]===void 0){h[u]=[c];return}h[u]=[].concat(h[u],c)};case"comma":case"separator":return(u,c,h)=>{const m=typeof c=="string"&&c.includes(s.arrayFormatSeparator),_=typeof c=="string"&&!m&&w(c,s).includes(s.arrayFormatSeparator);c=_?w(c,s):c;const v=m||_?c.split(s.arrayFormatSeparator).map(T=>w(T,s)):c===null?c:w(c,s);h[u]=v};default:return(u,c,h)=>{if(h[u]===void 0){h[u]=c;return}h[u]=[].concat(h[u],c)}}}function p(s){if(typeof s!="string"||s.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function g(s,a){return a.encode?a.strict?e(s):encodeURIComponent(s):s}function w(s,a){return a.decode?n(s):s}function y(s){return Array.isArray(s)?s.sort():typeof s=="object"?y(Object.keys(s)).sort((a,u)=>Number(a)-Number(u)).map(a=>s[a]):s}function b(s){const a=s.indexOf("#");return a!==-1&&(s=s.slice(0,a)),s}function C(s){let a="";const u=s.indexOf("#");return u!==-1&&(a=s.slice(u)),a}function k(s){s=b(s);const a=s.indexOf("?");return a===-1?"":s.slice(a+1)}function I(s,a){return a.parseNumbers&&!Number.isNaN(Number(s))&&typeof s=="string"&&s.trim()!==""?s=Number(s):a.parseBooleans&&s!==null&&(s.toLowerCase()==="true"||s.toLowerCase()==="false")&&(s=s.toLowerCase()==="true"),s}function R(s,a){a=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},a),p(a.arrayFormatSeparator);const u=f(a),c=Object.create(null);if(typeof s!="string"||(s=s.trim().replace(/^[?#&]/,""),!s))return c;for(const h of s.split("&")){if(h==="")continue;let[m,_]=r(a.decode?h.replace(/\+/g," "):h,"=");_=_===void 0?null:["comma","separator"].includes(a.arrayFormat)?_:w(_,a),u(w(m,a),_,c)}for(const h of Object.keys(c)){const m=c[h];if(typeof m=="object"&&m!==null)for(const _ of Object.keys(m))m[_]=I(m[_],a);else c[h]=I(m,a)}return a.sort===!1?c:(a.sort===!0?Object.keys(c).sort():Object.keys(c).sort(a.sort)).reduce((h,m)=>{const _=c[m];return _&&typeof _=="object"&&!Array.isArray(_)?h[m]=y(_):h[m]=_,h},Object.create(null))}t.extract=k,t.parse=R,t.stringify=(s,a)=>{if(!s)return"";a=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},a),p(a.arrayFormatSeparator);const u=_=>a.skipNull&&i(s[_])||a.skipEmptyString&&s[_]==="",c=d(a),h={};for(const _ of Object.keys(s))u(_)||(h[_]=s[_]);const m=Object.keys(h);return a.sort!==!1&&m.sort(a.sort),m.map(_=>{const v=s[_];return v===void 0?"":v===null?g(_,a):Array.isArray(v)?v.reduce(c(_),[]).join("&"):g(_,a)+"="+g(v,a)}).filter(_=>_.length>0).join("&")},t.parseUrl=(s,a)=>{a=Object.assign({decode:!0},a);const[u,c]=r(s,"#");return Object.assign({url:u.split("?")[0]||"",query:R(k(s),a)},a&&a.parseFragmentIdentifier&&c?{fragmentIdentifier:w(c,a)}:{})},t.stringifyUrl=(s,a)=>{a=Object.assign({encode:!0,strict:!0},a);const u=b(s.url).split("?")[0]||"",c=t.extract(s.url),h=t.parse(c,{sort:!1}),m=Object.assign(h,s.query);let _=t.stringify(m,a);_&&(_=`?${_}`);let v=C(s.url);return s.fragmentIdentifier&&(v=`#${g(s.fragmentIdentifier,a)}`),`${u}${_}${v}`},t.pick=(s,a,u)=>{u=Object.assign({parseFragmentIdentifier:!0},u);const{url:c,query:h,fragmentIdentifier:m}=t.parseUrl(s,u);return t.stringifyUrl({url:c,query:o(h,a),fragmentIdentifier:m},u)},t.exclude=(s,a,u)=>{const c=Array.isArray(a)?h=>!a.includes(h):(h,m)=>!a(h,m);return t.pick(s,c,u)}})(Le);function Wt(t){const e=t.indexOf("?")!==-1?t.indexOf("?"):void 0;return typeof e<"u"?t.substr(e):""}function Ft(t,e){let n=qe(t);return n=Object.assign(Object.assign({},n),e),t=Ht(n),t}function qe(t){return Le.parse(t)}function Ht(t){return Le.stringify(t)}function zt(t){return typeof t.bridge<"u"}function Qt(t){const e=t.indexOf(":"),n=t.indexOf("?")!==-1?t.indexOf("?"):void 0,r=t.substring(0,e),o=t.substring(e+1,n);function i(y){const b="@",C=y.split(b);return{handshakeTopic:C[0],version:parseInt(C[1],10)}}const d=i(o),f=typeof n<"u"?t.substr(n):"";function p(y){const b=qe(y);return{key:b.key||"",bridge:b.bridge||""}}const g=p(f);return Object.assign(Object.assign({protocol:r},d),g)}function Qo(t){return t===""||typeof t=="string"&&t.trim()===""}function Jo(t){return!(t&&t.length)}function Vo(t){return ne(t)}function Go(t){return Re(t)}function Yo(t){return bt(t)}function Ko(t){return Gr(t)}function Zo(t){return Yr(t)}function Xo(t,e){return yt(t,e)}function ei(t){return typeof t.params=="object"}function Jt(t){return typeof t.method<"u"}function P(t){return typeof t.result<"u"}function z(t){return typeof t.error<"u"}function he(t){return typeof t.event<"u"}function Vt(t){return Cr.includes(t)||t.startsWith("wc_")}function Gt(t){return t.method.startsWith("wc_")?!0:!we.includes(t.method)}const ti=Object.freeze(Object.defineProperty({__proto__:null,addHexPrefix:Ao,appendToQueryString:Ft,concatArrayBuffers:lo,concatBuffers:_o,convertArrayBufferToBuffer:Z,convertArrayBufferToHex:Et,convertArrayBufferToNumber:co,convertArrayBufferToUtf8:ao,convertBufferToArrayBuffer:St,convertBufferToHex:ho,convertBufferToNumber:fo,convertBufferToUtf8:uo,convertHexToArrayBuffer:Ct,convertHexToBuffer:yo,convertHexToNumber:vo,convertHexToUtf8:bo,convertNumberToArrayBuffer:So,convertNumberToBuffer:Eo,convertNumberToHex:kt,convertNumberToUtf8:Co,convertUtf8ToArrayBuffer:po,convertUtf8ToBuffer:go,convertUtf8ToHex:mo,convertUtf8ToNumber:wo,detectEnv:oe,detectOS:ie,formatIOSMobile:$o,formatMobileRegistry:zo,formatMobileRegistryEntry:Bt,formatQueryString:Ht,formatRpcError:$t,getClientMeta:de,getCrypto:Mo,getCryptoOrThrow:No,getDappRegistryUrl:Ho,getDocument:Ro,getDocumentOrThrow:Io,getEncoding:Zo,getFromWindow:ko,getFromWindowOrThrow:xo,getInfuraRpcUrl:Ut,getLocal:Ne,getLocalStorage:re,getLocalStorageOrThrow:Lo,getLocation:It,getLocationOrThrow:Oo,getMobileLinkRegistry:Bo,getMobileRegistryEntry:Dt,getNavigator:xt,getNavigatorOrThrow:To,getQueryString:Wt,getRpcUrl:Pt,getType:Ko,getWalletRegistryUrl:Fo,isAndroid:Rt,isArrayBuffer:Yo,isBrowser:Mt,isBuffer:Vo,isEmptyArray:Jo,isEmptyString:Qo,isHexString:Xo,isIOS:Tt,isInternalEvent:he,isJsonRpcRequest:Jt,isJsonRpcResponseError:z,isJsonRpcResponseSuccess:P,isJsonRpcSubscription:ei,isMobile:Ot,isNode:Nt,isReservedEvent:Vt,isSilentPayload:Gt,isTypedArray:Go,isWalletConnectSession:zt,logDeprecationWarning:Do,parseQueryString:qe,parseWalletConnectUri:Qt,payloadId:At,promisify:Wo,removeHexLeadingZeros:Po,removeHexPrefix:Uo,removeLocal:Me,safeJsonParse:Lt,safeJsonStringify:qt,sanitizeHex:qo,saveMobileLinkInfo:jo,setLocal:Oe,uuid:Y},Symbol.toStringTag,{value:"Module"}));class ni{constructor(){this._eventEmitters=[],typeof window<"u"&&typeof window.addEventListener<"u"&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(e,n){this._eventEmitters.push({event:e,callback:n})}trigger(e){let n=[];e&&(n=this._eventEmitters.filter(r=>r.event===e)),n.forEach(r=>{r.callback()})}}const ri=typeof global.WebSocket<"u"?global.WebSocket:require("ws");class oi{constructor(e){if(this.opts=e,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=e.protocol,this._version=e.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=e.subscriptions||[],this._netMonitor=e.netMonitor||new ni,!e.url||typeof e.url!="string")throw new Error("Missing or invalid WebSocket url");this._url=e.url,this._netMonitor.on("online",()=>this._socketCreate())}set readyState(e){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(e){}get connecting(){return this.readyState===0}set connected(e){}get connected(){return this.readyState===1}set closing(e){}get closing(){return this.readyState===2}set closed(e){}get closed(){return this.readyState===3}open(){this._socketCreate()}close(){this._socketClose()}send(e,n,r){if(!n||typeof n!="string")throw new Error("Missing or invalid topic field");this._socketSend({topic:n,type:"pub",payload:e,silent:!!r})}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,n){this._events.push({event:e,callback:n})}_socketCreate(){if(this._nextSocket)return;const e=ii(this._url,this._protocol,this._version);if(this._nextSocket=new ri(e),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=n=>this._socketReceive(n),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=n=>this._socketError(n),this._nextSocket.onclose=()=>{setTimeout(()=>{this._nextSocket=null,this._socketCreate()},1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(e){const n=JSON.stringify(e);this._socket&&this._socket.readyState===1?this._socket.send(n):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let n;try{n=JSON.parse(e.data)}catch{return}if(this._socketSend({topic:n.topic,type:"ack",payload:"",silent:!0}),this._socket&&this._socket.readyState===1){const r=this._events.filter(o=>o.event==="message");r&&r.length&&r.forEach(o=>o.callback(n))}}_socketError(e){const n=this._events.filter(r=>r.event==="error");n&&n.length&&n.forEach(r=>r.callback(e))}_queueSubscriptions(){this._subscriptions.forEach(n=>this._queue.push({topic:n,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach(n=>this._socketSend(n)),this._queue=[]}}function ii(t,e,n){var r,o;const d=(t.startsWith("https")?t.replace("https","wss"):t.startsWith("http")?t.replace("http","ws"):t).split("?"),f=Mt()?{protocol:e,version:n,env:"browser",host:((r=It())===null||r===void 0?void 0:r.host)||""}:{protocol:e,version:n,env:((o=oe())===null||o===void 0?void 0:o.name)||""},p=Ft(Wt(d[1]||""),f);return d[0]+"?"+p}class si{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter(n=>n.event!==e)}trigger(e){let n=[],r;Jt(e)?r=e.method:P(e)||z(e)?r=`response:${e.id}`:he(e)?r=e.event:r="",r&&(n=this._eventEmitters.filter(o=>o.event===r)),(!n||!n.length)&&!Vt(r)&&!he(r)&&(n=this._eventEmitters.filter(o=>o.event==="call_request")),n.forEach(o=>{if(z(e)){const i=new Error(e.error.message);o.callback(i,null)}else o.callback(null,e)})}}class ai{constructor(e="walletconnect"){this.storageId=e}getSession(){let e=null;const n=Ne(this.storageId);return n&&zt(n)&&(e=n),e}setSession(e){return Oe(this.storageId,e),e}removeSession(){Me(this.storageId)}}const ci="walletconnect.org",li="abcdefghijklmnopqrstuvwxyz0123456789",Yt=li.split("").map(t=>`https://${t}.bridge.walletconnect.org`);function ui(t){let e=t.indexOf("//")>-1?t.split("/")[2]:t.split("/")[0];return e=e.split(":")[0],e=e.split("?")[0],e}function di(t){return ui(t).split(".").slice(-2).join(".")}function hi(){return Math.floor(Math.random()*Yt.length)}function fi(){return Yt[hi()]}function _i(t){return di(t)===ci}function pi(t){return _i(t)?fi():t}class gi{constructor(e){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new si,this._clientMeta=de()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new ai(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...we,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw new Error(vr);e.connectorOpts.bridge&&(this.bridge=pi(e.connectorOpts.bridge)),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);const n=e.connectorOpts.session||this._getStorageSession();n&&(this.session=n),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new oi({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),e.connectorOpts.uri&&this._subscribeToSessionRequest(),e.pushServerOpts&&this._registerPushServer(e.pushServerOpts)}set bridge(e){e&&(this._bridge=e)}get bridge(){return this._bridge}set key(e){if(!e)return;const n=Ct(e);this._key=n}get key(){return this._key?Et(this._key,!0):""}set clientId(e){e&&(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=Y()),this._clientId}set peerId(e){e&&(this._peerId=e)}get peerId(){return this._peerId}set clientMeta(e){}get clientMeta(){let e=this._clientMeta;return e||(e=this._clientMeta=de()),e}set peerMeta(e){this._peerMeta=e}get peerMeta(){return this._peerMeta}set handshakeTopic(e){e&&(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){e&&(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(e){if(!e)return;const{handshakeTopic:n,bridge:r,key:o}=this._parseUri(e);this.handshakeTopic=n,this.bridge=r,this.key=o}set chainId(e){this._chainId=e}get chainId(){return this._chainId}set networkId(e){this._networkId=e}get networkId(){return this._networkId}set accounts(e){this._accounts=e}get accounts(){return this._accounts}set rpcUrl(e){this._rpcUrl=e}get rpcUrl(){return this._rpcUrl}set connected(e){}get connected(){return this._connected}set pending(e){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){e&&(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}on(e,n){const r={event:e,callback:n};this._eventManager.subscribe(r)}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();const n=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=n.id,this.handshakeTopic=Y(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw new Error(We)});const r=()=>{this.killSession()};try{const o=await this._sendCallRequest(n);return o&&r(),o}catch(o){throw r(),o}}async connect(e){if(!this._qrcodeModal)throw new Error(Sr);return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise(async(n,r)=>{this.on("modal_closed",()=>r(new Error(We))),this.on("connect",(o,i)=>{if(o)return r(o);n(i.params[0])})}))}async createSession(e){if(this._connected)throw new Error(ae);if(this.pending)return;this._key=await this._generateKey();const n=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=n.id,this.handshakeTopic=Y(),this._sendSessionRequest(n,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw new Error(ae);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const n={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},r={id:this.handshakeId,jsonrpc:"2.0",result:n};this._sendResponse(r),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(e){if(this._connected)throw new Error(ae);const n=e&&e.message?e.message:pr,r=this._formatResponse({id:this.handshakeId,error:{message:n}});this._sendResponse(r),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:n}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw new Error(q);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const n={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},r=this._formatRequest({method:"wc_sessionUpdate",params:[n]});this._sendSessionRequest(r,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){const n=e?e.message:"Session Disconnected",r={approved:!1,chainId:null,networkId:null,accounts:null},o=this._formatRequest({method:"wc_sessionUpdate",params:[r]});await this._sendRequest(o),this._handleSessionDisconnect(n)}async sendTransaction(e){if(!this._connected)throw new Error(q);const n=e,r=this._formatRequest({method:"eth_sendTransaction",params:[n]});return await this._sendCallRequest(r)}async signTransaction(e){if(!this._connected)throw new Error(q);const n=e,r=this._formatRequest({method:"eth_signTransaction",params:[n]});return await this._sendCallRequest(r)}async signMessage(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"eth_sign",params:e});return await this._sendCallRequest(n)}async signPersonalMessage(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"personal_sign",params:e});return await this._sendCallRequest(n)}async signTypedData(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"eth_signTypedData",params:e});return await this._sendCallRequest(n)}async updateChain(e){if(!this._connected)throw new Error("Session currently disconnected");const n=this._formatRequest({method:"wallet_updateChain",params:[e]});return await this._sendCallRequest(n)}unsafeSend(e,n){return this._sendRequest(e,n),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:n}]}),new Promise((r,o)=>{this._subscribeToResponse(e.id,(i,d)=>{if(i){o(i);return}if(!d)throw new Error(gr);r(d)})})}async sendCustomRequest(e,n){if(!this._connected)throw new Error(q);switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return kt(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":e.params;break;case"personal_sign":e.params;break}const r=this._formatRequest(e);return await this._sendCallRequest(r,n)}approveRequest(e){if(P(e)){const n=this._formatResponse(e);this._sendResponse(n)}else throw new Error(mr)}rejectRequest(e){if(z(e)){const n=this._formatResponse(e);this._sendResponse(n)}else throw new Error(wr)}transportClose(){this._transport.close()}async _sendRequest(e,n){const r=this._formatRequest(e),o=await this._encrypt(r),i=typeof(n==null?void 0:n.topic)<"u"?n.topic:this.peerId,d=JSON.stringify(o),f=typeof(n==null?void 0:n.forcePushNotification)<"u"?!n.forcePushNotification:Gt(r);this._transport.send(d,i,f)}async _sendResponse(e){const n=await this._encrypt(e),r=this.peerId,o=JSON.stringify(n),i=!0;this._transport.send(o,r,i)}async _sendSessionRequest(e,n,r){this._sendRequest(e,r),this._subscribeToSessionResponse(e.id,n)}_sendCallRequest(e,n){return this._sendRequest(e,n),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:n}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(typeof e.method>"u")throw new Error(yr);return{id:typeof e.id>"u"?At():e.id,jsonrpc:"2.0",method:e.method,params:typeof e.params>"u"?[]:e.params}}_formatResponse(e){if(typeof e.id>"u")throw new Error(br);const n={id:e.id,jsonrpc:"2.0"};if(z(e)){const r=$t(e.error);return Object.assign(Object.assign(Object.assign({},n),e),{error:r})}else if(P(e))return Object.assign(Object.assign({},n),e);throw new Error(Be)}_handleSessionDisconnect(e){const n=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),Me(ue)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:n}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,n){n?n.approved?(this._connected?(n.chainId&&(this.chainId=n.chainId),n.accounts&&(this.accounts=n.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,n.chainId&&(this.chainId=n.chainId),n.accounts&&(this.accounts=n.accounts),n.peerId&&!this.peerId&&(this.peerId=n.peerId),n.peerMeta&&!this.peerMeta&&(this.peerMeta=n.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e):this._handleSessionDisconnect(e)}async _handleIncomingMessages(e){if(![this.clientId,this.handshakeTopic].includes(e.topic))return;let r;try{r=JSON.parse(e.payload)}catch{return}const o=await this._decrypt(r);o&&this._eventManager.trigger(o)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,n){this.on(`response:${e}`,n)}_subscribeToSessionResponse(e,n){this._subscribeToResponse(e,(r,o)=>{if(r){this._handleSessionResponse(r.message);return}P(o)?this._handleSessionResponse(n,o.result):o.error&&o.error.message?this._handleSessionResponse(o.error.message):this._handleSessionResponse(n)})}_subscribeToCallResponse(e){return new Promise((n,r)=>{this._subscribeToResponse(e,(o,i)=>{if(o){r(o);return}P(i)?n(i.result):i.error&&i.error.message?r(i.error):r(new Error(Be))})})}_subscribeToInternalEvents(){this.on("display_uri",()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,()=>{this._eventManager.trigger({event:"modal_closed",params:[]})},this._qrcodeModalOptions)}),this.on("connect",()=>{this._qrcodeModal&&this._qrcodeModal.close()}),this.on("call_request_sent",(e,n)=>{const{request:r}=n.params[0];if(Ot()&&this._signingMethods.includes(r.method)){const o=Ne(ue);o&&(window.location.href=o.href)}}),this.on("wc_sessionRequest",(e,n)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=n.id,this.peerId=n.params[0].peerId,this.peerMeta=n.params[0].peerMeta;const r=Object.assign(Object.assign({},n),{method:"session_request"});this._eventManager.trigger(r)}),this.on("wc_sessionUpdate",(e,n)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",n.params[0])})}_initTransport(){this._transport.on("message",e=>this._handleIncomingMessages(e)),this._transport.on("open",()=>this._eventManager.trigger({event:"transport_open",params:[]})),this._transport.on("close",()=>this._eventManager.trigger({event:"transport_close",params:[]})),this._transport.on("error",()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})),this._transport.open()}_formatUri(){const e=this.protocol,n=this.handshakeTopic,r=this.version,o=encodeURIComponent(this.bridge),i=this.key;return`${e}:${n}@${r}?bridge=${o}&key=${i}`}_parseUri(e){const n=Qt(e);if(n.protocol===this.protocol){if(!n.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");const r=n.handshakeTopic;if(!n.bridge)throw Error("Invalid or missing bridge url parameter value");const o=decodeURIComponent(n.bridge);if(!n.key)throw Error("Invalid or missing key parameter value");const i=n.key;return{handshakeTopic:r,bridge:o,key:i}}else throw new Error(Er)}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(e){const n=this._key;return this._cryptoLib&&n?await this._cryptoLib.encrypt(e,n):null}async _decrypt(e){const n=this._key;return this._cryptoLib&&n?await this._cryptoLib.decrypt(e,n):null}_getStorageSession(){let e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(e){if(!e.url||typeof e.url!="string")throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||typeof e.type!="string")throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||typeof e.token!="string")throw Error("Invalid or missing pushServerOpts.token parameter value");const n={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",async(r,o)=>{if(r)throw r;if(e.peerMeta){const i=o.params[0].peerMeta.name;n.peerName=i}try{if(!(await(await fetch(`${e.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)})).json()).success)throw Error("Failed to register in Push Server")}catch{throw Error("Failed to register in Push Server")}})}}function mi(t){return Q.getBrowerCrypto().getRandomValues(new Uint8Array(t))}const Kt=256,Zt=Kt,wi=Kt,L="AES-CBC",yi=`SHA-${Zt}`,fe="HMAC",bi="encrypt",vi="decrypt",Ei="sign",Si="verify";function Ci(t){return t===L?{length:Zt,name:L}:{hash:{name:yi},name:fe}}function ki(t){return t===L?[bi,vi]:[Ei,Si]}async function Ae(t,e=L){return Q.getSubtleCrypto().importKey("raw",t,Ci(e),!0,ki(e))}async function xi(t,e,n){const r=Q.getSubtleCrypto(),o=await Ae(e,L),i=await r.encrypt({iv:t,name:L},o,n);return new Uint8Array(i)}async function Ii(t,e,n){const r=Q.getSubtleCrypto(),o=await Ae(e,L),i=await r.decrypt({iv:t,name:L},o,n);return new Uint8Array(i)}async function Ri(t,e){const n=Q.getSubtleCrypto(),r=await Ae(t,fe),o=await n.sign({length:wi,name:fe},r,e);return new Uint8Array(o)}function Ti(t,e,n){return xi(t,e,n)}function Oi(t,e,n){return Ii(t,e,n)}async function Xt(t,e){return await Ri(t,e)}async function en(t){const e=(t||256)/8,n=mi(e);return St(W(n))}async function tn(t,e){const n=M(t.data),r=M(t.iv),o=M(t.hmac),i=N(o,!1),d=vt(n,r),f=await Xt(e,d),p=N(f,!1);return B(i)===B(p)}async function Ni(t,e,n){const r=j(Z(e)),o=n||await en(128),i=j(Z(o)),d=N(i,!1),f=JSON.stringify(t),p=wt(f),g=await Ti(i,r,p),w=N(g,!1),y=vt(g,i),b=await Xt(r,y),C=N(b,!1);return{data:w,hmac:C,iv:d}}async function Mi(t,e){const n=j(Z(e));if(!n)throw new Error("Missing key: required for decryption");if(!await tn(t,n))return null;const o=M(t.data),i=M(t.iv),d=await Oi(i,n,o),f=gt(d);let p;try{p=JSON.parse(f)}catch{return null}return p}const Li=Object.freeze(Object.defineProperty({__proto__:null,decrypt:Mi,encrypt:Ni,generateKey:en,verifyHmac:tn},Symbol.toStringTag,{value:"Module"}));class qi extends gi{constructor(e,n){super({cryptoLib:Li,connectorOpts:e,pushServerOpts:n})}}const Ai=et(ti);var Ui=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=Fe[e.format]||Fe.default;window.clipboardData.setData(y,t)}else w.clipboardData.clearData(),w.clipboardData.setData(e.format,t);e.onCopy&&(w.preventDefault(),e.onCopy(w.clipboardData))}),document.body.appendChild(f),i.selectNodeContents(f),d.addRange(i);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");p=!0}catch(w){n&&console.error("unable to copy using execCommand: ",w),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),p=!0}catch(y){n&&console.error("unable to copy using clipboardData: ",y),n&&console.error("falling back to prompt"),r=$i("message"in e?e.message:Di),window.prompt(r,t)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(i):d.removeAllRanges()),f&&document.body.removeChild(f),o()}return p}var Bi=ji;function nn(t,e){for(var n in e)t[n]=e[n];return t}function _e(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function X(t){this.props=t}function rn(t,e){function n(o){var i=this.props.ref,d=i==o.ref;return!d&&i&&(i.call?i(null):i.current=null),e?!e(this.props,o)||!d:_e(this.props,o)}function r(o){return this.shouldComponentUpdate=n,x(t,o)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(X.prototype=new A).isPureReactComponent=!0,X.prototype.shouldComponentUpdate=function(t,e){return _e(this.props,t)||_e(this.state,e)};var He=S.__b;S.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),He&&He(t)};var Wi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function on(t){function e(n){var r=nn({},n);return delete r.ref,t(r,n.ref||null)}return e.$$typeof=Wi,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var ze=function(t,e){return t==null?null:O(O(t).map(e))},sn={map:ze,forEach:ze,count:function(t){return t?O(t).length:0},only:function(t){var e=O(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:O},Fi=S.__e;S.__e=function(t,e,n,r){if(t.then){for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),o.__c(t,e)}Fi(t,e,n,r)};var Qe=S.unmount;function an(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=nn({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return an(r,e,n)})),t}function cn(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return cn(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function H(){this.__u=0,this.t=null,this.__b=null}function ln(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function un(t){var e,n,r;function o(i){if(e||(e=t()).then(function(d){n=d.default||d},function(d){r=d}),r)throw r;if(!n)throw e;return x(n,i)}return o.displayName="Lazy",o.__f=!0,o}function D(){this.u=null,this.o=null}S.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Qe&&Qe(t)},(H.prototype=new A).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=ln(r.__v),i=!1,d=function(){i||(i=!0,n.__R=null,o?o(f):f())};n.__R=d;var f=function(){if(!--r.__u){if(r.state.__a){var p=r.state.__a;r.__v.__k[0]=cn(p,p.__c.__P,p.__c.__O)}var g;for(r.setState({__a:r.__b=null});g=r.t.pop();)g.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(d,d)},H.prototype.componentWillUnmount=function(){this.t=[]},H.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=an(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__a&&x($,null,t.fallback);return o&&(o.__u&=-33),[x($,null,e.__a?null:t.children),o]};var Je=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(r)}}),K(x(Hi,{context:e.context},t.__v),e.l)}function dn(t,e){var n=x(zi,{__v:t,i:e});return n.containerInfo=e,n}(D.prototype=new A).__a=function(t){var e=this,n=ln(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),Je(e,t,r)):o()};n?n(i):i()}},D.prototype.render=function(t){this.u=null,this.o=new Map;var e=O(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},D.prototype.componentDidUpdate=D.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Je(t,n,e)})};var hn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Qi=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ji=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Vi=/[A-Z0-9]/g,Gi=typeof document<"u",Yi=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function fn(t,e,n){return e.__k==null&&(e.textContent=""),K(t,e),typeof n=="function"&&n(),t?t.__c:null}function _n(t,e,n){return hr(t,e),typeof n=="function"&&n(),t?t.__c:null}A.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(A.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Ve=S.event;function Ki(){}function Zi(){return this.cancelBubble}function Xi(){return this.defaultPrevented}S.event=function(t){return Ve&&(t=Ve(t)),t.persist=Ki,t.isPropagationStopped=Zi,t.isDefaultPrevented=Xi,t.nativeEvent=t};var Ue,es={enumerable:!1,configurable:!0,get:function(){return this.class}},Ge=S.vnode;S.vnode=function(t){typeof t.type=="string"&&function(e){var n=e.props,r=e.type,o={};for(var i in n){var d=n[i];if(!(i==="value"&&"defaultValue"in n&&d==null||Gi&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var f=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&d===!0?d="":f==="ondoubleclick"?i="ondblclick":f!=="onchange"||r!=="input"&&r!=="textarea"||Yi(n.type)?f==="onfocus"?i="onfocusin":f==="onblur"?i="onfocusout":Ji.test(i)?i=f:r.indexOf("-")===-1&&Qi.test(i)?i=i.replace(Vi,"-$&").toLowerCase():d===null&&(d=void 0):f=i="oninput",f==="oninput"&&o[i=f]&&(i="oninputCapture"),o[i]=d}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=O(n.children).forEach(function(p){p.props.selected=o.value.indexOf(p.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=O(n.children).forEach(function(p){p.props.selected=o.multiple?o.defaultValue.indexOf(p.props.value)!=-1:o.defaultValue==p.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",es)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),e.props=o}(t),t.$$typeof=hn,Ge&&Ge(t)};var Ye=S.__r;S.__r=function(t){Ye&&Ye(t),Ue=t.__c};var Ke=S.diffed;S.diffed=function(t){Ke&&Ke(t);var e=t.props,n=t.__e;n!=null&&t.type==="textarea"&&"value"in e&&e.value!==n.value&&(n.value=e.value==null?"":e.value),Ue=null};var pn={ReactCurrentDispatcher:{current:{readContext:function(t){return Ue.__n[t.__c].props.value}}}},ts="17.0.2";function gn(t){return x.bind(null,t)}function V(t){return!!t&&t.$$typeof===hn}function mn(t){return V(t)&&t.type===$}function wn(t){return V(t)?fr.apply(null,arguments):t}function yn(t){return!!t.__k&&(K(null,t),!0)}function bn(t){return t&&(t.base||t.nodeType===1&&t)||null}var vn=function(t,e){return t(e)},En=function(t,e){return t(e)},Sn=$;function Pe(t){t()}function Cn(t){return t}function kn(){return[!1,Pe]}var xn=ee,In=V;function Rn(t,e){var n=e(),r=ge({h:{__:n,v:e}}),o=r[0].h,i=r[1];return ee(function(){o.__=n,o.v=e,ce(o)&&i({h:o})},[t,n,e]),me(function(){return ce(o)&&i({h:o}),t(function(){ce(o)&&i({h:o})})},[t]),n}function ce(t){var e,n,r=t.v,o=t.__;try{var i=r();return!((e=o)===(n=i)&&(e!==0||1/e==1/n)||e!=e&&n!=n)}catch{return!0}}var ns={useState:ge,useId:nt,useReducer:rt,useEffect:me,useLayoutEffect:ee,useInsertionEffect:xn,useTransition:kn,useDeferredValue:Cn,useSyncExternalStore:Rn,startTransition:Pe,useRef:ot,useImperativeHandle:it,useMemo:st,useCallback:at,useContext:ct,useDebugValue:lt,version:"17.0.2",Children:sn,render:fn,hydrate:_n,unmountComponentAtNode:yn,createPortal:dn,createElement:x,createContext:ut,createFactory:gn,cloneElement:wn,createRef:dt,Fragment:$,isValidElement:V,isElement:In,isFragment:mn,findDOMNode:bn,Component:A,PureComponent:X,memo:rn,forwardRef:on,flushSync:En,unstable_batchedUpdates:vn,StrictMode:Sn,Suspense:H,SuspenseList:D,lazy:un,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pn};const rs=Object.freeze(Object.defineProperty({__proto__:null,Children:sn,Component:A,Fragment:$,PureComponent:X,StrictMode:Sn,Suspense:H,SuspenseList:D,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pn,cloneElement:wn,createContext:ut,createElement:x,createFactory:gn,createPortal:dn,createRef:dt,default:ns,findDOMNode:bn,flushSync:En,forwardRef:on,hydrate:_n,isElement:In,isFragment:mn,isValidElement:V,lazy:un,memo:rn,render:fn,startTransition:Pe,unmountComponentAtNode:yn,unstable_batchedUpdates:vn,useCallback:at,useContext:ct,useDebugValue:lt,useDeferredValue:Cn,useEffect:me,useErrorBoundary:_r,useId:nt,useImperativeHandle:it,useInsertionEffect:xn,useLayoutEffect:ee,useMemo:st,useReducer:rt,useRef:ot,useState:ge,useSyncExternalStore:Rn,useTransition:kn,version:ts},Symbol.toStringTag,{value:"Module"})),os=et(rs);function Tn(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var E=Ai,On=Tn(dr),is=Tn(Bi),l=os;function ss(t){On.toString(t,{type:"terminal"}).then(console.log)}var as=`:root { --animation-duration: 300ms; } diff --git a/assets/index-_NeuCN-A.js b/assets/index-MQhzYnFg.js similarity index 99% rename from assets/index-_NeuCN-A.js rename to assets/index-MQhzYnFg.js index 792c90b..8919620 100644 --- a/assets/index-_NeuCN-A.js +++ b/assets/index-MQhzYnFg.js @@ -1,4 +1,4 @@ -import{n as ve,s as qe,T as k,t as W,a as u,o as Q,R as jr,p as U,y as ne}from"./index-Su3Bmzid.js";import{b as Nr}from"./browser-YRefIO1l.js";import"./index-XxsA1De3.js";/** +import{n as ve,s as qe,T as k,t as W,a as u,o as Q,R as jr,p as U,y as ne}from"./index-GY_DE3Uf.js";import{b as Nr}from"./browser-DNUtfqGr.js";import"./index-Mh1_DVck.js";/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause diff --git a/assets/index-XxsA1De3.js b/assets/index-Mh1_DVck.js similarity index 66% rename from assets/index-XxsA1De3.js rename to assets/index-Mh1_DVck.js index d1d91e9..3d3af11 100644 --- a/assets/index-XxsA1De3.js +++ b/assets/index-Mh1_DVck.js @@ -1,4 +1,4 @@ -var k$=Object.defineProperty;var _$=(u,e,t)=>e in u?k$(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t;var r0=(u,e,t)=>(_$(u,typeof e!="symbol"?e+"":e,t),t),Mp=(u,e,t)=>{if(!e.has(u))throw TypeError("Cannot "+t)};var k=(u,e,t)=>(Mp(u,e,"read from private field"),t?t.call(u):e.get(u)),a0=(u,e,t)=>{if(e.has(u))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(u):e.set(u,t)},M=(u,e,t,n)=>(Mp(u,e,"write to private field"),n?n.call(u,t):e.set(u,t),t);var G3=(u,e,t,n)=>({set _(r){M(u,e,r,t)},get _(){return k(u,e,n)}}),k0=(u,e,t)=>(Mp(u,e,"access private method"),t);function S$(u,e){for(var t=0;tn[r]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function t(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=t(r);fetch(r.href,i)}})();var P0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function f3(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}function T9(u){if(u.__esModule)return u;var e=u.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(u).forEach(function(n){var r=Object.getOwnPropertyDescriptor(u,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return u[n]}})}),t}var f_={exports:{}},P9={},l_={exports:{}},Y0={};/** +var k$=Object.defineProperty;var _$=(u,e,t)=>e in u?k$(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t;var r0=(u,e,t)=>(_$(u,typeof e!="symbol"?e+"":e,t),t),jp=(u,e,t)=>{if(!e.has(u))throw TypeError("Cannot "+t)};var k=(u,e,t)=>(jp(u,e,"read from private field"),t?t.call(u):e.get(u)),a0=(u,e,t)=>{if(e.has(u))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(u):e.set(u,t)},M=(u,e,t,n)=>(jp(u,e,"write to private field"),n?n.call(u,t):e.set(u,t),t);var G3=(u,e,t,n)=>({set _(r){M(u,e,r,t)},get _(){return k(u,e,n)}}),k0=(u,e,t)=>(jp(u,e,"access private method"),t);function S$(u,e){for(var t=0;tn[r]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function t(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=t(r);fetch(r.href,i)}})();var P0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function f3(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}function P9(u){if(u.__esModule)return u;var e=u.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(u).forEach(function(n){var r=Object.getOwnPropertyDescriptor(u,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return u[n]}})}),t}var l_={exports:{}},I9={},c_={exports:{}},Y0={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var k$=Object.defineProperty;var _$=(u,e,t)=>e in u?k$(u,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var fc=Symbol.for("react.element"),T$=Symbol.for("react.portal"),P$=Symbol.for("react.fragment"),I$=Symbol.for("react.strict_mode"),O$=Symbol.for("react.profiler"),R$=Symbol.for("react.provider"),N$=Symbol.for("react.context"),M$=Symbol.for("react.forward_ref"),j$=Symbol.for("react.suspense"),z$=Symbol.for("react.memo"),L$=Symbol.for("react.lazy"),iv=Symbol.iterator;function $$(u){return u===null||typeof u!="object"?null:(u=iv&&u[iv]||u["@@iterator"],typeof u=="function"?u:null)}var c_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},d_=Object.assign,E_={};function l3(u,e,t){this.props=u,this.context=e,this.refs=E_,this.updater=t||c_}l3.prototype.isReactComponent={};l3.prototype.setState=function(u,e){if(typeof u!="object"&&typeof u!="function"&&u!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,u,e,"setState")};l3.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};function p_(){}p_.prototype=l3.prototype;function Im(u,e,t){this.props=u,this.context=e,this.refs=E_,this.updater=t||c_}var Om=Im.prototype=new p_;Om.constructor=Im;d_(Om,l3.prototype);Om.isPureReactComponent=!0;var av=Array.isArray,h_=Object.prototype.hasOwnProperty,Rm={current:null},C_={key:!0,ref:!0,__self:!0,__source:!0};function m_(u,e,t){var n,r={},i=null,a=null;if(e!=null)for(n in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(i=""+e.key),e)h_.call(e,n)&&!C_.hasOwnProperty(n)&&(r[n]=e[n]);var o=arguments.length-2;if(o===1)r.children=t;else if(1e in u?k$(u,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var G$=w,V$=Symbol.for("react.element"),K$=Symbol.for("react.fragment"),Q$=Object.prototype.hasOwnProperty,J$=G$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Z$={key:!0,ref:!0,__self:!0,__source:!0};function b_(u,e,t){var n,r={},i=null,a=null;t!==void 0&&(i=""+t),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(a=e.ref);for(n in e)Q$.call(e,n)&&!Z$.hasOwnProperty(n)&&(r[n]=e[n]);if(u&&u.defaultProps)for(n in e=u.defaultProps,e)r[n]===void 0&&(r[n]=e[n]);return{$$typeof:V$,type:u,key:i,ref:a,props:r,_owner:J$.current}}P9.Fragment=K$;P9.jsx=b_;P9.jsxs=b_;f_.exports=P9;var K=f_.exports,Lh={},g_={exports:{}},Wt={},A_={exports:{}},y_={};/** + */var G$=w,V$=Symbol.for("react.element"),K$=Symbol.for("react.fragment"),Q$=Object.prototype.hasOwnProperty,J$=G$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Z$={key:!0,ref:!0,__self:!0,__source:!0};function g_(u,e,t){var n,r={},i=null,a=null;t!==void 0&&(i=""+t),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(a=e.ref);for(n in e)Q$.call(e,n)&&!Z$.hasOwnProperty(n)&&(r[n]=e[n]);if(u&&u.defaultProps)for(n in e=u.defaultProps,e)r[n]===void 0&&(r[n]=e[n]);return{$$typeof:V$,type:u,key:i,ref:a,props:r,_owner:J$.current}}I9.Fragment=K$;I9.jsx=g_;I9.jsxs=g_;l_.exports=I9;var V=l_.exports,Lh={},A_={exports:{}},Wt={},y_={exports:{}},v_={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var k$=Object.defineProperty;var _$=(u,e,t)=>e in u?k$(u,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(u){function e($,q){var U=$.length;$.push(q);u:for(;0>>1,s0=$[i0];if(0>>1;i0r(b0,U))A0r(_0,b0)?($[i0]=_0,$[A0]=U,i0=A0):($[i0]=b0,$[Q]=U,i0=Q);else if(A0r(_0,U))$[i0]=_0,$[A0]=U,i0=A0;else break u}}return q}function r($,q){var U=$.sortIndex-q.sortIndex;return U!==0?U:$.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;u.unstable_now=function(){return i.now()}}else{var a=Date,o=a.now();u.unstable_now=function(){return a.now()-o}}var s=[],f=[],l=1,c=null,d=3,E=!1,p=!1,h=!1,g=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A($){for(var q=t(f);q!==null;){if(q.callback===null)n(f);else if(q.startTime<=$)n(f),q.sortIndex=q.expirationTime,e(s,q);else break;q=t(f)}}function y($){if(h=!1,A($),!p)if(t(s)!==null)p=!0,O(B);else{var q=t(f);q!==null&&W(y,q.startTime-$)}}function B($,q){p=!1,h&&(h=!1,b(D),D=-1),E=!0;var U=d;try{for(A(q),c=t(s);c!==null&&(!(c.expirationTime>q)||$&&!L());){var i0=c.callback;if(typeof i0=="function"){c.callback=null,d=c.priorityLevel;var s0=i0(c.expirationTime<=q);q=u.unstable_now(),typeof s0=="function"?c.callback=s0:c===t(s)&&n(s),A(q)}else n(s);c=t(s)}if(c!==null)var o0=!0;else{var Q=t(f);Q!==null&&W(y,Q.startTime-q),o0=!1}return o0}finally{c=null,d=U,E=!1}}var v=!1,C=null,D=-1,S=5,x=-1;function L(){return!(u.unstable_now()-x$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=0<$?Math.floor(1e3/$):5},u.unstable_getCurrentPriorityLevel=function(){return d},u.unstable_getFirstCallbackNode=function(){return t(s)},u.unstable_next=function($){switch(d){case 1:case 2:case 3:var q=3;break;default:q=d}var U=d;d=q;try{return $()}finally{d=U}},u.unstable_pauseExecution=function(){},u.unstable_requestPaint=function(){},u.unstable_runWithPriority=function($,q){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var U=d;d=$;try{return q()}finally{d=U}},u.unstable_scheduleCallback=function($,q,U){var i0=u.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0i0?($.sortIndex=U,e(f,$),t(s)===null&&$===t(f)&&(h?(b(D),D=-1):h=!0,W(y,U-i0))):($.sortIndex=s0,e(s,$),p||E||(p=!0,O(B))),$},u.unstable_shouldYield=L,u.unstable_wrapCallback=function($){var q=d;return function(){var U=d;d=q;try{return $.apply(this,arguments)}finally{d=U}}}})(y_);A_.exports=y_;var Y$=A_.exports;/** + */(function(u){function e(L,q){var U=L.length;L.push(q);u:for(;0>>1,s0=L[i0];if(0>>1;i0r(b0,U))A0r(_0,b0)?(L[i0]=_0,L[A0]=U,i0=A0):(L[i0]=b0,L[K]=U,i0=K);else if(A0r(_0,U))L[i0]=_0,L[A0]=U,i0=A0;else break u}}return q}function r(L,q){var U=L.sortIndex-q.sortIndex;return U!==0?U:L.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;u.unstable_now=function(){return i.now()}}else{var a=Date,o=a.now();u.unstable_now=function(){return a.now()-o}}var s=[],f=[],l=1,c=null,d=3,E=!1,p=!1,h=!1,g=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(L){for(var q=t(f);q!==null;){if(q.callback===null)n(f);else if(q.startTime<=L)n(f),q.sortIndex=q.expirationTime,e(s,q);else break;q=t(f)}}function y(L){if(h=!1,A(L),!p)if(t(s)!==null)p=!0,O(B);else{var q=t(f);q!==null&&W(y,q.startTime-L)}}function B(L,q){p=!1,h&&(h=!1,b(F),F=-1),E=!0;var U=d;try{for(A(q),c=t(s);c!==null&&(!(c.expirationTime>q)||L&&!$());){var i0=c.callback;if(typeof i0=="function"){c.callback=null,d=c.priorityLevel;var s0=i0(c.expirationTime<=q);q=u.unstable_now(),typeof s0=="function"?c.callback=s0:c===t(s)&&n(s),A(q)}else n(s);c=t(s)}if(c!==null)var o0=!0;else{var K=t(f);K!==null&&W(y,K.startTime-q),o0=!1}return o0}finally{c=null,d=U,E=!1}}var v=!1,C=null,F=-1,S=5,x=-1;function $(){return!(u.unstable_now()-xL||125i0?(L.sortIndex=U,e(f,L),t(s)===null&&L===t(f)&&(h?(b(F),F=-1):h=!0,W(y,U-i0))):(L.sortIndex=s0,e(s,L),p||E||(p=!0,O(B))),L},u.unstable_shouldYield=$,u.unstable_wrapCallback=function(L){var q=d;return function(){var U=d;d=q;try{return L.apply(this,arguments)}finally{d=U}}}})(v_);y_.exports=v_;var Y$=y_.exports;/** * @license React * react-dom.production.min.js * @@ -30,18 +30,18 @@ var k$=Object.defineProperty;var _$=(u,e,t)=>e in u?k$(u,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var v_=w,Ut=Y$;function h0(u){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+u,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$h=Object.prototype.hasOwnProperty,X$=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,sv={},fv={};function uU(u){return $h.call(fv,u)?!0:$h.call(sv,u)?!1:X$.test(u)?fv[u]=!0:(sv[u]=!0,!1)}function eU(u,e,t,n){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:t!==null?!t.acceptsBooleans:(u=u.toLowerCase().slice(0,5),u!=="data-"&&u!=="aria-");default:return!1}}function tU(u,e,t,n){if(e===null||typeof e>"u"||eU(u,e,t,n))return!0;if(n)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function it(u,e,t,n,r,i,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=r,this.mustUseProperty=t,this.propertyName=u,this.type=e,this.sanitizeURL=i,this.removeEmptyString=a}var De={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(u){De[u]=new it(u,0,!1,u,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(u){var e=u[0];De[e]=new it(e,1,!1,u[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(u){De[u]=new it(u,2,!1,u.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(u){De[u]=new it(u,2,!1,u,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(u){De[u]=new it(u,3,!1,u.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(u){De[u]=new it(u,3,!0,u,null,!1,!1)});["capture","download"].forEach(function(u){De[u]=new it(u,4,!1,u,null,!1,!1)});["cols","rows","size","span"].forEach(function(u){De[u]=new it(u,6,!1,u,null,!1,!1)});["rowSpan","start"].forEach(function(u){De[u]=new it(u,5,!1,u.toLowerCase(),null,!1,!1)});var Mm=/[\-:]([a-z])/g;function jm(u){return u[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(u){var e=u.replace(Mm,jm);De[e]=new it(e,1,!1,u,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(u){var e=u.replace(Mm,jm);De[e]=new it(e,1,!1,u,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(u){var e=u.replace(Mm,jm);De[e]=new it(e,1,!1,u,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(u){De[u]=new it(u,1,!1,u.toLowerCase(),null,!1,!1)});De.xlinkHref=new it("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(u){De[u]=new it(u,1,!1,u.toLowerCase(),null,!0,!0)});function zm(u,e,t,n){var r=De.hasOwnProperty(e)?De[e]:null;(r!==null?r.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$h=Object.prototype.hasOwnProperty,X$=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,fv={},lv={};function uU(u){return $h.call(lv,u)?!0:$h.call(fv,u)?!1:X$.test(u)?lv[u]=!0:(fv[u]=!0,!1)}function eU(u,e,t,n){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:t!==null?!t.acceptsBooleans:(u=u.toLowerCase().slice(0,5),u!=="data-"&&u!=="aria-");default:return!1}}function tU(u,e,t,n){if(e===null||typeof e>"u"||eU(u,e,t,n))return!0;if(n)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function it(u,e,t,n,r,i,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=r,this.mustUseProperty=t,this.propertyName=u,this.type=e,this.sanitizeURL=i,this.removeEmptyString=a}var De={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(u){De[u]=new it(u,0,!1,u,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(u){var e=u[0];De[e]=new it(e,1,!1,u[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(u){De[u]=new it(u,2,!1,u.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(u){De[u]=new it(u,2,!1,u,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(u){De[u]=new it(u,3,!1,u.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(u){De[u]=new it(u,3,!0,u,null,!1,!1)});["capture","download"].forEach(function(u){De[u]=new it(u,4,!1,u,null,!1,!1)});["cols","rows","size","span"].forEach(function(u){De[u]=new it(u,6,!1,u,null,!1,!1)});["rowSpan","start"].forEach(function(u){De[u]=new it(u,5,!1,u.toLowerCase(),null,!1,!1)});var jm=/[\-:]([a-z])/g;function zm(u){return u[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(u){var e=u.replace(jm,zm);De[e]=new it(e,1,!1,u,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(u){var e=u.replace(jm,zm);De[e]=new it(e,1,!1,u,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(u){var e=u.replace(jm,zm);De[e]=new it(e,1,!1,u,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(u){De[u]=new it(u,1,!1,u.toLowerCase(),null,!1,!1)});De.xlinkHref=new it("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(u){De[u]=new it(u,1,!1,u.toLowerCase(),null,!0,!0)});function Lm(u,e,t,n){var r=De.hasOwnProperty(e)?De[e]:null;(r!==null?r.type!==0:n||!(2o||r[a]!==i[o]){var s=` -`+r[a].replace(" at new "," at ");return u.displayName&&s.includes("")&&(s=s.replace("",u.displayName)),s}while(1<=a&&0<=o);break}}}finally{Lp=!1,Error.prepareStackTrace=t}return(u=u?u.displayName||u.name:"")?bl(u):""}function nU(u){switch(u.tag){case 5:return bl(u.type);case 16:return bl("Lazy");case 13:return bl("Suspense");case 19:return bl("SuspenseList");case 0:case 2:case 15:return u=$p(u.type,!1),u;case 11:return u=$p(u.type.render,!1),u;case 1:return u=$p(u.type,!0),u;default:return""}}function Hh(u){if(u==null)return null;if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case Ks:return"Fragment";case Vs:return"Portal";case Uh:return"Profiler";case Lm:return"StrictMode";case Wh:return"Suspense";case qh:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case D_:return(u.displayName||"Context")+".Consumer";case F_:return(u._context.displayName||"Context")+".Provider";case $m:var e=u.render;return u=u.displayName,u||(u=e.displayName||e.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case Um:return e=u.displayName||null,e!==null?e:Hh(u.type)||"Memo";case xi:e=u._payload,u=u._init;try{return Hh(u(e))}catch{}}return null}function rU(u){var e=u.type;switch(u.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return u=e.render,u=u.displayName||u.name||"",e.displayName||(u!==""?"ForwardRef("+u+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Hh(e);case 8:return e===Lm?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function da(u){switch(typeof u){case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function x_(u){var e=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function iU(u){var e=x_(u)?"checked":"value",t=Object.getOwnPropertyDescriptor(u.constructor.prototype,e),n=""+u[e];if(!u.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var r=t.get,i=t.set;return Object.defineProperty(u,e,{configurable:!0,get:function(){return r.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(u,e,{enumerable:t.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){u._valueTracker=null,delete u[e]}}}}function o6(u){u._valueTracker||(u._valueTracker=iU(u))}function k_(u){if(!u)return!1;var e=u._valueTracker;if(!e)return!0;var t=e.getValue(),n="";return u&&(n=x_(u)?u.checked?"true":"false":u.value),u=n,u!==t?(e.setValue(u),!0):!1}function $5(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}function Gh(u,e){var t=e.checked;return zu({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??u._wrapperState.initialChecked})}function cv(u,e){var t=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;t=da(e.value!=null?e.value:t),u._wrapperState={initialChecked:n,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function __(u,e){e=e.checked,e!=null&&zm(u,"checked",e,!1)}function Vh(u,e){__(u,e);var t=da(e.value),n=e.type;if(t!=null)n==="number"?(t===0&&u.value===""||u.value!=t)&&(u.value=""+t):u.value!==""+t&&(u.value=""+t);else if(n==="submit"||n==="reset"){u.removeAttribute("value");return}e.hasOwnProperty("value")?Kh(u,e.type,t):e.hasOwnProperty("defaultValue")&&Kh(u,e.type,da(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(u.defaultChecked=!!e.defaultChecked)}function dv(u,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+u._wrapperState.initialValue,t||e===u.value||(u.value=e),u.defaultValue=e}t=u.name,t!==""&&(u.name=""),u.defaultChecked=!!u._wrapperState.initialChecked,t!==""&&(u.name=t)}function Kh(u,e,t){(e!=="number"||$5(u.ownerDocument)!==u)&&(t==null?u.defaultValue=""+u._wrapperState.initialValue:u.defaultValue!==""+t&&(u.defaultValue=""+t))}var gl=Array.isArray;function Af(u,e,t,n){if(u=u.options,e){e={};for(var r=0;r"+e.valueOf().toString()+"",e=s6.firstChild;u.firstChild;)u.removeChild(u.firstChild);for(;e.firstChild;)u.appendChild(e.firstChild)}});function n1(u,e){if(e){var t=u.firstChild;if(t&&t===u.lastChild&&t.nodeType===3){t.nodeValue=e;return}}u.textContent=e}var Rl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},aU=["Webkit","ms","Moz","O"];Object.keys(Rl).forEach(function(u){aU.forEach(function(e){e=e+u.charAt(0).toUpperCase()+u.substring(1),Rl[e]=Rl[u]})});function I_(u,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||Rl.hasOwnProperty(u)&&Rl[u]?(""+e).trim():e+"px"}function O_(u,e){u=u.style;for(var t in e)if(e.hasOwnProperty(t)){var n=t.indexOf("--")===0,r=I_(t,e[t],n);t==="float"&&(t="cssFloat"),n?u.setProperty(t,r):u[t]=r}}var oU=zu({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Zh(u,e){if(e){if(oU[u]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(h0(137,u));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(h0(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(h0(61))}if(e.style!=null&&typeof e.style!="object")throw Error(h0(62))}}function Yh(u,e){if(u.indexOf("-")===-1)return typeof e.is=="string";switch(u){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xh=null;function Wm(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var u7=null,yf=null,vf=null;function hv(u){if(u=dc(u)){if(typeof u7!="function")throw Error(h0(280));var e=u.stateNode;e&&(e=M9(e),u7(u.stateNode,u.type,e))}}function R_(u){yf?vf?vf.push(u):vf=[u]:yf=u}function N_(){if(yf){var u=yf,e=vf;if(vf=yf=null,hv(u),e)for(u=0;u>>=0,u===0?32:31-(bU(u)/gU|0)|0}var f6=64,l6=4194304;function Al(u){switch(u&-u){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return u&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return u}}function H5(u,e){var t=u.pendingLanes;if(t===0)return 0;var n=0,r=u.suspendedLanes,i=u.pingedLanes,a=t&268435455;if(a!==0){var o=a&~r;o!==0?n=Al(o):(i&=a,i!==0&&(n=Al(i)))}else a=t&~r,a!==0?n=Al(a):i!==0&&(n=Al(i));if(n===0)return 0;if(e!==0&&e!==n&&!(e&r)&&(r=n&-n,i=e&-e,r>=i||r===16&&(i&4194240)!==0))return e;if(n&4&&(n|=t&16),e=u.entangledLanes,e!==0)for(u=u.entanglements,e&=n;0t;t++)e.push(u);return e}function lc(u,e,t){u.pendingLanes|=e,e!==536870912&&(u.suspendedLanes=0,u.pingedLanes=0),u=u.eventTimes,e=31-jn(e),u[e]=t}function BU(u,e){var t=u.pendingLanes&~e;u.pendingLanes=e,u.suspendedLanes=0,u.pingedLanes=0,u.expiredLanes&=e,u.mutableReadLanes&=e,u.entangledLanes&=e,e=u.entanglements;var n=u.eventTimes;for(u=u.expirationTimes;0=Ml),Fv=" ",Dv=!1;function tS(u,e){switch(u){case"keyup":return ZU.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nS(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var Qs=!1;function XU(u,e){switch(u){case"compositionend":return nS(e);case"keypress":return e.which!==32?null:(Dv=!0,Fv);case"textInput":return u=e.data,u===Fv&&Dv?null:u;default:return null}}function uW(u,e){if(Qs)return u==="compositionend"||!Zm&&tS(u,e)?(u=uS(),o5=Km=Zi=null,Qs=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-u};u=n}u:{for(;t;){if(t.nextSibling){t=t.nextSibling;break u}t=t.parentNode}t=void 0}t=_v(t)}}function oS(u,e){return u&&e?u===e?!0:u&&u.nodeType===3?!1:e&&e.nodeType===3?oS(u,e.parentNode):"contains"in u?u.contains(e):u.compareDocumentPosition?!!(u.compareDocumentPosition(e)&16):!1:!1}function sS(){for(var u=window,e=$5();e instanceof u.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)u=e.contentWindow;else break;e=$5(u.document)}return e}function Ym(u){var e=u&&u.nodeName&&u.nodeName.toLowerCase();return e&&(e==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||e==="textarea"||u.contentEditable==="true")}function fW(u){var e=sS(),t=u.focusedElem,n=u.selectionRange;if(e!==t&&t&&t.ownerDocument&&oS(t.ownerDocument.documentElement,t)){if(n!==null&&Ym(t)){if(e=n.start,u=n.end,u===void 0&&(u=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(u,t.value.length);else if(u=(e=t.ownerDocument||document)&&e.defaultView||window,u.getSelection){u=u.getSelection();var r=t.textContent.length,i=Math.min(n.start,r);n=n.end===void 0?i:Math.min(n.end,r),!u.extend&&i>n&&(r=n,n=i,i=r),r=Sv(t,i);var a=Sv(t,n);r&&a&&(u.rangeCount!==1||u.anchorNode!==r.node||u.anchorOffset!==r.offset||u.focusNode!==a.node||u.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),u.removeAllRanges(),i>n?(u.addRange(e),u.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),u.addRange(e)))}}for(e=[],u=t;u=u.parentNode;)u.nodeType===1&&e.push({element:u,left:u.scrollLeft,top:u.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Js=null,a7=null,zl=null,o7=!1;function Tv(u,e,t){var n=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;o7||Js==null||Js!==$5(n)||(n=Js,"selectionStart"in n&&Ym(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),zl&&f1(zl,n)||(zl=n,n=K5(a7,"onSelect"),0Xs||(u.current=E7[Xs],E7[Xs]=null,Xs--)}function Bu(u,e){Xs++,E7[Xs]=u.current,u.current=e}var Ea={},$e=Fa(Ea),pt=Fa(!1),Ro=Ea;function y4(u,e){var t=u.type.contextTypes;if(!t)return Ea;var n=u.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var r={},i;for(i in t)r[i]=e[i];return n&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=e,u.__reactInternalMemoizedMaskedChildContext=r),r}function ht(u){return u=u.childContextTypes,u!=null}function J5(){wu(pt),wu($e)}function jv(u,e,t){if($e.current!==Ea)throw Error(h0(168));Bu($e,e),Bu(pt,t)}function mS(u,e,t){var n=u.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return t;n=n.getChildContext();for(var r in n)if(!(r in e))throw Error(h0(108,rU(u)||"Unknown",r));return zu({},t,n)}function Z5(u){return u=(u=u.stateNode)&&u.__reactInternalMemoizedMergedChildContext||Ea,Ro=$e.current,Bu($e,u),Bu(pt,pt.current),!0}function zv(u,e,t){var n=u.stateNode;if(!n)throw Error(h0(169));t?(u=mS(u,e,Ro),n.__reactInternalMemoizedMergedChildContext=u,wu(pt),wu($e),Bu($e,u)):wu(pt),Bu(pt,t)}var Sr=null,j9=!1,e8=!1;function bS(u){Sr===null?Sr=[u]:Sr.push(u)}function yW(u){j9=!0,bS(u)}function Da(){if(!e8&&Sr!==null){e8=!0;var u=0,e=Cu;try{var t=Sr;for(Cu=1;u>=a,r-=a,Gr=1<<32-jn(e)+r|t<D?(S=C,C=null):S=C.sibling;var x=d(b,C,A[D],y);if(x===null){C===null&&(C=S);break}u&&C&&x.alternate===null&&e(b,C),m=i(x,m,D),v===null?B=x:v.sibling=x,v=x,C=S}if(D===A.length)return t(b,C),ku&&Ma(b,D),B;if(C===null){for(;DD?(S=C,C=null):S=C.sibling;var L=d(b,C,x.value,y);if(L===null){C===null&&(C=S);break}u&&C&&L.alternate===null&&e(b,C),m=i(L,m,D),v===null?B=L:v.sibling=L,v=L,C=S}if(x.done)return t(b,C),ku&&Ma(b,D),B;if(C===null){for(;!x.done;D++,x=A.next())x=c(b,x.value,y),x!==null&&(m=i(x,m,D),v===null?B=x:v.sibling=x,v=x);return ku&&Ma(b,D),B}for(C=n(b,C);!x.done;D++,x=A.next())x=E(C,b,D,x.value,y),x!==null&&(u&&x.alternate!==null&&C.delete(x.key===null?D:x.key),m=i(x,m,D),v===null?B=x:v.sibling=x,v=x);return u&&C.forEach(function(Y){return e(b,Y)}),ku&&Ma(b,D),B}function g(b,m,A,y){if(typeof A=="object"&&A!==null&&A.type===Ks&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case a6:u:{for(var B=A.key,v=m;v!==null;){if(v.key===B){if(B=A.type,B===Ks){if(v.tag===7){t(b,v.sibling),m=r(v,A.props.children),m.return=b,b=m;break u}}else if(v.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===xi&&Gv(B)===v.type){t(b,v.sibling),m=r(v,A.props),m.ref=Y3(b,v,A),m.return=b,b=m;break u}t(b,v);break}else e(b,v);v=v.sibling}A.type===Ks?(m=wo(A.props.children,b.mode,y,A.key),m.return=b,b=m):(y=h5(A.type,A.key,A.props,null,b.mode,y),y.ref=Y3(b,m,A),y.return=b,b=y)}return a(b);case Vs:u:{for(v=A.key;m!==null;){if(m.key===v)if(m.tag===4&&m.stateNode.containerInfo===A.containerInfo&&m.stateNode.implementation===A.implementation){t(b,m.sibling),m=r(m,A.children||[]),m.return=b,b=m;break u}else{t(b,m);break}else e(b,m);m=m.sibling}m=f8(A,b.mode,y),m.return=b,b=m}return a(b);case xi:return v=A._init,g(b,m,v(A._payload),y)}if(gl(A))return p(b,m,A,y);if(V3(A))return h(b,m,A,y);m6(b,A)}return typeof A=="string"&&A!==""||typeof A=="number"?(A=""+A,m!==null&&m.tag===6?(t(b,m.sibling),m=r(m,A),m.return=b,b=m):(t(b,m),m=s8(A,b.mode,y),m.return=b,b=m),a(b)):t(b,m)}return g}var B4=wS(!0),xS=wS(!1),Ec={},Cr=Fa(Ec),E1=Fa(Ec),p1=Fa(Ec);function Za(u){if(u===Ec)throw Error(h0(174));return u}function ob(u,e){switch(Bu(p1,e),Bu(E1,u),Bu(Cr,Ec),u=e.nodeType,u){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Jh(null,"");break;default:u=u===8?e.parentNode:e,e=u.namespaceURI||null,u=u.tagName,e=Jh(e,u)}wu(Cr),Bu(Cr,e)}function F4(){wu(Cr),wu(E1),wu(p1)}function kS(u){Za(p1.current);var e=Za(Cr.current),t=Jh(e,u.type);e!==t&&(Bu(E1,u),Bu(Cr,t))}function sb(u){E1.current===u&&(wu(Cr),wu(E1))}var Tu=Fa(0);function n2(u){for(var e=u;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===u)break;for(;e.sibling===null;){if(e.return===null||e.return===u)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var t8=[];function fb(){for(var u=0;ut?t:4,u(!0);var n=n8.transition;n8.transition={};try{u(!1),e()}finally{Cu=t,n8.transition=n}}function qS(){return pn().memoizedState}function DW(u,e,t){var n=oa(u);if(t={lane:n,action:t,hasEagerState:!1,eagerState:null,next:null},HS(u))GS(e,t);else if(t=vS(u,e,t,n),t!==null){var r=Je();zn(t,u,n,r),VS(t,e,n)}}function wW(u,e,t){var n=oa(u),r={lane:n,action:t,hasEagerState:!1,eagerState:null,next:null};if(HS(u))GS(e,r);else{var i=u.alternate;if(u.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var a=e.lastRenderedState,o=i(a,t);if(r.hasEagerState=!0,r.eagerState=o,Un(o,a)){var s=e.interleaved;s===null?(r.next=r,ib(e)):(r.next=s.next,s.next=r),e.interleaved=r;return}}catch{}finally{}t=vS(u,e,r,n),t!==null&&(r=Je(),zn(t,u,n,r),VS(t,e,n))}}function HS(u){var e=u.alternate;return u===Mu||e!==null&&e===Mu}function GS(u,e){Ll=r2=!0;var t=u.pending;t===null?e.next=e:(e.next=t.next,t.next=e),u.pending=e}function VS(u,e,t){if(t&4194240){var n=e.lanes;n&=u.pendingLanes,t|=n,e.lanes=t,Hm(u,t)}}var i2={readContext:En,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useInsertionEffect:ke,useLayoutEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useMutableSource:ke,useSyncExternalStore:ke,useId:ke,unstable_isNewReconciler:!1},xW={readContext:En,useCallback:function(u,e){return Xn().memoizedState=[u,e===void 0?null:e],u},useContext:En,useEffect:Kv,useImperativeHandle:function(u,e,t){return t=t!=null?t.concat([u]):null,c5(4194308,4,zS.bind(null,e,u),t)},useLayoutEffect:function(u,e){return c5(4194308,4,u,e)},useInsertionEffect:function(u,e){return c5(4,2,u,e)},useMemo:function(u,e){var t=Xn();return e=e===void 0?null:e,u=u(),t.memoizedState=[u,e],u},useReducer:function(u,e,t){var n=Xn();return e=t!==void 0?t(e):e,n.memoizedState=n.baseState=e,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:e},n.queue=u,u=u.dispatch=DW.bind(null,Mu,u),[n.memoizedState,u]},useRef:function(u){var e=Xn();return u={current:u},e.memoizedState=u},useState:Vv,useDebugValue:pb,useDeferredValue:function(u){return Xn().memoizedState=u},useTransition:function(){var u=Vv(!1),e=u[0];return u=FW.bind(null,u[1]),Xn().memoizedState=u,[e,u]},useMutableSource:function(){},useSyncExternalStore:function(u,e,t){var n=Mu,r=Xn();if(ku){if(t===void 0)throw Error(h0(407));t=t()}else{if(t=e(),he===null)throw Error(h0(349));Mo&30||TS(n,e,t)}r.memoizedState=t;var i={value:t,getSnapshot:e};return r.queue=i,Kv(IS.bind(null,n,i,u),[u]),n.flags|=2048,m1(9,PS.bind(null,n,i,t,e),void 0,null),t},useId:function(){var u=Xn(),e=he.identifierPrefix;if(ku){var t=Vr,n=Gr;t=(n&~(1<<32-jn(n)-1)).toString(32)+t,e=":"+e+"R"+t,t=h1++,0")&&(s=s.replace("",u.displayName)),s}while(1<=a&&0<=o);break}}}finally{$p=!1,Error.prepareStackTrace=t}return(u=u?u.displayName||u.name:"")?bl(u):""}function nU(u){switch(u.tag){case 5:return bl(u.type);case 16:return bl("Lazy");case 13:return bl("Suspense");case 19:return bl("SuspenseList");case 0:case 2:case 15:return u=Up(u.type,!1),u;case 11:return u=Up(u.type.render,!1),u;case 1:return u=Up(u.type,!0),u;default:return""}}function Hh(u){if(u==null)return null;if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case Ks:return"Fragment";case Vs:return"Portal";case Uh:return"Profiler";case $m:return"StrictMode";case Wh:return"Suspense";case qh:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case w_:return(u.displayName||"Context")+".Consumer";case D_:return(u._context.displayName||"Context")+".Provider";case Um:var e=u.render;return u=u.displayName,u||(u=e.displayName||e.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case Wm:return e=u.displayName||null,e!==null?e:Hh(u.type)||"Memo";case ki:e=u._payload,u=u._init;try{return Hh(u(e))}catch{}}return null}function rU(u){var e=u.type;switch(u.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return u=e.render,u=u.displayName||u.name||"",e.displayName||(u!==""?"ForwardRef("+u+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Hh(e);case 8:return e===$m?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ea(u){switch(typeof u){case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function k_(u){var e=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function iU(u){var e=k_(u)?"checked":"value",t=Object.getOwnPropertyDescriptor(u.constructor.prototype,e),n=""+u[e];if(!u.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var r=t.get,i=t.set;return Object.defineProperty(u,e,{configurable:!0,get:function(){return r.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(u,e,{enumerable:t.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){u._valueTracker=null,delete u[e]}}}}function s6(u){u._valueTracker||(u._valueTracker=iU(u))}function __(u){if(!u)return!1;var e=u._valueTracker;if(!e)return!0;var t=e.getValue(),n="";return u&&(n=k_(u)?u.checked?"true":"false":u.value),u=n,u!==t?(e.setValue(u),!0):!1}function U5(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}function Gh(u,e){var t=e.checked;return zu({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??u._wrapperState.initialChecked})}function dv(u,e){var t=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;t=Ea(e.value!=null?e.value:t),u._wrapperState={initialChecked:n,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function S_(u,e){e=e.checked,e!=null&&Lm(u,"checked",e,!1)}function Vh(u,e){S_(u,e);var t=Ea(e.value),n=e.type;if(t!=null)n==="number"?(t===0&&u.value===""||u.value!=t)&&(u.value=""+t):u.value!==""+t&&(u.value=""+t);else if(n==="submit"||n==="reset"){u.removeAttribute("value");return}e.hasOwnProperty("value")?Kh(u,e.type,t):e.hasOwnProperty("defaultValue")&&Kh(u,e.type,Ea(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(u.defaultChecked=!!e.defaultChecked)}function Ev(u,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+u._wrapperState.initialValue,t||e===u.value||(u.value=e),u.defaultValue=e}t=u.name,t!==""&&(u.name=""),u.defaultChecked=!!u._wrapperState.initialChecked,t!==""&&(u.name=t)}function Kh(u,e,t){(e!=="number"||U5(u.ownerDocument)!==u)&&(t==null?u.defaultValue=""+u._wrapperState.initialValue:u.defaultValue!==""+t&&(u.defaultValue=""+t))}var gl=Array.isArray;function Af(u,e,t,n){if(u=u.options,e){e={};for(var r=0;r"+e.valueOf().toString()+"",e=f6.firstChild;u.firstChild;)u.removeChild(u.firstChild);for(;e.firstChild;)u.appendChild(e.firstChild)}});function r1(u,e){if(e){var t=u.firstChild;if(t&&t===u.lastChild&&t.nodeType===3){t.nodeValue=e;return}}u.textContent=e}var Rl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},aU=["Webkit","ms","Moz","O"];Object.keys(Rl).forEach(function(u){aU.forEach(function(e){e=e+u.charAt(0).toUpperCase()+u.substring(1),Rl[e]=Rl[u]})});function O_(u,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||Rl.hasOwnProperty(u)&&Rl[u]?(""+e).trim():e+"px"}function R_(u,e){u=u.style;for(var t in e)if(e.hasOwnProperty(t)){var n=t.indexOf("--")===0,r=O_(t,e[t],n);t==="float"&&(t="cssFloat"),n?u.setProperty(t,r):u[t]=r}}var oU=zu({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Zh(u,e){if(e){if(oU[u]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(h0(137,u));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(h0(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(h0(61))}if(e.style!=null&&typeof e.style!="object")throw Error(h0(62))}}function Yh(u,e){if(u.indexOf("-")===-1)return typeof e.is=="string";switch(u){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xh=null;function qm(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var u7=null,yf=null,vf=null;function Cv(u){if(u=Ec(u)){if(typeof u7!="function")throw Error(h0(280));var e=u.stateNode;e&&(e=j9(e),u7(u.stateNode,u.type,e))}}function N_(u){yf?vf?vf.push(u):vf=[u]:yf=u}function M_(){if(yf){var u=yf,e=vf;if(vf=yf=null,Cv(u),e)for(u=0;u>>=0,u===0?32:31-(bU(u)/gU|0)|0}var l6=64,c6=4194304;function Al(u){switch(u&-u){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return u&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return u}}function G5(u,e){var t=u.pendingLanes;if(t===0)return 0;var n=0,r=u.suspendedLanes,i=u.pingedLanes,a=t&268435455;if(a!==0){var o=a&~r;o!==0?n=Al(o):(i&=a,i!==0&&(n=Al(i)))}else a=t&~r,a!==0?n=Al(a):i!==0&&(n=Al(i));if(n===0)return 0;if(e!==0&&e!==n&&!(e&r)&&(r=n&-n,i=e&-e,r>=i||r===16&&(i&4194240)!==0))return e;if(n&4&&(n|=t&16),e=u.entangledLanes,e!==0)for(u=u.entanglements,e&=n;0t;t++)e.push(u);return e}function cc(u,e,t){u.pendingLanes|=e,e!==536870912&&(u.suspendedLanes=0,u.pingedLanes=0),u=u.eventTimes,e=31-jn(e),u[e]=t}function BU(u,e){var t=u.pendingLanes&~e;u.pendingLanes=e,u.suspendedLanes=0,u.pingedLanes=0,u.expiredLanes&=e,u.mutableReadLanes&=e,u.entangledLanes&=e,e=u.entanglements;var n=u.eventTimes;for(u=u.expirationTimes;0=Ml),Dv=" ",wv=!1;function nS(u,e){switch(u){case"keyup":return ZU.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rS(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var Qs=!1;function XU(u,e){switch(u){case"compositionend":return rS(e);case"keypress":return e.which!==32?null:(wv=!0,Dv);case"textInput":return u=e.data,u===Dv&&wv?null:u;default:return null}}function uW(u,e){if(Qs)return u==="compositionend"||!Ym&&nS(u,e)?(u=eS(),s5=Qm=Yi=null,Qs=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-u};u=n}u:{for(;t;){if(t.nextSibling){t=t.nextSibling;break u}t=t.parentNode}t=void 0}t=Sv(t)}}function sS(u,e){return u&&e?u===e?!0:u&&u.nodeType===3?!1:e&&e.nodeType===3?sS(u,e.parentNode):"contains"in u?u.contains(e):u.compareDocumentPosition?!!(u.compareDocumentPosition(e)&16):!1:!1}function fS(){for(var u=window,e=U5();e instanceof u.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)u=e.contentWindow;else break;e=U5(u.document)}return e}function Xm(u){var e=u&&u.nodeName&&u.nodeName.toLowerCase();return e&&(e==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||e==="textarea"||u.contentEditable==="true")}function fW(u){var e=fS(),t=u.focusedElem,n=u.selectionRange;if(e!==t&&t&&t.ownerDocument&&sS(t.ownerDocument.documentElement,t)){if(n!==null&&Xm(t)){if(e=n.start,u=n.end,u===void 0&&(u=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(u,t.value.length);else if(u=(e=t.ownerDocument||document)&&e.defaultView||window,u.getSelection){u=u.getSelection();var r=t.textContent.length,i=Math.min(n.start,r);n=n.end===void 0?i:Math.min(n.end,r),!u.extend&&i>n&&(r=n,n=i,i=r),r=Tv(t,i);var a=Tv(t,n);r&&a&&(u.rangeCount!==1||u.anchorNode!==r.node||u.anchorOffset!==r.offset||u.focusNode!==a.node||u.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),u.removeAllRanges(),i>n?(u.addRange(e),u.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),u.addRange(e)))}}for(e=[],u=t;u=u.parentNode;)u.nodeType===1&&e.push({element:u,left:u.scrollLeft,top:u.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Js=null,a7=null,zl=null,o7=!1;function Pv(u,e,t){var n=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;o7||Js==null||Js!==U5(n)||(n=Js,"selectionStart"in n&&Xm(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),zl&&l1(zl,n)||(zl=n,n=Q5(a7,"onSelect"),0Xs||(u.current=E7[Xs],E7[Xs]=null,Xs--)}function Bu(u,e){Xs++,E7[Xs]=u.current,u.current=e}var pa={},$e=wa(pa),pt=wa(!1),No=pa;function y4(u,e){var t=u.type.contextTypes;if(!t)return pa;var n=u.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var r={},i;for(i in t)r[i]=e[i];return n&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=e,u.__reactInternalMemoizedMaskedChildContext=r),r}function ht(u){return u=u.childContextTypes,u!=null}function Z5(){wu(pt),wu($e)}function zv(u,e,t){if($e.current!==pa)throw Error(h0(168));Bu($e,e),Bu(pt,t)}function bS(u,e,t){var n=u.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return t;n=n.getChildContext();for(var r in n)if(!(r in e))throw Error(h0(108,rU(u)||"Unknown",r));return zu({},t,n)}function Y5(u){return u=(u=u.stateNode)&&u.__reactInternalMemoizedMergedChildContext||pa,No=$e.current,Bu($e,u),Bu(pt,pt.current),!0}function Lv(u,e,t){var n=u.stateNode;if(!n)throw Error(h0(169));t?(u=bS(u,e,No),n.__reactInternalMemoizedMergedChildContext=u,wu(pt),wu($e),Bu($e,u)):wu(pt),Bu(pt,t)}var Sr=null,z9=!1,t8=!1;function gS(u){Sr===null?Sr=[u]:Sr.push(u)}function yW(u){z9=!0,gS(u)}function xa(){if(!t8&&Sr!==null){t8=!0;var u=0,e=Cu;try{var t=Sr;for(Cu=1;u>=a,r-=a,Gr=1<<32-jn(e)+r|t<F?(S=C,C=null):S=C.sibling;var x=d(b,C,A[F],y);if(x===null){C===null&&(C=S);break}u&&C&&x.alternate===null&&e(b,C),m=i(x,m,F),v===null?B=x:v.sibling=x,v=x,C=S}if(F===A.length)return t(b,C),ku&&ja(b,F),B;if(C===null){for(;FF?(S=C,C=null):S=C.sibling;var $=d(b,C,x.value,y);if($===null){C===null&&(C=S);break}u&&C&&$.alternate===null&&e(b,C),m=i($,m,F),v===null?B=$:v.sibling=$,v=$,C=S}if(x.done)return t(b,C),ku&&ja(b,F),B;if(C===null){for(;!x.done;F++,x=A.next())x=c(b,x.value,y),x!==null&&(m=i(x,m,F),v===null?B=x:v.sibling=x,v=x);return ku&&ja(b,F),B}for(C=n(b,C);!x.done;F++,x=A.next())x=E(C,b,F,x.value,y),x!==null&&(u&&x.alternate!==null&&C.delete(x.key===null?F:x.key),m=i(x,m,F),v===null?B=x:v.sibling=x,v=x);return u&&C.forEach(function(X){return e(b,X)}),ku&&ja(b,F),B}function g(b,m,A,y){if(typeof A=="object"&&A!==null&&A.type===Ks&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case o6:u:{for(var B=A.key,v=m;v!==null;){if(v.key===B){if(B=A.type,B===Ks){if(v.tag===7){t(b,v.sibling),m=r(v,A.props.children),m.return=b,b=m;break u}}else if(v.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===ki&&Vv(B)===v.type){t(b,v.sibling),m=r(v,A.props),m.ref=Y3(b,v,A),m.return=b,b=m;break u}t(b,v);break}else e(b,v);v=v.sibling}A.type===Ks?(m=xo(A.props.children,b.mode,y,A.key),m.return=b,b=m):(y=C5(A.type,A.key,A.props,null,b.mode,y),y.ref=Y3(b,m,A),y.return=b,b=y)}return a(b);case Vs:u:{for(v=A.key;m!==null;){if(m.key===v)if(m.tag===4&&m.stateNode.containerInfo===A.containerInfo&&m.stateNode.implementation===A.implementation){t(b,m.sibling),m=r(m,A.children||[]),m.return=b,b=m;break u}else{t(b,m);break}else e(b,m);m=m.sibling}m=l8(A,b.mode,y),m.return=b,b=m}return a(b);case ki:return v=A._init,g(b,m,v(A._payload),y)}if(gl(A))return p(b,m,A,y);if(V3(A))return h(b,m,A,y);b6(b,A)}return typeof A=="string"&&A!==""||typeof A=="number"?(A=""+A,m!==null&&m.tag===6?(t(b,m.sibling),m=r(m,A),m.return=b,b=m):(t(b,m),m=f8(A,b.mode,y),m.return=b,b=m),a(b)):t(b,m)}return g}var B4=xS(!0),kS=xS(!1),pc={},Cr=wa(pc),p1=wa(pc),h1=wa(pc);function Ya(u){if(u===pc)throw Error(h0(174));return u}function sb(u,e){switch(Bu(h1,e),Bu(p1,u),Bu(Cr,pc),u=e.nodeType,u){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Jh(null,"");break;default:u=u===8?e.parentNode:e,e=u.namespaceURI||null,u=u.tagName,e=Jh(e,u)}wu(Cr),Bu(Cr,e)}function F4(){wu(Cr),wu(p1),wu(h1)}function _S(u){Ya(h1.current);var e=Ya(Cr.current),t=Jh(e,u.type);e!==t&&(Bu(p1,u),Bu(Cr,t))}function fb(u){p1.current===u&&(wu(Cr),wu(p1))}var Tu=wa(0);function r2(u){for(var e=u;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===u)break;for(;e.sibling===null;){if(e.return===null||e.return===u)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var n8=[];function lb(){for(var u=0;ut?t:4,u(!0);var n=r8.transition;r8.transition={};try{u(!1),e()}finally{Cu=t,r8.transition=n}}function HS(){return pn().memoizedState}function DW(u,e,t){var n=sa(u);if(t={lane:n,action:t,hasEagerState:!1,eagerState:null,next:null},GS(u))VS(e,t);else if(t=BS(u,e,t,n),t!==null){var r=Je();zn(t,u,n,r),KS(t,e,n)}}function wW(u,e,t){var n=sa(u),r={lane:n,action:t,hasEagerState:!1,eagerState:null,next:null};if(GS(u))VS(e,r);else{var i=u.alternate;if(u.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var a=e.lastRenderedState,o=i(a,t);if(r.hasEagerState=!0,r.eagerState=o,Un(o,a)){var s=e.interleaved;s===null?(r.next=r,ab(e)):(r.next=s.next,s.next=r),e.interleaved=r;return}}catch{}finally{}t=BS(u,e,r,n),t!==null&&(r=Je(),zn(t,u,n,r),KS(t,e,n))}}function GS(u){var e=u.alternate;return u===Mu||e!==null&&e===Mu}function VS(u,e){Ll=i2=!0;var t=u.pending;t===null?e.next=e:(e.next=t.next,t.next=e),u.pending=e}function KS(u,e,t){if(t&4194240){var n=e.lanes;n&=u.pendingLanes,t|=n,e.lanes=t,Gm(u,t)}}var a2={readContext:En,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useInsertionEffect:ke,useLayoutEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useMutableSource:ke,useSyncExternalStore:ke,useId:ke,unstable_isNewReconciler:!1},xW={readContext:En,useCallback:function(u,e){return Xn().memoizedState=[u,e===void 0?null:e],u},useContext:En,useEffect:Qv,useImperativeHandle:function(u,e,t){return t=t!=null?t.concat([u]):null,d5(4194308,4,LS.bind(null,e,u),t)},useLayoutEffect:function(u,e){return d5(4194308,4,u,e)},useInsertionEffect:function(u,e){return d5(4,2,u,e)},useMemo:function(u,e){var t=Xn();return e=e===void 0?null:e,u=u(),t.memoizedState=[u,e],u},useReducer:function(u,e,t){var n=Xn();return e=t!==void 0?t(e):e,n.memoizedState=n.baseState=e,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:e},n.queue=u,u=u.dispatch=DW.bind(null,Mu,u),[n.memoizedState,u]},useRef:function(u){var e=Xn();return u={current:u},e.memoizedState=u},useState:Kv,useDebugValue:hb,useDeferredValue:function(u){return Xn().memoizedState=u},useTransition:function(){var u=Kv(!1),e=u[0];return u=FW.bind(null,u[1]),Xn().memoizedState=u,[e,u]},useMutableSource:function(){},useSyncExternalStore:function(u,e,t){var n=Mu,r=Xn();if(ku){if(t===void 0)throw Error(h0(407));t=t()}else{if(t=e(),he===null)throw Error(h0(349));jo&30||PS(n,e,t)}r.memoizedState=t;var i={value:t,getSnapshot:e};return r.queue=i,Qv(OS.bind(null,n,i,u),[u]),n.flags|=2048,b1(9,IS.bind(null,n,i,t,e),void 0,null),t},useId:function(){var u=Xn(),e=he.identifierPrefix;if(ku){var t=Vr,n=Gr;t=(n&~(1<<32-jn(n)-1)).toString(32)+t,e=":"+e+"R"+t,t=C1++,0<\/script>",u=u.removeChild(u.firstChild)):typeof n.is=="string"?u=a.createElement(t,{is:n.is}):(u=a.createElement(t),t==="select"&&(a=u,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):u=a.createElementNS(u,t),u[fr]=e,u[d1]=n,tT(u,e,!1,!1),e.stateNode=u;u:{switch(a=Yh(t,n),t){case"dialog":Fu("cancel",u),Fu("close",u),r=n;break;case"iframe":case"object":case"embed":Fu("load",u),r=n;break;case"video":case"audio":for(r=0;rw4&&(e.flags|=128,n=!0,X3(i,!1),e.lanes=4194304)}else{if(!n)if(u=n2(a),u!==null){if(e.flags|=128,n=!0,t=u.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),X3(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!ku)return _e(e),null}else 2*Gu()-i.renderingStartTime>w4&&t!==1073741824&&(e.flags|=128,n=!0,X3(i,!1),e.lanes=4194304);i.isBackwards?(a.sibling=e.child,e.child=a):(t=i.last,t!==null?t.sibling=a:e.child=a,i.last=a)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Gu(),e.sibling=null,t=Tu.current,Bu(Tu,n?t&1|2:t&1),e):(_e(e),null);case 22:case 23:return Ab(),n=e.memoizedState!==null,u!==null&&u.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?Pt&1073741824&&(_e(e),e.subtreeFlags&6&&(e.flags|=8192)):_e(e),null;case 24:return null;case 25:return null}throw Error(h0(156,e.tag))}function RW(u,e){switch(ub(e),e.tag){case 1:return ht(e.type)&&J5(),u=e.flags,u&65536?(e.flags=u&-65537|128,e):null;case 3:return F4(),wu(pt),wu($e),fb(),u=e.flags,u&65536&&!(u&128)?(e.flags=u&-65537|128,e):null;case 5:return sb(e),null;case 13:if(wu(Tu),u=e.memoizedState,u!==null&&u.dehydrated!==null){if(e.alternate===null)throw Error(h0(340));v4()}return u=e.flags,u&65536?(e.flags=u&-65537|128,e):null;case 19:return wu(Tu),null;case 4:return F4(),null;case 10:return rb(e.type._context),null;case 22:case 23:return Ab(),null;case 24:return null;default:return null}}var g6=!1,Me=!1,NW=typeof WeakSet=="function"?WeakSet:Set,T0=null;function nf(u,e){var t=u.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){qu(u,e,n)}else t.current=null}function D7(u,e,t){try{t()}catch(n){qu(u,e,n)}}var nB=!1;function MW(u,e){if(s7=G5,u=sS(),Ym(u)){if("selectionStart"in u)var t={start:u.selectionStart,end:u.selectionEnd};else u:{t=(t=u.ownerDocument)&&t.defaultView||window;var n=t.getSelection&&t.getSelection();if(n&&n.rangeCount!==0){t=n.anchorNode;var r=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break u}var a=0,o=-1,s=-1,f=0,l=0,c=u,d=null;e:for(;;){for(var E;c!==t||r!==0&&c.nodeType!==3||(o=a+r),c!==i||n!==0&&c.nodeType!==3||(s=a+n),c.nodeType===3&&(a+=c.nodeValue.length),(E=c.firstChild)!==null;)d=c,c=E;for(;;){if(c===u)break e;if(d===t&&++f===r&&(o=a),d===i&&++l===n&&(s=a),(E=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=E}t=o===-1||s===-1?null:{start:o,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(f7={focusedElem:u,selectionRange:t},G5=!1,T0=e;T0!==null;)if(e=T0,u=e.child,(e.subtreeFlags&1028)!==0&&u!==null)u.return=e,T0=u;else for(;T0!==null;){e=T0;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var h=p.memoizedProps,g=p.memoizedState,b=e.stateNode,m=b.getSnapshotBeforeUpdate(e.elementType===e.type?h:xn(e.type,h),g);b.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var A=e.stateNode.containerInfo;A.nodeType===1?A.textContent="":A.nodeType===9&&A.documentElement&&A.removeChild(A.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(h0(163))}}catch(y){qu(e,e.return,y)}if(u=e.sibling,u!==null){u.return=e.return,T0=u;break}T0=e.return}return p=nB,nB=!1,p}function $l(u,e,t){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do{if((r.tag&u)===u){var i=r.destroy;r.destroy=void 0,i!==void 0&&D7(e,t,i)}r=r.next}while(r!==n)}}function $9(u,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&u)===u){var n=t.create;t.destroy=n()}t=t.next}while(t!==e)}}function w7(u){var e=u.ref;if(e!==null){var t=u.stateNode;switch(u.tag){case 5:u=t;break;default:u=t}typeof e=="function"?e(u):e.current=u}}function iT(u){var e=u.alternate;e!==null&&(u.alternate=null,iT(e)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(e=u.stateNode,e!==null&&(delete e[fr],delete e[d1],delete e[d7],delete e[gW],delete e[AW])),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}function aT(u){return u.tag===5||u.tag===3||u.tag===4}function rB(u){u:for(;;){for(;u.sibling===null;){if(u.return===null||aT(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue u;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function x7(u,e,t){var n=u.tag;if(n===5||n===6)u=u.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(u,e):t.insertBefore(u,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(u,t)):(e=t,e.appendChild(u)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=Q5));else if(n!==4&&(u=u.child,u!==null))for(x7(u,e,t),u=u.sibling;u!==null;)x7(u,e,t),u=u.sibling}function k7(u,e,t){var n=u.tag;if(n===5||n===6)u=u.stateNode,e?t.insertBefore(u,e):t.appendChild(u);else if(n!==4&&(u=u.child,u!==null))for(k7(u,e,t),u=u.sibling;u!==null;)k7(u,e,t),u=u.sibling}var Ae=null,Pn=!1;function gi(u,e,t){for(t=t.child;t!==null;)oT(u,e,t),t=t.sibling}function oT(u,e,t){if(hr&&typeof hr.onCommitFiberUnmount=="function")try{hr.onCommitFiberUnmount(I9,t)}catch{}switch(t.tag){case 5:Me||nf(t,e);case 6:var n=Ae,r=Pn;Ae=null,gi(u,e,t),Ae=n,Pn=r,Ae!==null&&(Pn?(u=Ae,t=t.stateNode,u.nodeType===8?u.parentNode.removeChild(t):u.removeChild(t)):Ae.removeChild(t.stateNode));break;case 18:Ae!==null&&(Pn?(u=Ae,t=t.stateNode,u.nodeType===8?u8(u.parentNode,t):u.nodeType===1&&u8(u,t),o1(u)):u8(Ae,t.stateNode));break;case 4:n=Ae,r=Pn,Ae=t.stateNode.containerInfo,Pn=!0,gi(u,e,t),Ae=n,Pn=r;break;case 0:case 11:case 14:case 15:if(!Me&&(n=t.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){r=n=n.next;do{var i=r,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&D7(t,e,a),r=r.next}while(r!==n)}gi(u,e,t);break;case 1:if(!Me&&(nf(t,e),n=t.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=t.memoizedProps,n.state=t.memoizedState,n.componentWillUnmount()}catch(o){qu(t,e,o)}gi(u,e,t);break;case 21:gi(u,e,t);break;case 22:t.mode&1?(Me=(n=Me)||t.memoizedState!==null,gi(u,e,t),Me=n):gi(u,e,t);break;default:gi(u,e,t)}}function iB(u){var e=u.updateQueue;if(e!==null){u.updateQueue=null;var t=u.stateNode;t===null&&(t=u.stateNode=new NW),e.forEach(function(n){var r=GW.bind(null,u,n);t.has(n)||(t.add(n),n.then(r,r))})}}function Fn(u,e){var t=e.deletions;if(t!==null)for(var n=0;nr&&(r=a),n&=~i}if(n=r,n=Gu()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*zW(n/1960))-n,10u?16:u,Yi===null)var n=!1;else{if(u=Yi,Yi=null,s2=0,ru&6)throw Error(h0(331));var r=ru;for(ru|=4,T0=u.current;T0!==null;){var i=T0,a=i.child;if(T0.flags&16){var o=i.deletions;if(o!==null){for(var s=0;sGu()-bb?Do(u,0):mb|=t),Ct(u,e)}function hT(u,e){e===0&&(u.mode&1?(e=l6,l6<<=1,!(l6&130023424)&&(l6=4194304)):e=1);var t=Je();u=ei(u,e),u!==null&&(lc(u,e,t),Ct(u,t))}function HW(u){var e=u.memoizedState,t=0;e!==null&&(t=e.retryLane),hT(u,t)}function GW(u,e){var t=0;switch(u.tag){case 13:var n=u.stateNode,r=u.memoizedState;r!==null&&(t=r.retryLane);break;case 19:n=u.stateNode;break;default:throw Error(h0(314))}n!==null&&n.delete(e),hT(u,t)}var CT;CT=function(u,e,t){if(u!==null)if(u.memoizedProps!==e.pendingProps||pt.current)Et=!0;else{if(!(u.lanes&t)&&!(e.flags&128))return Et=!1,IW(u,e,t);Et=!!(u.flags&131072)}else Et=!1,ku&&e.flags&1048576&&gS(e,X5,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;d5(u,e),u=e.pendingProps;var r=y4(e,$e.current);Ff(e,t),r=cb(null,e,n,u,r,t);var i=db();return e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,ht(n)?(i=!0,Z5(e)):i=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,ab(e),r.updater=z9,e.stateNode=r,r._reactInternals=e,b7(e,n,u,t),e=y7(null,e,n,!0,i,t)):(e.tag=0,ku&&i&&Xm(e),We(null,e,r,t),e=e.child),e;case 16:n=e.elementType;u:{switch(d5(u,e),u=e.pendingProps,r=n._init,n=r(n._payload),e.type=n,r=e.tag=KW(n),u=xn(n,u),r){case 0:e=A7(null,e,n,u,t);break u;case 1:e=uB(null,e,n,u,t);break u;case 11:e=Yv(null,e,n,u,t);break u;case 14:e=Xv(null,e,n,xn(n.type,u),t);break u}throw Error(h0(306,n,""))}return e;case 0:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:xn(n,r),A7(u,e,n,r,t);case 1:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:xn(n,r),uB(u,e,n,r,t);case 3:u:{if(XS(e),u===null)throw Error(h0(387));n=e.pendingProps,i=e.memoizedState,r=i.element,BS(u,e),t2(e,n,null,t);var a=e.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){r=D4(Error(h0(423)),e),e=eB(u,e,n,t,r);break u}else if(n!==r){r=D4(Error(h0(424)),e),e=eB(u,e,n,t,r);break u}else for(Nt=ra(e.stateNode.containerInfo.firstChild),zt=e,ku=!0,In=null,t=xS(e,null,n,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(v4(),n===r){e=ti(u,e,t);break u}We(u,e,n,t)}e=e.child}return e;case 5:return kS(e),u===null&&h7(e),n=e.type,r=e.pendingProps,i=u!==null?u.memoizedProps:null,a=r.children,l7(n,r)?a=null:i!==null&&l7(n,i)&&(e.flags|=32),YS(u,e),We(u,e,a,t),e.child;case 6:return u===null&&h7(e),null;case 13:return uT(u,e,t);case 4:return ob(e,e.stateNode.containerInfo),n=e.pendingProps,u===null?e.child=B4(e,null,n,t):We(u,e,n,t),e.child;case 11:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:xn(n,r),Yv(u,e,n,r,t);case 7:return We(u,e,e.pendingProps,t),e.child;case 8:return We(u,e,e.pendingProps.children,t),e.child;case 12:return We(u,e,e.pendingProps.children,t),e.child;case 10:u:{if(n=e.type._context,r=e.pendingProps,i=e.memoizedProps,a=r.value,Bu(u2,n._currentValue),n._currentValue=a,i!==null)if(Un(i.value,a)){if(i.children===r.children&&!pt.current){e=ti(u,e,t);break u}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){a=i.child;for(var s=o.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=Qr(-1,t&-t),s.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var l=f.pending;l===null?s.next=s:(s.next=l.next,l.next=s),f.pending=s}}i.lanes|=t,s=i.alternate,s!==null&&(s.lanes|=t),C7(i.return,t,e),o.lanes|=t;break}s=s.next}}else if(i.tag===10)a=i.type===e.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(h0(341));a.lanes|=t,o=a.alternate,o!==null&&(o.lanes|=t),C7(a,t,e),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}We(u,e,r.children,t),e=e.child}return e;case 9:return r=e.type,n=e.pendingProps.children,Ff(e,t),r=En(r),n=n(r),e.flags|=1,We(u,e,n,t),e.child;case 14:return n=e.type,r=xn(n,e.pendingProps),r=xn(n.type,r),Xv(u,e,n,r,t);case 15:return JS(u,e,e.type,e.pendingProps,t);case 17:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:xn(n,r),d5(u,e),e.tag=1,ht(n)?(u=!0,Z5(e)):u=!1,Ff(e,t),DS(e,n,r),b7(e,n,r,t),y7(null,e,n,!0,u,t);case 19:return eT(u,e,t);case 22:return ZS(u,e,t)}throw Error(h0(156,e.tag))};function mT(u,e){return W_(u,e)}function VW(u,e,t,n){this.tag=u,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sn(u,e,t,n){return new VW(u,e,t,n)}function vb(u){return u=u.prototype,!(!u||!u.isReactComponent)}function KW(u){if(typeof u=="function")return vb(u)?1:0;if(u!=null){if(u=u.$$typeof,u===$m)return 11;if(u===Um)return 14}return 2}function sa(u,e){var t=u.alternate;return t===null?(t=sn(u.tag,e,u.key,u.mode),t.elementType=u.elementType,t.type=u.type,t.stateNode=u.stateNode,t.alternate=u,u.alternate=t):(t.pendingProps=e,t.type=u.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=u.flags&14680064,t.childLanes=u.childLanes,t.lanes=u.lanes,t.child=u.child,t.memoizedProps=u.memoizedProps,t.memoizedState=u.memoizedState,t.updateQueue=u.updateQueue,e=u.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=u.sibling,t.index=u.index,t.ref=u.ref,t}function h5(u,e,t,n,r,i){var a=2;if(n=u,typeof u=="function")vb(u)&&(a=1);else if(typeof u=="string")a=5;else u:switch(u){case Ks:return wo(t.children,r,i,e);case Lm:a=8,r|=8;break;case Uh:return u=sn(12,t,e,r|2),u.elementType=Uh,u.lanes=i,u;case Wh:return u=sn(13,t,e,r),u.elementType=Wh,u.lanes=i,u;case qh:return u=sn(19,t,e,r),u.elementType=qh,u.lanes=i,u;case w_:return W9(t,r,i,e);default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case F_:a=10;break u;case D_:a=9;break u;case $m:a=11;break u;case Um:a=14;break u;case xi:a=16,n=null;break u}throw Error(h0(130,u==null?u:typeof u,""))}return e=sn(a,t,e,r),e.elementType=u,e.type=n,e.lanes=i,e}function wo(u,e,t,n){return u=sn(7,u,n,e),u.lanes=t,u}function W9(u,e,t,n){return u=sn(22,u,n,e),u.elementType=w_,u.lanes=t,u.stateNode={isHidden:!1},u}function s8(u,e,t){return u=sn(6,u,null,e),u.lanes=t,u}function f8(u,e,t){return e=sn(4,u.children!==null?u.children:[],u.key,e),e.lanes=t,e.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},e}function QW(u,e,t,n,r){this.tag=e,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wp(0),this.expirationTimes=Wp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wp(0),this.identifierPrefix=n,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Bb(u,e,t,n,r,i,a,o,s){return u=new QW(u,e,t,o,s),e===1?(e=1,i===!0&&(e|=8)):e=0,i=sn(3,null,null,e),u.current=i,i.stateNode=u,i.memoizedState={element:n,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},ab(i),u}function JW(u,e,t){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yT)}catch(u){console.error(u)}}yT(),g_.exports=Wt;var E3=g_.exports;const v6=f3(E3);var EB=E3;Lh.createRoot=EB.createRoot,Lh.hydrateRoot=EB.hydrateRoot;function vT(u){var e,t,n="";if(typeof u=="string"||typeof u=="number")n+=u;else if(typeof u=="object")if(Array.isArray(u))for(e=0;etypeof window=="object"?((u?u.querySelector("#_goober"):window._goober)||Object.assign((u||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:u||eq,nq=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,rq=/\/\*[^]*?\*\/| +/g,pB=/\n+/g,Ha=(u,e)=>{let t="",n="",r="";for(let i in u){let a=u[i];i[0]=="@"?i[1]=="i"?t=i+" "+a+";":n+=i[1]=="f"?Ha(a,i):i+"{"+Ha(a,i[1]=="k"?"":e)+"}":typeof a=="object"?n+=Ha(a,e?e.replace(/([^,])+/g,o=>i.replace(/(^:.*)|([^,])+/g,s=>/&/.test(s)?s.replace(/&/g,o):o?o+" "+s:s)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=Ha.p?Ha.p(i,a):i+":"+a+";")}return t+(e&&r?e+"{"+r+"}":r)+n},Br={},BT=u=>{if(typeof u=="object"){let e="";for(let t in u)e+=t+BT(u[t]);return e}return u},iq=(u,e,t,n,r)=>{let i=BT(u),a=Br[i]||(Br[i]=(s=>{let f=0,l=11;for(;f>>0;return"go"+l})(i));if(!Br[a]){let s=i!==u?u:(f=>{let l,c,d=[{}];for(;l=nq.exec(f.replace(rq,""));)l[4]?d.shift():l[3]?(c=l[3].replace(pB," ").trim(),d.unshift(d[0][c]=d[0][c]||{})):d[0][l[1]]=l[2].replace(pB," ").trim();return d[0]})(u);Br[a]=Ha(r?{["@keyframes "+a]:s}:s,t?"":"."+a)}let o=t&&Br.g?Br.g:null;return t&&(Br.g=Br[a]),((s,f,l,c)=>{c?f.data=f.data.replace(c,s):f.data.indexOf(s)===-1&&(f.data=l?s+f.data:f.data+s)})(Br[a],e,n,o),a},aq=(u,e,t)=>u.reduce((n,r,i)=>{let a=e[i];if(a&&a.call){let o=a(t),s=o&&o.props&&o.props.className||/^go/.test(o)&&o;a=s?"."+s:o&&typeof o=="object"?o.props?"":Ha(o,""):o===!1?"":o}return n+r+(a??"")},"");function xb(u){let e=this||{},t=u.call?u(e.p):u;return iq(t.unshift?t.raw?aq(t,[].slice.call(arguments,1),e.p):t.reduce((n,r)=>Object.assign(n,r&&r.call?r(e.p):r),{}):t,tq(e.target),e.g,e.o,e.k)}xb.bind({g:1});xb.bind({k:1});function hB(u,e){for(var t=0;t=0)&&(t[r]=u[r]);return t}function CB(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}var mB=function(){return""},oq=F.createContext({enqueueSnackbar:mB,closeSnackbar:mB}),za={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},bB=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},kb=function(e){return""+bB(e.vertical)+bB(e.horizontal)},B6=function(e){return!!e||e===0},F6="unmounted",vs="exited",Bs="entering",el="entered",gB="exiting",_b=function(u){DT(e,u);function e(n){var r;r=u.call(this,n)||this;var i=n.appear,a;return r.appearStatus=null,n.in?i?(a=vs,r.appearStatus=Bs):a=el:n.unmountOnExit||n.mountOnEnter?a=F6:a=vs,r.state={status:a},r.nextCallback=null,r}e.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===F6?{status:vs}:null};var t=e.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(r){var i=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==Bs&&a!==el&&(i=Bs):(a===Bs||a===el)&&(i=gB)}this.updateStatus(!1,i)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var r=this.props.timeout,i=r,a=r;return r!=null&&typeof r!="number"&&typeof r!="string"&&(a=r.exit,i=r.enter),{exit:a,enter:i}},t.updateStatus=function(r,i){r===void 0&&(r=!1),i!==null?(this.cancelNextCallback(),i===Bs?this.performEnter(r):this.performExit()):this.props.unmountOnExit&&this.state.status===vs&&this.setState({status:F6})},t.performEnter=function(r){var i=this,a=this.props.enter,o=r,s=this.getTimeouts();if(!r&&!a){this.safeSetState({status:el},function(){i.props.onEntered&&i.props.onEntered(i.node,o)});return}this.props.onEnter&&this.props.onEnter(this.node,o),this.safeSetState({status:Bs},function(){i.props.onEntering&&i.props.onEntering(i.node,o),i.onTransitionEnd(s.enter,function(){i.safeSetState({status:el},function(){i.props.onEntered&&i.props.onEntered(i.node,o)})})})},t.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts();if(!i){this.safeSetState({status:vs},function(){r.props.onExited&&r.props.onExited(r.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:gB},function(){r.props.onExiting&&r.props.onExiting(r.node),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:vs},function(){r.props.onExited&&r.props.onExited(r.node)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},t.setNextCallback=function(r){var i=this,a=!0;return this.nextCallback=function(){a&&(a=!1,i.nextCallback=null,r())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},t.onTransitionEnd=function(r,i){this.setNextCallback(i);var a=r==null&&!this.props.addEndListener;if(!this.node||a){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),r!=null&&setTimeout(this.nextCallback,r)},t.render=function(){var r=this.state.status;if(r===F6)return null;var i=this.props,a=i.children,o=pc(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a(r,o)},FT(e,[{key:"node",get:function(){var r,i=(r=this.props.nodeRef)===null||r===void 0?void 0:r.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),e}(F.Component);function Fs(){}_b.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Fs,onEntering:Fs,onEntered:Fs,onExit:Fs,onExiting:Fs,onExited:Fs};function AB(u,e){typeof u=="function"?u(e):u&&(u.current=e)}function I7(u,e){return w.useMemo(function(){return u==null&&e==null?null:function(t){AB(u,t),AB(e,t)}},[u,e])}function c2(u){var e=u.timeout,t=u.style,n=t===void 0?{}:t,r=u.mode;return{duration:typeof e=="object"?e[r]||0:e,easing:n.transitionTimingFunction,delay:n.transitionDelay}}var O7={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},wT=function(e){e.scrollTop=e.scrollTop},yB=function(e){return Math.round(e)+"ms"};function af(u,e){u===void 0&&(u=["all"]);var t=e||{},n=t.duration,r=n===void 0?300:n,i=t.easing,a=i===void 0?O7.easeInOut:i,o=t.delay,s=o===void 0?0:o,f=Array.isArray(u)?u:[u];return f.map(function(l){var c=typeof r=="string"?r:yB(r),d=typeof s=="string"?s:yB(s);return l+" "+c+" "+a+" "+d}).join(",")}function sq(u){return u&&u.ownerDocument||document}function xT(u){var e=sq(u);return e.defaultView||window}function fq(u,e){e===void 0&&(e=166);var t;function n(){for(var r=this,i=arguments.length,a=new Array(i),o=0;o<\/script>",u=u.removeChild(u.firstChild)):typeof n.is=="string"?u=a.createElement(t,{is:n.is}):(u=a.createElement(t),t==="select"&&(a=u,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):u=a.createElementNS(u,t),u[fr]=e,u[E1]=n,nT(u,e,!1,!1),e.stateNode=u;u:{switch(a=Yh(t,n),t){case"dialog":Fu("cancel",u),Fu("close",u),r=n;break;case"iframe":case"object":case"embed":Fu("load",u),r=n;break;case"video":case"audio":for(r=0;rw4&&(e.flags|=128,n=!0,X3(i,!1),e.lanes=4194304)}else{if(!n)if(u=r2(a),u!==null){if(e.flags|=128,n=!0,t=u.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),X3(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!ku)return _e(e),null}else 2*Gu()-i.renderingStartTime>w4&&t!==1073741824&&(e.flags|=128,n=!0,X3(i,!1),e.lanes=4194304);i.isBackwards?(a.sibling=e.child,e.child=a):(t=i.last,t!==null?t.sibling=a:e.child=a,i.last=a)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Gu(),e.sibling=null,t=Tu.current,Bu(Tu,n?t&1|2:t&1),e):(_e(e),null);case 22:case 23:return yb(),n=e.memoizedState!==null,u!==null&&u.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?Pt&1073741824&&(_e(e),e.subtreeFlags&6&&(e.flags|=8192)):_e(e),null;case 24:return null;case 25:return null}throw Error(h0(156,e.tag))}function RW(u,e){switch(eb(e),e.tag){case 1:return ht(e.type)&&Z5(),u=e.flags,u&65536?(e.flags=u&-65537|128,e):null;case 3:return F4(),wu(pt),wu($e),lb(),u=e.flags,u&65536&&!(u&128)?(e.flags=u&-65537|128,e):null;case 5:return fb(e),null;case 13:if(wu(Tu),u=e.memoizedState,u!==null&&u.dehydrated!==null){if(e.alternate===null)throw Error(h0(340));v4()}return u=e.flags,u&65536?(e.flags=u&-65537|128,e):null;case 19:return wu(Tu),null;case 4:return F4(),null;case 10:return ib(e.type._context),null;case 22:case 23:return yb(),null;case 24:return null;default:return null}}var A6=!1,Me=!1,NW=typeof WeakSet=="function"?WeakSet:Set,T0=null;function nf(u,e){var t=u.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){qu(u,e,n)}else t.current=null}function D7(u,e,t){try{t()}catch(n){qu(u,e,n)}}var rB=!1;function MW(u,e){if(s7=V5,u=fS(),Xm(u)){if("selectionStart"in u)var t={start:u.selectionStart,end:u.selectionEnd};else u:{t=(t=u.ownerDocument)&&t.defaultView||window;var n=t.getSelection&&t.getSelection();if(n&&n.rangeCount!==0){t=n.anchorNode;var r=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break u}var a=0,o=-1,s=-1,f=0,l=0,c=u,d=null;e:for(;;){for(var E;c!==t||r!==0&&c.nodeType!==3||(o=a+r),c!==i||n!==0&&c.nodeType!==3||(s=a+n),c.nodeType===3&&(a+=c.nodeValue.length),(E=c.firstChild)!==null;)d=c,c=E;for(;;){if(c===u)break e;if(d===t&&++f===r&&(o=a),d===i&&++l===n&&(s=a),(E=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=E}t=o===-1||s===-1?null:{start:o,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(f7={focusedElem:u,selectionRange:t},V5=!1,T0=e;T0!==null;)if(e=T0,u=e.child,(e.subtreeFlags&1028)!==0&&u!==null)u.return=e,T0=u;else for(;T0!==null;){e=T0;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var h=p.memoizedProps,g=p.memoizedState,b=e.stateNode,m=b.getSnapshotBeforeUpdate(e.elementType===e.type?h:xn(e.type,h),g);b.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var A=e.stateNode.containerInfo;A.nodeType===1?A.textContent="":A.nodeType===9&&A.documentElement&&A.removeChild(A.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(h0(163))}}catch(y){qu(e,e.return,y)}if(u=e.sibling,u!==null){u.return=e.return,T0=u;break}T0=e.return}return p=rB,rB=!1,p}function $l(u,e,t){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do{if((r.tag&u)===u){var i=r.destroy;r.destroy=void 0,i!==void 0&&D7(e,t,i)}r=r.next}while(r!==n)}}function U9(u,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&u)===u){var n=t.create;t.destroy=n()}t=t.next}while(t!==e)}}function w7(u){var e=u.ref;if(e!==null){var t=u.stateNode;switch(u.tag){case 5:u=t;break;default:u=t}typeof e=="function"?e(u):e.current=u}}function aT(u){var e=u.alternate;e!==null&&(u.alternate=null,aT(e)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(e=u.stateNode,e!==null&&(delete e[fr],delete e[E1],delete e[d7],delete e[gW],delete e[AW])),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}function oT(u){return u.tag===5||u.tag===3||u.tag===4}function iB(u){u:for(;;){for(;u.sibling===null;){if(u.return===null||oT(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue u;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function x7(u,e,t){var n=u.tag;if(n===5||n===6)u=u.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(u,e):t.insertBefore(u,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(u,t)):(e=t,e.appendChild(u)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=J5));else if(n!==4&&(u=u.child,u!==null))for(x7(u,e,t),u=u.sibling;u!==null;)x7(u,e,t),u=u.sibling}function k7(u,e,t){var n=u.tag;if(n===5||n===6)u=u.stateNode,e?t.insertBefore(u,e):t.appendChild(u);else if(n!==4&&(u=u.child,u!==null))for(k7(u,e,t),u=u.sibling;u!==null;)k7(u,e,t),u=u.sibling}var Ae=null,Pn=!1;function gi(u,e,t){for(t=t.child;t!==null;)sT(u,e,t),t=t.sibling}function sT(u,e,t){if(hr&&typeof hr.onCommitFiberUnmount=="function")try{hr.onCommitFiberUnmount(O9,t)}catch{}switch(t.tag){case 5:Me||nf(t,e);case 6:var n=Ae,r=Pn;Ae=null,gi(u,e,t),Ae=n,Pn=r,Ae!==null&&(Pn?(u=Ae,t=t.stateNode,u.nodeType===8?u.parentNode.removeChild(t):u.removeChild(t)):Ae.removeChild(t.stateNode));break;case 18:Ae!==null&&(Pn?(u=Ae,t=t.stateNode,u.nodeType===8?e8(u.parentNode,t):u.nodeType===1&&e8(u,t),s1(u)):e8(Ae,t.stateNode));break;case 4:n=Ae,r=Pn,Ae=t.stateNode.containerInfo,Pn=!0,gi(u,e,t),Ae=n,Pn=r;break;case 0:case 11:case 14:case 15:if(!Me&&(n=t.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){r=n=n.next;do{var i=r,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&D7(t,e,a),r=r.next}while(r!==n)}gi(u,e,t);break;case 1:if(!Me&&(nf(t,e),n=t.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=t.memoizedProps,n.state=t.memoizedState,n.componentWillUnmount()}catch(o){qu(t,e,o)}gi(u,e,t);break;case 21:gi(u,e,t);break;case 22:t.mode&1?(Me=(n=Me)||t.memoizedState!==null,gi(u,e,t),Me=n):gi(u,e,t);break;default:gi(u,e,t)}}function aB(u){var e=u.updateQueue;if(e!==null){u.updateQueue=null;var t=u.stateNode;t===null&&(t=u.stateNode=new NW),e.forEach(function(n){var r=GW.bind(null,u,n);t.has(n)||(t.add(n),n.then(r,r))})}}function Fn(u,e){var t=e.deletions;if(t!==null)for(var n=0;nr&&(r=a),n&=~i}if(n=r,n=Gu()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*zW(n/1960))-n,10u?16:u,Xi===null)var n=!1;else{if(u=Xi,Xi=null,f2=0,ru&6)throw Error(h0(331));var r=ru;for(ru|=4,T0=u.current;T0!==null;){var i=T0,a=i.child;if(T0.flags&16){var o=i.deletions;if(o!==null){for(var s=0;sGu()-gb?wo(u,0):bb|=t),Ct(u,e)}function CT(u,e){e===0&&(u.mode&1?(e=c6,c6<<=1,!(c6&130023424)&&(c6=4194304)):e=1);var t=Je();u=ei(u,e),u!==null&&(cc(u,e,t),Ct(u,t))}function HW(u){var e=u.memoizedState,t=0;e!==null&&(t=e.retryLane),CT(u,t)}function GW(u,e){var t=0;switch(u.tag){case 13:var n=u.stateNode,r=u.memoizedState;r!==null&&(t=r.retryLane);break;case 19:n=u.stateNode;break;default:throw Error(h0(314))}n!==null&&n.delete(e),CT(u,t)}var mT;mT=function(u,e,t){if(u!==null)if(u.memoizedProps!==e.pendingProps||pt.current)Et=!0;else{if(!(u.lanes&t)&&!(e.flags&128))return Et=!1,IW(u,e,t);Et=!!(u.flags&131072)}else Et=!1,ku&&e.flags&1048576&&AS(e,u2,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;E5(u,e),u=e.pendingProps;var r=y4(e,$e.current);Ff(e,t),r=db(null,e,n,u,r,t);var i=Eb();return e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,ht(n)?(i=!0,Y5(e)):i=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,ob(e),r.updater=L9,e.stateNode=r,r._reactInternals=e,b7(e,n,u,t),e=y7(null,e,n,!0,i,t)):(e.tag=0,ku&&i&&ub(e),We(null,e,r,t),e=e.child),e;case 16:n=e.elementType;u:{switch(E5(u,e),u=e.pendingProps,r=n._init,n=r(n._payload),e.type=n,r=e.tag=KW(n),u=xn(n,u),r){case 0:e=A7(null,e,n,u,t);break u;case 1:e=eB(null,e,n,u,t);break u;case 11:e=Xv(null,e,n,u,t);break u;case 14:e=uB(null,e,n,xn(n.type,u),t);break u}throw Error(h0(306,n,""))}return e;case 0:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:xn(n,r),A7(u,e,n,r,t);case 1:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:xn(n,r),eB(u,e,n,r,t);case 3:u:{if(uT(e),u===null)throw Error(h0(387));n=e.pendingProps,i=e.memoizedState,r=i.element,FS(u,e),n2(e,n,null,t);var a=e.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){r=D4(Error(h0(423)),e),e=tB(u,e,n,t,r);break u}else if(n!==r){r=D4(Error(h0(424)),e),e=tB(u,e,n,t,r);break u}else for(Nt=ia(e.stateNode.containerInfo.firstChild),zt=e,ku=!0,In=null,t=kS(e,null,n,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(v4(),n===r){e=ti(u,e,t);break u}We(u,e,n,t)}e=e.child}return e;case 5:return _S(e),u===null&&h7(e),n=e.type,r=e.pendingProps,i=u!==null?u.memoizedProps:null,a=r.children,l7(n,r)?a=null:i!==null&&l7(n,i)&&(e.flags|=32),XS(u,e),We(u,e,a,t),e.child;case 6:return u===null&&h7(e),null;case 13:return eT(u,e,t);case 4:return sb(e,e.stateNode.containerInfo),n=e.pendingProps,u===null?e.child=B4(e,null,n,t):We(u,e,n,t),e.child;case 11:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:xn(n,r),Xv(u,e,n,r,t);case 7:return We(u,e,e.pendingProps,t),e.child;case 8:return We(u,e,e.pendingProps.children,t),e.child;case 12:return We(u,e,e.pendingProps.children,t),e.child;case 10:u:{if(n=e.type._context,r=e.pendingProps,i=e.memoizedProps,a=r.value,Bu(e2,n._currentValue),n._currentValue=a,i!==null)if(Un(i.value,a)){if(i.children===r.children&&!pt.current){e=ti(u,e,t);break u}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){a=i.child;for(var s=o.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=Qr(-1,t&-t),s.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var l=f.pending;l===null?s.next=s:(s.next=l.next,l.next=s),f.pending=s}}i.lanes|=t,s=i.alternate,s!==null&&(s.lanes|=t),C7(i.return,t,e),o.lanes|=t;break}s=s.next}}else if(i.tag===10)a=i.type===e.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(h0(341));a.lanes|=t,o=a.alternate,o!==null&&(o.lanes|=t),C7(a,t,e),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}We(u,e,r.children,t),e=e.child}return e;case 9:return r=e.type,n=e.pendingProps.children,Ff(e,t),r=En(r),n=n(r),e.flags|=1,We(u,e,n,t),e.child;case 14:return n=e.type,r=xn(n,e.pendingProps),r=xn(n.type,r),uB(u,e,n,r,t);case 15:return ZS(u,e,e.type,e.pendingProps,t);case 17:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:xn(n,r),E5(u,e),e.tag=1,ht(n)?(u=!0,Y5(e)):u=!1,Ff(e,t),wS(e,n,r),b7(e,n,r,t),y7(null,e,n,!0,u,t);case 19:return tT(u,e,t);case 22:return YS(u,e,t)}throw Error(h0(156,e.tag))};function bT(u,e){return q_(u,e)}function VW(u,e,t,n){this.tag=u,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sn(u,e,t,n){return new VW(u,e,t,n)}function Bb(u){return u=u.prototype,!(!u||!u.isReactComponent)}function KW(u){if(typeof u=="function")return Bb(u)?1:0;if(u!=null){if(u=u.$$typeof,u===Um)return 11;if(u===Wm)return 14}return 2}function fa(u,e){var t=u.alternate;return t===null?(t=sn(u.tag,e,u.key,u.mode),t.elementType=u.elementType,t.type=u.type,t.stateNode=u.stateNode,t.alternate=u,u.alternate=t):(t.pendingProps=e,t.type=u.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=u.flags&14680064,t.childLanes=u.childLanes,t.lanes=u.lanes,t.child=u.child,t.memoizedProps=u.memoizedProps,t.memoizedState=u.memoizedState,t.updateQueue=u.updateQueue,e=u.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=u.sibling,t.index=u.index,t.ref=u.ref,t}function C5(u,e,t,n,r,i){var a=2;if(n=u,typeof u=="function")Bb(u)&&(a=1);else if(typeof u=="string")a=5;else u:switch(u){case Ks:return xo(t.children,r,i,e);case $m:a=8,r|=8;break;case Uh:return u=sn(12,t,e,r|2),u.elementType=Uh,u.lanes=i,u;case Wh:return u=sn(13,t,e,r),u.elementType=Wh,u.lanes=i,u;case qh:return u=sn(19,t,e,r),u.elementType=qh,u.lanes=i,u;case x_:return q9(t,r,i,e);default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case D_:a=10;break u;case w_:a=9;break u;case Um:a=11;break u;case Wm:a=14;break u;case ki:a=16,n=null;break u}throw Error(h0(130,u==null?u:typeof u,""))}return e=sn(a,t,e,r),e.elementType=u,e.type=n,e.lanes=i,e}function xo(u,e,t,n){return u=sn(7,u,n,e),u.lanes=t,u}function q9(u,e,t,n){return u=sn(22,u,n,e),u.elementType=x_,u.lanes=t,u.stateNode={isHidden:!1},u}function f8(u,e,t){return u=sn(6,u,null,e),u.lanes=t,u}function l8(u,e,t){return e=sn(4,u.children!==null?u.children:[],u.key,e),e.lanes=t,e.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},e}function QW(u,e,t,n,r){this.tag=e,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qp(0),this.expirationTimes=qp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qp(0),this.identifierPrefix=n,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Fb(u,e,t,n,r,i,a,o,s){return u=new QW(u,e,t,o,s),e===1?(e=1,i===!0&&(e|=8)):e=0,i=sn(3,null,null,e),u.current=i,i.stateNode=u,i.memoizedState={element:n,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},ob(i),u}function JW(u,e,t){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vT)}catch(u){console.error(u)}}vT(),A_.exports=Wt;var E3=A_.exports;const B6=f3(E3);var pB=E3;Lh.createRoot=pB.createRoot,Lh.hydrateRoot=pB.hydrateRoot;function BT(u){var e,t,n="";if(typeof u=="string"||typeof u=="number")n+=u;else if(typeof u=="object")if(Array.isArray(u))for(e=0;etypeof window=="object"?((u?u.querySelector("#_goober"):window._goober)||Object.assign((u||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:u||eq,nq=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,rq=/\/\*[^]*?\*\/| +/g,hB=/\n+/g,Ga=(u,e)=>{let t="",n="",r="";for(let i in u){let a=u[i];i[0]=="@"?i[1]=="i"?t=i+" "+a+";":n+=i[1]=="f"?Ga(a,i):i+"{"+Ga(a,i[1]=="k"?"":e)+"}":typeof a=="object"?n+=Ga(a,e?e.replace(/([^,])+/g,o=>i.replace(/(^:.*)|([^,])+/g,s=>/&/.test(s)?s.replace(/&/g,o):o?o+" "+s:s)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=Ga.p?Ga.p(i,a):i+":"+a+";")}return t+(e&&r?e+"{"+r+"}":r)+n},Br={},FT=u=>{if(typeof u=="object"){let e="";for(let t in u)e+=t+FT(u[t]);return e}return u},iq=(u,e,t,n,r)=>{let i=FT(u),a=Br[i]||(Br[i]=(s=>{let f=0,l=11;for(;f>>0;return"go"+l})(i));if(!Br[a]){let s=i!==u?u:(f=>{let l,c,d=[{}];for(;l=nq.exec(f.replace(rq,""));)l[4]?d.shift():l[3]?(c=l[3].replace(hB," ").trim(),d.unshift(d[0][c]=d[0][c]||{})):d[0][l[1]]=l[2].replace(hB," ").trim();return d[0]})(u);Br[a]=Ga(r?{["@keyframes "+a]:s}:s,t?"":"."+a)}let o=t&&Br.g?Br.g:null;return t&&(Br.g=Br[a]),((s,f,l,c)=>{c?f.data=f.data.replace(c,s):f.data.indexOf(s)===-1&&(f.data=l?s+f.data:f.data+s)})(Br[a],e,n,o),a},aq=(u,e,t)=>u.reduce((n,r,i)=>{let a=e[i];if(a&&a.call){let o=a(t),s=o&&o.props&&o.props.className||/^go/.test(o)&&o;a=s?"."+s:o&&typeof o=="object"?o.props?"":Ga(o,""):o===!1?"":o}return n+r+(a??"")},"");function kb(u){let e=this||{},t=u.call?u(e.p):u;return iq(t.unshift?t.raw?aq(t,[].slice.call(arguments,1),e.p):t.reduce((n,r)=>Object.assign(n,r&&r.call?r(e.p):r),{}):t,tq(e.target),e.g,e.o,e.k)}kb.bind({g:1});kb.bind({k:1});function CB(u,e){for(var t=0;t=0)&&(t[r]=u[r]);return t}function mB(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}var bB=function(){return""},oq=D.createContext({enqueueSnackbar:bB,closeSnackbar:bB}),La={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},gB=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},_b=function(e){return""+gB(e.vertical)+gB(e.horizontal)},F6=function(e){return!!e||e===0},D6="unmounted",vs="exited",Bs="entering",el="entered",AB="exiting",Sb=function(u){wT(e,u);function e(n){var r;r=u.call(this,n)||this;var i=n.appear,a;return r.appearStatus=null,n.in?i?(a=vs,r.appearStatus=Bs):a=el:n.unmountOnExit||n.mountOnEnter?a=D6:a=vs,r.state={status:a},r.nextCallback=null,r}e.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===D6?{status:vs}:null};var t=e.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(r){var i=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==Bs&&a!==el&&(i=Bs):(a===Bs||a===el)&&(i=AB)}this.updateStatus(!1,i)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var r=this.props.timeout,i=r,a=r;return r!=null&&typeof r!="number"&&typeof r!="string"&&(a=r.exit,i=r.enter),{exit:a,enter:i}},t.updateStatus=function(r,i){r===void 0&&(r=!1),i!==null?(this.cancelNextCallback(),i===Bs?this.performEnter(r):this.performExit()):this.props.unmountOnExit&&this.state.status===vs&&this.setState({status:D6})},t.performEnter=function(r){var i=this,a=this.props.enter,o=r,s=this.getTimeouts();if(!r&&!a){this.safeSetState({status:el},function(){i.props.onEntered&&i.props.onEntered(i.node,o)});return}this.props.onEnter&&this.props.onEnter(this.node,o),this.safeSetState({status:Bs},function(){i.props.onEntering&&i.props.onEntering(i.node,o),i.onTransitionEnd(s.enter,function(){i.safeSetState({status:el},function(){i.props.onEntered&&i.props.onEntered(i.node,o)})})})},t.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts();if(!i){this.safeSetState({status:vs},function(){r.props.onExited&&r.props.onExited(r.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:AB},function(){r.props.onExiting&&r.props.onExiting(r.node),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:vs},function(){r.props.onExited&&r.props.onExited(r.node)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},t.setNextCallback=function(r){var i=this,a=!0;return this.nextCallback=function(){a&&(a=!1,i.nextCallback=null,r())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},t.onTransitionEnd=function(r,i){this.setNextCallback(i);var a=r==null&&!this.props.addEndListener;if(!this.node||a){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),r!=null&&setTimeout(this.nextCallback,r)},t.render=function(){var r=this.state.status;if(r===D6)return null;var i=this.props,a=i.children,o=hc(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a(r,o)},DT(e,[{key:"node",get:function(){var r,i=(r=this.props.nodeRef)===null||r===void 0?void 0:r.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),e}(D.Component);function Fs(){}Sb.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Fs,onEntering:Fs,onEntered:Fs,onExit:Fs,onExiting:Fs,onExited:Fs};function yB(u,e){typeof u=="function"?u(e):u&&(u.current=e)}function I7(u,e){return w.useMemo(function(){return u==null&&e==null?null:function(t){yB(u,t),yB(e,t)}},[u,e])}function d2(u){var e=u.timeout,t=u.style,n=t===void 0?{}:t,r=u.mode;return{duration:typeof e=="object"?e[r]||0:e,easing:n.transitionTimingFunction,delay:n.transitionDelay}}var O7={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},xT=function(e){e.scrollTop=e.scrollTop},vB=function(e){return Math.round(e)+"ms"};function af(u,e){u===void 0&&(u=["all"]);var t=e||{},n=t.duration,r=n===void 0?300:n,i=t.easing,a=i===void 0?O7.easeInOut:i,o=t.delay,s=o===void 0?0:o,f=Array.isArray(u)?u:[u];return f.map(function(l){var c=typeof r=="string"?r:vB(r),d=typeof s=="string"?s:vB(s);return l+" "+c+" "+a+" "+d}).join(",")}function sq(u){return u&&u.ownerDocument||document}function kT(u){var e=sq(u);return e.defaultView||window}function fq(u,e){e===void 0&&(e=166);var t;function n(){for(var r=this,i=arguments.length,a=new Array(i),o=0;o-1,A=g.snacks.findIndex(b)>-1;if(m||A)return g}return r.handleDisplaySnack(bu({},g,{queue:[].concat(g.queue,[h])}))}),E},r.handleDisplaySnack=function(i){var a=i.snacks;return a.length>=r.maxSnack?r.handleDismissOldest(i):r.processQueue(i)},r.processQueue=function(i){var a=i.queue,o=i.snacks;return a.length>0?bu({},i,{snacks:[].concat(o,[a[0]]),queue:a.slice(1,a.length)}):i},r.handleDismissOldest=function(i){if(i.snacks.some(function(l){return!l.open||l.requestClose}))return i;var a=!1,o=!1,s=i.snacks.reduce(function(l,c){return l+(c.open&&c.persist?1:0)},0);s===r.maxSnack&&(o=!0);var f=i.snacks.map(function(l){return!a&&(!l.persist||o)?(a=!0,l.entered?(l.onClose&&l.onClose(null,"maxsnack",l.id),r.props.onClose&&r.props.onClose(null,"maxsnack",l.id),bu({},l,{open:!1})):bu({},l,{requestClose:!0})):bu({},l)});return bu({},i,{snacks:f})},r.handleEnteredSnack=function(i,a,o){if(!B6(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");r.setState(function(s){var f=s.snacks;return{snacks:f.map(function(l){return l.id===o?bu({},l,{entered:!0}):bu({},l)})}})},r.handleCloseSnack=function(i,a,o){r.props.onClose&&r.props.onClose(i,a,o);var s=o===void 0;r.setState(function(f){var l=f.snacks,c=f.queue;return{snacks:l.map(function(d){return!s&&d.id!==o?bu({},d):d.entered?bu({},d,{open:!1}):bu({},d,{requestClose:!0})}),queue:c.filter(function(d){return d.id!==o})}})},r.closeSnackbar=function(i){var a=r.state.snacks.find(function(o){return o.id===i});B6(i)&&a&&a.onClose&&a.onClose(null,"instructed",i),r.handleCloseSnack(null,"instructed",i)},r.handleExitedSnack=function(i,a){if(!B6(a))throw new Error("handleExitedSnack Cannot be called with undefined key");r.setState(function(o){var s=r.processQueue(bu({},o,{snacks:o.snacks.filter(function(f){return f.id!==a})}));return s.queue.length===0?s:r.handleDismissOldest(s)})},r.enqueueSnackbar,r.closeSnackbar,r.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:r.enqueueSnackbar.bind(CB(r)),closeSnackbar:r.closeSnackbar.bind(CB(r))}},r}var t=e.prototype;return t.render=function(){var r=this,i=this.state.contextValue,a=this.props,o=a.domRoot,s=a.children,f=a.dense,l=f===void 0?!1:f,c=a.Components,d=c===void 0?{}:c,E=a.classes,p=this.state.snacks.reduce(function(g,b){var m,A=kb(b.anchorOrigin),y=g[A]||[];return bu({},g,(m={},m[A]=[].concat(y,[b]),m))},{}),h=Object.keys(p).map(function(g){var b=p[g],m=b[0];return F.createElement(_q,{key:g,dense:l,anchorOrigin:m.anchorOrigin,classes:E},b.map(function(A){return F.createElement(xq,{key:A.id,snack:A,classes:E,Component:d[A.variant],onClose:r.handleCloseSnack,onEnter:r.props.onEnter,onExit:r.props.onExit,onExited:ql([r.handleExitedSnack,r.props.onExited],A.id),onEntered:ql([r.handleEnteredSnack,r.props.onEntered],A.id)})}))});return F.createElement(oq.Provider,{value:i},s,o?E3.createPortal(h,o):h)},FT(e,[{key:"maxSnack",get:function(){return this.props.maxSnack||xo.maxSnack}}]),e}(w.Component);/** + 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},pq=function(){return D.createElement(Q9,null,D.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, + 0 22,12A10,10 0 0,0 12,2Z`}))},hq={default:void 0,success:D.createElement(cq,null),warning:D.createElement(dq,null),error:D.createElement(Eq,null),info:D.createElement(pq,null)},ko={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:hq,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:_T,transitionDuration:{enter:225,exit:195}},Cq=function(e,t){var n=function(i){return typeof i=="number"||i===null};return n(e)?e:n(t)?t:ko.autoHideDuration},mq=function(e,t){var n=function(i,a){return a.some(function(o){return typeof i===o})};return n(e,["string","number"])?e:n(e,["object"])?bu({},ko.transitionDuration,{},n(t,["object"])&&t,{},e):n(t,["string","number"])?t:n(t,["object"])?bu({},ko.transitionDuration,{},t):ko.transitionDuration},bq=function(e,t){return function(n,r){return r===void 0&&(r=!1),r?bu({},ko[n],{},t[n],{},e[n]):n==="autoHideDuration"?Cq(e.autoHideDuration,t.autoHideDuration):n==="transitionDuration"?mq(e.transitionDuration,t.transitionDuration):e[n]||t[n]||ko[n]}};function Cc(u){return Object.entries(u).reduce(function(e,t){var n,r=t[0],i=t[1];return bu({},e,(n={},n[r]=kb(i),n))},{})}var x4={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(e){return"notistack-MuiContent-"+e}},BB=Cc({root:{height:0},entered:{height:"auto"}}),c8="0px",d8=175,ST=w.forwardRef(function(u,e){var t=u.children,n=u.in,r=u.onExited,i=w.useRef(null),a=w.useRef(null),o=I7(e,a),s=function(){return i.current?i.current.clientHeight:0},f=function(h){h.style.height=c8},l=function(h){var g=s(),b=d2({timeout:d8,mode:"enter"}),m=b.duration,A=b.easing;h.style.transitionDuration=typeof m=="string"?m:m+"ms",h.style.height=g+"px",h.style.transitionTimingFunction=A||""},c=function(h){h.style.height="auto"},d=function(h){h.style.height=s()+"px"},E=function(h){xT(h);var g=d2({timeout:d8,mode:"exit"}),b=g.duration,m=g.easing;h.style.transitionDuration=typeof b=="string"?b:b+"ms",h.style.height=c8,h.style.transitionTimingFunction=m||""};return w.createElement(Sb,{in:n,unmountOnExit:!0,onEnter:f,onEntered:c,onEntering:l,onExit:d,onExited:r,onExiting:E,nodeRef:a,timeout:d8},function(p,h){return w.createElement("div",Object.assign({ref:o,className:rs(BB.root,p==="entered"&&BB.entered),style:bu({pointerEvents:"all",overflow:"hidden",minHeight:c8,transition:af("height")},p==="entered"&&{overflow:"visible"},{},p==="exited"&&!n&&{visibility:"hidden"})},h),w.createElement("div",{ref:i,className:x4.CollapseWrapper,style:{display:"flex",width:"100%"}},t))})});ST.displayName="Collapse";var FB={right:"left",left:"right",bottom:"up",top:"down"},gq=function(e){return e.horizontal!=="center"?FB[e.horizontal]:FB[e.vertical]},Aq=function(e){return"anchorOrigin"+_b(e)},yq=function(e){e===void 0&&(e={});var t={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(e).filter(function(n){return!t[n]}).reduce(function(n,r){var i;return bu({},n,(i={},i[r]=e[r],i))},{})},vq=function(){};function ql(u,e){return u.reduce(function(t,n){return n==null?t:function(){for(var i=arguments.length,a=new Array(i),o=0;o-1,A=g.snacks.findIndex(b)>-1;if(m||A)return g}return r.handleDisplaySnack(bu({},g,{queue:[].concat(g.queue,[h])}))}),E},r.handleDisplaySnack=function(i){var a=i.snacks;return a.length>=r.maxSnack?r.handleDismissOldest(i):r.processQueue(i)},r.processQueue=function(i){var a=i.queue,o=i.snacks;return a.length>0?bu({},i,{snacks:[].concat(o,[a[0]]),queue:a.slice(1,a.length)}):i},r.handleDismissOldest=function(i){if(i.snacks.some(function(l){return!l.open||l.requestClose}))return i;var a=!1,o=!1,s=i.snacks.reduce(function(l,c){return l+(c.open&&c.persist?1:0)},0);s===r.maxSnack&&(o=!0);var f=i.snacks.map(function(l){return!a&&(!l.persist||o)?(a=!0,l.entered?(l.onClose&&l.onClose(null,"maxsnack",l.id),r.props.onClose&&r.props.onClose(null,"maxsnack",l.id),bu({},l,{open:!1})):bu({},l,{requestClose:!0})):bu({},l)});return bu({},i,{snacks:f})},r.handleEnteredSnack=function(i,a,o){if(!F6(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");r.setState(function(s){var f=s.snacks;return{snacks:f.map(function(l){return l.id===o?bu({},l,{entered:!0}):bu({},l)})}})},r.handleCloseSnack=function(i,a,o){r.props.onClose&&r.props.onClose(i,a,o);var s=o===void 0;r.setState(function(f){var l=f.snacks,c=f.queue;return{snacks:l.map(function(d){return!s&&d.id!==o?bu({},d):d.entered?bu({},d,{open:!1}):bu({},d,{requestClose:!0})}),queue:c.filter(function(d){return d.id!==o})}})},r.closeSnackbar=function(i){var a=r.state.snacks.find(function(o){return o.id===i});F6(i)&&a&&a.onClose&&a.onClose(null,"instructed",i),r.handleCloseSnack(null,"instructed",i)},r.handleExitedSnack=function(i,a){if(!F6(a))throw new Error("handleExitedSnack Cannot be called with undefined key");r.setState(function(o){var s=r.processQueue(bu({},o,{snacks:o.snacks.filter(function(f){return f.id!==a})}));return s.queue.length===0?s:r.handleDismissOldest(s)})},r.enqueueSnackbar,r.closeSnackbar,r.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:r.enqueueSnackbar.bind(mB(r)),closeSnackbar:r.closeSnackbar.bind(mB(r))}},r}var t=e.prototype;return t.render=function(){var r=this,i=this.state.contextValue,a=this.props,o=a.domRoot,s=a.children,f=a.dense,l=f===void 0?!1:f,c=a.Components,d=c===void 0?{}:c,E=a.classes,p=this.state.snacks.reduce(function(g,b){var m,A=_b(b.anchorOrigin),y=g[A]||[];return bu({},g,(m={},m[A]=[].concat(y,[b]),m))},{}),h=Object.keys(p).map(function(g){var b=p[g],m=b[0];return D.createElement(_q,{key:g,dense:l,anchorOrigin:m.anchorOrigin,classes:E},b.map(function(A){return D.createElement(xq,{key:A.id,snack:A,classes:E,Component:d[A.variant],onClose:r.handleCloseSnack,onEnter:r.props.onEnter,onExit:r.props.onExit,onExited:ql([r.handleExitedSnack,r.props.onExited],A.id),onEntered:ql([r.handleEnteredSnack,r.props.onEntered],A.id)})}))});return D.createElement(oq.Provider,{value:i},s,o?E3.createPortal(h,o):h)},DT(e,[{key:"maxSnack",get:function(){return this.props.maxSnack||ko.maxSnack}}]),e}(w.Component);/** * @remix-run/router v1.13.0 * * Copyright (c) Remix Software Inc. @@ -50,7 +50,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function g1(){return g1=Object.assign?Object.assign.bind():function(u){for(var e=1;e"u")throw new Error(e)}function Sb(u,e){if(!u){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Pq(){return Math.random().toString(36).substr(2,8)}function _B(u,e){return{usr:u.state,key:u.key,idx:e}}function R7(u,e,t,n){return t===void 0&&(t=null),g1({pathname:typeof u=="string"?u:u.pathname,search:"",hash:""},typeof e=="string"?p3(e):e,{state:t,key:e&&e.key||n||Pq()})}function IT(u){let{pathname:e="/",search:t="",hash:n=""}=u;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function p3(u){let e={};if(u){let t=u.indexOf("#");t>=0&&(e.hash=u.substr(t),u=u.substr(0,t));let n=u.indexOf("?");n>=0&&(e.search=u.substr(n),u=u.substr(0,n)),u&&(e.pathname=u)}return e}function Iq(u,e,t,n){n===void 0&&(n={});let{window:r=document.defaultView,v5Compat:i=!1}=n,a=r.history,o=Xi.Pop,s=null,f=l();f==null&&(f=0,a.replaceState(g1({},a.state,{idx:f}),""));function l(){return(a.state||{idx:null}).idx}function c(){o=Xi.Pop;let g=l(),b=g==null?null:g-f;f=g,s&&s({action:o,location:h.location,delta:b})}function d(g,b){o=Xi.Push;let m=R7(h.location,g,b);t&&t(m,g),f=l()+1;let A=_B(m,f),y=h.createHref(m);try{a.pushState(A,"",y)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;r.location.assign(y)}i&&s&&s({action:o,location:h.location,delta:1})}function E(g,b){o=Xi.Replace;let m=R7(h.location,g,b);t&&t(m,g),f=l();let A=_B(m,f),y=h.createHref(m);a.replaceState(A,"",y),i&&s&&s({action:o,location:h.location,delta:0})}function p(g){let b=r.location.origin!=="null"?r.location.origin:r.location.href,m=typeof g=="string"?g:IT(g);return oe(b,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,b)}let h={get action(){return o},get location(){return u(r,a)},listen(g){if(s)throw new Error("A history only accepts one active listener");return r.addEventListener(kB,c),s=g,()=>{r.removeEventListener(kB,c),s=null}},createHref(g){return e(r,g)},createURL:p,encodeLocation(g){let b=p(g);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:d,replace:E,go(g){return a.go(g)}};return h}var SB;(function(u){u.data="data",u.deferred="deferred",u.redirect="redirect",u.error="error"})(SB||(SB={}));function Oq(u,e,t){t===void 0&&(t="/");let n=typeof e=="string"?p3(e):e,r=NT(n.pathname||"/",t);if(r==null)return null;let i=OT(u);Rq(i);let a=null;for(let o=0;a==null&&o{let s={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(oe(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let f=ko([n,s.relativePath]),l=t.concat(s);i.children&&i.children.length>0&&(oe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),OT(i.children,e,l,f)),!(i.path==null&&!i.index)&&e.push({path:f,score:Uq(f,i.index),routesMeta:l})};return u.forEach((i,a)=>{var o;if(i.path===""||!((o=i.path)!=null&&o.includes("?")))r(i,a);else for(let s of RT(i.path))r(i,a,s)}),e}function RT(u){let e=u.split("/");if(e.length===0)return[];let[t,...n]=e,r=t.endsWith("?"),i=t.replace(/\?$/,"");if(n.length===0)return r?[i,""]:[i];let a=RT(n.join("/")),o=[];return o.push(...a.map(s=>s===""?i:[i,s].join("/"))),r&&o.push(...a),o.map(s=>u.startsWith("/")&&s===""?"/":s)}function Rq(u){u.sort((e,t)=>e.score!==t.score?t.score-e.score:Wq(e.routesMeta.map(n=>n.childrenIndex),t.routesMeta.map(n=>n.childrenIndex)))}const Nq=/^:\w+$/,Mq=3,jq=2,zq=1,Lq=10,$q=-2,TB=u=>u==="*";function Uq(u,e){let t=u.split("/"),n=t.length;return t.some(TB)&&(n+=$q),e&&(n+=jq),t.filter(r=>!TB(r)).reduce((r,i)=>r+(Nq.test(i)?Mq:i===""?zq:Lq),n)}function Wq(u,e){return u.length===e.length&&u.slice(0,-1).every((n,r)=>n===e[r])?u[u.length-1]-e[e.length-1]:0}function qq(u,e){let{routesMeta:t}=u,n={},r="/",i=[];for(let a=0;a{let{paramName:d,isOptional:E}=l;if(d==="*"){let h=o[c]||"";a=i.slice(0,i.length-h.length).replace(/(.)\/+$/,"$1")}const p=o[c];return E&&!p?f[d]=void 0:f[d]=Kq(p||"",d),f},{}),pathname:i,pathnameBase:a,pattern:u}}function Gq(u,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),Sb(u==="*"||!u.endsWith("*")||u.endsWith("/*"),'Route path "'+u+'" will be treated as if it were '+('"'+u.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+u.replace(/\*$/,"/*")+'".'));let n=[],r="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(a,o,s)=>(n.push({paramName:o,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return u.endsWith("*")?(n.push({paramName:"*"}),r+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?r+="\\/*$":u!==""&&u!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,e?void 0:"i"),n]}function Vq(u){try{return decodeURI(u)}catch(e){return Sb(!1,'The URL path "'+u+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),u}}function Kq(u,e){try{return decodeURIComponent(u)}catch(t){return Sb(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+u+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),u}}function NT(u,e){if(e==="/")return u;if(!u.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,n=u.charAt(t);return n&&n!=="/"?null:u.slice(t)||"/"}function Qq(u,e){e===void 0&&(e="/");let{pathname:t,search:n="",hash:r=""}=typeof u=="string"?p3(u):u;return{pathname:t?t.startsWith("/")?t:Jq(t,e):e,search:eH(n),hash:tH(r)}}function Jq(u,e){let t=e.replace(/\/+$/,"").split("/");return u.split("/").forEach(r=>{r===".."?t.length>1&&t.pop():r!=="."&&t.push(r)}),t.length>1?t.join("/"):"/"}function C8(u,e,t,n){return"Cannot include a '"+u+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Zq(u){return u.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Yq(u){return Zq(u).map((e,t)=>t===u.length-1?e.pathname:e.pathnameBase)}function Xq(u,e,t,n){n===void 0&&(n=!1);let r;typeof u=="string"?r=p3(u):(r=g1({},u),oe(!r.pathname||!r.pathname.includes("?"),C8("?","pathname","search",r)),oe(!r.pathname||!r.pathname.includes("#"),C8("#","pathname","hash",r)),oe(!r.search||!r.search.includes("#"),C8("#","search","hash",r)));let i=u===""||r.pathname==="",a=i?"/":r.pathname,o;if(a==null)o=t;else if(n){let c=e[e.length-1].replace(/^\//,"").split("/");if(a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),c.pop();r.pathname=d.join("/")}o="/"+c.join("/")}else{let c=e.length-1;if(a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),c-=1;r.pathname=d.join("/")}o=c>=0?e[c]:"/"}let s=Qq(r,o),f=a&&a!=="/"&&a.endsWith("/"),l=(i||a===".")&&t.endsWith("/");return!s.pathname.endsWith("/")&&(f||l)&&(s.pathname+="/"),s}const ko=u=>u.join("/").replace(/\/\/+/g,"/"),uH=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),eH=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,tH=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u;function nH(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}const MT=["post","put","patch","delete"];new Set(MT);const rH=["get",...MT];new Set(rH);/** + */function A1(){return A1=Object.assign?Object.assign.bind():function(u){for(var e=1;e"u")throw new Error(e)}function Tb(u,e){if(!u){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Pq(){return Math.random().toString(36).substr(2,8)}function SB(u,e){return{usr:u.state,key:u.key,idx:e}}function R7(u,e,t,n){return t===void 0&&(t=null),A1({pathname:typeof u=="string"?u:u.pathname,search:"",hash:""},typeof e=="string"?p3(e):e,{state:t,key:e&&e.key||n||Pq()})}function OT(u){let{pathname:e="/",search:t="",hash:n=""}=u;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function p3(u){let e={};if(u){let t=u.indexOf("#");t>=0&&(e.hash=u.substr(t),u=u.substr(0,t));let n=u.indexOf("?");n>=0&&(e.search=u.substr(n),u=u.substr(0,n)),u&&(e.pathname=u)}return e}function Iq(u,e,t,n){n===void 0&&(n={});let{window:r=document.defaultView,v5Compat:i=!1}=n,a=r.history,o=ua.Pop,s=null,f=l();f==null&&(f=0,a.replaceState(A1({},a.state,{idx:f}),""));function l(){return(a.state||{idx:null}).idx}function c(){o=ua.Pop;let g=l(),b=g==null?null:g-f;f=g,s&&s({action:o,location:h.location,delta:b})}function d(g,b){o=ua.Push;let m=R7(h.location,g,b);t&&t(m,g),f=l()+1;let A=SB(m,f),y=h.createHref(m);try{a.pushState(A,"",y)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;r.location.assign(y)}i&&s&&s({action:o,location:h.location,delta:1})}function E(g,b){o=ua.Replace;let m=R7(h.location,g,b);t&&t(m,g),f=l();let A=SB(m,f),y=h.createHref(m);a.replaceState(A,"",y),i&&s&&s({action:o,location:h.location,delta:0})}function p(g){let b=r.location.origin!=="null"?r.location.origin:r.location.href,m=typeof g=="string"?g:OT(g);return oe(b,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,b)}let h={get action(){return o},get location(){return u(r,a)},listen(g){if(s)throw new Error("A history only accepts one active listener");return r.addEventListener(_B,c),s=g,()=>{r.removeEventListener(_B,c),s=null}},createHref(g){return e(r,g)},createURL:p,encodeLocation(g){let b=p(g);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:d,replace:E,go(g){return a.go(g)}};return h}var TB;(function(u){u.data="data",u.deferred="deferred",u.redirect="redirect",u.error="error"})(TB||(TB={}));function Oq(u,e,t){t===void 0&&(t="/");let n=typeof e=="string"?p3(e):e,r=MT(n.pathname||"/",t);if(r==null)return null;let i=RT(u);Rq(i);let a=null;for(let o=0;a==null&&o{let s={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(oe(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let f=_o([n,s.relativePath]),l=t.concat(s);i.children&&i.children.length>0&&(oe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),RT(i.children,e,l,f)),!(i.path==null&&!i.index)&&e.push({path:f,score:Uq(f,i.index),routesMeta:l})};return u.forEach((i,a)=>{var o;if(i.path===""||!((o=i.path)!=null&&o.includes("?")))r(i,a);else for(let s of NT(i.path))r(i,a,s)}),e}function NT(u){let e=u.split("/");if(e.length===0)return[];let[t,...n]=e,r=t.endsWith("?"),i=t.replace(/\?$/,"");if(n.length===0)return r?[i,""]:[i];let a=NT(n.join("/")),o=[];return o.push(...a.map(s=>s===""?i:[i,s].join("/"))),r&&o.push(...a),o.map(s=>u.startsWith("/")&&s===""?"/":s)}function Rq(u){u.sort((e,t)=>e.score!==t.score?t.score-e.score:Wq(e.routesMeta.map(n=>n.childrenIndex),t.routesMeta.map(n=>n.childrenIndex)))}const Nq=/^:\w+$/,Mq=3,jq=2,zq=1,Lq=10,$q=-2,PB=u=>u==="*";function Uq(u,e){let t=u.split("/"),n=t.length;return t.some(PB)&&(n+=$q),e&&(n+=jq),t.filter(r=>!PB(r)).reduce((r,i)=>r+(Nq.test(i)?Mq:i===""?zq:Lq),n)}function Wq(u,e){return u.length===e.length&&u.slice(0,-1).every((n,r)=>n===e[r])?u[u.length-1]-e[e.length-1]:0}function qq(u,e){let{routesMeta:t}=u,n={},r="/",i=[];for(let a=0;a{let{paramName:d,isOptional:E}=l;if(d==="*"){let h=o[c]||"";a=i.slice(0,i.length-h.length).replace(/(.)\/+$/,"$1")}const p=o[c];return E&&!p?f[d]=void 0:f[d]=Kq(p||"",d),f},{}),pathname:i,pathnameBase:a,pattern:u}}function Gq(u,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),Tb(u==="*"||!u.endsWith("*")||u.endsWith("/*"),'Route path "'+u+'" will be treated as if it were '+('"'+u.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+u.replace(/\*$/,"/*")+'".'));let n=[],r="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(a,o,s)=>(n.push({paramName:o,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return u.endsWith("*")?(n.push({paramName:"*"}),r+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?r+="\\/*$":u!==""&&u!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,e?void 0:"i"),n]}function Vq(u){try{return decodeURI(u)}catch(e){return Tb(!1,'The URL path "'+u+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),u}}function Kq(u,e){try{return decodeURIComponent(u)}catch(t){return Tb(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+u+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),u}}function MT(u,e){if(e==="/")return u;if(!u.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,n=u.charAt(t);return n&&n!=="/"?null:u.slice(t)||"/"}function Qq(u,e){e===void 0&&(e="/");let{pathname:t,search:n="",hash:r=""}=typeof u=="string"?p3(u):u;return{pathname:t?t.startsWith("/")?t:Jq(t,e):e,search:eH(n),hash:tH(r)}}function Jq(u,e){let t=e.replace(/\/+$/,"").split("/");return u.split("/").forEach(r=>{r===".."?t.length>1&&t.pop():r!=="."&&t.push(r)}),t.length>1?t.join("/"):"/"}function m8(u,e,t,n){return"Cannot include a '"+u+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Zq(u){return u.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Yq(u){return Zq(u).map((e,t)=>t===u.length-1?e.pathname:e.pathnameBase)}function Xq(u,e,t,n){n===void 0&&(n=!1);let r;typeof u=="string"?r=p3(u):(r=A1({},u),oe(!r.pathname||!r.pathname.includes("?"),m8("?","pathname","search",r)),oe(!r.pathname||!r.pathname.includes("#"),m8("#","pathname","hash",r)),oe(!r.search||!r.search.includes("#"),m8("#","search","hash",r)));let i=u===""||r.pathname==="",a=i?"/":r.pathname,o;if(a==null)o=t;else if(n){let c=e[e.length-1].replace(/^\//,"").split("/");if(a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),c.pop();r.pathname=d.join("/")}o="/"+c.join("/")}else{let c=e.length-1;if(a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),c-=1;r.pathname=d.join("/")}o=c>=0?e[c]:"/"}let s=Qq(r,o),f=a&&a!=="/"&&a.endsWith("/"),l=(i||a===".")&&t.endsWith("/");return!s.pathname.endsWith("/")&&(f||l)&&(s.pathname+="/"),s}const _o=u=>u.join("/").replace(/\/\/+/g,"/"),uH=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),eH=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,tH=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u;function nH(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}const jT=["post","put","patch","delete"];new Set(jT);const rH=["get",...jT];new Set(rH);/** * React Router v6.20.0 * * Copyright (c) Remix Software Inc. @@ -59,7 +59,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function d2(){return d2=Object.assign?Object.assign.bind():function(u){for(var e=1;e{a.current=!0}),w.useCallback(function(s,f){if(f===void 0&&(f={}),!a.current)return;if(typeof s=="number"){t.go(s);return}let l=Xq(s,JSON.parse(i),r,f.relative==="path");u==null&&e!=="/"&&(l.pathname=l.pathname==="/"?e:ko([e,l.pathname])),(f.replace?t.replace:t.push)(l,f.state,f)},[e,t,i,r,u])}function $T(){let{matches:u}=w.useContext(is),e=u[u.length-1];return e?e.params:{}}function oH(u,e){return sH(u,e)}function sH(u,e,t){Z9()||oe(!1);let{navigator:n}=w.useContext(Q9),{matches:r}=w.useContext(is),i=r[r.length-1],a=i?i.params:{};i&&i.pathname;let o=i?i.pathnameBase:"/";i&&i.route;let s=zT(),f;if(e){var l;let h=typeof e=="string"?p3(e):e;o==="/"||(l=h.pathname)!=null&&l.startsWith(o)||oe(!1),f=h}else f=s;let c=f.pathname||"/",d=o==="/"?c:c.slice(o.length)||"/",E=Oq(u,{pathname:d}),p=EH(E&&E.map(h=>Object.assign({},h,{params:Object.assign({},a,h.params),pathname:ko([o,n.encodeLocation?n.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?o:ko([o,n.encodeLocation?n.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),r,t);return e&&p?w.createElement(J9.Provider,{value:{location:d2({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Xi.Pop}},p):p}function fH(){let u=mH(),e=nH(u)?u.status+" "+u.statusText:u instanceof Error?u.message:JSON.stringify(u),t=u instanceof Error?u.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},e),t?w.createElement("pre",{style:r},t):null,i)}const lH=w.createElement(fH,null);class cH extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?w.createElement(is.Provider,{value:this.props.routeContext},w.createElement(jT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function dH(u){let{routeContext:e,match:t,children:n}=u,r=w.useContext(Tb);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(is.Provider,{value:e},n)}function EH(u,e,t){var n;if(e===void 0&&(e=[]),t===void 0&&(t=null),u==null){var r;if((r=t)!=null&&r.errors)u=t.matches;else return null}let i=u,a=(n=t)==null?void 0:n.errors;if(a!=null){let o=i.findIndex(s=>s.route.id&&(a==null?void 0:a[s.route.id]));o>=0||oe(!1),i=i.slice(0,Math.min(i.length,o+1))}return i.reduceRight((o,s,f)=>{let l=s.route.id?a==null?void 0:a[s.route.id]:null,c=null;t&&(c=s.route.errorElement||lH);let d=e.concat(i.slice(0,f+1)),E=()=>{let p;return l?p=c:s.route.Component?p=w.createElement(s.route.Component,null):s.route.element?p=s.route.element:p=o,w.createElement(dH,{match:s,routeContext:{outlet:o,matches:d,isDataRoute:t!=null},children:p})};return t&&(s.route.ErrorBoundary||s.route.errorElement||f===0)?w.createElement(cH,{location:t.location,revalidation:t.revalidation,component:c,error:l,children:E(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):E()},null)}var UT=function(u){return u.UseBlocker="useBlocker",u.UseRevalidator="useRevalidator",u.UseNavigateStable="useNavigate",u}(UT||{}),E2=function(u){return u.UseBlocker="useBlocker",u.UseLoaderData="useLoaderData",u.UseActionData="useActionData",u.UseRouteError="useRouteError",u.UseNavigation="useNavigation",u.UseRouteLoaderData="useRouteLoaderData",u.UseMatches="useMatches",u.UseRevalidator="useRevalidator",u.UseNavigateStable="useNavigate",u.UseRouteId="useRouteId",u}(E2||{});function pH(u){let e=w.useContext(Tb);return e||oe(!1),e}function hH(u){let e=w.useContext(iH);return e||oe(!1),e}function CH(u){let e=w.useContext(is);return e||oe(!1),e}function WT(u){let e=CH(),t=e.matches[e.matches.length-1];return t.route.id||oe(!1),t.route.id}function mH(){var u;let e=w.useContext(jT),t=hH(E2.UseRouteError),n=WT(E2.UseRouteError);return e||((u=t.errors)==null?void 0:u[n])}function bH(){let{router:u}=pH(UT.UseNavigateStable),e=WT(E2.UseNavigateStable),t=w.useRef(!1);return LT(()=>{t.current=!0}),w.useCallback(function(r,i){i===void 0&&(i={}),t.current&&(typeof r=="number"?u.navigate(r):u.navigate(r,d2({fromRouteId:e},i)))},[u,e])}function Ms(u){oe(!1)}function gH(u){let{basename:e="/",children:t=null,location:n,navigationType:r=Xi.Pop,navigator:i,static:a=!1}=u;Z9()&&oe(!1);let o=e.replace(/^\/*/,"/"),s=w.useMemo(()=>({basename:o,navigator:i,static:a}),[o,i,a]);typeof n=="string"&&(n=p3(n));let{pathname:f="/",search:l="",hash:c="",state:d=null,key:E="default"}=n,p=w.useMemo(()=>{let h=NT(f,o);return h==null?null:{location:{pathname:h,search:l,hash:c,state:d,key:E},navigationType:r}},[o,f,l,c,d,E,r]);return p==null?null:w.createElement(Q9.Provider,{value:s},w.createElement(J9.Provider,{children:t,value:p}))}function AH(u){let{children:e,location:t}=u;return oH(N7(e),t)}new Promise(()=>{});function N7(u,e){e===void 0&&(e=[]);let t=[];return w.Children.forEach(u,(n,r)=>{if(!w.isValidElement(n))return;let i=[...e,r];if(n.type===w.Fragment){t.push.apply(t,N7(n.props.children,i));return}n.type!==Ms&&oe(!1),!n.props.index||!n.props.children||oe(!1);let a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=N7(n.props.children,i)),t.push(a)}),t}/** + */function E2(){return E2=Object.assign?Object.assign.bind():function(u){for(var e=1;e{a.current=!0}),w.useCallback(function(s,f){if(f===void 0&&(f={}),!a.current)return;if(typeof s=="number"){t.go(s);return}let l=Xq(s,JSON.parse(i),r,f.relative==="path");u==null&&e!=="/"&&(l.pathname=l.pathname==="/"?e:_o([e,l.pathname])),(f.replace?t.replace:t.push)(l,f.state,f)},[e,t,i,r,u])}function N7(){let{matches:u}=w.useContext(is),e=u[u.length-1];return e?e.params:{}}function oH(u,e){return sH(u,e)}function sH(u,e,t){Y9()||oe(!1);let{navigator:n}=w.useContext(J9),{matches:r}=w.useContext(is),i=r[r.length-1],a=i?i.params:{};i&&i.pathname;let o=i?i.pathnameBase:"/";i&&i.route;let s=LT(),f;if(e){var l;let h=typeof e=="string"?p3(e):e;o==="/"||(l=h.pathname)!=null&&l.startsWith(o)||oe(!1),f=h}else f=s;let c=f.pathname||"/",d=o==="/"?c:c.slice(o.length)||"/",E=Oq(u,{pathname:d}),p=EH(E&&E.map(h=>Object.assign({},h,{params:Object.assign({},a,h.params),pathname:_o([o,n.encodeLocation?n.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?o:_o([o,n.encodeLocation?n.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),r,t);return e&&p?w.createElement(Z9.Provider,{value:{location:E2({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:ua.Pop}},p):p}function fH(){let u=mH(),e=nH(u)?u.status+" "+u.statusText:u instanceof Error?u.message:JSON.stringify(u),t=u instanceof Error?u.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},e),t?w.createElement("pre",{style:r},t):null,i)}const lH=w.createElement(fH,null);class cH extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?w.createElement(is.Provider,{value:this.props.routeContext},w.createElement(zT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function dH(u){let{routeContext:e,match:t,children:n}=u,r=w.useContext(Pb);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(is.Provider,{value:e},n)}function EH(u,e,t){var n;if(e===void 0&&(e=[]),t===void 0&&(t=null),u==null){var r;if((r=t)!=null&&r.errors)u=t.matches;else return null}let i=u,a=(n=t)==null?void 0:n.errors;if(a!=null){let o=i.findIndex(s=>s.route.id&&(a==null?void 0:a[s.route.id]));o>=0||oe(!1),i=i.slice(0,Math.min(i.length,o+1))}return i.reduceRight((o,s,f)=>{let l=s.route.id?a==null?void 0:a[s.route.id]:null,c=null;t&&(c=s.route.errorElement||lH);let d=e.concat(i.slice(0,f+1)),E=()=>{let p;return l?p=c:s.route.Component?p=w.createElement(s.route.Component,null):s.route.element?p=s.route.element:p=o,w.createElement(dH,{match:s,routeContext:{outlet:o,matches:d,isDataRoute:t!=null},children:p})};return t&&(s.route.ErrorBoundary||s.route.errorElement||f===0)?w.createElement(cH,{location:t.location,revalidation:t.revalidation,component:c,error:l,children:E(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):E()},null)}var UT=function(u){return u.UseBlocker="useBlocker",u.UseRevalidator="useRevalidator",u.UseNavigateStable="useNavigate",u}(UT||{}),p2=function(u){return u.UseBlocker="useBlocker",u.UseLoaderData="useLoaderData",u.UseActionData="useActionData",u.UseRouteError="useRouteError",u.UseNavigation="useNavigation",u.UseRouteLoaderData="useRouteLoaderData",u.UseMatches="useMatches",u.UseRevalidator="useRevalidator",u.UseNavigateStable="useNavigate",u.UseRouteId="useRouteId",u}(p2||{});function pH(u){let e=w.useContext(Pb);return e||oe(!1),e}function hH(u){let e=w.useContext(iH);return e||oe(!1),e}function CH(u){let e=w.useContext(is);return e||oe(!1),e}function WT(u){let e=CH(),t=e.matches[e.matches.length-1];return t.route.id||oe(!1),t.route.id}function mH(){var u;let e=w.useContext(zT),t=hH(p2.UseRouteError),n=WT(p2.UseRouteError);return e||((u=t.errors)==null?void 0:u[n])}function bH(){let{router:u}=pH(UT.UseNavigateStable),e=WT(p2.UseNavigateStable),t=w.useRef(!1);return $T(()=>{t.current=!0}),w.useCallback(function(r,i){i===void 0&&(i={}),t.current&&(typeof r=="number"?u.navigate(r):u.navigate(r,E2({fromRouteId:e},i)))},[u,e])}function Ms(u){oe(!1)}function gH(u){let{basename:e="/",children:t=null,location:n,navigationType:r=ua.Pop,navigator:i,static:a=!1}=u;Y9()&&oe(!1);let o=e.replace(/^\/*/,"/"),s=w.useMemo(()=>({basename:o,navigator:i,static:a}),[o,i,a]);typeof n=="string"&&(n=p3(n));let{pathname:f="/",search:l="",hash:c="",state:d=null,key:E="default"}=n,p=w.useMemo(()=>{let h=MT(f,o);return h==null?null:{location:{pathname:h,search:l,hash:c,state:d,key:E},navigationType:r}},[o,f,l,c,d,E,r]);return p==null?null:w.createElement(J9.Provider,{value:s},w.createElement(Z9.Provider,{children:t,value:p}))}function AH(u){let{children:e,location:t}=u;return oH(M7(e),t)}new Promise(()=>{});function M7(u,e){e===void 0&&(e=[]);let t=[];return w.Children.forEach(u,(n,r)=>{if(!w.isValidElement(n))return;let i=[...e,r];if(n.type===w.Fragment){t.push.apply(t,M7(n.props.children,i));return}n.type!==Ms&&oe(!1),!n.props.index||!n.props.children||oe(!1);let a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=M7(n.props.children,i)),t.push(a)}),t}/** * React Router DOM v6.20.0 * * Copyright (c) Remix Software Inc. @@ -68,14 +68,14 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */const yH="startTransition",PB=L5[yH];function vH(u){let{basename:e,children:t,future:n,window:r}=u,i=w.useRef();i.current==null&&(i.current=Tq({window:r,v5Compat:!0}));let a=i.current,[o,s]=w.useState({action:a.action,location:a.location}),{v7_startTransition:f}=n||{},l=w.useCallback(c=>{f&&PB?PB(()=>s(c)):s(c)},[s,f]);return w.useLayoutEffect(()=>a.listen(l),[a,l]),w.createElement(gH,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a})}var IB;(function(u){u.UseScrollRestoration="useScrollRestoration",u.UseSubmit="useSubmit",u.UseSubmitFetcher="useSubmitFetcher",u.UseFetcher="useFetcher",u.useViewTransitionState="useViewTransitionState"})(IB||(IB={}));var OB;(function(u){u.UseFetcher="useFetcher",u.UseFetchers="useFetchers",u.UseScrollRestoration="useScrollRestoration"})(OB||(OB={}));function L0(u,e){if(u==null)return{};var t={},n=Object.keys(u),r,i;for(i=0;i=0)&&(t[r]=u[r]);return t}function N(){return N=Object.assign?Object.assign.bind():function(u){for(var e=1;e{e[t]=HT(u[t])}),e}function ze(u,e,t={clone:!0}){const n=t.clone?N({},u):u;return Hr(u)&&Hr(e)&&Object.keys(e).forEach(r=>{r!=="__proto__"&&(Hr(e[r])&&r in u&&Hr(u[r])?n[r]=ze(u[r],e[r],t):t.clone?n[r]=Hr(e[r])?HT(e[r]):e[r]:n[r]=e[r])}),n}function pa(u){let e="https://mui.com/production-error/?code="+u;for(let t=1;tt==null?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}function GT(u,e=166){let t;function n(...r){const i=()=>{u.apply(this,r)};clearTimeout(t),t=setTimeout(i,e)}return n.clear=()=>{clearTimeout(t)},n}function m8(u,e){var t,n;return w.isValidElement(u)&&e.indexOf((t=u.type.muiName)!=null?t:(n=u.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function Lt(u){return u&&u.ownerDocument||document}function Lo(u){return Lt(u).defaultView||window}function M7(u,e){typeof u=="function"?u(e):u&&(u.current=e)}const BH=typeof window<"u"?w.useLayoutEffect:w.useEffect,$o=BH;let NB=0;function FH(u){const[e,t]=w.useState(u),n=u||e;return w.useEffect(()=>{e==null&&(NB+=1,t(`mui-${NB}`))},[e]),n}const MB=L5.useId;function j7(u){if(MB!==void 0){const e=MB();return u??e}return FH(u)}function jB({controlled:u,default:e,name:t,state:n="value"}){const{current:r}=w.useRef(u!==void 0),[i,a]=w.useState(e),o=r?u:i,s=w.useCallback(f=>{r||a(f)},[]);return[o,s]}function of(u){const e=w.useRef(u);return $o(()=>{e.current=u}),w.useRef((...t)=>(0,e.current)(...t)).current}function et(...u){return w.useMemo(()=>u.every(e=>e==null)?null:e=>{u.forEach(t=>{M7(t,e)})},u)}let Y9=!0,z7=!1,zB;const DH={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function wH(u){const{type:e,tagName:t}=u;return!!(t==="INPUT"&&DH[e]&&!u.readOnly||t==="TEXTAREA"&&!u.readOnly||u.isContentEditable)}function xH(u){u.metaKey||u.altKey||u.ctrlKey||(Y9=!0)}function b8(){Y9=!1}function kH(){this.visibilityState==="hidden"&&z7&&(Y9=!0)}function _H(u){u.addEventListener("keydown",xH,!0),u.addEventListener("mousedown",b8,!0),u.addEventListener("pointerdown",b8,!0),u.addEventListener("touchstart",b8,!0),u.addEventListener("visibilitychange",kH,!0)}function SH(u){const{target:e}=u;try{return e.matches(":focus-visible")}catch{}return Y9||wH(e)}function VT(){const u=w.useCallback(r=>{r!=null&&_H(r.ownerDocument)},[]),e=w.useRef(!1);function t(){return e.current?(z7=!0,window.clearTimeout(zB),zB=window.setTimeout(()=>{z7=!1},100),e.current=!1,!0):!1}function n(r){return SH(r)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:n,onBlur:t,ref:u}}function KT(u){const e=u.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}function Ib(u,e){const t=N({},e);return Object.keys(u).forEach(n=>{if(n.toString().match(/^(components|slots)$/))t[n]=N({},u[n],t[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const r=u[n]||{},i=e[n];t[n]={},!i||!Object.keys(i)?t[n]=r:!r||!Object.keys(r)?t[n]=i:(t[n]=N({},i),Object.keys(r).forEach(a=>{t[n][a]=Ib(r[a],i[a])}))}else t[n]===void 0&&(t[n]=u[n])}),t}function du(u,e,t=void 0){const n={};return Object.keys(u).forEach(r=>{n[r]=u[r].reduce((i,a)=>{if(a){const o=e(a);o!==""&&i.push(o),t&&t[a]&&i.push(t[a])}return i},[]).join(" ")}),n}const LB=u=>u,TH=()=>{let u=LB;return{configure(e){u=e},generate(e){return u(e)},reset(){u=LB}}},PH=TH(),QT=PH,IH={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function fu(u,e,t="Mui"){const n=IH[e];return n?`${t}-${n}`:`${QT.generate(u)}-${e}`}function Eu(u,e,t="Mui"){const n={};return e.forEach(r=>{n[r]=fu(u,r,t)}),n}function JT(u){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=u(t)),e[t]}}var OH=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,RH=JT(function(u){return OH.test(u)||u.charCodeAt(0)===111&&u.charCodeAt(1)===110&&u.charCodeAt(2)<91});function NH(u){if(u.sheet)return u.sheet;for(var e=0;e0?ye(h3,--bt):0,k4--,Ju===10&&(k4=1,ud--),Ju}function $t(){return Ju=bt2||y1(Ju)>3?"":" "}function QH(u,e){for(;--e&&$t()&&!(Ju<48||Ju>102||Ju>57&&Ju<65||Ju>70&&Ju<97););return Cc(u,C5()+(e<6&&mr()==32&&$t()==32))}function $7(u){for(;$t();)switch(Ju){case u:return bt;case 34:case 39:u!==34&&u!==39&&$7(Ju);break;case 40:u===41&&$7(u);break;case 92:$t();break}return bt}function JH(u,e){for(;$t()&&u+Ju!==57;)if(u+Ju===84&&mr()===47)break;return"/*"+Cc(e,bt-1)+"*"+X9(u===47?u:$t())}function ZH(u){for(;!y1(mr());)$t();return Cc(u,bt)}function YH(u){return tP(b5("",null,null,null,[""],u=eP(u),0,[0],u))}function b5(u,e,t,n,r,i,a,o,s){for(var f=0,l=0,c=a,d=0,E=0,p=0,h=1,g=1,b=1,m=0,A="",y=r,B=i,v=n,C=A;g;)switch(p=m,m=$t()){case 40:if(p!=108&&ye(C,c-1)==58){L7(C+=ou(m5(m),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:C+=m5(m);break;case 9:case 10:case 13:case 32:C+=KH(p);break;case 92:C+=QH(C5()-1,7);continue;case 47:switch(mr()){case 42:case 47:_6(XH(JH($t(),C5()),e,t),s);break;default:C+="/"}break;case 123*h:o[f++]=or(C)*b;case 125*h:case 59:case 0:switch(m){case 0:case 125:g=0;case 59+l:b==-1&&(C=ou(C,/\f/g,"")),E>0&&or(C)-c&&_6(E>32?UB(C+";",n,t,c-1):UB(ou(C," ","")+";",n,t,c-2),s);break;case 59:C+=";";default:if(_6(v=$B(C,e,t,f,l,r,o,A,y=[],B=[],c),i),m===123)if(l===0)b5(C,e,v,v,y,i,c,o,B);else switch(d===99&&ye(C,3)===110?100:d){case 100:case 108:case 109:case 115:b5(u,v,v,n&&_6($B(u,v,v,0,0,r,o,A,r,y=[],c),B),r,B,c,o,n?y:B);break;default:b5(C,v,v,v,[""],B,0,o,B)}}f=l=E=0,h=b=1,A=C="",c=a;break;case 58:c=1+or(C),E=p;default:if(h<1){if(m==123)--h;else if(m==125&&h++==0&&VH()==125)continue}switch(C+=X9(m),m*h){case 38:b=l>0?1:(C+="\f",-1);break;case 44:o[f++]=(or(C)-1)*b,b=1;break;case 64:mr()===45&&(C+=m5($t())),d=mr(),l=c=or(A=C+=ZH(C5())),m++;break;case 45:p===45&&or(C)==2&&(h=0)}}return i}function $B(u,e,t,n,r,i,a,o,s,f,l){for(var c=r-1,d=r===0?i:[""],E=Nb(d),p=0,h=0,g=0;p0?d[b]+" "+m:ou(m,/&\f/g,d[b])))&&(s[g++]=A);return ed(u,e,t,r===0?Ob:o,s,f,l)}function XH(u,e,t){return ed(u,e,t,ZT,X9(GH()),A1(u,2,-2),0)}function UB(u,e,t,n){return ed(u,e,t,Rb,A1(u,0,n),A1(u,n+1,-1),n)}function wf(u,e){for(var t="",n=Nb(u),r=0;r6)switch(ye(u,e+1)){case 109:if(ye(u,e+4)!==45)break;case 102:return ou(u,/(.+:)(.+)-([^]+)/,"$1"+au+"$2-$3$1"+p2+(ye(u,e+3)==108?"$3":"$2-$3"))+u;case 115:return~L7(u,"stretch")?nP(ou(u,"stretch","fill-available"),e)+u:u}break;case 4949:if(ye(u,e+1)!==115)break;case 6444:switch(ye(u,or(u)-3-(~L7(u,"!important")&&10))){case 107:return ou(u,":",":"+au)+u;case 101:return ou(u,/(.+:)([^;!]+)(;|!.+)?/,"$1"+au+(ye(u,14)===45?"inline-":"")+"box$3$1"+au+"$2$3$1"+Te+"$2box$3")+u}break;case 5936:switch(ye(u,e+11)){case 114:return au+u+Te+ou(u,/[svh]\w+-[tblr]{2}/,"tb")+u;case 108:return au+u+Te+ou(u,/[svh]\w+-[tblr]{2}/,"tb-rl")+u;case 45:return au+u+Te+ou(u,/[svh]\w+-[tblr]{2}/,"lr")+u}return au+u+Te+u+u}return u}var sG=function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Rb:e.return=nP(e.value,e.length);break;case YT:return wf([rl(e,{value:ou(e.value,"@","@"+au)})],r);case Ob:if(e.length)return HH(e.props,function(i){switch(qH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wf([rl(e,{props:[ou(i,/:(read-\w+)/,":"+p2+"$1")]})],r);case"::placeholder":return wf([rl(e,{props:[ou(i,/:(plac\w+)/,":"+au+"input-$1")]}),rl(e,{props:[ou(i,/:(plac\w+)/,":"+p2+"$1")]}),rl(e,{props:[ou(i,/:(plac\w+)/,Te+"input-$1")]})],r)}return""})}},fG=[sG],lG=function(e){var t=e.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(h){var g=h.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var r=e.stylisPlugins||fG,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var g=h.getAttribute("data-emotion").split(" "),b=1;b{f&&IB?IB(()=>s(c)):s(c)},[s,f]);return w.useLayoutEffect(()=>a.listen(l),[a,l]),w.createElement(gH,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a})}var OB;(function(u){u.UseScrollRestoration="useScrollRestoration",u.UseSubmit="useSubmit",u.UseSubmitFetcher="useSubmitFetcher",u.UseFetcher="useFetcher",u.useViewTransitionState="useViewTransitionState"})(OB||(OB={}));var RB;(function(u){u.UseFetcher="useFetcher",u.UseFetchers="useFetchers",u.UseScrollRestoration="useScrollRestoration"})(RB||(RB={}));function L0(u,e){if(u==null)return{};var t={},n=Object.keys(u),r,i;for(i=0;i=0)&&(t[r]=u[r]);return t}function N(){return N=Object.assign?Object.assign.bind():function(u){for(var e=1;e{e[t]=HT(u[t])}),e}function ze(u,e,t={clone:!0}){const n=t.clone?N({},u):u;return Hr(u)&&Hr(e)&&Object.keys(e).forEach(r=>{r!=="__proto__"&&(Hr(e[r])&&r in u&&Hr(u[r])?n[r]=ze(u[r],e[r],t):t.clone?n[r]=Hr(e[r])?HT(e[r]):e[r]:n[r]=e[r])}),n}function ha(u){let e="https://mui.com/production-error/?code="+u;for(let t=1;tt==null?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}function GT(u,e=166){let t;function n(...r){const i=()=>{u.apply(this,r)};clearTimeout(t),t=setTimeout(i,e)}return n.clear=()=>{clearTimeout(t)},n}function b8(u,e){var t,n;return w.isValidElement(u)&&e.indexOf((t=u.type.muiName)!=null?t:(n=u.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function Lt(u){return u&&u.ownerDocument||document}function $o(u){return Lt(u).defaultView||window}function j7(u,e){typeof u=="function"?u(e):u&&(u.current=e)}const BH=typeof window<"u"?w.useLayoutEffect:w.useEffect,Uo=BH;let MB=0;function FH(u){const[e,t]=w.useState(u),n=u||e;return w.useEffect(()=>{e==null&&(MB+=1,t(`mui-${MB}`))},[e]),n}const jB=$5.useId;function z7(u){if(jB!==void 0){const e=jB();return u??e}return FH(u)}function zB({controlled:u,default:e,name:t,state:n="value"}){const{current:r}=w.useRef(u!==void 0),[i,a]=w.useState(e),o=r?u:i,s=w.useCallback(f=>{r||a(f)},[]);return[o,s]}function of(u){const e=w.useRef(u);return Uo(()=>{e.current=u}),w.useRef((...t)=>(0,e.current)(...t)).current}function et(...u){return w.useMemo(()=>u.every(e=>e==null)?null:e=>{u.forEach(t=>{j7(t,e)})},u)}let X9=!0,L7=!1,LB;const DH={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function wH(u){const{type:e,tagName:t}=u;return!!(t==="INPUT"&&DH[e]&&!u.readOnly||t==="TEXTAREA"&&!u.readOnly||u.isContentEditable)}function xH(u){u.metaKey||u.altKey||u.ctrlKey||(X9=!0)}function g8(){X9=!1}function kH(){this.visibilityState==="hidden"&&L7&&(X9=!0)}function _H(u){u.addEventListener("keydown",xH,!0),u.addEventListener("mousedown",g8,!0),u.addEventListener("pointerdown",g8,!0),u.addEventListener("touchstart",g8,!0),u.addEventListener("visibilitychange",kH,!0)}function SH(u){const{target:e}=u;try{return e.matches(":focus-visible")}catch{}return X9||wH(e)}function VT(){const u=w.useCallback(r=>{r!=null&&_H(r.ownerDocument)},[]),e=w.useRef(!1);function t(){return e.current?(L7=!0,window.clearTimeout(LB),LB=window.setTimeout(()=>{L7=!1},100),e.current=!1,!0):!1}function n(r){return SH(r)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:n,onBlur:t,ref:u}}function KT(u){const e=u.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}function Ob(u,e){const t=N({},e);return Object.keys(u).forEach(n=>{if(n.toString().match(/^(components|slots)$/))t[n]=N({},u[n],t[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const r=u[n]||{},i=e[n];t[n]={},!i||!Object.keys(i)?t[n]=r:!r||!Object.keys(r)?t[n]=i:(t[n]=N({},i),Object.keys(r).forEach(a=>{t[n][a]=Ob(r[a],i[a])}))}else t[n]===void 0&&(t[n]=u[n])}),t}function du(u,e,t=void 0){const n={};return Object.keys(u).forEach(r=>{n[r]=u[r].reduce((i,a)=>{if(a){const o=e(a);o!==""&&i.push(o),t&&t[a]&&i.push(t[a])}return i},[]).join(" ")}),n}const $B=u=>u,TH=()=>{let u=$B;return{configure(e){u=e},generate(e){return u(e)},reset(){u=$B}}},PH=TH(),QT=PH,IH={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function fu(u,e,t="Mui"){const n=IH[e];return n?`${t}-${n}`:`${QT.generate(u)}-${e}`}function Eu(u,e,t="Mui"){const n={};return e.forEach(r=>{n[r]=fu(u,r,t)}),n}function JT(u){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=u(t)),e[t]}}var OH=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,RH=JT(function(u){return OH.test(u)||u.charCodeAt(0)===111&&u.charCodeAt(1)===110&&u.charCodeAt(2)<91});function NH(u){if(u.sheet)return u.sheet;for(var e=0;e0?ye(h3,--bt):0,k4--,Ju===10&&(k4=1,ed--),Ju}function $t(){return Ju=bt2||v1(Ju)>3?"":" "}function QH(u,e){for(;--e&&$t()&&!(Ju<48||Ju>102||Ju>57&&Ju<65||Ju>70&&Ju<97););return mc(u,m5()+(e<6&&mr()==32&&$t()==32))}function U7(u){for(;$t();)switch(Ju){case u:return bt;case 34:case 39:u!==34&&u!==39&&U7(Ju);break;case 40:u===41&&U7(u);break;case 92:$t();break}return bt}function JH(u,e){for(;$t()&&u+Ju!==57;)if(u+Ju===84&&mr()===47)break;return"/*"+mc(e,bt-1)+"*"+ud(u===47?u:$t())}function ZH(u){for(;!v1(mr());)$t();return mc(u,bt)}function YH(u){return tP(g5("",null,null,null,[""],u=eP(u),0,[0],u))}function g5(u,e,t,n,r,i,a,o,s){for(var f=0,l=0,c=a,d=0,E=0,p=0,h=1,g=1,b=1,m=0,A="",y=r,B=i,v=n,C=A;g;)switch(p=m,m=$t()){case 40:if(p!=108&&ye(C,c-1)==58){$7(C+=ou(b5(m),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:C+=b5(m);break;case 9:case 10:case 13:case 32:C+=KH(p);break;case 92:C+=QH(m5()-1,7);continue;case 47:switch(mr()){case 42:case 47:S6(XH(JH($t(),m5()),e,t),s);break;default:C+="/"}break;case 123*h:o[f++]=or(C)*b;case 125*h:case 59:case 0:switch(m){case 0:case 125:g=0;case 59+l:b==-1&&(C=ou(C,/\f/g,"")),E>0&&or(C)-c&&S6(E>32?WB(C+";",n,t,c-1):WB(ou(C," ","")+";",n,t,c-2),s);break;case 59:C+=";";default:if(S6(v=UB(C,e,t,f,l,r,o,A,y=[],B=[],c),i),m===123)if(l===0)g5(C,e,v,v,y,i,c,o,B);else switch(d===99&&ye(C,3)===110?100:d){case 100:case 108:case 109:case 115:g5(u,v,v,n&&S6(UB(u,v,v,0,0,r,o,A,r,y=[],c),B),r,B,c,o,n?y:B);break;default:g5(C,v,v,v,[""],B,0,o,B)}}f=l=E=0,h=b=1,A=C="",c=a;break;case 58:c=1+or(C),E=p;default:if(h<1){if(m==123)--h;else if(m==125&&h++==0&&VH()==125)continue}switch(C+=ud(m),m*h){case 38:b=l>0?1:(C+="\f",-1);break;case 44:o[f++]=(or(C)-1)*b,b=1;break;case 64:mr()===45&&(C+=b5($t())),d=mr(),l=c=or(A=C+=ZH(m5())),m++;break;case 45:p===45&&or(C)==2&&(h=0)}}return i}function UB(u,e,t,n,r,i,a,o,s,f,l){for(var c=r-1,d=r===0?i:[""],E=Mb(d),p=0,h=0,g=0;p0?d[b]+" "+m:ou(m,/&\f/g,d[b])))&&(s[g++]=A);return td(u,e,t,r===0?Rb:o,s,f,l)}function XH(u,e,t){return td(u,e,t,ZT,ud(GH()),y1(u,2,-2),0)}function WB(u,e,t,n){return td(u,e,t,Nb,y1(u,0,n),y1(u,n+1,-1),n)}function wf(u,e){for(var t="",n=Mb(u),r=0;r6)switch(ye(u,e+1)){case 109:if(ye(u,e+4)!==45)break;case 102:return ou(u,/(.+:)(.+)-([^]+)/,"$1"+au+"$2-$3$1"+h2+(ye(u,e+3)==108?"$3":"$2-$3"))+u;case 115:return~$7(u,"stretch")?nP(ou(u,"stretch","fill-available"),e)+u:u}break;case 4949:if(ye(u,e+1)!==115)break;case 6444:switch(ye(u,or(u)-3-(~$7(u,"!important")&&10))){case 107:return ou(u,":",":"+au)+u;case 101:return ou(u,/(.+:)([^;!]+)(;|!.+)?/,"$1"+au+(ye(u,14)===45?"inline-":"")+"box$3$1"+au+"$2$3$1"+Te+"$2box$3")+u}break;case 5936:switch(ye(u,e+11)){case 114:return au+u+Te+ou(u,/[svh]\w+-[tblr]{2}/,"tb")+u;case 108:return au+u+Te+ou(u,/[svh]\w+-[tblr]{2}/,"tb-rl")+u;case 45:return au+u+Te+ou(u,/[svh]\w+-[tblr]{2}/,"lr")+u}return au+u+Te+u+u}return u}var sG=function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Nb:e.return=nP(e.value,e.length);break;case YT:return wf([rl(e,{value:ou(e.value,"@","@"+au)})],r);case Rb:if(e.length)return HH(e.props,function(i){switch(qH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wf([rl(e,{props:[ou(i,/:(read-\w+)/,":"+h2+"$1")]})],r);case"::placeholder":return wf([rl(e,{props:[ou(i,/:(plac\w+)/,":"+au+"input-$1")]}),rl(e,{props:[ou(i,/:(plac\w+)/,":"+h2+"$1")]}),rl(e,{props:[ou(i,/:(plac\w+)/,Te+"input-$1")]})],r)}return""})}},fG=[sG],lG=function(e){var t=e.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(h){var g=h.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var r=e.stylisPlugins||fG,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var g=h.getAttribute("data-emotion").split(" "),b=1;b=4;++n,r-=4)t=u.charCodeAt(n)&255|(u.charCodeAt(++n)&255)<<8|(u.charCodeAt(++n)&255)<<16|(u.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,e=(t&65535)*1540483477+((t>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(r){case 3:e^=(u.charCodeAt(n+2)&255)<<16;case 2:e^=(u.charCodeAt(n+1)&255)<<8;case 1:e^=u.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var vG={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},BG=/[A-Z]|^ms/g,FG=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lP=function(e){return e.charCodeAt(1)===45},qB=function(e){return e!=null&&typeof e!="boolean"},g8=JT(function(u){return lP(u)?u:u.replace(BG,"-$&").toLowerCase()}),HB=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(FG,function(n,r,i){return sr={name:r,styles:i,next:sr},r})}return vG[e]!==1&&!lP(e)&&typeof t=="number"&&t!==0?t+"px":t};function v1(u,e,t){if(t==null)return"";if(t.__emotion_styles!==void 0)return t;switch(typeof t){case"boolean":return"";case"object":{if(t.anim===1)return sr={name:t.name,styles:t.styles,next:sr},t.name;if(t.styles!==void 0){var n=t.next;if(n!==void 0)for(;n!==void 0;)sr={name:n.name,styles:n.styles,next:sr},n=n.next;var r=t.styles+";";return r}return DG(u,e,t)}case"function":{if(u!==void 0){var i=sr,a=t(u);return sr=i,v1(u,e,a)}break}}if(e==null)return t;var o=e[t];return o!==void 0?o:t}function DG(u,e,t){var n="";if(Array.isArray(t))for(var r=0;r96?SG:TG},QB=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(a){return e.__emotion_forwardProp(a)&&i(a)}:i}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r},PG=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return sP(t,n,r),xG(function(){return fP(t,n,r)}),null},IG=function u(e,t){var n=e.__emotion_real===e,r=n&&e.__emotion_base||e,i,a;t!==void 0&&(i=t.label,a=t.target);var o=QB(e,t,n),s=o||KB(r),f=!s("as");return function(){var l=arguments,c=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(i!==void 0&&c.push("label:"+i+";"),l[0]==null||l[0].raw===void 0)c.push.apply(c,l);else{c.push(l[0][0]);for(var d=l.length,E=1;Ee(RG(r)?t:r):e;return K.jsx(kG,{styles:n})}function pP(u,e){return U7(u,e)}const MG=(u,e)=>{Array.isArray(u.__emotion_styles)&&(u.__emotion_styles=e(u.__emotion_styles))},jG=["values","unit","step"],zG=u=>{const e=Object.keys(u).map(t=>({key:t,val:u[t]}))||[];return e.sort((t,n)=>t.val-n.val),e.reduce((t,n)=>N({},t,{[n.key]:n.val}),{})};function LG(u){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:n=5}=u,r=L0(u,jG),i=zG(e),a=Object.keys(i);function o(d){return`@media (min-width:${typeof e[d]=="number"?e[d]:d}${t})`}function s(d){return`@media (max-width:${(typeof e[d]=="number"?e[d]:d)-n/100}${t})`}function f(d,E){const p=a.indexOf(E);return`@media (min-width:${typeof e[d]=="number"?e[d]:d}${t}) and (max-width:${(p!==-1&&typeof e[a[p]]=="number"?e[a[p]]:E)-n/100}${t})`}function l(d){return a.indexOf(d)+1`@media (min-width:${Ub[u]}px)`};function gt(u,e,t){const n=u.theme||{};if(Array.isArray(e)){const i=n.breakpoints||JB;return e.reduce((a,o,s)=>(a[i.up(i.keys[s])]=t(e[s]),a),{})}if(typeof e=="object"){const i=n.breakpoints||JB;return Object.keys(e).reduce((a,o)=>{if(Object.keys(i.values||Ub).indexOf(o)!==-1){const s=i.up(o);a[s]=t(e[o],o)}else{const s=o;a[s]=e[s]}return a},{})}return t(e)}function hP(u={}){var e;return((e=u.keys)==null?void 0:e.reduce((n,r)=>{const i=u.up(r);return n[i]={},n},{}))||{}}function CP(u,e){return u.reduce((t,n)=>{const r=t[n];return(!r||Object.keys(r).length===0)&&delete t[n],t},e)}function WG(u,...e){const t=hP(u),n=[t,...e].reduce((r,i)=>ze(r,i),{});return CP(Object.keys(t),n)}function qG(u,e){if(typeof u!="object")return{};const t={},n=Object.keys(e);return Array.isArray(u)?n.forEach((r,i)=>{i{u[r]!=null&&(t[r]=!0)}),t}function _o({values:u,breakpoints:e,base:t}){const n=t||qG(u,e),r=Object.keys(n);if(r.length===0)return u;let i;return r.reduce((a,o,s)=>(Array.isArray(u)?(a[o]=u[s]!=null?u[s]:u[i],i=s):typeof u=="object"?(a[o]=u[o]!=null?u[o]:u[i],i=o):a[o]=u,a),{})}function Ed(u,e,t=!0){if(!e||typeof e!="string")return null;if(u&&u.vars&&t){const n=`vars.${e}`.split(".").reduce((r,i)=>r&&r[i]?r[i]:null,u);if(n!=null)return n}return e.split(".").reduce((n,r)=>n&&n[r]!=null?n[r]:null,u)}function h2(u,e,t,n=t){let r;return typeof u=="function"?r=u(t):Array.isArray(u)?r=u[t]||n:r=Ed(u,t)||n,e&&(r=e(r,n,u)),r}function Qu(u){const{prop:e,cssProperty:t=u.prop,themeKey:n,transform:r}=u,i=a=>{if(a[e]==null)return null;const o=a[e],s=a.theme,f=Ed(s,n)||{};return gt(a,o,c=>{let d=h2(f,r,c);return c===d&&typeof c=="string"&&(d=h2(f,r,`${e}${c==="default"?"":K0(c)}`,c)),t===!1?d:{[t]:d}})};return i.propTypes={},i.filterProps=[e],i}function HG(u){const e={};return t=>(e[t]===void 0&&(e[t]=u(t)),e[t])}const GG={m:"margin",p:"padding"},VG={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ZB={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},KG=HG(u=>{if(u.length>2)if(ZB[u])u=ZB[u];else return[u];const[e,t]=u.split(""),n=GG[e],r=VG[t]||"";return Array.isArray(r)?r.map(i=>n+i):[n+r]}),Wb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],qb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Wb,...qb];function mc(u,e,t,n){var r;const i=(r=Ed(u,e,!1))!=null?r:t;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function Hb(u){return mc(u,"spacing",8)}function Uo(u,e){if(typeof e=="string"||e==null)return e;const t=Math.abs(e),n=u(t);return e>=0?n:typeof n=="number"?-n:`-${n}`}function QG(u,e){return t=>u.reduce((n,r)=>(n[r]=Uo(e,t),n),{})}function JG(u,e,t,n){if(e.indexOf(t)===-1)return null;const r=KG(t),i=QG(r,n),a=u[t];return gt(u,a,i)}function mP(u,e){const t=Hb(u.theme);return Object.keys(u).map(n=>JG(u,e,n,t)).reduce(Hl,{})}function Lu(u){return mP(u,Wb)}Lu.propTypes={};Lu.filterProps=Wb;function $u(u){return mP(u,qb)}$u.propTypes={};$u.filterProps=qb;function ZG(u=8){if(u.mui)return u;const e=Hb({spacing:u}),t=(...n)=>(n.length===0?[1]:n).map(i=>{const a=e(i);return typeof a=="number"?`${a}px`:a}).join(" ");return t.mui=!0,t}function pd(...u){const e=u.reduce((n,r)=>(r.filterProps.forEach(i=>{n[i]=r}),n),{}),t=n=>Object.keys(n).reduce((r,i)=>e[i]?Hl(r,e[i](n)):r,{});return t.propTypes={},t.filterProps=u.reduce((n,r)=>n.concat(r.filterProps),[]),t}function on(u){return typeof u!="number"?u:`${u}px solid`}function bn(u,e){return Qu({prop:u,themeKey:"borders",transform:e})}const YG=bn("border",on),XG=bn("borderTop",on),uV=bn("borderRight",on),eV=bn("borderBottom",on),tV=bn("borderLeft",on),nV=bn("borderColor"),rV=bn("borderTopColor"),iV=bn("borderRightColor"),aV=bn("borderBottomColor"),oV=bn("borderLeftColor"),sV=bn("outline",on),fV=bn("outlineColor"),hd=u=>{if(u.borderRadius!==void 0&&u.borderRadius!==null){const e=mc(u.theme,"shape.borderRadius",4),t=n=>({borderRadius:Uo(e,n)});return gt(u,u.borderRadius,t)}return null};hd.propTypes={};hd.filterProps=["borderRadius"];pd(YG,XG,uV,eV,tV,nV,rV,iV,aV,oV,hd,sV,fV);const Cd=u=>{if(u.gap!==void 0&&u.gap!==null){const e=mc(u.theme,"spacing",8),t=n=>({gap:Uo(e,n)});return gt(u,u.gap,t)}return null};Cd.propTypes={};Cd.filterProps=["gap"];const md=u=>{if(u.columnGap!==void 0&&u.columnGap!==null){const e=mc(u.theme,"spacing",8),t=n=>({columnGap:Uo(e,n)});return gt(u,u.columnGap,t)}return null};md.propTypes={};md.filterProps=["columnGap"];const bd=u=>{if(u.rowGap!==void 0&&u.rowGap!==null){const e=mc(u.theme,"spacing",8),t=n=>({rowGap:Uo(e,n)});return gt(u,u.rowGap,t)}return null};bd.propTypes={};bd.filterProps=["rowGap"];const lV=Qu({prop:"gridColumn"}),cV=Qu({prop:"gridRow"}),dV=Qu({prop:"gridAutoFlow"}),EV=Qu({prop:"gridAutoColumns"}),pV=Qu({prop:"gridAutoRows"}),hV=Qu({prop:"gridTemplateColumns"}),CV=Qu({prop:"gridTemplateRows"}),mV=Qu({prop:"gridTemplateAreas"}),bV=Qu({prop:"gridArea"});pd(Cd,md,bd,lV,cV,dV,EV,pV,hV,CV,mV,bV);function xf(u,e){return e==="grey"?e:u}const gV=Qu({prop:"color",themeKey:"palette",transform:xf}),AV=Qu({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xf}),yV=Qu({prop:"backgroundColor",themeKey:"palette",transform:xf});pd(gV,AV,yV);function Ot(u){return u<=1&&u!==0?`${u*100}%`:u}const vV=Qu({prop:"width",transform:Ot}),Gb=u=>{if(u.maxWidth!==void 0&&u.maxWidth!==null){const e=t=>{var n,r;const i=((n=u.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[t])||Ub[t];return i?((r=u.theme)==null||(r=r.breakpoints)==null?void 0:r.unit)!=="px"?{maxWidth:`${i}${u.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Ot(t)}};return gt(u,u.maxWidth,e)}return null};Gb.filterProps=["maxWidth"];const BV=Qu({prop:"minWidth",transform:Ot}),FV=Qu({prop:"height",transform:Ot}),DV=Qu({prop:"maxHeight",transform:Ot}),wV=Qu({prop:"minHeight",transform:Ot});Qu({prop:"size",cssProperty:"width",transform:Ot});Qu({prop:"size",cssProperty:"height",transform:Ot});const xV=Qu({prop:"boxSizing"});pd(vV,Gb,BV,FV,DV,wV,xV);const kV={border:{themeKey:"borders",transform:on},borderTop:{themeKey:"borders",transform:on},borderRight:{themeKey:"borders",transform:on},borderBottom:{themeKey:"borders",transform:on},borderLeft:{themeKey:"borders",transform:on},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:on},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:hd},color:{themeKey:"palette",transform:xf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xf},backgroundColor:{themeKey:"palette",transform:xf},p:{style:$u},pt:{style:$u},pr:{style:$u},pb:{style:$u},pl:{style:$u},px:{style:$u},py:{style:$u},padding:{style:$u},paddingTop:{style:$u},paddingRight:{style:$u},paddingBottom:{style:$u},paddingLeft:{style:$u},paddingX:{style:$u},paddingY:{style:$u},paddingInline:{style:$u},paddingInlineStart:{style:$u},paddingInlineEnd:{style:$u},paddingBlock:{style:$u},paddingBlockStart:{style:$u},paddingBlockEnd:{style:$u},m:{style:Lu},mt:{style:Lu},mr:{style:Lu},mb:{style:Lu},ml:{style:Lu},mx:{style:Lu},my:{style:Lu},margin:{style:Lu},marginTop:{style:Lu},marginRight:{style:Lu},marginBottom:{style:Lu},marginLeft:{style:Lu},marginX:{style:Lu},marginY:{style:Lu},marginInline:{style:Lu},marginInlineStart:{style:Lu},marginInlineEnd:{style:Lu},marginBlock:{style:Lu},marginBlockStart:{style:Lu},marginBlockEnd:{style:Lu},displayPrint:{cssProperty:!1,transform:u=>({"@media print":{display:u}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Cd},rowGap:{style:bd},columnGap:{style:md},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ot},maxWidth:{style:Gb},minWidth:{transform:Ot},height:{transform:Ot},maxHeight:{transform:Ot},minHeight:{transform:Ot},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},gd=kV;function _V(...u){const e=u.reduce((n,r)=>n.concat(Object.keys(r)),[]),t=new Set(e);return u.every(n=>t.size===Object.keys(n).length)}function SV(u,e){return typeof u=="function"?u(e):u}function TV(){function u(t,n,r,i){const a={[t]:n,theme:r},o=i[t];if(!o)return{[t]:n};const{cssProperty:s=t,themeKey:f,transform:l,style:c}=o;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[t]:n};const d=Ed(r,f)||{};return c?c(a):gt(a,n,p=>{let h=h2(d,l,p);return p===h&&typeof p=="string"&&(h=h2(d,l,`${t}${p==="default"?"":K0(p)}`,p)),s===!1?h:{[s]:h}})}function e(t){var n;const{sx:r,theme:i={}}=t||{};if(!r)return null;const a=(n=i.unstable_sxConfig)!=null?n:gd;function o(s){let f=s;if(typeof s=="function")f=s(i);else if(typeof s!="object")return s;if(!f)return null;const l=hP(i.breakpoints),c=Object.keys(l);let d=l;return Object.keys(f).forEach(E=>{const p=SV(f[E],i);if(p!=null)if(typeof p=="object")if(a[E])d=Hl(d,u(E,p,i,a));else{const h=gt({theme:i},p,g=>({[E]:g}));_V(h,p)?d[E]=e({sx:p,theme:i}):d=Hl(d,h)}else d=Hl(d,u(E,p,i,a))}),CP(c,d)}return Array.isArray(r)?r.map(o):o(r)}return e}const bP=TV();bP.filterProps=["sx"];const Ad=bP,PV=["breakpoints","palette","spacing","shape"];function bc(u={},...e){const{breakpoints:t={},palette:n={},spacing:r,shape:i={}}=u,a=L0(u,PV),o=LG(t),s=ZG(r);let f=ze({breakpoints:o,direction:"ltr",components:{},palette:N({mode:"light"},n),spacing:s,shape:N({},UG,i)},a);return f=e.reduce((l,c)=>ze(l,c),f),f.unstable_sxConfig=N({},gd,a==null?void 0:a.unstable_sxConfig),f.unstable_sx=function(c){return Ad({sx:c,theme:this})},f}function IV(u){return Object.keys(u).length===0}function gP(u=null){const e=w.useContext(dd);return!e||IV(e)?u:e}const OV=bc();function yd(u=OV){return gP(u)}function RV({styles:u,themeId:e,defaultTheme:t={}}){const n=yd(t),r=typeof u=="function"?u(e&&n[e]||n):u;return K.jsx(NG,{styles:r})}const NV=["sx"],MV=u=>{var e,t;const n={systemProps:{},otherProps:{}},r=(e=u==null||(t=u.theme)==null?void 0:t.unstable_sxConfig)!=null?e:gd;return Object.keys(u).forEach(i=>{r[i]?n.systemProps[i]=u[i]:n.otherProps[i]=u[i]}),n};function vd(u){const{sx:e}=u,t=L0(u,NV),{systemProps:n,otherProps:r}=MV(t);let i;return Array.isArray(e)?i=[n,...e]:typeof e=="function"?i=(...a)=>{const o=e(...a);return Hr(o)?N({},n,o):n}:i=N({},n,e),N({},r,{sx:i})}const jV=["className","component"];function zV(u={}){const{themeId:e,defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r}=u,i=pP("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(Ad);return w.forwardRef(function(s,f){const l=yd(t),c=vd(s),{className:d,component:E="div"}=c,p=L0(c,jV);return K.jsx(i,N({as:E,ref:f,className:H0(d,r?r(n):n),theme:e&&l[e]||l},p))})}const LV=["variant"];function YB(u){return u.length===0}function AP(u){const{variant:e}=u,t=L0(u,LV);let n=e||"";return Object.keys(t).sort().forEach(r=>{r==="color"?n+=YB(n)?u[r]:K0(u[r]):n+=`${YB(n)?r:K0(r)}${K0(u[r].toString())}`}),n}const $V=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function UV(u){return Object.keys(u).length===0}function WV(u){return typeof u=="string"&&u.charCodeAt(0)>96}const qV=(u,e)=>e.components&&e.components[u]&&e.components[u].styleOverrides?e.components[u].styleOverrides:null,C2=u=>{const e={};return u&&u.forEach(t=>{const n=AP(t.props);e[n]=t.style}),e},HV=(u,e)=>{let t=[];return e&&e.components&&e.components[u]&&e.components[u].variants&&(t=e.components[u].variants),C2(t)},m2=(u,e,t)=>{const{ownerState:n={}}=u,r=[];return t&&t.forEach(i=>{let a=!0;Object.keys(i.props).forEach(o=>{n[o]!==i.props[o]&&u[o]!==i.props[o]&&(a=!1)}),a&&r.push(e[AP(i.props)])}),r},GV=(u,e,t,n)=>{var r;const i=t==null||(r=t.components)==null||(r=r[n])==null?void 0:r.variants;return m2(u,e,i)};function Gl(u){return u!=="ownerState"&&u!=="theme"&&u!=="sx"&&u!=="as"}const VV=bc(),KV=u=>u&&u.charAt(0).toLowerCase()+u.slice(1);function g5({defaultTheme:u,theme:e,themeId:t}){return UV(e)?u:e[t]||e}function QV(u){return u?(e,t)=>t[u]:null}const XB=({styledArg:u,props:e,defaultTheme:t,themeId:n})=>{const r=u(N({},e,{theme:g5(N({},e,{defaultTheme:t,themeId:n}))}));let i;if(r&&r.variants&&(i=r.variants,delete r.variants),i){const a=m2(e,C2(i),i);return[r,...a]}return r};function yP(u={}){const{themeId:e,defaultTheme:t=VV,rootShouldForwardProp:n=Gl,slotShouldForwardProp:r=Gl}=u,i=a=>Ad(N({},a,{theme:g5(N({},a,{defaultTheme:t,themeId:e}))}));return i.__mui_systemSx=!0,(a,o={})=>{MG(a,y=>y.filter(B=>!(B!=null&&B.__mui_systemSx)));const{name:s,slot:f,skipVariantsResolver:l,skipSx:c,overridesResolver:d=QV(KV(f))}=o,E=L0(o,$V),p=l!==void 0?l:f&&f!=="Root"&&f!=="root"||!1,h=c||!1;let g,b=Gl;f==="Root"||f==="root"?b=n:f?b=r:WV(a)&&(b=void 0);const m=pP(a,N({shouldForwardProp:b,label:g},E)),A=(y,...B)=>{const v=B?B.map(x=>{if(typeof x=="function"&&x.__emotion_real!==x)return L=>XB({styledArg:x,props:L,defaultTheme:t,themeId:e});if(Hr(x)){let L=x,Y;return x&&x.variants&&(Y=x.variants,delete L.variants,L=G=>{let X=x;return m2(G,C2(Y),Y).forEach(O=>{X=ze(X,O)}),X}),L}return x}):[];let C=y;if(Hr(y)){let x;y&&y.variants&&(x=y.variants,delete C.variants,C=L=>{let Y=y;return m2(L,C2(x),x).forEach(X=>{Y=ze(Y,X)}),Y})}else typeof y=="function"&&y.__emotion_real!==y&&(C=x=>XB({styledArg:y,props:x,defaultTheme:t,themeId:e}));s&&d&&v.push(x=>{const L=g5(N({},x,{defaultTheme:t,themeId:e})),Y=qV(s,L);if(Y){const G={};return Object.entries(Y).forEach(([X,I])=>{G[X]=typeof I=="function"?I(N({},x,{theme:L})):I}),d(x,G)}return null}),s&&!p&&v.push(x=>{const L=g5(N({},x,{defaultTheme:t,themeId:e}));return GV(x,HV(s,L),L,s)}),h||v.push(i);const D=v.length-B.length;if(Array.isArray(y)&&D>0){const x=new Array(D).fill("");C=[...y,...x],C.raw=[...y.raw,...x]}const S=m(C,...v);return a.muiName&&(S.muiName=a.muiName),S};return m.withConfig&&(A.withConfig=m.withConfig),A}}const JV=yP(),vP=JV;function ZV(u){const{theme:e,name:t,props:n}=u;return!e||!e.components||!e.components[t]||!e.components[t].defaultProps?n:Ib(e.components[t].defaultProps,n)}function Vb({props:u,name:e,defaultTheme:t,themeId:n}){let r=yd(t);return n&&(r=r[n]||r),ZV({theme:r,name:e,props:u})}function Kb(u,e=0,t=1){return Math.min(Math.max(e,u),t)}function YV(u){u=u.slice(1);const e=new RegExp(`.{1,${u.length>=6?2:1}}`,"g");let t=u.match(e);return t&&t[0].length===1&&(t=t.map(n=>n+n)),t?`rgb${t.length===4?"a":""}(${t.map((n,r)=>r<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Wo(u){if(u.type)return u;if(u.charAt(0)==="#")return Wo(YV(u));const e=u.indexOf("("),t=u.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(t)===-1)throw new Error(pa(9,u));let n=u.substring(e+1,u.length-1),r;if(t==="color"){if(n=n.split(" "),r=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r)===-1)throw new Error(pa(10,r))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:t,values:n,colorSpace:r}}function Bd(u){const{type:e,colorSpace:t}=u;let{values:n}=u;return e.indexOf("rgb")!==-1?n=n.map((r,i)=>i<3?parseInt(r,10):r):e.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.indexOf("color")!==-1?n=`${t} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function XV(u){u=Wo(u);const{values:e}=u,t=e[0],n=e[1]/100,r=e[2]/100,i=n*Math.min(r,1-r),a=(f,l=(f+t/30)%12)=>r-i*Math.max(Math.min(l-3,9-l,1),-1);let o="rgb";const s=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return u.type==="hsla"&&(o+="a",s.push(e[3])),Bd({type:o,values:s})}function uF(u){u=Wo(u);let e=u.type==="hsl"||u.type==="hsla"?Wo(XV(u)).values:u.values;return e=e.map(t=>(u.type!=="color"&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function uK(u,e){const t=uF(u),n=uF(e);return(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}function sf(u,e){return u=Wo(u),e=Kb(e),(u.type==="rgb"||u.type==="hsl")&&(u.type+="a"),u.type==="color"?u.values[3]=`/${e}`:u.values[3]=e,Bd(u)}function eK(u,e){if(u=Wo(u),e=Kb(e),u.type.indexOf("hsl")!==-1)u.values[2]*=1-e;else if(u.type.indexOf("rgb")!==-1||u.type.indexOf("color")!==-1)for(let t=0;t<3;t+=1)u.values[t]*=1-e;return Bd(u)}function tK(u,e){if(u=Wo(u),e=Kb(e),u.type.indexOf("hsl")!==-1)u.values[2]+=(100-u.values[2])*e;else if(u.type.indexOf("rgb")!==-1)for(let t=0;t<3;t+=1)u.values[t]+=(255-u.values[t])*e;else if(u.type.indexOf("color")!==-1)for(let t=0;t<3;t+=1)u.values[t]+=(1-u.values[t])*e;return Bd(u)}const nK=w.createContext(null),BP=nK;function FP(){return w.useContext(BP)}const rK=typeof Symbol=="function"&&Symbol.for,iK=rK?Symbol.for("mui.nested"):"__THEME_NESTED__";function aK(u,e){return typeof e=="function"?e(u):N({},u,e)}function oK(u){const{children:e,theme:t}=u,n=FP(),r=w.useMemo(()=>{const i=n===null?t:aK(n,t);return i!=null&&(i[iK]=n!==null),i},[t,n]);return K.jsx(BP.Provider,{value:r,children:e})}const eF={};function tF(u,e,t,n=!1){return w.useMemo(()=>{const r=u&&e[u]||e;if(typeof t=="function"){const i=t(r),a=u?N({},e,{[u]:i}):i;return n?()=>a:a}return u?N({},e,{[u]:t}):N({},e,t)},[u,e,t,n])}function sK(u){const{children:e,theme:t,themeId:n}=u,r=gP(eF),i=FP()||eF,a=tF(n,r,t),o=tF(n,i,t,!0);return K.jsx(oK,{theme:o,children:K.jsx(dd.Provider,{value:a,children:e})})}const fK=["className","component","disableGutters","fixed","maxWidth","classes"],lK=bc(),cK=vP("div",{name:"MuiContainer",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[`maxWidth${K0(String(t.maxWidth))}`],t.fixed&&e.fixed,t.disableGutters&&e.disableGutters]}}),dK=u=>Vb({props:u,name:"MuiContainer",defaultTheme:lK}),EK=(u,e)=>{const t=s=>fu(e,s),{classes:n,fixed:r,disableGutters:i,maxWidth:a}=u,o={root:["root",a&&`maxWidth${K0(String(a))}`,r&&"fixed",i&&"disableGutters"]};return du(o,t,n)};function pK(u={}){const{createStyledComponent:e=cK,useThemeProps:t=dK,componentName:n="MuiContainer"}=u,r=e(({theme:a,ownerState:o})=>N({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!o.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:o})=>o.fixed&&Object.keys(a.breakpoints.values).reduce((s,f)=>{const l=f,c=a.breakpoints.values[l];return c!==0&&(s[a.breakpoints.up(l)]={maxWidth:`${c}${a.breakpoints.unit}`}),s},{}),({theme:a,ownerState:o})=>N({},o.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},o.maxWidth&&o.maxWidth!=="xs"&&{[a.breakpoints.up(o.maxWidth)]:{maxWidth:`${a.breakpoints.values[o.maxWidth]}${a.breakpoints.unit}`}}));return w.forwardRef(function(o,s){const f=t(o),{className:l,component:c="div",disableGutters:d=!1,fixed:E=!1,maxWidth:p="lg"}=f,h=L0(f,fK),g=N({},f,{component:c,disableGutters:d,fixed:E,maxWidth:p}),b=EK(g,n);return K.jsx(r,N({as:c,ownerState:g,className:H0(b.root,l),ref:s},h))})}const hK=["component","direction","spacing","divider","children","className","useFlexGap"],CK=bc(),mK=vP("div",{name:"MuiStack",slot:"Root",overridesResolver:(u,e)=>e.root});function bK(u){return Vb({props:u,name:"MuiStack",defaultTheme:CK})}function gK(u,e){const t=w.Children.toArray(u).filter(Boolean);return t.reduce((n,r,i)=>(n.push(r),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[u],yK=({ownerState:u,theme:e})=>{let t=N({display:"flex",flexDirection:"column"},gt({theme:e},_o({values:u.direction,breakpoints:e.breakpoints.values}),n=>({flexDirection:n})));if(u.spacing){const n=Hb(e),r=Object.keys(e.breakpoints.values).reduce((s,f)=>((typeof u.spacing=="object"&&u.spacing[f]!=null||typeof u.direction=="object"&&u.direction[f]!=null)&&(s[f]=!0),s),{}),i=_o({values:u.direction,base:r}),a=_o({values:u.spacing,base:r});typeof i=="object"&&Object.keys(i).forEach((s,f,l)=>{if(!i[s]){const d=f>0?i[l[f-1]]:"column";i[s]=d}}),t=ze(t,gt({theme:e},a,(s,f)=>u.useFlexGap?{gap:Uo(n,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${AK(f?i[f]:u.direction)}`]:Uo(n,s)}}))}return t=WG(e.breakpoints,t),t};function DP(u={}){const{createStyledComponent:e=mK,useThemeProps:t=bK,componentName:n="MuiStack"}=u,r=()=>du({root:["root"]},s=>fu(n,s),{}),i=e(yK);return w.forwardRef(function(s,f){const l=t(s),c=vd(l),{component:d="div",direction:E="column",spacing:p=0,divider:h,children:g,className:b,useFlexGap:m=!1}=c,A=L0(c,hK),y={direction:E,spacing:p,useFlexGap:m},B=r();return K.jsx(i,N({as:d,ownerState:y,ref:f,className:H0(B.root,b)},A,{children:h?gK(g,h):g}))})}const vK=DP(),BK=vK;function FK(u,e){return N({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},e)}const DK={black:"#000",white:"#fff"},B1=DK,wK={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},xK=wK,kK={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ds=kK,_K={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},La=_K,SK={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},il=SK,TK={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},ws=TK,PK={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},xs=PK,IK={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},ks=IK,OK=["mode","contrastThreshold","tonalOffset"],nF={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:B1.white,default:B1.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},A8={text:{primary:B1.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:B1.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function rF(u,e,t,n){const r=n.light||n,i=n.dark||n*1.5;u[e]||(u.hasOwnProperty(t)?u[e]=u[t]:e==="light"?u.light=tK(u.main,r):e==="dark"&&(u.dark=eK(u.main,i)))}function RK(u="light"){return u==="dark"?{main:ws[200],light:ws[50],dark:ws[400]}:{main:ws[700],light:ws[400],dark:ws[800]}}function NK(u="light"){return u==="dark"?{main:Ds[200],light:Ds[50],dark:Ds[400]}:{main:Ds[500],light:Ds[300],dark:Ds[700]}}function MK(u="light"){return u==="dark"?{main:La[500],light:La[300],dark:La[700]}:{main:La[700],light:La[400],dark:La[800]}}function jK(u="light"){return u==="dark"?{main:xs[400],light:xs[300],dark:xs[700]}:{main:xs[700],light:xs[500],dark:xs[900]}}function zK(u="light"){return u==="dark"?{main:ks[400],light:ks[300],dark:ks[700]}:{main:ks[800],light:ks[500],dark:ks[900]}}function LK(u="light"){return u==="dark"?{main:il[400],light:il[300],dark:il[700]}:{main:"#ed6c02",light:il[500],dark:il[900]}}function $K(u){const{mode:e="light",contrastThreshold:t=3,tonalOffset:n=.2}=u,r=L0(u,OK),i=u.primary||RK(e),a=u.secondary||NK(e),o=u.error||MK(e),s=u.info||jK(e),f=u.success||zK(e),l=u.warning||LK(e);function c(h){return uK(h,A8.text.primary)>=t?A8.text.primary:nF.text.primary}const d=({color:h,name:g,mainShade:b=500,lightShade:m=300,darkShade:A=700})=>{if(h=N({},h),!h.main&&h[b]&&(h.main=h[b]),!h.hasOwnProperty("main"))throw new Error(pa(11,g?` (${g})`:"",b));if(typeof h.main!="string")throw new Error(pa(12,g?` (${g})`:"",JSON.stringify(h.main)));return rF(h,"light",m,n),rF(h,"dark",A,n),h.contrastText||(h.contrastText=c(h.main)),h},E={dark:A8,light:nF};return ze(N({common:N({},B1),mode:e,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:o,name:"error"}),warning:d({color:l,name:"warning"}),info:d({color:s,name:"info"}),success:d({color:f,name:"success"}),grey:xK,contrastThreshold:t,getContrastText:c,augmentColor:d,tonalOffset:n},E[e]),r)}const UK=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function WK(u){return Math.round(u*1e5)/1e5}const iF={textTransform:"uppercase"},aF='"Roboto", "Helvetica", "Arial", sans-serif';function qK(u,e){const t=typeof e=="function"?e(u):e,{fontFamily:n=aF,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:f=16,allVariants:l,pxToRem:c}=t,d=L0(t,UK),E=r/14,p=c||(b=>`${b/f*E}rem`),h=(b,m,A,y,B)=>N({fontFamily:n,fontWeight:b,fontSize:p(m),lineHeight:A},n===aF?{letterSpacing:`${WK(y/m)}em`}:{},B,l),g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(o,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(o,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(o,14,1.75,.4,iF),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,iF),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ze(N({htmlFontSize:f,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s},g),d,{clone:!1})}const HK=.2,GK=.14,VK=.12;function xu(...u){return[`${u[0]}px ${u[1]}px ${u[2]}px ${u[3]}px rgba(0,0,0,${HK})`,`${u[4]}px ${u[5]}px ${u[6]}px ${u[7]}px rgba(0,0,0,${GK})`,`${u[8]}px ${u[9]}px ${u[10]}px ${u[11]}px rgba(0,0,0,${VK})`].join(",")}const KK=["none",xu(0,2,1,-1,0,1,1,0,0,1,3,0),xu(0,3,1,-2,0,2,2,0,0,1,5,0),xu(0,3,3,-2,0,3,4,0,0,1,8,0),xu(0,2,4,-1,0,4,5,0,0,1,10,0),xu(0,3,5,-1,0,5,8,0,0,1,14,0),xu(0,3,5,-1,0,6,10,0,0,1,18,0),xu(0,4,5,-2,0,7,10,1,0,2,16,1),xu(0,5,5,-3,0,8,10,1,0,3,14,2),xu(0,5,6,-3,0,9,12,1,0,3,16,2),xu(0,6,6,-3,0,10,14,1,0,4,18,3),xu(0,6,7,-4,0,11,15,1,0,4,20,3),xu(0,7,8,-4,0,12,17,2,0,5,22,4),xu(0,7,8,-4,0,13,19,2,0,5,24,4),xu(0,7,9,-4,0,14,21,2,0,5,26,4),xu(0,8,9,-5,0,15,22,2,0,6,28,5),xu(0,8,10,-5,0,16,24,2,0,6,30,5),xu(0,8,11,-5,0,17,26,2,0,6,32,5),xu(0,9,11,-5,0,18,28,2,0,7,34,6),xu(0,9,12,-6,0,19,29,2,0,7,36,6),xu(0,10,13,-6,0,20,31,3,0,8,38,7),xu(0,10,13,-6,0,21,33,3,0,8,40,7),xu(0,10,14,-6,0,22,35,3,0,8,42,7),xu(0,11,14,-7,0,23,36,3,0,9,44,8),xu(0,11,15,-7,0,24,38,3,0,9,46,8)],QK=KK,JK=["duration","easing","delay"],ZK={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},YK={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function oF(u){return`${Math.round(u)}ms`}function XK(u){if(!u)return 0;const e=u/36;return Math.round((4+15*e**.25+e/5)*10)}function uQ(u){const e=N({},ZK,u.easing),t=N({},YK,u.duration);return N({getAutoHeightDuration:XK,create:(r=["all"],i={})=>{const{duration:a=t.standard,easing:o=e.easeInOut,delay:s=0}=i;return L0(i,JK),(Array.isArray(r)?r:[r]).map(f=>`${f} ${typeof a=="string"?a:oF(a)} ${o} ${typeof s=="string"?s:oF(s)}`).join(",")}},u,{easing:e,duration:t})}const eQ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},tQ=eQ,nQ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Qb(u={},...e){const{mixins:t={},palette:n={},transitions:r={},typography:i={}}=u,a=L0(u,nQ);if(u.vars)throw new Error(pa(18));const o=$K(n),s=bc(u);let f=ze(s,{mixins:FK(s.breakpoints,t),palette:o,shadows:QK.slice(),typography:qK(o,i),transitions:uQ(r),zIndex:N({},tQ)});return f=ze(f,a),f=e.reduce((l,c)=>ze(l,c),f),f.unstable_sxConfig=N({},gd,a==null?void 0:a.unstable_sxConfig),f.unstable_sx=function(c){return Ad({sx:c,theme:this})},f}const rQ=Qb(),Fd=rQ,qo="$$material",Vn=u=>Gl(u)&&u!=="classes",iQ=Gl,aQ=yP({themeId:qo,defaultTheme:Fd,rootShouldForwardProp:Vn}),$0=aQ;function pu({props:u,name:e}){return Vb({props:u,name:e,defaultTheme:Fd,themeId:qo})}function W7(u,e){return W7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},W7(u,e)}function wP(u,e){u.prototype=Object.create(e.prototype),u.prototype.constructor=u,W7(u,e)}const sF={disabled:!1},b2=F.createContext(null);var oQ=function(e){return e.scrollTop},vl="unmounted",$a="exited",Ua="entering",js="entered",q7="exiting",fi=function(u){wP(e,u);function e(n,r){var i;i=u.call(this,n,r)||this;var a=r,o=a&&!a.isMounting?n.enter:n.appear,s;return i.appearStatus=null,n.in?o?(s=$a,i.appearStatus=Ua):s=js:n.unmountOnExit||n.mountOnEnter?s=vl:s=$a,i.state={status:s},i.nextCallback=null,i}e.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===vl?{status:$a}:null};var t=e.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(r){var i=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==Ua&&a!==js&&(i=Ua):(a===Ua||a===js)&&(i=q7)}this.updateStatus(!1,i)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var r=this.props.timeout,i,a,o;return i=a=o=r,r!=null&&typeof r!="number"&&(i=r.exit,a=r.enter,o=r.appear!==void 0?r.appear:a),{exit:i,enter:a,appear:o}},t.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===Ua){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:v6.findDOMNode(this);a&&oQ(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$a&&this.setState({status:vl})},t.performEnter=function(r){var i=this,a=this.props.enter,o=this.context?this.context.isMounting:r,s=this.props.nodeRef?[o]:[v6.findDOMNode(this),o],f=s[0],l=s[1],c=this.getTimeouts(),d=o?c.appear:c.enter;if(!r&&!a||sF.disabled){this.safeSetState({status:js},function(){i.props.onEntered(f)});return}this.props.onEnter(f,l),this.safeSetState({status:Ua},function(){i.props.onEntering(f,l),i.onTransitionEnd(d,function(){i.safeSetState({status:js},function(){i.props.onEntered(f,l)})})})},t.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts(),o=this.props.nodeRef?void 0:v6.findDOMNode(this);if(!i||sF.disabled){this.safeSetState({status:$a},function(){r.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:q7},function(){r.props.onExiting(o),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:$a},function(){r.props.onExited(o)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},t.setNextCallback=function(r){var i=this,a=!0;return this.nextCallback=function(o){a&&(a=!1,i.nextCallback=null,r(o))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},t.onTransitionEnd=function(r,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:v6.findDOMNode(this),o=r==null&&!this.props.addEndListener;if(!a||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],f=s[0],l=s[1];this.props.addEndListener(f,l)}r!=null&&setTimeout(this.nextCallback,r)},t.render=function(){var r=this.state.status;if(r===vl)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var o=L0(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return F.createElement(b2.Provider,{value:null},typeof a=="function"?a(r,o):F.cloneElement(F.Children.only(a),o))},e}(F.Component);fi.contextType=b2;fi.propTypes={};function _s(){}fi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_s,onEntering:_s,onEntered:_s,onExit:_s,onExiting:_s,onExited:_s};fi.UNMOUNTED=vl;fi.EXITED=$a;fi.ENTERING=Ua;fi.ENTERED=js;fi.EXITING=q7;const xP=fi;function sQ(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function Jb(u,e){var t=function(i){return e&&w.isValidElement(i)?e(i):i},n=Object.create(null);return u&&w.Children.map(u,function(r){return r}).forEach(function(r){n[r.key]=t(r)}),n}function fQ(u,e){u=u||{},e=e||{};function t(l){return l in e?e[l]:u[l]}var n=Object.create(null),r=[];for(var i in u)i in e?r.length&&(n[i]=r,r=[]):r.push(i);var a,o={};for(var s in e){if(n[s])for(a=0;a{if(!o&&s!=null){const h=setTimeout(s,f);return()=>{clearTimeout(h)}}},[s,o,f]),K.jsx("span",{className:d,style:E,children:K.jsx("span",{className:p})})}const CQ=Eu("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),nn=CQ,mQ=["center","classes","className"];let Dd=u=>u,fF,lF,cF,dF;const H7=550,bQ=80,gQ=$b(fF||(fF=Dd` + */var be=typeof Symbol=="function"&&Symbol.for,jb=be?Symbol.for("react.element"):60103,zb=be?Symbol.for("react.portal"):60106,nd=be?Symbol.for("react.fragment"):60107,rd=be?Symbol.for("react.strict_mode"):60108,id=be?Symbol.for("react.profiler"):60114,ad=be?Symbol.for("react.provider"):60109,od=be?Symbol.for("react.context"):60110,Lb=be?Symbol.for("react.async_mode"):60111,sd=be?Symbol.for("react.concurrent_mode"):60111,fd=be?Symbol.for("react.forward_ref"):60112,ld=be?Symbol.for("react.suspense"):60113,cG=be?Symbol.for("react.suspense_list"):60120,cd=be?Symbol.for("react.memo"):60115,dd=be?Symbol.for("react.lazy"):60116,dG=be?Symbol.for("react.block"):60121,EG=be?Symbol.for("react.fundamental"):60117,pG=be?Symbol.for("react.responder"):60118,hG=be?Symbol.for("react.scope"):60119;function Ht(u){if(typeof u=="object"&&u!==null){var e=u.$$typeof;switch(e){case jb:switch(u=u.type,u){case Lb:case sd:case nd:case id:case rd:case ld:return u;default:switch(u=u&&u.$$typeof,u){case od:case fd:case dd:case cd:case ad:return u;default:return e}}case zb:return e}}}function iP(u){return Ht(u)===sd}mu.AsyncMode=Lb;mu.ConcurrentMode=sd;mu.ContextConsumer=od;mu.ContextProvider=ad;mu.Element=jb;mu.ForwardRef=fd;mu.Fragment=nd;mu.Lazy=dd;mu.Memo=cd;mu.Portal=zb;mu.Profiler=id;mu.StrictMode=rd;mu.Suspense=ld;mu.isAsyncMode=function(u){return iP(u)||Ht(u)===Lb};mu.isConcurrentMode=iP;mu.isContextConsumer=function(u){return Ht(u)===od};mu.isContextProvider=function(u){return Ht(u)===ad};mu.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===jb};mu.isForwardRef=function(u){return Ht(u)===fd};mu.isFragment=function(u){return Ht(u)===nd};mu.isLazy=function(u){return Ht(u)===dd};mu.isMemo=function(u){return Ht(u)===cd};mu.isPortal=function(u){return Ht(u)===zb};mu.isProfiler=function(u){return Ht(u)===id};mu.isStrictMode=function(u){return Ht(u)===rd};mu.isSuspense=function(u){return Ht(u)===ld};mu.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===nd||u===sd||u===id||u===rd||u===ld||u===cG||typeof u=="object"&&u!==null&&(u.$$typeof===dd||u.$$typeof===cd||u.$$typeof===ad||u.$$typeof===od||u.$$typeof===fd||u.$$typeof===EG||u.$$typeof===pG||u.$$typeof===hG||u.$$typeof===dG)};mu.typeOf=Ht;rP.exports=mu;var CG=rP.exports,aP=CG,mG={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},bG={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},oP={};oP[aP.ForwardRef]=mG;oP[aP.Memo]=bG;var gG=!0;function AG(u,e,t){var n="";return t.split(" ").forEach(function(r){u[r]!==void 0?e.push(u[r]+";"):n+=r+" "}),n}var sP=function(e,t,n){var r=e.key+"-"+t.name;(n===!1||gG===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},fP=function(e,t,n){sP(e,t,n);var r=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};function yG(u){for(var e=0,t,n=0,r=u.length;r>=4;++n,r-=4)t=u.charCodeAt(n)&255|(u.charCodeAt(++n)&255)<<8|(u.charCodeAt(++n)&255)<<16|(u.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,e=(t&65535)*1540483477+((t>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(r){case 3:e^=(u.charCodeAt(n+2)&255)<<16;case 2:e^=(u.charCodeAt(n+1)&255)<<8;case 1:e^=u.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var vG={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},BG=/[A-Z]|^ms/g,FG=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lP=function(e){return e.charCodeAt(1)===45},HB=function(e){return e!=null&&typeof e!="boolean"},A8=JT(function(u){return lP(u)?u:u.replace(BG,"-$&").toLowerCase()}),GB=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(FG,function(n,r,i){return sr={name:r,styles:i,next:sr},r})}return vG[e]!==1&&!lP(e)&&typeof t=="number"&&t!==0?t+"px":t};function B1(u,e,t){if(t==null)return"";if(t.__emotion_styles!==void 0)return t;switch(typeof t){case"boolean":return"";case"object":{if(t.anim===1)return sr={name:t.name,styles:t.styles,next:sr},t.name;if(t.styles!==void 0){var n=t.next;if(n!==void 0)for(;n!==void 0;)sr={name:n.name,styles:n.styles,next:sr},n=n.next;var r=t.styles+";";return r}return DG(u,e,t)}case"function":{if(u!==void 0){var i=sr,a=t(u);return sr=i,B1(u,e,a)}break}}if(e==null)return t;var o=e[t];return o!==void 0?o:t}function DG(u,e,t){var n="";if(Array.isArray(t))for(var r=0;r96?SG:TG},JB=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(a){return e.__emotion_forwardProp(a)&&i(a)}:i}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r},PG=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return sP(t,n,r),xG(function(){return fP(t,n,r)}),null},IG=function u(e,t){var n=e.__emotion_real===e,r=n&&e.__emotion_base||e,i,a;t!==void 0&&(i=t.label,a=t.target);var o=JB(e,t,n),s=o||QB(r),f=!s("as");return function(){var l=arguments,c=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(i!==void 0&&c.push("label:"+i+";"),l[0]==null||l[0].raw===void 0)c.push.apply(c,l);else{c.push(l[0][0]);for(var d=l.length,E=1;Ee(RG(r)?t:r):e;return V.jsx(kG,{styles:n})}function pP(u,e){return W7(u,e)}const MG=(u,e)=>{Array.isArray(u.__emotion_styles)&&(u.__emotion_styles=e(u.__emotion_styles))},jG=["values","unit","step"],zG=u=>{const e=Object.keys(u).map(t=>({key:t,val:u[t]}))||[];return e.sort((t,n)=>t.val-n.val),e.reduce((t,n)=>N({},t,{[n.key]:n.val}),{})};function LG(u){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:n=5}=u,r=L0(u,jG),i=zG(e),a=Object.keys(i);function o(d){return`@media (min-width:${typeof e[d]=="number"?e[d]:d}${t})`}function s(d){return`@media (max-width:${(typeof e[d]=="number"?e[d]:d)-n/100}${t})`}function f(d,E){const p=a.indexOf(E);return`@media (min-width:${typeof e[d]=="number"?e[d]:d}${t}) and (max-width:${(p!==-1&&typeof e[a[p]]=="number"?e[a[p]]:E)-n/100}${t})`}function l(d){return a.indexOf(d)+1`@media (min-width:${Wb[u]}px)`};function gt(u,e,t){const n=u.theme||{};if(Array.isArray(e)){const i=n.breakpoints||ZB;return e.reduce((a,o,s)=>(a[i.up(i.keys[s])]=t(e[s]),a),{})}if(typeof e=="object"){const i=n.breakpoints||ZB;return Object.keys(e).reduce((a,o)=>{if(Object.keys(i.values||Wb).indexOf(o)!==-1){const s=i.up(o);a[s]=t(e[o],o)}else{const s=o;a[s]=e[s]}return a},{})}return t(e)}function hP(u={}){var e;return((e=u.keys)==null?void 0:e.reduce((n,r)=>{const i=u.up(r);return n[i]={},n},{}))||{}}function CP(u,e){return u.reduce((t,n)=>{const r=t[n];return(!r||Object.keys(r).length===0)&&delete t[n],t},e)}function WG(u,...e){const t=hP(u),n=[t,...e].reduce((r,i)=>ze(r,i),{});return CP(Object.keys(t),n)}function qG(u,e){if(typeof u!="object")return{};const t={},n=Object.keys(e);return Array.isArray(u)?n.forEach((r,i)=>{i{u[r]!=null&&(t[r]=!0)}),t}function So({values:u,breakpoints:e,base:t}){const n=t||qG(u,e),r=Object.keys(n);if(r.length===0)return u;let i;return r.reduce((a,o,s)=>(Array.isArray(u)?(a[o]=u[s]!=null?u[s]:u[i],i=s):typeof u=="object"?(a[o]=u[o]!=null?u[o]:u[i],i=o):a[o]=u,a),{})}function pd(u,e,t=!0){if(!e||typeof e!="string")return null;if(u&&u.vars&&t){const n=`vars.${e}`.split(".").reduce((r,i)=>r&&r[i]?r[i]:null,u);if(n!=null)return n}return e.split(".").reduce((n,r)=>n&&n[r]!=null?n[r]:null,u)}function C2(u,e,t,n=t){let r;return typeof u=="function"?r=u(t):Array.isArray(u)?r=u[t]||n:r=pd(u,t)||n,e&&(r=e(r,n,u)),r}function Qu(u){const{prop:e,cssProperty:t=u.prop,themeKey:n,transform:r}=u,i=a=>{if(a[e]==null)return null;const o=a[e],s=a.theme,f=pd(s,n)||{};return gt(a,o,c=>{let d=C2(f,r,c);return c===d&&typeof c=="string"&&(d=C2(f,r,`${e}${c==="default"?"":K0(c)}`,c)),t===!1?d:{[t]:d}})};return i.propTypes={},i.filterProps=[e],i}function HG(u){const e={};return t=>(e[t]===void 0&&(e[t]=u(t)),e[t])}const GG={m:"margin",p:"padding"},VG={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},YB={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},KG=HG(u=>{if(u.length>2)if(YB[u])u=YB[u];else return[u];const[e,t]=u.split(""),n=GG[e],r=VG[t]||"";return Array.isArray(r)?r.map(i=>n+i):[n+r]}),qb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Hb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...qb,...Hb];function bc(u,e,t,n){var r;const i=(r=pd(u,e,!1))!=null?r:t;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function Gb(u){return bc(u,"spacing",8)}function Wo(u,e){if(typeof e=="string"||e==null)return e;const t=Math.abs(e),n=u(t);return e>=0?n:typeof n=="number"?-n:`-${n}`}function QG(u,e){return t=>u.reduce((n,r)=>(n[r]=Wo(e,t),n),{})}function JG(u,e,t,n){if(e.indexOf(t)===-1)return null;const r=KG(t),i=QG(r,n),a=u[t];return gt(u,a,i)}function mP(u,e){const t=Gb(u.theme);return Object.keys(u).map(n=>JG(u,e,n,t)).reduce(Hl,{})}function Lu(u){return mP(u,qb)}Lu.propTypes={};Lu.filterProps=qb;function $u(u){return mP(u,Hb)}$u.propTypes={};$u.filterProps=Hb;function ZG(u=8){if(u.mui)return u;const e=Gb({spacing:u}),t=(...n)=>(n.length===0?[1]:n).map(i=>{const a=e(i);return typeof a=="number"?`${a}px`:a}).join(" ");return t.mui=!0,t}function hd(...u){const e=u.reduce((n,r)=>(r.filterProps.forEach(i=>{n[i]=r}),n),{}),t=n=>Object.keys(n).reduce((r,i)=>e[i]?Hl(r,e[i](n)):r,{});return t.propTypes={},t.filterProps=u.reduce((n,r)=>n.concat(r.filterProps),[]),t}function on(u){return typeof u!="number"?u:`${u}px solid`}function bn(u,e){return Qu({prop:u,themeKey:"borders",transform:e})}const YG=bn("border",on),XG=bn("borderTop",on),uV=bn("borderRight",on),eV=bn("borderBottom",on),tV=bn("borderLeft",on),nV=bn("borderColor"),rV=bn("borderTopColor"),iV=bn("borderRightColor"),aV=bn("borderBottomColor"),oV=bn("borderLeftColor"),sV=bn("outline",on),fV=bn("outlineColor"),Cd=u=>{if(u.borderRadius!==void 0&&u.borderRadius!==null){const e=bc(u.theme,"shape.borderRadius",4),t=n=>({borderRadius:Wo(e,n)});return gt(u,u.borderRadius,t)}return null};Cd.propTypes={};Cd.filterProps=["borderRadius"];hd(YG,XG,uV,eV,tV,nV,rV,iV,aV,oV,Cd,sV,fV);const md=u=>{if(u.gap!==void 0&&u.gap!==null){const e=bc(u.theme,"spacing",8),t=n=>({gap:Wo(e,n)});return gt(u,u.gap,t)}return null};md.propTypes={};md.filterProps=["gap"];const bd=u=>{if(u.columnGap!==void 0&&u.columnGap!==null){const e=bc(u.theme,"spacing",8),t=n=>({columnGap:Wo(e,n)});return gt(u,u.columnGap,t)}return null};bd.propTypes={};bd.filterProps=["columnGap"];const gd=u=>{if(u.rowGap!==void 0&&u.rowGap!==null){const e=bc(u.theme,"spacing",8),t=n=>({rowGap:Wo(e,n)});return gt(u,u.rowGap,t)}return null};gd.propTypes={};gd.filterProps=["rowGap"];const lV=Qu({prop:"gridColumn"}),cV=Qu({prop:"gridRow"}),dV=Qu({prop:"gridAutoFlow"}),EV=Qu({prop:"gridAutoColumns"}),pV=Qu({prop:"gridAutoRows"}),hV=Qu({prop:"gridTemplateColumns"}),CV=Qu({prop:"gridTemplateRows"}),mV=Qu({prop:"gridTemplateAreas"}),bV=Qu({prop:"gridArea"});hd(md,bd,gd,lV,cV,dV,EV,pV,hV,CV,mV,bV);function xf(u,e){return e==="grey"?e:u}const gV=Qu({prop:"color",themeKey:"palette",transform:xf}),AV=Qu({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xf}),yV=Qu({prop:"backgroundColor",themeKey:"palette",transform:xf});hd(gV,AV,yV);function Ot(u){return u<=1&&u!==0?`${u*100}%`:u}const vV=Qu({prop:"width",transform:Ot}),Vb=u=>{if(u.maxWidth!==void 0&&u.maxWidth!==null){const e=t=>{var n,r;const i=((n=u.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[t])||Wb[t];return i?((r=u.theme)==null||(r=r.breakpoints)==null?void 0:r.unit)!=="px"?{maxWidth:`${i}${u.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Ot(t)}};return gt(u,u.maxWidth,e)}return null};Vb.filterProps=["maxWidth"];const BV=Qu({prop:"minWidth",transform:Ot}),FV=Qu({prop:"height",transform:Ot}),DV=Qu({prop:"maxHeight",transform:Ot}),wV=Qu({prop:"minHeight",transform:Ot});Qu({prop:"size",cssProperty:"width",transform:Ot});Qu({prop:"size",cssProperty:"height",transform:Ot});const xV=Qu({prop:"boxSizing"});hd(vV,Vb,BV,FV,DV,wV,xV);const kV={border:{themeKey:"borders",transform:on},borderTop:{themeKey:"borders",transform:on},borderRight:{themeKey:"borders",transform:on},borderBottom:{themeKey:"borders",transform:on},borderLeft:{themeKey:"borders",transform:on},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:on},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Cd},color:{themeKey:"palette",transform:xf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xf},backgroundColor:{themeKey:"palette",transform:xf},p:{style:$u},pt:{style:$u},pr:{style:$u},pb:{style:$u},pl:{style:$u},px:{style:$u},py:{style:$u},padding:{style:$u},paddingTop:{style:$u},paddingRight:{style:$u},paddingBottom:{style:$u},paddingLeft:{style:$u},paddingX:{style:$u},paddingY:{style:$u},paddingInline:{style:$u},paddingInlineStart:{style:$u},paddingInlineEnd:{style:$u},paddingBlock:{style:$u},paddingBlockStart:{style:$u},paddingBlockEnd:{style:$u},m:{style:Lu},mt:{style:Lu},mr:{style:Lu},mb:{style:Lu},ml:{style:Lu},mx:{style:Lu},my:{style:Lu},margin:{style:Lu},marginTop:{style:Lu},marginRight:{style:Lu},marginBottom:{style:Lu},marginLeft:{style:Lu},marginX:{style:Lu},marginY:{style:Lu},marginInline:{style:Lu},marginInlineStart:{style:Lu},marginInlineEnd:{style:Lu},marginBlock:{style:Lu},marginBlockStart:{style:Lu},marginBlockEnd:{style:Lu},displayPrint:{cssProperty:!1,transform:u=>({"@media print":{display:u}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:md},rowGap:{style:gd},columnGap:{style:bd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ot},maxWidth:{style:Vb},minWidth:{transform:Ot},height:{transform:Ot},maxHeight:{transform:Ot},minHeight:{transform:Ot},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Ad=kV;function _V(...u){const e=u.reduce((n,r)=>n.concat(Object.keys(r)),[]),t=new Set(e);return u.every(n=>t.size===Object.keys(n).length)}function SV(u,e){return typeof u=="function"?u(e):u}function TV(){function u(t,n,r,i){const a={[t]:n,theme:r},o=i[t];if(!o)return{[t]:n};const{cssProperty:s=t,themeKey:f,transform:l,style:c}=o;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[t]:n};const d=pd(r,f)||{};return c?c(a):gt(a,n,p=>{let h=C2(d,l,p);return p===h&&typeof p=="string"&&(h=C2(d,l,`${t}${p==="default"?"":K0(p)}`,p)),s===!1?h:{[s]:h}})}function e(t){var n;const{sx:r,theme:i={}}=t||{};if(!r)return null;const a=(n=i.unstable_sxConfig)!=null?n:Ad;function o(s){let f=s;if(typeof s=="function")f=s(i);else if(typeof s!="object")return s;if(!f)return null;const l=hP(i.breakpoints),c=Object.keys(l);let d=l;return Object.keys(f).forEach(E=>{const p=SV(f[E],i);if(p!=null)if(typeof p=="object")if(a[E])d=Hl(d,u(E,p,i,a));else{const h=gt({theme:i},p,g=>({[E]:g}));_V(h,p)?d[E]=e({sx:p,theme:i}):d=Hl(d,h)}else d=Hl(d,u(E,p,i,a))}),CP(c,d)}return Array.isArray(r)?r.map(o):o(r)}return e}const bP=TV();bP.filterProps=["sx"];const yd=bP,PV=["breakpoints","palette","spacing","shape"];function gc(u={},...e){const{breakpoints:t={},palette:n={},spacing:r,shape:i={}}=u,a=L0(u,PV),o=LG(t),s=ZG(r);let f=ze({breakpoints:o,direction:"ltr",components:{},palette:N({mode:"light"},n),spacing:s,shape:N({},UG,i)},a);return f=e.reduce((l,c)=>ze(l,c),f),f.unstable_sxConfig=N({},Ad,a==null?void 0:a.unstable_sxConfig),f.unstable_sx=function(c){return yd({sx:c,theme:this})},f}function IV(u){return Object.keys(u).length===0}function gP(u=null){const e=w.useContext(Ed);return!e||IV(e)?u:e}const OV=gc();function vd(u=OV){return gP(u)}function RV({styles:u,themeId:e,defaultTheme:t={}}){const n=vd(t),r=typeof u=="function"?u(e&&n[e]||n):u;return V.jsx(NG,{styles:r})}const NV=["sx"],MV=u=>{var e,t;const n={systemProps:{},otherProps:{}},r=(e=u==null||(t=u.theme)==null?void 0:t.unstable_sxConfig)!=null?e:Ad;return Object.keys(u).forEach(i=>{r[i]?n.systemProps[i]=u[i]:n.otherProps[i]=u[i]}),n};function Bd(u){const{sx:e}=u,t=L0(u,NV),{systemProps:n,otherProps:r}=MV(t);let i;return Array.isArray(e)?i=[n,...e]:typeof e=="function"?i=(...a)=>{const o=e(...a);return Hr(o)?N({},n,o):n}:i=N({},n,e),N({},r,{sx:i})}const jV=["className","component"];function zV(u={}){const{themeId:e,defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r}=u,i=pP("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(yd);return w.forwardRef(function(s,f){const l=vd(t),c=Bd(s),{className:d,component:E="div"}=c,p=L0(c,jV);return V.jsx(i,N({as:E,ref:f,className:H0(d,r?r(n):n),theme:e&&l[e]||l},p))})}const LV=["variant"];function XB(u){return u.length===0}function AP(u){const{variant:e}=u,t=L0(u,LV);let n=e||"";return Object.keys(t).sort().forEach(r=>{r==="color"?n+=XB(n)?u[r]:K0(u[r]):n+=`${XB(n)?r:K0(r)}${K0(u[r].toString())}`}),n}const $V=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function UV(u){return Object.keys(u).length===0}function WV(u){return typeof u=="string"&&u.charCodeAt(0)>96}const qV=(u,e)=>e.components&&e.components[u]&&e.components[u].styleOverrides?e.components[u].styleOverrides:null,m2=u=>{const e={};return u&&u.forEach(t=>{const n=AP(t.props);e[n]=t.style}),e},HV=(u,e)=>{let t=[];return e&&e.components&&e.components[u]&&e.components[u].variants&&(t=e.components[u].variants),m2(t)},b2=(u,e,t)=>{const{ownerState:n={}}=u,r=[];return t&&t.forEach(i=>{let a=!0;Object.keys(i.props).forEach(o=>{n[o]!==i.props[o]&&u[o]!==i.props[o]&&(a=!1)}),a&&r.push(e[AP(i.props)])}),r},GV=(u,e,t,n)=>{var r;const i=t==null||(r=t.components)==null||(r=r[n])==null?void 0:r.variants;return b2(u,e,i)};function Gl(u){return u!=="ownerState"&&u!=="theme"&&u!=="sx"&&u!=="as"}const VV=gc(),KV=u=>u&&u.charAt(0).toLowerCase()+u.slice(1);function A5({defaultTheme:u,theme:e,themeId:t}){return UV(e)?u:e[t]||e}function QV(u){return u?(e,t)=>t[u]:null}const uF=({styledArg:u,props:e,defaultTheme:t,themeId:n})=>{const r=u(N({},e,{theme:A5(N({},e,{defaultTheme:t,themeId:n}))}));let i;if(r&&r.variants&&(i=r.variants,delete r.variants),i){const a=b2(e,m2(i),i);return[r,...a]}return r};function yP(u={}){const{themeId:e,defaultTheme:t=VV,rootShouldForwardProp:n=Gl,slotShouldForwardProp:r=Gl}=u,i=a=>yd(N({},a,{theme:A5(N({},a,{defaultTheme:t,themeId:e}))}));return i.__mui_systemSx=!0,(a,o={})=>{MG(a,y=>y.filter(B=>!(B!=null&&B.__mui_systemSx)));const{name:s,slot:f,skipVariantsResolver:l,skipSx:c,overridesResolver:d=QV(KV(f))}=o,E=L0(o,$V),p=l!==void 0?l:f&&f!=="Root"&&f!=="root"||!1,h=c||!1;let g,b=Gl;f==="Root"||f==="root"?b=n:f?b=r:WV(a)&&(b=void 0);const m=pP(a,N({shouldForwardProp:b,label:g},E)),A=(y,...B)=>{const v=B?B.map(x=>{if(typeof x=="function"&&x.__emotion_real!==x)return $=>uF({styledArg:x,props:$,defaultTheme:t,themeId:e});if(Hr(x)){let $=x,X;return x&&x.variants&&(X=x.variants,delete $.variants,$=Q=>{let Z=x;return b2(Q,m2(X),X).forEach(O=>{Z=ze(Z,O)}),Z}),$}return x}):[];let C=y;if(Hr(y)){let x;y&&y.variants&&(x=y.variants,delete C.variants,C=$=>{let X=y;return b2($,m2(x),x).forEach(Z=>{X=ze(X,Z)}),X})}else typeof y=="function"&&y.__emotion_real!==y&&(C=x=>uF({styledArg:y,props:x,defaultTheme:t,themeId:e}));s&&d&&v.push(x=>{const $=A5(N({},x,{defaultTheme:t,themeId:e})),X=qV(s,$);if(X){const Q={};return Object.entries(X).forEach(([Z,I])=>{Q[Z]=typeof I=="function"?I(N({},x,{theme:$})):I}),d(x,Q)}return null}),s&&!p&&v.push(x=>{const $=A5(N({},x,{defaultTheme:t,themeId:e}));return GV(x,HV(s,$),$,s)}),h||v.push(i);const F=v.length-B.length;if(Array.isArray(y)&&F>0){const x=new Array(F).fill("");C=[...y,...x],C.raw=[...y.raw,...x]}const S=m(C,...v);return a.muiName&&(S.muiName=a.muiName),S};return m.withConfig&&(A.withConfig=m.withConfig),A}}const JV=yP(),vP=JV;function ZV(u){const{theme:e,name:t,props:n}=u;return!e||!e.components||!e.components[t]||!e.components[t].defaultProps?n:Ob(e.components[t].defaultProps,n)}function Kb({props:u,name:e,defaultTheme:t,themeId:n}){let r=vd(t);return n&&(r=r[n]||r),ZV({theme:r,name:e,props:u})}function Qb(u,e=0,t=1){return Math.min(Math.max(e,u),t)}function YV(u){u=u.slice(1);const e=new RegExp(`.{1,${u.length>=6?2:1}}`,"g");let t=u.match(e);return t&&t[0].length===1&&(t=t.map(n=>n+n)),t?`rgb${t.length===4?"a":""}(${t.map((n,r)=>r<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function qo(u){if(u.type)return u;if(u.charAt(0)==="#")return qo(YV(u));const e=u.indexOf("("),t=u.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(t)===-1)throw new Error(ha(9,u));let n=u.substring(e+1,u.length-1),r;if(t==="color"){if(n=n.split(" "),r=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r)===-1)throw new Error(ha(10,r))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:t,values:n,colorSpace:r}}function Fd(u){const{type:e,colorSpace:t}=u;let{values:n}=u;return e.indexOf("rgb")!==-1?n=n.map((r,i)=>i<3?parseInt(r,10):r):e.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.indexOf("color")!==-1?n=`${t} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function XV(u){u=qo(u);const{values:e}=u,t=e[0],n=e[1]/100,r=e[2]/100,i=n*Math.min(r,1-r),a=(f,l=(f+t/30)%12)=>r-i*Math.max(Math.min(l-3,9-l,1),-1);let o="rgb";const s=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return u.type==="hsla"&&(o+="a",s.push(e[3])),Fd({type:o,values:s})}function eF(u){u=qo(u);let e=u.type==="hsl"||u.type==="hsla"?qo(XV(u)).values:u.values;return e=e.map(t=>(u.type!=="color"&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function uK(u,e){const t=eF(u),n=eF(e);return(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}function sf(u,e){return u=qo(u),e=Qb(e),(u.type==="rgb"||u.type==="hsl")&&(u.type+="a"),u.type==="color"?u.values[3]=`/${e}`:u.values[3]=e,Fd(u)}function eK(u,e){if(u=qo(u),e=Qb(e),u.type.indexOf("hsl")!==-1)u.values[2]*=1-e;else if(u.type.indexOf("rgb")!==-1||u.type.indexOf("color")!==-1)for(let t=0;t<3;t+=1)u.values[t]*=1-e;return Fd(u)}function tK(u,e){if(u=qo(u),e=Qb(e),u.type.indexOf("hsl")!==-1)u.values[2]+=(100-u.values[2])*e;else if(u.type.indexOf("rgb")!==-1)for(let t=0;t<3;t+=1)u.values[t]+=(255-u.values[t])*e;else if(u.type.indexOf("color")!==-1)for(let t=0;t<3;t+=1)u.values[t]+=(1-u.values[t])*e;return Fd(u)}const nK=w.createContext(null),BP=nK;function FP(){return w.useContext(BP)}const rK=typeof Symbol=="function"&&Symbol.for,iK=rK?Symbol.for("mui.nested"):"__THEME_NESTED__";function aK(u,e){return typeof e=="function"?e(u):N({},u,e)}function oK(u){const{children:e,theme:t}=u,n=FP(),r=w.useMemo(()=>{const i=n===null?t:aK(n,t);return i!=null&&(i[iK]=n!==null),i},[t,n]);return V.jsx(BP.Provider,{value:r,children:e})}const tF={};function nF(u,e,t,n=!1){return w.useMemo(()=>{const r=u&&e[u]||e;if(typeof t=="function"){const i=t(r),a=u?N({},e,{[u]:i}):i;return n?()=>a:a}return u?N({},e,{[u]:t}):N({},e,t)},[u,e,t,n])}function sK(u){const{children:e,theme:t,themeId:n}=u,r=gP(tF),i=FP()||tF,a=nF(n,r,t),o=nF(n,i,t,!0);return V.jsx(oK,{theme:o,children:V.jsx(Ed.Provider,{value:a,children:e})})}const fK=["className","component","disableGutters","fixed","maxWidth","classes"],lK=gc(),cK=vP("div",{name:"MuiContainer",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[`maxWidth${K0(String(t.maxWidth))}`],t.fixed&&e.fixed,t.disableGutters&&e.disableGutters]}}),dK=u=>Kb({props:u,name:"MuiContainer",defaultTheme:lK}),EK=(u,e)=>{const t=s=>fu(e,s),{classes:n,fixed:r,disableGutters:i,maxWidth:a}=u,o={root:["root",a&&`maxWidth${K0(String(a))}`,r&&"fixed",i&&"disableGutters"]};return du(o,t,n)};function pK(u={}){const{createStyledComponent:e=cK,useThemeProps:t=dK,componentName:n="MuiContainer"}=u,r=e(({theme:a,ownerState:o})=>N({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!o.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:o})=>o.fixed&&Object.keys(a.breakpoints.values).reduce((s,f)=>{const l=f,c=a.breakpoints.values[l];return c!==0&&(s[a.breakpoints.up(l)]={maxWidth:`${c}${a.breakpoints.unit}`}),s},{}),({theme:a,ownerState:o})=>N({},o.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},o.maxWidth&&o.maxWidth!=="xs"&&{[a.breakpoints.up(o.maxWidth)]:{maxWidth:`${a.breakpoints.values[o.maxWidth]}${a.breakpoints.unit}`}}));return w.forwardRef(function(o,s){const f=t(o),{className:l,component:c="div",disableGutters:d=!1,fixed:E=!1,maxWidth:p="lg"}=f,h=L0(f,fK),g=N({},f,{component:c,disableGutters:d,fixed:E,maxWidth:p}),b=EK(g,n);return V.jsx(r,N({as:c,ownerState:g,className:H0(b.root,l),ref:s},h))})}const hK=["component","direction","spacing","divider","children","className","useFlexGap"],CK=gc(),mK=vP("div",{name:"MuiStack",slot:"Root",overridesResolver:(u,e)=>e.root});function bK(u){return Kb({props:u,name:"MuiStack",defaultTheme:CK})}function gK(u,e){const t=w.Children.toArray(u).filter(Boolean);return t.reduce((n,r,i)=>(n.push(r),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[u],yK=({ownerState:u,theme:e})=>{let t=N({display:"flex",flexDirection:"column"},gt({theme:e},So({values:u.direction,breakpoints:e.breakpoints.values}),n=>({flexDirection:n})));if(u.spacing){const n=Gb(e),r=Object.keys(e.breakpoints.values).reduce((s,f)=>((typeof u.spacing=="object"&&u.spacing[f]!=null||typeof u.direction=="object"&&u.direction[f]!=null)&&(s[f]=!0),s),{}),i=So({values:u.direction,base:r}),a=So({values:u.spacing,base:r});typeof i=="object"&&Object.keys(i).forEach((s,f,l)=>{if(!i[s]){const d=f>0?i[l[f-1]]:"column";i[s]=d}}),t=ze(t,gt({theme:e},a,(s,f)=>u.useFlexGap?{gap:Wo(n,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${AK(f?i[f]:u.direction)}`]:Wo(n,s)}}))}return t=WG(e.breakpoints,t),t};function DP(u={}){const{createStyledComponent:e=mK,useThemeProps:t=bK,componentName:n="MuiStack"}=u,r=()=>du({root:["root"]},s=>fu(n,s),{}),i=e(yK);return w.forwardRef(function(s,f){const l=t(s),c=Bd(l),{component:d="div",direction:E="column",spacing:p=0,divider:h,children:g,className:b,useFlexGap:m=!1}=c,A=L0(c,hK),y={direction:E,spacing:p,useFlexGap:m},B=r();return V.jsx(i,N({as:d,ownerState:y,ref:f,className:H0(B.root,b)},A,{children:h?gK(g,h):g}))})}const vK=DP(),BK=vK;function FK(u,e){return N({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},e)}const DK={black:"#000",white:"#fff"},F1=DK,wK={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},xK=wK,kK={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ds=kK,_K={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},$a=_K,SK={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},il=SK,TK={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},ws=TK,PK={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},xs=PK,IK={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},ks=IK,OK=["mode","contrastThreshold","tonalOffset"],rF={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:F1.white,default:F1.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},y8={text:{primary:F1.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:F1.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function iF(u,e,t,n){const r=n.light||n,i=n.dark||n*1.5;u[e]||(u.hasOwnProperty(t)?u[e]=u[t]:e==="light"?u.light=tK(u.main,r):e==="dark"&&(u.dark=eK(u.main,i)))}function RK(u="light"){return u==="dark"?{main:ws[200],light:ws[50],dark:ws[400]}:{main:ws[700],light:ws[400],dark:ws[800]}}function NK(u="light"){return u==="dark"?{main:Ds[200],light:Ds[50],dark:Ds[400]}:{main:Ds[500],light:Ds[300],dark:Ds[700]}}function MK(u="light"){return u==="dark"?{main:$a[500],light:$a[300],dark:$a[700]}:{main:$a[700],light:$a[400],dark:$a[800]}}function jK(u="light"){return u==="dark"?{main:xs[400],light:xs[300],dark:xs[700]}:{main:xs[700],light:xs[500],dark:xs[900]}}function zK(u="light"){return u==="dark"?{main:ks[400],light:ks[300],dark:ks[700]}:{main:ks[800],light:ks[500],dark:ks[900]}}function LK(u="light"){return u==="dark"?{main:il[400],light:il[300],dark:il[700]}:{main:"#ed6c02",light:il[500],dark:il[900]}}function $K(u){const{mode:e="light",contrastThreshold:t=3,tonalOffset:n=.2}=u,r=L0(u,OK),i=u.primary||RK(e),a=u.secondary||NK(e),o=u.error||MK(e),s=u.info||jK(e),f=u.success||zK(e),l=u.warning||LK(e);function c(h){return uK(h,y8.text.primary)>=t?y8.text.primary:rF.text.primary}const d=({color:h,name:g,mainShade:b=500,lightShade:m=300,darkShade:A=700})=>{if(h=N({},h),!h.main&&h[b]&&(h.main=h[b]),!h.hasOwnProperty("main"))throw new Error(ha(11,g?` (${g})`:"",b));if(typeof h.main!="string")throw new Error(ha(12,g?` (${g})`:"",JSON.stringify(h.main)));return iF(h,"light",m,n),iF(h,"dark",A,n),h.contrastText||(h.contrastText=c(h.main)),h},E={dark:y8,light:rF};return ze(N({common:N({},F1),mode:e,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:o,name:"error"}),warning:d({color:l,name:"warning"}),info:d({color:s,name:"info"}),success:d({color:f,name:"success"}),grey:xK,contrastThreshold:t,getContrastText:c,augmentColor:d,tonalOffset:n},E[e]),r)}const UK=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function WK(u){return Math.round(u*1e5)/1e5}const aF={textTransform:"uppercase"},oF='"Roboto", "Helvetica", "Arial", sans-serif';function qK(u,e){const t=typeof e=="function"?e(u):e,{fontFamily:n=oF,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:f=16,allVariants:l,pxToRem:c}=t,d=L0(t,UK),E=r/14,p=c||(b=>`${b/f*E}rem`),h=(b,m,A,y,B)=>N({fontFamily:n,fontWeight:b,fontSize:p(m),lineHeight:A},n===oF?{letterSpacing:`${WK(y/m)}em`}:{},B,l),g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(o,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(o,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(o,14,1.75,.4,aF),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,aF),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ze(N({htmlFontSize:f,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s},g),d,{clone:!1})}const HK=.2,GK=.14,VK=.12;function xu(...u){return[`${u[0]}px ${u[1]}px ${u[2]}px ${u[3]}px rgba(0,0,0,${HK})`,`${u[4]}px ${u[5]}px ${u[6]}px ${u[7]}px rgba(0,0,0,${GK})`,`${u[8]}px ${u[9]}px ${u[10]}px ${u[11]}px rgba(0,0,0,${VK})`].join(",")}const KK=["none",xu(0,2,1,-1,0,1,1,0,0,1,3,0),xu(0,3,1,-2,0,2,2,0,0,1,5,0),xu(0,3,3,-2,0,3,4,0,0,1,8,0),xu(0,2,4,-1,0,4,5,0,0,1,10,0),xu(0,3,5,-1,0,5,8,0,0,1,14,0),xu(0,3,5,-1,0,6,10,0,0,1,18,0),xu(0,4,5,-2,0,7,10,1,0,2,16,1),xu(0,5,5,-3,0,8,10,1,0,3,14,2),xu(0,5,6,-3,0,9,12,1,0,3,16,2),xu(0,6,6,-3,0,10,14,1,0,4,18,3),xu(0,6,7,-4,0,11,15,1,0,4,20,3),xu(0,7,8,-4,0,12,17,2,0,5,22,4),xu(0,7,8,-4,0,13,19,2,0,5,24,4),xu(0,7,9,-4,0,14,21,2,0,5,26,4),xu(0,8,9,-5,0,15,22,2,0,6,28,5),xu(0,8,10,-5,0,16,24,2,0,6,30,5),xu(0,8,11,-5,0,17,26,2,0,6,32,5),xu(0,9,11,-5,0,18,28,2,0,7,34,6),xu(0,9,12,-6,0,19,29,2,0,7,36,6),xu(0,10,13,-6,0,20,31,3,0,8,38,7),xu(0,10,13,-6,0,21,33,3,0,8,40,7),xu(0,10,14,-6,0,22,35,3,0,8,42,7),xu(0,11,14,-7,0,23,36,3,0,9,44,8),xu(0,11,15,-7,0,24,38,3,0,9,46,8)],QK=KK,JK=["duration","easing","delay"],ZK={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},YK={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function sF(u){return`${Math.round(u)}ms`}function XK(u){if(!u)return 0;const e=u/36;return Math.round((4+15*e**.25+e/5)*10)}function uQ(u){const e=N({},ZK,u.easing),t=N({},YK,u.duration);return N({getAutoHeightDuration:XK,create:(r=["all"],i={})=>{const{duration:a=t.standard,easing:o=e.easeInOut,delay:s=0}=i;return L0(i,JK),(Array.isArray(r)?r:[r]).map(f=>`${f} ${typeof a=="string"?a:sF(a)} ${o} ${typeof s=="string"?s:sF(s)}`).join(",")}},u,{easing:e,duration:t})}const eQ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},tQ=eQ,nQ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Jb(u={},...e){const{mixins:t={},palette:n={},transitions:r={},typography:i={}}=u,a=L0(u,nQ);if(u.vars)throw new Error(ha(18));const o=$K(n),s=gc(u);let f=ze(s,{mixins:FK(s.breakpoints,t),palette:o,shadows:QK.slice(),typography:qK(o,i),transitions:uQ(r),zIndex:N({},tQ)});return f=ze(f,a),f=e.reduce((l,c)=>ze(l,c),f),f.unstable_sxConfig=N({},Ad,a==null?void 0:a.unstable_sxConfig),f.unstable_sx=function(c){return yd({sx:c,theme:this})},f}const rQ=Jb(),Dd=rQ,Ho="$$material",Vn=u=>Gl(u)&&u!=="classes",iQ=Gl,aQ=yP({themeId:Ho,defaultTheme:Dd,rootShouldForwardProp:Vn}),$0=aQ;function pu({props:u,name:e}){return Kb({props:u,name:e,defaultTheme:Dd,themeId:Ho})}function q7(u,e){return q7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},q7(u,e)}function wP(u,e){u.prototype=Object.create(e.prototype),u.prototype.constructor=u,q7(u,e)}const fF={disabled:!1},g2=D.createContext(null);var oQ=function(e){return e.scrollTop},vl="unmounted",Ua="exited",Wa="entering",js="entered",H7="exiting",fi=function(u){wP(e,u);function e(n,r){var i;i=u.call(this,n,r)||this;var a=r,o=a&&!a.isMounting?n.enter:n.appear,s;return i.appearStatus=null,n.in?o?(s=Ua,i.appearStatus=Wa):s=js:n.unmountOnExit||n.mountOnEnter?s=vl:s=Ua,i.state={status:s},i.nextCallback=null,i}e.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===vl?{status:Ua}:null};var t=e.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(r){var i=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==Wa&&a!==js&&(i=Wa):(a===Wa||a===js)&&(i=H7)}this.updateStatus(!1,i)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var r=this.props.timeout,i,a,o;return i=a=o=r,r!=null&&typeof r!="number"&&(i=r.exit,a=r.enter,o=r.appear!==void 0?r.appear:a),{exit:i,enter:a,appear:o}},t.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===Wa){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:B6.findDOMNode(this);a&&oQ(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ua&&this.setState({status:vl})},t.performEnter=function(r){var i=this,a=this.props.enter,o=this.context?this.context.isMounting:r,s=this.props.nodeRef?[o]:[B6.findDOMNode(this),o],f=s[0],l=s[1],c=this.getTimeouts(),d=o?c.appear:c.enter;if(!r&&!a||fF.disabled){this.safeSetState({status:js},function(){i.props.onEntered(f)});return}this.props.onEnter(f,l),this.safeSetState({status:Wa},function(){i.props.onEntering(f,l),i.onTransitionEnd(d,function(){i.safeSetState({status:js},function(){i.props.onEntered(f,l)})})})},t.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts(),o=this.props.nodeRef?void 0:B6.findDOMNode(this);if(!i||fF.disabled){this.safeSetState({status:Ua},function(){r.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:H7},function(){r.props.onExiting(o),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Ua},function(){r.props.onExited(o)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},t.setNextCallback=function(r){var i=this,a=!0;return this.nextCallback=function(o){a&&(a=!1,i.nextCallback=null,r(o))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},t.onTransitionEnd=function(r,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:B6.findDOMNode(this),o=r==null&&!this.props.addEndListener;if(!a||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],f=s[0],l=s[1];this.props.addEndListener(f,l)}r!=null&&setTimeout(this.nextCallback,r)},t.render=function(){var r=this.state.status;if(r===vl)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var o=L0(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return D.createElement(g2.Provider,{value:null},typeof a=="function"?a(r,o):D.cloneElement(D.Children.only(a),o))},e}(D.Component);fi.contextType=g2;fi.propTypes={};function _s(){}fi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_s,onEntering:_s,onEntered:_s,onExit:_s,onExiting:_s,onExited:_s};fi.UNMOUNTED=vl;fi.EXITED=Ua;fi.ENTERING=Wa;fi.ENTERED=js;fi.EXITING=H7;const xP=fi;function sQ(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function Zb(u,e){var t=function(i){return e&&w.isValidElement(i)?e(i):i},n=Object.create(null);return u&&w.Children.map(u,function(r){return r}).forEach(function(r){n[r.key]=t(r)}),n}function fQ(u,e){u=u||{},e=e||{};function t(l){return l in e?e[l]:u[l]}var n=Object.create(null),r=[];for(var i in u)i in e?r.length&&(n[i]=r,r=[]):r.push(i);var a,o={};for(var s in e){if(n[s])for(a=0;a{if(!o&&s!=null){const h=setTimeout(s,f);return()=>{clearTimeout(h)}}},[s,o,f]),V.jsx("span",{className:d,style:E,children:V.jsx("span",{className:p})})}const CQ=Eu("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),nn=CQ,mQ=["center","classes","className"];let wd=u=>u,lF,cF,dF,EF;const G7=550,bQ=80,gQ=Ub(lF||(lF=wd` 0% { transform: scale(0); opacity: 0.1; @@ -85,7 +85,7 @@ Error generating stack: `+i.message+` transform: scale(1); opacity: 0.3; } -`)),AQ=$b(lF||(lF=Dd` +`)),AQ=Ub(cF||(cF=wd` 0% { opacity: 1; } @@ -93,7 +93,7 @@ Error generating stack: `+i.message+` 100% { opacity: 0; } -`)),yQ=$b(cF||(cF=Dd` +`)),yQ=Ub(dF||(dF=wd` 0% { transform: scale(1); } @@ -105,7 +105,7 @@ Error generating stack: `+i.message+` 100% { transform: scale(1); } -`)),vQ=$0("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),BQ=$0(hQ,{name:"MuiTouchRipple",slot:"Ripple"})(dF||(dF=Dd` +`)),vQ=$0("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),BQ=$0(hQ,{name:"MuiTouchRipple",slot:"Ripple"})(EF||(EF=wd` opacity: 0; position: absolute; @@ -148,7 +148,7 @@ Error generating stack: `+i.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),nn.rippleVisible,gQ,H7,({theme:u})=>u.transitions.easing.easeInOut,nn.ripplePulsate,({theme:u})=>u.transitions.duration.shorter,nn.child,nn.childLeaving,AQ,H7,({theme:u})=>u.transitions.easing.easeInOut,nn.childPulsate,yQ,({theme:u})=>u.transitions.easing.easeInOut),FQ=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:a}=n,o=L0(n,mQ),[s,f]=w.useState([]),l=w.useRef(0),c=w.useRef(null);w.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=w.useRef(!1),E=w.useRef(0),p=w.useRef(null),h=w.useRef(null);w.useEffect(()=>()=>{E.current&&clearTimeout(E.current)},[]);const g=w.useCallback(y=>{const{pulsate:B,rippleX:v,rippleY:C,rippleSize:D,cb:S}=y;f(x=>[...x,K.jsx(BQ,{classes:{ripple:H0(i.ripple,nn.ripple),rippleVisible:H0(i.rippleVisible,nn.rippleVisible),ripplePulsate:H0(i.ripplePulsate,nn.ripplePulsate),child:H0(i.child,nn.child),childLeaving:H0(i.childLeaving,nn.childLeaving),childPulsate:H0(i.childPulsate,nn.childPulsate)},timeout:H7,pulsate:B,rippleX:v,rippleY:C,rippleSize:D},l.current)]),l.current+=1,c.current=S},[i]),b=w.useCallback((y={},B={},v=()=>{})=>{const{pulsate:C=!1,center:D=r||B.pulsate,fakeElement:S=!1}=B;if((y==null?void 0:y.type)==="mousedown"&&d.current){d.current=!1;return}(y==null?void 0:y.type)==="touchstart"&&(d.current=!0);const x=S?null:h.current,L=x?x.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Y,G,X;if(D||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)Y=Math.round(L.width/2),G=Math.round(L.height/2);else{const{clientX:I,clientY:O}=y.touches&&y.touches.length>0?y.touches[0]:y;Y=Math.round(I-L.left),G=Math.round(O-L.top)}if(D)X=Math.sqrt((2*L.width**2+L.height**2)/3),X%2===0&&(X+=1);else{const I=Math.max(Math.abs((x?x.clientWidth:0)-Y),Y)*2+2,O=Math.max(Math.abs((x?x.clientHeight:0)-G),G)*2+2;X=Math.sqrt(I**2+O**2)}y!=null&&y.touches?p.current===null&&(p.current=()=>{g({pulsate:C,rippleX:Y,rippleY:G,rippleSize:X,cb:v})},E.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},bQ)):g({pulsate:C,rippleX:Y,rippleY:G,rippleSize:X,cb:v})},[r,g]),m=w.useCallback(()=>{b({},{pulsate:!0})},[b]),A=w.useCallback((y,B)=>{if(clearTimeout(E.current),(y==null?void 0:y.type)==="touchend"&&p.current){p.current(),p.current=null,E.current=setTimeout(()=>{A(y,B)});return}p.current=null,f(v=>v.length>0?v.slice(1):v),c.current=B},[]);return w.useImperativeHandle(t,()=>({pulsate:m,start:b,stop:A}),[m,b,A]),K.jsx(vQ,N({className:H0(nn.root,i.root,a),ref:h},o,{children:K.jsx(pQ,{component:null,exit:!0,children:s})}))}),DQ=FQ;function wQ(u){return fu("MuiButtonBase",u)}const xQ=Eu("MuiButtonBase",["root","disabled","focusVisible"]),kQ=xQ,_Q=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],SQ=u=>{const{disabled:e,focusVisible:t,focusVisibleClassName:n,classes:r}=u,a=du({root:["root",e&&"disabled",t&&"focusVisible"]},wQ,r);return t&&n&&(a.root+=` ${n}`),a},TQ=$0("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(u,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${kQ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),PQ=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:a,className:o,component:s="button",disabled:f=!1,disableRipple:l=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:E="a",onBlur:p,onClick:h,onContextMenu:g,onDragLeave:b,onFocus:m,onFocusVisible:A,onKeyDown:y,onKeyUp:B,onMouseDown:v,onMouseLeave:C,onMouseUp:D,onTouchEnd:S,onTouchMove:x,onTouchStart:L,tabIndex:Y=0,TouchRippleProps:G,touchRippleRef:X,type:I}=n,O=L0(n,_Q),W=w.useRef(null),$=w.useRef(null),q=et($,X),{isFocusVisibleRef:U,onFocus:i0,onBlur:s0,ref:o0}=VT(),[Q,b0]=w.useState(!1);f&&Q&&b0(!1),w.useImperativeHandle(r,()=>({focusVisible:()=>{b0(!0),W.current.focus()}}),[]);const[A0,_0]=w.useState(!1);w.useEffect(()=>{_0(!0)},[]);const w0=A0&&!l&&!f;w.useEffect(()=>{Q&&d&&!l&&A0&&$.current.pulsate()},[l,d,Q,A0]);function B0(m0,G0,N0=c){return of(x0=>(G0&&G0(x0),!N0&&$.current&&$.current[m0](x0),!0))}const _=B0("start",v),T=B0("stop",g),P=B0("stop",b),j=B0("stop",D),z=B0("stop",m0=>{Q&&m0.preventDefault(),C&&C(m0)}),V=B0("start",L),t0=B0("stop",S),H=B0("stop",x),J=B0("stop",m0=>{s0(m0),U.current===!1&&b0(!1),p&&p(m0)},!1),u0=of(m0=>{W.current||(W.current=m0.currentTarget),i0(m0),U.current===!0&&(b0(!0),A&&A(m0)),m&&m(m0)}),Z=()=>{const m0=W.current;return s&&s!=="button"&&!(m0.tagName==="A"&&m0.href)},n0=w.useRef(!1),p0=of(m0=>{d&&!n0.current&&Q&&$.current&&m0.key===" "&&(n0.current=!0,$.current.stop(m0,()=>{$.current.start(m0)})),m0.target===m0.currentTarget&&Z()&&m0.key===" "&&m0.preventDefault(),y&&y(m0),m0.target===m0.currentTarget&&Z()&&m0.key==="Enter"&&!f&&(m0.preventDefault(),h&&h(m0))}),C0=of(m0=>{d&&m0.key===" "&&$.current&&Q&&!m0.defaultPrevented&&(n0.current=!1,$.current.stop(m0,()=>{$.current.pulsate(m0)})),B&&B(m0),h&&m0.target===m0.currentTarget&&Z()&&m0.key===" "&&!m0.defaultPrevented&&h(m0)});let y0=s;y0==="button"&&(O.href||O.to)&&(y0=E);const g0={};y0==="button"?(g0.type=I===void 0?"button":I,g0.disabled=f):(!O.href&&!O.to&&(g0.role="button"),f&&(g0["aria-disabled"]=f));const F0=et(t,o0,W),c0=N({},n,{centerRipple:i,component:s,disabled:f,disableRipple:l,disableTouchRipple:c,focusRipple:d,tabIndex:Y,focusVisible:Q}),d0=SQ(c0);return K.jsxs(TQ,N({as:y0,className:H0(d0.root,o),ownerState:c0,onBlur:J,onClick:h,onContextMenu:T,onFocus:u0,onKeyDown:p0,onKeyUp:C0,onMouseDown:_,onMouseLeave:z,onMouseUp:j,onDragLeave:P,onTouchEnd:t0,onTouchMove:H,onTouchStart:V,ref:F0,tabIndex:f?-1:Y,type:I},g0,O,{children:[a,w0?K.jsx(DQ,N({ref:q,center:i},G)):null]}))}),IQ=PQ;function OQ(u){return fu("MuiButton",u)}const RQ=Eu("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),S6=RQ,NQ=w.createContext({}),MQ=NQ,jQ=w.createContext(void 0),zQ=jQ,LQ=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],$Q=u=>{const{color:e,disableElevation:t,fullWidth:n,size:r,variant:i,classes:a}=u,o={root:["root",i,`${i}${K0(e)}`,`size${K0(r)}`,`${i}Size${K0(r)}`,e==="inherit"&&"colorInherit",t&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${K0(r)}`],endIcon:["endIcon",`iconSize${K0(r)}`]},s=du(o,OQ,a);return N({},a,s)},kP=u=>N({},u.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},u.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},u.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),UQ=$0(IQ,{shouldForwardProp:u=>Vn(u)||u==="classes",name:"MuiButton",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[t.variant],e[`${t.variant}${K0(t.color)}`],e[`size${K0(t.size)}`],e[`${t.variant}Size${K0(t.size)}`],t.color==="inherit"&&e.colorInherit,t.disableElevation&&e.disableElevation,t.fullWidth&&e.fullWidth]}})(({theme:u,ownerState:e})=>{var t,n;const r=u.palette.mode==="light"?u.palette.grey[300]:u.palette.grey[800],i=u.palette.mode==="light"?u.palette.grey.A100:u.palette.grey[700];return N({},u.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(u.vars||u).shape.borderRadius,transition:u.transitions.create(["background-color","box-shadow","border-color","color"],{duration:u.transitions.duration.short}),"&:hover":N({textDecoration:"none",backgroundColor:u.vars?`rgba(${u.vars.palette.text.primaryChannel} / ${u.vars.palette.action.hoverOpacity})`:sf(u.palette.text.primary,u.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="text"&&e.color!=="inherit"&&{backgroundColor:u.vars?`rgba(${u.vars.palette[e.color].mainChannel} / ${u.vars.palette.action.hoverOpacity})`:sf(u.palette[e.color].main,u.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="outlined"&&e.color!=="inherit"&&{border:`1px solid ${(u.vars||u).palette[e.color].main}`,backgroundColor:u.vars?`rgba(${u.vars.palette[e.color].mainChannel} / ${u.vars.palette.action.hoverOpacity})`:sf(u.palette[e.color].main,u.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="contained"&&{backgroundColor:u.vars?u.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(u.vars||u).shadows[4],"@media (hover: none)":{boxShadow:(u.vars||u).shadows[2],backgroundColor:(u.vars||u).palette.grey[300]}},e.variant==="contained"&&e.color!=="inherit"&&{backgroundColor:(u.vars||u).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(u.vars||u).palette[e.color].main}}),"&:active":N({},e.variant==="contained"&&{boxShadow:(u.vars||u).shadows[8]}),[`&.${S6.focusVisible}`]:N({},e.variant==="contained"&&{boxShadow:(u.vars||u).shadows[6]}),[`&.${S6.disabled}`]:N({color:(u.vars||u).palette.action.disabled},e.variant==="outlined"&&{border:`1px solid ${(u.vars||u).palette.action.disabledBackground}`},e.variant==="contained"&&{color:(u.vars||u).palette.action.disabled,boxShadow:(u.vars||u).shadows[0],backgroundColor:(u.vars||u).palette.action.disabledBackground})},e.variant==="text"&&{padding:"6px 8px"},e.variant==="text"&&e.color!=="inherit"&&{color:(u.vars||u).palette[e.color].main},e.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},e.variant==="outlined"&&e.color!=="inherit"&&{color:(u.vars||u).palette[e.color].main,border:u.vars?`1px solid rgba(${u.vars.palette[e.color].mainChannel} / 0.5)`:`1px solid ${sf(u.palette[e.color].main,.5)}`},e.variant==="contained"&&{color:u.vars?u.vars.palette.text.primary:(t=(n=u.palette).getContrastText)==null?void 0:t.call(n,u.palette.grey[300]),backgroundColor:u.vars?u.vars.palette.Button.inheritContainedBg:r,boxShadow:(u.vars||u).shadows[2]},e.variant==="contained"&&e.color!=="inherit"&&{color:(u.vars||u).palette[e.color].contrastText,backgroundColor:(u.vars||u).palette[e.color].main},e.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},e.size==="small"&&e.variant==="text"&&{padding:"4px 5px",fontSize:u.typography.pxToRem(13)},e.size==="large"&&e.variant==="text"&&{padding:"8px 11px",fontSize:u.typography.pxToRem(15)},e.size==="small"&&e.variant==="outlined"&&{padding:"3px 9px",fontSize:u.typography.pxToRem(13)},e.size==="large"&&e.variant==="outlined"&&{padding:"7px 21px",fontSize:u.typography.pxToRem(15)},e.size==="small"&&e.variant==="contained"&&{padding:"4px 10px",fontSize:u.typography.pxToRem(13)},e.size==="large"&&e.variant==="contained"&&{padding:"8px 22px",fontSize:u.typography.pxToRem(15)},e.fullWidth&&{width:"100%"})},({ownerState:u})=>u.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${S6.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${S6.disabled}`]:{boxShadow:"none"}}),WQ=$0("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.startIcon,e[`iconSize${K0(t.size)}`]]}})(({ownerState:u})=>N({display:"inherit",marginRight:8,marginLeft:-4},u.size==="small"&&{marginLeft:-2},kP(u))),qQ=$0("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.endIcon,e[`iconSize${K0(t.size)}`]]}})(({ownerState:u})=>N({display:"inherit",marginRight:-4,marginLeft:8},u.size==="small"&&{marginRight:-2},kP(u))),HQ=w.forwardRef(function(e,t){const n=w.useContext(MQ),r=w.useContext(zQ),i=Ib(n,e),a=pu({props:i,name:"MuiButton"}),{children:o,color:s="primary",component:f="button",className:l,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:E=!1,endIcon:p,focusVisibleClassName:h,fullWidth:g=!1,size:b="medium",startIcon:m,type:A,variant:y="text"}=a,B=L0(a,LQ),v=N({},a,{color:s,component:f,disabled:c,disableElevation:d,disableFocusRipple:E,fullWidth:g,size:b,type:A,variant:y}),C=$Q(v),D=m&&K.jsx(WQ,{className:C.startIcon,ownerState:v,children:m}),S=p&&K.jsx(qQ,{className:C.endIcon,ownerState:v,children:p}),x=r||"";return K.jsxs(UQ,N({ownerState:v,className:H0(n.className,C.root,l,x),component:f,disabled:c,focusRipple:!E,focusVisibleClassName:H0(C.focusVisible,h),ref:t,type:A},B,{classes:C,children:[D,o,S]}))}),Ho=HQ,GQ=u=>{let e;return u<1?e=5.11916*u**2:e=4.5*Math.log(u+1)+2,(e/100).toFixed(2)},EF=GQ;function wd(){const u=yd(Fd);return u[qo]||u}function VQ(u){return fu("MuiPaper",u)}Eu("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const KQ=["className","component","elevation","square","variant"],QQ=u=>{const{square:e,elevation:t,variant:n,classes:r}=u,i={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${t}`]};return du(i,VQ,r)},JQ=$0("div",{name:"MuiPaper",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[t.variant],!t.square&&e.rounded,t.variant==="elevation"&&e[`elevation${t.elevation}`]]}})(({theme:u,ownerState:e})=>{var t;return N({backgroundColor:(u.vars||u).palette.background.paper,color:(u.vars||u).palette.text.primary,transition:u.transitions.create("box-shadow")},!e.square&&{borderRadius:u.shape.borderRadius},e.variant==="outlined"&&{border:`1px solid ${(u.vars||u).palette.divider}`},e.variant==="elevation"&&N({boxShadow:(u.vars||u).shadows[e.elevation]},!u.vars&&u.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${sf("#fff",EF(e.elevation))}, ${sf("#fff",EF(e.elevation))})`},u.vars&&{backgroundImage:(t=u.vars.overlays)==null?void 0:t[e.elevation]}))}),ZQ=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiPaper"}),{className:r,component:i="div",elevation:a=1,square:o=!1,variant:s="elevation"}=n,f=L0(n,KQ),l=N({},n,{component:i,elevation:a,square:o,variant:s}),c=QQ(l);return K.jsx(JQ,N({as:i,ownerState:l,className:H0(c.root,r),ref:t},f))}),Yb=ZQ;function YQ(u){return fu("MuiAppBar",u)}Eu("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const XQ=["className","color","enableColorOnDark","position"],uJ=u=>{const{color:e,position:t,classes:n}=u,r={root:["root",`color${K0(e)}`,`position${K0(t)}`]};return du(r,YQ,n)},T6=(u,e)=>u?`${u==null?void 0:u.replace(")","")}, ${e})`:e,eJ=$0(Yb,{name:"MuiAppBar",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[`position${K0(t.position)}`],e[`color${K0(t.color)}`]]}})(({theme:u,ownerState:e})=>{const t=u.palette.mode==="light"?u.palette.grey[100]:u.palette.grey[900];return N({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},e.position==="fixed"&&{position:"fixed",zIndex:(u.vars||u).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},e.position==="absolute"&&{position:"absolute",zIndex:(u.vars||u).zIndex.appBar,top:0,left:"auto",right:0},e.position==="sticky"&&{position:"sticky",zIndex:(u.vars||u).zIndex.appBar,top:0,left:"auto",right:0},e.position==="static"&&{position:"static"},e.position==="relative"&&{position:"relative"},!u.vars&&N({},e.color==="default"&&{backgroundColor:t,color:u.palette.getContrastText(t)},e.color&&e.color!=="default"&&e.color!=="inherit"&&e.color!=="transparent"&&{backgroundColor:u.palette[e.color].main,color:u.palette[e.color].contrastText},e.color==="inherit"&&{color:"inherit"},u.palette.mode==="dark"&&!e.enableColorOnDark&&{backgroundColor:null,color:null},e.color==="transparent"&&N({backgroundColor:"transparent",color:"inherit"},u.palette.mode==="dark"&&{backgroundImage:"none"})),u.vars&&N({},e.color==="default"&&{"--AppBar-background":e.enableColorOnDark?u.vars.palette.AppBar.defaultBg:T6(u.vars.palette.AppBar.darkBg,u.vars.palette.AppBar.defaultBg),"--AppBar-color":e.enableColorOnDark?u.vars.palette.text.primary:T6(u.vars.palette.AppBar.darkColor,u.vars.palette.text.primary)},e.color&&!e.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":e.enableColorOnDark?u.vars.palette[e.color].main:T6(u.vars.palette.AppBar.darkBg,u.vars.palette[e.color].main),"--AppBar-color":e.enableColorOnDark?u.vars.palette[e.color].contrastText:T6(u.vars.palette.AppBar.darkColor,u.vars.palette[e.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:e.color==="inherit"?"inherit":"var(--AppBar-color)"},e.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),tJ=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiAppBar"}),{className:r,color:i="primary",enableColorOnDark:a=!1,position:o="fixed"}=n,s=L0(n,XQ),f=N({},n,{color:i,position:o,enableColorOnDark:a}),l=uJ(f);return K.jsx(eJ,N({square:!0,component:"header",ownerState:f,elevation:4,className:H0(l.root,r,o==="fixed"&&"mui-fixed"),ref:t},s))}),nJ=tJ;function rJ(u){return fu("MuiToolbar",u)}Eu("MuiToolbar",["root","gutters","regular","dense"]);const iJ=["className","component","disableGutters","variant"],aJ=u=>{const{classes:e,disableGutters:t,variant:n}=u;return du({root:["root",!t&&"gutters",n]},rJ,e)},oJ=$0("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,!t.disableGutters&&e.gutters,e[t.variant]]}})(({theme:u,ownerState:e})=>N({position:"relative",display:"flex",alignItems:"center"},!e.disableGutters&&{paddingLeft:u.spacing(2),paddingRight:u.spacing(2),[u.breakpoints.up("sm")]:{paddingLeft:u.spacing(3),paddingRight:u.spacing(3)}},e.variant==="dense"&&{minHeight:48}),({theme:u,ownerState:e})=>e.variant==="regular"&&u.mixins.toolbar),sJ=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiToolbar"}),{className:r,component:i="div",disableGutters:a=!1,variant:o="regular"}=n,s=L0(n,iJ),f=N({},n,{component:i,disableGutters:a,variant:o}),l=aJ(f);return K.jsx(oJ,N({as:i,className:H0(l.root,r),ref:t,ownerState:f},s))}),fJ=sJ,lJ=pK({createStyledComponent:$0("div",{name:"MuiContainer",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[`maxWidth${K0(String(t.maxWidth))}`],t.fixed&&e.fixed,t.disableGutters&&e.disableGutters]}}),useThemeProps:u=>pu({props:u,name:"MuiContainer"})}),cJ=lJ,dJ=["theme"];function EJ(u){let{theme:e}=u,t=L0(u,dJ);const n=e[qo];return K.jsx(sK,N({},t,{themeId:n?qo:void 0,theme:n||e}))}const pJ=Eu("MuiBox",["root"]),hJ=pJ,CJ=Qb(),mJ=zV({themeId:qo,defaultTheme:CJ,defaultClassName:hJ.root,generateClassName:QT.generate}),_P=mJ,bJ="/real-token/Logo.svg",gJ="modulepreload",AJ=function(u){return"/real-token/"+u},pF={},q0=function(e,t,n){if(!t||t.length===0)return e();const r=document.getElementsByTagName("link");return Promise.all(t.map(i=>{if(i=AJ(i),i in pF)return;pF[i]=!0;const a=i.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(!!n)for(let l=r.length-1;l>=0;l--){const c=r[l];if(c.href===i&&(!a||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${o}`))return;const f=document.createElement("link");if(f.rel=a?"stylesheet":gJ,a||(f.as="script",f.crossOrigin=""),f.href=i,document.head.appendChild(f),a)return new Promise((l,c)=>{f.addEventListener("load",l),f.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};var hF='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',yJ={rounded:`SFRounded, ui-rounded, "SF Pro Rounded", ${hF}`,system:hF},al={large:{actionButton:"9999px",connectButton:"12px",modal:"24px",modalMobile:"28px"},medium:{actionButton:"10px",connectButton:"8px",modal:"16px",modalMobile:"18px"},none:{actionButton:"0px",connectButton:"0px",modal:"0px",modalMobile:"0px"},small:{actionButton:"4px",connectButton:"4px",modal:"8px",modalMobile:"8px"}},vJ={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},BJ=({borderRadius:u="large",fontStack:e="rounded",overlayBlur:t="none"})=>({blurs:{modalOverlay:vJ[t].modalOverlay},fonts:{body:yJ[e]},radii:{actionButton:al[u].actionButton,connectButton:al[u].connectButton,menuButton:al[u].connectButton,modal:al[u].modal,modalMobile:al[u].modalMobile}}),SP={blue:{accentColor:"#0E76FD",accentColorForeground:"#FFF"},green:{accentColor:"#1DB847",accentColorForeground:"#FFF"},orange:{accentColor:"#FF801F",accentColorForeground:"#FFF"},pink:{accentColor:"#FF5CA0",accentColorForeground:"#FFF"},purple:{accentColor:"#5F5AFA",accentColorForeground:"#FFF"},red:{accentColor:"#FA423C",accentColorForeground:"#FFF"}},CF=SP.blue,TP=({accentColor:u=CF.accentColor,accentColorForeground:e=CF.accentColorForeground,...t}={})=>({...BJ(t),colors:{accentColor:u,accentColorForeground:e,actionButtonBorder:"rgba(0, 0, 0, 0.04)",actionButtonBorderMobile:"rgba(0, 0, 0, 0.06)",actionButtonSecondaryBackground:"rgba(0, 0, 0, 0.06)",closeButton:"rgba(60, 66, 66, 0.8)",closeButtonBackground:"rgba(0, 0, 0, 0.06)",connectButtonBackground:"#FFF",connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06))",connectButtonText:"#25292E",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(255, 255, 255, 0) 9.49%, rgba(171, 171, 171, 0.04) 71.04%), #FFFFFF",downloadTopCardBackground:"linear-gradient(126deg, rgba(171, 171, 171, 0.2) 9.49%, rgba(255, 255, 255, 0) 71.04%), #FFFFFF",error:"#FF494A",generalBorder:"rgba(0, 0, 0, 0.06)",generalBorderDim:"rgba(0, 0, 0, 0.03)",menuItemBackground:"rgba(60, 66, 66, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.3)",modalBackground:"#FFF",modalBorder:"transparent",modalText:"#25292E",modalTextDim:"rgba(60, 66, 66, 0.3)",modalTextSecondary:"rgba(60, 66, 66, 0.6)",profileAction:"#FFF",profileActionHover:"rgba(255, 255, 255, 0.5)",profileForeground:"rgba(60, 66, 66, 0.06)",selectedOptionBorder:"rgba(60, 66, 66, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.12)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}});TP.accentColors=SP;function FJ(u,e){return Object.defineProperty(u,"__recipe__",{value:e,writable:!1}),u}var PP=FJ;function IP(u){var{conditions:e}=u;if(!e)throw new Error("Styles have no conditions");function t(n){if(typeof n=="string"||typeof n=="number"||typeof n=="boolean"){if(!e.defaultCondition)throw new Error("No default condition");return{[e.defaultCondition]:n}}if(Array.isArray(n)){if(!("responsiveArray"in e))throw new Error("Responsive arrays are not supported");var r={};for(var i in e.responsiveArray)n[i]!=null&&(r[e.responsiveArray[i]]=n[i]);return r}return n}return PP(t,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createNormalizeValueFn",args:[{conditions:u.conditions}]})}function DJ(u){var{conditions:e}=u;if(!e)throw new Error("Styles have no conditions");var t=IP(u);function n(r,i){if(typeof r=="string"||typeof r=="number"||typeof r=="boolean"){if(!e.defaultCondition)throw new Error("No default condition");return i(r,e.defaultCondition)}var a=Array.isArray(r)?t(r):r,o={};for(var s in a)a[s]!=null&&(o[s]=i(a[s],s));return o}return PP(n,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:u.conditions}]})}function wJ(u,e,t){return e in u?Object.defineProperty(u,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):u[e]=t,u}function mF(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(u);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(u,r).enumerable})),t.push.apply(t,n)}return t}function y8(u){for(var e=1;efunction(){for(var e=arguments.length,t=new Array(e),n=0;ns.styles)),i=Object.keys(r),a=i.filter(s=>"mappings"in r[s]),o=s=>{var f=[],l={},c=y8({},s),d=!1;for(var E of a){var p=s[E];if(p!=null){var h=r[E];d=!0;for(var g of h.mappings)l[g]=p,c[g]==null&&delete c[g]}}var b=d?y8(y8({},l),c):s;for(var m in b){var A=b[m],y=r[m];try{if(y.mappings)continue;if(typeof A=="string"||typeof A=="number")f.push(y.values[A].defaultClass);else if(Array.isArray(A))for(var B=0;Bu,_J=function(){return xJ(kJ)(...arguments)};function SJ({storage:u,key:e="REACT_QUERY_OFFLINE_CACHE",throttleTime:t=1e3,serialize:n=JSON.stringify,deserialize:r=JSON.parse,retry:i}){if(u){const a=o=>{try{u.setItem(e,n(o));return}catch(s){return s}};return{persistClient:TJ(o=>{let s=o,f=a(s),l=0;for(;f&&s;)l++,s=i==null?void 0:i({persistedClient:s,error:f,errorCount:l}),s&&(f=a(s))},t),restoreClient:()=>{const o=u.getItem(e);if(o)return r(o)},removeClient:()=>{u.removeItem(e)}}}return{persistClient:bF,restoreClient:()=>{},removeClient:bF}}function TJ(u,e=100){let t=null,n;return function(...r){n=r,t===null&&(t=setTimeout(()=>{u(...n),t=null},e))}}function bF(){}class C3{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const F1=typeof window>"u"||"Deno"in window;function tn(){}function PJ(u,e){return typeof u=="function"?u(e):u}function G7(u){return typeof u=="number"&&u>=0&&u!==1/0}function OP(u,e){return Math.max(u+(e||0)-Date.now(),0)}function P6(u,e,t){return gc(u)?typeof e=="function"?{...t,queryKey:u,queryFn:e}:{...e,queryKey:u}:u}function RP(u,e,t){return gc(u)?typeof e=="function"?{...t,mutationKey:u,mutationFn:e}:{...e,mutationKey:u}:typeof u=="function"?{...e,mutationFn:u}:{...u}}function _i(u,e,t){return gc(u)?[{...e,queryKey:u},t]:[u||{},e]}function gF(u,e){const{type:t="all",exact:n,fetchStatus:r,predicate:i,queryKey:a,stale:o}=u;if(gc(a)){if(n){if(e.queryHash!==Xb(a,e.options))return!1}else if(!g2(e.queryKey,a))return!1}if(t!=="all"){const s=e.isActive();if(t==="active"&&!s||t==="inactive"&&s)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||typeof r<"u"&&r!==e.state.fetchStatus||i&&!i(e))}function AF(u,e){const{exact:t,fetching:n,predicate:r,mutationKey:i}=u;if(gc(i)){if(!e.options.mutationKey)return!1;if(t){if(Xa(e.options.mutationKey)!==Xa(i))return!1}else if(!g2(e.options.mutationKey,i))return!1}return!(typeof n=="boolean"&&e.state.status==="loading"!==n||r&&!r(e))}function Xb(u,e){return((e==null?void 0:e.queryKeyHashFn)||Xa)(u)}function Xa(u){return JSON.stringify(u,(e,t)=>V7(t)?Object.keys(t).sort().reduce((n,r)=>(n[r]=t[r],n),{}):t)}function g2(u,e){return NP(u,e)}function NP(u,e){return u===e?!0:typeof u!=typeof e?!1:u&&e&&typeof u=="object"&&typeof e=="object"?!Object.keys(e).some(t=>!NP(u[t],e[t])):!1}function MP(u,e){if(u===e)return u;const t=yF(u)&&yF(e);if(t||V7(u)&&V7(e)){const n=t?u.length:Object.keys(u).length,r=t?e:Object.keys(e),i=r.length,a=t?[]:{};let o=0;for(let s=0;s"u")return!0;const t=e.prototype;return!(!vF(t)||!t.hasOwnProperty("isPrototypeOf"))}function vF(u){return Object.prototype.toString.call(u)==="[object Object]"}function gc(u){return Array.isArray(u)}function jP(u){return new Promise(e=>{setTimeout(e,u)})}function BF(u){jP(0).then(u)}function IJ(){if(typeof AbortController=="function")return new AbortController}function K7(u,e,t){return t.isDataEqual!=null&&t.isDataEqual(u,e)?u:typeof t.structuralSharing=="function"?t.structuralSharing(u,e):t.structuralSharing!==!1?MP(u,e):e}class OJ extends C3{constructor(){super(),this.setup=e=>{if(!F1&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const y2=new OJ,FF=["online","offline"];class RJ extends C3{constructor(){super(),this.setup=e=>{if(!F1&&window.addEventListener){const t=()=>e();return FF.forEach(n=>{window.addEventListener(n,t,!1)}),()=>{FF.forEach(n=>{window.removeEventListener(n,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const v2=new RJ;function NJ(u){return Math.min(1e3*2**u,3e4)}function xd(u){return(u??"online")==="online"?v2.isOnline():!0}class zP{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}}function A5(u){return u instanceof zP}function LP(u){let e=!1,t=0,n=!1,r,i,a;const o=new Promise((g,b)=>{i=g,a=b}),s=g=>{n||(E(new zP(g)),u.abort==null||u.abort())},f=()=>{e=!0},l=()=>{e=!1},c=()=>!y2.isFocused()||u.networkMode!=="always"&&!v2.isOnline(),d=g=>{n||(n=!0,u.onSuccess==null||u.onSuccess(g),r==null||r(),i(g))},E=g=>{n||(n=!0,u.onError==null||u.onError(g),r==null||r(),a(g))},p=()=>new Promise(g=>{r=b=>{const m=n||!c();return m&&g(b),m},u.onPause==null||u.onPause()}).then(()=>{r=void 0,n||u.onContinue==null||u.onContinue()}),h=()=>{if(n)return;let g;try{g=u.fn()}catch(b){g=Promise.reject(b)}Promise.resolve(g).then(d).catch(b=>{var m,A;if(n)return;const y=(m=u.retry)!=null?m:3,B=(A=u.retryDelay)!=null?A:NJ,v=typeof B=="function"?B(t,b):B,C=y===!0||typeof y=="number"&&t{if(c())return p()}).then(()=>{e?E(b):h()})})};return xd(u.networkMode)?h():p().then(h),{promise:o,cancel:s,continue:()=>(r==null?void 0:r())?o:Promise.resolve(),cancelRetry:f,continueRetry:l}}const ug=console;function MJ(){let u=[],e=0,t=l=>{l()},n=l=>{l()};const r=l=>{let c;e++;try{c=l()}finally{e--,e||o()}return c},i=l=>{e?u.push(l):BF(()=>{t(l)})},a=l=>(...c)=>{i(()=>{l(...c)})},o=()=>{const l=u;u=[],l.length&&BF(()=>{n(()=>{l.forEach(c=>{t(c)})})})};return{batch:r,batchCalls:a,schedule:i,setNotifyFunction:l=>{t=l},setBatchNotifyFunction:l=>{n=l}}}const Hu=MJ();class $P{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),G7(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,e??(F1?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class jJ extends $P{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||ug,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||zJ(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(e,t){const n=K7(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return(t=this.retryer)==null||t.cancel(e),n?n.then(tn).catch(tn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!OP(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}onOnline(){var e;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(e&&this.setOptions(e),!this.options.queryFn){const E=this.observers.find(p=>p.options.queryFn);E&&this.setOptions(E.options)}const a=IJ(),o={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(o);const f=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(o)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:f};if(s(l),(n=this.options.behavior)==null||n.onFetch(l),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((r=l.fetchOptions)==null?void 0:r.meta)){var c;this.dispatch({type:"fetch",meta:(c=l.fetchOptions)==null?void 0:c.meta})}const d=E=>{if(A5(E)&&E.silent||this.dispatch({type:"error",error:E}),!A5(E)){var p,h,g,b;(p=(h=this.cache.config).onError)==null||p.call(h,E,this),(g=(b=this.cache.config).onSettled)==null||g.call(b,this.state.data,E,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=LP({fn:l.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:E=>{var p,h,g,b;if(typeof E>"u"){d(new Error(this.queryHash+" data is undefined"));return}this.setData(E),(p=(h=this.cache.config).onSuccess)==null||p.call(h,E,this),(g=(b=this.cache.config).onSettled)==null||g.call(b,E,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:d,onFail:(E,p)=>{this.dispatch({type:"failed",failureCount:E,error:p})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){const t=n=>{var r,i;switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(r=e.meta)!=null?r:null,fetchStatus:xd(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(i=e.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return A5(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Hu.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}function zJ(u){const e=typeof u.initialData=="function"?u.initialData():u.initialData,t=typeof e<"u",n=t?typeof u.initialDataUpdatedAt=="function"?u.initialDataUpdatedAt():u.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"loading",fetchStatus:"idle"}}class LJ extends C3{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const i=t.queryKey,a=(r=t.queryHash)!=null?r:Xb(i,t);let o=this.get(a);return o||(o=new jJ({cache:this,logger:e.getLogger(),queryKey:i,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(n=>n!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){Hu.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=_i(e,t);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(r=>gF(n,r))}findAll(e,t){const[n]=_i(e,t);return Object.keys(n).length>0?this.queries.filter(r=>gF(n,r)):this.queries}notify(e){Hu.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){Hu.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){Hu.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class $J extends $P{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||ug,this.observers=[],this.state=e.state||UP(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return(e=(t=this.retryer)==null?void 0:t.continue())!=null?e:this.execute()}async execute(){const e=()=>{var C;return this.retryer=LP({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(D,S)=>{this.dispatch({type:"failed",failureCount:D,error:S})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(C=this.options.retry)!=null?C:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t=this.state.status==="loading";try{var n,r,i,a,o,s,f,l;if(!t){var c,d,E,p;this.dispatch({type:"loading",variables:this.options.variables}),await((c=(d=this.mutationCache.config).onMutate)==null?void 0:c.call(d,this.state.variables,this));const D=await((E=(p=this.options).onMutate)==null?void 0:E.call(p,this.state.variables));D!==this.state.context&&this.dispatch({type:"loading",context:D,variables:this.state.variables})}const C=await e();return await((n=(r=this.mutationCache.config).onSuccess)==null?void 0:n.call(r,C,this.state.variables,this.state.context,this)),await((i=(a=this.options).onSuccess)==null?void 0:i.call(a,C,this.state.variables,this.state.context)),await((o=(s=this.mutationCache.config).onSettled)==null?void 0:o.call(s,C,null,this.state.variables,this.state.context,this)),await((f=(l=this.options).onSettled)==null?void 0:f.call(l,C,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:C}),C}catch(C){try{var h,g,b,m,A,y,B,v;throw await((h=(g=this.mutationCache.config).onError)==null?void 0:h.call(g,C,this.state.variables,this.state.context,this)),await((b=(m=this.options).onError)==null?void 0:b.call(m,C,this.state.variables,this.state.context)),await((A=(y=this.mutationCache.config).onSettled)==null?void 0:A.call(y,void 0,C,this.state.variables,this.state.context,this)),await((B=(v=this.options).onSettled)==null?void 0:B.call(v,void 0,C,this.state.variables,this.state.context)),C}finally{this.dispatch({type:"error",error:C})}}}dispatch(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!xd(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...n,...e.state}}};this.state=t(this.state),Hu.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function UP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class UJ extends C3{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new $J({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){Hu.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return typeof e.exact>"u"&&(e.exact=!0),this.mutations.find(t=>AF(e,t))}findAll(e){return this.mutations.filter(t=>AF(e,t))}notify(e){Hu.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=((e=this.resuming)!=null?e:Promise.resolve()).then(()=>{const t=this.mutations.filter(n=>n.state.isPaused);return Hu.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(tn)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function WJ(){return{onFetch:u=>{u.fetchFn=()=>{var e,t,n,r,i,a;const o=(e=u.fetchOptions)==null||(t=e.meta)==null?void 0:t.refetchPage,s=(n=u.fetchOptions)==null||(r=n.meta)==null?void 0:r.fetchMore,f=s==null?void 0:s.pageParam,l=(s==null?void 0:s.direction)==="forward",c=(s==null?void 0:s.direction)==="backward",d=((i=u.state.data)==null?void 0:i.pages)||[],E=((a=u.state.data)==null?void 0:a.pageParams)||[];let p=E,h=!1;const g=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>{var C;if((C=u.signal)!=null&&C.aborted)h=!0;else{var D;(D=u.signal)==null||D.addEventListener("abort",()=>{h=!0})}return u.signal}})},b=u.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+u.options.queryHash+"'")),m=(v,C,D,S)=>(p=S?[C,...p]:[...p,C],S?[D,...v]:[...v,D]),A=(v,C,D,S)=>{if(h)return Promise.reject("Cancelled");if(typeof D>"u"&&!C&&v.length)return Promise.resolve(v);const x={queryKey:u.queryKey,pageParam:D,meta:u.options.meta};g(x);const L=b(x);return Promise.resolve(L).then(G=>m(v,D,G,S))};let y;if(!d.length)y=A([]);else if(l){const v=typeof f<"u",C=v?f:DF(u.options,d);y=A(d,v,C)}else if(c){const v=typeof f<"u",C=v?f:qJ(u.options,d);y=A(d,v,C,!0)}else{p=[];const v=typeof u.options.getNextPageParam>"u";y=(o&&d[0]?o(d[0],0,d):!0)?A([],v,E[0]):Promise.resolve(m([],E[0],d[0]));for(let D=1;D{if(o&&d[D]?o(d[D],D,d):!0){const L=v?E[D]:DF(u.options,S);return A(S,v,L)}return Promise.resolve(m(S,E[D],d[D]))})}return y.then(v=>({pages:v,pageParams:p}))}}}}function DF(u,e){return u.getNextPageParam==null?void 0:u.getNextPageParam(e[e.length-1],e)}function qJ(u,e){return u.getPreviousPageParam==null?void 0:u.getPreviousPageParam(e[0],e)}class HJ{constructor(e={}){this.queryCache=e.queryCache||new LJ,this.mutationCache=e.mutationCache||new UJ,this.logger=e.logger||ug,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=y2.subscribe(()=>{y2.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=v2.subscribe(()=>{v2.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,this.mountCount===0&&((e=this.unsubscribeFocus)==null||e.call(this),this.unsubscribeFocus=void 0,(t=this.unsubscribeOnline)==null||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=_i(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return(n=this.queryCache.find(e,t))==null?void 0:n.state.data}ensureQueryData(e,t,n){const r=P6(e,t,n),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.queryCache.find(e),i=r==null?void 0:r.state.data,a=PJ(t,i);if(typeof a>"u")return;const o=P6(e),s=this.defaultQueryOptions(o);return this.queryCache.build(this,s).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Hu.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e,t){var n;return(n=this.queryCache.find(e,t))==null?void 0:n.state}removeQueries(e,t){const[n]=_i(e,t),r=this.queryCache;Hu.batch(()=>{r.findAll(n).forEach(i=>{r.remove(i)})})}resetQueries(e,t,n){const[r,i]=_i(e,t,n),a=this.queryCache,o={type:"active",...r};return Hu.batch(()=>(a.findAll(r).forEach(s=>{s.reset()}),this.refetchQueries(o,i)))}cancelQueries(e,t,n){const[r,i={}]=_i(e,t,n);typeof i.revert>"u"&&(i.revert=!0);const a=Hu.batch(()=>this.queryCache.findAll(r).map(o=>o.cancel(i)));return Promise.all(a).then(tn).catch(tn)}invalidateQueries(e,t,n){const[r,i]=_i(e,t,n);return Hu.batch(()=>{var a,o;if(this.queryCache.findAll(r).forEach(f=>{f.invalidate()}),r.refetchType==="none")return Promise.resolve();const s={...r,type:(a=(o=r.refetchType)!=null?o:r.type)!=null?a:"active"};return this.refetchQueries(s,i)})}refetchQueries(e,t,n){const[r,i]=_i(e,t,n),a=Hu.batch(()=>this.queryCache.findAll(r).filter(s=>!s.isDisabled()).map(s=>{var f;return s.fetch(void 0,{...i,cancelRefetch:(f=i==null?void 0:i.cancelRefetch)!=null?f:!0,meta:{refetchPage:r.refetchPage}})}));let o=Promise.all(a).then(tn);return i!=null&&i.throwOnError||(o=o.catch(tn)),o}fetchQuery(e,t,n){const r=P6(e,t,n),i=this.defaultQueryOptions(r);typeof i.retry>"u"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(tn).catch(tn)}fetchInfiniteQuery(e,t,n){const r=P6(e,t,n);return r.behavior=WJ(),this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(tn).catch(tn)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find(r=>Xa(e)===Xa(r.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(n=>g2(e,n.queryKey));return t==null?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find(r=>Xa(e)===Xa(r.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(n=>g2(e,n.mutationKey));return t==null?void 0:t.defaultOptions}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(e==null?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=Xb(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.useErrorBoundary>"u"&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(e==null?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class GJ extends C3{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),wF(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Q7(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Q7(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),A2(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&xF(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return KJ(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:(t=e.cancelRefetch)!=null?t:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(tn)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),F1||this.currentResult.isStale||!G7(this.options.staleTime))return;const t=OP(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(F1||this.options.enabled===!1||!G7(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||y2.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,r=this.options,i=this.currentResult,a=this.currentResultState,o=this.currentResultOptions,s=e!==n,f=s?e.state:this.currentQueryInitialState,l=s?this.currentResult:this.previousQueryResult,{state:c}=e;let{dataUpdatedAt:d,error:E,errorUpdatedAt:p,fetchStatus:h,status:g}=c,b=!1,m=!1,A;if(t._optimisticResults){const D=this.hasListeners(),S=!D&&wF(e,t),x=D&&xF(e,n,t,r);(S||x)&&(h=xd(e.options.networkMode)?"fetching":"paused",d||(g="loading")),t._optimisticResults==="isRestoring"&&(h="idle")}if(t.keepPreviousData&&!c.dataUpdatedAt&&l!=null&&l.isSuccess&&g!=="error")A=l.data,d=l.dataUpdatedAt,g=l.status,b=!0;else if(t.select&&typeof c.data<"u")if(i&&c.data===(a==null?void 0:a.data)&&t.select===this.selectFn)A=this.selectResult;else try{this.selectFn=t.select,A=t.select(c.data),A=K7(i==null?void 0:i.data,A,t),this.selectResult=A,this.selectError=null}catch(D){this.selectError=D}else A=c.data;if(typeof t.placeholderData<"u"&&typeof A>"u"&&g==="loading"){let D;if(i!=null&&i.isPlaceholderData&&t.placeholderData===(o==null?void 0:o.placeholderData))D=i.data;else if(D=typeof t.placeholderData=="function"?t.placeholderData():t.placeholderData,t.select&&typeof D<"u")try{D=t.select(D),this.selectError=null}catch(S){this.selectError=S}typeof D<"u"&&(g="success",A=K7(i==null?void 0:i.data,D,t),m=!0)}this.selectError&&(E=this.selectError,A=this.selectResult,p=Date.now(),g="error");const y=h==="fetching",B=g==="loading",v=g==="error";return{status:g,fetchStatus:h,isLoading:B,isSuccess:g==="success",isError:v,isInitialLoading:B&&y,data:A,dataUpdatedAt:d,error:E,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>f.dataUpdateCount||c.errorUpdateCount>f.errorUpdateCount,isFetching:y,isRefetching:y&&!B,isLoadingError:v&&c.dataUpdatedAt===0,isPaused:h==="paused",isPlaceholderData:m,isPreviousData:b,isRefetchError:v&&c.dataUpdatedAt!==0,isStale:eg(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,A2(n,t))return;this.currentResult=n;const r={cache:!0},i=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!this.trackedProps.size)return!0;const s=new Set(o??this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(f=>{const l=f;return this.currentResult[l]!==t[l]&&s.has(l)})};(e==null?void 0:e.listeners)!==!1&&i()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};e.type==="success"?t.onSuccess=!e.manual:e.type==="error"&&!A5(e.error)&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){Hu.batch(()=>{if(e.onSuccess){var t,n,r,i;(t=(n=this.options).onSuccess)==null||t.call(n,this.currentResult.data),(r=(i=this.options).onSettled)==null||r.call(i,this.currentResult.data,null)}else if(e.onError){var a,o,s,f;(a=(o=this.options).onError)==null||a.call(o,this.currentResult.error),(s=(f=this.options).onSettled)==null||s.call(f,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:l})=>{l(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function VJ(u,e){return e.enabled!==!1&&!u.state.dataUpdatedAt&&!(u.state.status==="error"&&e.retryOnMount===!1)}function wF(u,e){return VJ(u,e)||u.state.dataUpdatedAt>0&&Q7(u,e,e.refetchOnMount)}function Q7(u,e,t){if(e.enabled!==!1){const n=typeof t=="function"?t(u):t;return n==="always"||n!==!1&&eg(u,e)}return!1}function xF(u,e,t,n){return t.enabled!==!1&&(u!==e||n.enabled===!1)&&(!t.suspense||u.state.status!=="error")&&eg(u,t)}function eg(u,e){return u.isStaleByTime(e.staleTime)}function KJ(u,e,t){return t.keepPreviousData?!1:t.placeholderData!==void 0?e.isPlaceholderData:!A2(u.getCurrentResult(),e)}let QJ=class extends C3{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),A2(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(t=this.currentMutation)==null||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.currentMutation)==null||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();const t={listeners:!0};e.type==="success"?t.onSuccess=!0:e.type==="error"&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof e<"u"?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:UP(),t={...e,isLoading:e.status==="loading",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){Hu.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(e.onSuccess){var t,n,r,i;(t=(n=this.mutateOptions).onSuccess)==null||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(r=(i=this.mutateOptions).onSettled)==null||r.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(e.onError){var a,o,s,f;(a=(o=this.mutateOptions).onError)==null||a.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(s=(f=this.mutateOptions).onSettled)==null||s.call(f,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}e.listeners&&this.listeners.forEach(({listener:l})=>{l(this.currentResult)})})}};function JJ(u){return{mutationKey:u.options.mutationKey,state:u.state}}function ZJ(u){return{state:u.state,queryKey:u.queryKey,queryHash:u.queryHash}}function YJ(u){return u.state.isPaused}function XJ(u){return u.state.status==="success"}function uZ(u,e={}){const t=[],n=[];if(e.dehydrateMutations!==!1){const r=e.shouldDehydrateMutation||YJ;u.getMutationCache().getAll().forEach(i=>{r(i)&&t.push(JJ(i))})}if(e.dehydrateQueries!==!1){const r=e.shouldDehydrateQuery||XJ;u.getQueryCache().getAll().forEach(i=>{r(i)&&n.push(ZJ(i))})}return{mutations:t,queries:n}}function eZ(u,e,t){if(typeof e!="object"||e===null)return;const n=u.getMutationCache(),r=u.getQueryCache(),i=e.mutations||[],a=e.queries||[];i.forEach(o=>{var s;n.build(u,{...t==null||(s=t.defaultOptions)==null?void 0:s.mutations,mutationKey:o.mutationKey},o.state)}),a.forEach(({queryKey:o,state:s,queryHash:f})=>{var l;const c=r.get(f);if(c){if(c.state.dataUpdatedAtu.transitions.easing.easeInOut,nn.ripplePulsate,({theme:u})=>u.transitions.duration.shorter,nn.child,nn.childLeaving,AQ,G7,({theme:u})=>u.transitions.easing.easeInOut,nn.childPulsate,yQ,({theme:u})=>u.transitions.easing.easeInOut),FQ=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:a}=n,o=L0(n,mQ),[s,f]=w.useState([]),l=w.useRef(0),c=w.useRef(null);w.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=w.useRef(!1),E=w.useRef(0),p=w.useRef(null),h=w.useRef(null);w.useEffect(()=>()=>{E.current&&clearTimeout(E.current)},[]);const g=w.useCallback(y=>{const{pulsate:B,rippleX:v,rippleY:C,rippleSize:F,cb:S}=y;f(x=>[...x,V.jsx(BQ,{classes:{ripple:H0(i.ripple,nn.ripple),rippleVisible:H0(i.rippleVisible,nn.rippleVisible),ripplePulsate:H0(i.ripplePulsate,nn.ripplePulsate),child:H0(i.child,nn.child),childLeaving:H0(i.childLeaving,nn.childLeaving),childPulsate:H0(i.childPulsate,nn.childPulsate)},timeout:G7,pulsate:B,rippleX:v,rippleY:C,rippleSize:F},l.current)]),l.current+=1,c.current=S},[i]),b=w.useCallback((y={},B={},v=()=>{})=>{const{pulsate:C=!1,center:F=r||B.pulsate,fakeElement:S=!1}=B;if((y==null?void 0:y.type)==="mousedown"&&d.current){d.current=!1;return}(y==null?void 0:y.type)==="touchstart"&&(d.current=!0);const x=S?null:h.current,$=x?x.getBoundingClientRect():{width:0,height:0,left:0,top:0};let X,Q,Z;if(F||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)X=Math.round($.width/2),Q=Math.round($.height/2);else{const{clientX:I,clientY:O}=y.touches&&y.touches.length>0?y.touches[0]:y;X=Math.round(I-$.left),Q=Math.round(O-$.top)}if(F)Z=Math.sqrt((2*$.width**2+$.height**2)/3),Z%2===0&&(Z+=1);else{const I=Math.max(Math.abs((x?x.clientWidth:0)-X),X)*2+2,O=Math.max(Math.abs((x?x.clientHeight:0)-Q),Q)*2+2;Z=Math.sqrt(I**2+O**2)}y!=null&&y.touches?p.current===null&&(p.current=()=>{g({pulsate:C,rippleX:X,rippleY:Q,rippleSize:Z,cb:v})},E.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},bQ)):g({pulsate:C,rippleX:X,rippleY:Q,rippleSize:Z,cb:v})},[r,g]),m=w.useCallback(()=>{b({},{pulsate:!0})},[b]),A=w.useCallback((y,B)=>{if(clearTimeout(E.current),(y==null?void 0:y.type)==="touchend"&&p.current){p.current(),p.current=null,E.current=setTimeout(()=>{A(y,B)});return}p.current=null,f(v=>v.length>0?v.slice(1):v),c.current=B},[]);return w.useImperativeHandle(t,()=>({pulsate:m,start:b,stop:A}),[m,b,A]),V.jsx(vQ,N({className:H0(nn.root,i.root,a),ref:h},o,{children:V.jsx(pQ,{component:null,exit:!0,children:s})}))}),DQ=FQ;function wQ(u){return fu("MuiButtonBase",u)}const xQ=Eu("MuiButtonBase",["root","disabled","focusVisible"]),kQ=xQ,_Q=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],SQ=u=>{const{disabled:e,focusVisible:t,focusVisibleClassName:n,classes:r}=u,a=du({root:["root",e&&"disabled",t&&"focusVisible"]},wQ,r);return t&&n&&(a.root+=` ${n}`),a},TQ=$0("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(u,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${kQ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),PQ=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:a,className:o,component:s="button",disabled:f=!1,disableRipple:l=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:E="a",onBlur:p,onClick:h,onContextMenu:g,onDragLeave:b,onFocus:m,onFocusVisible:A,onKeyDown:y,onKeyUp:B,onMouseDown:v,onMouseLeave:C,onMouseUp:F,onTouchEnd:S,onTouchMove:x,onTouchStart:$,tabIndex:X=0,TouchRippleProps:Q,touchRippleRef:Z,type:I}=n,O=L0(n,_Q),W=w.useRef(null),L=w.useRef(null),q=et(L,Z),{isFocusVisibleRef:U,onFocus:i0,onBlur:s0,ref:o0}=VT(),[K,b0]=w.useState(!1);f&&K&&b0(!1),w.useImperativeHandle(r,()=>({focusVisible:()=>{b0(!0),W.current.focus()}}),[]);const[A0,_0]=w.useState(!1);w.useEffect(()=>{_0(!0)},[]);const w0=A0&&!l&&!f;w.useEffect(()=>{K&&d&&!l&&A0&&L.current.pulsate()},[l,d,K,A0]);function B0(m0,G0,N0=c){return of(x0=>(G0&&G0(x0),!N0&&L.current&&L.current[m0](x0),!0))}const _=B0("start",v),T=B0("stop",g),P=B0("stop",b),j=B0("stop",F),z=B0("stop",m0=>{K&&m0.preventDefault(),C&&C(m0)}),G=B0("start",$),t0=B0("stop",S),H=B0("stop",x),J=B0("stop",m0=>{s0(m0),U.current===!1&&b0(!1),p&&p(m0)},!1),u0=of(m0=>{W.current||(W.current=m0.currentTarget),i0(m0),U.current===!0&&(b0(!0),A&&A(m0)),m&&m(m0)}),Y=()=>{const m0=W.current;return s&&s!=="button"&&!(m0.tagName==="A"&&m0.href)},n0=w.useRef(!1),p0=of(m0=>{d&&!n0.current&&K&&L.current&&m0.key===" "&&(n0.current=!0,L.current.stop(m0,()=>{L.current.start(m0)})),m0.target===m0.currentTarget&&Y()&&m0.key===" "&&m0.preventDefault(),y&&y(m0),m0.target===m0.currentTarget&&Y()&&m0.key==="Enter"&&!f&&(m0.preventDefault(),h&&h(m0))}),C0=of(m0=>{d&&m0.key===" "&&L.current&&K&&!m0.defaultPrevented&&(n0.current=!1,L.current.stop(m0,()=>{L.current.pulsate(m0)})),B&&B(m0),h&&m0.target===m0.currentTarget&&Y()&&m0.key===" "&&!m0.defaultPrevented&&h(m0)});let y0=s;y0==="button"&&(O.href||O.to)&&(y0=E);const g0={};y0==="button"?(g0.type=I===void 0?"button":I,g0.disabled=f):(!O.href&&!O.to&&(g0.role="button"),f&&(g0["aria-disabled"]=f));const F0=et(t,o0,W),c0=N({},n,{centerRipple:i,component:s,disabled:f,disableRipple:l,disableTouchRipple:c,focusRipple:d,tabIndex:X,focusVisible:K}),d0=SQ(c0);return V.jsxs(TQ,N({as:y0,className:H0(d0.root,o),ownerState:c0,onBlur:J,onClick:h,onContextMenu:T,onFocus:u0,onKeyDown:p0,onKeyUp:C0,onMouseDown:_,onMouseLeave:z,onMouseUp:j,onDragLeave:P,onTouchEnd:t0,onTouchMove:H,onTouchStart:G,ref:F0,tabIndex:f?-1:X,type:I},g0,O,{children:[a,w0?V.jsx(DQ,N({ref:q,center:i},Q)):null]}))}),IQ=PQ;function OQ(u){return fu("MuiButton",u)}const RQ=Eu("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),T6=RQ,NQ=w.createContext({}),MQ=NQ,jQ=w.createContext(void 0),zQ=jQ,LQ=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],$Q=u=>{const{color:e,disableElevation:t,fullWidth:n,size:r,variant:i,classes:a}=u,o={root:["root",i,`${i}${K0(e)}`,`size${K0(r)}`,`${i}Size${K0(r)}`,e==="inherit"&&"colorInherit",t&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${K0(r)}`],endIcon:["endIcon",`iconSize${K0(r)}`]},s=du(o,OQ,a);return N({},a,s)},kP=u=>N({},u.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},u.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},u.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),UQ=$0(IQ,{shouldForwardProp:u=>Vn(u)||u==="classes",name:"MuiButton",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[t.variant],e[`${t.variant}${K0(t.color)}`],e[`size${K0(t.size)}`],e[`${t.variant}Size${K0(t.size)}`],t.color==="inherit"&&e.colorInherit,t.disableElevation&&e.disableElevation,t.fullWidth&&e.fullWidth]}})(({theme:u,ownerState:e})=>{var t,n;const r=u.palette.mode==="light"?u.palette.grey[300]:u.palette.grey[800],i=u.palette.mode==="light"?u.palette.grey.A100:u.palette.grey[700];return N({},u.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(u.vars||u).shape.borderRadius,transition:u.transitions.create(["background-color","box-shadow","border-color","color"],{duration:u.transitions.duration.short}),"&:hover":N({textDecoration:"none",backgroundColor:u.vars?`rgba(${u.vars.palette.text.primaryChannel} / ${u.vars.palette.action.hoverOpacity})`:sf(u.palette.text.primary,u.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="text"&&e.color!=="inherit"&&{backgroundColor:u.vars?`rgba(${u.vars.palette[e.color].mainChannel} / ${u.vars.palette.action.hoverOpacity})`:sf(u.palette[e.color].main,u.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="outlined"&&e.color!=="inherit"&&{border:`1px solid ${(u.vars||u).palette[e.color].main}`,backgroundColor:u.vars?`rgba(${u.vars.palette[e.color].mainChannel} / ${u.vars.palette.action.hoverOpacity})`:sf(u.palette[e.color].main,u.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="contained"&&{backgroundColor:u.vars?u.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(u.vars||u).shadows[4],"@media (hover: none)":{boxShadow:(u.vars||u).shadows[2],backgroundColor:(u.vars||u).palette.grey[300]}},e.variant==="contained"&&e.color!=="inherit"&&{backgroundColor:(u.vars||u).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(u.vars||u).palette[e.color].main}}),"&:active":N({},e.variant==="contained"&&{boxShadow:(u.vars||u).shadows[8]}),[`&.${T6.focusVisible}`]:N({},e.variant==="contained"&&{boxShadow:(u.vars||u).shadows[6]}),[`&.${T6.disabled}`]:N({color:(u.vars||u).palette.action.disabled},e.variant==="outlined"&&{border:`1px solid ${(u.vars||u).palette.action.disabledBackground}`},e.variant==="contained"&&{color:(u.vars||u).palette.action.disabled,boxShadow:(u.vars||u).shadows[0],backgroundColor:(u.vars||u).palette.action.disabledBackground})},e.variant==="text"&&{padding:"6px 8px"},e.variant==="text"&&e.color!=="inherit"&&{color:(u.vars||u).palette[e.color].main},e.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},e.variant==="outlined"&&e.color!=="inherit"&&{color:(u.vars||u).palette[e.color].main,border:u.vars?`1px solid rgba(${u.vars.palette[e.color].mainChannel} / 0.5)`:`1px solid ${sf(u.palette[e.color].main,.5)}`},e.variant==="contained"&&{color:u.vars?u.vars.palette.text.primary:(t=(n=u.palette).getContrastText)==null?void 0:t.call(n,u.palette.grey[300]),backgroundColor:u.vars?u.vars.palette.Button.inheritContainedBg:r,boxShadow:(u.vars||u).shadows[2]},e.variant==="contained"&&e.color!=="inherit"&&{color:(u.vars||u).palette[e.color].contrastText,backgroundColor:(u.vars||u).palette[e.color].main},e.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},e.size==="small"&&e.variant==="text"&&{padding:"4px 5px",fontSize:u.typography.pxToRem(13)},e.size==="large"&&e.variant==="text"&&{padding:"8px 11px",fontSize:u.typography.pxToRem(15)},e.size==="small"&&e.variant==="outlined"&&{padding:"3px 9px",fontSize:u.typography.pxToRem(13)},e.size==="large"&&e.variant==="outlined"&&{padding:"7px 21px",fontSize:u.typography.pxToRem(15)},e.size==="small"&&e.variant==="contained"&&{padding:"4px 10px",fontSize:u.typography.pxToRem(13)},e.size==="large"&&e.variant==="contained"&&{padding:"8px 22px",fontSize:u.typography.pxToRem(15)},e.fullWidth&&{width:"100%"})},({ownerState:u})=>u.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${T6.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${T6.disabled}`]:{boxShadow:"none"}}),WQ=$0("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.startIcon,e[`iconSize${K0(t.size)}`]]}})(({ownerState:u})=>N({display:"inherit",marginRight:8,marginLeft:-4},u.size==="small"&&{marginLeft:-2},kP(u))),qQ=$0("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.endIcon,e[`iconSize${K0(t.size)}`]]}})(({ownerState:u})=>N({display:"inherit",marginRight:-4,marginLeft:8},u.size==="small"&&{marginRight:-2},kP(u))),HQ=w.forwardRef(function(e,t){const n=w.useContext(MQ),r=w.useContext(zQ),i=Ob(n,e),a=pu({props:i,name:"MuiButton"}),{children:o,color:s="primary",component:f="button",className:l,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:E=!1,endIcon:p,focusVisibleClassName:h,fullWidth:g=!1,size:b="medium",startIcon:m,type:A,variant:y="text"}=a,B=L0(a,LQ),v=N({},a,{color:s,component:f,disabled:c,disableElevation:d,disableFocusRipple:E,fullWidth:g,size:b,type:A,variant:y}),C=$Q(v),F=m&&V.jsx(WQ,{className:C.startIcon,ownerState:v,children:m}),S=p&&V.jsx(qQ,{className:C.endIcon,ownerState:v,children:p}),x=r||"";return V.jsxs(UQ,N({ownerState:v,className:H0(n.className,C.root,l,x),component:f,disabled:c,focusRipple:!E,focusVisibleClassName:H0(C.focusVisible,h),ref:t,type:A},B,{classes:C,children:[F,o,S]}))}),Ca=HQ,GQ=u=>{let e;return u<1?e=5.11916*u**2:e=4.5*Math.log(u+1)+2,(e/100).toFixed(2)},pF=GQ;function xd(){const u=vd(Dd);return u[Ho]||u}function VQ(u){return fu("MuiPaper",u)}Eu("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const KQ=["className","component","elevation","square","variant"],QQ=u=>{const{square:e,elevation:t,variant:n,classes:r}=u,i={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${t}`]};return du(i,VQ,r)},JQ=$0("div",{name:"MuiPaper",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[t.variant],!t.square&&e.rounded,t.variant==="elevation"&&e[`elevation${t.elevation}`]]}})(({theme:u,ownerState:e})=>{var t;return N({backgroundColor:(u.vars||u).palette.background.paper,color:(u.vars||u).palette.text.primary,transition:u.transitions.create("box-shadow")},!e.square&&{borderRadius:u.shape.borderRadius},e.variant==="outlined"&&{border:`1px solid ${(u.vars||u).palette.divider}`},e.variant==="elevation"&&N({boxShadow:(u.vars||u).shadows[e.elevation]},!u.vars&&u.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${sf("#fff",pF(e.elevation))}, ${sf("#fff",pF(e.elevation))})`},u.vars&&{backgroundImage:(t=u.vars.overlays)==null?void 0:t[e.elevation]}))}),ZQ=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiPaper"}),{className:r,component:i="div",elevation:a=1,square:o=!1,variant:s="elevation"}=n,f=L0(n,KQ),l=N({},n,{component:i,elevation:a,square:o,variant:s}),c=QQ(l);return V.jsx(JQ,N({as:i,ownerState:l,className:H0(c.root,r),ref:t},f))}),Xb=ZQ;function YQ(u){return fu("MuiAppBar",u)}Eu("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const XQ=["className","color","enableColorOnDark","position"],uJ=u=>{const{color:e,position:t,classes:n}=u,r={root:["root",`color${K0(e)}`,`position${K0(t)}`]};return du(r,YQ,n)},P6=(u,e)=>u?`${u==null?void 0:u.replace(")","")}, ${e})`:e,eJ=$0(Xb,{name:"MuiAppBar",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[`position${K0(t.position)}`],e[`color${K0(t.color)}`]]}})(({theme:u,ownerState:e})=>{const t=u.palette.mode==="light"?u.palette.grey[100]:u.palette.grey[900];return N({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},e.position==="fixed"&&{position:"fixed",zIndex:(u.vars||u).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},e.position==="absolute"&&{position:"absolute",zIndex:(u.vars||u).zIndex.appBar,top:0,left:"auto",right:0},e.position==="sticky"&&{position:"sticky",zIndex:(u.vars||u).zIndex.appBar,top:0,left:"auto",right:0},e.position==="static"&&{position:"static"},e.position==="relative"&&{position:"relative"},!u.vars&&N({},e.color==="default"&&{backgroundColor:t,color:u.palette.getContrastText(t)},e.color&&e.color!=="default"&&e.color!=="inherit"&&e.color!=="transparent"&&{backgroundColor:u.palette[e.color].main,color:u.palette[e.color].contrastText},e.color==="inherit"&&{color:"inherit"},u.palette.mode==="dark"&&!e.enableColorOnDark&&{backgroundColor:null,color:null},e.color==="transparent"&&N({backgroundColor:"transparent",color:"inherit"},u.palette.mode==="dark"&&{backgroundImage:"none"})),u.vars&&N({},e.color==="default"&&{"--AppBar-background":e.enableColorOnDark?u.vars.palette.AppBar.defaultBg:P6(u.vars.palette.AppBar.darkBg,u.vars.palette.AppBar.defaultBg),"--AppBar-color":e.enableColorOnDark?u.vars.palette.text.primary:P6(u.vars.palette.AppBar.darkColor,u.vars.palette.text.primary)},e.color&&!e.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":e.enableColorOnDark?u.vars.palette[e.color].main:P6(u.vars.palette.AppBar.darkBg,u.vars.palette[e.color].main),"--AppBar-color":e.enableColorOnDark?u.vars.palette[e.color].contrastText:P6(u.vars.palette.AppBar.darkColor,u.vars.palette[e.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:e.color==="inherit"?"inherit":"var(--AppBar-color)"},e.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),tJ=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiAppBar"}),{className:r,color:i="primary",enableColorOnDark:a=!1,position:o="fixed"}=n,s=L0(n,XQ),f=N({},n,{color:i,position:o,enableColorOnDark:a}),l=uJ(f);return V.jsx(eJ,N({square:!0,component:"header",ownerState:f,elevation:4,className:H0(l.root,r,o==="fixed"&&"mui-fixed"),ref:t},s))}),nJ=tJ;function rJ(u){return fu("MuiToolbar",u)}Eu("MuiToolbar",["root","gutters","regular","dense"]);const iJ=["className","component","disableGutters","variant"],aJ=u=>{const{classes:e,disableGutters:t,variant:n}=u;return du({root:["root",!t&&"gutters",n]},rJ,e)},oJ=$0("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,!t.disableGutters&&e.gutters,e[t.variant]]}})(({theme:u,ownerState:e})=>N({position:"relative",display:"flex",alignItems:"center"},!e.disableGutters&&{paddingLeft:u.spacing(2),paddingRight:u.spacing(2),[u.breakpoints.up("sm")]:{paddingLeft:u.spacing(3),paddingRight:u.spacing(3)}},e.variant==="dense"&&{minHeight:48}),({theme:u,ownerState:e})=>e.variant==="regular"&&u.mixins.toolbar),sJ=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiToolbar"}),{className:r,component:i="div",disableGutters:a=!1,variant:o="regular"}=n,s=L0(n,iJ),f=N({},n,{component:i,disableGutters:a,variant:o}),l=aJ(f);return V.jsx(oJ,N({as:i,className:H0(l.root,r),ref:t,ownerState:f},s))}),fJ=sJ,lJ=pK({createStyledComponent:$0("div",{name:"MuiContainer",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[`maxWidth${K0(String(t.maxWidth))}`],t.fixed&&e.fixed,t.disableGutters&&e.disableGutters]}}),useThemeProps:u=>pu({props:u,name:"MuiContainer"})}),cJ=lJ,dJ=["theme"];function EJ(u){let{theme:e}=u,t=L0(u,dJ);const n=e[Ho];return V.jsx(sK,N({},t,{themeId:n?Ho:void 0,theme:n||e}))}const pJ=Eu("MuiBox",["root"]),hJ=pJ,CJ=Jb(),mJ=zV({themeId:Ho,defaultTheme:CJ,defaultClassName:hJ.root,generateClassName:QT.generate}),_P=mJ,bJ="/real-token/Logo.svg",gJ="modulepreload",AJ=function(u){return"/real-token/"+u},hF={},q0=function(e,t,n){if(!t||t.length===0)return e();const r=document.getElementsByTagName("link");return Promise.all(t.map(i=>{if(i=AJ(i),i in hF)return;hF[i]=!0;const a=i.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(!!n)for(let l=r.length-1;l>=0;l--){const c=r[l];if(c.href===i&&(!a||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${o}`))return;const f=document.createElement("link");if(f.rel=a?"stylesheet":gJ,a||(f.as="script",f.crossOrigin=""),f.href=i,document.head.appendChild(f),a)return new Promise((l,c)=>{f.addEventListener("load",l),f.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};var CF='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',yJ={rounded:`SFRounded, ui-rounded, "SF Pro Rounded", ${CF}`,system:CF},al={large:{actionButton:"9999px",connectButton:"12px",modal:"24px",modalMobile:"28px"},medium:{actionButton:"10px",connectButton:"8px",modal:"16px",modalMobile:"18px"},none:{actionButton:"0px",connectButton:"0px",modal:"0px",modalMobile:"0px"},small:{actionButton:"4px",connectButton:"4px",modal:"8px",modalMobile:"8px"}},vJ={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},BJ=({borderRadius:u="large",fontStack:e="rounded",overlayBlur:t="none"})=>({blurs:{modalOverlay:vJ[t].modalOverlay},fonts:{body:yJ[e]},radii:{actionButton:al[u].actionButton,connectButton:al[u].connectButton,menuButton:al[u].connectButton,modal:al[u].modal,modalMobile:al[u].modalMobile}}),SP={blue:{accentColor:"#0E76FD",accentColorForeground:"#FFF"},green:{accentColor:"#1DB847",accentColorForeground:"#FFF"},orange:{accentColor:"#FF801F",accentColorForeground:"#FFF"},pink:{accentColor:"#FF5CA0",accentColorForeground:"#FFF"},purple:{accentColor:"#5F5AFA",accentColorForeground:"#FFF"},red:{accentColor:"#FA423C",accentColorForeground:"#FFF"}},mF=SP.blue,TP=({accentColor:u=mF.accentColor,accentColorForeground:e=mF.accentColorForeground,...t}={})=>({...BJ(t),colors:{accentColor:u,accentColorForeground:e,actionButtonBorder:"rgba(0, 0, 0, 0.04)",actionButtonBorderMobile:"rgba(0, 0, 0, 0.06)",actionButtonSecondaryBackground:"rgba(0, 0, 0, 0.06)",closeButton:"rgba(60, 66, 66, 0.8)",closeButtonBackground:"rgba(0, 0, 0, 0.06)",connectButtonBackground:"#FFF",connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06))",connectButtonText:"#25292E",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(255, 255, 255, 0) 9.49%, rgba(171, 171, 171, 0.04) 71.04%), #FFFFFF",downloadTopCardBackground:"linear-gradient(126deg, rgba(171, 171, 171, 0.2) 9.49%, rgba(255, 255, 255, 0) 71.04%), #FFFFFF",error:"#FF494A",generalBorder:"rgba(0, 0, 0, 0.06)",generalBorderDim:"rgba(0, 0, 0, 0.03)",menuItemBackground:"rgba(60, 66, 66, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.3)",modalBackground:"#FFF",modalBorder:"transparent",modalText:"#25292E",modalTextDim:"rgba(60, 66, 66, 0.3)",modalTextSecondary:"rgba(60, 66, 66, 0.6)",profileAction:"#FFF",profileActionHover:"rgba(255, 255, 255, 0.5)",profileForeground:"rgba(60, 66, 66, 0.06)",selectedOptionBorder:"rgba(60, 66, 66, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.12)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}});TP.accentColors=SP;function FJ(u,e){return Object.defineProperty(u,"__recipe__",{value:e,writable:!1}),u}var PP=FJ;function IP(u){var{conditions:e}=u;if(!e)throw new Error("Styles have no conditions");function t(n){if(typeof n=="string"||typeof n=="number"||typeof n=="boolean"){if(!e.defaultCondition)throw new Error("No default condition");return{[e.defaultCondition]:n}}if(Array.isArray(n)){if(!("responsiveArray"in e))throw new Error("Responsive arrays are not supported");var r={};for(var i in e.responsiveArray)n[i]!=null&&(r[e.responsiveArray[i]]=n[i]);return r}return n}return PP(t,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createNormalizeValueFn",args:[{conditions:u.conditions}]})}function DJ(u){var{conditions:e}=u;if(!e)throw new Error("Styles have no conditions");var t=IP(u);function n(r,i){if(typeof r=="string"||typeof r=="number"||typeof r=="boolean"){if(!e.defaultCondition)throw new Error("No default condition");return i(r,e.defaultCondition)}var a=Array.isArray(r)?t(r):r,o={};for(var s in a)a[s]!=null&&(o[s]=i(a[s],s));return o}return PP(n,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:u.conditions}]})}function wJ(u,e,t){return e in u?Object.defineProperty(u,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):u[e]=t,u}function bF(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(u);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(u,r).enumerable})),t.push.apply(t,n)}return t}function v8(u){for(var e=1;efunction(){for(var e=arguments.length,t=new Array(e),n=0;ns.styles)),i=Object.keys(r),a=i.filter(s=>"mappings"in r[s]),o=s=>{var f=[],l={},c=v8({},s),d=!1;for(var E of a){var p=s[E];if(p!=null){var h=r[E];d=!0;for(var g of h.mappings)l[g]=p,c[g]==null&&delete c[g]}}var b=d?v8(v8({},l),c):s;for(var m in b){var A=b[m],y=r[m];try{if(y.mappings)continue;if(typeof A=="string"||typeof A=="number")f.push(y.values[A].defaultClass);else if(Array.isArray(A))for(var B=0;Bu,_J=function(){return xJ(kJ)(...arguments)};function SJ({storage:u,key:e="REACT_QUERY_OFFLINE_CACHE",throttleTime:t=1e3,serialize:n=JSON.stringify,deserialize:r=JSON.parse,retry:i}){if(u){const a=o=>{try{u.setItem(e,n(o));return}catch(s){return s}};return{persistClient:TJ(o=>{let s=o,f=a(s),l=0;for(;f&&s;)l++,s=i==null?void 0:i({persistedClient:s,error:f,errorCount:l}),s&&(f=a(s))},t),restoreClient:()=>{const o=u.getItem(e);if(o)return r(o)},removeClient:()=>{u.removeItem(e)}}}return{persistClient:gF,restoreClient:()=>{},removeClient:gF}}function TJ(u,e=100){let t=null,n;return function(...r){n=r,t===null&&(t=setTimeout(()=>{u(...n),t=null},e))}}function gF(){}class C3{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const D1=typeof window>"u"||"Deno"in window;function tn(){}function PJ(u,e){return typeof u=="function"?u(e):u}function V7(u){return typeof u=="number"&&u>=0&&u!==1/0}function OP(u,e){return Math.max(u+(e||0)-Date.now(),0)}function I6(u,e,t){return Ac(u)?typeof e=="function"?{...t,queryKey:u,queryFn:e}:{...e,queryKey:u}:u}function RP(u,e,t){return Ac(u)?typeof e=="function"?{...t,mutationKey:u,mutationFn:e}:{...e,mutationKey:u}:typeof u=="function"?{...e,mutationFn:u}:{...u}}function Si(u,e,t){return Ac(u)?[{...e,queryKey:u},t]:[u||{},e]}function AF(u,e){const{type:t="all",exact:n,fetchStatus:r,predicate:i,queryKey:a,stale:o}=u;if(Ac(a)){if(n){if(e.queryHash!==ug(a,e.options))return!1}else if(!A2(e.queryKey,a))return!1}if(t!=="all"){const s=e.isActive();if(t==="active"&&!s||t==="inactive"&&s)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||typeof r<"u"&&r!==e.state.fetchStatus||i&&!i(e))}function yF(u,e){const{exact:t,fetching:n,predicate:r,mutationKey:i}=u;if(Ac(i)){if(!e.options.mutationKey)return!1;if(t){if(uo(e.options.mutationKey)!==uo(i))return!1}else if(!A2(e.options.mutationKey,i))return!1}return!(typeof n=="boolean"&&e.state.status==="loading"!==n||r&&!r(e))}function ug(u,e){return((e==null?void 0:e.queryKeyHashFn)||uo)(u)}function uo(u){return JSON.stringify(u,(e,t)=>K7(t)?Object.keys(t).sort().reduce((n,r)=>(n[r]=t[r],n),{}):t)}function A2(u,e){return NP(u,e)}function NP(u,e){return u===e?!0:typeof u!=typeof e?!1:u&&e&&typeof u=="object"&&typeof e=="object"?!Object.keys(e).some(t=>!NP(u[t],e[t])):!1}function MP(u,e){if(u===e)return u;const t=vF(u)&&vF(e);if(t||K7(u)&&K7(e)){const n=t?u.length:Object.keys(u).length,r=t?e:Object.keys(e),i=r.length,a=t?[]:{};let o=0;for(let s=0;s"u")return!0;const t=e.prototype;return!(!BF(t)||!t.hasOwnProperty("isPrototypeOf"))}function BF(u){return Object.prototype.toString.call(u)==="[object Object]"}function Ac(u){return Array.isArray(u)}function jP(u){return new Promise(e=>{setTimeout(e,u)})}function FF(u){jP(0).then(u)}function IJ(){if(typeof AbortController=="function")return new AbortController}function Q7(u,e,t){return t.isDataEqual!=null&&t.isDataEqual(u,e)?u:typeof t.structuralSharing=="function"?t.structuralSharing(u,e):t.structuralSharing!==!1?MP(u,e):e}class OJ extends C3{constructor(){super(),this.setup=e=>{if(!D1&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const v2=new OJ,DF=["online","offline"];class RJ extends C3{constructor(){super(),this.setup=e=>{if(!D1&&window.addEventListener){const t=()=>e();return DF.forEach(n=>{window.addEventListener(n,t,!1)}),()=>{DF.forEach(n=>{window.removeEventListener(n,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const B2=new RJ;function NJ(u){return Math.min(1e3*2**u,3e4)}function kd(u){return(u??"online")==="online"?B2.isOnline():!0}class zP{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}}function y5(u){return u instanceof zP}function LP(u){let e=!1,t=0,n=!1,r,i,a;const o=new Promise((g,b)=>{i=g,a=b}),s=g=>{n||(E(new zP(g)),u.abort==null||u.abort())},f=()=>{e=!0},l=()=>{e=!1},c=()=>!v2.isFocused()||u.networkMode!=="always"&&!B2.isOnline(),d=g=>{n||(n=!0,u.onSuccess==null||u.onSuccess(g),r==null||r(),i(g))},E=g=>{n||(n=!0,u.onError==null||u.onError(g),r==null||r(),a(g))},p=()=>new Promise(g=>{r=b=>{const m=n||!c();return m&&g(b),m},u.onPause==null||u.onPause()}).then(()=>{r=void 0,n||u.onContinue==null||u.onContinue()}),h=()=>{if(n)return;let g;try{g=u.fn()}catch(b){g=Promise.reject(b)}Promise.resolve(g).then(d).catch(b=>{var m,A;if(n)return;const y=(m=u.retry)!=null?m:3,B=(A=u.retryDelay)!=null?A:NJ,v=typeof B=="function"?B(t,b):B,C=y===!0||typeof y=="number"&&t{if(c())return p()}).then(()=>{e?E(b):h()})})};return kd(u.networkMode)?h():p().then(h),{promise:o,cancel:s,continue:()=>(r==null?void 0:r())?o:Promise.resolve(),cancelRetry:f,continueRetry:l}}const eg=console;function MJ(){let u=[],e=0,t=l=>{l()},n=l=>{l()};const r=l=>{let c;e++;try{c=l()}finally{e--,e||o()}return c},i=l=>{e?u.push(l):FF(()=>{t(l)})},a=l=>(...c)=>{i(()=>{l(...c)})},o=()=>{const l=u;u=[],l.length&&FF(()=>{n(()=>{l.forEach(c=>{t(c)})})})};return{batch:r,batchCalls:a,schedule:i,setNotifyFunction:l=>{t=l},setBatchNotifyFunction:l=>{n=l}}}const Hu=MJ();class $P{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),V7(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,e??(D1?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class jJ extends $P{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||eg,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||zJ(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(e,t){const n=Q7(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return(t=this.retryer)==null||t.cancel(e),n?n.then(tn).catch(tn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!OP(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}onOnline(){var e;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(e&&this.setOptions(e),!this.options.queryFn){const E=this.observers.find(p=>p.options.queryFn);E&&this.setOptions(E.options)}const a=IJ(),o={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(o);const f=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(o)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:f};if(s(l),(n=this.options.behavior)==null||n.onFetch(l),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((r=l.fetchOptions)==null?void 0:r.meta)){var c;this.dispatch({type:"fetch",meta:(c=l.fetchOptions)==null?void 0:c.meta})}const d=E=>{if(y5(E)&&E.silent||this.dispatch({type:"error",error:E}),!y5(E)){var p,h,g,b;(p=(h=this.cache.config).onError)==null||p.call(h,E,this),(g=(b=this.cache.config).onSettled)==null||g.call(b,this.state.data,E,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=LP({fn:l.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:E=>{var p,h,g,b;if(typeof E>"u"){d(new Error(this.queryHash+" data is undefined"));return}this.setData(E),(p=(h=this.cache.config).onSuccess)==null||p.call(h,E,this),(g=(b=this.cache.config).onSettled)==null||g.call(b,E,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:d,onFail:(E,p)=>{this.dispatch({type:"failed",failureCount:E,error:p})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){const t=n=>{var r,i;switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(r=e.meta)!=null?r:null,fetchStatus:kd(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(i=e.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return y5(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Hu.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}function zJ(u){const e=typeof u.initialData=="function"?u.initialData():u.initialData,t=typeof e<"u",n=t?typeof u.initialDataUpdatedAt=="function"?u.initialDataUpdatedAt():u.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"loading",fetchStatus:"idle"}}class LJ extends C3{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const i=t.queryKey,a=(r=t.queryHash)!=null?r:ug(i,t);let o=this.get(a);return o||(o=new jJ({cache:this,logger:e.getLogger(),queryKey:i,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(n=>n!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){Hu.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Si(e,t);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(r=>AF(n,r))}findAll(e,t){const[n]=Si(e,t);return Object.keys(n).length>0?this.queries.filter(r=>AF(n,r)):this.queries}notify(e){Hu.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){Hu.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){Hu.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class $J extends $P{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||eg,this.observers=[],this.state=e.state||UP(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return(e=(t=this.retryer)==null?void 0:t.continue())!=null?e:this.execute()}async execute(){const e=()=>{var C;return this.retryer=LP({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(F,S)=>{this.dispatch({type:"failed",failureCount:F,error:S})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(C=this.options.retry)!=null?C:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t=this.state.status==="loading";try{var n,r,i,a,o,s,f,l;if(!t){var c,d,E,p;this.dispatch({type:"loading",variables:this.options.variables}),await((c=(d=this.mutationCache.config).onMutate)==null?void 0:c.call(d,this.state.variables,this));const F=await((E=(p=this.options).onMutate)==null?void 0:E.call(p,this.state.variables));F!==this.state.context&&this.dispatch({type:"loading",context:F,variables:this.state.variables})}const C=await e();return await((n=(r=this.mutationCache.config).onSuccess)==null?void 0:n.call(r,C,this.state.variables,this.state.context,this)),await((i=(a=this.options).onSuccess)==null?void 0:i.call(a,C,this.state.variables,this.state.context)),await((o=(s=this.mutationCache.config).onSettled)==null?void 0:o.call(s,C,null,this.state.variables,this.state.context,this)),await((f=(l=this.options).onSettled)==null?void 0:f.call(l,C,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:C}),C}catch(C){try{var h,g,b,m,A,y,B,v;throw await((h=(g=this.mutationCache.config).onError)==null?void 0:h.call(g,C,this.state.variables,this.state.context,this)),await((b=(m=this.options).onError)==null?void 0:b.call(m,C,this.state.variables,this.state.context)),await((A=(y=this.mutationCache.config).onSettled)==null?void 0:A.call(y,void 0,C,this.state.variables,this.state.context,this)),await((B=(v=this.options).onSettled)==null?void 0:B.call(v,void 0,C,this.state.variables,this.state.context)),C}finally{this.dispatch({type:"error",error:C})}}}dispatch(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!kd(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...n,...e.state}}};this.state=t(this.state),Hu.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function UP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class UJ extends C3{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new $J({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){Hu.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return typeof e.exact>"u"&&(e.exact=!0),this.mutations.find(t=>yF(e,t))}findAll(e){return this.mutations.filter(t=>yF(e,t))}notify(e){Hu.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=((e=this.resuming)!=null?e:Promise.resolve()).then(()=>{const t=this.mutations.filter(n=>n.state.isPaused);return Hu.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(tn)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function WJ(){return{onFetch:u=>{u.fetchFn=()=>{var e,t,n,r,i,a;const o=(e=u.fetchOptions)==null||(t=e.meta)==null?void 0:t.refetchPage,s=(n=u.fetchOptions)==null||(r=n.meta)==null?void 0:r.fetchMore,f=s==null?void 0:s.pageParam,l=(s==null?void 0:s.direction)==="forward",c=(s==null?void 0:s.direction)==="backward",d=((i=u.state.data)==null?void 0:i.pages)||[],E=((a=u.state.data)==null?void 0:a.pageParams)||[];let p=E,h=!1;const g=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>{var C;if((C=u.signal)!=null&&C.aborted)h=!0;else{var F;(F=u.signal)==null||F.addEventListener("abort",()=>{h=!0})}return u.signal}})},b=u.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+u.options.queryHash+"'")),m=(v,C,F,S)=>(p=S?[C,...p]:[...p,C],S?[F,...v]:[...v,F]),A=(v,C,F,S)=>{if(h)return Promise.reject("Cancelled");if(typeof F>"u"&&!C&&v.length)return Promise.resolve(v);const x={queryKey:u.queryKey,pageParam:F,meta:u.options.meta};g(x);const $=b(x);return Promise.resolve($).then(Q=>m(v,F,Q,S))};let y;if(!d.length)y=A([]);else if(l){const v=typeof f<"u",C=v?f:wF(u.options,d);y=A(d,v,C)}else if(c){const v=typeof f<"u",C=v?f:qJ(u.options,d);y=A(d,v,C,!0)}else{p=[];const v=typeof u.options.getNextPageParam>"u";y=(o&&d[0]?o(d[0],0,d):!0)?A([],v,E[0]):Promise.resolve(m([],E[0],d[0]));for(let F=1;F{if(o&&d[F]?o(d[F],F,d):!0){const $=v?E[F]:wF(u.options,S);return A(S,v,$)}return Promise.resolve(m(S,E[F],d[F]))})}return y.then(v=>({pages:v,pageParams:p}))}}}}function wF(u,e){return u.getNextPageParam==null?void 0:u.getNextPageParam(e[e.length-1],e)}function qJ(u,e){return u.getPreviousPageParam==null?void 0:u.getPreviousPageParam(e[0],e)}class HJ{constructor(e={}){this.queryCache=e.queryCache||new LJ,this.mutationCache=e.mutationCache||new UJ,this.logger=e.logger||eg,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=v2.subscribe(()=>{v2.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=B2.subscribe(()=>{B2.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,this.mountCount===0&&((e=this.unsubscribeFocus)==null||e.call(this),this.unsubscribeFocus=void 0,(t=this.unsubscribeOnline)==null||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=Si(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return(n=this.queryCache.find(e,t))==null?void 0:n.state.data}ensureQueryData(e,t,n){const r=I6(e,t,n),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.queryCache.find(e),i=r==null?void 0:r.state.data,a=PJ(t,i);if(typeof a>"u")return;const o=I6(e),s=this.defaultQueryOptions(o);return this.queryCache.build(this,s).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Hu.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e,t){var n;return(n=this.queryCache.find(e,t))==null?void 0:n.state}removeQueries(e,t){const[n]=Si(e,t),r=this.queryCache;Hu.batch(()=>{r.findAll(n).forEach(i=>{r.remove(i)})})}resetQueries(e,t,n){const[r,i]=Si(e,t,n),a=this.queryCache,o={type:"active",...r};return Hu.batch(()=>(a.findAll(r).forEach(s=>{s.reset()}),this.refetchQueries(o,i)))}cancelQueries(e,t,n){const[r,i={}]=Si(e,t,n);typeof i.revert>"u"&&(i.revert=!0);const a=Hu.batch(()=>this.queryCache.findAll(r).map(o=>o.cancel(i)));return Promise.all(a).then(tn).catch(tn)}invalidateQueries(e,t,n){const[r,i]=Si(e,t,n);return Hu.batch(()=>{var a,o;if(this.queryCache.findAll(r).forEach(f=>{f.invalidate()}),r.refetchType==="none")return Promise.resolve();const s={...r,type:(a=(o=r.refetchType)!=null?o:r.type)!=null?a:"active"};return this.refetchQueries(s,i)})}refetchQueries(e,t,n){const[r,i]=Si(e,t,n),a=Hu.batch(()=>this.queryCache.findAll(r).filter(s=>!s.isDisabled()).map(s=>{var f;return s.fetch(void 0,{...i,cancelRefetch:(f=i==null?void 0:i.cancelRefetch)!=null?f:!0,meta:{refetchPage:r.refetchPage}})}));let o=Promise.all(a).then(tn);return i!=null&&i.throwOnError||(o=o.catch(tn)),o}fetchQuery(e,t,n){const r=I6(e,t,n),i=this.defaultQueryOptions(r);typeof i.retry>"u"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(tn).catch(tn)}fetchInfiniteQuery(e,t,n){const r=I6(e,t,n);return r.behavior=WJ(),this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(tn).catch(tn)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find(r=>uo(e)===uo(r.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(n=>A2(e,n.queryKey));return t==null?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find(r=>uo(e)===uo(r.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(n=>A2(e,n.mutationKey));return t==null?void 0:t.defaultOptions}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(e==null?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=ug(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.useErrorBoundary>"u"&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(e==null?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class GJ extends C3{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),xF(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return J7(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return J7(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),y2(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&kF(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return KJ(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:(t=e.cancelRefetch)!=null?t:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(tn)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),D1||this.currentResult.isStale||!V7(this.options.staleTime))return;const t=OP(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(D1||this.options.enabled===!1||!V7(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||v2.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,r=this.options,i=this.currentResult,a=this.currentResultState,o=this.currentResultOptions,s=e!==n,f=s?e.state:this.currentQueryInitialState,l=s?this.currentResult:this.previousQueryResult,{state:c}=e;let{dataUpdatedAt:d,error:E,errorUpdatedAt:p,fetchStatus:h,status:g}=c,b=!1,m=!1,A;if(t._optimisticResults){const F=this.hasListeners(),S=!F&&xF(e,t),x=F&&kF(e,n,t,r);(S||x)&&(h=kd(e.options.networkMode)?"fetching":"paused",d||(g="loading")),t._optimisticResults==="isRestoring"&&(h="idle")}if(t.keepPreviousData&&!c.dataUpdatedAt&&l!=null&&l.isSuccess&&g!=="error")A=l.data,d=l.dataUpdatedAt,g=l.status,b=!0;else if(t.select&&typeof c.data<"u")if(i&&c.data===(a==null?void 0:a.data)&&t.select===this.selectFn)A=this.selectResult;else try{this.selectFn=t.select,A=t.select(c.data),A=Q7(i==null?void 0:i.data,A,t),this.selectResult=A,this.selectError=null}catch(F){this.selectError=F}else A=c.data;if(typeof t.placeholderData<"u"&&typeof A>"u"&&g==="loading"){let F;if(i!=null&&i.isPlaceholderData&&t.placeholderData===(o==null?void 0:o.placeholderData))F=i.data;else if(F=typeof t.placeholderData=="function"?t.placeholderData():t.placeholderData,t.select&&typeof F<"u")try{F=t.select(F),this.selectError=null}catch(S){this.selectError=S}typeof F<"u"&&(g="success",A=Q7(i==null?void 0:i.data,F,t),m=!0)}this.selectError&&(E=this.selectError,A=this.selectResult,p=Date.now(),g="error");const y=h==="fetching",B=g==="loading",v=g==="error";return{status:g,fetchStatus:h,isLoading:B,isSuccess:g==="success",isError:v,isInitialLoading:B&&y,data:A,dataUpdatedAt:d,error:E,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>f.dataUpdateCount||c.errorUpdateCount>f.errorUpdateCount,isFetching:y,isRefetching:y&&!B,isLoadingError:v&&c.dataUpdatedAt===0,isPaused:h==="paused",isPlaceholderData:m,isPreviousData:b,isRefetchError:v&&c.dataUpdatedAt!==0,isStale:tg(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,y2(n,t))return;this.currentResult=n;const r={cache:!0},i=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!this.trackedProps.size)return!0;const s=new Set(o??this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(f=>{const l=f;return this.currentResult[l]!==t[l]&&s.has(l)})};(e==null?void 0:e.listeners)!==!1&&i()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};e.type==="success"?t.onSuccess=!e.manual:e.type==="error"&&!y5(e.error)&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){Hu.batch(()=>{if(e.onSuccess){var t,n,r,i;(t=(n=this.options).onSuccess)==null||t.call(n,this.currentResult.data),(r=(i=this.options).onSettled)==null||r.call(i,this.currentResult.data,null)}else if(e.onError){var a,o,s,f;(a=(o=this.options).onError)==null||a.call(o,this.currentResult.error),(s=(f=this.options).onSettled)==null||s.call(f,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:l})=>{l(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function VJ(u,e){return e.enabled!==!1&&!u.state.dataUpdatedAt&&!(u.state.status==="error"&&e.retryOnMount===!1)}function xF(u,e){return VJ(u,e)||u.state.dataUpdatedAt>0&&J7(u,e,e.refetchOnMount)}function J7(u,e,t){if(e.enabled!==!1){const n=typeof t=="function"?t(u):t;return n==="always"||n!==!1&&tg(u,e)}return!1}function kF(u,e,t,n){return t.enabled!==!1&&(u!==e||n.enabled===!1)&&(!t.suspense||u.state.status!=="error")&&tg(u,t)}function tg(u,e){return u.isStaleByTime(e.staleTime)}function KJ(u,e,t){return t.keepPreviousData?!1:t.placeholderData!==void 0?e.isPlaceholderData:!y2(u.getCurrentResult(),e)}let QJ=class extends C3{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),y2(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(t=this.currentMutation)==null||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.currentMutation)==null||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();const t={listeners:!0};e.type==="success"?t.onSuccess=!0:e.type==="error"&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof e<"u"?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:UP(),t={...e,isLoading:e.status==="loading",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){Hu.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(e.onSuccess){var t,n,r,i;(t=(n=this.mutateOptions).onSuccess)==null||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(r=(i=this.mutateOptions).onSettled)==null||r.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(e.onError){var a,o,s,f;(a=(o=this.mutateOptions).onError)==null||a.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(s=(f=this.mutateOptions).onSettled)==null||s.call(f,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}e.listeners&&this.listeners.forEach(({listener:l})=>{l(this.currentResult)})})}};function JJ(u){return{mutationKey:u.options.mutationKey,state:u.state}}function ZJ(u){return{state:u.state,queryKey:u.queryKey,queryHash:u.queryHash}}function YJ(u){return u.state.isPaused}function XJ(u){return u.state.status==="success"}function uZ(u,e={}){const t=[],n=[];if(e.dehydrateMutations!==!1){const r=e.shouldDehydrateMutation||YJ;u.getMutationCache().getAll().forEach(i=>{r(i)&&t.push(JJ(i))})}if(e.dehydrateQueries!==!1){const r=e.shouldDehydrateQuery||XJ;u.getQueryCache().getAll().forEach(i=>{r(i)&&n.push(ZJ(i))})}return{mutations:t,queries:n}}function eZ(u,e,t){if(typeof e!="object"||e===null)return;const n=u.getMutationCache(),r=u.getQueryCache(),i=e.mutations||[],a=e.queries||[];i.forEach(o=>{var s;n.build(u,{...t==null||(s=t.defaultOptions)==null?void 0:s.mutations,mutationKey:o.mutationKey},o.state)}),a.forEach(({queryKey:o,state:s,queryHash:f})=>{var l;const c=r.get(f);if(c){if(c.state.dataUpdatedAt"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?fZ:sZ;qP.useSyncExternalStore=_4.useSyncExternalStore!==void 0?_4.useSyncExternalStore:lZ;WP.exports=qP;var tg=WP.exports;const cZ=tg.useSyncExternalStore,kF=w.createContext(void 0),HP=w.createContext(!1);function GP(u,e){return u||(e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=kF),window.ReactQueryClientContext):kF)}const ng=({context:u}={})=>{const e=w.useContext(GP(u,w.useContext(HP)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},dZ=({client:u,children:e,context:t,contextSharing:n=!1})=>{w.useEffect(()=>(u.mount(),()=>{u.unmount()}),[u]);const r=GP(t,n);return w.createElement(HP.Provider,{value:!t&&n},w.createElement(r.Provider,{value:u},e))},VP=w.createContext(!1),EZ=()=>w.useContext(VP);VP.Provider;function pZ(){let u=!1;return{clearReset:()=>{u=!1},reset:()=>{u=!0},isReset:()=>u}}const hZ=w.createContext(pZ()),CZ=()=>w.useContext(hZ);function mZ(u,e){return typeof u=="function"?u(...e):!!u}function bZ(u,e,t){const n=RP(u,e,t),r=ng({context:n.context}),[i]=w.useState(()=>new QJ(r,n));w.useEffect(()=>{i.setOptions(n)},[i,n]);const a=cZ(w.useCallback(s=>i.subscribe(Hu.batchCalls(s)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),o=w.useCallback((s,f)=>{i.mutate(s,f).catch(gZ)},[i]);if(a.error&&mZ(i.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}function gZ(){}const AZ=["added","removed","updated"];function _F(u){return AZ.includes(u)}async function yZ({queryClient:u,persister:e,maxAge:t=1e3*60*60*24,buster:n="",hydrateOptions:r}){try{const i=await e.restoreClient();if(i)if(i.timestamp){const a=Date.now()-i.timestamp>t,o=i.buster!==n;a||o?e.removeClient():eZ(u,i.clientState,r)}else e.removeClient()}catch{e.removeClient()}}async function SF({queryClient:u,persister:e,buster:t="",dehydrateOptions:n}){const r={buster:t,timestamp:Date.now(),clientState:uZ(u,n)};await e.persistClient(r)}function vZ(u){const e=u.queryClient.getQueryCache().subscribe(n=>{_F(n.type)&&SF(u)}),t=u.queryClient.getMutationCache().subscribe(n=>{_F(n.type)&&SF(u)});return()=>{e(),t()}}function BZ(u){let e=!1,t;const n=()=>{e=!0,t==null||t()},r=yZ(u).then(()=>{e||(t=vZ(u))});return[n,r]}function kd(u,e={}){const{fees:t=u.fees,formatters:n=u.formatters,serializers:r=u.serializers}=e;return{...u,fees:t,formatters:n,serializers:r}}const FZ="1.19.10",DZ=u=>u,m3=u=>u,wZ=()=>`viem@${FZ}`;let l0=class J7 extends Error{constructor(e,t={}){var i;super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:wZ()});const n=t.cause instanceof J7?t.cause.details:(i=t.cause)!=null&&i.message?t.cause.message:t.details,r=t.cause instanceof J7&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...r?[`Docs: https://viem.sh${r}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join(` -`),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=r,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return KP(this,e)}};function KP(u,e){return e!=null&&e(u)?u:u&&typeof u=="object"&&"cause"in u?KP(u.cause,e):e?null:u}class xZ extends l0{constructor({consumed:e,length:t}){super(`Consumed bytes (${e}) is shorter than data length (${t-1}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DataLengthTooLongError"})}}class kZ extends l0{constructor({length:e,dataLength:t}){super(`Data length (${t-1}) is shorter than consumed bytes length (${e-1}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DataLengthTooShortError"})}}class QP extends l0{constructor({max:e,min:t,signed:n,size:r,value:i}){super(`Number "${i}" is not in safe ${r?`${r*8}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class JP extends l0{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidBytesBooleanError"})}}class ZP extends l0{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}class YP extends l0{constructor(e){super(`Hex value "${e}" is an odd length (${e.length}). It must be an even length.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexValueError"})}}class _Z extends l0{constructor({nextOffset:e,offset:t}){super(`Next offset (${e}) is greater than previous offset + consumed bytes (${t})`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffsetOutOfBoundsError"})}}class XP extends l0{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}function uu(u,{strict:e=!0}={}){return!u||typeof u!="string"?!1:e?/^0x[0-9a-fA-F]*$/.test(u):u.startsWith("0x")}function Ku(u){return uu(u,{strict:!1})?Math.ceil((u.length-2)/2):u.length}function Ze(u,{dir:e="left"}={}){let t=typeof u=="string"?u.replace("0x",""):u,n=0;for(let r=0;rt*2)throw new ig({size:Math.ceil(n.length/2),targetSize:t,type:"hex"});return`0x${n[e==="right"?"padEnd":"padStart"](t*2,"0")}`}function uI(u,{dir:e,size:t=32}={}){if(t===null)return u;if(u.length>t)throw new ig({size:u.length,targetSize:t,type:"bytes"});const n=new Uint8Array(t);for(let r=0;re.toString(16).padStart(2,"0"));function tu(u,e={}){return typeof u=="number"||typeof u=="bigint"?O0(u,e):typeof u=="string"?Ac(u,e):typeof u=="boolean"?_d(u,e):At(u,e)}function _d(u,e={}){const t=`0x${Number(u)}`;return typeof e.size=="number"?(gn(t,{size:e.size}),Ln(t,{size:e.size})):t}function At(u,e={}){let t="";for(let r=0;ri||r=Dr.zero&&u<=Dr.nine)return u-Dr.zero;if(u>=Dr.A&&u<=Dr.F)return u-(Dr.A-10);if(u>=Dr.a&&u<=Dr.f)return u-(Dr.a-10)}function li(u,e={}){let t=u;e.size&&(gn(t,{size:e.size}),t=Ln(t,{dir:"right",size:e.size}));let n=t.slice(2);n.length%2&&(n=`0${n}`);const r=n.length/2,i=new Uint8Array(r);for(let a=0,o=0;ae)throw new XP({givenSize:Ku(u),maxSize:e})}function IZ(u,e){const t=typeof e=="string"?{to:e}:e,n=t.to;return n==="number"?gu(u,t):n==="bigint"?Ru(u,t):n==="string"?yc(u,t):n==="boolean"?ag(u,t):li(u,t)}function Ru(u,e={}){const{signed:t}=e;e.size&&gn(u,{size:e.size});const n=BigInt(u);if(!t)return n;const r=(u.length-2)/2,i=(1n<({exclude:t,format:r=>{const i=e(r);if(t)for(const a of t)delete i[a];return{...i,...n(r)}},type:u})}const og={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function Td(u){const e={...u,blockHash:u.blockHash?u.blockHash:null,blockNumber:u.blockNumber?BigInt(u.blockNumber):null,chainId:u.chainId?gu(u.chainId):void 0,gas:u.gas?BigInt(u.gas):void 0,gasPrice:u.gasPrice?BigInt(u.gasPrice):void 0,maxFeePerGas:u.maxFeePerGas?BigInt(u.maxFeePerGas):void 0,maxPriorityFeePerGas:u.maxPriorityFeePerGas?BigInt(u.maxPriorityFeePerGas):void 0,nonce:u.nonce?gu(u.nonce):void 0,to:u.to?u.to:null,transactionIndex:u.transactionIndex?Number(u.transactionIndex):null,type:u.type?og[u.type]:void 0,typeHex:u.type?u.type:void 0,value:u.value?BigInt(u.value):void 0,v:u.v?BigInt(u.v):void 0};return e.yParity=(()=>{if(u.yParity)return Number(u.yParity);if(typeof e.v=="bigint"){if(e.v===0n||e.v===27n)return 0;if(e.v===1n||e.v===28n)return 1;if(e.v>=35n)return e.v%2n===0n?1:0}})(),e.type==="legacy"&&(delete e.accessList,delete e.maxFeePerGas,delete e.maxPriorityFeePerGas,delete e.yParity),e.type==="eip2930"&&(delete e.maxFeePerGas,delete e.maxPriorityFeePerGas),e}const OZ=Sd("transaction",Td);function Pd(u){var t;const e=(t=u.transactions)==null?void 0:t.map(n=>typeof n=="string"?n:Td(n));return{...u,baseFeePerGas:u.baseFeePerGas?BigInt(u.baseFeePerGas):null,difficulty:u.difficulty?BigInt(u.difficulty):void 0,gasLimit:u.gasLimit?BigInt(u.gasLimit):void 0,gasUsed:u.gasUsed?BigInt(u.gasUsed):void 0,hash:u.hash?u.hash:null,logsBloom:u.logsBloom?u.logsBloom:null,nonce:u.nonce?u.nonce:null,number:u.number?BigInt(u.number):null,size:u.size?BigInt(u.size):void 0,timestamp:u.timestamp?BigInt(u.timestamp):void 0,transactions:e,totalDifficulty:u.totalDifficulty?BigInt(u.totalDifficulty):null}}const RZ=Sd("block",Pd);function hn(u,{args:e,eventName:t}={}){return{...u,blockHash:u.blockHash?u.blockHash:null,blockNumber:u.blockNumber?BigInt(u.blockNumber):null,logIndex:u.logIndex?Number(u.logIndex):null,transactionHash:u.transactionHash?u.transactionHash:null,transactionIndex:u.transactionIndex?Number(u.transactionIndex):null,...t?{args:e,eventName:t}:{}}}const NZ={"0x0":"reverted","0x1":"success"};function sg(u){return{...u,blockNumber:u.blockNumber?BigInt(u.blockNumber):null,contractAddress:u.contractAddress?u.contractAddress:null,cumulativeGasUsed:u.cumulativeGasUsed?BigInt(u.cumulativeGasUsed):null,effectiveGasPrice:u.effectiveGasPrice?BigInt(u.effectiveGasPrice):null,gasUsed:u.gasUsed?BigInt(u.gasUsed):null,logs:u.logs?u.logs.map(e=>hn(e)):null,to:u.to?u.to:null,transactionIndex:u.transactionIndex?gu(u.transactionIndex):null,status:u.status?NZ[u.status]:null,type:u.type?og[u.type]||u.type:null}}const MZ=Sd("transactionReceipt",sg),nI={legacy:"0x0",eip2930:"0x1",eip1559:"0x2"};function as(u){return{...u,gas:typeof u.gas<"u"?O0(u.gas):void 0,gasPrice:typeof u.gasPrice<"u"?O0(u.gasPrice):void 0,maxFeePerGas:typeof u.maxFeePerGas<"u"?O0(u.maxFeePerGas):void 0,maxPriorityFeePerGas:typeof u.maxPriorityFeePerGas<"u"?O0(u.maxPriorityFeePerGas):void 0,nonce:typeof u.nonce<"u"?O0(u.nonce):void 0,type:typeof u.type<"u"?nI[u.type]:void 0,value:typeof u.value<"u"?O0(u.value):void 0}}const jZ=Sd("transactionRequest",as);class yt extends l0{constructor({address:e}){super(`Address "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}class B2 extends l0{constructor({blockNumber:e,chain:t,contract:n}){super(`Chain "${t.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...e&&n.blockCreated&&n.blockCreated>e?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${n.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}let rI=class extends l0{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}};class iI extends l0{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}class fg extends l0{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}class Id extends l0{constructor({chainId:e}){super(`Chain ID "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}const lg={gwei:9,wei:18},cg={ether:-9,wei:9},aI={ether:-18,gwei:-9};function D1(u,e){let t=u.toString();const n=t.startsWith("-");n&&(t=t.slice(1)),t=t.padStart(e,"0");let[r,i]=[t.slice(0,t.length-e),t.slice(t.length-e)];return i=i.replace(/(0+)$/,""),`${n?"-":""}${r||"0"}${i?`.${i}`:""}`}function Ye(u,e="wei"){return D1(u,cg[e])}class uo extends l0{constructor({cause:e,message:t}={}){var r;const n=(r=t==null?void 0:t.replace("execution reverted: ",""))==null?void 0:r.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(uo,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(uo,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class ha extends l0{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${Ye(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(ha,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class F2 extends l0{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${Ye(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(F2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class D2 extends l0{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(D2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class w2 extends l0{constructor({cause:e,nonce:t}={}){super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(` -`),{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(w2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class x2 extends l0{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(x2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class k2 extends l0{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(` -`),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(k2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class _2 extends l0{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(_2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class S2 extends l0{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(S2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class T2 extends l0{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(T2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class S4 extends l0{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${Ye(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${Ye(n)} gwei`:""}).`].join(` -`),{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(S4,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class vc extends l0{constructor({cause:e}){super(`An error occurred while executing: ${e==null?void 0:e.shortMessage}`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}const zZ=/^0x[a-fA-F0-9]{40}$/;function tt(u){return zZ.test(u)}function Cn(u){return typeof u[0]=="string"?ci(u):oI(u)}function oI(u){let e=0;for(const r of u)e+=r.length;const t=new Uint8Array(e);let n=0;for(const r of u)t.set(r,n),n+=r.length;return t}function ci(u){return`0x${u.reduce((e,t)=>e+t.replace("0x",""),"")}`}const LZ="0.9.8";class me extends Error{constructor(e,t={}){var a;const n=t.cause instanceof me?t.cause.details:(a=t.cause)!=null&&a.message?t.cause.message:t.details,r=t.cause instanceof me&&t.cause.docsPath||t.docsPath,i=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...r?[`Docs: https://abitype.dev${r}`]:[],...n?[`Details: ${n}`]:[],`Version: abitype@${LZ}`].join(` -`);super(i),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=r,this.metaMessages=t.metaMessages,this.shortMessage=e}}function wa(u,e){const t=u.exec(e);return t==null?void 0:t.groups}const sI=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,fI=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,lI=/^\(.+?\).*?$/,PF=/^tuple(?(\[(\d*)\])*)$/;function Z7(u){let e=u.type;if(PF.test(u.type)&&"components"in u){e="(";const t=u.components.length;for(let r=0;r[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;function UZ(u){return cI.test(u)}function WZ(u){return wa(cI,u)}const dI=/^event (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;function qZ(u){return dI.test(u)}function HZ(u){return wa(dI,u)}const EI=/^function (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)(?: (?external|public{1}))?(?: (?pure|view|nonpayable|payable{1}))?(?: returns\s?\((?.*?)\))?$/;function GZ(u){return EI.test(u)}function VZ(u){return wa(EI,u)}const pI=/^struct (?[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?.*?)\}$/;function Bc(u){return pI.test(u)}function KZ(u){return wa(pI,u)}const hI=/^constructor\((?.*?)\)(?:\s(?payable{1}))?$/;function QZ(u){return hI.test(u)}function JZ(u){return wa(hI,u)}const ZZ=/^fallback\(\)$/;function YZ(u){return ZZ.test(u)}const XZ=/^receive\(\) external payable$/;function uY(u){return XZ.test(u)}const P2=new Set(["memory","indexed","storage","calldata"]),eY=new Set(["indexed"]),Y7=new Set(["calldata","memory","storage"]);class CI extends me{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class mI extends me{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class tY extends me{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class bI extends me{constructor({param:e}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}class gI extends me{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class AI extends me{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class yI extends me{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class vI extends me{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class BI extends me{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class FI extends me{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class ff extends me{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class DI extends me{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class wI extends me{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class xI extends me{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class kI extends me{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}function nY(u,e){return e?`${e}:${u}`:u}const B8=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function X7(u,e={}){if(GZ(u)){const t=VZ(u);if(!t)throw new ff({signature:u,type:"function"});const n=Rt(t.parameters),r=[],i=n.length;for(let o=0;o[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,iY=/^\((?.+?)\)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,aY=/^u?int$/;function On(u,e){var c,d;const t=nY(u,e==null?void 0:e.type);if(B8.has(t))return B8.get(t);const n=lI.test(u),r=wa(n?iY:rY,u);if(!r)throw new AI({param:u});if(r.name&&sY(r.name))throw new yI({param:u,name:r.name});const i=r.name?{name:r.name}:{},a=r.modifier==="indexed"?{indexed:!0}:{},o=(e==null?void 0:e.structs)??{};let s,f={};if(n){s="tuple";const E=Rt(r.type),p=[],h=E.length;for(let g=0;g[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?$/;function SI(u,e,t=new Set){const n=[],r=u.length;for(let i=0;i{var r;return((r=u[e.name||t])==null?void 0:r.call(u,n))??e(u,n)}}function di(u,{includeName:e=!1}={}){if(u.type!=="function"&&u.type!=="event"&&u.type!=="error")throw new LI(u.type);return`${u.name}(${Rd(u.inputs,{includeName:e})})`}function Rd(u,{includeName:e=!1}={}){return u?u.map(t=>hY(t,{includeName:e})).join(e?", ":","):""}function hY(u,{includeName:e}){return u.type.startsWith("tuple")?`(${Rd(u.components,{includeName:e})})${u.type.slice(5)}`:u.type+(e&&u.name?` ${u.name}`:"")}class dg extends l0{constructor({docsPath:e}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(` -`),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class w1 extends l0{constructor({docsPath:e}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(` + */var _4=w;function tZ(u,e){return u===e&&(u!==0||1/u===1/e)||u!==u&&e!==e}var nZ=typeof Object.is=="function"?Object.is:tZ,rZ=_4.useState,iZ=_4.useEffect,aZ=_4.useLayoutEffect,oZ=_4.useDebugValue;function sZ(u,e){var t=e(),n=rZ({inst:{value:t,getSnapshot:e}}),r=n[0].inst,i=n[1];return aZ(function(){r.value=t,r.getSnapshot=e,B8(r)&&i({inst:r})},[u,t,e]),iZ(function(){return B8(r)&&i({inst:r}),u(function(){B8(r)&&i({inst:r})})},[u]),oZ(t),t}function B8(u){var e=u.getSnapshot;u=u.value;try{var t=e();return!nZ(u,t)}catch{return!0}}function fZ(u,e){return e()}var lZ=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?fZ:sZ;qP.useSyncExternalStore=_4.useSyncExternalStore!==void 0?_4.useSyncExternalStore:lZ;WP.exports=qP;var ng=WP.exports;const cZ=ng.useSyncExternalStore,_F=w.createContext(void 0),HP=w.createContext(!1);function GP(u,e){return u||(e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=_F),window.ReactQueryClientContext):_F)}const rg=({context:u}={})=>{const e=w.useContext(GP(u,w.useContext(HP)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},dZ=({client:u,children:e,context:t,contextSharing:n=!1})=>{w.useEffect(()=>(u.mount(),()=>{u.unmount()}),[u]);const r=GP(t,n);return w.createElement(HP.Provider,{value:!t&&n},w.createElement(r.Provider,{value:u},e))},VP=w.createContext(!1),EZ=()=>w.useContext(VP);VP.Provider;function pZ(){let u=!1;return{clearReset:()=>{u=!1},reset:()=>{u=!0},isReset:()=>u}}const hZ=w.createContext(pZ()),CZ=()=>w.useContext(hZ);function mZ(u,e){return typeof u=="function"?u(...e):!!u}function bZ(u,e,t){const n=RP(u,e,t),r=rg({context:n.context}),[i]=w.useState(()=>new QJ(r,n));w.useEffect(()=>{i.setOptions(n)},[i,n]);const a=cZ(w.useCallback(s=>i.subscribe(Hu.batchCalls(s)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),o=w.useCallback((s,f)=>{i.mutate(s,f).catch(gZ)},[i]);if(a.error&&mZ(i.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}function gZ(){}const AZ=["added","removed","updated"];function SF(u){return AZ.includes(u)}async function yZ({queryClient:u,persister:e,maxAge:t=1e3*60*60*24,buster:n="",hydrateOptions:r}){try{const i=await e.restoreClient();if(i)if(i.timestamp){const a=Date.now()-i.timestamp>t,o=i.buster!==n;a||o?e.removeClient():eZ(u,i.clientState,r)}else e.removeClient()}catch{e.removeClient()}}async function TF({queryClient:u,persister:e,buster:t="",dehydrateOptions:n}){const r={buster:t,timestamp:Date.now(),clientState:uZ(u,n)};await e.persistClient(r)}function vZ(u){const e=u.queryClient.getQueryCache().subscribe(n=>{SF(n.type)&&TF(u)}),t=u.queryClient.getMutationCache().subscribe(n=>{SF(n.type)&&TF(u)});return()=>{e(),t()}}function BZ(u){let e=!1,t;const n=()=>{e=!0,t==null||t()},r=yZ(u).then(()=>{e||(t=vZ(u))});return[n,r]}function _d(u,e={}){const{fees:t=u.fees,formatters:n=u.formatters,serializers:r=u.serializers}=e;return{...u,fees:t,formatters:n,serializers:r}}const FZ="1.19.10",DZ=u=>u,m3=u=>u,wZ=()=>`viem@${FZ}`;let l0=class Z7 extends Error{constructor(e,t={}){var i;super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:wZ()});const n=t.cause instanceof Z7?t.cause.details:(i=t.cause)!=null&&i.message?t.cause.message:t.details,r=t.cause instanceof Z7&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...r?[`Docs: https://viem.sh${r}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join(` +`),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=r,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return KP(this,e)}};function KP(u,e){return e!=null&&e(u)?u:u&&typeof u=="object"&&"cause"in u?KP(u.cause,e):e?null:u}class xZ extends l0{constructor({consumed:e,length:t}){super(`Consumed bytes (${e}) is shorter than data length (${t-1}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DataLengthTooLongError"})}}class kZ extends l0{constructor({length:e,dataLength:t}){super(`Data length (${t-1}) is shorter than consumed bytes length (${e-1}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DataLengthTooShortError"})}}class QP extends l0{constructor({max:e,min:t,signed:n,size:r,value:i}){super(`Number "${i}" is not in safe ${r?`${r*8}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class JP extends l0{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidBytesBooleanError"})}}class ZP extends l0{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}class YP extends l0{constructor(e){super(`Hex value "${e}" is an odd length (${e.length}). It must be an even length.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexValueError"})}}class _Z extends l0{constructor({nextOffset:e,offset:t}){super(`Next offset (${e}) is greater than previous offset + consumed bytes (${t})`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffsetOutOfBoundsError"})}}class XP extends l0{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}function uu(u,{strict:e=!0}={}){return!u||typeof u!="string"?!1:e?/^0x[0-9a-fA-F]*$/.test(u):u.startsWith("0x")}function Ku(u){return uu(u,{strict:!1})?Math.ceil((u.length-2)/2):u.length}function Ze(u,{dir:e="left"}={}){let t=typeof u=="string"?u.replace("0x",""):u,n=0;for(let r=0;rt*2)throw new ag({size:Math.ceil(n.length/2),targetSize:t,type:"hex"});return`0x${n[e==="right"?"padEnd":"padStart"](t*2,"0")}`}function uI(u,{dir:e,size:t=32}={}){if(t===null)return u;if(u.length>t)throw new ag({size:u.length,targetSize:t,type:"bytes"});const n=new Uint8Array(t);for(let r=0;re.toString(16).padStart(2,"0"));function tu(u,e={}){return typeof u=="number"||typeof u=="bigint"?O0(u,e):typeof u=="string"?yc(u,e):typeof u=="boolean"?Sd(u,e):At(u,e)}function Sd(u,e={}){const t=`0x${Number(u)}`;return typeof e.size=="number"?(gn(t,{size:e.size}),Ln(t,{size:e.size})):t}function At(u,e={}){let t="";for(let r=0;ri||r=Dr.zero&&u<=Dr.nine)return u-Dr.zero;if(u>=Dr.A&&u<=Dr.F)return u-(Dr.A-10);if(u>=Dr.a&&u<=Dr.f)return u-(Dr.a-10)}function li(u,e={}){let t=u;e.size&&(gn(t,{size:e.size}),t=Ln(t,{dir:"right",size:e.size}));let n=t.slice(2);n.length%2&&(n=`0${n}`);const r=n.length/2,i=new Uint8Array(r);for(let a=0,o=0;ae)throw new XP({givenSize:Ku(u),maxSize:e})}function IZ(u,e){const t=typeof e=="string"?{to:e}:e,n=t.to;return n==="number"?gu(u,t):n==="bigint"?Ru(u,t):n==="string"?vc(u,t):n==="boolean"?og(u,t):li(u,t)}function Ru(u,e={}){const{signed:t}=e;e.size&&gn(u,{size:e.size});const n=BigInt(u);if(!t)return n;const r=(u.length-2)/2,i=(1n<({exclude:t,format:r=>{const i=e(r);if(t)for(const a of t)delete i[a];return{...i,...n(r)}},type:u})}const sg={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function Pd(u){const e={...u,blockHash:u.blockHash?u.blockHash:null,blockNumber:u.blockNumber?BigInt(u.blockNumber):null,chainId:u.chainId?gu(u.chainId):void 0,gas:u.gas?BigInt(u.gas):void 0,gasPrice:u.gasPrice?BigInt(u.gasPrice):void 0,maxFeePerGas:u.maxFeePerGas?BigInt(u.maxFeePerGas):void 0,maxPriorityFeePerGas:u.maxPriorityFeePerGas?BigInt(u.maxPriorityFeePerGas):void 0,nonce:u.nonce?gu(u.nonce):void 0,to:u.to?u.to:null,transactionIndex:u.transactionIndex?Number(u.transactionIndex):null,type:u.type?sg[u.type]:void 0,typeHex:u.type?u.type:void 0,value:u.value?BigInt(u.value):void 0,v:u.v?BigInt(u.v):void 0};return e.yParity=(()=>{if(u.yParity)return Number(u.yParity);if(typeof e.v=="bigint"){if(e.v===0n||e.v===27n)return 0;if(e.v===1n||e.v===28n)return 1;if(e.v>=35n)return e.v%2n===0n?1:0}})(),e.type==="legacy"&&(delete e.accessList,delete e.maxFeePerGas,delete e.maxPriorityFeePerGas,delete e.yParity),e.type==="eip2930"&&(delete e.maxFeePerGas,delete e.maxPriorityFeePerGas),e}const OZ=Td("transaction",Pd);function Id(u){var t;const e=(t=u.transactions)==null?void 0:t.map(n=>typeof n=="string"?n:Pd(n));return{...u,baseFeePerGas:u.baseFeePerGas?BigInt(u.baseFeePerGas):null,difficulty:u.difficulty?BigInt(u.difficulty):void 0,gasLimit:u.gasLimit?BigInt(u.gasLimit):void 0,gasUsed:u.gasUsed?BigInt(u.gasUsed):void 0,hash:u.hash?u.hash:null,logsBloom:u.logsBloom?u.logsBloom:null,nonce:u.nonce?u.nonce:null,number:u.number?BigInt(u.number):null,size:u.size?BigInt(u.size):void 0,timestamp:u.timestamp?BigInt(u.timestamp):void 0,transactions:e,totalDifficulty:u.totalDifficulty?BigInt(u.totalDifficulty):null}}const RZ=Td("block",Id);function hn(u,{args:e,eventName:t}={}){return{...u,blockHash:u.blockHash?u.blockHash:null,blockNumber:u.blockNumber?BigInt(u.blockNumber):null,logIndex:u.logIndex?Number(u.logIndex):null,transactionHash:u.transactionHash?u.transactionHash:null,transactionIndex:u.transactionIndex?Number(u.transactionIndex):null,...t?{args:e,eventName:t}:{}}}const NZ={"0x0":"reverted","0x1":"success"};function fg(u){return{...u,blockNumber:u.blockNumber?BigInt(u.blockNumber):null,contractAddress:u.contractAddress?u.contractAddress:null,cumulativeGasUsed:u.cumulativeGasUsed?BigInt(u.cumulativeGasUsed):null,effectiveGasPrice:u.effectiveGasPrice?BigInt(u.effectiveGasPrice):null,gasUsed:u.gasUsed?BigInt(u.gasUsed):null,logs:u.logs?u.logs.map(e=>hn(e)):null,to:u.to?u.to:null,transactionIndex:u.transactionIndex?gu(u.transactionIndex):null,status:u.status?NZ[u.status]:null,type:u.type?sg[u.type]||u.type:null}}const MZ=Td("transactionReceipt",fg),nI={legacy:"0x0",eip2930:"0x1",eip1559:"0x2"};function as(u){return{...u,gas:typeof u.gas<"u"?O0(u.gas):void 0,gasPrice:typeof u.gasPrice<"u"?O0(u.gasPrice):void 0,maxFeePerGas:typeof u.maxFeePerGas<"u"?O0(u.maxFeePerGas):void 0,maxPriorityFeePerGas:typeof u.maxPriorityFeePerGas<"u"?O0(u.maxPriorityFeePerGas):void 0,nonce:typeof u.nonce<"u"?O0(u.nonce):void 0,type:typeof u.type<"u"?nI[u.type]:void 0,value:typeof u.value<"u"?O0(u.value):void 0}}const jZ=Td("transactionRequest",as);class yt extends l0{constructor({address:e}){super(`Address "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}class F2 extends l0{constructor({blockNumber:e,chain:t,contract:n}){super(`Chain "${t.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...e&&n.blockCreated&&n.blockCreated>e?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${n.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}let rI=class extends l0{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}};class iI extends l0{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join(` +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}class lg extends l0{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}class Od extends l0{constructor({chainId:e}){super(`Chain ID "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}const cg={gwei:9,wei:18},dg={ether:-9,wei:9},aI={ether:-18,gwei:-9};function w1(u,e){let t=u.toString();const n=t.startsWith("-");n&&(t=t.slice(1)),t=t.padStart(e,"0");let[r,i]=[t.slice(0,t.length-e),t.slice(t.length-e)];return i=i.replace(/(0+)$/,""),`${n?"-":""}${r||"0"}${i?`.${i}`:""}`}function Ye(u,e="wei"){return w1(u,dg[e])}class eo extends l0{constructor({cause:e,message:t}={}){var r;const n=(r=t==null?void 0:t.replace("execution reverted: ",""))==null?void 0:r.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(eo,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(eo,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class ma extends l0{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${Ye(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(ma,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class D2 extends l0{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${Ye(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(D2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class w2 extends l0{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(w2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class x2 extends l0{constructor({cause:e,nonce:t}={}){super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(` +`),{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(x2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class k2 extends l0{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(k2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class _2 extends l0{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(` +`),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(_2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class S2 extends l0{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(S2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class T2 extends l0{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(T2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class P2 extends l0{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(P2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class S4 extends l0{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${Ye(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${Ye(n)} gwei`:""}).`].join(` +`),{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(S4,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class Bc extends l0{constructor({cause:e}){super(`An error occurred while executing: ${e==null?void 0:e.shortMessage}`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}const zZ=/^0x[a-fA-F0-9]{40}$/;function tt(u){return zZ.test(u)}function Cn(u){return typeof u[0]=="string"?ci(u):oI(u)}function oI(u){let e=0;for(const r of u)e+=r.length;const t=new Uint8Array(e);let n=0;for(const r of u)t.set(r,n),n+=r.length;return t}function ci(u){return`0x${u.reduce((e,t)=>e+t.replace("0x",""),"")}`}const LZ="0.9.8";class me extends Error{constructor(e,t={}){var a;const n=t.cause instanceof me?t.cause.details:(a=t.cause)!=null&&a.message?t.cause.message:t.details,r=t.cause instanceof me&&t.cause.docsPath||t.docsPath,i=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...r?[`Docs: https://abitype.dev${r}`]:[],...n?[`Details: ${n}`]:[],`Version: abitype@${LZ}`].join(` +`);super(i),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=r,this.metaMessages=t.metaMessages,this.shortMessage=e}}function ka(u,e){const t=u.exec(e);return t==null?void 0:t.groups}const sI=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,fI=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,lI=/^\(.+?\).*?$/,IF=/^tuple(?(\[(\d*)\])*)$/;function Y7(u){let e=u.type;if(IF.test(u.type)&&"components"in u){e="(";const t=u.components.length;for(let r=0;r[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;function UZ(u){return cI.test(u)}function WZ(u){return ka(cI,u)}const dI=/^event (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;function qZ(u){return dI.test(u)}function HZ(u){return ka(dI,u)}const EI=/^function (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)(?: (?external|public{1}))?(?: (?pure|view|nonpayable|payable{1}))?(?: returns\s?\((?.*?)\))?$/;function GZ(u){return EI.test(u)}function VZ(u){return ka(EI,u)}const pI=/^struct (?[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?.*?)\}$/;function Fc(u){return pI.test(u)}function KZ(u){return ka(pI,u)}const hI=/^constructor\((?.*?)\)(?:\s(?payable{1}))?$/;function QZ(u){return hI.test(u)}function JZ(u){return ka(hI,u)}const ZZ=/^fallback\(\)$/;function YZ(u){return ZZ.test(u)}const XZ=/^receive\(\) external payable$/;function uY(u){return XZ.test(u)}const I2=new Set(["memory","indexed","storage","calldata"]),eY=new Set(["indexed"]),X7=new Set(["calldata","memory","storage"]);class CI extends me{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class mI extends me{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class tY extends me{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class bI extends me{constructor({param:e}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}class gI extends me{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class AI extends me{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class yI extends me{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class vI extends me{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class BI extends me{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class FI extends me{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class ff extends me{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class DI extends me{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class wI extends me{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class xI extends me{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class kI extends me{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}function nY(u,e){return e?`${e}:${u}`:u}const F8=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function uC(u,e={}){if(GZ(u)){const t=VZ(u);if(!t)throw new ff({signature:u,type:"function"});const n=Rt(t.parameters),r=[],i=n.length;for(let o=0;o[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,iY=/^\((?.+?)\)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,aY=/^u?int$/;function On(u,e){var c,d;const t=nY(u,e==null?void 0:e.type);if(F8.has(t))return F8.get(t);const n=lI.test(u),r=ka(n?iY:rY,u);if(!r)throw new AI({param:u});if(r.name&&sY(r.name))throw new yI({param:u,name:r.name});const i=r.name?{name:r.name}:{},a=r.modifier==="indexed"?{indexed:!0}:{},o=(e==null?void 0:e.structs)??{};let s,f={};if(n){s="tuple";const E=Rt(r.type),p=[],h=E.length;for(let g=0;g[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?$/;function SI(u,e,t=new Set){const n=[],r=u.length;for(let i=0;i{var r;return((r=u[e.name||t])==null?void 0:r.call(u,n))??e(u,n)}}function di(u,{includeName:e=!1}={}){if(u.type!=="function"&&u.type!=="event"&&u.type!=="error")throw new LI(u.type);return`${u.name}(${Nd(u.inputs,{includeName:e})})`}function Nd(u,{includeName:e=!1}={}){return u?u.map(t=>hY(t,{includeName:e})).join(e?", ":","):""}function hY(u,{includeName:e}){return u.type.startsWith("tuple")?`(${Nd(u.components,{includeName:e})})${u.type.slice(5)}`:u.type+(e&&u.name?` ${u.name}`:"")}class Eg extends l0{constructor({docsPath:e}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(` +`),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class x1 extends l0{constructor({docsPath:e}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(` `),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class CY extends l0{constructor({data:e,size:t}){super([`Data size of ${t} bytes is invalid.`,"Size must be in increments of 32 bytes (size % 32 === 0)."].join(` -`),{metaMessages:[`Data: ${e} (${t} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeInvalidError"})}}class Nd extends l0{constructor({data:e,params:t,size:n}){super([`Data size of ${n} bytes is too small for given parameters.`].join(` -`),{metaMessages:[`Params: (${Rd(t,{includeName:!0})})`,`Data: ${e} (${n} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=n}}class Fc extends l0{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class TI extends l0{constructor({expectedLength:e,givenLength:t,type:n}){super([`ABI encoding array length mismatch for type ${n}.`,`Expected length: ${e}`,`Given length: ${t}`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}class PI extends l0{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${Ku(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class Eg extends l0{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${e}`,`Given length (values): ${t}`].join(` +`),{metaMessages:[`Data: ${e} (${t} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeInvalidError"})}}class Md extends l0{constructor({data:e,params:t,size:n}){super([`Data size of ${n} bytes is too small for given parameters.`].join(` +`),{metaMessages:[`Params: (${Nd(t,{includeName:!0})})`,`Data: ${e} (${n} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=n}}class Dc extends l0{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class TI extends l0{constructor({expectedLength:e,givenLength:t,type:n}){super([`ABI encoding array length mismatch for type ${n}.`,`Expected length: ${e}`,`Given length: ${t}`].join(` +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}class PI extends l0{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${Ku(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class pg extends l0{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${e}`,`Given length (values): ${t}`].join(` `)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}class II extends l0{constructor(e,{docsPath:t}){super([`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorInputsNotFoundError"})}}class uC extends l0{constructor(e,{docsPath:t}={}){super([`Error ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorNotFoundError"})}}class pg extends l0{constructor(e,{docsPath:t}){super([`Encoded error signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`].join(` +`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorInputsNotFoundError"})}}class eC extends l0{constructor(e,{docsPath:t}={}){super([`Error ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(` +`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorNotFoundError"})}}class hg extends l0{constructor(e,{docsPath:t}){super([`Encoded error signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`].join(` `),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class OI extends l0{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}class RI extends l0{constructor(e,{docsPath:t}){super([`Encoded event signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`].join(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class eC extends l0{constructor(e,{docsPath:t}={}){super([`Event ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(` +`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class tC extends l0{constructor(e,{docsPath:t}={}){super([`Event ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(` `),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}class Go extends l0{constructor(e,{docsPath:t}={}){super([`Function ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class hg extends l0{constructor(e,{docsPath:t}){super([`Function "${e}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join(` +`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class Cg extends l0{constructor(e,{docsPath:t}){super([`Function "${e}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join(` `),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}class NI extends l0{constructor(e,{docsPath:t}){super([`Encoded function signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`].join(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionSignatureNotFoundError"})}}class Cg extends l0{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class Ca extends l0{constructor({abiItem:e,data:t,params:n,size:r}){super([`Data size of ${r} bytes is too small for non-indexed event parameters.`].join(` -`),{metaMessages:[`Params: (${Rd(n,{includeName:!0})})`,`Data: ${t} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=n,this.size=r}}class os extends l0{constructor({abiItem:e,param:t}){super([`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${di(e,{includeName:!0})}".`].join(` +`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionSignatureNotFoundError"})}}class mg extends l0{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class ba extends l0{constructor({abiItem:e,data:t,params:n,size:r}){super([`Data size of ${r} bytes is too small for non-indexed event parameters.`].join(` +`),{metaMessages:[`Params: (${Nd(n,{includeName:!0})})`,`Data: ${t} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=n,this.size=r}}class os extends l0{constructor({abiItem:e,param:t}){super([`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${di(e,{includeName:!0})}".`].join(` `)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class MI extends l0{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(` `),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class jI extends l0{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(` `),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class zI extends l0{constructor(e){super([`Value "${e}" is not a valid array.`].join(` `)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class LI extends l0{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}class $I extends l0{constructor(e){super(`Type "${e}" is not supported for packed encoding.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedPackedAbiType"})}}class UI extends l0{constructor(e){super(`Filter type "${e}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}function mY(u){let e=!0,t="",n=0,r="",i=!1;for(let a=0;a{const e=typeof u=="string"?u:$Z(u);return mY(e)},WI=u=>mg(u);function I2(u){if(!Number.isSafeInteger(u)||u<0)throw new Error(`Wrong positive integer: ${u}`)}function bg(u,...e){if(!(u instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(u.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${u.length}`)}function bY(u){if(typeof u!="function"||typeof u.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");I2(u.outputLen),I2(u.blockLen)}function T4(u,e=!0){if(u.destroyed)throw new Error("Hash instance has been destroyed");if(e&&u.finished)throw new Error("Hash#digest() has already been called")}function qI(u,e){bg(u);const t=e.outputLen;if(u.length>IF&I6)}:{h:Number(u>>IF&I6)|0,l:Number(u&I6)|0}}function AY(u,e=!1){let t=new Uint32Array(u.length),n=new Uint32Array(u.length);for(let r=0;ru<>>32-t,vY=(u,e,t)=>e<>>32-t,BY=(u,e,t)=>e<>>64-t,FY=(u,e,t)=>u<>>64-t,F8=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const HI=u=>u instanceof Uint8Array,DY=u=>new Uint32Array(u.buffer,u.byteOffset,Math.floor(u.byteLength/4)),D8=u=>new DataView(u.buffer,u.byteOffset,u.byteLength),Zn=(u,e)=>u<<32-e|u>>>e,wY=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!wY)throw new Error("Non little-endian hardware is not supported");function xY(u){if(typeof u!="string")throw new Error(`utf8ToBytes expected string, got ${typeof u}`);return new Uint8Array(new TextEncoder().encode(u))}function Md(u){if(typeof u=="string"&&(u=xY(u)),!HI(u))throw new Error(`expected Uint8Array, got ${typeof u}`);return u}function kY(...u){const e=new Uint8Array(u.reduce((n,r)=>n+r.length,0));let t=0;return u.forEach(n=>{if(!HI(n))throw new Error("Uint8Array expected");e.set(n,t),t+=n.length}),e}let gg=class{clone(){return this._cloneInto()}};function GI(u){const e=n=>u().update(Md(n)).digest(),t=u();return e.outputLen=t.outputLen,e.blockLen=t.blockLen,e.create=()=>u(),e}function VI(u=32){if(F8&&typeof F8.getRandomValues=="function")return F8.getRandomValues(new Uint8Array(u));throw new Error("crypto.getRandomValues must be defined")}const[KI,QI,JI]=[[],[],[]],_Y=BigInt(0),sl=BigInt(1),SY=BigInt(2),TY=BigInt(7),PY=BigInt(256),IY=BigInt(113);for(let u=0,e=sl,t=1,n=0;u<24;u++){[t,n]=[n,(2*t+3*n)%5],KI.push(2*(5*n+t)),QI.push((u+1)*(u+2)/2%64);let r=_Y;for(let i=0;i<7;i++)e=(e<>TY)*IY)%PY,e&SY&&(r^=sl<<(sl<t>32?BY(u,e,t):yY(u,e,t),RF=(u,e,t)=>t>32?FY(u,e,t):vY(u,e,t);function NY(u,e=24){const t=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let a=0;a<10;a++)t[a]=u[a]^u[a+10]^u[a+20]^u[a+30]^u[a+40];for(let a=0;a<10;a+=2){const o=(a+8)%10,s=(a+2)%10,f=t[s],l=t[s+1],c=OF(f,l,1)^t[o],d=RF(f,l,1)^t[o+1];for(let E=0;E<50;E+=10)u[a+E]^=c,u[a+E+1]^=d}let r=u[2],i=u[3];for(let a=0;a<24;a++){const o=QI[a],s=OF(r,i,o),f=RF(r,i,o),l=KI[a];r=u[l],i=u[l+1],u[l]=s,u[l+1]=f}for(let a=0;a<50;a+=10){for(let o=0;o<10;o++)t[o]=u[a+o];for(let o=0;o<10;o++)u[a+o]^=~t[(o+2)%10]&t[(o+4)%10]}u[0]^=OY[n],u[1]^=RY[n]}t.fill(0)}class Ag extends gg{constructor(e,t,n,r=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,I2(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=DY(this.state)}keccak(){NY(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){T4(this);const{blockLen:t,state:n}=this;e=Md(e);const r=e.length;for(let i=0;i=n&&this.keccak();const a=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+a),r),this.posOut+=a,r+=a}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return I2(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(qI(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:a}=this;return e||(e=new Ag(t,n,r,a,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=a,e.destroyed=this.destroyed,e}}const MY=(u,e,t)=>GI(()=>new Ag(e,u,t)),ZI=MY(1,136,256/8);function Yu(u,e){const t=e||"hex",n=ZI(uu(u,{strict:!1})?Ge(u):u);return t==="bytes"?n:tu(n)}const jY=u=>Yu(Ge(u)),jd=u=>jY(WI(u));function _u(u,e,t,{strict:n}={}){return uu(u,{strict:!1})?yg(u,e,t,{strict:n}):uO(u,e,t,{strict:n})}function YI(u,e){if(typeof e=="number"&&e>0&&e>Ku(u)-1)throw new rg({offset:e,position:"start",size:Ku(u)})}function XI(u,e,t){if(typeof e=="number"&&typeof t=="number"&&Ku(u)!==t-e)throw new rg({offset:t,position:"end",size:Ku(u)})}function uO(u,e,t,{strict:n}={}){YI(u,e);const r=u.slice(e,t);return n&&XI(r,e,t),r}function yg(u,e,t,{strict:n}={}){YI(u,e);const r=`0x${u.replace("0x","").slice((e??0)*2,(t??u.length)*2)}`;return n&&XI(r,e,t),r}function Ei(u,e){if(u.length!==e.length)throw new Eg({expectedLength:u.length,givenLength:e.length});const t=zY({params:u,values:e}),n=Bg(t);return n.length===0?"0x":n}function zY({params:u,values:e}){const t=[];for(let n=0;n0?Cn([o,a]):o}}if(r)return{dynamic:!0,encoded:a}}return{dynamic:!1,encoded:Cn(i.map(({encoded:a})=>a))}}function UY(u,{param:e}){const[,t]=e.type.split("bytes"),n=Ku(u);if(!t){let r=u;return n%32!==0&&(r=$n(r,{dir:"right",size:Math.ceil((u.length-2)/2/32)*32})),{dynamic:!0,encoded:Cn([$n(O0(n,{size:32})),r])}}if(n!==parseInt(t))throw new PI({expectedSize:parseInt(t),value:u});return{dynamic:!1,encoded:$n(u,{dir:"right"})}}function WY(u){return{dynamic:!1,encoded:$n(_d(u))}}function qY(u,{signed:e}){return{dynamic:!1,encoded:O0(u,{size:32,signed:e})}}function HY(u){const e=Ac(u),t=Math.ceil(Ku(e)/32),n=[];for(let r=0;rr))}}function zd(u){const e=u.match(/^(.*)\[(\d+)?\]$/);return e?[e[2]?Number(e[2]):null,e[1]]:void 0}const VY=u=>Yu(Ge(u)),b3=u=>_u(VY(mg(u)),0,4);function xa({abi:u,args:e=[],name:t}){const n=uu(t,{strict:!1}),r=u.filter(i=>n?i.type==="function"?b3(i)===t:i.type==="event"?jd(i)===t:!1:"name"in i&&i.name===t);if(r.length!==0){if(r.length===1)return r[0];for(const i of r){if(!("inputs"in i))continue;if(!e||e.length===0){if(!i.inputs||i.inputs.length===0)return i;continue}if(!i.inputs||i.inputs.length===0||i.inputs.length!==e.length)continue;if(e.every((o,s)=>{const f="inputs"in i&&i.inputs[s];return f?tC(o,f):!1}))return i}return r[0]}}function tC(u,e){const t=typeof u,n=e.type;switch(n){case"address":return tt(u);case"bool":return t==="boolean";case"function":return t==="string";case"string":return t==="string";default:return n==="tuple"&&"components"in e?Object.values(e.components).every((r,i)=>tC(Object.values(u)[i],r)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(n)?t==="number"||t==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?t==="string"||u instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n)?Array.isArray(u)&&u.every(r=>tC(r,{...e,type:n.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function g3({abi:u,eventName:e,args:t}){var o;let n=u[0];if(e&&(n=xa({abi:u,args:t,name:e}),!n))throw new eC(e,{docsPath:"/docs/contract/encodeEventTopics"});if(n.type!=="event")throw new eC(void 0,{docsPath:"/docs/contract/encodeEventTopics"});const r=di(n),i=jd(r);let a=[];if(t&&"inputs"in n){const s=(o=n.inputs)==null?void 0:o.filter(l=>"indexed"in l&&l.indexed),f=Array.isArray(t)?t:Object.values(t).length>0?(s==null?void 0:s.map(l=>t[l.name]))??[]:[];f.length>0&&(a=(s==null?void 0:s.map((l,c)=>Array.isArray(f[c])?f[c].map((d,E)=>NF({param:l,value:f[c][E]})):f[c]?NF({param:l,value:f[c]}):null))??[])}return[i,...a]}function NF({param:u,value:e}){if(u.type==="string"||u.type==="bytes")return Yu(Ge(e));if(u.type==="tuple"||u.type.match(/^(.*)\[(\d+)?\]$/))throw new UI(u.type);return Ei([u],[e])}function Ld(u,{method:e}){var n,r;const t={};return u.transport.type==="fallback"&&((r=(n=u.transport).onResponse)==null||r.call(n,({method:i,response:a,status:o,transport:s})=>{o==="success"&&e===i&&(t[a]=s.request)})),i=>t[i]||u.request}async function Fg(u,{address:e,abi:t,args:n,eventName:r,fromBlock:i,strict:a,toBlock:o}){const s=Ld(u,{method:"eth_newFilter"}),f=r?g3({abi:t,args:n,eventName:r}):void 0,l=await u.request({method:"eth_newFilter",params:[{address:e,fromBlock:typeof i=="bigint"?O0(i):i,toBlock:typeof o=="bigint"?O0(o):o,topics:f}]});return{abi:t,args:n,eventName:r,id:l,request:s(l),strict:a,type:"event"}}function An(u){return typeof u=="string"?{address:u,type:"json-rpc"}:u}function pi({abi:u,args:e,functionName:t}){let n=u[0];if(t&&(n=xa({abi:u,args:e,name:t}),!n))throw new Go(t,{docsPath:"/docs/contract/encodeFunctionData"});if(n.type!=="function")throw new Go(void 0,{docsPath:"/docs/contract/encodeFunctionData"});const r=di(n),i=b3(r),a="inputs"in n&&n.inputs?Ei(n.inputs,e??[]):void 0;return ci([i,a??"0x"])}const eO={1:"An `assert` condition failed.",17:"Arithmic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},KY={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},QY={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function Dc(u,e){const t=e?`${e}${u.toLowerCase()}`:u.substring(2).toLowerCase(),n=Yu(br(t),"bytes"),r=(e?t.substring(`${e}0x`.length):t).split("");for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&r[i]&&(r[i]=r[i].toUpperCase()),(n[i>>1]&15)>=8&&r[i+1]&&(r[i+1]=r[i+1].toUpperCase());return`0x${r.join("")}`}function ju(u,e){if(!tt(u))throw new yt({address:u});return Dc(u,e)}function ss(u,e){if(e==="0x"&&u.length>0)throw new Fc;if(Ku(e)&&Ku(e)<32)throw new Nd({data:e,params:u,size:Ku(e)});return JY({data:e,params:u})}function JY({data:u,params:e}){const t=[];let n=0;for(let r=0;r=Ku(u))throw new Nd({data:u,params:e,size:Ku(u)});const i=e[r],{consumed:a,value:o}=kf({data:u,param:i,position:n});t.push(o),n+=a}return t}function kf({data:u,param:e,position:t}){const n=zd(e.type);if(n){const[i,a]=n;return YY(u,{length:i,param:{...e,type:a},position:t})}if(e.type==="tuple")return nX(u,{param:e,position:t});if(e.type==="string")return tX(u,{position:t});if(e.type.startsWith("bytes"))return uX(u,{param:e,position:t});const r=_u(u,t,t+32,{strict:!0});if(e.type.startsWith("uint")||e.type.startsWith("int"))return eX(r,{param:e});if(e.type==="address")return ZY(r);if(e.type==="bool")return XY(r);throw new jI(e.type,{docsPath:"/docs/contract/decodeAbiParameters"})}function ZY(u){return{consumed:32,value:Dc(_u(u,-20))}}function YY(u,{param:e,length:t,position:n}){if(!t){const a=gu(_u(u,n,n+32,{strict:!0})),o=gu(_u(u,a,a+32,{strict:!0}));let s=0;const f=[];for(let l=0;l48?Ru(u,{signed:t}):gu(u,{signed:t})}}function tX(u,{position:e}){const t=gu(_u(u,e,e+32,{strict:!0})),n=gu(_u(u,t,t+32,{strict:!0}));return n===0?{consumed:32,value:""}:{consumed:32,value:yc(Ze(_u(u,t+32,t+32+n,{strict:!0})))}}function nX(u,{param:e,position:t}){const n=e.components.length===0||e.components.some(({name:a})=>!a),r=n?[]:{};let i=0;if(O2(e)){const a=gu(_u(u,t,t+32,{strict:!0}));for(let o=0;oi.type==="error"&&t===b3(di(i)));if(!r)throw new pg(t,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:r,args:"inputs"in r&&r.inputs&&r.inputs.length>0?ss(r.inputs,_u(e,4)):void 0,errorName:r.name}}const Ce=(u,e,t)=>JSON.stringify(u,(n,r)=>{const i=typeof r=="bigint"?r.toString():r;return typeof e=="function"?e(n,i):i},t);function tO({abiItem:u,args:e,includeFunctionName:t=!0,includeName:n=!1}){if("name"in u&&"inputs"in u&&u.inputs)return`${t?u.name:""}(${u.inputs.map((r,i)=>`${n&&r.name?`${r.name}: `:""}${typeof e[i]=="object"?Ce(e[i]):e[i]}`).join(", ")})`}function $d(u,e="wei"){return D1(u,lg[e])}function wc(u){const e=Object.entries(u).map(([n,r])=>r===void 0||r===!1?null:[n,r]).filter(Boolean),t=e.reduce((n,[r])=>Math.max(n,r.length),0);return e.map(([n,r])=>` ${`${n}:`.padEnd(t+1)} ${r}`).join(` +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}class $I extends l0{constructor(e){super(`Type "${e}" is not supported for packed encoding.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedPackedAbiType"})}}class UI extends l0{constructor(e){super(`Filter type "${e}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}function mY(u){let e=!0,t="",n=0,r="",i=!1;for(let a=0;a{const e=typeof u=="string"?u:$Z(u);return mY(e)},WI=u=>bg(u);function O2(u){if(!Number.isSafeInteger(u)||u<0)throw new Error(`Wrong positive integer: ${u}`)}function gg(u,...e){if(!(u instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(u.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${u.length}`)}function bY(u){if(typeof u!="function"||typeof u.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");O2(u.outputLen),O2(u.blockLen)}function T4(u,e=!0){if(u.destroyed)throw new Error("Hash instance has been destroyed");if(e&&u.finished)throw new Error("Hash#digest() has already been called")}function qI(u,e){gg(u);const t=e.outputLen;if(u.length>OF&O6)}:{h:Number(u>>OF&O6)|0,l:Number(u&O6)|0}}function AY(u,e=!1){let t=new Uint32Array(u.length),n=new Uint32Array(u.length);for(let r=0;ru<>>32-t,vY=(u,e,t)=>e<>>32-t,BY=(u,e,t)=>e<>>64-t,FY=(u,e,t)=>u<>>64-t,D8=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const HI=u=>u instanceof Uint8Array,DY=u=>new Uint32Array(u.buffer,u.byteOffset,Math.floor(u.byteLength/4)),w8=u=>new DataView(u.buffer,u.byteOffset,u.byteLength),Zn=(u,e)=>u<<32-e|u>>>e,wY=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!wY)throw new Error("Non little-endian hardware is not supported");function xY(u){if(typeof u!="string")throw new Error(`utf8ToBytes expected string, got ${typeof u}`);return new Uint8Array(new TextEncoder().encode(u))}function jd(u){if(typeof u=="string"&&(u=xY(u)),!HI(u))throw new Error(`expected Uint8Array, got ${typeof u}`);return u}function kY(...u){const e=new Uint8Array(u.reduce((n,r)=>n+r.length,0));let t=0;return u.forEach(n=>{if(!HI(n))throw new Error("Uint8Array expected");e.set(n,t),t+=n.length}),e}let Ag=class{clone(){return this._cloneInto()}};function GI(u){const e=n=>u().update(jd(n)).digest(),t=u();return e.outputLen=t.outputLen,e.blockLen=t.blockLen,e.create=()=>u(),e}function VI(u=32){if(D8&&typeof D8.getRandomValues=="function")return D8.getRandomValues(new Uint8Array(u));throw new Error("crypto.getRandomValues must be defined")}const[KI,QI,JI]=[[],[],[]],_Y=BigInt(0),sl=BigInt(1),SY=BigInt(2),TY=BigInt(7),PY=BigInt(256),IY=BigInt(113);for(let u=0,e=sl,t=1,n=0;u<24;u++){[t,n]=[n,(2*t+3*n)%5],KI.push(2*(5*n+t)),QI.push((u+1)*(u+2)/2%64);let r=_Y;for(let i=0;i<7;i++)e=(e<>TY)*IY)%PY,e&SY&&(r^=sl<<(sl<t>32?BY(u,e,t):yY(u,e,t),NF=(u,e,t)=>t>32?FY(u,e,t):vY(u,e,t);function NY(u,e=24){const t=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let a=0;a<10;a++)t[a]=u[a]^u[a+10]^u[a+20]^u[a+30]^u[a+40];for(let a=0;a<10;a+=2){const o=(a+8)%10,s=(a+2)%10,f=t[s],l=t[s+1],c=RF(f,l,1)^t[o],d=NF(f,l,1)^t[o+1];for(let E=0;E<50;E+=10)u[a+E]^=c,u[a+E+1]^=d}let r=u[2],i=u[3];for(let a=0;a<24;a++){const o=QI[a],s=RF(r,i,o),f=NF(r,i,o),l=KI[a];r=u[l],i=u[l+1],u[l]=s,u[l+1]=f}for(let a=0;a<50;a+=10){for(let o=0;o<10;o++)t[o]=u[a+o];for(let o=0;o<10;o++)u[a+o]^=~t[(o+2)%10]&t[(o+4)%10]}u[0]^=OY[n],u[1]^=RY[n]}t.fill(0)}class yg extends Ag{constructor(e,t,n,r=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,O2(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=DY(this.state)}keccak(){NY(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){T4(this);const{blockLen:t,state:n}=this;e=jd(e);const r=e.length;for(let i=0;i=n&&this.keccak();const a=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+a),r),this.posOut+=a,r+=a}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return O2(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(qI(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:a}=this;return e||(e=new yg(t,n,r,a,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=a,e.destroyed=this.destroyed,e}}const MY=(u,e,t)=>GI(()=>new yg(e,u,t)),ZI=MY(1,136,256/8);function Yu(u,e){const t=e||"hex",n=ZI(uu(u,{strict:!1})?Ge(u):u);return t==="bytes"?n:tu(n)}const jY=u=>Yu(Ge(u)),zd=u=>jY(WI(u));function _u(u,e,t,{strict:n}={}){return uu(u,{strict:!1})?vg(u,e,t,{strict:n}):uO(u,e,t,{strict:n})}function YI(u,e){if(typeof e=="number"&&e>0&&e>Ku(u)-1)throw new ig({offset:e,position:"start",size:Ku(u)})}function XI(u,e,t){if(typeof e=="number"&&typeof t=="number"&&Ku(u)!==t-e)throw new ig({offset:t,position:"end",size:Ku(u)})}function uO(u,e,t,{strict:n}={}){YI(u,e);const r=u.slice(e,t);return n&&XI(r,e,t),r}function vg(u,e,t,{strict:n}={}){YI(u,e);const r=`0x${u.replace("0x","").slice((e??0)*2,(t??u.length)*2)}`;return n&&XI(r,e,t),r}function Ei(u,e){if(u.length!==e.length)throw new pg({expectedLength:u.length,givenLength:e.length});const t=zY({params:u,values:e}),n=Fg(t);return n.length===0?"0x":n}function zY({params:u,values:e}){const t=[];for(let n=0;n0?Cn([o,a]):o}}if(r)return{dynamic:!0,encoded:a}}return{dynamic:!1,encoded:Cn(i.map(({encoded:a})=>a))}}function UY(u,{param:e}){const[,t]=e.type.split("bytes"),n=Ku(u);if(!t){let r=u;return n%32!==0&&(r=$n(r,{dir:"right",size:Math.ceil((u.length-2)/2/32)*32})),{dynamic:!0,encoded:Cn([$n(O0(n,{size:32})),r])}}if(n!==parseInt(t))throw new PI({expectedSize:parseInt(t),value:u});return{dynamic:!1,encoded:$n(u,{dir:"right"})}}function WY(u){return{dynamic:!1,encoded:$n(Sd(u))}}function qY(u,{signed:e}){return{dynamic:!1,encoded:O0(u,{size:32,signed:e})}}function HY(u){const e=yc(u),t=Math.ceil(Ku(e)/32),n=[];for(let r=0;rr))}}function Ld(u){const e=u.match(/^(.*)\[(\d+)?\]$/);return e?[e[2]?Number(e[2]):null,e[1]]:void 0}const VY=u=>Yu(Ge(u)),b3=u=>_u(VY(bg(u)),0,4);function _a({abi:u,args:e=[],name:t}){const n=uu(t,{strict:!1}),r=u.filter(i=>n?i.type==="function"?b3(i)===t:i.type==="event"?zd(i)===t:!1:"name"in i&&i.name===t);if(r.length!==0){if(r.length===1)return r[0];for(const i of r){if(!("inputs"in i))continue;if(!e||e.length===0){if(!i.inputs||i.inputs.length===0)return i;continue}if(!i.inputs||i.inputs.length===0||i.inputs.length!==e.length)continue;if(e.every((o,s)=>{const f="inputs"in i&&i.inputs[s];return f?nC(o,f):!1}))return i}return r[0]}}function nC(u,e){const t=typeof u,n=e.type;switch(n){case"address":return tt(u);case"bool":return t==="boolean";case"function":return t==="string";case"string":return t==="string";default:return n==="tuple"&&"components"in e?Object.values(e.components).every((r,i)=>nC(Object.values(u)[i],r)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(n)?t==="number"||t==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?t==="string"||u instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n)?Array.isArray(u)&&u.every(r=>nC(r,{...e,type:n.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function g3({abi:u,eventName:e,args:t}){var o;let n=u[0];if(e&&(n=_a({abi:u,args:t,name:e}),!n))throw new tC(e,{docsPath:"/docs/contract/encodeEventTopics"});if(n.type!=="event")throw new tC(void 0,{docsPath:"/docs/contract/encodeEventTopics"});const r=di(n),i=zd(r);let a=[];if(t&&"inputs"in n){const s=(o=n.inputs)==null?void 0:o.filter(l=>"indexed"in l&&l.indexed),f=Array.isArray(t)?t:Object.values(t).length>0?(s==null?void 0:s.map(l=>t[l.name]))??[]:[];f.length>0&&(a=(s==null?void 0:s.map((l,c)=>Array.isArray(f[c])?f[c].map((d,E)=>MF({param:l,value:f[c][E]})):f[c]?MF({param:l,value:f[c]}):null))??[])}return[i,...a]}function MF({param:u,value:e}){if(u.type==="string"||u.type==="bytes")return Yu(Ge(e));if(u.type==="tuple"||u.type.match(/^(.*)\[(\d+)?\]$/))throw new UI(u.type);return Ei([u],[e])}function $d(u,{method:e}){var n,r;const t={};return u.transport.type==="fallback"&&((r=(n=u.transport).onResponse)==null||r.call(n,({method:i,response:a,status:o,transport:s})=>{o==="success"&&e===i&&(t[a]=s.request)})),i=>t[i]||u.request}async function Dg(u,{address:e,abi:t,args:n,eventName:r,fromBlock:i,strict:a,toBlock:o}){const s=$d(u,{method:"eth_newFilter"}),f=r?g3({abi:t,args:n,eventName:r}):void 0,l=await u.request({method:"eth_newFilter",params:[{address:e,fromBlock:typeof i=="bigint"?O0(i):i,toBlock:typeof o=="bigint"?O0(o):o,topics:f}]});return{abi:t,args:n,eventName:r,id:l,request:s(l),strict:a,type:"event"}}function An(u){return typeof u=="string"?{address:u,type:"json-rpc"}:u}function pi({abi:u,args:e,functionName:t}){let n=u[0];if(t&&(n=_a({abi:u,args:e,name:t}),!n))throw new Go(t,{docsPath:"/docs/contract/encodeFunctionData"});if(n.type!=="function")throw new Go(void 0,{docsPath:"/docs/contract/encodeFunctionData"});const r=di(n),i=b3(r),a="inputs"in n&&n.inputs?Ei(n.inputs,e??[]):void 0;return ci([i,a??"0x"])}const eO={1:"An `assert` condition failed.",17:"Arithmic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},KY={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},QY={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function wc(u,e){const t=e?`${e}${u.toLowerCase()}`:u.substring(2).toLowerCase(),n=Yu(br(t),"bytes"),r=(e?t.substring(`${e}0x`.length):t).split("");for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&r[i]&&(r[i]=r[i].toUpperCase()),(n[i>>1]&15)>=8&&r[i+1]&&(r[i+1]=r[i+1].toUpperCase());return`0x${r.join("")}`}function ju(u,e){if(!tt(u))throw new yt({address:u});return wc(u,e)}function ss(u,e){if(e==="0x"&&u.length>0)throw new Dc;if(Ku(e)&&Ku(e)<32)throw new Md({data:e,params:u,size:Ku(e)});return JY({data:e,params:u})}function JY({data:u,params:e}){const t=[];let n=0;for(let r=0;r=Ku(u))throw new Md({data:u,params:e,size:Ku(u)});const i=e[r],{consumed:a,value:o}=kf({data:u,param:i,position:n});t.push(o),n+=a}return t}function kf({data:u,param:e,position:t}){const n=Ld(e.type);if(n){const[i,a]=n;return YY(u,{length:i,param:{...e,type:a},position:t})}if(e.type==="tuple")return nX(u,{param:e,position:t});if(e.type==="string")return tX(u,{position:t});if(e.type.startsWith("bytes"))return uX(u,{param:e,position:t});const r=_u(u,t,t+32,{strict:!0});if(e.type.startsWith("uint")||e.type.startsWith("int"))return eX(r,{param:e});if(e.type==="address")return ZY(r);if(e.type==="bool")return XY(r);throw new jI(e.type,{docsPath:"/docs/contract/decodeAbiParameters"})}function ZY(u){return{consumed:32,value:wc(_u(u,-20))}}function YY(u,{param:e,length:t,position:n}){if(!t){const a=gu(_u(u,n,n+32,{strict:!0})),o=gu(_u(u,a,a+32,{strict:!0}));let s=0;const f=[];for(let l=0;l48?Ru(u,{signed:t}):gu(u,{signed:t})}}function tX(u,{position:e}){const t=gu(_u(u,e,e+32,{strict:!0})),n=gu(_u(u,t,t+32,{strict:!0}));return n===0?{consumed:32,value:""}:{consumed:32,value:vc(Ze(_u(u,t+32,t+32+n,{strict:!0})))}}function nX(u,{param:e,position:t}){const n=e.components.length===0||e.components.some(({name:a})=>!a),r=n?[]:{};let i=0;if(R2(e)){const a=gu(_u(u,t,t+32,{strict:!0}));for(let o=0;oi.type==="error"&&t===b3(di(i)));if(!r)throw new hg(t,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:r,args:"inputs"in r&&r.inputs&&r.inputs.length>0?ss(r.inputs,_u(e,4)):void 0,errorName:r.name}}const Ce=(u,e,t)=>JSON.stringify(u,(n,r)=>{const i=typeof r=="bigint"?r.toString():r;return typeof e=="function"?e(n,i):i},t);function tO({abiItem:u,args:e,includeFunctionName:t=!0,includeName:n=!1}){if("name"in u&&"inputs"in u&&u.inputs)return`${t?u.name:""}(${u.inputs.map((r,i)=>`${n&&r.name?`${r.name}: `:""}${typeof e[i]=="object"?Ce(e[i]):e[i]}`).join(", ")})`}function Ud(u,e="wei"){return w1(u,cg[e])}function xc(u){const e=Object.entries(u).map(([n,r])=>r===void 0||r===!1?null:[n,r]).filter(Boolean),t=e.reduce((n,[r])=>Math.max(n,r.length),0);return e.map(([n,r])=>` ${`${n}:`.padEnd(t+1)} ${r}`).join(` `)}class nO extends l0{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class wg extends l0{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}class rO extends l0{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",wc(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class iO extends l0{constructor({serializedType:e}){super(`Serialized transaction type "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=e}}class Ud extends l0{constructor({attributes:e,serializedTransaction:t,type:n}){const r=Object.entries(e).map(([i,a])=>typeof a>"u"?i:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${n}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,r.length>0?`Missing Attributes: ${r.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=t,this.type=n}}class aO extends l0{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}class oO extends l0{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:d}){var p;const E=wc({chain:r&&`${r==null?void 0:r.name} (id: ${r==null?void 0:r.id})`,from:t==null?void 0:t.address,to:c,value:typeof d<"u"&&`${$d(d)} ${((p=r==null?void 0:r.nativeCurrency)==null?void 0:p.symbol)||"ETH"}`,data:i,gas:a,gasPrice:typeof o<"u"&&`${Ye(o)} gwei`,maxFeePerGas:typeof s<"u"&&`${Ye(s)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${Ye(f)} gwei`,nonce:l});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",E].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=e}}class xg extends l0{constructor({blockHash:e,blockNumber:t,blockTag:n,hash:r,index:i}){let a="Transaction";n&&i!==void 0&&(a=`Transaction at block time "${n}" at index "${i}"`),e&&i!==void 0&&(a=`Transaction at block hash "${e}" at index "${i}"`),t&&i!==void 0&&(a=`Transaction at block number "${t}" at index "${i}"`),r&&(a=`Transaction with hash "${r}"`),super(`${a} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}class kg extends l0{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}class sO extends l0{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}class _g extends l0{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:d}){var h;const E=t?An(t):void 0,p=wc({from:E==null?void 0:E.address,to:c,value:typeof d<"u"&&`${$d(d)} ${((h=r==null?void 0:r.nativeCurrency)==null?void 0:h.symbol)||"ETH"}`,data:i,gas:a,gasPrice:typeof o<"u"&&`${Ye(o)} gwei`,maxFeePerGas:typeof s<"u"&&`${Ye(s)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${Ye(f)} gwei`,nonce:l});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",p].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=e}}class Wd extends l0{constructor(e,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:a,sender:o}){const s=xa({abi:t,args:n,name:a}),f=s?tO({abiItem:s,args:n,includeFunctionName:!1,includeName:!1}):void 0,l=s?di(s,{includeName:!0}):void 0,c=wc({address:r&&DZ(r),function:l,args:f&&f!=="()"&&`${[...Array((a==null?void 0:a.length)??0).keys()].map(()=>" ").join("")}${f}`,sender:o});super(e.shortMessage||`An unknown error occurred while executing the contract function "${a}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Contract Call:",c].filter(Boolean)}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=t,this.args=n,this.cause=e,this.contractAddress=r,this.functionName=a,this.sender=o}}class R2 extends l0{constructor({abi:e,data:t,functionName:n,message:r}){let i,a,o,s;if(t&&t!=="0x")try{a=Dg({abi:e,data:t});const{abiItem:l,errorName:c,args:d}=a;if(c==="Error")s=d[0];else if(c==="Panic"){const[E]=d;s=eO[E]}else{const E=l?di(l,{includeName:!0}):void 0,p=l&&d?tO({abiItem:l,args:d,includeFunctionName:!1,includeName:!1}):void 0;o=[E?`Error: ${E}`:"",p&&p!=="()"?` ${[...Array((c==null?void 0:c.length)??0).keys()].map(()=>" ").join("")}${p}`:""]}}catch(l){i=l}else r&&(s=r);let f;i instanceof pg&&(f=i.signature,o=[`Unable to decode signature "${f}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${f}.`]),super(s&&s!=="execution reverted"||f?[`The contract function "${n}" reverted with the following ${f?"signature":"reason"}:`,s||f].join(` -`):`The contract function "${n}" reverted.`,{cause:i,metaMessages:o}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=a,this.reason=s,this.signature=f}}class fO extends l0{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}class qd extends l0{constructor({data:e,message:t}){super(t||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}class fa extends l0{constructor({body:e,details:t,headers:n,status:r,url:i}){super("HTTP request failed.",{details:t,metaMessages:[r&&`Status: ${r}`,`URL: ${m3(i)}`,e&&`Request body: ${Ce(e)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=n,this.status=r,this.url=i}}class lO extends l0{constructor({body:e,details:t,url:n}){super("WebSocket request failed.",{details:t,metaMessages:[`URL: ${m3(n)}`,`Request body: ${Ce(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}class Hd extends l0{constructor({body:e,error:t,url:n}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${m3(n)}`,`Request body: ${Ce(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}class N2 extends l0{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${m3(t)}`,`Request body: ${Ce(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}const rX=-1;class at extends l0{constructor(e,{code:t,docsPath:n,metaMessages:r,shortMessage:i}){super(i,{cause:e,docsPath:n,metaMessages:r||(e==null?void 0:e.metaMessages)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e.name,this.code=e instanceof Hd?e.code:t??rX}}class fs extends at{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class P4 extends at{constructor(e){super(e,{code:P4.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(P4,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class I4 extends at{constructor(e){super(e,{code:I4.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(I4,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class O4 extends at{constructor(e){super(e,{code:O4.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(O4,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class R4 extends at{constructor(e){super(e,{code:R4.code,shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(` -`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(R4,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Vo extends at{constructor(e){super(e,{code:Vo.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(Vo,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class ma extends at{constructor(e){super(e,{code:ma.code,shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(` -`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(ma,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class N4 extends at{constructor(e){super(e,{code:N4.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(N4,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class ni extends at{constructor(e){super(e,{code:ni.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(ni,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class M4 extends at{constructor(e){super(e,{code:M4.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(M4,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class j4 extends at{constructor(e){super(e,{code:j4.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(j4,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class z4 extends at{constructor(e){super(e,{code:z4.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(z4,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class L4 extends at{constructor(e){super(e,{code:L4.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(L4,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Xu extends fs{constructor(e){super(e,{code:Xu.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(Xu,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class $4 extends fs{constructor(e){super(e,{code:$4.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty($4,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class U4 extends fs{constructor(e){super(e,{code:U4.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(U4,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class W4 extends fs{constructor(e){super(e,{code:W4.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(W4,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class q4 extends fs{constructor(e){super(e,{code:q4.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(q4,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class Wn extends fs{constructor(e){super(e,{code:Wn.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(Wn,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class cO extends at{constructor(e){super(e,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}const iX=3;function H4(u,{abi:e,address:t,args:n,docsPath:r,functionName:i,sender:a}){const{code:o,data:s,message:f,shortMessage:l}=u instanceof qd?u:u instanceof l0?u.walk(d=>"data"in d)||u.walk():{},c=u instanceof Fc?new fO({functionName:i}):[iX,Vo.code].includes(o)&&(s||f||l)?new R2({abi:e,data:typeof s=="object"?s.data:s,functionName:i,message:l??f}):u;return new Wd(c,{abi:e,args:n,contractAddress:t,docsPath:r,functionName:i,sender:a})}class A3 extends l0{constructor({docsPath:e}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient."].join(` -`),{docsPath:e,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}class dO extends l0{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:d}){var p;const E=wc({from:t==null?void 0:t.address,to:c,value:typeof d<"u"&&`${$d(d)} ${((p=r==null?void 0:r.nativeCurrency)==null?void 0:p.symbol)||"ETH"}`,data:i,gas:a,gasPrice:typeof o<"u"&&`${Ye(o)} gwei`,maxFeePerGas:typeof s<"u"&&`${Ye(s)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${Ye(f)} gwei`,nonce:l});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",E].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=e}}function Sg(u,e){const t=(u.details||"").toLowerCase(),n=u.walk(r=>r.code===uo.code);return n instanceof l0?new uo({cause:u,message:n.details}):uo.nodeMessage.test(t)?new uo({cause:u,message:u.details}):ha.nodeMessage.test(t)?new ha({cause:u,maxFeePerGas:e==null?void 0:e.maxFeePerGas}):F2.nodeMessage.test(t)?new F2({cause:u,maxFeePerGas:e==null?void 0:e.maxFeePerGas}):D2.nodeMessage.test(t)?new D2({cause:u,nonce:e==null?void 0:e.nonce}):w2.nodeMessage.test(t)?new w2({cause:u,nonce:e==null?void 0:e.nonce}):x2.nodeMessage.test(t)?new x2({cause:u,nonce:e==null?void 0:e.nonce}):k2.nodeMessage.test(t)?new k2({cause:u}):_2.nodeMessage.test(t)?new _2({cause:u,gas:e==null?void 0:e.gas}):S2.nodeMessage.test(t)?new S2({cause:u,gas:e==null?void 0:e.gas}):T2.nodeMessage.test(t)?new T2({cause:u}):S4.nodeMessage.test(t)?new S4({cause:u,maxFeePerGas:e==null?void 0:e.maxFeePerGas,maxPriorityFeePerGas:e==null?void 0:e.maxPriorityFeePerGas}):new vc({cause:u})}function aX(u,{docsPath:e,...t}){const n=(()=>{const r=Sg(u,t);return r instanceof vc?u:r})();return new dO(n,{docsPath:e,...t})}function Gd(u,{format:e}){if(!e)return{};const t={};function n(i){const a=Object.keys(i);for(const o of a)o in u&&(t[o]=u[o]),i[o]&&typeof i[o]=="object"&&!Array.isArray(i[o])&&n(i[o])}const r=e(u||{});return n(r),t}function y3(u){const{account:e,gasPrice:t,maxFeePerGas:n,maxPriorityFeePerGas:r,to:i}=u,a=e?An(e):void 0;if(a&&!tt(a.address))throw new yt({address:a.address});if(i&&!tt(i))throw new yt({address:i});if(typeof t<"u"&&(typeof n<"u"||typeof r<"u"))throw new nO;if(n&&n>2n**256n-1n)throw new ha({maxFeePerGas:n});if(r&&n&&r>n)throw new S4({maxFeePerGas:n,maxPriorityFeePerGas:r})}class EO extends l0{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}class Vd extends l0{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}class pO extends l0{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${Ye(e)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}class Tg extends l0{constructor({blockHash:e,blockNumber:t}){let n="Block";e&&(n=`Block at hash "${e}"`),t&&(n=`Block at number "${t}"`),super(`${n} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}async function ba(u,{blockHash:e,blockNumber:t,blockTag:n,includeTransactions:r}={}){var l,c,d;const i=n??"latest",a=r??!1,o=t!==void 0?O0(t):void 0;let s=null;if(e?s=await u.request({method:"eth_getBlockByHash",params:[e,a]}):s=await u.request({method:"eth_getBlockByNumber",params:[o||i,a]}),!s)throw new Tg({blockHash:e,blockNumber:t});return(((d=(c=(l=u.chain)==null?void 0:l.formatters)==null?void 0:c.block)==null?void 0:d.format)||Pd)(s)}async function Pg(u){const e=await u.request({method:"eth_gasPrice"});return BigInt(e)}async function oX(u,e){return hO(u,e)}async function hO(u,e){var i,a,o;const{block:t,chain:n=u.chain,request:r}=e||{};if(typeof((i=n==null?void 0:n.fees)==null?void 0:i.defaultPriorityFee)=="function"){const s=t||await z0(u,ba,"getBlock")({});return n.fees.defaultPriorityFee({block:s,client:u,request:r})}if(typeof((a=n==null?void 0:n.fees)==null?void 0:a.defaultPriorityFee)<"u")return(o=n==null?void 0:n.fees)==null?void 0:o.defaultPriorityFee;try{const s=await u.request({method:"eth_maxPriorityFeePerGas"});return Ru(s)}catch{const[s,f]=await Promise.all([t?Promise.resolve(t):z0(u,ba,"getBlock")({}),z0(u,Pg,"getGasPrice")({})]);if(typeof s.baseFeePerGas!="bigint")throw new Vd;const l=f-s.baseFeePerGas;return l<0n?0n:l}}async function sX(u,e){return nC(u,e)}async function nC(u,e){var d,E;const{block:t,chain:n=u.chain,request:r,type:i="eip1559"}=e||{},a=await(async()=>{var p,h;return typeof((p=n==null?void 0:n.fees)==null?void 0:p.baseFeeMultiplier)=="function"?n.fees.baseFeeMultiplier({block:t,client:u,request:r}):((h=n==null?void 0:n.fees)==null?void 0:h.baseFeeMultiplier)??1.2})();if(a<1)throw new EO;const s=10**(((d=a.toString().split(".")[1])==null?void 0:d.length)??0),f=p=>p*BigInt(Math.ceil(a*s))/BigInt(s),l=t||await z0(u,ba,"getBlock")({});if(typeof((E=n==null?void 0:n.fees)==null?void 0:E.estimateFeesPerGas)=="function")return n.fees.estimateFeesPerGas({block:t,client:u,multiply:f,request:r,type:i});if(i==="eip1559"){if(typeof l.baseFeePerGas!="bigint")throw new Vd;const p=r!=null&&r.maxPriorityFeePerGas?r.maxPriorityFeePerGas:await hO(u,{block:l,chain:n,request:r}),h=f(l.baseFeePerGas);return{maxFeePerGas:(r==null?void 0:r.maxFeePerGas)??h+p,maxPriorityFeePerGas:p}}return{gasPrice:(r==null?void 0:r.gasPrice)??f(await z0(u,Pg,"getGasPrice")({}))}}async function CO(u,{address:e,blockTag:t="latest",blockNumber:n}){const r=await u.request({method:"eth_getTransactionCount",params:[e,n?O0(n):t]});return gu(r)}function Ig(u){if(u.type)return u.type;if(typeof u.maxFeePerGas<"u"||typeof u.maxPriorityFeePerGas<"u")return"eip1559";if(typeof u.gasPrice<"u")return typeof u.accessList<"u"?"eip2930":"legacy";throw new rO({transaction:u})}async function Kd(u,e){const{account:t=u.account,chain:n,gas:r,nonce:i,type:a}=e;if(!t)throw new A3;const o=An(t),s=await z0(u,ba,"getBlock")({blockTag:"latest"}),f={...e,from:o.address};if(typeof i>"u"&&(f.nonce=await z0(u,CO,"getTransactionCount")({address:o.address,blockTag:"pending"})),typeof a>"u")try{f.type=Ig(f)}catch{f.type=typeof s.baseFeePerGas=="bigint"?"eip1559":"legacy"}if(f.type==="eip1559"){const{maxFeePerGas:l,maxPriorityFeePerGas:c}=await nC(u,{block:s,chain:n,request:f});if(typeof e.maxPriorityFeePerGas>"u"&&e.maxFeePerGas&&e.maxFeePerGas"u"&&(f.gas=await z0(u,Og,"estimateGas")({...f,account:{address:o.address,type:"json-rpc"}})),y3(f),f}async function Og(u,e){var r,i,a;const t=e.account??u.account;if(!t)throw new A3({docsPath:"/docs/actions/public/estimateGas"});const n=An(t);try{const{accessList:o,blockNumber:s,blockTag:f,data:l,gas:c,gasPrice:d,maxFeePerGas:E,maxPriorityFeePerGas:p,nonce:h,to:g,value:b,...m}=n.type==="local"?await Kd(u,e):e,y=(s?O0(s):void 0)||f;y3(e);const B=(a=(i=(r=u.chain)==null?void 0:r.formatters)==null?void 0:i.transactionRequest)==null?void 0:a.format,C=(B||as)({...Gd(m,{format:B}),from:n.address,accessList:o,data:l,gas:c,gasPrice:d,maxFeePerGas:E,maxPriorityFeePerGas:p,nonce:h,to:g,value:b}),D=await u.request({method:"eth_estimateGas",params:y?[C,y]:[C]});return BigInt(D)}catch(o){throw aX(o,{...e,account:n,chain:u.chain})}}async function mO(u,{abi:e,address:t,args:n,functionName:r,...i}){const a=pi({abi:e,args:n,functionName:r});try{return await z0(u,Og,"estimateGas")({data:a,to:t,...i})}catch(o){const s=i.account?An(i.account):void 0;throw H4(o,{abi:e,address:t,args:n,docsPath:"/docs/contract/estimateContractGas",functionName:r,sender:s==null?void 0:s.address})}}const MF="/docs/contract/decodeEventLog";function v3({abi:u,data:e,strict:t,topics:n}){const r=t??!0,[i,...a]=n;if(!i)throw new OI({docsPath:MF});const o=u.find(p=>p.type==="event"&&i===jd(di(p)));if(!(o&&"name"in o)||o.type!=="event")throw new RI(i,{docsPath:MF});const{name:s,inputs:f}=o,l=f==null?void 0:f.some(p=>!("name"in p&&p.name));let c=l?[]:{};const d=f.filter(p=>"indexed"in p&&p.indexed);for(let p=0;p!("indexed"in p&&p.indexed));if(E.length>0){if(e&&e!=="0x")try{const p=ss(E,e);if(p)if(l)c=[...c,...p];else for(let h=0;h0?c:void 0}}function fX({param:u,value:e}){return u.type==="string"||u.type==="bytes"||u.type==="tuple"||u.type.match(/^(.*)\[(\d+)?\]$/)?e:(ss([u],e)||[])[0]}async function Rg(u,{address:e,blockHash:t,fromBlock:n,toBlock:r,event:i,events:a,args:o,strict:s}={}){const f=s??!1,l=a??(i?[i]:void 0);let c=[];l&&(c=[l.flatMap(E=>g3({abi:[E],eventName:E.name,args:o}))],i&&(c=c[0]));let d;return t?d=await u.request({method:"eth_getLogs",params:[{address:e,topics:c,blockHash:t}]}):d=await u.request({method:"eth_getLogs",params:[{address:e,topics:c,fromBlock:typeof n=="bigint"?O0(n):n,toBlock:typeof r=="bigint"?O0(r):r}]}),d.map(E=>{var p;try{const{eventName:h,args:g}=l?v3({abi:l,data:E.data,topics:E.topics,strict:f}):{eventName:void 0,args:void 0};return hn(E,{args:g,eventName:h})}catch(h){let g,b;if(h instanceof Ca||h instanceof os){if(f)return;g=h.abiItem.name,b=(p=h.abiItem.inputs)==null?void 0:p.some(m=>!("name"in m&&m.name))}return hn(E,{args:b?[]:{},eventName:g})}}).filter(Boolean)}async function Ng(u,{abi:e,address:t,args:n,blockHash:r,eventName:i,fromBlock:a,toBlock:o,strict:s}){const f=i?xa({abi:e,name:i}):void 0,l=f?void 0:e.filter(c=>c.type==="event");return z0(u,Rg,"getLogs")({address:t,args:n,blockHash:r,event:f,events:l,fromBlock:a,toBlock:o,strict:s})}const w8="/docs/contract/decodeFunctionResult";function ls({abi:u,args:e,functionName:t,data:n}){let r=u[0];if(t&&(r=xa({abi:u,args:e,name:t}),!r))throw new Go(t,{docsPath:w8});if(r.type!=="function")throw new Go(void 0,{docsPath:w8});if(!r.outputs)throw new hg(r.name,{docsPath:w8});const i=ss(r.outputs,n);if(i&&i.length>1)return i;if(i&&i.length===1)return i[0]}const M2=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],bO=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}],gO=[...bO,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],lX=[...bO,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],jF=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],zF=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],cX=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}],dX="0x82ad56cb";function cs({blockNumber:u,chain:e,contract:t}){var r;const n=(r=e==null?void 0:e.contracts)==null?void 0:r[t];if(!n)throw new B2({chain:e,contract:{name:t}});if(u&&n.blockCreated&&n.blockCreated>u)throw new B2({blockNumber:u,chain:e,contract:{name:t,blockCreated:n.blockCreated}});return n.address}function EX(u,{docsPath:e,...t}){const n=(()=>{const r=Sg(u,t);return r instanceof vc?u:r})();return new _g(n,{docsPath:e,...t})}const x8=new Map;function Mg({fn:u,id:e,shouldSplitBatch:t,wait:n=0,sort:r}){const i=async()=>{const l=s();a();const c=l.map(({args:d})=>d);c.length!==0&&u(c).then(d=>{var E;r&&Array.isArray(d)&&d.sort(r);for(let p=0;p{var E;for(let p=0;px8.delete(e),o=()=>s().map(({args:l})=>l),s=()=>x8.get(e)||[],f=l=>x8.set(e,[...s(),l]);return{flush:a,async schedule(l){const c={},d=new Promise((h,g)=>{c.resolve=h,c.reject=g});return(t==null?void 0:t([...o(),l]))&&i(),s().length>0?(f({args:l,pendingPromise:c}),d):(f({args:l,pendingPromise:c}),setTimeout(i,n),d)}}}async function xc(u,e){var b,m,A,y;const{account:t=u.account,batch:n=!!((b=u.batch)!=null&&b.multicall),blockNumber:r,blockTag:i="latest",accessList:a,data:o,gas:s,gasPrice:f,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:d,to:E,value:p,...h}=e,g=t?An(t):void 0;try{y3(e);const v=(r?O0(r):void 0)||i,C=(y=(A=(m=u.chain)==null?void 0:m.formatters)==null?void 0:A.transactionRequest)==null?void 0:y.format,S=(C||as)({...Gd(h,{format:C}),from:g==null?void 0:g.address,accessList:a,data:o,gas:s,gasPrice:f,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:d,to:E,value:p});if(n&&pX({request:S}))try{return await hX(u,{...S,blockNumber:r,blockTag:i})}catch(L){if(!(L instanceof fg)&&!(L instanceof B2))throw L}const x=await u.request({method:"eth_call",params:v?[S,v]:[S]});return x==="0x"?{data:void 0}:{data:x}}catch(B){const v=CX(B),{offchainLookup:C,offchainLookupSignature:D}=await q0(()=>Promise.resolve().then(()=>a00),void 0);if((v==null?void 0:v.slice(0,10))===D&&E)return{data:await C(u,{data:v,to:E})};throw EX(B,{...e,account:g,chain:u.chain})}}function pX({request:u}){const{data:e,to:t,...n}=u;return!(!e||e.startsWith(dX)||!t||Object.values(n).filter(r=>typeof r<"u").length>0)}async function hX(u,e){var h;const{batchSize:t=1024,wait:n=0}=typeof((h=u.batch)==null?void 0:h.multicall)=="object"?u.batch.multicall:{},{blockNumber:r,blockTag:i="latest",data:a,multicallAddress:o,to:s}=e;let f=o;if(!f){if(!u.chain)throw new fg;f=cs({blockNumber:r,chain:u.chain,contract:"multicall3"})}const c=(r?O0(r):void 0)||i,{schedule:d}=Mg({id:`${u.uid}.${c}`,wait:n,shouldSplitBatch(g){return g.reduce((m,{data:A})=>m+(A.length-2),0)>t*2},fn:async g=>{const b=g.map(y=>({allowFailure:!0,callData:y.data,target:y.to})),m=pi({abi:M2,args:[b],functionName:"aggregate3"}),A=await u.request({method:"eth_call",params:[{data:m,to:f},c]});return ls({abi:M2,args:[b],functionName:"aggregate3",data:A||"0x"})}}),[{returnData:E,success:p}]=await d({data:a,to:s});if(!p)throw new qd({data:E});return E==="0x"?{data:void 0}:{data:E}}function CX(u){if(!(u instanceof l0))return;const e=u.walk();return typeof e.data=="object"?e.data.data:e.data}async function ri(u,{abi:e,address:t,args:n,functionName:r,...i}){const a=pi({abi:e,args:n,functionName:r});try{const{data:o}=await z0(u,xc,"call")({data:a,to:t,...i});return ls({abi:e,args:n,functionName:r,data:o||"0x"})}catch(o){throw H4(o,{abi:e,address:t,args:n,docsPath:"/docs/contract/readContract",functionName:r})}}async function AO(u,{abi:e,address:t,args:n,dataSuffix:r,functionName:i,...a}){const o=a.account?An(a.account):void 0,s=pi({abi:e,args:n,functionName:i});try{const{data:f}=await z0(u,xc,"call")({batch:!1,data:`${s}${r?r.replace("0x",""):""}`,to:t,...a});return{result:ls({abi:e,args:n,functionName:i,data:f||"0x"}),request:{abi:e,address:t,args:n,dataSuffix:r,functionName:i,...a}}}catch(f){throw H4(f,{abi:e,address:t,args:n,docsPath:"/docs/contract/simulateContract",functionName:i,sender:o==null?void 0:o.address})}}const k8=new Map,LF=new Map;let mX=0;function B3(u,e,t){const n=++mX,r=()=>k8.get(u)||[],i=()=>{const l=r();k8.set(u,l.filter(c=>c.id!==n))},a=()=>{const l=LF.get(u);r().length===1&&l&&l(),i()},o=r();if(k8.set(u,[...o,{id:n,fns:e}]),o&&o.length>0)return a;const s={};for(const l in e)s[l]=(...c)=>{var E,p;const d=r();if(d.length!==0)for(const h of d)(p=(E=h.fns)[l])==null||p.call(E,...c)};const f=t(s);return typeof f=="function"&&LF.set(u,f),a}async function j2(u){return new Promise(e=>setTimeout(e,u))}function kc(u,{emitOnBegin:e,initialWaitTime:t,interval:n}){let r=!0;const i=()=>r=!1;return(async()=>{let o;e&&(o=await u({unpoll:i}));const s=await(t==null?void 0:t(o))??n;await j2(s);const f=async()=>{r&&(await u({unpoll:i}),await j2(n),f())};f()})(),i}const bX=new Map,gX=new Map;function AX(u){const e=(r,i)=>({clear:()=>i.delete(r),get:()=>i.get(r),set:a=>i.set(r,a)}),t=e(u,bX),n=e(u,gX);return{clear:()=>{t.clear(),n.clear()},promise:t,response:n}}async function yX(u,{cacheKey:e,cacheTime:t=1/0}){const n=AX(e),r=n.response.get();if(r&&t>0&&new Date().getTime()-r.created.getTime()`blockNumber.${u}`;async function _c(u,{cacheTime:e=u.cacheTime,maxAge:t}={}){const n=await yX(()=>u.request({method:"eth_blockNumber"}),{cacheKey:vX(u.uid),cacheTime:t??e});return BigInt(n)}async function Qd(u,{filter:e}){const t="strict"in e&&e.strict;return(await e.request({method:"eth_getFilterChanges",params:[e.id]})).map(r=>{var i;if(typeof r=="string")return r;try{const{eventName:a,args:o}="abi"in e&&e.abi?v3({abi:e.abi,data:r.data,topics:r.topics,strict:t}):{eventName:void 0,args:void 0};return hn(r,{args:o,eventName:a})}catch(a){let o,s;if(a instanceof Ca||a instanceof os){if("strict"in e&&e.strict)return;o=a.abiItem.name,s=(i=a.abiItem.inputs)==null?void 0:i.some(f=>!("name"in f&&f.name))}return hn(r,{args:s?[]:{},eventName:o})}}).filter(Boolean)}async function Jd(u,{filter:e}){return e.request({method:"eth_uninstallFilter",params:[e.id]})}function yO(u,{abi:e,address:t,args:n,batch:r=!0,eventName:i,onError:a,onLogs:o,poll:s,pollingInterval:f=u.pollingInterval,strict:l}){return(typeof s<"u"?s:u.transport.type!=="webSocket")?(()=>{const p=Ce(["watchContractEvent",t,n,r,u.uid,i,f]),h=l??!1;return B3(p,{onLogs:o,onError:a},g=>{let b,m,A=!1;const y=kc(async()=>{var B;if(!A){try{m=await z0(u,Fg,"createContractEventFilter")({abi:e,address:t,args:n,eventName:i,strict:h})}catch{}A=!0;return}try{let v;if(m)v=await z0(u,Qd,"getFilterChanges")({filter:m});else{const C=await z0(u,_c,"getBlockNumber")({});b&&b!==C?v=await z0(u,Ng,"getContractEvents")({abi:e,address:t,args:n,eventName:i,fromBlock:b+1n,toBlock:C,strict:h}):v=[],b=C}if(v.length===0)return;if(r)g.onLogs(v);else for(const C of v)g.onLogs([C])}catch(v){m&&v instanceof ma&&(A=!1),(B=g.onError)==null||B.call(g,v)}},{emitOnBegin:!0,interval:f});return async()=>{m&&await z0(u,Jd,"uninstallFilter")({filter:m}),y()}})})():(()=>{let p=!0,h=()=>p=!1;return(async()=>{try{const g=i?g3({abi:e,eventName:i,args:n}):[],{unsubscribe:b}=await u.transport.subscribe({params:["logs",{address:t,topics:g}],onData(m){var y;if(!p)return;const A=m.result;try{const{eventName:B,args:v}=v3({abi:e,data:A.data,topics:A.topics,strict:l}),C=hn(A,{args:v,eventName:B});o([C])}catch(B){let v,C;if(B instanceof Ca||B instanceof os){if(l)return;v=B.abiItem.name,C=(y=B.abiItem.inputs)==null?void 0:y.some(S=>!("name"in S&&S.name))}const D=hn(A,{args:C?[]:{},eventName:v});o([D])}},onError(m){a==null||a(m)}});h=b,p||h()}catch(g){a==null||a(g)}})(),h})()}function jg({chain:u,currentChainId:e}){if(!u)throw new iI;if(e!==u.id)throw new rI({chain:u,currentChainId:e})}function BX(u,{docsPath:e,...t}){const n=(()=>{const r=Sg(u,t);return r instanceof vc?u:r})();return new oO(n,{docsPath:e,...t})}async function x1(u){const e=await u.request({method:"eth_chainId"});return gu(e)}async function zg(u,{serializedTransaction:e}){return u.request({method:"eth_sendRawTransaction",params:[e]})}async function Lg(u,e){var h,g,b,m;const{account:t=u.account,chain:n=u.chain,accessList:r,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:d,...E}=e;if(!t)throw new A3({docsPath:"/docs/actions/wallet/sendTransaction"});const p=An(t);try{y3(e);let A;if(n!==null&&(A=await z0(u,x1,"getChainId")({}),jg({currentChainId:A,chain:n})),p.type==="local"){const C=await z0(u,Kd,"prepareTransactionRequest")({account:p,accessList:r,chain:n,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:d,...E});A||(A=await z0(u,x1,"getChainId")({}));const D=(h=n==null?void 0:n.serializers)==null?void 0:h.transaction,S=await p.signTransaction({...C,chainId:A},{serializer:D});return await z0(u,zg,"sendRawTransaction")({serializedTransaction:S})}const y=(m=(b=(g=u.chain)==null?void 0:g.formatters)==null?void 0:b.transactionRequest)==null?void 0:m.format,v=(y||as)({...Gd(E,{format:y}),accessList:r,data:i,from:p.address,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:d});return await u.request({method:"eth_sendTransaction",params:[v]})}catch(A){throw BX(A,{...e,account:p,chain:e.chain||void 0})}}async function vO(u,{abi:e,address:t,args:n,dataSuffix:r,functionName:i,...a}){const o=pi({abi:e,args:n,functionName:i});return await z0(u,Lg,"sendTransaction")({data:`${o}${r?r.replace("0x",""):""}`,to:t,...a})}function FX({abi:u,address:e,publicClient:t,walletClient:n}){const r=t!=null,i=n!=null,a={};let o=!1,s=!1,f=!1;for(const l of u)if(l.type==="function"?l.stateMutability==="view"||l.stateMutability==="pure"?o=!0:s=!0:l.type==="event"&&(f=!0),o&&s&&f)break;return r&&(o&&(a.read=new Proxy({},{get(l,c){return(...d)=>{const{args:E,options:p}=O6(d);return z0(t,ri,"readContract")({abi:u,address:e,functionName:c,args:E,...p})}}})),s&&(a.simulate=new Proxy({},{get(l,c){return(...d)=>{const{args:E,options:p}=O6(d);return z0(t,AO,"simulateContract")({abi:u,address:e,functionName:c,args:E,...p})}}})),f&&(a.createEventFilter=new Proxy({},{get(l,c){return(...d)=>{const E=u.find(g=>g.type==="event"&&g.name===c),{args:p,options:h}=_8(d,E);return z0(t,Fg,"createContractEventFilter")({abi:u,address:e,eventName:c,args:p,...h})}}}),a.getEvents=new Proxy({},{get(l,c){return(...d)=>{const E=u.find(g=>g.type==="event"&&g.name===c),{args:p,options:h}=_8(d,E);return z0(t,Ng,"getContractEvents")({abi:u,address:e,eventName:c,args:p,...h})}}}),a.watchEvent=new Proxy({},{get(l,c){return(...d)=>{const E=u.find(g=>g.type==="event"&&g.name===c),{args:p,options:h}=_8(d,E);return z0(t,yO,"watchContractEvent")({abi:u,address:e,eventName:c,args:p,...h})}}}))),i&&s&&(a.write=new Proxy({},{get(l,c){return(...d)=>{const{args:E,options:p}=O6(d);return z0(n,vO,"writeContract")({abi:u,address:e,functionName:c,args:E,...p})}}})),(r||i)&&s&&(a.estimateGas=new Proxy({},{get(l,c){return(...d)=>{const{args:E,options:p}=O6(d);return z0(t??n,mO,"estimateContractGas")({abi:u,address:e,functionName:c,args:E,...p,account:p.account??n.account})}}})),a.address=e,a.abi=u,a}function O6(u){const e=u.length&&Array.isArray(u[0]),t=e?u[0]:[],n=(e?u[1]:u[0])??{};return{args:t,options:n}}function _8(u,e){let t=!1;Array.isArray(u[0])?t=!0:u.length===1?t=e.inputs.some(i=>i.indexed):u.length===2&&(t=!0);const n=t?u[0]:void 0,r=(t?u[1]:u[0])??{};return{args:n,options:r}}async function DX(u,{chain:e}){const{id:t,name:n,nativeCurrency:r,rpcUrls:i,blockExplorers:a}=e;await u.request({method:"wallet_addEthereumChain",params:[{chainId:O0(t),chainName:n,nativeCurrency:r,rpcUrls:i.default.http,blockExplorerUrls:a?Object.values(a).map(({url:o})=>o):void 0}]})}function wX(u){const e=Yu(`0x${u.substring(4)}`).substring(26);return Dc(`0x${e}`)}const rC=256;let R6=rC,N6;function xX(u=11){if(!N6||R6+u>rC*2){N6="",R6=0;for(let e=0;e{const b=g(h);for(const A in E)delete b[A];const m={...h,...b};return Object.assign(m,{extend:p(m)})}}return Object.assign(E,{extend:p(E)})}function iC(u,{delay:e=100,retryCount:t=2,shouldRetry:n=()=>!0}={}){return new Promise((r,i)=>{const a=async({count:o=0}={})=>{const s=async({error:f})=>{const l=typeof e=="function"?e({count:o,error:f}):e;l&&await j2(l),a({count:o+1})};try{const f=await u();r(f)}catch(f){if(o"code"in u?u.code!==-1&&u.code!==-32004&&u.code!==-32005&&u.code!==-32042&&u.code!==-32603:u instanceof fa&&u.status?u.status!==403&&u.status!==408&&u.status!==413&&u.status!==429&&u.status!==500&&u.status!==502&&u.status!==503&&u.status!==504:!1;function kX(u,{retryDelay:e=150,retryCount:t=3}={}){return async n=>iC(async()=>{try{return await u(n)}catch(r){const i=r;switch(i.code){case P4.code:throw new P4(i);case I4.code:throw new I4(i);case O4.code:throw new O4(i);case R4.code:throw new R4(i);case Vo.code:throw new Vo(i);case ma.code:throw new ma(i);case N4.code:throw new N4(i);case ni.code:throw new ni(i);case M4.code:throw new M4(i);case j4.code:throw new j4(i);case z4.code:throw new z4(i);case L4.code:throw new L4(i);case Xu.code:throw new Xu(i);case $4.code:throw new $4(i);case U4.code:throw new U4(i);case W4.code:throw new W4(i);case q4.code:throw new q4(i);case Wn.code:throw new Wn(i);case 5e3:throw new Xu(i);default:throw r instanceof l0?r:new cO(i)}}},{delay:({count:r,error:i})=>{var a;if(i&&i instanceof fa){const o=(a=i==null?void 0:i.headers)==null?void 0:a.get("Retry-After");if(o!=null&&o.match(/\d/))return parseInt(o)*1e3}return~~(1<!BO(r)})}function Sc({key:u,name:e,request:t,retryCount:n=3,retryDelay:r=150,timeout:i,type:a},o){return{config:{key:u,name:e,request:t,retryCount:n,retryDelay:r,timeout:i,type:a},request:kX(t,{retryCount:n,retryDelay:r}),value:o}}function F3(u,e={}){const{key:t="custom",name:n="Custom Provider",retryDelay:r}=e;return({retryCount:i})=>Sc({key:t,name:n,request:u.request.bind(u),retryCount:e.retryCount??i,retryDelay:r,type:"custom"})}function aC(u,e={}){const{key:t="fallback",name:n="Fallback",rank:r=!1,retryCount:i,retryDelay:a}=e;return({chain:o,pollingInterval:s=4e3,timeout:f})=>{let l=u,c=()=>{};const d=Sc({key:t,name:n,async request({method:E,params:p}){const h=async(g=0)=>{const b=l[g]({chain:o,retryCount:0,timeout:f});try{const m=await b.request({method:E,params:p});return c({method:E,params:p,response:m,transport:b,status:"success"}),m}catch(m){if(c({error:m,method:E,params:p,transport:b,status:"error"}),BO(m)||g===l.length-1)throw m;return h(g+1)}};return h()},retryCount:i,retryDelay:a,type:"fallback"},{onResponse:E=>c=E,transports:l.map(E=>E({chain:o,retryCount:0}))});if(r){const E=typeof r=="object"?r:{};_X({chain:o,interval:E.interval??s,onTransports:p=>l=p,sampleCount:E.sampleCount,timeout:E.timeout,transports:l,weights:E.weights})}return d}}function _X({chain:u,interval:e=4e3,onTransports:t,sampleCount:n=10,timeout:r=1e3,transports:i,weights:a={}}){const{stability:o=.7,latency:s=.3}=a,f=[],l=async()=>{const c=await Promise.all(i.map(async p=>{const h=p({chain:u,retryCount:0,timeout:r}),g=Date.now();let b,m;try{await h.request({method:"net_listening"}),m=1}catch{m=0}finally{b=Date.now()}return{latency:b-g,success:m}}));f.push(c),f.length>n&&f.shift();const d=Math.max(...f.map(p=>Math.max(...p.map(({latency:h})=>h)))),E=i.map((p,h)=>{const g=f.map(B=>B[h].latency),m=1-g.reduce((B,v)=>B+v,0)/g.length/d,A=f.map(B=>B[h].success),y=A.reduce((B,v)=>B+v,0)/A.length;return y===0?[0,h]:[s*m+o*y,h]}).sort((p,h)=>h[0]-p[0]);t(E.map(([,p])=>i[p])),await j2(e),l()};l()}class $g extends l0{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}function SX(){if(typeof WebSocket<"u")return WebSocket;if(typeof global.WebSocket<"u")return global.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const $F=SX();function FO(u,{errorInstance:e=new Error("timed out"),timeout:t,signal:n}){return new Promise((r,i)=>{(async()=>{let a;try{const o=new AbortController;t>0&&(a=setTimeout(()=>{n?o.abort():i(e)},t)),r(await u({signal:o==null?void 0:o.signal}))}catch(o){o.name==="AbortError"&&i(e),i(o)}finally{clearTimeout(a)}})()})}let oC=0;async function TX(u,{body:e,fetchOptions:t={},timeout:n=1e4}){var o;const{headers:r,method:i,signal:a}=t;try{const s=await FO(async({signal:l})=>await fetch(u,{...t,body:Array.isArray(e)?Ce(e.map(d=>({jsonrpc:"2.0",id:d.id??oC++,...d}))):Ce({jsonrpc:"2.0",id:e.id??oC++,...e}),headers:{...r,"Content-Type":"application/json"},method:i||"POST",signal:a||(n>0?l:void 0)}),{errorInstance:new N2({body:e,url:u}),timeout:n,signal:!0});let f;if((o=s.headers.get("Content-Type"))!=null&&o.startsWith("application/json")?f=await s.json():f=await s.text(),!s.ok)throw new fa({body:e,details:Ce(f.error)||s.statusText,headers:s.headers,status:s.status,url:u});return f}catch(s){throw s instanceof fa||s instanceof N2?s:new fa({body:e,details:s.message,url:u})}}const S8=new Map;async function T8(u){let e=S8.get(u);if(e)return e;const{schedule:t}=Mg({id:u,fn:async()=>{const i=new $F(u),a=new Map,o=new Map,s=({data:l})=>{const c=JSON.parse(l),d=c.method==="eth_subscription",E=d?c.params.subscription:c.id,p=d?o:a,h=p.get(E);h&&h({data:l}),d||p.delete(E)},f=()=>{S8.delete(u),i.removeEventListener("close",f),i.removeEventListener("message",s)};return i.addEventListener("close",f),i.addEventListener("message",s),i.readyState===$F.CONNECTING&&await new Promise((l,c)=>{i&&(i.onopen=l,i.onerror=c)}),e=Object.assign(i,{requests:a,subscriptions:o}),S8.set(u,e),[e]}}),[n,[r]]=await t();return r}function PX(u,{body:e,onResponse:t}){if(u.readyState===u.CLOSED||u.readyState===u.CLOSING)throw new lO({body:e,url:u.url,details:"Socket is closed."});const n=oC++,r=({data:i})=>{var o;const a=JSON.parse(i);typeof a.id=="number"&&n!==a.id||(t==null||t(a),e.method==="eth_subscribe"&&typeof a.result=="string"&&u.subscriptions.set(a.result,r),e.method==="eth_unsubscribe"&&u.subscriptions.delete((o=e.params)==null?void 0:o[0]))};return u.requests.set(n,r),u.send(JSON.stringify({jsonrpc:"2.0",...e,id:n})),u}async function IX(u,{body:e,timeout:t=1e4}){return FO(()=>new Promise(n=>_f.webSocket(u,{body:e,onResponse:n})),{errorInstance:new N2({body:e,url:u.url}),timeout:t})}const _f={http:TX,webSocket:PX,webSocketAsync:IX};function DO(u,e={}){const{batch:t,fetchOptions:n,key:r="http",name:i="HTTP JSON-RPC",retryDelay:a}=e;return({chain:o,retryCount:s,timeout:f})=>{const{batchSize:l=1e3,wait:c=0}=typeof t=="object"?t:{},d=e.retryCount??s,E=f??e.timeout??1e4,p=u||(o==null?void 0:o.rpcUrls.default.http[0]);if(!p)throw new $g;return Sc({key:r,name:i,async request({method:h,params:g}){const b={method:h,params:g},{schedule:m}=Mg({id:`${u}`,wait:c,shouldSplitBatch(v){return v.length>l},fn:v=>_f.http(p,{body:v,fetchOptions:n,timeout:E}),sort:(v,C)=>v.id-C.id}),A=async v=>t?m(v):[await _f.http(p,{body:v,fetchOptions:n,timeout:E})],[{error:y,result:B}]=await A(b);if(y)throw new Hd({body:b,error:y,url:p});return B},retryCount:d,retryDelay:a,timeout:E,type:"http"},{fetchOptions:n,url:u})}}function Ug(u,e){var n,r,i;if(!(u instanceof l0))return!1;const t=u.walk(a=>a instanceof R2);return t instanceof R2?!!(((n=t.data)==null?void 0:n.errorName)==="ResolverNotFound"||((r=t.data)==null?void 0:r.errorName)==="ResolverWildcardNotSupported"||(i=t.reason)!=null&&i.includes("Wildcard on non-extended resolvers is not supported")||e==="reverse"&&t.reason===eO[50]):!1}function wO(u){if(u.length!==66||u.indexOf("[")!==0||u.indexOf("]")!==65)return null;const e=`0x${u.slice(1,65)}`;return uu(e)?e:null}function Vl(u){let e=new Uint8Array(32).fill(0);if(!u)return At(e);const t=u.split(".");for(let n=t.length-1;n>=0;n-=1){const r=wO(t[n]),i=r?Ge(r):Yu(br(t[n]),"bytes");e=Yu(Cn([e,i]),"bytes")}return At(e)}function OX(u){return`[${u.slice(2)}]`}function xO(u){const e=new Uint8Array(32).fill(0);return u?wO(u)||Yu(br(u)):At(e)}function Yd(u){const e=u.replace(/^\.|\.$/gm,"");if(e.length===0)return new Uint8Array(1);const t=new Uint8Array(br(e).byteLength+2);let n=0;const r=e.split(".");for(let i=0;i255&&(a=br(OX(xO(r[i])))),t[n]=a.length,t.set(a,n+1),n+=a.length+1}return t.byteLength!==n+1?t.slice(0,n+1):t}async function RX(u,{blockNumber:e,blockTag:t,coinType:n,name:r,universalResolverAddress:i}){let a=i;if(!a){if(!u.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=cs({blockNumber:e,chain:u.chain,contract:"ensUniversalResolver"})}try{const o=pi({abi:zF,functionName:"addr",...n!=null?{args:[Vl(r),BigInt(n)]}:{args:[Vl(r)]}}),s=await z0(u,ri,"readContract")({address:a,abi:gO,functionName:"resolve",args:[tu(Yd(r)),o],blockNumber:e,blockTag:t});if(s[0]==="0x")return null;const f=ls({abi:zF,args:n!=null?[Vl(r),BigInt(n)]:void 0,functionName:"addr",data:s[0]});return f==="0x"||Ze(f)==="0x00"?null:f}catch(o){if(Ug(o,"resolve"))return null;throw o}}class NX extends l0{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}class zs extends l0{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}class Xd extends l0{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}class kO extends l0{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}const MX=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,jX=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?[\w\-.]+))?(?\/.*)?$/,zX=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,LX=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function $X(u){try{const e=await fetch(u,{method:"HEAD"});if(e.status===200){const t=e.headers.get("content-type");return t==null?void 0:t.startsWith("image/")}return!1}catch(e){return typeof e=="object"&&typeof e.response<"u"||!globalThis.hasOwnProperty("Image")?!1:new Promise(t=>{const n=new Image;n.onload=()=>{t(!0)},n.onerror=()=>{t(!1)},n.src=u})}}function UF(u,e){return u?u.endsWith("/")?u.slice(0,-1):u:e}function _O({uri:u,gatewayUrls:e}){const t=zX.test(u);if(t)return{uri:u,isOnChain:!0,isEncoded:t};const n=UF(e==null?void 0:e.ipfs,"https://ipfs.io"),r=UF(e==null?void 0:e.arweave,"https://arweave.net"),i=u.match(MX),{protocol:a,subpath:o,target:s,subtarget:f=""}=(i==null?void 0:i.groups)||{},l=a==="ipns:/"||o==="ipns/",c=a==="ipfs:/"||o==="ipfs/"||jX.test(u);if(u.startsWith("http")&&!l&&!c){let E=u;return e!=null&&e.arweave&&(E=u.replace(/https:\/\/arweave.net/g,e==null?void 0:e.arweave)),{uri:E,isOnChain:!1,isEncoded:!1}}if((l||c)&&s)return{uri:`${n}/${l?"ipns":"ipfs"}/${s}${f}`,isOnChain:!1,isEncoded:!1};if(a==="ar:/"&&s)return{uri:`${r}/${s}${f||""}`,isOnChain:!1,isEncoded:!1};let d=u.replace(LX,"");if(d.startsWith("r.json());return await Wg({gatewayUrls:u,uri:SO(t)})}catch{throw new Xd({uri:e})}}async function Wg({gatewayUrls:u,uri:e}){const{uri:t,isOnChain:n}=_O({uri:e,gatewayUrls:u});if(n||await $X(t))return t;throw new Xd({uri:e})}function WX(u){let e=u;e.startsWith("did:nft:")&&(e=e.replace("did:nft:","").replace(/_/g,"/"));const[t,n,r]=e.split("/"),[i,a]=t.split(":"),[o,s]=n.split(":");if(!i||i.toLowerCase()!=="eip155")throw new zs({reason:"Only EIP-155 supported"});if(!a)throw new zs({reason:"Chain ID not found"});if(!s)throw new zs({reason:"Contract address not found"});if(!r)throw new zs({reason:"Token ID not found"});if(!o)throw new zs({reason:"ERC namespace not found"});return{chainID:parseInt(a),namespace:o.toLowerCase(),contractAddress:s,tokenID:r}}async function qX(u,{nft:e}){if(e.namespace==="erc721")return ri(u,{address:e.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(e.tokenID)]});if(e.namespace==="erc1155")return ri(u,{address:e.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(e.tokenID)]});throw new kO({namespace:e.namespace})}async function HX(u,{gatewayUrls:e,record:t}){return/eip155:/i.test(t)?GX(u,{gatewayUrls:e,record:t}):Wg({uri:t,gatewayUrls:e})}async function GX(u,{gatewayUrls:e,record:t}){const n=WX(t),r=await qX(u,{nft:n}),{uri:i,isOnChain:a,isEncoded:o}=_O({uri:r,gatewayUrls:e});if(a&&(i.includes("data:application/json;base64,")||i.startsWith("{"))){const f=o?atob(i.replace("data:application/json;base64,","")):i,l=JSON.parse(f);return Wg({uri:SO(l),gatewayUrls:e})}let s=n.tokenID;return n.namespace==="erc1155"&&(s=s.replace("0x","").padStart(64,"0")),UX({gatewayUrls:e,uri:i.replace(/(?:0x)?{id}/,s)})}async function TO(u,{blockNumber:e,blockTag:t,name:n,key:r,universalResolverAddress:i}){let a=i;if(!a){if(!u.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=cs({blockNumber:e,chain:u.chain,contract:"ensUniversalResolver"})}try{const o=await z0(u,ri,"readContract")({address:a,abi:gO,functionName:"resolve",args:[tu(Yd(n)),pi({abi:jF,functionName:"text",args:[Vl(n),r]})],blockNumber:e,blockTag:t});if(o[0]==="0x")return null;const s=ls({abi:jF,functionName:"text",data:o[0]});return s===""?null:s}catch(o){if(Ug(o,"resolve"))return null;throw o}}async function VX(u,{blockNumber:e,blockTag:t,gatewayUrls:n,name:r,universalResolverAddress:i}){const a=await z0(u,TO,"getEnsText")({blockNumber:e,blockTag:t,key:"avatar",name:r,universalResolverAddress:i});if(!a)return null;try{return await HX(u,{record:a,gatewayUrls:n})}catch{return null}}async function KX(u,{address:e,blockNumber:t,blockTag:n,universalResolverAddress:r}){let i=r;if(!i){if(!u.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=cs({blockNumber:t,chain:u.chain,contract:"ensUniversalResolver"})}const a=`${e.toLowerCase().substring(2)}.addr.reverse`;try{return(await z0(u,ri,"readContract")({address:i,abi:lX,functionName:"reverse",args:[tu(Yd(a))],blockNumber:t,blockTag:n}))[0]}catch(o){if(Ug(o,"reverse"))return null;throw o}}async function QX(u,{blockNumber:e,blockTag:t,name:n,universalResolverAddress:r}){let i=r;if(!i){if(!u.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=cs({blockNumber:e,chain:u.chain,contract:"ensUniversalResolver"})}const[a]=await z0(u,ri,"readContract")({address:i,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[tu(Yd(n))],blockNumber:e,blockTag:t});return a}async function JX(u){const e=Ld(u,{method:"eth_newBlockFilter"}),t=await u.request({method:"eth_newBlockFilter"});return{id:t,request:e(t),type:"block"}}async function PO(u,{address:e,args:t,event:n,events:r,fromBlock:i,strict:a,toBlock:o}={}){const s=r??(n?[n]:void 0),f=Ld(u,{method:"eth_newFilter"});let l=[];s&&(l=[s.flatMap(d=>g3({abi:[d],eventName:d.name,args:t}))],n&&(l=l[0]));const c=await u.request({method:"eth_newFilter",params:[{address:e,fromBlock:typeof i=="bigint"?O0(i):i,toBlock:typeof o=="bigint"?O0(o):o,...l.length?{topics:l}:{}}]});return{abi:s,args:t,eventName:n?n.name:void 0,fromBlock:i,id:c,request:f(c),strict:a,toBlock:o,type:"event"}}async function IO(u){const e=Ld(u,{method:"eth_newPendingTransactionFilter"}),t=await u.request({method:"eth_newPendingTransactionFilter"});return{id:t,request:e(t),type:"transaction"}}async function ZX(u,{address:e,blockNumber:t,blockTag:n="latest"}){const r=t?O0(t):void 0,i=await u.request({method:"eth_getBalance",params:[e,r||n]});return BigInt(i)}async function YX(u,{blockHash:e,blockNumber:t,blockTag:n="latest"}={}){const r=t!==void 0?O0(t):void 0;let i;return e?i=await u.request({method:"eth_getBlockTransactionCountByHash",params:[e]}):i=await u.request({method:"eth_getBlockTransactionCountByNumber",params:[r||n]}),gu(i)}async function XX(u,{address:e,blockNumber:t,blockTag:n="latest"}){const r=t!==void 0?O0(t):void 0,i=await u.request({method:"eth_getCode",params:[e,r||n]});if(i!=="0x")return i}function u00(u){var e;return{baseFeePerGas:u.baseFeePerGas.map(t=>BigInt(t)),gasUsedRatio:u.gasUsedRatio,oldestBlock:BigInt(u.oldestBlock),reward:(e=u.reward)==null?void 0:e.map(t=>t.map(n=>BigInt(n)))}}async function e00(u,{blockCount:e,blockNumber:t,blockTag:n="latest",rewardPercentiles:r}){const i=t?O0(t):void 0,a=await u.request({method:"eth_feeHistory",params:[O0(e),i||n,r]});return u00(a)}async function t00(u,{filter:e}){const t=e.strict??!1;return(await e.request({method:"eth_getFilterLogs",params:[e.id]})).map(r=>{var i;try{const{eventName:a,args:o}="abi"in e&&e.abi?v3({abi:e.abi,data:r.data,topics:r.topics,strict:t}):{eventName:void 0,args:void 0};return hn(r,{args:o,eventName:a})}catch(a){let o,s;if(a instanceof Ca||a instanceof os){if("strict"in e&&e.strict)return;o=a.abiItem.name,s=(i=a.abiItem.inputs)==null?void 0:i.some(f=>!("name"in f&&f.name))}return hn(r,{args:s?[]:{},eventName:o})}}).filter(Boolean)}class n00 extends l0{constructor({callbackSelector:e,cause:t,data:n,extraData:r,sender:i,urls:a}){var o;super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],(o=t.metaMessages)!=null&&o.length?"":[],"Offchain Gateway Call:",a&&[" Gateway URL(s):",...a.map(s=>` ${m3(s)}`)],` Sender: ${i}`,` Data: ${n}`,` Callback selector: ${e}`,` Extra data: ${r}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}class r00 extends l0{constructor({result:e,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${m3(t)}`,`Response: ${Ce(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}class i00 extends l0{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}function uE(u,e){if(!tt(u))throw new yt({address:u});if(!tt(e))throw new yt({address:e});return u.toLowerCase()===e.toLowerCase()}const OO="0x556f1830",qg={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function RO(u,{blockNumber:e,blockTag:t,data:n,to:r}){const{args:i}=Dg({data:n,abi:[qg]}),[a,o,s,f,l]=i;try{if(!uE(r,a))throw new i00({sender:a,to:r});const c=await Hg({data:s,sender:a,urls:o}),{data:d}=await xc(u,{blockNumber:e,blockTag:t,data:Cn([f,Ei([{type:"bytes"},{type:"bytes"}],[c,l])]),to:r});return d}catch(c){throw new n00({callbackSelector:f,cause:c,data:n,extraData:l,sender:a,urls:o})}}async function Hg({data:u,sender:e,urls:t}){var r;let n=new Error("An unknown error occurred.");for(let i=0;it.id===e)}const s00=/^(.*)\[([0-9]*)\]$/,NO=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,MO=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function Gg({domain:u,message:e,primaryType:t,types:n}){const r=typeof u>"u"?{}:u,i={EIP712Domain:eE({domain:r}),...n};Kg({domain:r,message:e,primaryType:t,types:i});const a=["0x1901"];return r&&a.push(Vg({domain:r,types:i})),t!=="EIP712Domain"&&a.push(jO({data:e,primaryType:t,types:i})),Yu(Cn(a))}function Vg({domain:u,types:e}){return jO({data:u,primaryType:"EIP712Domain",types:e})}function jO({data:u,primaryType:e,types:t}){const n=zO({data:u,primaryType:e,types:t});return Yu(n)}function zO({data:u,primaryType:e,types:t}){const n=[{type:"bytes32"}],r=[f00({primaryType:e,types:t})];for(const i of t[e]){const[a,o]=$O({types:t,name:i.name,type:i.type,value:u[i.name]});n.push(a),r.push(o)}return Ei(n,r)}function f00({primaryType:u,types:e}){const t=tu(l00({primaryType:u,types:e}));return Yu(t)}function l00({primaryType:u,types:e}){let t="";const n=LO({primaryType:u,types:e});n.delete(u);const r=[u,...Array.from(n).sort()];for(const i of r)t+=`${i}(${e[i].map(({name:a,type:o})=>`${o} ${a}`).join(",")})`;return t}function LO({primaryType:u,types:e},t=new Set){const n=u.match(/^\w*/u),r=n==null?void 0:n[0];if(t.has(r)||e[r]===void 0)return t;t.add(r);for(const i of e[r])LO({primaryType:i.type,types:e},t);return t}function $O({types:u,name:e,type:t,value:n}){if(u[t]!==void 0)return[{type:"bytes32"},Yu(zO({data:n,primaryType:t,types:u}))];if(t==="bytes")return n=`0x${(n.length%2?"0":"")+n.slice(2)}`,[{type:"bytes32"},Yu(n)];if(t==="string")return[{type:"bytes32"},Yu(tu(n))];if(t.lastIndexOf("]")===t.length-1){const r=t.slice(0,t.lastIndexOf("[")),i=n.map(a=>$O({name:e,type:r,types:u,value:a}));return[{type:"bytes32"},Yu(Ei(i.map(([a])=>a),i.map(([,a])=>a)))]}return[{type:t},n]}function Kg({domain:u,message:e,primaryType:t,types:n}){const r=n,i=(a,o)=>{for(const s of a){const{name:f,type:l}=s,c=l,d=o[f],E=c.match(MO);if(E&&(typeof d=="number"||typeof d=="bigint")){const[g,b,m]=E;O0(d,{signed:b==="int",size:parseInt(m)/8})}if(c==="address"&&typeof d=="string"&&!tt(d))throw new yt({address:d});const p=c.match(NO);if(p){const[g,b]=p;if(b&&Ku(d)!==parseInt(b))throw new Cg({expectedSize:parseInt(b),givenSize:Ku(d)})}const h=r[c];h&&i(h,d)}};if(r.EIP712Domain&&u&&i(r.EIP712Domain,u),t!=="EIP712Domain"){const a=r[t];i(a,e)}}function eE({domain:u}){return[typeof(u==null?void 0:u.name)=="string"&&{name:"name",type:"string"},(u==null?void 0:u.version)&&{name:"version",type:"string"},typeof(u==null?void 0:u.chainId)=="number"&&{name:"chainId",type:"uint256"},(u==null?void 0:u.verifyingContract)&&{name:"verifyingContract",type:"address"},(u==null?void 0:u.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function c00({domain:u}){return Vg({domain:u,types:{EIP712Domain:eE({domain:u})}})}function d00({abi:u,data:e}){const t=_u(e,0,4),n=u.find(r=>r.type==="function"&&t===b3(di(r)));if(!n)throw new NI(t,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:n.name,args:"inputs"in n&&n.inputs&&n.inputs.length>0?ss(n.inputs,_u(e,4)):void 0}}const P8="/docs/contract/encodeDeployData";function Qg({abi:u,args:e,bytecode:t}){if(!e||e.length===0)return t;const n=u.find(i=>"type"in i&&i.type==="constructor");if(!n)throw new dg({docsPath:P8});if(!("inputs"in n))throw new w1({docsPath:P8});if(!n.inputs||n.inputs.length===0)throw new w1({docsPath:P8});const r=Ei(n.inputs,e);return ci([t,r])}const I8="/docs/contract/encodeErrorResult";function E00({abi:u,errorName:e,args:t}){let n=u[0];if(e&&(n=xa({abi:u,args:t,name:e}),!n))throw new uC(e,{docsPath:I8});if(n.type!=="error")throw new uC(void 0,{docsPath:I8});const r=di(n),i=b3(r);let a="0x";if(t&&t.length>0){if(!n.inputs)throw new II(n.name,{docsPath:I8});a=Ei(n.inputs,t)}return ci([i,a])}const p00="/docs/contract/encodeFunctionResult";function h00({abi:u,functionName:e,result:t}){let n=u[0];if(e&&(n=xa({abi:u,name:e}),!n))throw new Go(e,{docsPath:"/docs/contract/encodeFunctionResult"});if(n.type!=="function")throw new Go(void 0,{docsPath:"/docs/contract/encodeFunctionResult"});if(!n.outputs)throw new hg(n.name,{docsPath:p00});let r=Array.isArray(t)?t:[t];return n.outputs.length===0&&!r[0]&&(r=[]),Ei(n.outputs,r)}function C00(u,e){if(u.length!==e.length)throw new Eg({expectedLength:u.length,givenLength:e.length});const t=[];for(let n=0;n1||t[0]>1)throw new JP(t);return!!t[0]}function GO(u,e={}){typeof e.size<"u"&&gn(u,{size:e.size});const t=At(u,e);return gu(t)}function VO(u,e={}){let t=u;return typeof e.size<"u"&&(gn(t,{size:e.size}),t=Ze(t,{dir:"right"})),new TextDecoder().decode(t)}class WF extends l0{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NegativeOffsetError"})}}class g00 extends l0{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PositionOutOfBoundsError"})}}const A00={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,assertPosition(u){if(u<0||u>this.bytes.length-1)throw new g00({length:this.bytes.length,position:u})},decrementPosition(u){if(u<0)throw new WF({offset:u});const e=this.position-u;this.assertPosition(e),this.position=e},incrementPosition(u){if(u<0)throw new WF({offset:u});const e=this.position+u;this.assertPosition(e),this.position=e},inspectByte(u){const e=u??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(u,e){const t=e??this.position;return this.assertPosition(t+u-1),this.bytes.subarray(t,t+u)},inspectUint8(u){const e=u??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(u){const e=u??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(u){const e=u??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(u){const e=u??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(u){this.assertPosition(this.position),this.bytes[this.position]=u,this.position++},pushBytes(u){this.assertPosition(this.position+u.length-1),this.bytes.set(u,this.position),this.position+=u.length},pushUint8(u){this.assertPosition(this.position),this.bytes[this.position]=u,this.position++},pushUint16(u){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,u),this.position+=2},pushUint24(u){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,u>>8),this.dataView.setUint8(this.position+2,u&255),this.position+=3},pushUint32(u){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,u),this.position+=4},readByte(){const u=this.inspectByte();return this.position++,u},readBytes(u){const e=this.inspectBytes(u);return this.position+=u,e},readUint8(){const u=this.inspectUint8();return this.position+=1,u},readUint16(){const u=this.inspectUint16();return this.position+=2,u},readUint24(){const u=this.inspectUint24();return this.position+=3,u},readUint32(){const u=this.inspectUint32();return this.position+=4,u},setPosition(u){this.assertPosition(u),this.position=u}};function KO(u){const e=Object.create(A00);return e.bytes=u,e.dataView=new DataView(u.buffer,u.byteOffset,u.byteLength),e}function Jg(u,e="hex"){const t=(()=>{if(typeof u=="string"){if(u.length>3&&u.length%2!==0)throw new YP(u);return li(u)}return u})(),n=KO(t);return QO(n,e)}function QO(u,e="hex"){if(u.bytes.length===0)return e==="hex"?At(u.bytes):u.bytes;const t=u.readByte();if(t<128&&u.decrementPosition(1),t<192){const r=qF(u,t,128),i=u.readBytes(r);return e==="hex"?At(i):i}const n=qF(u,t,192);return y00(u,n,e)}function qF(u,e,t){if(t===128&&e<128)return 1;if(e<=t+55)return e-t;if(e===t+55+1)return u.readUint8();if(e===t+55+2)return u.readUint16();if(e===t+55+3)return u.readUint24();if(e===t+55+4)return u.readUint32();throw new l0("Invalid RLP prefix")}function y00(u,e,t){const n=u.position,r=[];for(;u.position-nPromise.resolve().then(()=>Fn0),void 0);return`0x${i.Signature.fromCompact(t.substring(2,130)).addRecoveryBit(r-27).recoverPublicKey(n.substring(2)).toHex(!1)}`}async function Zg({hash:u,signature:e}){return wX(await ZO({hash:u,signature:e}))}const YO=`Ethereum Signed Message: -`;function Yg(u,e){const t=typeof u=="string"?br(u):u.raw instanceof Uint8Array?u.raw:Ge(u.raw),n=br(`${YO}${t.length}`);return Yu(Cn([n,t]),e)}async function XO({message:u,signature:e}){return Zg({hash:Yg(u),signature:e})}async function uR({domain:u,message:e,primaryType:t,signature:n,types:r}){return Zg({hash:Gg({domain:u,message:e,primaryType:t,types:r}),signature:n})}async function v00({address:u,message:e,signature:t}){return uE(ju(u),await XO({message:e,signature:t}))}async function B00({address:u,domain:e,message:t,primaryType:n,signature:r,types:i}){return uE(ju(u),await uR({domain:e,message:t,primaryType:n,signature:r,types:i}))}function eR(u){const e=yg(u,0,1);if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&gu(e)>=192)return"legacy";throw new iO({serializedType:e})}function Xg(u){const{chainId:e,maxPriorityFeePerGas:t,gasPrice:n,maxFeePerGas:r,to:i}=u;if(e<=0)throw new Id({chainId:e});if(i&&!tt(i))throw new yt({address:i});if(n)throw new l0("`gasPrice` is not a valid EIP-1559 Transaction attribute.");if(r&&r>2n**256n-1n)throw new ha({maxFeePerGas:r});if(t&&r&&t>r)throw new S4({maxFeePerGas:r,maxPriorityFeePerGas:t})}function uA(u){const{chainId:e,maxPriorityFeePerGas:t,gasPrice:n,maxFeePerGas:r,to:i}=u;if(e<=0)throw new Id({chainId:e});if(i&&!tt(i))throw new yt({address:i});if(t||r)throw new l0("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(n&&n>2n**256n-1n)throw new ha({maxFeePerGas:n})}function eA(u){const{chainId:e,maxPriorityFeePerGas:t,gasPrice:n,maxFeePerGas:r,to:i,accessList:a}=u;if(i&&!tt(i))throw new yt({address:i});if(typeof e<"u"&&e<=0)throw new Id({chainId:e});if(t||r)throw new l0("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(n&&n>2n**256n-1n)throw new ha({maxFeePerGas:n});if(a)throw new l0("`accessList` is not a valid Legacy Transaction attribute.")}function F00(u){const e=eR(u);return e==="eip1559"?D00(u):e==="eip2930"?w00(u):x00(u)}function D00(u){const e=tR(u),[t,n,r,i,a,o,s,f,l,c,d,E]=e;if(!(e.length===9||e.length===12))throw new Ud({attributes:{chainId:t,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:i,gas:a,to:o,value:s,data:f,accessList:l,...e.length>9?{v:c,r:d,s:E}:{}},serializedTransaction:u,type:"eip1559"});const p={chainId:gu(t),type:"eip1559"};return uu(o)&&o!=="0x"&&(p.to=o),uu(a)&&a!=="0x"&&(p.gas=Ru(a)),uu(f)&&f!=="0x"&&(p.data=f),uu(n)&&n!=="0x"&&(p.nonce=gu(n)),uu(s)&&s!=="0x"&&(p.value=Ru(s)),uu(i)&&i!=="0x"&&(p.maxFeePerGas=Ru(i)),uu(r)&&r!=="0x"&&(p.maxPriorityFeePerGas=Ru(r)),l.length!==0&&l!=="0x"&&(p.accessList=nR(l)),Xg(p),{...e.length===12?rR(e):void 0,...p}}function w00(u){const e=tR(u),[t,n,r,i,a,o,s,f,l,c,d]=e;if(!(e.length===8||e.length===11))throw new Ud({attributes:{chainId:t,nonce:n,gasPrice:r,gas:i,to:a,value:o,data:s,accessList:f,...e.length>8?{v:l,r:c,s:d}:{}},serializedTransaction:u,type:"eip2930"});const E={chainId:gu(t),type:"eip2930"};return uu(a)&&a!=="0x"&&(E.to=a),uu(i)&&i!=="0x"&&(E.gas=Ru(i)),uu(s)&&s!=="0x"&&(E.data=s),uu(n)&&n!=="0x"&&(E.nonce=gu(n)),uu(o)&&o!=="0x"&&(E.value=Ru(o)),uu(r)&&r!=="0x"&&(E.gasPrice=Ru(r)),f.length!==0&&f!=="0x"&&(E.accessList=nR(f)),uA(E),{...e.length===11?rR(e):void 0,...E}}function x00(u){const e=Jg(u,"hex"),[t,n,r,i,a,o,s,f,l]=e;if(!(e.length===6||e.length===9))throw new Ud({attributes:{nonce:t,gasPrice:n,gas:r,to:i,value:a,data:o,...e.length>6?{v:s,r:f,s:l}:{}},serializedTransaction:u,type:"legacy"});const c={type:"legacy"};if(uu(i)&&i!=="0x"&&(c.to=i),uu(r)&&r!=="0x"&&(c.gas=Ru(r)),uu(o)&&o!=="0x"&&(c.data=o),uu(t)&&t!=="0x"&&(c.nonce=gu(t)),uu(a)&&a!=="0x"&&(c.value=Ru(a)),uu(n)&&n!=="0x"&&(c.gasPrice=Ru(n)),eA(c),e.length===6)return c;const d=uu(s)&&s!=="0x"?Ru(s):0n;if(l==="0x"&&f==="0x")return d>0&&(c.chainId=Number(d)),c;const E=d,p=Number((E-35n)/2n);if(p>0)c.chainId=p;else if(E!==27n&&E!==28n)throw new wg({v:E});return c.v=E,c.s=l,c.r=f,c}function tR(u){return Jg(`0x${u.slice(4)}`,"hex")}function nR(u){const e=[];for(let t=0;tJO(i)?i:Ze(i))})}return e}function rR(u){const e=u.slice(-3),t=e[0]==="0x"||Ru(e[0])===0n?27n:28n;return{r:$n(e[1],{size:32}),s:$n(e[2],{size:32}),v:t,yParity:t===27n?0:1}}function tA(u){if(!u||u.length===0)return[];const e=[];for(let t=0;t{if(t>0)return BigInt(t*2)+BigInt(35n+e.v-27n);if(e.v>=35n)return(e.v-35n)/2n>0?e.v:27n+(e.v===35n?0n:1n);const c=27n+(e.v===27n?0n:1n);if(e.v!==c)throw new wg({v:e.v});return c})();f=[...f,tu(l),e.r,e.s]}else t>0&&(f=[...f,tu(t),"0x","0x"]);return ds(f)}function nA(u,e){let[t,n="0"]=u.split(".");const r=t.startsWith("-");if(r&&(t=t.slice(1)),n=n.replace(/(0+)$/,""),e===0)Math.round(+`.${n}`)===1&&(t=`${BigInt(t)+1n}`),n="";else if(n.length>e){const[i,a,o]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],s=Math.round(+`${a}.${o}`);s>9?n=`${BigInt(i)+BigInt(1)}0`.padStart(i.length+1,"0"):n=`${i}${s}`,n.length>e&&(n=n.slice(1),t=`${BigInt(t)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${r?"-":""}${t}${n}`)}function P00(u,e="wei"){return nA(u,lg[e])}function I00(u,e="wei"){return nA(u,cg[e])}function O00(u){return u.map(e=>({...e,value:BigInt(e.value)}))}function R00(u){return{...u,balance:u.balance?BigInt(u.balance):void 0,nonce:u.nonce?gu(u.nonce):void 0,storageProof:u.storageProof?O00(u.storageProof):void 0}}async function N00(u,{address:e,blockNumber:t,blockTag:n,storageKeys:r}){const i=n??"latest",a=t!==void 0?O0(t):void 0,o=await u.request({method:"eth_getProof",params:[e,r,a||i]});return R00(o)}async function M00(u,{address:e,blockNumber:t,blockTag:n="latest",slot:r}){const i=t!==void 0?O0(t):void 0;return await u.request({method:"eth_getStorageAt",params:[e,r,i||n]})}async function rA(u,{blockHash:e,blockNumber:t,blockTag:n,hash:r,index:i}){var l,c,d;const a=n||"latest",o=t!==void 0?O0(t):void 0;let s=null;if(r?s=await u.request({method:"eth_getTransactionByHash",params:[r]}):e?s=await u.request({method:"eth_getTransactionByBlockHashAndIndex",params:[e,O0(i)]}):(o||a)&&(s=await u.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[o||a,O0(i)]})),!s)throw new xg({blockHash:e,blockNumber:t,blockTag:a,hash:r,index:i});return(((d=(c=(l=u.chain)==null?void 0:l.formatters)==null?void 0:c.transaction)==null?void 0:d.format)||Td)(s)}async function j00(u,{hash:e,transactionReceipt:t}){const[n,r]=await Promise.all([z0(u,_c,"getBlockNumber")({}),e?z0(u,rA,"getBlockNumber")({hash:e}):void 0]),i=(t==null?void 0:t.blockNumber)||(r==null?void 0:r.blockNumber);return i?n-i+1n:0n}async function lC(u,{hash:e}){var r,i,a;const t=await u.request({method:"eth_getTransactionReceipt",params:[e]});if(!t)throw new kg({hash:e});return(((a=(i=(r=u.chain)==null?void 0:r.formatters)==null?void 0:i.transactionReceipt)==null?void 0:a.format)||sg)(t)}async function z00(u,e){var h;const{allowFailure:t=!0,batchSize:n,blockNumber:r,blockTag:i,contracts:a,multicallAddress:o}=e,s=n??(typeof((h=u.batch)==null?void 0:h.multicall)=="object"&&u.batch.multicall.batchSize||1024);let f=o;if(!f){if(!u.chain)throw new Error("client chain not configured. multicallAddress is required.");f=cs({blockNumber:r,chain:u.chain,contract:"multicall3"})}const l=[[]];let c=0,d=0;for(let g=0;g0&&d>s&&l[c].length>0&&(c++,d=(B.length-2)/2,l[c]=[]),l[c]=[...l[c],{allowFailure:!0,callData:B,target:m}]}catch(B){const v=H4(B,{abi:b,address:m,args:A,docsPath:"/docs/contract/multicall",functionName:y});if(!t)throw v;l[c]=[...l[c],{allowFailure:!0,callData:"0x",target:m}]}}const E=await Promise.allSettled(l.map(g=>z0(u,ri,"readContract")({abi:M2,address:f,args:[g],blockNumber:r,blockTag:i,functionName:"aggregate3"}))),p=[];for(let g=0;gu instanceof Uint8Array,U00=Array.from({length:256},(u,e)=>e.toString(16).padStart(2,"0"));function G4(u){if(!nE(u))throw new Error("Uint8Array expected");let e="";for(let t=0;tn+r.length,0));let t=0;return u.forEach(n=>{if(!nE(n))throw new Error("Uint8Array expected");e.set(n,t),t+=n.length}),e}function oR(u,e){if(u.length!==e.length)return!1;for(let t=0;tiR;u>>=tE,e+=1);return e}function H00(u,e){return u>>BigInt(e)&tE}const G00=(u,e,t)=>u|(t?tE:iR)<($00<new Uint8Array(u),HF=u=>Uint8Array.from(u);function sR(u,e,t){if(typeof u!="number"||u<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof t!="function")throw new Error("hmacFn must be a function");let n=O8(u),r=O8(u),i=0;const a=()=>{n.fill(1),r.fill(0),i=0},o=(...c)=>t(r,n,...c),s=(c=O8())=>{r=o(HF([0]),c),n=o(),c.length!==0&&(r=o(HF([1]),c),n=o())},f=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let c=0;const d=[];for(;c{a(),s(c);let E;for(;!(E=d(f()));)s();return a(),E}}const V00={bigint:u=>typeof u=="bigint",function:u=>typeof u=="function",boolean:u=>typeof u=="boolean",string:u=>typeof u=="string",stringOrUint8Array:u=>typeof u=="string"||u instanceof Uint8Array,isSafeInteger:u=>Number.isSafeInteger(u),array:u=>Array.isArray(u),field:(u,e)=>e.Fp.isValid(u),hash:u=>typeof u=="function"&&Number.isSafeInteger(u.outputLen)};function D3(u,e,t={}){const n=(r,i,a)=>{const o=V00[i];if(typeof o!="function")throw new Error(`Invalid validator "${i}", expected function`);const s=u[r];if(!(a&&s===void 0)&&!o(s,u))throw new Error(`Invalid param ${String(r)}=${s} (${typeof s}), expected ${i}`)};for(const[r,i]of Object.entries(e))n(r,i,!1);for(const[r,i]of Object.entries(t))n(r,i,!0);return u}const K00=Object.freeze(Object.defineProperty({__proto__:null,bitGet:H00,bitLen:q00,bitMask:sA,bitSet:G00,bytesToHex:G4,bytesToNumberBE:Xe,bytesToNumberLE:aA,concatBytes:It,createHmacDrbg:sR,ensureBytes:Re,equalBytes:oR,hexToBytes:V4,hexToNumber:iA,numberToBytesBE:ga,numberToBytesLE:oA,numberToHexUnpadded:aR,numberToVarBytesBE:W00,utf8ToBytes:rE,validateObject:D3},Symbol.toStringTag,{value:"Module"}));function Q00(u,e){const t=uu(u)?Ge(u):u,n=uu(e)?Ge(e):e;return oR(t,n)}async function fR(u,{address:e,hash:t,signature:n,...r}){const i=uu(n)?n:tu(n);try{const{data:a}=await z0(u,xc,"call")({data:Qg({abi:cX,args:[e,t,i],bytecode:L00}),...r});return Q00(a??"0x0","0x1")}catch(a){if(a instanceof _g)return!1;throw a}}async function J00(u,{address:e,message:t,signature:n,...r}){const i=Yg(t);return fR(u,{address:e,hash:i,signature:n,...r})}async function Z00(u,{address:e,signature:t,message:n,primaryType:r,types:i,domain:a,...o}){const s=Gg({message:n,primaryType:r,types:i,domain:a});return fR(u,{address:e,hash:s,signature:t,...o})}function lR(u,{emitOnBegin:e=!1,emitMissed:t=!1,onBlockNumber:n,onError:r,poll:i,pollingInterval:a=u.pollingInterval}){const o=typeof i<"u"?i:u.transport.type!=="webSocket";let s;return o?(()=>{const c=Ce(["watchBlockNumber",u.uid,e,t,a]);return B3(c,{onBlockNumber:n,onError:r},d=>kc(async()=>{var E;try{const p=await z0(u,_c,"getBlockNumber")({cacheTime:0});if(s){if(p===s)return;if(p-s>1&&t)for(let h=s+1n;hs)&&(d.onBlockNumber(p,s),s=p)}catch(p){(E=d.onError)==null||E.call(d,p)}},{emitOnBegin:e,interval:a}))})():(()=>{let c=!0,d=()=>c=!1;return(async()=>{try{const{unsubscribe:E}=await u.transport.subscribe({params:["newHeads"],onData(p){var g;if(!c)return;const h=Ru((g=p.result)==null?void 0:g.number);n(h,s),s=h},onError(p){r==null||r(p)}});d=E,c||d()}catch(E){r==null||r(E)}})(),d})()}async function Y00(u,{confirmations:e=1,hash:t,onReplaced:n,pollingInterval:r=u.pollingInterval,timeout:i}){const a=Ce(["waitForTransactionReceipt",u.uid,t]);let o,s,f,l=!1;return new Promise((c,d)=>{i&&setTimeout(()=>d(new sO({hash:t})),i);const E=B3(a,{onReplaced:n,resolve:c,reject:d},p=>{const h=z0(u,lR,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:r,async onBlockNumber(g){if(l)return;let b=g;const m=A=>{h(),A(),E()};try{if(f){if(e>1&&(!f.blockNumber||b-f.blockNumber+1np.resolve(f));return}if(o||(l=!0,await iC(async()=>{o=await z0(u,rA,"getTransaction")({hash:t}),o.blockNumber&&(b=o.blockNumber)},{delay:({count:A})=>~~(1<1&&(!f.blockNumber||b-f.blockNumber+1np.resolve(f))}catch(A){if(o&&(A instanceof xg||A instanceof kg))try{s=o,l=!0;const y=await iC(()=>z0(u,ba,"getBlock")({blockNumber:b,includeTransactions:!0}),{delay:({count:C})=>~~(1<C instanceof Tg});l=!1;const B=y.transactions.find(({from:C,nonce:D})=>C===s.from&&D===s.nonce);if(!B||(f=await z0(u,lC,"getTransactionReceipt")({hash:B.hash}),e>1&&(!f.blockNumber||b-f.blockNumber+1n{var C;(C=p.onReplaced)==null||C.call(p,{reason:v,replacedTransaction:s,transaction:B,transactionReceipt:f}),p.resolve(f)})}catch(y){m(()=>p.reject(y))}else m(()=>p.reject(A))}}})})})}function X00(u,{blockTag:e="latest",emitMissed:t=!1,emitOnBegin:n=!1,onBlock:r,onError:i,includeTransactions:a,poll:o,pollingInterval:s=u.pollingInterval}){const f=typeof o<"u"?o:u.transport.type!=="webSocket",l=a??!1;let c;return f?(()=>{const p=Ce(["watchBlocks",u.uid,t,n,l,s]);return B3(p,{onBlock:r,onError:i},h=>kc(async()=>{var g;try{const b=await z0(u,ba,"getBlock")({blockTag:e,includeTransactions:l});if(b.number&&(c!=null&&c.number)){if(b.number===c.number)return;if(b.number-c.number>1&&t)for(let m=(c==null?void 0:c.number)+1n;mc.number)&&(h.onBlock(b,c),c=b)}catch(b){(g=h.onError)==null||g.call(h,b)}},{emitOnBegin:n,interval:s}))})():(()=>{let p=!0,h=()=>p=!1;return(async()=>{try{const{unsubscribe:g}=await u.transport.subscribe({params:["newHeads"],onData(b){var y,B,v;if(!p)return;const A=(((v=(B=(y=u.chain)==null?void 0:y.formatters)==null?void 0:B.block)==null?void 0:v.format)||Pd)(b.result);r(A,c),c=A},onError(b){i==null||i(b)}});h=g,p||h()}catch(g){i==null||i(g)}})(),h})()}function uu0(u,{address:e,args:t,batch:n=!0,event:r,events:i,onError:a,onLogs:o,poll:s,pollingInterval:f=u.pollingInterval,strict:l}){const c=typeof s<"u"?s:u.transport.type!=="webSocket",d=l??!1;return c?(()=>{const h=Ce(["watchEvent",e,t,n,u.uid,r,f]);return B3(h,{onLogs:o,onError:a},g=>{let b,m,A=!1;const y=kc(async()=>{var B;if(!A){try{m=await z0(u,PO,"createEventFilter")({address:e,args:t,event:r,events:i,strict:d})}catch{}A=!0;return}try{let v;if(m)v=await z0(u,Qd,"getFilterChanges")({filter:m});else{const C=await z0(u,_c,"getBlockNumber")({});b&&b!==C?v=await z0(u,Rg,"getLogs")({address:e,args:t,event:r,events:i,fromBlock:b+1n,toBlock:C}):v=[],b=C}if(v.length===0)return;if(n)g.onLogs(v);else for(const C of v)g.onLogs([C])}catch(v){m&&v instanceof ma&&(A=!1),(B=g.onError)==null||B.call(g,v)}},{emitOnBegin:!0,interval:f});return async()=>{m&&await z0(u,Jd,"uninstallFilter")({filter:m}),y()}})})():(()=>{let h=!0,g=()=>h=!1;return(async()=>{try{const b=i??(r?[r]:void 0);let m=[];b&&(m=[b.flatMap(y=>g3({abi:[y],eventName:y.name,args:t}))],r&&(m=m[0]));const{unsubscribe:A}=await u.transport.subscribe({params:["logs",{address:e,topics:m}],onData(y){var v;if(!h)return;const B=y.result;try{const{eventName:C,args:D}=v3({abi:b,data:B.data,topics:B.topics,strict:d}),S=hn(B,{args:D,eventName:C});o([S])}catch(C){let D,S;if(C instanceof Ca||C instanceof os){if(l)return;D=C.abiItem.name,S=(v=C.abiItem.inputs)==null?void 0:v.some(L=>!("name"in L&&L.name))}const x=hn(B,{args:S?[]:{},eventName:D});o([x])}},onError(y){a==null||a(y)}});g=A,h||g()}catch(b){a==null||a(b)}})(),g})()}function eu0(u,{batch:e=!0,onError:t,onTransactions:n,poll:r,pollingInterval:i=u.pollingInterval}){return(typeof r<"u"?r:u.transport.type!=="webSocket")?(()=>{const f=Ce(["watchPendingTransactions",u.uid,e,i]);return B3(f,{onTransactions:n,onError:t},l=>{let c;const d=kc(async()=>{var E;try{if(!c)try{c=await z0(u,IO,"createPendingTransactionFilter")({});return}catch(h){throw d(),h}const p=await z0(u,Qd,"getFilterChanges")({filter:c});if(p.length===0)return;if(e)l.onTransactions(p);else for(const h of p)l.onTransactions([h])}catch(p){(E=l.onError)==null||E.call(l,p)}},{emitOnBegin:!0,interval:i});return async()=>{c&&await z0(u,Jd,"uninstallFilter")({filter:c}),d()}})})():(()=>{let f=!0,l=()=>f=!1;return(async()=>{try{const{unsubscribe:c}=await u.transport.subscribe({params:["newPendingTransactions"],onData(d){if(!f)return;const E=d.result;n([E])},onError(d){t==null||t(d)}});l=c,f||l()}catch(c){t==null||t(c)}})(),l})()}function cR(u){return{call:e=>xc(u,e),createBlockFilter:()=>JX(u),createContractEventFilter:e=>Fg(u,e),createEventFilter:e=>PO(u,e),createPendingTransactionFilter:()=>IO(u),estimateContractGas:e=>mO(u,e),estimateGas:e=>Og(u,e),getBalance:e=>ZX(u,e),getBlock:e=>ba(u,e),getBlockNumber:e=>_c(u,e),getBlockTransactionCount:e=>YX(u,e),getBytecode:e=>XX(u,e),getChainId:()=>x1(u),getContractEvents:e=>Ng(u,e),getEnsAddress:e=>RX(u,e),getEnsAvatar:e=>VX(u,e),getEnsName:e=>KX(u,e),getEnsResolver:e=>QX(u,e),getEnsText:e=>TO(u,e),getFeeHistory:e=>e00(u,e),estimateFeesPerGas:e=>sX(u,e),getFilterChanges:e=>Qd(u,e),getFilterLogs:e=>t00(u,e),getGasPrice:()=>Pg(u),getLogs:e=>Rg(u,e),getProof:e=>N00(u,e),estimateMaxPriorityFeePerGas:e=>oX(u,e),getStorageAt:e=>M00(u,e),getTransaction:e=>rA(u,e),getTransactionConfirmations:e=>j00(u,e),getTransactionCount:e=>CO(u,e),getTransactionReceipt:e=>lC(u,e),multicall:e=>z00(u,e),prepareTransactionRequest:e=>Kd(u,e),readContract:e=>ri(u,e),sendRawTransaction:e=>zg(u,e),simulateContract:e=>AO(u,e),verifyMessage:e=>J00(u,e),verifyTypedData:e=>Z00(u,e),uninstallFilter:e=>Jd(u,e),waitForTransactionReceipt:e=>Y00(u,e),watchBlocks:e=>X00(u,e),watchBlockNumber:e=>lR(u,e),watchContractEvent:e=>yO(u,e),watchEvent:e=>uu0(u,e),watchPendingTransactions:e=>eu0(u,e)}}function cC(u){const{key:e="public",name:t="Public Client"}=u;return Zd({...u,key:e,name:t,type:"publicClient"}).extend(cR)}async function tu0(u,{hash:e}){await u.request({method:`${u.mode}_dropTransaction`,params:[e]})}async function nu0(u){return u.request({method:`${u.mode}_dumpState`})}async function ru0(u){return u.mode==="ganache"?await u.request({method:"eth_mining"}):await u.request({method:`${u.mode}_getAutomine`})}async function iu0(u){return await u.request({method:"txpool_content"})}async function au0(u){const{pending:e,queued:t}=await u.request({method:"txpool_status"});return{pending:gu(e),queued:gu(t)}}async function ou0(u,{address:e}){await u.request({method:`${u.mode}_impersonateAccount`,params:[e]})}async function su0(u,{seconds:e}){return await u.request({method:"evm_increaseTime",params:[O0(e)]})}async function fu0(u){return await u.request({method:"txpool_inspect"})}async function lu0(u,{state:e}){await u.request({method:`${u.mode}_loadState`,params:[e]})}async function cu0(u,{blocks:e,interval:t}){u.mode==="ganache"?await u.request({method:"evm_mine",params:[{blocks:O0(e)}]}):await u.request({method:`${u.mode}_mine`,params:[O0(e),O0(t||0)]})}async function du0(u){await u.request({method:`${u.mode}_removeBlockTimestampInterval`})}async function Eu0(u,{blockNumber:e,jsonRpcUrl:t}={}){await u.request({method:`${u.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:t}}]})}async function pu0(u,{id:e}){await u.request({method:"evm_revert",params:[e]})}async function hu0(u,e){var b,m,A;const{accessList:t,data:n,from:r,gas:i,gasPrice:a,maxFeePerGas:o,maxPriorityFeePerGas:s,nonce:f,to:l,value:c,...d}=e,E=(A=(m=(b=u.chain)==null?void 0:b.formatters)==null?void 0:m.transactionRequest)==null?void 0:A.format,h=(E||as)({...Gd(d,{format:E}),accessList:t,data:n,from:r,gas:i,gasPrice:a,maxFeePerGas:o,maxPriorityFeePerGas:s,nonce:f,to:l,value:c});return await u.request({method:"eth_sendUnsignedTransaction",params:[h]})}async function Cu0(u,e){u.mode==="ganache"?e?await u.request({method:"miner_start"}):await u.request({method:"miner_stop"}):await u.request({method:"evm_setAutomine",params:[e]})}async function mu0(u,{address:e,value:t}){u.mode==="ganache"?await u.request({method:"evm_setAccountBalance",params:[e,O0(t)]}):await u.request({method:`${u.mode}_setBalance`,params:[e,O0(t)]})}async function bu0(u,{gasLimit:e}){await u.request({method:"evm_setBlockGasLimit",params:[O0(e)]})}async function gu0(u,{interval:e}){const t=u.mode==="hardhat"?e*1e3:e;await u.request({method:`${u.mode}_setBlockTimestampInterval`,params:[t]})}async function Au0(u,{address:e,bytecode:t}){await u.request({method:`${u.mode}_setCode`,params:[e,t]})}async function yu0(u,{address:e}){await u.request({method:`${u.mode}_setCoinbase`,params:[e]})}async function vu0(u,{interval:e}){const t=u.mode==="hardhat"?e*1e3:e;await u.request({method:"evm_setIntervalMining",params:[t]})}async function Bu0(u,e){await u.request({method:`${u.mode}_setLoggingEnabled`,params:[e]})}async function Fu0(u,{gasPrice:e}){await u.request({method:`${u.mode}_setMinGasPrice`,params:[O0(e)]})}async function Du0(u,{baseFeePerGas:e}){await u.request({method:`${u.mode}_setNextBlockBaseFeePerGas`,params:[O0(e)]})}async function wu0(u,{timestamp:e}){await u.request({method:"evm_setNextBlockTimestamp",params:[O0(e)]})}async function xu0(u,{address:e,nonce:t}){await u.request({method:`${u.mode}_setNonce`,params:[e,O0(t)]})}async function ku0(u,e){await u.request({method:`${u.mode}_setRpcUrl`,params:[e]})}async function _u0(u,{address:e,index:t,value:n}){await u.request({method:`${u.mode}_setStorageAt`,params:[e,typeof t=="number"?O0(t):t,n]})}async function Su0(u){return await u.request({method:"evm_snapshot"})}async function Tu0(u,{address:e}){await u.request({method:`${u.mode}_stopImpersonatingAccount`,params:[e]})}function dR({mode:u}){return e=>{const t=e.extend(()=>({mode:u}));return{dropTransaction:n=>tu0(t,n),dumpState:()=>nu0(t),getAutomine:()=>ru0(t),getTxpoolContent:()=>iu0(t),getTxpoolStatus:()=>au0(t),impersonateAccount:n=>ou0(t,n),increaseTime:n=>su0(t,n),inspectTxpool:()=>fu0(t),loadState:n=>lu0(t,n),mine:n=>cu0(t,n),removeBlockTimestampInterval:()=>du0(t),reset:n=>Eu0(t,n),revert:n=>pu0(t,n),sendUnsignedTransaction:n=>hu0(t,n),setAutomine:n=>Cu0(t,n),setBalance:n=>mu0(t,n),setBlockGasLimit:n=>bu0(t,n),setBlockTimestampInterval:n=>gu0(t,n),setCode:n=>Au0(t,n),setCoinbase:n=>yu0(t,n),setIntervalMining:n=>vu0(t,n),setLoggingEnabled:n=>Bu0(t,n),setMinGasPrice:n=>Fu0(t,n),setNextBlockBaseFeePerGas:n=>Du0(t,n),setNextBlockTimestamp:n=>wu0(t,n),setNonce:n=>xu0(t,n),setRpcUrl:n=>ku0(t,n),setStorageAt:n=>_u0(t,n),snapshot:()=>Su0(t),stopImpersonatingAccount:n=>Tu0(t,n)}}}function Pu0(u){const{key:e="test",name:t="Test Client",mode:n}=u;return Zd({...u,key:e,name:t,type:"testClient"}).extend(i=>({mode:n,...dR({mode:n})(i)}))}function Iu0(u,{abi:e,args:t,bytecode:n,...r}){const i=Qg({abi:e,args:t,bytecode:n});return Lg(u,{...r,data:i})}async function Ou0(u){var t;return((t=u.account)==null?void 0:t.type)==="local"?[u.account.address]:(await u.request({method:"eth_accounts"})).map(n=>Dc(n))}async function Ru0(u){return await u.request({method:"wallet_getPermissions"})}async function Nu0(u){return(await u.request({method:"eth_requestAccounts"})).map(t=>ju(t))}async function Mu0(u,e){return u.request({method:"wallet_requestPermissions",params:[e]})}async function ju0(u,{account:e=u.account,message:t}){if(!e)throw new A3({docsPath:"/docs/actions/wallet/signMessage"});const n=An(e);if(n.type==="local")return n.signMessage({message:t});const r=typeof t=="string"?Ac(t):t.raw instanceof Uint8Array?tu(t.raw):t.raw;return u.request({method:"personal_sign",params:[r,n.address]})}async function zu0(u,e){var f,l,c,d;const{account:t=u.account,chain:n=u.chain,...r}=e;if(!t)throw new A3({docsPath:"/docs/actions/wallet/signTransaction"});const i=An(t);y3({account:i,...e});const a=await z0(u,x1,"getChainId")({});n!==null&&jg({currentChainId:a,chain:n});const o=(n==null?void 0:n.formatters)||((f=u.chain)==null?void 0:f.formatters),s=((l=o==null?void 0:o.transactionRequest)==null?void 0:l.format)||as;return i.type==="local"?i.signTransaction({...r,chainId:a},{serializer:(d=(c=u.chain)==null?void 0:c.serializers)==null?void 0:d.transaction}):await u.request({method:"eth_signTransaction",params:[{...s(r),chainId:O0(a),from:i.address}]})}async function Lu0(u,{account:e=u.account,domain:t,message:n,primaryType:r,types:i}){if(!e)throw new A3({docsPath:"/docs/actions/wallet/signTypedData"});const a=An(e),o={EIP712Domain:eE({domain:t}),...i};if(Kg({domain:t,message:n,primaryType:r,types:o}),a.type==="local")return a.signTypedData({domain:t,primaryType:r,types:o,message:n});const s=Ce({domain:t??{},primaryType:r,types:o,message:n},(f,l)=>uu(l)?l.toLowerCase():l);return u.request({method:"eth_signTypedData_v4",params:[a.address,s]})}async function $u0(u,{id:e}){await u.request({method:"wallet_switchEthereumChain",params:[{chainId:O0(e)}]})}async function Uu0(u,e){return await u.request({method:"wallet_watchAsset",params:e})}function ER(u){return{addChain:e=>DX(u,e),deployContract:e=>Iu0(u,e),getAddresses:()=>Ou0(u),getChainId:()=>x1(u),getPermissions:()=>Ru0(u),prepareTransactionRequest:e=>Kd(u,e),requestAddresses:()=>Nu0(u),requestPermissions:e=>Mu0(u,e),sendRawTransaction:e=>zg(u,e),sendTransaction:e=>Lg(u,e),signMessage:e=>ju0(u,e),signTransaction:e=>zu0(u,e),signTypedData:e=>Lu0(u,e),switchChain:e=>$u0(u,e),watchAsset:e=>Uu0(u,e),writeContract:e=>vO(u,e)}}function w3(u){const{key:e="wallet",name:t="Wallet Client",transport:n}=u;return Zd({...u,key:e,name:t,transport:i=>n({...i,retryCount:0}),type:"walletClient"}).extend(ER)}function pR(u,e={}){const{key:t="webSocket",name:n="WebSocket JSON-RPC",retryDelay:r}=e;return({chain:i,retryCount:a,timeout:o})=>{var c;const s=e.retryCount??a,f=o??e.timeout??1e4,l=u||((c=i==null?void 0:i.rpcUrls.default.webSocket)==null?void 0:c[0]);if(!l)throw new $g;return Sc({key:t,name:n,async request({method:d,params:E}){const p={method:d,params:E},h=await T8(l),{error:g,result:b}=await _f.webSocketAsync(h,{body:p,timeout:f});if(g)throw new Hd({body:p,error:g,url:l});return b},retryCount:s,retryDelay:r,timeout:f,type:"webSocket"},{getSocket(){return T8(l)},async subscribe({params:d,onData:E,onError:p}){const h=await T8(l),{result:g}=await new Promise((b,m)=>_f.webSocket(h,{body:{method:"eth_subscribe",params:d},onResponse(A){if(A.error){m(A.error),p==null||p(A.error);return}if(typeof A.id=="number"){b(A);return}A.method==="eth_subscription"&&E(A.params)}}));return{subscriptionId:g,async unsubscribe(){return new Promise(b=>_f.webSocket(h,{body:{method:"eth_unsubscribe",params:[g]},onResponse:b}))}}}})}}const Wu0="0x0000000000000000000000000000000000000000",qu0=2n**(8n-1n)-1n,Hu0=2n**(16n-1n)-1n,Gu0=2n**(24n-1n)-1n,Vu0=2n**(32n-1n)-1n,Ku0=2n**(40n-1n)-1n,Qu0=2n**(48n-1n)-1n,Ju0=2n**(56n-1n)-1n,Zu0=2n**(64n-1n)-1n,Yu0=2n**(72n-1n)-1n,Xu0=2n**(80n-1n)-1n,ue0=2n**(88n-1n)-1n,ee0=2n**(96n-1n)-1n,te0=2n**(104n-1n)-1n,ne0=2n**(112n-1n)-1n,re0=2n**(120n-1n)-1n,ie0=2n**(128n-1n)-1n,ae0=2n**(136n-1n)-1n,oe0=2n**(144n-1n)-1n,se0=2n**(152n-1n)-1n,fe0=2n**(160n-1n)-1n,le0=2n**(168n-1n)-1n,ce0=2n**(176n-1n)-1n,de0=2n**(184n-1n)-1n,Ee0=2n**(192n-1n)-1n,pe0=2n**(200n-1n)-1n,he0=2n**(208n-1n)-1n,Ce0=2n**(216n-1n)-1n,me0=2n**(224n-1n)-1n,be0=2n**(232n-1n)-1n,ge0=2n**(240n-1n)-1n,Ae0=2n**(248n-1n)-1n,ye0=2n**(256n-1n)-1n,ve0=-(2n**(8n-1n)),Be0=-(2n**(16n-1n)),Fe0=-(2n**(24n-1n)),De0=-(2n**(32n-1n)),we0=-(2n**(40n-1n)),xe0=-(2n**(48n-1n)),ke0=-(2n**(56n-1n)),_e0=-(2n**(64n-1n)),Se0=-(2n**(72n-1n)),Te0=-(2n**(80n-1n)),Pe0=-(2n**(88n-1n)),Ie0=-(2n**(96n-1n)),Oe0=-(2n**(104n-1n)),Re0=-(2n**(112n-1n)),Ne0=-(2n**(120n-1n)),Me0=-(2n**(128n-1n)),je0=-(2n**(136n-1n)),ze0=-(2n**(144n-1n)),Le0=-(2n**(152n-1n)),$e0=-(2n**(160n-1n)),Ue0=-(2n**(168n-1n)),We0=-(2n**(176n-1n)),qe0=-(2n**(184n-1n)),He0=-(2n**(192n-1n)),Ge0=-(2n**(200n-1n)),Ve0=-(2n**(208n-1n)),Ke0=-(2n**(216n-1n)),Qe0=-(2n**(224n-1n)),Je0=-(2n**(232n-1n)),Ze0=-(2n**(240n-1n)),Ye0=-(2n**(248n-1n)),Xe0=-(2n**(256n-1n)),ut0=2n**8n-1n,et0=2n**16n-1n,tt0=2n**24n-1n,nt0=2n**32n-1n,rt0=2n**40n-1n,it0=2n**48n-1n,at0=2n**56n-1n,ot0=2n**64n-1n,st0=2n**72n-1n,ft0=2n**80n-1n,lt0=2n**88n-1n,ct0=2n**96n-1n,dt0=2n**104n-1n,Et0=2n**112n-1n,pt0=2n**120n-1n,ht0=2n**128n-1n,Ct0=2n**136n-1n,mt0=2n**144n-1n,bt0=2n**152n-1n,gt0=2n**160n-1n,At0=2n**168n-1n,yt0=2n**176n-1n,vt0=2n**184n-1n,Bt0=2n**192n-1n,Ft0=2n**200n-1n,Dt0=2n**208n-1n,wt0=2n**216n-1n,xt0=2n**224n-1n,kt0=2n**232n-1n,_t0=2n**240n-1n,St0=2n**248n-1n,Tt0=2n**256n-1n,Pt0="0x0000000000000000000000000000000000000000000000000000000000000000",R8="/docs/contract/decodeDeployData";function It0({abi:u,bytecode:e,data:t}){if(t===e)return{bytecode:e};const n=u.find(i=>"type"in i&&i.type==="constructor");if(!n)throw new dg({docsPath:R8});if(!("inputs"in n))throw new w1({docsPath:R8});if(!n.inputs||n.inputs.length===0)throw new w1({docsPath:R8});return{args:ss(n.inputs,`0x${t.replace(e,"")}`),bytecode:e}}function Ot0({r:u,yParityAndS:e}){const t=li(e),n=t[0]&128?28n:27n,r=t;return n===28n&&(r[0]&=127),{r:u,s:At(r),v:n}}function Rt0(u,e,t,n){if(typeof u.setBigUint64=="function")return u.setBigUint64(e,t,n);const r=BigInt(32),i=BigInt(4294967295),a=Number(t>>r&i),o=Number(t&i),s=n?4:0,f=n?0:4;u.setUint32(e+s,a,n),u.setUint32(e+f,o,n)}class Nt0 extends gg{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=D8(this.buffer)}update(e){T4(this);const{view:t,buffer:n,blockLen:r}=this;e=Md(e);const i=e.length;for(let a=0;ar-a&&(this.process(n,0),a=0);for(let c=a;cl.length)throw new Error("_sha2: outputLen bigger than state");for(let c=0;cu&e^~u&t,jt0=(u,e,t)=>u&e^u&t^e&t,zt0=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]),Ai=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),yi=new Uint32Array(64);class Lt0 extends Nt0{constructor(){super(64,32,8,!1),this.A=Ai[0]|0,this.B=Ai[1]|0,this.C=Ai[2]|0,this.D=Ai[3]|0,this.E=Ai[4]|0,this.F=Ai[5]|0,this.G=Ai[6]|0,this.H=Ai[7]|0}get(){const{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=e|0,this.B=t|0,this.C=n|0,this.D=r|0,this.E=i|0,this.F=a|0,this.G=o|0,this.H=s|0}process(e,t){for(let c=0;c<16;c++,t+=4)yi[c]=e.getUint32(t,!1);for(let c=16;c<64;c++){const d=yi[c-15],E=yi[c-2],p=Zn(d,7)^Zn(d,18)^d>>>3,h=Zn(E,17)^Zn(E,19)^E>>>10;yi[c]=h+yi[c-7]+p+yi[c-16]|0}let{A:n,B:r,C:i,D:a,E:o,F:s,G:f,H:l}=this;for(let c=0;c<64;c++){const d=Zn(o,6)^Zn(o,11)^Zn(o,25),E=l+d+Mt0(o,s,f)+zt0[c]+yi[c]|0,h=(Zn(n,2)^Zn(n,13)^Zn(n,22))+jt0(n,r,i)|0;l=f,f=s,s=o,o=a+E|0,a=i,i=r,r=n,n=E+h|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,a=a+this.D|0,o=o+this.E|0,s=s+this.F|0,f=f+this.G|0,l=l+this.H|0,this.set(n,r,i,a,o,s,f,l)}roundClean(){yi.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const z2=GI(()=>new Lt0);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const pe=BigInt(0),Vu=BigInt(1),Ga=BigInt(2),$t0=BigInt(3),dC=BigInt(4),GF=BigInt(5),VF=BigInt(8);BigInt(9);BigInt(16);function Ee(u,e){const t=u%e;return t>=pe?t:e+t}function Ut0(u,e,t){if(t<=pe||e 0");if(t===Vu)return pe;let n=Vu;for(;e>pe;)e&Vu&&(n=n*u%t),u=u*u%t,e>>=Vu;return n}function Vt(u,e,t){let n=u;for(;e-- >pe;)n*=n,n%=t;return n}function EC(u,e){if(u===pe||e<=pe)throw new Error(`invert: expected positive integers, got n=${u} mod=${e}`);let t=Ee(u,e),n=e,r=pe,i=Vu;for(;t!==pe;){const o=n/t,s=n%t,f=r-i*o;n=t,t=s,r=i,i=f}if(n!==Vu)throw new Error("invert: does not exist");return Ee(r,e)}function Wt0(u){const e=(u-Vu)/Ga;let t,n,r;for(t=u-Vu,n=0;t%Ga===pe;t/=Ga,n++);for(r=Ga;r(n[r]="function",n),e);return D3(u,t)}function Gt0(u,e,t){if(t 0");if(t===pe)return u.ONE;if(t===Vu)return e;let n=u.ONE,r=e;for(;t>pe;)t&Vu&&(n=u.mul(n,r)),r=u.sqr(r),t>>=Vu;return n}function Vt0(u,e){const t=new Array(e.length),n=e.reduce((i,a,o)=>u.is0(a)?i:(t[o]=i,u.mul(i,a)),u.ONE),r=u.inv(n);return e.reduceRight((i,a,o)=>u.is0(a)?i:(t[o]=u.mul(i,t[o]),u.mul(i,a)),r),t}function CR(u,e){const t=e!==void 0?e:u.toString(2).length,n=Math.ceil(t/8);return{nBitLength:t,nByteLength:n}}function Kt0(u,e,t=!1,n={}){if(u<=pe)throw new Error(`Expected Field ORDER > 0, got ${u}`);const{nBitLength:r,nByteLength:i}=CR(u,e);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const a=qt0(u),o=Object.freeze({ORDER:u,BITS:r,BYTES:i,MASK:sA(r),ZERO:pe,ONE:Vu,create:s=>Ee(s,u),isValid:s=>{if(typeof s!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof s}`);return pe<=s&&ss===pe,isOdd:s=>(s&Vu)===Vu,neg:s=>Ee(-s,u),eql:(s,f)=>s===f,sqr:s=>Ee(s*s,u),add:(s,f)=>Ee(s+f,u),sub:(s,f)=>Ee(s-f,u),mul:(s,f)=>Ee(s*f,u),pow:(s,f)=>Gt0(o,s,f),div:(s,f)=>Ee(s*EC(f,u),u),sqrN:s=>s*s,addN:(s,f)=>s+f,subN:(s,f)=>s-f,mulN:(s,f)=>s*f,inv:s=>EC(s,u),sqrt:n.sqrt||(s=>a(o,s)),invertBatch:s=>Vt0(o,s),cmov:(s,f,l)=>l?f:s,toBytes:s=>t?oA(s,i):ga(s,i),fromBytes:s=>{if(s.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${s.length}`);return t?aA(s):Xe(s)}});return Object.freeze(o)}function mR(u){if(typeof u!="bigint")throw new Error("field order must be bigint");const e=u.toString(2).length;return Math.ceil(e/8)}function bR(u){const e=mR(u);return e+Math.ceil(e/2)}function Qt0(u,e,t=!1){const n=u.length,r=mR(e),i=bR(e);if(n<16||n1024)throw new Error(`expected ${i}-1024 bytes of input, got ${n}`);const a=t?Xe(u):aA(u),o=Ee(a,e-Vu)+Vu;return t?oA(o,r):ga(o,r)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Jt0=BigInt(0),N8=BigInt(1);function Zt0(u,e){const t=(r,i)=>{const a=i.negate();return r?a:i},n=r=>{const i=Math.ceil(e/r)+1,a=2**(r-1);return{windows:i,windowSize:a}};return{constTimeNegate:t,unsafeLadder(r,i){let a=u.ZERO,o=r;for(;i>Jt0;)i&N8&&(a=a.add(o)),o=o.double(),i>>=N8;return a},precomputeWindow(r,i){const{windows:a,windowSize:o}=n(i),s=[];let f=r,l=f;for(let c=0;c>=E,g>s&&(g-=d,a+=N8);const b=h,m=h+Math.abs(g)-1,A=p%2!==0,y=g<0;g===0?l=l.add(t(A,i[b])):f=f.add(t(y,i[m]))}return{p:f,f:l}},wNAFCached(r,i,a,o){const s=r._WINDOW_SIZE||1;let f=i.get(r);return f||(f=this.precomputeWindow(r,s),s!==1&&i.set(r,o(f))),this.wNAF(s,f,a)}}}function gR(u){return hR(u.Fp),D3(u,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...CR(u.n,u.nBitLength),...u,p:u.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Yt0(u){const e=gR(u);D3(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:t,Fp:n,a:r}=e;if(t){if(!n.eql(r,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof t!="object"||typeof t.beta!="bigint"||typeof t.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:Xt0,hexToBytes:un0}=K00,eo={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(u){const{Err:e}=eo;if(u.length<2||u[0]!==2)throw new e("Invalid signature integer tag");const t=u[1],n=u.subarray(2,t+2);if(!t||n.length!==t)throw new e("Invalid signature integer: wrong length");if(n[0]&128)throw new e("Invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new e("Invalid signature integer: unnecessary leading zero");return{d:Xt0(n),l:u.subarray(t+2)}},toSig(u){const{Err:e}=eo,t=typeof u=="string"?un0(u):u;if(!(t instanceof Uint8Array))throw new Error("ui8a expected");let n=t.length;if(n<2||t[0]!=48)throw new e("Invalid signature tag");if(t[1]!==n-2)throw new e("Invalid signature: incorrect length");const{d:r,l:i}=eo._parseInt(t.subarray(2)),{d:a,l:o}=eo._parseInt(i);if(o.length)throw new e("Invalid signature: left bytes after parsing");return{r,s:a}},hexFromSig(u){const e=f=>Number.parseInt(f[0],16)&8?"00"+f:f,t=f=>{const l=f.toString(16);return l.length&1?`0${l}`:l},n=e(t(u.s)),r=e(t(u.r)),i=n.length/2,a=r.length/2,o=t(i),s=t(a);return`30${t(a+i+4)}02${s}${r}02${o}${n}`}},Rn=BigInt(0),Uu=BigInt(1),vi=BigInt(2),L2=BigInt(3),KF=BigInt(4);function en0(u){const e=Yt0(u),{Fp:t}=e,n=e.toBytes||((p,h,g)=>{const b=h.toAffine();return It(Uint8Array.from([4]),t.toBytes(b.x),t.toBytes(b.y))}),r=e.fromBytes||(p=>{const h=p.subarray(1),g=t.fromBytes(h.subarray(0,t.BYTES)),b=t.fromBytes(h.subarray(t.BYTES,2*t.BYTES));return{x:g,y:b}});function i(p){const{a:h,b:g}=e,b=t.sqr(p),m=t.mul(b,p);return t.add(t.add(m,t.mul(p,h)),g)}if(!t.eql(t.sqr(e.Gy),i(e.Gx)))throw new Error("bad generator point: equation left != right");function a(p){return typeof p=="bigint"&&Rnt.eql(A,t.ZERO);return m(g)&&m(b)?c.ZERO:new c(g,b,t.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(h){const g=t.invertBatch(h.map(b=>b.pz));return h.map((b,m)=>b.toAffine(g[m])).map(c.fromAffine)}static fromHex(h){const g=c.fromAffine(r(Re("pointHex",h)));return g.assertValidity(),g}static fromPrivateKey(h){return c.BASE.multiply(s(h))}_setWindowSize(h){this._WINDOW_SIZE=h,f.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!t.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:h,y:g}=this.toAffine();if(!t.isValid(h)||!t.isValid(g))throw new Error("bad point: x or y not FE");const b=t.sqr(g),m=i(h);if(!t.eql(b,m))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:h}=this.toAffine();if(t.isOdd)return!t.isOdd(h);throw new Error("Field doesn't support isOdd")}equals(h){l(h);const{px:g,py:b,pz:m}=this,{px:A,py:y,pz:B}=h,v=t.eql(t.mul(g,B),t.mul(A,m)),C=t.eql(t.mul(b,B),t.mul(y,m));return v&&C}negate(){return new c(this.px,t.neg(this.py),this.pz)}double(){const{a:h,b:g}=e,b=t.mul(g,L2),{px:m,py:A,pz:y}=this;let B=t.ZERO,v=t.ZERO,C=t.ZERO,D=t.mul(m,m),S=t.mul(A,A),x=t.mul(y,y),L=t.mul(m,A);return L=t.add(L,L),C=t.mul(m,y),C=t.add(C,C),B=t.mul(h,C),v=t.mul(b,x),v=t.add(B,v),B=t.sub(S,v),v=t.add(S,v),v=t.mul(B,v),B=t.mul(L,B),C=t.mul(b,C),x=t.mul(h,x),L=t.sub(D,x),L=t.mul(h,L),L=t.add(L,C),C=t.add(D,D),D=t.add(C,D),D=t.add(D,x),D=t.mul(D,L),v=t.add(v,D),x=t.mul(A,y),x=t.add(x,x),D=t.mul(x,L),B=t.sub(B,D),C=t.mul(x,S),C=t.add(C,C),C=t.add(C,C),new c(B,v,C)}add(h){l(h);const{px:g,py:b,pz:m}=this,{px:A,py:y,pz:B}=h;let v=t.ZERO,C=t.ZERO,D=t.ZERO;const S=e.a,x=t.mul(e.b,L2);let L=t.mul(g,A),Y=t.mul(b,y),G=t.mul(m,B),X=t.add(g,b),I=t.add(A,y);X=t.mul(X,I),I=t.add(L,Y),X=t.sub(X,I),I=t.add(g,m);let O=t.add(A,B);return I=t.mul(I,O),O=t.add(L,G),I=t.sub(I,O),O=t.add(b,m),v=t.add(y,B),O=t.mul(O,v),v=t.add(Y,G),O=t.sub(O,v),D=t.mul(S,I),v=t.mul(x,G),D=t.add(v,D),v=t.sub(Y,D),D=t.add(Y,D),C=t.mul(v,D),Y=t.add(L,L),Y=t.add(Y,L),G=t.mul(S,G),I=t.mul(x,I),Y=t.add(Y,G),G=t.sub(L,G),G=t.mul(S,G),I=t.add(I,G),L=t.mul(Y,I),C=t.add(C,L),L=t.mul(O,I),v=t.mul(X,v),v=t.sub(v,L),L=t.mul(X,Y),D=t.mul(O,D),D=t.add(D,L),new c(v,C,D)}subtract(h){return this.add(h.negate())}is0(){return this.equals(c.ZERO)}wNAF(h){return E.wNAFCached(this,f,h,g=>{const b=t.invertBatch(g.map(m=>m.pz));return g.map((m,A)=>m.toAffine(b[A])).map(c.fromAffine)})}multiplyUnsafe(h){const g=c.ZERO;if(h===Rn)return g;if(o(h),h===Uu)return this;const{endo:b}=e;if(!b)return E.unsafeLadder(this,h);let{k1neg:m,k1:A,k2neg:y,k2:B}=b.splitScalar(h),v=g,C=g,D=this;for(;A>Rn||B>Rn;)A&Uu&&(v=v.add(D)),B&Uu&&(C=C.add(D)),D=D.double(),A>>=Uu,B>>=Uu;return m&&(v=v.negate()),y&&(C=C.negate()),C=new c(t.mul(C.px,b.beta),C.py,C.pz),v.add(C)}multiply(h){o(h);let g=h,b,m;const{endo:A}=e;if(A){const{k1neg:y,k1:B,k2neg:v,k2:C}=A.splitScalar(g);let{p:D,f:S}=this.wNAF(B),{p:x,f:L}=this.wNAF(C);D=E.constTimeNegate(y,D),x=E.constTimeNegate(v,x),x=new c(t.mul(x.px,A.beta),x.py,x.pz),b=D.add(x),m=S.add(L)}else{const{p:y,f:B}=this.wNAF(g);b=y,m=B}return c.normalizeZ([b,m])[0]}multiplyAndAddUnsafe(h,g,b){const m=c.BASE,A=(B,v)=>v===Rn||v===Uu||!B.equals(m)?B.multiplyUnsafe(v):B.multiply(v),y=A(this,g).add(A(h,b));return y.is0()?void 0:y}toAffine(h){const{px:g,py:b,pz:m}=this,A=this.is0();h==null&&(h=A?t.ONE:t.inv(m));const y=t.mul(g,h),B=t.mul(b,h),v=t.mul(m,h);if(A)return{x:t.ZERO,y:t.ZERO};if(!t.eql(v,t.ONE))throw new Error("invZ was invalid");return{x:y,y:B}}isTorsionFree(){const{h,isTorsionFree:g}=e;if(h===Uu)return!0;if(g)return g(c,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h,clearCofactor:g}=e;return h===Uu?this:g?g(c,this):this.multiplyUnsafe(e.h)}toRawBytes(h=!0){return this.assertValidity(),n(c,this,h)}toHex(h=!0){return G4(this.toRawBytes(h))}}c.BASE=new c(e.Gx,e.Gy,t.ONE),c.ZERO=new c(t.ZERO,t.ONE,t.ZERO);const d=e.nBitLength,E=Zt0(c,e.endo?Math.ceil(d/2):d);return{CURVE:e,ProjectivePoint:c,normPrivateKeyToScalar:s,weierstrassEquation:i,isWithinCurveOrder:a}}function tn0(u){const e=gR(u);return D3(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function nn0(u){const e=tn0(u),{Fp:t,n}=e,r=t.BYTES+1,i=2*t.BYTES+1;function a(I){return RnG4(ga(I,e.nByteLength));function p(I){const O=n>>Uu;return I>O}function h(I){return p(I)?o(-I):I}const g=(I,O,W)=>Xe(I.slice(O,W));class b{constructor(O,W,$){this.r=O,this.s=W,this.recovery=$,this.assertValidity()}static fromCompact(O){const W=e.nByteLength;return O=Re("compactSignature",O,W*2),new b(g(O,0,W),g(O,W,2*W))}static fromDER(O){const{r:W,s:$}=eo.toSig(Re("DER",O));return new b(W,$)}assertValidity(){if(!d(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!d(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(O){return new b(this.r,this.s,O)}recoverPublicKey(O){const{r:W,s:$,recovery:q}=this,U=C(Re("msgHash",O));if(q==null||![0,1,2,3].includes(q))throw new Error("recovery id invalid");const i0=q===2||q===3?W+e.n:W;if(i0>=t.ORDER)throw new Error("recovery id 2 or 3 invalid");const s0=q&1?"03":"02",o0=f.fromHex(s0+E(i0)),Q=s(i0),b0=o(-U*Q),A0=o($*Q),_0=f.BASE.multiplyAndAddUnsafe(o0,b0,A0);if(!_0)throw new Error("point at infinify");return _0.assertValidity(),_0}hasHighS(){return p(this.s)}normalizeS(){return this.hasHighS()?new b(this.r,o(-this.s),this.recovery):this}toDERRawBytes(){return V4(this.toDERHex())}toDERHex(){return eo.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return V4(this.toCompactHex())}toCompactHex(){return E(this.r)+E(this.s)}}const m={isValidPrivateKey(I){try{return l(I),!0}catch{return!1}},normPrivateKeyToScalar:l,randomPrivateKey:()=>{const I=bR(e.n);return Qt0(e.randomBytes(I),e.n)},precompute(I=8,O=f.BASE){return O._setWindowSize(I),O.multiply(BigInt(3)),O}};function A(I,O=!0){return f.fromPrivateKey(I).toRawBytes(O)}function y(I){const O=I instanceof Uint8Array,W=typeof I=="string",$=(O||W)&&I.length;return O?$===r||$===i:W?$===2*r||$===2*i:I instanceof f}function B(I,O,W=!0){if(y(I))throw new Error("first arg must be private key");if(!y(O))throw new Error("second arg must be public key");return f.fromHex(O).multiply(l(I)).toRawBytes(W)}const v=e.bits2int||function(I){const O=Xe(I),W=I.length*8-e.nBitLength;return W>0?O>>BigInt(W):O},C=e.bits2int_modN||function(I){return o(v(I))},D=sA(e.nBitLength);function S(I){if(typeof I!="bigint")throw new Error("bigint expected");if(!(Rn<=I&&IB0 in W))throw new Error("sign() legacy options not supported");const{hash:$,randomBytes:q}=e;let{lowS:U,prehash:i0,extraEntropy:s0}=W;U==null&&(U=!0),I=Re("msgHash",I),i0&&(I=Re("prehashed msgHash",$(I)));const o0=C(I),Q=l(O),b0=[S(Q),S(o0)];if(s0!=null){const B0=s0===!0?q(t.BYTES):s0;b0.push(Re("extraEntropy",B0))}const A0=It(...b0),_0=o0;function w0(B0){const _=v(B0);if(!d(_))return;const T=s(_),P=f.BASE.multiply(_).toAffine(),j=o(P.x);if(j===Rn)return;const z=o(T*o(_0+j*Q));if(z===Rn)return;let V=(P.x===j?0:2)|Number(P.y&Uu),t0=z;return U&&p(z)&&(t0=h(z),V^=1),new b(j,t0,V)}return{seed:A0,k2sig:w0}}const L={lowS:e.lowS,prehash:!1},Y={lowS:e.lowS,prehash:!1};function G(I,O,W=L){const{seed:$,k2sig:q}=x(I,O,W),U=e;return sR(U.hash.outputLen,U.nByteLength,U.hmac)($,q)}f.BASE._setWindowSize(8);function X(I,O,W,$=Y){var P;const q=I;if(O=Re("msgHash",O),W=Re("publicKey",W),"strict"in $)throw new Error("options.strict was renamed to lowS");const{lowS:U,prehash:i0}=$;let s0,o0;try{if(typeof q=="string"||q instanceof Uint8Array)try{s0=b.fromDER(q)}catch(j){if(!(j instanceof eo.Err))throw j;s0=b.fromCompact(q)}else if(typeof q=="object"&&typeof q.r=="bigint"&&typeof q.s=="bigint"){const{r:j,s:z}=q;s0=new b(j,z)}else throw new Error("PARSE");o0=f.fromHex(W)}catch(j){if(j.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(U&&s0.hasHighS())return!1;i0&&(O=e.hash(O));const{r:Q,s:b0}=s0,A0=C(O),_0=s(b0),w0=o(A0*_0),B0=o(Q*_0),_=(P=f.BASE.multiplyAndAddUnsafe(o0,w0,B0))==null?void 0:P.toAffine();return _?o(_.x)===Q:!1}return{CURVE:e,getPublicKey:A,getSharedSecret:B,sign:G,verify:X,ProjectivePoint:f,Signature:b,utils:m}}function rn0(u,e){const t=u.ORDER;let n=Rn;for(let p=t-Uu;p%vi===Rn;p/=vi)n+=Uu;const r=n,i=vi<{let g=c,b=u.pow(h,f),m=u.sqr(b);m=u.mul(m,h);let A=u.mul(p,m);A=u.pow(A,s),A=u.mul(A,b),b=u.mul(A,h),m=u.mul(A,p);let y=u.mul(m,b);A=u.pow(y,l);let B=u.eql(A,u.ONE);b=u.mul(m,d),A=u.mul(y,g),m=u.cmov(b,m,B),y=u.cmov(A,y,B);for(let v=r;v>Uu;v--){let C=v-vi;C=vi<{let m=u.sqr(b);const A=u.mul(g,b);m=u.mul(m,A);let y=u.pow(m,p);y=u.mul(y,A);const B=u.mul(y,h),v=u.mul(u.sqr(y),b),C=u.eql(v,g);let D=u.cmov(B,y,C);return{isValid:C,value:D}}}return E}function in0(u,e){if(hR(u),!u.isValid(e.A)||!u.isValid(e.B)||!u.isValid(e.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const t=rn0(u,e.Z);if(!u.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let r,i,a,o,s,f,l,c;r=u.sqr(n),r=u.mul(r,e.Z),i=u.sqr(r),i=u.add(i,r),a=u.add(i,u.ONE),a=u.mul(a,e.B),o=u.cmov(e.Z,u.neg(i),!u.eql(i,u.ZERO)),o=u.mul(o,e.A),i=u.sqr(a),f=u.sqr(o),s=u.mul(f,e.A),i=u.add(i,s),i=u.mul(i,a),f=u.mul(f,o),s=u.mul(f,e.B),i=u.add(i,s),l=u.mul(r,a);const{isValid:d,value:E}=t(i,f);c=u.mul(r,n),c=u.mul(c,E),l=u.cmov(l,a,d),c=u.cmov(c,E,d);const p=u.isOdd(n)===u.isOdd(c);return c=u.cmov(u.neg(c),c,p),l=u.div(l,o),{x:l,y:c}}}function an0(u){if(u instanceof Uint8Array)return u;if(typeof u=="string")return rE(u);throw new Error("DST must be Uint8Array or string")}const on0=Xe;function Si(u,e){if(u<0||u>=1<<8*e)throw new Error(`bad I2OSP call: value=${u} length=${e}`);const t=Array.from({length:e}).fill(0);for(let n=e-1;n>=0;n--)t[n]=u&255,u>>>=8;return new Uint8Array(t)}function sn0(u,e){const t=new Uint8Array(u.length);for(let n=0;n255&&(e=n(It(rE("H2C-OVERSIZE-DST-"),e)));const{outputLen:r,blockLen:i}=n,a=Math.ceil(t/r);if(a>255)throw new Error("Invalid xmd length");const o=It(e,Si(e.length,1)),s=Si(0,i),f=Si(t,2),l=new Array(a),c=n(It(s,u,f,Si(0,1),o));l[0]=n(It(c,Si(1,1),o));for(let E=1;E<=a;E++){const p=[sn0(c,l[E-1]),Si(E+1,1),o];l[E]=n(It(...p))}return It(...l).slice(0,t)}function ln0(u,e,t,n,r){if(k1(u),k1(e),fA(t),e.length>255){const i=Math.ceil(2*n/8);e=r.create({dkLen:i}).update(rE("H2C-OVERSIZE-DST-")).update(e).digest()}if(t>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return r.create({dkLen:t}).update(u).update(Si(t,2)).update(e).update(Si(e.length,1)).digest()}function QF(u,e,t){D3(t,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:n,k:r,m:i,hash:a,expand:o,DST:s}=t;k1(u),fA(e);const f=an0(s),l=n.toString(2).length,c=Math.ceil((l+r)/8),d=e*i*c;let E;if(o==="xmd")E=fn0(u,f,d,a);else if(o==="xof")E=ln0(u,f,d,r,a);else if(o==="_internal_pass")E=u;else throw new Error('expand must be "xmd" or "xof"');const p=new Array(e);for(let h=0;hArray.from(n).reverse());return(n,r)=>{const[i,a,o,s]=t.map(f=>f.reduce((l,c)=>u.add(u.mul(l,n),c)));return n=u.div(i,a),r=u.mul(r,u.div(o,s)),{x:n,y:r}}}function dn0(u,e,t){if(typeof e!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(n,r){const i=QF(n,2,{...t,DST:t.DST,...r}),a=u.fromAffine(e(i[0])),o=u.fromAffine(e(i[1])),s=a.add(o).clearCofactor();return s.assertValidity(),s},encodeToCurve(n,r){const i=QF(n,1,{...t,DST:t.encodeDST,...r}),a=u.fromAffine(e(i[0])).clearCofactor();return a.assertValidity(),a}}}let AR=class extends gg{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,bY(e);const n=Md(t);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const r=this.blockLen,i=new Uint8Array(r);i.set(n.length>r?e.create().update(n).digest():n);for(let a=0;anew AR(u,e).update(t).digest();yR.create=(u,e)=>new AR(u,e);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function En0(u){return{hash:u,hmac:(e,...t)=>yR(u,e,kY(...t)),randomBytes:VI}}function pn0(u,e){const t=n=>nn0({...u,...En0(n)});return Object.freeze({...t(e),create:t})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const iE=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),$2=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),vR=BigInt(1),U2=BigInt(2),JF=(u,e)=>(u+e/U2)/e;function BR(u){const e=iE,t=BigInt(3),n=BigInt(6),r=BigInt(11),i=BigInt(22),a=BigInt(23),o=BigInt(44),s=BigInt(88),f=u*u*u%e,l=f*f*u%e,c=Vt(l,t,e)*l%e,d=Vt(c,t,e)*l%e,E=Vt(d,U2,e)*f%e,p=Vt(E,r,e)*E%e,h=Vt(p,i,e)*p%e,g=Vt(h,o,e)*h%e,b=Vt(g,s,e)*g%e,m=Vt(b,o,e)*h%e,A=Vt(m,t,e)*l%e,y=Vt(A,a,e)*p%e,B=Vt(y,n,e)*f%e,v=Vt(B,U2,e);if(!Aa.eql(Aa.sqr(v),u))throw new Error("Cannot find square root");return v}const Aa=Kt0(iE,void 0,void 0,{sqrt:BR}),Ne=pn0({a:BigInt(0),b:BigInt(7),Fp:Aa,n:$2,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:u=>{const e=$2,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-vR*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),r=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=t,a=BigInt("0x100000000000000000000000000000000"),o=JF(i*u,e),s=JF(-n*u,e);let f=Ee(u-o*t-s*r,e),l=Ee(-o*n-s*i,e);const c=f>a,d=l>a;if(c&&(f=e-f),d&&(l=e-l),f>a||l>a)throw new Error("splitScalar: Endomorphism failed, k="+u);return{k1neg:c,k1:f,k2neg:d,k2:l}}}},z2),aE=BigInt(0),FR=u=>typeof u=="bigint"&&aEtypeof u=="bigint"&&aEr.charCodeAt(0)));t=It(n,n),ZF[u]=t}return z2(It(t,...e))}const lA=u=>u.toRawBytes(!0).slice(1),pC=u=>ga(u,32),M8=u=>Ee(u,iE),_1=u=>Ee(u,$2),cA=Ne.ProjectivePoint,Cn0=(u,e,t)=>cA.BASE.multiplyAndAddUnsafe(u,e,t);function hC(u){let e=Ne.utils.normPrivateKeyToScalar(u),t=cA.fromPrivateKey(e);return{scalar:t.hasEvenY()?e:_1(-e),bytes:lA(t)}}function DR(u){if(!FR(u))throw new Error("bad x: need 0 < x < p");const e=M8(u*u),t=M8(e*u+BigInt(7));let n=BR(t);n%U2!==aE&&(n=M8(-n));const r=new cA(u,n,vR);return r.assertValidity(),r}function wR(...u){return _1(Xe(W2("BIP0340/challenge",...u)))}function mn0(u){return hC(u).bytes}function bn0(u,e,t=VI(32)){const n=Re("message",u),{bytes:r,scalar:i}=hC(e),a=Re("auxRand",t,32),o=pC(i^Xe(W2("BIP0340/aux",a))),s=W2("BIP0340/nonce",o,r,n),f=_1(Xe(s));if(f===aE)throw new Error("sign failed: k is zero");const{bytes:l,scalar:c}=hC(f),d=wR(l,r,n),E=new Uint8Array(64);if(E.set(l,0),E.set(pC(_1(c+d*i)),32),!xR(E,n,r))throw new Error("sign: Invalid signature produced");return E}function xR(u,e,t){const n=Re("signature",u,64),r=Re("message",e),i=Re("publicKey",t,32);try{const a=DR(Xe(i)),o=Xe(n.subarray(0,32));if(!FR(o))return!1;const s=Xe(n.subarray(32,64));if(!hn0(s))return!1;const f=wR(pC(o),lA(a),r),l=Cn0(a,s,_1(-f));return!(!l||!l.hasEvenY()||l.toAffine().x!==o)}catch{return!1}}const gn0={getPublicKey:mn0,sign:bn0,verify:xR,utils:{randomPrivateKey:Ne.utils.randomPrivateKey,lift_x:DR,pointToBytes:lA,numberToBytesBE:ga,bytesToNumberBE:Xe,taggedHash:W2,mod:Ee}},An0=cn0(Aa,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(u=>u.map(e=>BigInt(e)))),yn0=in0(Aa,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:Aa.create(BigInt("-11"))}),kR=dn0(Ne.ProjectivePoint,u=>{const{x:e,y:t}=yn0(Aa.create(u[0]));return An0(e,t)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:Aa.ORDER,m:1,k:128,expand:"xmd",hash:z2}),vn0=kR.hashToCurve,Bn0=kR.encodeToCurve,Fn0=Object.freeze(Object.defineProperty({__proto__:null,encodeToCurve:Bn0,hashToCurve:vn0,schnorr:gn0,secp256k1:Ne},Symbol.toStringTag,{value:"Module"}));function Dn0(u){const{r:e,s:t}=Ne.Signature.fromCompact(u.slice(2,130));return{r:O0(e,{size:32}),yParityAndS:O0(t,{size:32})}}function wn0(u){const{r:e,s:t}=Ne.Signature.fromCompact(u.slice(2,130)),n=BigInt(`0x${u.slice(130)}`);return{r:O0(e,{size:32}),s:O0(t,{size:32}),v:n}}function xn0(u){const{r:e,s:t,v:n}=u,r=n-27n;let i=t;if(r===1n){const a=li(t);a[0]|=128,i=At(a)}return{r:e,yParityAndS:i}}function kn0({r:u,yParityAndS:e}){return`0x${new Ne.Signature(Ru(u),Ru(e)).toCompactHex()}`}function _n0({r:u,s:e,v:t}){return`0x${new Ne.Signature(Ru(u),Ru(e)).toCompactHex()}${tu(t).slice(2)}`}const Sn0=Object.freeze(Object.defineProperty({__proto__:null,AbiConstructorNotFoundError:dg,AbiConstructorParamsNotFoundError:w1,AbiDecodingDataSizeInvalidError:CY,AbiDecodingDataSizeTooSmallError:Nd,AbiDecodingZeroDataError:Fc,AbiEncodingArrayLengthMismatchError:TI,AbiEncodingBytesSizeMismatchError:PI,AbiEncodingLengthMismatchError:Eg,AbiErrorInputsNotFoundError:II,AbiErrorNotFoundError:uC,AbiErrorSignatureNotFoundError:pg,AbiEventNotFoundError:eC,AbiEventSignatureEmptyTopicsError:OI,AbiEventSignatureNotFoundError:RI,AbiFunctionNotFoundError:Go,AbiFunctionOutputsNotFoundError:hg,AbiFunctionSignatureNotFoundError:NI,BaseError:l0,BaseFeeScalarError:EO,BlockNotFoundError:Tg,BytesSizeMismatchError:Cg,CallExecutionError:_g,ChainDisconnectedError:q4,ChainDoesNotSupportContract:B2,ChainMismatchError:rI,ChainNotFoundError:iI,CircularReferenceError:xI,ClientChainNotConfiguredError:fg,ContractFunctionExecutionError:Wd,ContractFunctionRevertedError:R2,ContractFunctionZeroDataError:fO,DataLengthTooLongError:xZ,DataLengthTooShortError:kZ,DecodeLogDataMismatch:Ca,DecodeLogTopicsMismatch:os,Eip1559FeesNotSupportedError:Vd,EnsAvatarInvalidNftUriError:zs,EnsAvatarUnsupportedNamespaceError:kO,EnsAvatarUriResolutionError:Xd,EstimateGasExecutionError:dO,ExecutionRevertedError:uo,FeeCapTooHighError:ha,FeeCapTooLowError:F2,FeeConflictError:nO,FilterTypeNotSupportedError:UI,HttpRequestError:fa,InsufficientFundsError:k2,IntegerOutOfRangeError:QP,InternalRpcError:Vo,IntrinsicGasTooHighError:_2,IntrinsicGasTooLowError:S2,InvalidAbiDecodingTypeError:jI,InvalidAbiEncodingTypeError:MI,InvalidAbiItemError:CI,InvalidAbiParameterError:bI,InvalidAbiParametersError:gI,InvalidAbiTypeParameterError:FI,InvalidAddressError:yt,InvalidArrayError:zI,InvalidBytesBooleanError:JP,InvalidChainIdError:Id,InvalidDefinitionTypeError:LI,InvalidFunctionModifierError:BI,InvalidHexBooleanError:ZP,InvalidHexValueError:YP,InvalidInputRpcError:ma,InvalidLegacyVError:wg,InvalidModifierError:vI,InvalidParameterError:AI,InvalidParamsRpcError:R4,InvalidParenthesisError:kI,InvalidRequestRpcError:I4,InvalidSerializableTransactionError:rO,InvalidSerializedTransactionError:Ud,InvalidSerializedTransactionTypeError:iO,InvalidSignatureError:ff,InvalidStorageKeySizeError:aO,InvalidStructSignatureError:wI,JsonRpcVersionUnsupportedError:L4,LimitExceededRpcError:z4,MaxFeePerGasTooLowError:pO,MethodNotFoundRpcError:O4,MethodNotSupportedRpcError:j4,NonceMaxValueError:x2,NonceTooHighError:D2,NonceTooLowError:w2,OffsetOutOfBoundsError:_Z,ParseRpcError:P4,ProviderDisconnectedError:W4,ProviderRpcError:fs,RawContractError:qd,ResourceNotFoundRpcError:N4,ResourceUnavailableRpcError:ni,RpcError:at,RpcRequestError:Hd,SizeExceedsPaddingSizeError:ig,SizeOverflowError:XP,SliceOffsetOutOfBoundsError:rg,SolidityProtectedKeywordError:yI,SwitchChainError:Wn,TimeoutError:N2,TipAboveFeeCapError:S4,TransactionExecutionError:oO,TransactionNotFoundError:xg,TransactionReceiptNotFoundError:kg,TransactionRejectedRpcError:M4,TransactionTypeNotSupportedError:T2,UnauthorizedProviderError:$4,UnknownNodeError:vc,UnknownRpcError:cO,UnknownSignatureError:DI,UnknownTypeError:mI,UnsupportedPackedAbiType:$I,UnsupportedProviderMethodError:U4,UrlRequiredError:$g,UserRejectedRequestError:Xu,WaitForTransactionReceiptTimeoutError:sO,WebSocketRequestError:lO,assertCurrentChain:jg,assertRequest:y3,assertTransactionEIP1559:Xg,assertTransactionEIP2930:uA,assertTransactionLegacy:eA,boolToBytes:eI,boolToHex:_d,bytesToBigInt:fC,bytesToBigint:fC,bytesToBool:HO,bytesToHex:At,bytesToNumber:GO,bytesToRlp:Tn0,bytesToString:VO,ccipFetch:Hg,checksumAddress:Dc,compactSignatureToHex:kn0,compactSignatureToSignature:Ot0,concat:Cn,concatBytes:oI,concatHex:ci,createClient:Zd,createPublicClient:cC,createTestClient:Pu0,createTransport:Sc,createWalletClient:w3,custom:F3,decodeAbiParameters:ss,decodeDeployData:It0,decodeErrorResult:Dg,decodeEventLog:v3,decodeFunctionData:d00,decodeFunctionResult:ls,defineBlock:RZ,defineChain:kd,defineTransaction:OZ,defineTransactionReceipt:MZ,defineTransactionRequest:jZ,domainSeparator:c00,encodeAbiParameters:Ei,encodeDeployData:Qg,encodeErrorResult:E00,encodeEventTopics:g3,encodeFunctionData:pi,encodeFunctionResult:h00,encodePacked:C00,etherUnits:lg,extractChain:o00,fallback:aC,formatBlock:Pd,formatEther:$d,formatGwei:Ye,formatLog:hn,formatTransaction:Td,formatTransactionReceipt:sg,formatTransactionRequest:as,formatUnits:D1,fromBytes:b00,fromHex:IZ,fromRlp:Jg,getAbiItem:xa,getAddress:ju,getChainContractAddress:cs,getContract:FX,getContractAddress:m00,getContractError:H4,getCreate2Address:qO,getCreateAddress:WO,getEventSelector:jd,getEventSignature:WI,getFunctionSelector:b3,getFunctionSignature:mg,getSerializedTransactionType:eR,getTransactionType:Ig,getTypesForEIP712Domain:eE,gweiUnits:cg,hashDomain:Vg,hashMessage:Yg,hashTypedData:Gg,hexToBigInt:Ru,hexToBool:ag,hexToBytes:li,hexToCompactSignature:Dn0,hexToNumber:gu,hexToRlp:Pn0,hexToSignature:wn0,hexToString:yc,http:DO,isAddress:tt,isAddressEqual:uE,isBytes:sC,isHash:JO,isHex:uu,keccak256:Yu,labelhash:xO,maxInt104:te0,maxInt112:ne0,maxInt120:re0,maxInt128:ie0,maxInt136:ae0,maxInt144:oe0,maxInt152:se0,maxInt16:Hu0,maxInt160:fe0,maxInt168:le0,maxInt176:ce0,maxInt184:de0,maxInt192:Ee0,maxInt200:pe0,maxInt208:he0,maxInt216:Ce0,maxInt224:me0,maxInt232:be0,maxInt24:Gu0,maxInt240:ge0,maxInt248:Ae0,maxInt256:ye0,maxInt32:Vu0,maxInt40:Ku0,maxInt48:Qu0,maxInt56:Ju0,maxInt64:Zu0,maxInt72:Yu0,maxInt8:qu0,maxInt80:Xu0,maxInt88:ue0,maxInt96:ee0,maxUint104:dt0,maxUint112:Et0,maxUint120:pt0,maxUint128:ht0,maxUint136:Ct0,maxUint144:mt0,maxUint152:bt0,maxUint16:et0,maxUint160:gt0,maxUint168:At0,maxUint176:yt0,maxUint184:vt0,maxUint192:Bt0,maxUint200:Ft0,maxUint208:Dt0,maxUint216:wt0,maxUint224:xt0,maxUint232:kt0,maxUint24:tt0,maxUint240:_t0,maxUint248:St0,maxUint256:Tt0,maxUint32:nt0,maxUint40:rt0,maxUint48:it0,maxUint56:at0,maxUint64:ot0,maxUint72:st0,maxUint8:ut0,maxUint80:ft0,maxUint88:lt0,maxUint96:ct0,minInt104:Oe0,minInt112:Re0,minInt120:Ne0,minInt128:Me0,minInt136:je0,minInt144:ze0,minInt152:Le0,minInt16:Be0,minInt160:$e0,minInt168:Ue0,minInt176:We0,minInt184:qe0,minInt192:He0,minInt200:Ge0,minInt208:Ve0,minInt216:Ke0,minInt224:Qe0,minInt232:Je0,minInt24:Fe0,minInt240:Ze0,minInt248:Ye0,minInt256:Xe0,minInt32:De0,minInt40:we0,minInt48:xe0,minInt56:ke0,minInt64:_e0,minInt72:Se0,minInt8:ve0,minInt80:Te0,minInt88:Pe0,minInt96:Ie0,multicall3Abi:M2,namehash:Vl,numberToBytes:tI,numberToHex:O0,offchainLookup:RO,offchainLookupAbiItem:qg,offchainLookupSignature:OO,pad:Ln,padBytes:uI,padHex:$n,parseAbi:cY,parseAbiItem:dY,parseAbiParameter:EY,parseAbiParameters:pY,parseEther:P00,parseGwei:I00,parseTransaction:F00,parseUnits:nA,presignMessagePrefix:YO,publicActions:cR,recoverAddress:Zg,recoverMessageAddress:XO,recoverPublicKey:ZO,recoverTypedDataAddress:uR,rpcTransactionType:nI,serializeAccessList:tA,serializeTransaction:k00,signatureToCompactSignature:xn0,signatureToHex:_n0,size:Ku,slice:_u,sliceBytes:uO,sliceHex:yg,stringToBytes:br,stringToHex:Ac,stringify:Ce,testActions:dR,toBytes:Ge,toHex:tu,toRlp:ds,transactionType:og,trim:Ze,validateTypedData:Kg,verifyMessage:v00,verifyTypedData:B00,walletActions:ER,webSocket:pR,weiUnits:aI,zeroAddress:Wu0,zeroHash:Pt0},Symbol.toStringTag,{value:"Module"}));function ds(u,e="hex"){const t=_R(u),n=KO(new Uint8Array(t.length));return t.encode(n),e==="hex"?At(n.bytes):n.bytes}function Tn0(u,e="bytes"){return ds(u,e)}function Pn0(u,e="hex"){return ds(u,e)}function _R(u){return Array.isArray(u)?In0(u.map(e=>_R(e))):On0(u)}function In0(u){const e=u.reduce((r,i)=>r+i.length,0),t=SR(e);return{length:e<=55?1+e:1+t+e,encode(r){e<=55?r.pushByte(192+e):(r.pushByte(247+t),t===1?r.pushUint8(e):t===2?r.pushUint16(e):t===3?r.pushUint24(e):r.pushUint32(e));for(const{encode:i}of u)i(r)}}}function On0(u){const e=typeof u=="string"?li(u):u,t=SR(e.length);return{length:e.length===1&&e[0]<128?1:e.length<=55?1+e.length:1+t+e.length,encode(r){e.length===1&&e[0]<128?r.pushBytes(e):e.length<=55?(r.pushByte(128+e.length),r.pushBytes(e)):(r.pushByte(183+t),t===1?r.pushUint8(e.length):t===2?r.pushUint16(e.length):t===3?r.pushUint24(e.length):r.pushUint32(e.length),r.pushBytes(e))}}}function SR(u){if(u<2**8)return 1;if(u<2**16)return 2;if(u<2**24)return 3;if(u<2**32)return 4;throw new l0("Length is too large.")}const Rn0=kd({id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),TR=kd({id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),Nn0=kd({id:80001,name:"Polygon Mumbai",network:"maticmum",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mumbai.g.alchemy.com/v2"],webSocket:["wss://polygon-mumbai.g.alchemy.com/v2"]},infura:{http:["https://polygon-mumbai.infura.io/v3"],webSocket:["wss://polygon-mumbai.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/polygon_mumbai"]},public:{http:["https://rpc.ankr.com/polygon_mumbai"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"},default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0});var PR=class extends Error{constructor({chainId:u,connectorId:e}){super(`Chain "${u}" not configured for connector "${e}".`),this.name="ChainNotConfiguredForConnectorError"}},ft=class extends Error{constructor(){super(...arguments),this.name="ConnectorNotFoundError",this.message="Connector not found"}};function Ko(u){return typeof u=="string"?Number.parseInt(u,u.trim().substring(0,2)==="0x"?16:10):typeof u=="bigint"?Number(u):u}var IR={exports:{}};(function(u){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function r(s,f,l){this.fn=s,this.context=f,this.once=l||!1}function i(s,f,l,c,d){if(typeof l!="function")throw new TypeError("The listener must be a function");var E=new r(l,c||s,d),p=t?t+f:f;return s._events[p]?s._events[p].fn?s._events[p]=[s._events[p],E]:s._events[p].push(E):(s._events[p]=E,s._eventsCount++),s}function a(s,f){--s._eventsCount===0?s._events=new n:delete s._events[f]}function o(){this._events=new n,this._eventsCount=0}o.prototype.eventNames=function(){var f=[],l,c;if(this._eventsCount===0)return f;for(c in l=this._events)e.call(l,c)&&f.push(t?c.slice(1):c);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(l)):f},o.prototype.listeners=function(f){var l=t?t+f:f,c=this._events[l];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,E=c.length,p=new Array(E);d{if(!e.has(u))throw TypeError("Cannot "+t)},J0=(u,e,t)=>(dA(u,e,"read from private field"),t?t.call(u):e.get(u)),re=(u,e,t)=>{if(e.has(u))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(u):e.set(u,t)},ii=(u,e,t,n)=>(dA(u,e,"write to private field"),n?n.call(u,t):e.set(u,t),t),te=(u,e,t)=>(dA(u,e,"access private method"),t),Tc=class extends jn0{constructor({chains:u=[TR,Rn0],options:e}){super(),this.chains=u,this.options=e}getBlockExplorerUrls(u){const{default:e,...t}=u.blockExplorers??{};if(e)return[e.url,...Object.values(t).map(n=>n.url)]}isChainUnsupported(u){return!this.chains.some(e=>e.id===u)}setStorage(u){this.storage=u}};function zn0(u){var t;if(!u)return"Injected";const e=n=>{if(n.isApexWallet)return"Apex Wallet";if(n.isAvalanche)return"Core Wallet";if(n.isBackpack)return"Backpack";if(n.isBifrost)return"Bifrost Wallet";if(n.isBitKeep)return"BitKeep";if(n.isBitski)return"Bitski";if(n.isBlockWallet)return"BlockWallet";if(n.isBraveWallet)return"Brave Wallet";if(n.isCoin98)return"Coin98 Wallet";if(n.isCoinbaseWallet)return"Coinbase Wallet";if(n.isDawn)return"Dawn Wallet";if(n.isDefiant)return"Defiant";if(n.isDesig)return"Desig Wallet";if(n.isEnkrypt)return"Enkrypt";if(n.isExodus)return"Exodus";if(n.isFordefi)return"Fordefi";if(n.isFrame)return"Frame";if(n.isFrontier)return"Frontier Wallet";if(n.isGamestop)return"GameStop Wallet";if(n.isHaqqWallet)return"HAQQ Wallet";if(n.isHyperPay)return"HyperPay Wallet";if(n.isImToken)return"ImToken";if(n.isHaloWallet)return"Halo Wallet";if(n.isKuCoinWallet)return"KuCoin Wallet";if(n.isMathWallet)return"MathWallet";if(n.isNovaWallet)return"Nova Wallet";if(n.isOkxWallet||n.isOKExWallet)return"OKX Wallet";if(n.isOneInchIOSWallet||n.isOneInchAndroidWallet)return"1inch Wallet";if(n.isOpera)return"Opera";if(n.isPhantom)return"Phantom";if(n.isPortal)return"Ripio Portal";if(n.isRabby)return"Rabby Wallet";if(n.isRainbow)return"Rainbow";if(n.isSafePal)return"SafePal Wallet";if(n.isStatus)return"Status";if(n.isSubWallet)return"SubWallet";if(n.isTalisman)return"Talisman";if(n.isTally)return"Taho";if(n.isTokenPocket)return"TokenPocket";if(n.isTokenary)return"Tokenary";if(n.isTrust||n.isTrustWallet)return"Trust Wallet";if(n.isTTWallet)return"TTWallet";if(n.isXDEFI)return"XDEFI Wallet";if(n.isZeal)return"Zeal";if(n.isZerion)return"Zerion";if(n.isMetaMask)return"MetaMask"};if((t=u.providers)!=null&&t.length){const n=new Set;let r=1;for(const a of u.providers){let o=e(a);o||(o=`Unknown Wallet #${r}`,r+=1),n.add(o)}const i=[...n];return i.length?i:i[0]??"Injected"}return e(u)??"Injected"}var y5,K4=class extends Tc{constructor({chains:u,options:e}={}){const t={shimDisconnect:!0,getProvider(){if(typeof window>"u")return;const r=window.ethereum;return r!=null&&r.providers&&r.providers.length>0?r.providers[0]:r},...e};super({chains:u,options:t}),this.id="injected",re(this,y5,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`,this.onAccountsChanged=r=>{r.length===0?this.emit("disconnect"):this.emit("change",{account:ju(r[0])})},this.onChainChanged=r=>{const i=Ko(r),a=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:a}})},this.onDisconnect=async r=>{var i;r.code===1013&&await this.getProvider()&&await this.getAccount()||(this.emit("disconnect"),this.options.shimDisconnect&&((i=this.storage)==null||i.removeItem(this.shimDisconnectKey)))};const n=t.getProvider();if(typeof t.name=="string")this.name=t.name;else if(n){const r=zn0(n);t.name?this.name=t.name(r):typeof r=="string"?this.name=r:this.name=r[0]}else this.name="Injected";this.ready=!!n}async connect({chainId:u}={}){var e;try{const t=await this.getProvider();if(!t)throw new ft;t.on&&(t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});const n=await t.request({method:"eth_requestAccounts"}),r=ju(n[0]);let i=await this.getChainId(),a=this.isChainUnsupported(i);return u&&i!==u&&(i=(await this.switchChain(u)).id,a=this.isChainUnsupported(i)),this.options.shimDisconnect&&((e=this.storage)==null||e.setItem(this.shimDisconnectKey,!0)),{account:r,chain:{id:i,unsupported:a}}}catch(t){throw this.isUserRejectedRequestError(t)?new Xu(t):t.code===-32002?new ni(t):t}}async disconnect(){var e;const u=await this.getProvider();u!=null&&u.removeListener&&(u.removeListener("accountsChanged",this.onAccountsChanged),u.removeListener("chainChanged",this.onChainChanged),u.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&((e=this.storage)==null||e.removeItem(this.shimDisconnectKey)))}async getAccount(){const u=await this.getProvider();if(!u)throw new ft;const e=await u.request({method:"eth_accounts"});return ju(e[0])}async getChainId(){const u=await this.getProvider();if(!u)throw new ft;return u.request({method:"eth_chainId"}).then(Ko)}async getProvider(){const u=this.options.getProvider();return u&&ii(this,y5,u),J0(this,y5)}async getWalletClient({chainId:u}={}){const[e,t]=await Promise.all([this.getProvider(),this.getAccount()]),n=this.chains.find(r=>r.id===u);if(!e)throw new Error("provider is required.");return w3({account:t,chain:n,transport:F3(e)})}async isAuthorized(){var u;try{if(this.options.shimDisconnect&&!((u=this.storage)!=null&&u.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new ft;return!!await this.getAccount()}catch{return!1}}async switchChain(u){var n,r,i;const e=await this.getProvider();if(!e)throw new ft;const t=O0(u);try{return await Promise.all([e.request({method:"wallet_switchEthereumChain",params:[{chainId:t}]}),new Promise(a=>this.on("change",({chain:o})=>{(o==null?void 0:o.id)===u&&a()}))]),this.chains.find(a=>a.id===u)??{id:u,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(a){const o=this.chains.find(s=>s.id===u);if(!o)throw new PR({chainId:u,connectorId:this.id});if(a.code===4902||((r=(n=a==null?void 0:a.data)==null?void 0:n.originalError)==null?void 0:r.code)===4902)try{if(await e.request({method:"wallet_addEthereumChain",params:[{chainId:t,chainName:o.name,nativeCurrency:o.nativeCurrency,rpcUrls:[((i=o.rpcUrls.public)==null?void 0:i.http[0])??""],blockExplorerUrls:this.getBlockExplorerUrls(o)}]}),await this.getChainId()!==u)throw new Xu(new Error("User rejected switch after adding network."));return o}catch(s){throw new Xu(s)}throw this.isUserRejectedRequestError(a)?new Xu(a):new Wn(a)}}async watchAsset({address:u,decimals:e=18,image:t,symbol:n}){const r=await this.getProvider();if(!r)throw new ft;return r.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:u,decimals:e,image:t,symbol:n}}})}isUserRejectedRequestError(u){return u.code===4001}};y5=new WeakMap;var EA=(u,e,t)=>{if(!e.has(u))throw TypeError("Cannot "+t)},j8=(u,e,t)=>(EA(u,e,"read from private field"),t?t.call(u):e.get(u)),z8=(u,e,t)=>{if(e.has(u))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(u):e.set(u,t)},M6=(u,e,t,n)=>(EA(u,e,"write to private field"),n?n.call(u,t):e.set(u,t),t),Ln0=(u,e,t)=>(EA(u,e,"access private method"),t),$n0={VITE_REACT_APP_PROJECT_ID:"9d80089c30635ff84b5339d993d63fa1",VITE_MUMBAI_RPC:"https://polygon-mumbai.g.alchemy.com/v2/BmepUpwxd86PJSuisn7P4f3lZJSqcAUt",VITE_PINATA_JWT:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M",VITE_PINATA_GET_URL:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/",VITE_PINATA_PIN_FILE_URL:"https://api.pinata.cloud/pinning/pinFileToIPFS",VITE_PINATA_PIN_JSON_URL:"https://api.pinata.cloud/pinning/pinJSONToIPFS",BASE_URL:"/real-token/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Un0=u=>(e,t,n)=>{const r=n.subscribe;return n.subscribe=(a,o,s)=>{let f=a;if(o){const l=(s==null?void 0:s.equalityFn)||Object.is;let c=a(n.getState());f=d=>{const E=a(d);if(!l(c,E)){const p=c;o(c=E,p)}},s!=null&&s.fireImmediately&&o(c,c)}return r(f)},u(e,t,n)},Wn0=Un0;function qn0(u,e){let t;try{t=u()}catch{return}return{getItem:r=>{var i;const a=s=>s===null?null:JSON.parse(s,e==null?void 0:e.reviver),o=(i=t.getItem(r))!=null?i:null;return o instanceof Promise?o.then(a):a(o)},setItem:(r,i)=>t.setItem(r,JSON.stringify(i,e==null?void 0:e.replacer)),removeItem:r=>t.removeItem(r)}}const S1=u=>e=>{try{const t=u(e);return t instanceof Promise?t:{then(n){return S1(n)(t)},catch(n){return this}}}catch(t){return{then(n){return this},catch(n){return S1(n)(t)}}}},Hn0=(u,e)=>(t,n,r)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:g=>g,version:0,merge:(g,b)=>({...b,...g}),...e},a=!1;const o=new Set,s=new Set;let f;try{f=i.getStorage()}catch{}if(!f)return u((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...g)},n,r);const l=S1(i.serialize),c=()=>{const g=i.partialize({...n()});let b;const m=l({state:g,version:i.version}).then(A=>f.setItem(i.name,A)).catch(A=>{b=A});if(b)throw b;return m},d=r.setState;r.setState=(g,b)=>{d(g,b),c()};const E=u((...g)=>{t(...g),c()},n,r);let p;const h=()=>{var g;if(!f)return;a=!1,o.forEach(m=>m(n()));const b=((g=i.onRehydrateStorage)==null?void 0:g.call(i,n()))||void 0;return S1(f.getItem.bind(f))(i.name).then(m=>{if(m)return i.deserialize(m)}).then(m=>{if(m)if(typeof m.version=="number"&&m.version!==i.version){if(i.migrate)return i.migrate(m.state,m.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return m.state}).then(m=>{var A;return p=i.merge(m,(A=n())!=null?A:E),t(p,!0),c()}).then(()=>{b==null||b(p,void 0),a=!0,s.forEach(m=>m(p))}).catch(m=>{b==null||b(void 0,m)})};return r.persist={setOptions:g=>{i={...i,...g},g.getStorage&&(f=g.getStorage())},clearStorage:()=>{f==null||f.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>h(),hasHydrated:()=>a,onHydrate:g=>(o.add(g),()=>{o.delete(g)}),onFinishHydration:g=>(s.add(g),()=>{s.delete(g)})},h(),p||E},Gn0=(u,e)=>(t,n,r)=>{let i={storage:qn0(()=>localStorage),partialize:h=>h,version:0,merge:(h,g)=>({...g,...h}),...e},a=!1;const o=new Set,s=new Set;let f=i.storage;if(!f)return u((...h)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...h)},n,r);const l=()=>{const h=i.partialize({...n()});return f.setItem(i.name,{state:h,version:i.version})},c=r.setState;r.setState=(h,g)=>{c(h,g),l()};const d=u((...h)=>{t(...h),l()},n,r);let E;const p=()=>{var h,g;if(!f)return;a=!1,o.forEach(m=>{var A;return m((A=n())!=null?A:d)});const b=((g=i.onRehydrateStorage)==null?void 0:g.call(i,(h=n())!=null?h:d))||void 0;return S1(f.getItem.bind(f))(i.name).then(m=>{if(m)if(typeof m.version=="number"&&m.version!==i.version){if(i.migrate)return i.migrate(m.state,m.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return m.state}).then(m=>{var A;return E=i.merge(m,(A=n())!=null?A:d),t(E,!0),l()}).then(()=>{b==null||b(E,void 0),E=n(),a=!0,s.forEach(m=>m(E))}).catch(m=>{b==null||b(void 0,m)})};return r.persist={setOptions:h=>{i={...i,...h},h.storage&&(f=h.storage)},clearStorage:()=>{f==null||f.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>a,onHydrate:h=>(o.add(h),()=>{o.delete(h)}),onFinishHydration:h=>(s.add(h),()=>{s.delete(h)})},i.skipHydration||p(),E||d},Vn0=(u,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?(($n0?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Hn0(u,e)):Gn0(u,e),Kn0=Vn0;var Qn0={VITE_REACT_APP_PROJECT_ID:"9d80089c30635ff84b5339d993d63fa1",VITE_MUMBAI_RPC:"https://polygon-mumbai.g.alchemy.com/v2/BmepUpwxd86PJSuisn7P4f3lZJSqcAUt",VITE_PINATA_JWT:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M",VITE_PINATA_GET_URL:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/",VITE_PINATA_PIN_FILE_URL:"https://api.pinata.cloud/pinning/pinFileToIPFS",VITE_PINATA_PIN_JSON_URL:"https://api.pinata.cloud/pinning/pinJSONToIPFS",BASE_URL:"/real-token/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const YF=u=>{let e;const t=new Set,n=(s,f)=>{const l=typeof s=="function"?s(e):s;if(!Object.is(l,e)){const c=e;e=f??(typeof l!="object"||l===null)?l:Object.assign({},e,l),t.forEach(d=>d(e,c))}},r=()=>e,o={setState:n,getState:r,subscribe:s=>(t.add(s),()=>t.delete(s)),destroy:()=>{(Qn0?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}};return e=u(n,r,o),o},Jn0=u=>u?YF(u):YF;function pA(u,e){if(Object.is(u,e))return!0;if(typeof u!="object"||u===null||typeof e!="object"||e===null)return!1;if(u instanceof Map&&e instanceof Map){if(u.size!==e.size)return!1;for(const[n,r]of u)if(!Object.is(r,e.get(n)))return!1;return!0}if(u instanceof Set&&e instanceof Set){if(u.size!==e.size)return!1;for(const n of u)if(!e.has(n))return!1;return!0}const t=Object.keys(u);if(t.length!==Object.keys(e).length)return!1;for(let n=0;nh===c.id)||(s=[...s,p.chain]),f[c.id]=[...f[c.id]||[],...p.rpcUrls.http],p.rpcUrls.webSocket&&(l[c.id]=[...l[c.id]||[],...p.rpcUrls.webSocket]))}if(!d)throw new Error([`Could not find valid provider configuration for chain "${c.name}". +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class xg extends l0{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}class rO extends l0{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",xc(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class iO extends l0{constructor({serializedType:e}){super(`Serialized transaction type "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=e}}class Wd extends l0{constructor({attributes:e,serializedTransaction:t,type:n}){const r=Object.entries(e).map(([i,a])=>typeof a>"u"?i:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${n}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,r.length>0?`Missing Attributes: ${r.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=t,this.type=n}}class aO extends l0{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}class oO extends l0{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:d}){var p;const E=xc({chain:r&&`${r==null?void 0:r.name} (id: ${r==null?void 0:r.id})`,from:t==null?void 0:t.address,to:c,value:typeof d<"u"&&`${Ud(d)} ${((p=r==null?void 0:r.nativeCurrency)==null?void 0:p.symbol)||"ETH"}`,data:i,gas:a,gasPrice:typeof o<"u"&&`${Ye(o)} gwei`,maxFeePerGas:typeof s<"u"&&`${Ye(s)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${Ye(f)} gwei`,nonce:l});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",E].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=e}}class kg extends l0{constructor({blockHash:e,blockNumber:t,blockTag:n,hash:r,index:i}){let a="Transaction";n&&i!==void 0&&(a=`Transaction at block time "${n}" at index "${i}"`),e&&i!==void 0&&(a=`Transaction at block hash "${e}" at index "${i}"`),t&&i!==void 0&&(a=`Transaction at block number "${t}" at index "${i}"`),r&&(a=`Transaction with hash "${r}"`),super(`${a} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}class _g extends l0{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}class sO extends l0{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}class Sg extends l0{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:d}){var h;const E=t?An(t):void 0,p=xc({from:E==null?void 0:E.address,to:c,value:typeof d<"u"&&`${Ud(d)} ${((h=r==null?void 0:r.nativeCurrency)==null?void 0:h.symbol)||"ETH"}`,data:i,gas:a,gasPrice:typeof o<"u"&&`${Ye(o)} gwei`,maxFeePerGas:typeof s<"u"&&`${Ye(s)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${Ye(f)} gwei`,nonce:l});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",p].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=e}}class qd extends l0{constructor(e,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:a,sender:o}){const s=_a({abi:t,args:n,name:a}),f=s?tO({abiItem:s,args:n,includeFunctionName:!1,includeName:!1}):void 0,l=s?di(s,{includeName:!0}):void 0,c=xc({address:r&&DZ(r),function:l,args:f&&f!=="()"&&`${[...Array((a==null?void 0:a.length)??0).keys()].map(()=>" ").join("")}${f}`,sender:o});super(e.shortMessage||`An unknown error occurred while executing the contract function "${a}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Contract Call:",c].filter(Boolean)}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=t,this.args=n,this.cause=e,this.contractAddress=r,this.functionName=a,this.sender=o}}class N2 extends l0{constructor({abi:e,data:t,functionName:n,message:r}){let i,a,o,s;if(t&&t!=="0x")try{a=wg({abi:e,data:t});const{abiItem:l,errorName:c,args:d}=a;if(c==="Error")s=d[0];else if(c==="Panic"){const[E]=d;s=eO[E]}else{const E=l?di(l,{includeName:!0}):void 0,p=l&&d?tO({abiItem:l,args:d,includeFunctionName:!1,includeName:!1}):void 0;o=[E?`Error: ${E}`:"",p&&p!=="()"?` ${[...Array((c==null?void 0:c.length)??0).keys()].map(()=>" ").join("")}${p}`:""]}}catch(l){i=l}else r&&(s=r);let f;i instanceof hg&&(f=i.signature,o=[`Unable to decode signature "${f}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${f}.`]),super(s&&s!=="execution reverted"||f?[`The contract function "${n}" reverted with the following ${f?"signature":"reason"}:`,s||f].join(` +`):`The contract function "${n}" reverted.`,{cause:i,metaMessages:o}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=a,this.reason=s,this.signature=f}}class fO extends l0{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}class Hd extends l0{constructor({data:e,message:t}){super(t||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}class la extends l0{constructor({body:e,details:t,headers:n,status:r,url:i}){super("HTTP request failed.",{details:t,metaMessages:[r&&`Status: ${r}`,`URL: ${m3(i)}`,e&&`Request body: ${Ce(e)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=n,this.status=r,this.url=i}}class lO extends l0{constructor({body:e,details:t,url:n}){super("WebSocket request failed.",{details:t,metaMessages:[`URL: ${m3(n)}`,`Request body: ${Ce(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}class Gd extends l0{constructor({body:e,error:t,url:n}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${m3(n)}`,`Request body: ${Ce(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}class M2 extends l0{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${m3(t)}`,`Request body: ${Ce(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}const rX=-1;class at extends l0{constructor(e,{code:t,docsPath:n,metaMessages:r,shortMessage:i}){super(i,{cause:e,docsPath:n,metaMessages:r||(e==null?void 0:e.metaMessages)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e.name,this.code=e instanceof Gd?e.code:t??rX}}class fs extends at{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class P4 extends at{constructor(e){super(e,{code:P4.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(P4,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class I4 extends at{constructor(e){super(e,{code:I4.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(I4,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class O4 extends at{constructor(e){super(e,{code:O4.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(O4,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class R4 extends at{constructor(e){super(e,{code:R4.code,shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(` +`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(R4,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Vo extends at{constructor(e){super(e,{code:Vo.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(Vo,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class ga extends at{constructor(e){super(e,{code:ga.code,shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(` +`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(ga,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class N4 extends at{constructor(e){super(e,{code:N4.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(N4,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class ni extends at{constructor(e){super(e,{code:ni.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(ni,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class M4 extends at{constructor(e){super(e,{code:M4.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(M4,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class j4 extends at{constructor(e){super(e,{code:j4.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(j4,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class z4 extends at{constructor(e){super(e,{code:z4.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(z4,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class L4 extends at{constructor(e){super(e,{code:L4.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(L4,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Xu extends fs{constructor(e){super(e,{code:Xu.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(Xu,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class $4 extends fs{constructor(e){super(e,{code:$4.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty($4,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class U4 extends fs{constructor(e){super(e,{code:U4.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(U4,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class W4 extends fs{constructor(e){super(e,{code:W4.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(W4,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class q4 extends fs{constructor(e){super(e,{code:q4.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(q4,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class Wn extends fs{constructor(e){super(e,{code:Wn.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(Wn,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class cO extends at{constructor(e){super(e,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}const iX=3;function H4(u,{abi:e,address:t,args:n,docsPath:r,functionName:i,sender:a}){const{code:o,data:s,message:f,shortMessage:l}=u instanceof Hd?u:u instanceof l0?u.walk(d=>"data"in d)||u.walk():{},c=u instanceof Dc?new fO({functionName:i}):[iX,Vo.code].includes(o)&&(s||f||l)?new N2({abi:e,data:typeof s=="object"?s.data:s,functionName:i,message:l??f}):u;return new qd(c,{abi:e,args:n,contractAddress:t,docsPath:r,functionName:i,sender:a})}class A3 extends l0{constructor({docsPath:e}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient."].join(` +`),{docsPath:e,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}class dO extends l0{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:d}){var p;const E=xc({from:t==null?void 0:t.address,to:c,value:typeof d<"u"&&`${Ud(d)} ${((p=r==null?void 0:r.nativeCurrency)==null?void 0:p.symbol)||"ETH"}`,data:i,gas:a,gasPrice:typeof o<"u"&&`${Ye(o)} gwei`,maxFeePerGas:typeof s<"u"&&`${Ye(s)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${Ye(f)} gwei`,nonce:l});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",E].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=e}}function Tg(u,e){const t=(u.details||"").toLowerCase(),n=u.walk(r=>r.code===eo.code);return n instanceof l0?new eo({cause:u,message:n.details}):eo.nodeMessage.test(t)?new eo({cause:u,message:u.details}):ma.nodeMessage.test(t)?new ma({cause:u,maxFeePerGas:e==null?void 0:e.maxFeePerGas}):D2.nodeMessage.test(t)?new D2({cause:u,maxFeePerGas:e==null?void 0:e.maxFeePerGas}):w2.nodeMessage.test(t)?new w2({cause:u,nonce:e==null?void 0:e.nonce}):x2.nodeMessage.test(t)?new x2({cause:u,nonce:e==null?void 0:e.nonce}):k2.nodeMessage.test(t)?new k2({cause:u,nonce:e==null?void 0:e.nonce}):_2.nodeMessage.test(t)?new _2({cause:u}):S2.nodeMessage.test(t)?new S2({cause:u,gas:e==null?void 0:e.gas}):T2.nodeMessage.test(t)?new T2({cause:u,gas:e==null?void 0:e.gas}):P2.nodeMessage.test(t)?new P2({cause:u}):S4.nodeMessage.test(t)?new S4({cause:u,maxFeePerGas:e==null?void 0:e.maxFeePerGas,maxPriorityFeePerGas:e==null?void 0:e.maxPriorityFeePerGas}):new Bc({cause:u})}function aX(u,{docsPath:e,...t}){const n=(()=>{const r=Tg(u,t);return r instanceof Bc?u:r})();return new dO(n,{docsPath:e,...t})}function Vd(u,{format:e}){if(!e)return{};const t={};function n(i){const a=Object.keys(i);for(const o of a)o in u&&(t[o]=u[o]),i[o]&&typeof i[o]=="object"&&!Array.isArray(i[o])&&n(i[o])}const r=e(u||{});return n(r),t}function y3(u){const{account:e,gasPrice:t,maxFeePerGas:n,maxPriorityFeePerGas:r,to:i}=u,a=e?An(e):void 0;if(a&&!tt(a.address))throw new yt({address:a.address});if(i&&!tt(i))throw new yt({address:i});if(typeof t<"u"&&(typeof n<"u"||typeof r<"u"))throw new nO;if(n&&n>2n**256n-1n)throw new ma({maxFeePerGas:n});if(r&&n&&r>n)throw new S4({maxFeePerGas:n,maxPriorityFeePerGas:r})}class EO extends l0{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}class Kd extends l0{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}class pO extends l0{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${Ye(e)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}class Pg extends l0{constructor({blockHash:e,blockNumber:t}){let n="Block";e&&(n=`Block at hash "${e}"`),t&&(n=`Block at number "${t}"`),super(`${n} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}async function Aa(u,{blockHash:e,blockNumber:t,blockTag:n,includeTransactions:r}={}){var l,c,d;const i=n??"latest",a=r??!1,o=t!==void 0?O0(t):void 0;let s=null;if(e?s=await u.request({method:"eth_getBlockByHash",params:[e,a]}):s=await u.request({method:"eth_getBlockByNumber",params:[o||i,a]}),!s)throw new Pg({blockHash:e,blockNumber:t});return(((d=(c=(l=u.chain)==null?void 0:l.formatters)==null?void 0:c.block)==null?void 0:d.format)||Id)(s)}async function Ig(u){const e=await u.request({method:"eth_gasPrice"});return BigInt(e)}async function oX(u,e){return hO(u,e)}async function hO(u,e){var i,a,o;const{block:t,chain:n=u.chain,request:r}=e||{};if(typeof((i=n==null?void 0:n.fees)==null?void 0:i.defaultPriorityFee)=="function"){const s=t||await z0(u,Aa,"getBlock")({});return n.fees.defaultPriorityFee({block:s,client:u,request:r})}if(typeof((a=n==null?void 0:n.fees)==null?void 0:a.defaultPriorityFee)<"u")return(o=n==null?void 0:n.fees)==null?void 0:o.defaultPriorityFee;try{const s=await u.request({method:"eth_maxPriorityFeePerGas"});return Ru(s)}catch{const[s,f]=await Promise.all([t?Promise.resolve(t):z0(u,Aa,"getBlock")({}),z0(u,Ig,"getGasPrice")({})]);if(typeof s.baseFeePerGas!="bigint")throw new Kd;const l=f-s.baseFeePerGas;return l<0n?0n:l}}async function sX(u,e){return rC(u,e)}async function rC(u,e){var d,E;const{block:t,chain:n=u.chain,request:r,type:i="eip1559"}=e||{},a=await(async()=>{var p,h;return typeof((p=n==null?void 0:n.fees)==null?void 0:p.baseFeeMultiplier)=="function"?n.fees.baseFeeMultiplier({block:t,client:u,request:r}):((h=n==null?void 0:n.fees)==null?void 0:h.baseFeeMultiplier)??1.2})();if(a<1)throw new EO;const s=10**(((d=a.toString().split(".")[1])==null?void 0:d.length)??0),f=p=>p*BigInt(Math.ceil(a*s))/BigInt(s),l=t||await z0(u,Aa,"getBlock")({});if(typeof((E=n==null?void 0:n.fees)==null?void 0:E.estimateFeesPerGas)=="function")return n.fees.estimateFeesPerGas({block:t,client:u,multiply:f,request:r,type:i});if(i==="eip1559"){if(typeof l.baseFeePerGas!="bigint")throw new Kd;const p=r!=null&&r.maxPriorityFeePerGas?r.maxPriorityFeePerGas:await hO(u,{block:l,chain:n,request:r}),h=f(l.baseFeePerGas);return{maxFeePerGas:(r==null?void 0:r.maxFeePerGas)??h+p,maxPriorityFeePerGas:p}}return{gasPrice:(r==null?void 0:r.gasPrice)??f(await z0(u,Ig,"getGasPrice")({}))}}async function CO(u,{address:e,blockTag:t="latest",blockNumber:n}){const r=await u.request({method:"eth_getTransactionCount",params:[e,n?O0(n):t]});return gu(r)}function Og(u){if(u.type)return u.type;if(typeof u.maxFeePerGas<"u"||typeof u.maxPriorityFeePerGas<"u")return"eip1559";if(typeof u.gasPrice<"u")return typeof u.accessList<"u"?"eip2930":"legacy";throw new rO({transaction:u})}async function Qd(u,e){const{account:t=u.account,chain:n,gas:r,nonce:i,type:a}=e;if(!t)throw new A3;const o=An(t),s=await z0(u,Aa,"getBlock")({blockTag:"latest"}),f={...e,from:o.address};if(typeof i>"u"&&(f.nonce=await z0(u,CO,"getTransactionCount")({address:o.address,blockTag:"pending"})),typeof a>"u")try{f.type=Og(f)}catch{f.type=typeof s.baseFeePerGas=="bigint"?"eip1559":"legacy"}if(f.type==="eip1559"){const{maxFeePerGas:l,maxPriorityFeePerGas:c}=await rC(u,{block:s,chain:n,request:f});if(typeof e.maxPriorityFeePerGas>"u"&&e.maxFeePerGas&&e.maxFeePerGas"u"&&(f.gas=await z0(u,Rg,"estimateGas")({...f,account:{address:o.address,type:"json-rpc"}})),y3(f),f}async function Rg(u,e){var r,i,a;const t=e.account??u.account;if(!t)throw new A3({docsPath:"/docs/actions/public/estimateGas"});const n=An(t);try{const{accessList:o,blockNumber:s,blockTag:f,data:l,gas:c,gasPrice:d,maxFeePerGas:E,maxPriorityFeePerGas:p,nonce:h,to:g,value:b,...m}=n.type==="local"?await Qd(u,e):e,y=(s?O0(s):void 0)||f;y3(e);const B=(a=(i=(r=u.chain)==null?void 0:r.formatters)==null?void 0:i.transactionRequest)==null?void 0:a.format,C=(B||as)({...Vd(m,{format:B}),from:n.address,accessList:o,data:l,gas:c,gasPrice:d,maxFeePerGas:E,maxPriorityFeePerGas:p,nonce:h,to:g,value:b}),F=await u.request({method:"eth_estimateGas",params:y?[C,y]:[C]});return BigInt(F)}catch(o){throw aX(o,{...e,account:n,chain:u.chain})}}async function mO(u,{abi:e,address:t,args:n,functionName:r,...i}){const a=pi({abi:e,args:n,functionName:r});try{return await z0(u,Rg,"estimateGas")({data:a,to:t,...i})}catch(o){const s=i.account?An(i.account):void 0;throw H4(o,{abi:e,address:t,args:n,docsPath:"/docs/contract/estimateContractGas",functionName:r,sender:s==null?void 0:s.address})}}const jF="/docs/contract/decodeEventLog";function v3({abi:u,data:e,strict:t,topics:n}){const r=t??!0,[i,...a]=n;if(!i)throw new OI({docsPath:jF});const o=u.find(p=>p.type==="event"&&i===zd(di(p)));if(!(o&&"name"in o)||o.type!=="event")throw new RI(i,{docsPath:jF});const{name:s,inputs:f}=o,l=f==null?void 0:f.some(p=>!("name"in p&&p.name));let c=l?[]:{};const d=f.filter(p=>"indexed"in p&&p.indexed);for(let p=0;p!("indexed"in p&&p.indexed));if(E.length>0){if(e&&e!=="0x")try{const p=ss(E,e);if(p)if(l)c=[...c,...p];else for(let h=0;h0?c:void 0}}function fX({param:u,value:e}){return u.type==="string"||u.type==="bytes"||u.type==="tuple"||u.type.match(/^(.*)\[(\d+)?\]$/)?e:(ss([u],e)||[])[0]}async function Ng(u,{address:e,blockHash:t,fromBlock:n,toBlock:r,event:i,events:a,args:o,strict:s}={}){const f=s??!1,l=a??(i?[i]:void 0);let c=[];l&&(c=[l.flatMap(E=>g3({abi:[E],eventName:E.name,args:o}))],i&&(c=c[0]));let d;return t?d=await u.request({method:"eth_getLogs",params:[{address:e,topics:c,blockHash:t}]}):d=await u.request({method:"eth_getLogs",params:[{address:e,topics:c,fromBlock:typeof n=="bigint"?O0(n):n,toBlock:typeof r=="bigint"?O0(r):r}]}),d.map(E=>{var p;try{const{eventName:h,args:g}=l?v3({abi:l,data:E.data,topics:E.topics,strict:f}):{eventName:void 0,args:void 0};return hn(E,{args:g,eventName:h})}catch(h){let g,b;if(h instanceof ba||h instanceof os){if(f)return;g=h.abiItem.name,b=(p=h.abiItem.inputs)==null?void 0:p.some(m=>!("name"in m&&m.name))}return hn(E,{args:b?[]:{},eventName:g})}}).filter(Boolean)}async function Mg(u,{abi:e,address:t,args:n,blockHash:r,eventName:i,fromBlock:a,toBlock:o,strict:s}){const f=i?_a({abi:e,name:i}):void 0,l=f?void 0:e.filter(c=>c.type==="event");return z0(u,Ng,"getLogs")({address:t,args:n,blockHash:r,event:f,events:l,fromBlock:a,toBlock:o,strict:s})}const x8="/docs/contract/decodeFunctionResult";function ls({abi:u,args:e,functionName:t,data:n}){let r=u[0];if(t&&(r=_a({abi:u,args:e,name:t}),!r))throw new Go(t,{docsPath:x8});if(r.type!=="function")throw new Go(void 0,{docsPath:x8});if(!r.outputs)throw new Cg(r.name,{docsPath:x8});const i=ss(r.outputs,n);if(i&&i.length>1)return i;if(i&&i.length===1)return i[0]}const j2=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],bO=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}],gO=[...bO,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],lX=[...bO,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],zF=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],LF=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],cX=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}],dX="0x82ad56cb";function cs({blockNumber:u,chain:e,contract:t}){var r;const n=(r=e==null?void 0:e.contracts)==null?void 0:r[t];if(!n)throw new F2({chain:e,contract:{name:t}});if(u&&n.blockCreated&&n.blockCreated>u)throw new F2({blockNumber:u,chain:e,contract:{name:t,blockCreated:n.blockCreated}});return n.address}function EX(u,{docsPath:e,...t}){const n=(()=>{const r=Tg(u,t);return r instanceof Bc?u:r})();return new Sg(n,{docsPath:e,...t})}const k8=new Map;function jg({fn:u,id:e,shouldSplitBatch:t,wait:n=0,sort:r}){const i=async()=>{const l=s();a();const c=l.map(({args:d})=>d);c.length!==0&&u(c).then(d=>{var E;r&&Array.isArray(d)&&d.sort(r);for(let p=0;p{var E;for(let p=0;pk8.delete(e),o=()=>s().map(({args:l})=>l),s=()=>k8.get(e)||[],f=l=>k8.set(e,[...s(),l]);return{flush:a,async schedule(l){const c={},d=new Promise((h,g)=>{c.resolve=h,c.reject=g});return(t==null?void 0:t([...o(),l]))&&i(),s().length>0?(f({args:l,pendingPromise:c}),d):(f({args:l,pendingPromise:c}),setTimeout(i,n),d)}}}async function kc(u,e){var b,m,A,y;const{account:t=u.account,batch:n=!!((b=u.batch)!=null&&b.multicall),blockNumber:r,blockTag:i="latest",accessList:a,data:o,gas:s,gasPrice:f,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:d,to:E,value:p,...h}=e,g=t?An(t):void 0;try{y3(e);const v=(r?O0(r):void 0)||i,C=(y=(A=(m=u.chain)==null?void 0:m.formatters)==null?void 0:A.transactionRequest)==null?void 0:y.format,S=(C||as)({...Vd(h,{format:C}),from:g==null?void 0:g.address,accessList:a,data:o,gas:s,gasPrice:f,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:d,to:E,value:p});if(n&&pX({request:S}))try{return await hX(u,{...S,blockNumber:r,blockTag:i})}catch($){if(!($ instanceof lg)&&!($ instanceof F2))throw $}const x=await u.request({method:"eth_call",params:v?[S,v]:[S]});return x==="0x"?{data:void 0}:{data:x}}catch(B){const v=CX(B),{offchainLookup:C,offchainLookupSignature:F}=await q0(()=>Promise.resolve().then(()=>a00),void 0);if((v==null?void 0:v.slice(0,10))===F&&E)return{data:await C(u,{data:v,to:E})};throw EX(B,{...e,account:g,chain:u.chain})}}function pX({request:u}){const{data:e,to:t,...n}=u;return!(!e||e.startsWith(dX)||!t||Object.values(n).filter(r=>typeof r<"u").length>0)}async function hX(u,e){var h;const{batchSize:t=1024,wait:n=0}=typeof((h=u.batch)==null?void 0:h.multicall)=="object"?u.batch.multicall:{},{blockNumber:r,blockTag:i="latest",data:a,multicallAddress:o,to:s}=e;let f=o;if(!f){if(!u.chain)throw new lg;f=cs({blockNumber:r,chain:u.chain,contract:"multicall3"})}const c=(r?O0(r):void 0)||i,{schedule:d}=jg({id:`${u.uid}.${c}`,wait:n,shouldSplitBatch(g){return g.reduce((m,{data:A})=>m+(A.length-2),0)>t*2},fn:async g=>{const b=g.map(y=>({allowFailure:!0,callData:y.data,target:y.to})),m=pi({abi:j2,args:[b],functionName:"aggregate3"}),A=await u.request({method:"eth_call",params:[{data:m,to:f},c]});return ls({abi:j2,args:[b],functionName:"aggregate3",data:A||"0x"})}}),[{returnData:E,success:p}]=await d({data:a,to:s});if(!p)throw new Hd({data:E});return E==="0x"?{data:void 0}:{data:E}}function CX(u){if(!(u instanceof l0))return;const e=u.walk();return typeof e.data=="object"?e.data.data:e.data}async function ri(u,{abi:e,address:t,args:n,functionName:r,...i}){const a=pi({abi:e,args:n,functionName:r});try{const{data:o}=await z0(u,kc,"call")({data:a,to:t,...i});return ls({abi:e,args:n,functionName:r,data:o||"0x"})}catch(o){throw H4(o,{abi:e,address:t,args:n,docsPath:"/docs/contract/readContract",functionName:r})}}async function AO(u,{abi:e,address:t,args:n,dataSuffix:r,functionName:i,...a}){const o=a.account?An(a.account):void 0,s=pi({abi:e,args:n,functionName:i});try{const{data:f}=await z0(u,kc,"call")({batch:!1,data:`${s}${r?r.replace("0x",""):""}`,to:t,...a});return{result:ls({abi:e,args:n,functionName:i,data:f||"0x"}),request:{abi:e,address:t,args:n,dataSuffix:r,functionName:i,...a}}}catch(f){throw H4(f,{abi:e,address:t,args:n,docsPath:"/docs/contract/simulateContract",functionName:i,sender:o==null?void 0:o.address})}}const _8=new Map,$F=new Map;let mX=0;function B3(u,e,t){const n=++mX,r=()=>_8.get(u)||[],i=()=>{const l=r();_8.set(u,l.filter(c=>c.id!==n))},a=()=>{const l=$F.get(u);r().length===1&&l&&l(),i()},o=r();if(_8.set(u,[...o,{id:n,fns:e}]),o&&o.length>0)return a;const s={};for(const l in e)s[l]=(...c)=>{var E,p;const d=r();if(d.length!==0)for(const h of d)(p=(E=h.fns)[l])==null||p.call(E,...c)};const f=t(s);return typeof f=="function"&&$F.set(u,f),a}async function z2(u){return new Promise(e=>setTimeout(e,u))}function _c(u,{emitOnBegin:e,initialWaitTime:t,interval:n}){let r=!0;const i=()=>r=!1;return(async()=>{let o;e&&(o=await u({unpoll:i}));const s=await(t==null?void 0:t(o))??n;await z2(s);const f=async()=>{r&&(await u({unpoll:i}),await z2(n),f())};f()})(),i}const bX=new Map,gX=new Map;function AX(u){const e=(r,i)=>({clear:()=>i.delete(r),get:()=>i.get(r),set:a=>i.set(r,a)}),t=e(u,bX),n=e(u,gX);return{clear:()=>{t.clear(),n.clear()},promise:t,response:n}}async function yX(u,{cacheKey:e,cacheTime:t=1/0}){const n=AX(e),r=n.response.get();if(r&&t>0&&new Date().getTime()-r.created.getTime()`blockNumber.${u}`;async function Sc(u,{cacheTime:e=u.cacheTime,maxAge:t}={}){const n=await yX(()=>u.request({method:"eth_blockNumber"}),{cacheKey:vX(u.uid),cacheTime:t??e});return BigInt(n)}async function Jd(u,{filter:e}){const t="strict"in e&&e.strict;return(await e.request({method:"eth_getFilterChanges",params:[e.id]})).map(r=>{var i;if(typeof r=="string")return r;try{const{eventName:a,args:o}="abi"in e&&e.abi?v3({abi:e.abi,data:r.data,topics:r.topics,strict:t}):{eventName:void 0,args:void 0};return hn(r,{args:o,eventName:a})}catch(a){let o,s;if(a instanceof ba||a instanceof os){if("strict"in e&&e.strict)return;o=a.abiItem.name,s=(i=a.abiItem.inputs)==null?void 0:i.some(f=>!("name"in f&&f.name))}return hn(r,{args:s?[]:{},eventName:o})}}).filter(Boolean)}async function Zd(u,{filter:e}){return e.request({method:"eth_uninstallFilter",params:[e.id]})}function yO(u,{abi:e,address:t,args:n,batch:r=!0,eventName:i,onError:a,onLogs:o,poll:s,pollingInterval:f=u.pollingInterval,strict:l}){return(typeof s<"u"?s:u.transport.type!=="webSocket")?(()=>{const p=Ce(["watchContractEvent",t,n,r,u.uid,i,f]),h=l??!1;return B3(p,{onLogs:o,onError:a},g=>{let b,m,A=!1;const y=_c(async()=>{var B;if(!A){try{m=await z0(u,Dg,"createContractEventFilter")({abi:e,address:t,args:n,eventName:i,strict:h})}catch{}A=!0;return}try{let v;if(m)v=await z0(u,Jd,"getFilterChanges")({filter:m});else{const C=await z0(u,Sc,"getBlockNumber")({});b&&b!==C?v=await z0(u,Mg,"getContractEvents")({abi:e,address:t,args:n,eventName:i,fromBlock:b+1n,toBlock:C,strict:h}):v=[],b=C}if(v.length===0)return;if(r)g.onLogs(v);else for(const C of v)g.onLogs([C])}catch(v){m&&v instanceof ga&&(A=!1),(B=g.onError)==null||B.call(g,v)}},{emitOnBegin:!0,interval:f});return async()=>{m&&await z0(u,Zd,"uninstallFilter")({filter:m}),y()}})})():(()=>{let p=!0,h=()=>p=!1;return(async()=>{try{const g=i?g3({abi:e,eventName:i,args:n}):[],{unsubscribe:b}=await u.transport.subscribe({params:["logs",{address:t,topics:g}],onData(m){var y;if(!p)return;const A=m.result;try{const{eventName:B,args:v}=v3({abi:e,data:A.data,topics:A.topics,strict:l}),C=hn(A,{args:v,eventName:B});o([C])}catch(B){let v,C;if(B instanceof ba||B instanceof os){if(l)return;v=B.abiItem.name,C=(y=B.abiItem.inputs)==null?void 0:y.some(S=>!("name"in S&&S.name))}const F=hn(A,{args:C?[]:{},eventName:v});o([F])}},onError(m){a==null||a(m)}});h=b,p||h()}catch(g){a==null||a(g)}})(),h})()}function zg({chain:u,currentChainId:e}){if(!u)throw new iI;if(e!==u.id)throw new rI({chain:u,currentChainId:e})}function BX(u,{docsPath:e,...t}){const n=(()=>{const r=Tg(u,t);return r instanceof Bc?u:r})();return new oO(n,{docsPath:e,...t})}async function k1(u){const e=await u.request({method:"eth_chainId"});return gu(e)}async function Lg(u,{serializedTransaction:e}){return u.request({method:"eth_sendRawTransaction",params:[e]})}async function $g(u,e){var h,g,b,m;const{account:t=u.account,chain:n=u.chain,accessList:r,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:d,...E}=e;if(!t)throw new A3({docsPath:"/docs/actions/wallet/sendTransaction"});const p=An(t);try{y3(e);let A;if(n!==null&&(A=await z0(u,k1,"getChainId")({}),zg({currentChainId:A,chain:n})),p.type==="local"){const C=await z0(u,Qd,"prepareTransactionRequest")({account:p,accessList:r,chain:n,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:d,...E});A||(A=await z0(u,k1,"getChainId")({}));const F=(h=n==null?void 0:n.serializers)==null?void 0:h.transaction,S=await p.signTransaction({...C,chainId:A},{serializer:F});return await z0(u,Lg,"sendRawTransaction")({serializedTransaction:S})}const y=(m=(b=(g=u.chain)==null?void 0:g.formatters)==null?void 0:b.transactionRequest)==null?void 0:m.format,v=(y||as)({...Vd(E,{format:y}),accessList:r,data:i,from:p.address,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:d});return await u.request({method:"eth_sendTransaction",params:[v]})}catch(A){throw BX(A,{...e,account:p,chain:e.chain||void 0})}}async function vO(u,{abi:e,address:t,args:n,dataSuffix:r,functionName:i,...a}){const o=pi({abi:e,args:n,functionName:i});return await z0(u,$g,"sendTransaction")({data:`${o}${r?r.replace("0x",""):""}`,to:t,...a})}function FX({abi:u,address:e,publicClient:t,walletClient:n}){const r=t!=null,i=n!=null,a={};let o=!1,s=!1,f=!1;for(const l of u)if(l.type==="function"?l.stateMutability==="view"||l.stateMutability==="pure"?o=!0:s=!0:l.type==="event"&&(f=!0),o&&s&&f)break;return r&&(o&&(a.read=new Proxy({},{get(l,c){return(...d)=>{const{args:E,options:p}=R6(d);return z0(t,ri,"readContract")({abi:u,address:e,functionName:c,args:E,...p})}}})),s&&(a.simulate=new Proxy({},{get(l,c){return(...d)=>{const{args:E,options:p}=R6(d);return z0(t,AO,"simulateContract")({abi:u,address:e,functionName:c,args:E,...p})}}})),f&&(a.createEventFilter=new Proxy({},{get(l,c){return(...d)=>{const E=u.find(g=>g.type==="event"&&g.name===c),{args:p,options:h}=S8(d,E);return z0(t,Dg,"createContractEventFilter")({abi:u,address:e,eventName:c,args:p,...h})}}}),a.getEvents=new Proxy({},{get(l,c){return(...d)=>{const E=u.find(g=>g.type==="event"&&g.name===c),{args:p,options:h}=S8(d,E);return z0(t,Mg,"getContractEvents")({abi:u,address:e,eventName:c,args:p,...h})}}}),a.watchEvent=new Proxy({},{get(l,c){return(...d)=>{const E=u.find(g=>g.type==="event"&&g.name===c),{args:p,options:h}=S8(d,E);return z0(t,yO,"watchContractEvent")({abi:u,address:e,eventName:c,args:p,...h})}}}))),i&&s&&(a.write=new Proxy({},{get(l,c){return(...d)=>{const{args:E,options:p}=R6(d);return z0(n,vO,"writeContract")({abi:u,address:e,functionName:c,args:E,...p})}}})),(r||i)&&s&&(a.estimateGas=new Proxy({},{get(l,c){return(...d)=>{const{args:E,options:p}=R6(d);return z0(t??n,mO,"estimateContractGas")({abi:u,address:e,functionName:c,args:E,...p,account:p.account??n.account})}}})),a.address=e,a.abi=u,a}function R6(u){const e=u.length&&Array.isArray(u[0]),t=e?u[0]:[],n=(e?u[1]:u[0])??{};return{args:t,options:n}}function S8(u,e){let t=!1;Array.isArray(u[0])?t=!0:u.length===1?t=e.inputs.some(i=>i.indexed):u.length===2&&(t=!0);const n=t?u[0]:void 0,r=(t?u[1]:u[0])??{};return{args:n,options:r}}async function DX(u,{chain:e}){const{id:t,name:n,nativeCurrency:r,rpcUrls:i,blockExplorers:a}=e;await u.request({method:"wallet_addEthereumChain",params:[{chainId:O0(t),chainName:n,nativeCurrency:r,rpcUrls:i.default.http,blockExplorerUrls:a?Object.values(a).map(({url:o})=>o):void 0}]})}function wX(u){const e=Yu(`0x${u.substring(4)}`).substring(26);return wc(`0x${e}`)}const iC=256;let N6=iC,M6;function xX(u=11){if(!M6||N6+u>iC*2){M6="",N6=0;for(let e=0;e{const b=g(h);for(const A in E)delete b[A];const m={...h,...b};return Object.assign(m,{extend:p(m)})}}return Object.assign(E,{extend:p(E)})}function aC(u,{delay:e=100,retryCount:t=2,shouldRetry:n=()=>!0}={}){return new Promise((r,i)=>{const a=async({count:o=0}={})=>{const s=async({error:f})=>{const l=typeof e=="function"?e({count:o,error:f}):e;l&&await z2(l),a({count:o+1})};try{const f=await u();r(f)}catch(f){if(o"code"in u?u.code!==-1&&u.code!==-32004&&u.code!==-32005&&u.code!==-32042&&u.code!==-32603:u instanceof la&&u.status?u.status!==403&&u.status!==408&&u.status!==413&&u.status!==429&&u.status!==500&&u.status!==502&&u.status!==503&&u.status!==504:!1;function kX(u,{retryDelay:e=150,retryCount:t=3}={}){return async n=>aC(async()=>{try{return await u(n)}catch(r){const i=r;switch(i.code){case P4.code:throw new P4(i);case I4.code:throw new I4(i);case O4.code:throw new O4(i);case R4.code:throw new R4(i);case Vo.code:throw new Vo(i);case ga.code:throw new ga(i);case N4.code:throw new N4(i);case ni.code:throw new ni(i);case M4.code:throw new M4(i);case j4.code:throw new j4(i);case z4.code:throw new z4(i);case L4.code:throw new L4(i);case Xu.code:throw new Xu(i);case $4.code:throw new $4(i);case U4.code:throw new U4(i);case W4.code:throw new W4(i);case q4.code:throw new q4(i);case Wn.code:throw new Wn(i);case 5e3:throw new Xu(i);default:throw r instanceof l0?r:new cO(i)}}},{delay:({count:r,error:i})=>{var a;if(i&&i instanceof la){const o=(a=i==null?void 0:i.headers)==null?void 0:a.get("Retry-After");if(o!=null&&o.match(/\d/))return parseInt(o)*1e3}return~~(1<!BO(r)})}function Tc({key:u,name:e,request:t,retryCount:n=3,retryDelay:r=150,timeout:i,type:a},o){return{config:{key:u,name:e,request:t,retryCount:n,retryDelay:r,timeout:i,type:a},request:kX(t,{retryCount:n,retryDelay:r}),value:o}}function F3(u,e={}){const{key:t="custom",name:n="Custom Provider",retryDelay:r}=e;return({retryCount:i})=>Tc({key:t,name:n,request:u.request.bind(u),retryCount:e.retryCount??i,retryDelay:r,type:"custom"})}function oC(u,e={}){const{key:t="fallback",name:n="Fallback",rank:r=!1,retryCount:i,retryDelay:a}=e;return({chain:o,pollingInterval:s=4e3,timeout:f})=>{let l=u,c=()=>{};const d=Tc({key:t,name:n,async request({method:E,params:p}){const h=async(g=0)=>{const b=l[g]({chain:o,retryCount:0,timeout:f});try{const m=await b.request({method:E,params:p});return c({method:E,params:p,response:m,transport:b,status:"success"}),m}catch(m){if(c({error:m,method:E,params:p,transport:b,status:"error"}),BO(m)||g===l.length-1)throw m;return h(g+1)}};return h()},retryCount:i,retryDelay:a,type:"fallback"},{onResponse:E=>c=E,transports:l.map(E=>E({chain:o,retryCount:0}))});if(r){const E=typeof r=="object"?r:{};_X({chain:o,interval:E.interval??s,onTransports:p=>l=p,sampleCount:E.sampleCount,timeout:E.timeout,transports:l,weights:E.weights})}return d}}function _X({chain:u,interval:e=4e3,onTransports:t,sampleCount:n=10,timeout:r=1e3,transports:i,weights:a={}}){const{stability:o=.7,latency:s=.3}=a,f=[],l=async()=>{const c=await Promise.all(i.map(async p=>{const h=p({chain:u,retryCount:0,timeout:r}),g=Date.now();let b,m;try{await h.request({method:"net_listening"}),m=1}catch{m=0}finally{b=Date.now()}return{latency:b-g,success:m}}));f.push(c),f.length>n&&f.shift();const d=Math.max(...f.map(p=>Math.max(...p.map(({latency:h})=>h)))),E=i.map((p,h)=>{const g=f.map(B=>B[h].latency),m=1-g.reduce((B,v)=>B+v,0)/g.length/d,A=f.map(B=>B[h].success),y=A.reduce((B,v)=>B+v,0)/A.length;return y===0?[0,h]:[s*m+o*y,h]}).sort((p,h)=>h[0]-p[0]);t(E.map(([,p])=>i[p])),await z2(e),l()};l()}class Ug extends l0{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}function SX(){if(typeof WebSocket<"u")return WebSocket;if(typeof global.WebSocket<"u")return global.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const UF=SX();function FO(u,{errorInstance:e=new Error("timed out"),timeout:t,signal:n}){return new Promise((r,i)=>{(async()=>{let a;try{const o=new AbortController;t>0&&(a=setTimeout(()=>{n?o.abort():i(e)},t)),r(await u({signal:o==null?void 0:o.signal}))}catch(o){o.name==="AbortError"&&i(e),i(o)}finally{clearTimeout(a)}})()})}let sC=0;async function TX(u,{body:e,fetchOptions:t={},timeout:n=1e4}){var o;const{headers:r,method:i,signal:a}=t;try{const s=await FO(async({signal:l})=>await fetch(u,{...t,body:Array.isArray(e)?Ce(e.map(d=>({jsonrpc:"2.0",id:d.id??sC++,...d}))):Ce({jsonrpc:"2.0",id:e.id??sC++,...e}),headers:{...r,"Content-Type":"application/json"},method:i||"POST",signal:a||(n>0?l:void 0)}),{errorInstance:new M2({body:e,url:u}),timeout:n,signal:!0});let f;if((o=s.headers.get("Content-Type"))!=null&&o.startsWith("application/json")?f=await s.json():f=await s.text(),!s.ok)throw new la({body:e,details:Ce(f.error)||s.statusText,headers:s.headers,status:s.status,url:u});return f}catch(s){throw s instanceof la||s instanceof M2?s:new la({body:e,details:s.message,url:u})}}const T8=new Map;async function P8(u){let e=T8.get(u);if(e)return e;const{schedule:t}=jg({id:u,fn:async()=>{const i=new UF(u),a=new Map,o=new Map,s=({data:l})=>{const c=JSON.parse(l),d=c.method==="eth_subscription",E=d?c.params.subscription:c.id,p=d?o:a,h=p.get(E);h&&h({data:l}),d||p.delete(E)},f=()=>{T8.delete(u),i.removeEventListener("close",f),i.removeEventListener("message",s)};return i.addEventListener("close",f),i.addEventListener("message",s),i.readyState===UF.CONNECTING&&await new Promise((l,c)=>{i&&(i.onopen=l,i.onerror=c)}),e=Object.assign(i,{requests:a,subscriptions:o}),T8.set(u,e),[e]}}),[n,[r]]=await t();return r}function PX(u,{body:e,onResponse:t}){if(u.readyState===u.CLOSED||u.readyState===u.CLOSING)throw new lO({body:e,url:u.url,details:"Socket is closed."});const n=sC++,r=({data:i})=>{var o;const a=JSON.parse(i);typeof a.id=="number"&&n!==a.id||(t==null||t(a),e.method==="eth_subscribe"&&typeof a.result=="string"&&u.subscriptions.set(a.result,r),e.method==="eth_unsubscribe"&&u.subscriptions.delete((o=e.params)==null?void 0:o[0]))};return u.requests.set(n,r),u.send(JSON.stringify({jsonrpc:"2.0",...e,id:n})),u}async function IX(u,{body:e,timeout:t=1e4}){return FO(()=>new Promise(n=>_f.webSocket(u,{body:e,onResponse:n})),{errorInstance:new M2({body:e,url:u.url}),timeout:t})}const _f={http:TX,webSocket:PX,webSocketAsync:IX};function DO(u,e={}){const{batch:t,fetchOptions:n,key:r="http",name:i="HTTP JSON-RPC",retryDelay:a}=e;return({chain:o,retryCount:s,timeout:f})=>{const{batchSize:l=1e3,wait:c=0}=typeof t=="object"?t:{},d=e.retryCount??s,E=f??e.timeout??1e4,p=u||(o==null?void 0:o.rpcUrls.default.http[0]);if(!p)throw new Ug;return Tc({key:r,name:i,async request({method:h,params:g}){const b={method:h,params:g},{schedule:m}=jg({id:`${u}`,wait:c,shouldSplitBatch(v){return v.length>l},fn:v=>_f.http(p,{body:v,fetchOptions:n,timeout:E}),sort:(v,C)=>v.id-C.id}),A=async v=>t?m(v):[await _f.http(p,{body:v,fetchOptions:n,timeout:E})],[{error:y,result:B}]=await A(b);if(y)throw new Gd({body:b,error:y,url:p});return B},retryCount:d,retryDelay:a,timeout:E,type:"http"},{fetchOptions:n,url:u})}}function Wg(u,e){var n,r,i;if(!(u instanceof l0))return!1;const t=u.walk(a=>a instanceof N2);return t instanceof N2?!!(((n=t.data)==null?void 0:n.errorName)==="ResolverNotFound"||((r=t.data)==null?void 0:r.errorName)==="ResolverWildcardNotSupported"||(i=t.reason)!=null&&i.includes("Wildcard on non-extended resolvers is not supported")||e==="reverse"&&t.reason===eO[50]):!1}function wO(u){if(u.length!==66||u.indexOf("[")!==0||u.indexOf("]")!==65)return null;const e=`0x${u.slice(1,65)}`;return uu(e)?e:null}function Vl(u){let e=new Uint8Array(32).fill(0);if(!u)return At(e);const t=u.split(".");for(let n=t.length-1;n>=0;n-=1){const r=wO(t[n]),i=r?Ge(r):Yu(br(t[n]),"bytes");e=Yu(Cn([e,i]),"bytes")}return At(e)}function OX(u){return`[${u.slice(2)}]`}function xO(u){const e=new Uint8Array(32).fill(0);return u?wO(u)||Yu(br(u)):At(e)}function Xd(u){const e=u.replace(/^\.|\.$/gm,"");if(e.length===0)return new Uint8Array(1);const t=new Uint8Array(br(e).byteLength+2);let n=0;const r=e.split(".");for(let i=0;i255&&(a=br(OX(xO(r[i])))),t[n]=a.length,t.set(a,n+1),n+=a.length+1}return t.byteLength!==n+1?t.slice(0,n+1):t}async function RX(u,{blockNumber:e,blockTag:t,coinType:n,name:r,universalResolverAddress:i}){let a=i;if(!a){if(!u.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=cs({blockNumber:e,chain:u.chain,contract:"ensUniversalResolver"})}try{const o=pi({abi:LF,functionName:"addr",...n!=null?{args:[Vl(r),BigInt(n)]}:{args:[Vl(r)]}}),s=await z0(u,ri,"readContract")({address:a,abi:gO,functionName:"resolve",args:[tu(Xd(r)),o],blockNumber:e,blockTag:t});if(s[0]==="0x")return null;const f=ls({abi:LF,args:n!=null?[Vl(r),BigInt(n)]:void 0,functionName:"addr",data:s[0]});return f==="0x"||Ze(f)==="0x00"?null:f}catch(o){if(Wg(o,"resolve"))return null;throw o}}class NX extends l0{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}class zs extends l0{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}class uE extends l0{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}class kO extends l0{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}const MX=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,jX=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?[\w\-.]+))?(?\/.*)?$/,zX=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,LX=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function $X(u){try{const e=await fetch(u,{method:"HEAD"});if(e.status===200){const t=e.headers.get("content-type");return t==null?void 0:t.startsWith("image/")}return!1}catch(e){return typeof e=="object"&&typeof e.response<"u"||!globalThis.hasOwnProperty("Image")?!1:new Promise(t=>{const n=new Image;n.onload=()=>{t(!0)},n.onerror=()=>{t(!1)},n.src=u})}}function WF(u,e){return u?u.endsWith("/")?u.slice(0,-1):u:e}function _O({uri:u,gatewayUrls:e}){const t=zX.test(u);if(t)return{uri:u,isOnChain:!0,isEncoded:t};const n=WF(e==null?void 0:e.ipfs,"https://ipfs.io"),r=WF(e==null?void 0:e.arweave,"https://arweave.net"),i=u.match(MX),{protocol:a,subpath:o,target:s,subtarget:f=""}=(i==null?void 0:i.groups)||{},l=a==="ipns:/"||o==="ipns/",c=a==="ipfs:/"||o==="ipfs/"||jX.test(u);if(u.startsWith("http")&&!l&&!c){let E=u;return e!=null&&e.arweave&&(E=u.replace(/https:\/\/arweave.net/g,e==null?void 0:e.arweave)),{uri:E,isOnChain:!1,isEncoded:!1}}if((l||c)&&s)return{uri:`${n}/${l?"ipns":"ipfs"}/${s}${f}`,isOnChain:!1,isEncoded:!1};if(a==="ar:/"&&s)return{uri:`${r}/${s}${f||""}`,isOnChain:!1,isEncoded:!1};let d=u.replace(LX,"");if(d.startsWith("r.json());return await qg({gatewayUrls:u,uri:SO(t)})}catch{throw new uE({uri:e})}}async function qg({gatewayUrls:u,uri:e}){const{uri:t,isOnChain:n}=_O({uri:e,gatewayUrls:u});if(n||await $X(t))return t;throw new uE({uri:e})}function WX(u){let e=u;e.startsWith("did:nft:")&&(e=e.replace("did:nft:","").replace(/_/g,"/"));const[t,n,r]=e.split("/"),[i,a]=t.split(":"),[o,s]=n.split(":");if(!i||i.toLowerCase()!=="eip155")throw new zs({reason:"Only EIP-155 supported"});if(!a)throw new zs({reason:"Chain ID not found"});if(!s)throw new zs({reason:"Contract address not found"});if(!r)throw new zs({reason:"Token ID not found"});if(!o)throw new zs({reason:"ERC namespace not found"});return{chainID:parseInt(a),namespace:o.toLowerCase(),contractAddress:s,tokenID:r}}async function qX(u,{nft:e}){if(e.namespace==="erc721")return ri(u,{address:e.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(e.tokenID)]});if(e.namespace==="erc1155")return ri(u,{address:e.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(e.tokenID)]});throw new kO({namespace:e.namespace})}async function HX(u,{gatewayUrls:e,record:t}){return/eip155:/i.test(t)?GX(u,{gatewayUrls:e,record:t}):qg({uri:t,gatewayUrls:e})}async function GX(u,{gatewayUrls:e,record:t}){const n=WX(t),r=await qX(u,{nft:n}),{uri:i,isOnChain:a,isEncoded:o}=_O({uri:r,gatewayUrls:e});if(a&&(i.includes("data:application/json;base64,")||i.startsWith("{"))){const f=o?atob(i.replace("data:application/json;base64,","")):i,l=JSON.parse(f);return qg({uri:SO(l),gatewayUrls:e})}let s=n.tokenID;return n.namespace==="erc1155"&&(s=s.replace("0x","").padStart(64,"0")),UX({gatewayUrls:e,uri:i.replace(/(?:0x)?{id}/,s)})}async function TO(u,{blockNumber:e,blockTag:t,name:n,key:r,universalResolverAddress:i}){let a=i;if(!a){if(!u.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=cs({blockNumber:e,chain:u.chain,contract:"ensUniversalResolver"})}try{const o=await z0(u,ri,"readContract")({address:a,abi:gO,functionName:"resolve",args:[tu(Xd(n)),pi({abi:zF,functionName:"text",args:[Vl(n),r]})],blockNumber:e,blockTag:t});if(o[0]==="0x")return null;const s=ls({abi:zF,functionName:"text",data:o[0]});return s===""?null:s}catch(o){if(Wg(o,"resolve"))return null;throw o}}async function VX(u,{blockNumber:e,blockTag:t,gatewayUrls:n,name:r,universalResolverAddress:i}){const a=await z0(u,TO,"getEnsText")({blockNumber:e,blockTag:t,key:"avatar",name:r,universalResolverAddress:i});if(!a)return null;try{return await HX(u,{record:a,gatewayUrls:n})}catch{return null}}async function KX(u,{address:e,blockNumber:t,blockTag:n,universalResolverAddress:r}){let i=r;if(!i){if(!u.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=cs({blockNumber:t,chain:u.chain,contract:"ensUniversalResolver"})}const a=`${e.toLowerCase().substring(2)}.addr.reverse`;try{return(await z0(u,ri,"readContract")({address:i,abi:lX,functionName:"reverse",args:[tu(Xd(a))],blockNumber:t,blockTag:n}))[0]}catch(o){if(Wg(o,"reverse"))return null;throw o}}async function QX(u,{blockNumber:e,blockTag:t,name:n,universalResolverAddress:r}){let i=r;if(!i){if(!u.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=cs({blockNumber:e,chain:u.chain,contract:"ensUniversalResolver"})}const[a]=await z0(u,ri,"readContract")({address:i,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[tu(Xd(n))],blockNumber:e,blockTag:t});return a}async function JX(u){const e=$d(u,{method:"eth_newBlockFilter"}),t=await u.request({method:"eth_newBlockFilter"});return{id:t,request:e(t),type:"block"}}async function PO(u,{address:e,args:t,event:n,events:r,fromBlock:i,strict:a,toBlock:o}={}){const s=r??(n?[n]:void 0),f=$d(u,{method:"eth_newFilter"});let l=[];s&&(l=[s.flatMap(d=>g3({abi:[d],eventName:d.name,args:t}))],n&&(l=l[0]));const c=await u.request({method:"eth_newFilter",params:[{address:e,fromBlock:typeof i=="bigint"?O0(i):i,toBlock:typeof o=="bigint"?O0(o):o,...l.length?{topics:l}:{}}]});return{abi:s,args:t,eventName:n?n.name:void 0,fromBlock:i,id:c,request:f(c),strict:a,toBlock:o,type:"event"}}async function IO(u){const e=$d(u,{method:"eth_newPendingTransactionFilter"}),t=await u.request({method:"eth_newPendingTransactionFilter"});return{id:t,request:e(t),type:"transaction"}}async function ZX(u,{address:e,blockNumber:t,blockTag:n="latest"}){const r=t?O0(t):void 0,i=await u.request({method:"eth_getBalance",params:[e,r||n]});return BigInt(i)}async function YX(u,{blockHash:e,blockNumber:t,blockTag:n="latest"}={}){const r=t!==void 0?O0(t):void 0;let i;return e?i=await u.request({method:"eth_getBlockTransactionCountByHash",params:[e]}):i=await u.request({method:"eth_getBlockTransactionCountByNumber",params:[r||n]}),gu(i)}async function XX(u,{address:e,blockNumber:t,blockTag:n="latest"}){const r=t!==void 0?O0(t):void 0,i=await u.request({method:"eth_getCode",params:[e,r||n]});if(i!=="0x")return i}function u00(u){var e;return{baseFeePerGas:u.baseFeePerGas.map(t=>BigInt(t)),gasUsedRatio:u.gasUsedRatio,oldestBlock:BigInt(u.oldestBlock),reward:(e=u.reward)==null?void 0:e.map(t=>t.map(n=>BigInt(n)))}}async function e00(u,{blockCount:e,blockNumber:t,blockTag:n="latest",rewardPercentiles:r}){const i=t?O0(t):void 0,a=await u.request({method:"eth_feeHistory",params:[O0(e),i||n,r]});return u00(a)}async function t00(u,{filter:e}){const t=e.strict??!1;return(await e.request({method:"eth_getFilterLogs",params:[e.id]})).map(r=>{var i;try{const{eventName:a,args:o}="abi"in e&&e.abi?v3({abi:e.abi,data:r.data,topics:r.topics,strict:t}):{eventName:void 0,args:void 0};return hn(r,{args:o,eventName:a})}catch(a){let o,s;if(a instanceof ba||a instanceof os){if("strict"in e&&e.strict)return;o=a.abiItem.name,s=(i=a.abiItem.inputs)==null?void 0:i.some(f=>!("name"in f&&f.name))}return hn(r,{args:s?[]:{},eventName:o})}}).filter(Boolean)}class n00 extends l0{constructor({callbackSelector:e,cause:t,data:n,extraData:r,sender:i,urls:a}){var o;super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],(o=t.metaMessages)!=null&&o.length?"":[],"Offchain Gateway Call:",a&&[" Gateway URL(s):",...a.map(s=>` ${m3(s)}`)],` Sender: ${i}`,` Data: ${n}`,` Callback selector: ${e}`,` Extra data: ${r}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}class r00 extends l0{constructor({result:e,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${m3(t)}`,`Response: ${Ce(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}class i00 extends l0{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}function eE(u,e){if(!tt(u))throw new yt({address:u});if(!tt(e))throw new yt({address:e});return u.toLowerCase()===e.toLowerCase()}const OO="0x556f1830",Hg={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function RO(u,{blockNumber:e,blockTag:t,data:n,to:r}){const{args:i}=wg({data:n,abi:[Hg]}),[a,o,s,f,l]=i;try{if(!eE(r,a))throw new i00({sender:a,to:r});const c=await Gg({data:s,sender:a,urls:o}),{data:d}=await kc(u,{blockNumber:e,blockTag:t,data:Cn([f,Ei([{type:"bytes"},{type:"bytes"}],[c,l])]),to:r});return d}catch(c){throw new n00({callbackSelector:f,cause:c,data:n,extraData:l,sender:a,urls:o})}}async function Gg({data:u,sender:e,urls:t}){var r;let n=new Error("An unknown error occurred.");for(let i=0;it.id===e)}const s00=/^(.*)\[([0-9]*)\]$/,NO=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,MO=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function Vg({domain:u,message:e,primaryType:t,types:n}){const r=typeof u>"u"?{}:u,i={EIP712Domain:tE({domain:r}),...n};Qg({domain:r,message:e,primaryType:t,types:i});const a=["0x1901"];return r&&a.push(Kg({domain:r,types:i})),t!=="EIP712Domain"&&a.push(jO({data:e,primaryType:t,types:i})),Yu(Cn(a))}function Kg({domain:u,types:e}){return jO({data:u,primaryType:"EIP712Domain",types:e})}function jO({data:u,primaryType:e,types:t}){const n=zO({data:u,primaryType:e,types:t});return Yu(n)}function zO({data:u,primaryType:e,types:t}){const n=[{type:"bytes32"}],r=[f00({primaryType:e,types:t})];for(const i of t[e]){const[a,o]=$O({types:t,name:i.name,type:i.type,value:u[i.name]});n.push(a),r.push(o)}return Ei(n,r)}function f00({primaryType:u,types:e}){const t=tu(l00({primaryType:u,types:e}));return Yu(t)}function l00({primaryType:u,types:e}){let t="";const n=LO({primaryType:u,types:e});n.delete(u);const r=[u,...Array.from(n).sort()];for(const i of r)t+=`${i}(${e[i].map(({name:a,type:o})=>`${o} ${a}`).join(",")})`;return t}function LO({primaryType:u,types:e},t=new Set){const n=u.match(/^\w*/u),r=n==null?void 0:n[0];if(t.has(r)||e[r]===void 0)return t;t.add(r);for(const i of e[r])LO({primaryType:i.type,types:e},t);return t}function $O({types:u,name:e,type:t,value:n}){if(u[t]!==void 0)return[{type:"bytes32"},Yu(zO({data:n,primaryType:t,types:u}))];if(t==="bytes")return n=`0x${(n.length%2?"0":"")+n.slice(2)}`,[{type:"bytes32"},Yu(n)];if(t==="string")return[{type:"bytes32"},Yu(tu(n))];if(t.lastIndexOf("]")===t.length-1){const r=t.slice(0,t.lastIndexOf("[")),i=n.map(a=>$O({name:e,type:r,types:u,value:a}));return[{type:"bytes32"},Yu(Ei(i.map(([a])=>a),i.map(([,a])=>a)))]}return[{type:t},n]}function Qg({domain:u,message:e,primaryType:t,types:n}){const r=n,i=(a,o)=>{for(const s of a){const{name:f,type:l}=s,c=l,d=o[f],E=c.match(MO);if(E&&(typeof d=="number"||typeof d=="bigint")){const[g,b,m]=E;O0(d,{signed:b==="int",size:parseInt(m)/8})}if(c==="address"&&typeof d=="string"&&!tt(d))throw new yt({address:d});const p=c.match(NO);if(p){const[g,b]=p;if(b&&Ku(d)!==parseInt(b))throw new mg({expectedSize:parseInt(b),givenSize:Ku(d)})}const h=r[c];h&&i(h,d)}};if(r.EIP712Domain&&u&&i(r.EIP712Domain,u),t!=="EIP712Domain"){const a=r[t];i(a,e)}}function tE({domain:u}){return[typeof(u==null?void 0:u.name)=="string"&&{name:"name",type:"string"},(u==null?void 0:u.version)&&{name:"version",type:"string"},typeof(u==null?void 0:u.chainId)=="number"&&{name:"chainId",type:"uint256"},(u==null?void 0:u.verifyingContract)&&{name:"verifyingContract",type:"address"},(u==null?void 0:u.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function c00({domain:u}){return Kg({domain:u,types:{EIP712Domain:tE({domain:u})}})}function d00({abi:u,data:e}){const t=_u(e,0,4),n=u.find(r=>r.type==="function"&&t===b3(di(r)));if(!n)throw new NI(t,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:n.name,args:"inputs"in n&&n.inputs&&n.inputs.length>0?ss(n.inputs,_u(e,4)):void 0}}const I8="/docs/contract/encodeDeployData";function Jg({abi:u,args:e,bytecode:t}){if(!e||e.length===0)return t;const n=u.find(i=>"type"in i&&i.type==="constructor");if(!n)throw new Eg({docsPath:I8});if(!("inputs"in n))throw new x1({docsPath:I8});if(!n.inputs||n.inputs.length===0)throw new x1({docsPath:I8});const r=Ei(n.inputs,e);return ci([t,r])}const O8="/docs/contract/encodeErrorResult";function E00({abi:u,errorName:e,args:t}){let n=u[0];if(e&&(n=_a({abi:u,args:t,name:e}),!n))throw new eC(e,{docsPath:O8});if(n.type!=="error")throw new eC(void 0,{docsPath:O8});const r=di(n),i=b3(r);let a="0x";if(t&&t.length>0){if(!n.inputs)throw new II(n.name,{docsPath:O8});a=Ei(n.inputs,t)}return ci([i,a])}const p00="/docs/contract/encodeFunctionResult";function h00({abi:u,functionName:e,result:t}){let n=u[0];if(e&&(n=_a({abi:u,name:e}),!n))throw new Go(e,{docsPath:"/docs/contract/encodeFunctionResult"});if(n.type!=="function")throw new Go(void 0,{docsPath:"/docs/contract/encodeFunctionResult"});if(!n.outputs)throw new Cg(n.name,{docsPath:p00});let r=Array.isArray(t)?t:[t];return n.outputs.length===0&&!r[0]&&(r=[]),Ei(n.outputs,r)}function C00(u,e){if(u.length!==e.length)throw new pg({expectedLength:u.length,givenLength:e.length});const t=[];for(let n=0;n1||t[0]>1)throw new JP(t);return!!t[0]}function GO(u,e={}){typeof e.size<"u"&&gn(u,{size:e.size});const t=At(u,e);return gu(t)}function VO(u,e={}){let t=u;return typeof e.size<"u"&&(gn(t,{size:e.size}),t=Ze(t,{dir:"right"})),new TextDecoder().decode(t)}class qF extends l0{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NegativeOffsetError"})}}class g00 extends l0{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PositionOutOfBoundsError"})}}const A00={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,assertPosition(u){if(u<0||u>this.bytes.length-1)throw new g00({length:this.bytes.length,position:u})},decrementPosition(u){if(u<0)throw new qF({offset:u});const e=this.position-u;this.assertPosition(e),this.position=e},incrementPosition(u){if(u<0)throw new qF({offset:u});const e=this.position+u;this.assertPosition(e),this.position=e},inspectByte(u){const e=u??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(u,e){const t=e??this.position;return this.assertPosition(t+u-1),this.bytes.subarray(t,t+u)},inspectUint8(u){const e=u??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(u){const e=u??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(u){const e=u??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(u){const e=u??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(u){this.assertPosition(this.position),this.bytes[this.position]=u,this.position++},pushBytes(u){this.assertPosition(this.position+u.length-1),this.bytes.set(u,this.position),this.position+=u.length},pushUint8(u){this.assertPosition(this.position),this.bytes[this.position]=u,this.position++},pushUint16(u){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,u),this.position+=2},pushUint24(u){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,u>>8),this.dataView.setUint8(this.position+2,u&255),this.position+=3},pushUint32(u){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,u),this.position+=4},readByte(){const u=this.inspectByte();return this.position++,u},readBytes(u){const e=this.inspectBytes(u);return this.position+=u,e},readUint8(){const u=this.inspectUint8();return this.position+=1,u},readUint16(){const u=this.inspectUint16();return this.position+=2,u},readUint24(){const u=this.inspectUint24();return this.position+=3,u},readUint32(){const u=this.inspectUint32();return this.position+=4,u},setPosition(u){this.assertPosition(u),this.position=u}};function KO(u){const e=Object.create(A00);return e.bytes=u,e.dataView=new DataView(u.buffer,u.byteOffset,u.byteLength),e}function Zg(u,e="hex"){const t=(()=>{if(typeof u=="string"){if(u.length>3&&u.length%2!==0)throw new YP(u);return li(u)}return u})(),n=KO(t);return QO(n,e)}function QO(u,e="hex"){if(u.bytes.length===0)return e==="hex"?At(u.bytes):u.bytes;const t=u.readByte();if(t<128&&u.decrementPosition(1),t<192){const r=HF(u,t,128),i=u.readBytes(r);return e==="hex"?At(i):i}const n=HF(u,t,192);return y00(u,n,e)}function HF(u,e,t){if(t===128&&e<128)return 1;if(e<=t+55)return e-t;if(e===t+55+1)return u.readUint8();if(e===t+55+2)return u.readUint16();if(e===t+55+3)return u.readUint24();if(e===t+55+4)return u.readUint32();throw new l0("Invalid RLP prefix")}function y00(u,e,t){const n=u.position,r=[];for(;u.position-nPromise.resolve().then(()=>Fn0),void 0);return`0x${i.Signature.fromCompact(t.substring(2,130)).addRecoveryBit(r-27).recoverPublicKey(n.substring(2)).toHex(!1)}`}async function Yg({hash:u,signature:e}){return wX(await ZO({hash:u,signature:e}))}const YO=`Ethereum Signed Message: +`;function Xg(u,e){const t=typeof u=="string"?br(u):u.raw instanceof Uint8Array?u.raw:Ge(u.raw),n=br(`${YO}${t.length}`);return Yu(Cn([n,t]),e)}async function XO({message:u,signature:e}){return Yg({hash:Xg(u),signature:e})}async function uR({domain:u,message:e,primaryType:t,signature:n,types:r}){return Yg({hash:Vg({domain:u,message:e,primaryType:t,types:r}),signature:n})}async function v00({address:u,message:e,signature:t}){return eE(ju(u),await XO({message:e,signature:t}))}async function B00({address:u,domain:e,message:t,primaryType:n,signature:r,types:i}){return eE(ju(u),await uR({domain:e,message:t,primaryType:n,signature:r,types:i}))}function eR(u){const e=vg(u,0,1);if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&gu(e)>=192)return"legacy";throw new iO({serializedType:e})}function uA(u){const{chainId:e,maxPriorityFeePerGas:t,gasPrice:n,maxFeePerGas:r,to:i}=u;if(e<=0)throw new Od({chainId:e});if(i&&!tt(i))throw new yt({address:i});if(n)throw new l0("`gasPrice` is not a valid EIP-1559 Transaction attribute.");if(r&&r>2n**256n-1n)throw new ma({maxFeePerGas:r});if(t&&r&&t>r)throw new S4({maxFeePerGas:r,maxPriorityFeePerGas:t})}function eA(u){const{chainId:e,maxPriorityFeePerGas:t,gasPrice:n,maxFeePerGas:r,to:i}=u;if(e<=0)throw new Od({chainId:e});if(i&&!tt(i))throw new yt({address:i});if(t||r)throw new l0("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(n&&n>2n**256n-1n)throw new ma({maxFeePerGas:n})}function tA(u){const{chainId:e,maxPriorityFeePerGas:t,gasPrice:n,maxFeePerGas:r,to:i,accessList:a}=u;if(i&&!tt(i))throw new yt({address:i});if(typeof e<"u"&&e<=0)throw new Od({chainId:e});if(t||r)throw new l0("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(n&&n>2n**256n-1n)throw new ma({maxFeePerGas:n});if(a)throw new l0("`accessList` is not a valid Legacy Transaction attribute.")}function F00(u){const e=eR(u);return e==="eip1559"?D00(u):e==="eip2930"?w00(u):x00(u)}function D00(u){const e=tR(u),[t,n,r,i,a,o,s,f,l,c,d,E]=e;if(!(e.length===9||e.length===12))throw new Wd({attributes:{chainId:t,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:i,gas:a,to:o,value:s,data:f,accessList:l,...e.length>9?{v:c,r:d,s:E}:{}},serializedTransaction:u,type:"eip1559"});const p={chainId:gu(t),type:"eip1559"};return uu(o)&&o!=="0x"&&(p.to=o),uu(a)&&a!=="0x"&&(p.gas=Ru(a)),uu(f)&&f!=="0x"&&(p.data=f),uu(n)&&n!=="0x"&&(p.nonce=gu(n)),uu(s)&&s!=="0x"&&(p.value=Ru(s)),uu(i)&&i!=="0x"&&(p.maxFeePerGas=Ru(i)),uu(r)&&r!=="0x"&&(p.maxPriorityFeePerGas=Ru(r)),l.length!==0&&l!=="0x"&&(p.accessList=nR(l)),uA(p),{...e.length===12?rR(e):void 0,...p}}function w00(u){const e=tR(u),[t,n,r,i,a,o,s,f,l,c,d]=e;if(!(e.length===8||e.length===11))throw new Wd({attributes:{chainId:t,nonce:n,gasPrice:r,gas:i,to:a,value:o,data:s,accessList:f,...e.length>8?{v:l,r:c,s:d}:{}},serializedTransaction:u,type:"eip2930"});const E={chainId:gu(t),type:"eip2930"};return uu(a)&&a!=="0x"&&(E.to=a),uu(i)&&i!=="0x"&&(E.gas=Ru(i)),uu(s)&&s!=="0x"&&(E.data=s),uu(n)&&n!=="0x"&&(E.nonce=gu(n)),uu(o)&&o!=="0x"&&(E.value=Ru(o)),uu(r)&&r!=="0x"&&(E.gasPrice=Ru(r)),f.length!==0&&f!=="0x"&&(E.accessList=nR(f)),eA(E),{...e.length===11?rR(e):void 0,...E}}function x00(u){const e=Zg(u,"hex"),[t,n,r,i,a,o,s,f,l]=e;if(!(e.length===6||e.length===9))throw new Wd({attributes:{nonce:t,gasPrice:n,gas:r,to:i,value:a,data:o,...e.length>6?{v:s,r:f,s:l}:{}},serializedTransaction:u,type:"legacy"});const c={type:"legacy"};if(uu(i)&&i!=="0x"&&(c.to=i),uu(r)&&r!=="0x"&&(c.gas=Ru(r)),uu(o)&&o!=="0x"&&(c.data=o),uu(t)&&t!=="0x"&&(c.nonce=gu(t)),uu(a)&&a!=="0x"&&(c.value=Ru(a)),uu(n)&&n!=="0x"&&(c.gasPrice=Ru(n)),tA(c),e.length===6)return c;const d=uu(s)&&s!=="0x"?Ru(s):0n;if(l==="0x"&&f==="0x")return d>0&&(c.chainId=Number(d)),c;const E=d,p=Number((E-35n)/2n);if(p>0)c.chainId=p;else if(E!==27n&&E!==28n)throw new xg({v:E});return c.v=E,c.s=l,c.r=f,c}function tR(u){return Zg(`0x${u.slice(4)}`,"hex")}function nR(u){const e=[];for(let t=0;tJO(i)?i:Ze(i))})}return e}function rR(u){const e=u.slice(-3),t=e[0]==="0x"||Ru(e[0])===0n?27n:28n;return{r:$n(e[1],{size:32}),s:$n(e[2],{size:32}),v:t,yParity:t===27n?0:1}}function nA(u){if(!u||u.length===0)return[];const e=[];for(let t=0;t{if(t>0)return BigInt(t*2)+BigInt(35n+e.v-27n);if(e.v>=35n)return(e.v-35n)/2n>0?e.v:27n+(e.v===35n?0n:1n);const c=27n+(e.v===27n?0n:1n);if(e.v!==c)throw new xg({v:e.v});return c})();f=[...f,tu(l),e.r,e.s]}else t>0&&(f=[...f,tu(t),"0x","0x"]);return ds(f)}function rA(u,e){let[t,n="0"]=u.split(".");const r=t.startsWith("-");if(r&&(t=t.slice(1)),n=n.replace(/(0+)$/,""),e===0)Math.round(+`.${n}`)===1&&(t=`${BigInt(t)+1n}`),n="";else if(n.length>e){const[i,a,o]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],s=Math.round(+`${a}.${o}`);s>9?n=`${BigInt(i)+BigInt(1)}0`.padStart(i.length+1,"0"):n=`${i}${s}`,n.length>e&&(n=n.slice(1),t=`${BigInt(t)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${r?"-":""}${t}${n}`)}function P00(u,e="wei"){return rA(u,cg[e])}function I00(u,e="wei"){return rA(u,dg[e])}function O00(u){return u.map(e=>({...e,value:BigInt(e.value)}))}function R00(u){return{...u,balance:u.balance?BigInt(u.balance):void 0,nonce:u.nonce?gu(u.nonce):void 0,storageProof:u.storageProof?O00(u.storageProof):void 0}}async function N00(u,{address:e,blockNumber:t,blockTag:n,storageKeys:r}){const i=n??"latest",a=t!==void 0?O0(t):void 0,o=await u.request({method:"eth_getProof",params:[e,r,a||i]});return R00(o)}async function M00(u,{address:e,blockNumber:t,blockTag:n="latest",slot:r}){const i=t!==void 0?O0(t):void 0;return await u.request({method:"eth_getStorageAt",params:[e,r,i||n]})}async function iA(u,{blockHash:e,blockNumber:t,blockTag:n,hash:r,index:i}){var l,c,d;const a=n||"latest",o=t!==void 0?O0(t):void 0;let s=null;if(r?s=await u.request({method:"eth_getTransactionByHash",params:[r]}):e?s=await u.request({method:"eth_getTransactionByBlockHashAndIndex",params:[e,O0(i)]}):(o||a)&&(s=await u.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[o||a,O0(i)]})),!s)throw new kg({blockHash:e,blockNumber:t,blockTag:a,hash:r,index:i});return(((d=(c=(l=u.chain)==null?void 0:l.formatters)==null?void 0:c.transaction)==null?void 0:d.format)||Pd)(s)}async function j00(u,{hash:e,transactionReceipt:t}){const[n,r]=await Promise.all([z0(u,Sc,"getBlockNumber")({}),e?z0(u,iA,"getBlockNumber")({hash:e}):void 0]),i=(t==null?void 0:t.blockNumber)||(r==null?void 0:r.blockNumber);return i?n-i+1n:0n}async function cC(u,{hash:e}){var r,i,a;const t=await u.request({method:"eth_getTransactionReceipt",params:[e]});if(!t)throw new _g({hash:e});return(((a=(i=(r=u.chain)==null?void 0:r.formatters)==null?void 0:i.transactionReceipt)==null?void 0:a.format)||fg)(t)}async function z00(u,e){var h;const{allowFailure:t=!0,batchSize:n,blockNumber:r,blockTag:i,contracts:a,multicallAddress:o}=e,s=n??(typeof((h=u.batch)==null?void 0:h.multicall)=="object"&&u.batch.multicall.batchSize||1024);let f=o;if(!f){if(!u.chain)throw new Error("client chain not configured. multicallAddress is required.");f=cs({blockNumber:r,chain:u.chain,contract:"multicall3"})}const l=[[]];let c=0,d=0;for(let g=0;g0&&d>s&&l[c].length>0&&(c++,d=(B.length-2)/2,l[c]=[]),l[c]=[...l[c],{allowFailure:!0,callData:B,target:m}]}catch(B){const v=H4(B,{abi:b,address:m,args:A,docsPath:"/docs/contract/multicall",functionName:y});if(!t)throw v;l[c]=[...l[c],{allowFailure:!0,callData:"0x",target:m}]}}const E=await Promise.allSettled(l.map(g=>z0(u,ri,"readContract")({abi:j2,address:f,args:[g],blockNumber:r,blockTag:i,functionName:"aggregate3"}))),p=[];for(let g=0;gu instanceof Uint8Array,U00=Array.from({length:256},(u,e)=>e.toString(16).padStart(2,"0"));function G4(u){if(!rE(u))throw new Error("Uint8Array expected");let e="";for(let t=0;tn+r.length,0));let t=0;return u.forEach(n=>{if(!rE(n))throw new Error("Uint8Array expected");e.set(n,t),t+=n.length}),e}function oR(u,e){if(u.length!==e.length)return!1;for(let t=0;tiR;u>>=nE,e+=1);return e}function H00(u,e){return u>>BigInt(e)&nE}const G00=(u,e,t)=>u|(t?nE:iR)<($00<new Uint8Array(u),GF=u=>Uint8Array.from(u);function sR(u,e,t){if(typeof u!="number"||u<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof t!="function")throw new Error("hmacFn must be a function");let n=R8(u),r=R8(u),i=0;const a=()=>{n.fill(1),r.fill(0),i=0},o=(...c)=>t(r,n,...c),s=(c=R8())=>{r=o(GF([0]),c),n=o(),c.length!==0&&(r=o(GF([1]),c),n=o())},f=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let c=0;const d=[];for(;c{a(),s(c);let E;for(;!(E=d(f()));)s();return a(),E}}const V00={bigint:u=>typeof u=="bigint",function:u=>typeof u=="function",boolean:u=>typeof u=="boolean",string:u=>typeof u=="string",stringOrUint8Array:u=>typeof u=="string"||u instanceof Uint8Array,isSafeInteger:u=>Number.isSafeInteger(u),array:u=>Array.isArray(u),field:(u,e)=>e.Fp.isValid(u),hash:u=>typeof u=="function"&&Number.isSafeInteger(u.outputLen)};function D3(u,e,t={}){const n=(r,i,a)=>{const o=V00[i];if(typeof o!="function")throw new Error(`Invalid validator "${i}", expected function`);const s=u[r];if(!(a&&s===void 0)&&!o(s,u))throw new Error(`Invalid param ${String(r)}=${s} (${typeof s}), expected ${i}`)};for(const[r,i]of Object.entries(e))n(r,i,!1);for(const[r,i]of Object.entries(t))n(r,i,!0);return u}const K00=Object.freeze(Object.defineProperty({__proto__:null,bitGet:H00,bitLen:q00,bitMask:fA,bitSet:G00,bytesToHex:G4,bytesToNumberBE:Xe,bytesToNumberLE:oA,concatBytes:It,createHmacDrbg:sR,ensureBytes:Re,equalBytes:oR,hexToBytes:V4,hexToNumber:aA,numberToBytesBE:ya,numberToBytesLE:sA,numberToHexUnpadded:aR,numberToVarBytesBE:W00,utf8ToBytes:iE,validateObject:D3},Symbol.toStringTag,{value:"Module"}));function Q00(u,e){const t=uu(u)?Ge(u):u,n=uu(e)?Ge(e):e;return oR(t,n)}async function fR(u,{address:e,hash:t,signature:n,...r}){const i=uu(n)?n:tu(n);try{const{data:a}=await z0(u,kc,"call")({data:Jg({abi:cX,args:[e,t,i],bytecode:L00}),...r});return Q00(a??"0x0","0x1")}catch(a){if(a instanceof Sg)return!1;throw a}}async function J00(u,{address:e,message:t,signature:n,...r}){const i=Xg(t);return fR(u,{address:e,hash:i,signature:n,...r})}async function Z00(u,{address:e,signature:t,message:n,primaryType:r,types:i,domain:a,...o}){const s=Vg({message:n,primaryType:r,types:i,domain:a});return fR(u,{address:e,hash:s,signature:t,...o})}function lR(u,{emitOnBegin:e=!1,emitMissed:t=!1,onBlockNumber:n,onError:r,poll:i,pollingInterval:a=u.pollingInterval}){const o=typeof i<"u"?i:u.transport.type!=="webSocket";let s;return o?(()=>{const c=Ce(["watchBlockNumber",u.uid,e,t,a]);return B3(c,{onBlockNumber:n,onError:r},d=>_c(async()=>{var E;try{const p=await z0(u,Sc,"getBlockNumber")({cacheTime:0});if(s){if(p===s)return;if(p-s>1&&t)for(let h=s+1n;hs)&&(d.onBlockNumber(p,s),s=p)}catch(p){(E=d.onError)==null||E.call(d,p)}},{emitOnBegin:e,interval:a}))})():(()=>{let c=!0,d=()=>c=!1;return(async()=>{try{const{unsubscribe:E}=await u.transport.subscribe({params:["newHeads"],onData(p){var g;if(!c)return;const h=Ru((g=p.result)==null?void 0:g.number);n(h,s),s=h},onError(p){r==null||r(p)}});d=E,c||d()}catch(E){r==null||r(E)}})(),d})()}async function Y00(u,{confirmations:e=1,hash:t,onReplaced:n,pollingInterval:r=u.pollingInterval,timeout:i}){const a=Ce(["waitForTransactionReceipt",u.uid,t]);let o,s,f,l=!1;return new Promise((c,d)=>{i&&setTimeout(()=>d(new sO({hash:t})),i);const E=B3(a,{onReplaced:n,resolve:c,reject:d},p=>{const h=z0(u,lR,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:r,async onBlockNumber(g){if(l)return;let b=g;const m=A=>{h(),A(),E()};try{if(f){if(e>1&&(!f.blockNumber||b-f.blockNumber+1np.resolve(f));return}if(o||(l=!0,await aC(async()=>{o=await z0(u,iA,"getTransaction")({hash:t}),o.blockNumber&&(b=o.blockNumber)},{delay:({count:A})=>~~(1<1&&(!f.blockNumber||b-f.blockNumber+1np.resolve(f))}catch(A){if(o&&(A instanceof kg||A instanceof _g))try{s=o,l=!0;const y=await aC(()=>z0(u,Aa,"getBlock")({blockNumber:b,includeTransactions:!0}),{delay:({count:C})=>~~(1<C instanceof Pg});l=!1;const B=y.transactions.find(({from:C,nonce:F})=>C===s.from&&F===s.nonce);if(!B||(f=await z0(u,cC,"getTransactionReceipt")({hash:B.hash}),e>1&&(!f.blockNumber||b-f.blockNumber+1n{var C;(C=p.onReplaced)==null||C.call(p,{reason:v,replacedTransaction:s,transaction:B,transactionReceipt:f}),p.resolve(f)})}catch(y){m(()=>p.reject(y))}else m(()=>p.reject(A))}}})})})}function X00(u,{blockTag:e="latest",emitMissed:t=!1,emitOnBegin:n=!1,onBlock:r,onError:i,includeTransactions:a,poll:o,pollingInterval:s=u.pollingInterval}){const f=typeof o<"u"?o:u.transport.type!=="webSocket",l=a??!1;let c;return f?(()=>{const p=Ce(["watchBlocks",u.uid,t,n,l,s]);return B3(p,{onBlock:r,onError:i},h=>_c(async()=>{var g;try{const b=await z0(u,Aa,"getBlock")({blockTag:e,includeTransactions:l});if(b.number&&(c!=null&&c.number)){if(b.number===c.number)return;if(b.number-c.number>1&&t)for(let m=(c==null?void 0:c.number)+1n;mc.number)&&(h.onBlock(b,c),c=b)}catch(b){(g=h.onError)==null||g.call(h,b)}},{emitOnBegin:n,interval:s}))})():(()=>{let p=!0,h=()=>p=!1;return(async()=>{try{const{unsubscribe:g}=await u.transport.subscribe({params:["newHeads"],onData(b){var y,B,v;if(!p)return;const A=(((v=(B=(y=u.chain)==null?void 0:y.formatters)==null?void 0:B.block)==null?void 0:v.format)||Id)(b.result);r(A,c),c=A},onError(b){i==null||i(b)}});h=g,p||h()}catch(g){i==null||i(g)}})(),h})()}function uu0(u,{address:e,args:t,batch:n=!0,event:r,events:i,onError:a,onLogs:o,poll:s,pollingInterval:f=u.pollingInterval,strict:l}){const c=typeof s<"u"?s:u.transport.type!=="webSocket",d=l??!1;return c?(()=>{const h=Ce(["watchEvent",e,t,n,u.uid,r,f]);return B3(h,{onLogs:o,onError:a},g=>{let b,m,A=!1;const y=_c(async()=>{var B;if(!A){try{m=await z0(u,PO,"createEventFilter")({address:e,args:t,event:r,events:i,strict:d})}catch{}A=!0;return}try{let v;if(m)v=await z0(u,Jd,"getFilterChanges")({filter:m});else{const C=await z0(u,Sc,"getBlockNumber")({});b&&b!==C?v=await z0(u,Ng,"getLogs")({address:e,args:t,event:r,events:i,fromBlock:b+1n,toBlock:C}):v=[],b=C}if(v.length===0)return;if(n)g.onLogs(v);else for(const C of v)g.onLogs([C])}catch(v){m&&v instanceof ga&&(A=!1),(B=g.onError)==null||B.call(g,v)}},{emitOnBegin:!0,interval:f});return async()=>{m&&await z0(u,Zd,"uninstallFilter")({filter:m}),y()}})})():(()=>{let h=!0,g=()=>h=!1;return(async()=>{try{const b=i??(r?[r]:void 0);let m=[];b&&(m=[b.flatMap(y=>g3({abi:[y],eventName:y.name,args:t}))],r&&(m=m[0]));const{unsubscribe:A}=await u.transport.subscribe({params:["logs",{address:e,topics:m}],onData(y){var v;if(!h)return;const B=y.result;try{const{eventName:C,args:F}=v3({abi:b,data:B.data,topics:B.topics,strict:d}),S=hn(B,{args:F,eventName:C});o([S])}catch(C){let F,S;if(C instanceof ba||C instanceof os){if(l)return;F=C.abiItem.name,S=(v=C.abiItem.inputs)==null?void 0:v.some($=>!("name"in $&&$.name))}const x=hn(B,{args:S?[]:{},eventName:F});o([x])}},onError(y){a==null||a(y)}});g=A,h||g()}catch(b){a==null||a(b)}})(),g})()}function eu0(u,{batch:e=!0,onError:t,onTransactions:n,poll:r,pollingInterval:i=u.pollingInterval}){return(typeof r<"u"?r:u.transport.type!=="webSocket")?(()=>{const f=Ce(["watchPendingTransactions",u.uid,e,i]);return B3(f,{onTransactions:n,onError:t},l=>{let c;const d=_c(async()=>{var E;try{if(!c)try{c=await z0(u,IO,"createPendingTransactionFilter")({});return}catch(h){throw d(),h}const p=await z0(u,Jd,"getFilterChanges")({filter:c});if(p.length===0)return;if(e)l.onTransactions(p);else for(const h of p)l.onTransactions([h])}catch(p){(E=l.onError)==null||E.call(l,p)}},{emitOnBegin:!0,interval:i});return async()=>{c&&await z0(u,Zd,"uninstallFilter")({filter:c}),d()}})})():(()=>{let f=!0,l=()=>f=!1;return(async()=>{try{const{unsubscribe:c}=await u.transport.subscribe({params:["newPendingTransactions"],onData(d){if(!f)return;const E=d.result;n([E])},onError(d){t==null||t(d)}});l=c,f||l()}catch(c){t==null||t(c)}})(),l})()}function cR(u){return{call:e=>kc(u,e),createBlockFilter:()=>JX(u),createContractEventFilter:e=>Dg(u,e),createEventFilter:e=>PO(u,e),createPendingTransactionFilter:()=>IO(u),estimateContractGas:e=>mO(u,e),estimateGas:e=>Rg(u,e),getBalance:e=>ZX(u,e),getBlock:e=>Aa(u,e),getBlockNumber:e=>Sc(u,e),getBlockTransactionCount:e=>YX(u,e),getBytecode:e=>XX(u,e),getChainId:()=>k1(u),getContractEvents:e=>Mg(u,e),getEnsAddress:e=>RX(u,e),getEnsAvatar:e=>VX(u,e),getEnsName:e=>KX(u,e),getEnsResolver:e=>QX(u,e),getEnsText:e=>TO(u,e),getFeeHistory:e=>e00(u,e),estimateFeesPerGas:e=>sX(u,e),getFilterChanges:e=>Jd(u,e),getFilterLogs:e=>t00(u,e),getGasPrice:()=>Ig(u),getLogs:e=>Ng(u,e),getProof:e=>N00(u,e),estimateMaxPriorityFeePerGas:e=>oX(u,e),getStorageAt:e=>M00(u,e),getTransaction:e=>iA(u,e),getTransactionConfirmations:e=>j00(u,e),getTransactionCount:e=>CO(u,e),getTransactionReceipt:e=>cC(u,e),multicall:e=>z00(u,e),prepareTransactionRequest:e=>Qd(u,e),readContract:e=>ri(u,e),sendRawTransaction:e=>Lg(u,e),simulateContract:e=>AO(u,e),verifyMessage:e=>J00(u,e),verifyTypedData:e=>Z00(u,e),uninstallFilter:e=>Zd(u,e),waitForTransactionReceipt:e=>Y00(u,e),watchBlocks:e=>X00(u,e),watchBlockNumber:e=>lR(u,e),watchContractEvent:e=>yO(u,e),watchEvent:e=>uu0(u,e),watchPendingTransactions:e=>eu0(u,e)}}function dC(u){const{key:e="public",name:t="Public Client"}=u;return Yd({...u,key:e,name:t,type:"publicClient"}).extend(cR)}async function tu0(u,{hash:e}){await u.request({method:`${u.mode}_dropTransaction`,params:[e]})}async function nu0(u){return u.request({method:`${u.mode}_dumpState`})}async function ru0(u){return u.mode==="ganache"?await u.request({method:"eth_mining"}):await u.request({method:`${u.mode}_getAutomine`})}async function iu0(u){return await u.request({method:"txpool_content"})}async function au0(u){const{pending:e,queued:t}=await u.request({method:"txpool_status"});return{pending:gu(e),queued:gu(t)}}async function ou0(u,{address:e}){await u.request({method:`${u.mode}_impersonateAccount`,params:[e]})}async function su0(u,{seconds:e}){return await u.request({method:"evm_increaseTime",params:[O0(e)]})}async function fu0(u){return await u.request({method:"txpool_inspect"})}async function lu0(u,{state:e}){await u.request({method:`${u.mode}_loadState`,params:[e]})}async function cu0(u,{blocks:e,interval:t}){u.mode==="ganache"?await u.request({method:"evm_mine",params:[{blocks:O0(e)}]}):await u.request({method:`${u.mode}_mine`,params:[O0(e),O0(t||0)]})}async function du0(u){await u.request({method:`${u.mode}_removeBlockTimestampInterval`})}async function Eu0(u,{blockNumber:e,jsonRpcUrl:t}={}){await u.request({method:`${u.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:t}}]})}async function pu0(u,{id:e}){await u.request({method:"evm_revert",params:[e]})}async function hu0(u,e){var b,m,A;const{accessList:t,data:n,from:r,gas:i,gasPrice:a,maxFeePerGas:o,maxPriorityFeePerGas:s,nonce:f,to:l,value:c,...d}=e,E=(A=(m=(b=u.chain)==null?void 0:b.formatters)==null?void 0:m.transactionRequest)==null?void 0:A.format,h=(E||as)({...Vd(d,{format:E}),accessList:t,data:n,from:r,gas:i,gasPrice:a,maxFeePerGas:o,maxPriorityFeePerGas:s,nonce:f,to:l,value:c});return await u.request({method:"eth_sendUnsignedTransaction",params:[h]})}async function Cu0(u,e){u.mode==="ganache"?e?await u.request({method:"miner_start"}):await u.request({method:"miner_stop"}):await u.request({method:"evm_setAutomine",params:[e]})}async function mu0(u,{address:e,value:t}){u.mode==="ganache"?await u.request({method:"evm_setAccountBalance",params:[e,O0(t)]}):await u.request({method:`${u.mode}_setBalance`,params:[e,O0(t)]})}async function bu0(u,{gasLimit:e}){await u.request({method:"evm_setBlockGasLimit",params:[O0(e)]})}async function gu0(u,{interval:e}){const t=u.mode==="hardhat"?e*1e3:e;await u.request({method:`${u.mode}_setBlockTimestampInterval`,params:[t]})}async function Au0(u,{address:e,bytecode:t}){await u.request({method:`${u.mode}_setCode`,params:[e,t]})}async function yu0(u,{address:e}){await u.request({method:`${u.mode}_setCoinbase`,params:[e]})}async function vu0(u,{interval:e}){const t=u.mode==="hardhat"?e*1e3:e;await u.request({method:"evm_setIntervalMining",params:[t]})}async function Bu0(u,e){await u.request({method:`${u.mode}_setLoggingEnabled`,params:[e]})}async function Fu0(u,{gasPrice:e}){await u.request({method:`${u.mode}_setMinGasPrice`,params:[O0(e)]})}async function Du0(u,{baseFeePerGas:e}){await u.request({method:`${u.mode}_setNextBlockBaseFeePerGas`,params:[O0(e)]})}async function wu0(u,{timestamp:e}){await u.request({method:"evm_setNextBlockTimestamp",params:[O0(e)]})}async function xu0(u,{address:e,nonce:t}){await u.request({method:`${u.mode}_setNonce`,params:[e,O0(t)]})}async function ku0(u,e){await u.request({method:`${u.mode}_setRpcUrl`,params:[e]})}async function _u0(u,{address:e,index:t,value:n}){await u.request({method:`${u.mode}_setStorageAt`,params:[e,typeof t=="number"?O0(t):t,n]})}async function Su0(u){return await u.request({method:"evm_snapshot"})}async function Tu0(u,{address:e}){await u.request({method:`${u.mode}_stopImpersonatingAccount`,params:[e]})}function dR({mode:u}){return e=>{const t=e.extend(()=>({mode:u}));return{dropTransaction:n=>tu0(t,n),dumpState:()=>nu0(t),getAutomine:()=>ru0(t),getTxpoolContent:()=>iu0(t),getTxpoolStatus:()=>au0(t),impersonateAccount:n=>ou0(t,n),increaseTime:n=>su0(t,n),inspectTxpool:()=>fu0(t),loadState:n=>lu0(t,n),mine:n=>cu0(t,n),removeBlockTimestampInterval:()=>du0(t),reset:n=>Eu0(t,n),revert:n=>pu0(t,n),sendUnsignedTransaction:n=>hu0(t,n),setAutomine:n=>Cu0(t,n),setBalance:n=>mu0(t,n),setBlockGasLimit:n=>bu0(t,n),setBlockTimestampInterval:n=>gu0(t,n),setCode:n=>Au0(t,n),setCoinbase:n=>yu0(t,n),setIntervalMining:n=>vu0(t,n),setLoggingEnabled:n=>Bu0(t,n),setMinGasPrice:n=>Fu0(t,n),setNextBlockBaseFeePerGas:n=>Du0(t,n),setNextBlockTimestamp:n=>wu0(t,n),setNonce:n=>xu0(t,n),setRpcUrl:n=>ku0(t,n),setStorageAt:n=>_u0(t,n),snapshot:()=>Su0(t),stopImpersonatingAccount:n=>Tu0(t,n)}}}function Pu0(u){const{key:e="test",name:t="Test Client",mode:n}=u;return Yd({...u,key:e,name:t,type:"testClient"}).extend(i=>({mode:n,...dR({mode:n})(i)}))}function Iu0(u,{abi:e,args:t,bytecode:n,...r}){const i=Jg({abi:e,args:t,bytecode:n});return $g(u,{...r,data:i})}async function Ou0(u){var t;return((t=u.account)==null?void 0:t.type)==="local"?[u.account.address]:(await u.request({method:"eth_accounts"})).map(n=>wc(n))}async function Ru0(u){return await u.request({method:"wallet_getPermissions"})}async function Nu0(u){return(await u.request({method:"eth_requestAccounts"})).map(t=>ju(t))}async function Mu0(u,e){return u.request({method:"wallet_requestPermissions",params:[e]})}async function ju0(u,{account:e=u.account,message:t}){if(!e)throw new A3({docsPath:"/docs/actions/wallet/signMessage"});const n=An(e);if(n.type==="local")return n.signMessage({message:t});const r=typeof t=="string"?yc(t):t.raw instanceof Uint8Array?tu(t.raw):t.raw;return u.request({method:"personal_sign",params:[r,n.address]})}async function zu0(u,e){var f,l,c,d;const{account:t=u.account,chain:n=u.chain,...r}=e;if(!t)throw new A3({docsPath:"/docs/actions/wallet/signTransaction"});const i=An(t);y3({account:i,...e});const a=await z0(u,k1,"getChainId")({});n!==null&&zg({currentChainId:a,chain:n});const o=(n==null?void 0:n.formatters)||((f=u.chain)==null?void 0:f.formatters),s=((l=o==null?void 0:o.transactionRequest)==null?void 0:l.format)||as;return i.type==="local"?i.signTransaction({...r,chainId:a},{serializer:(d=(c=u.chain)==null?void 0:c.serializers)==null?void 0:d.transaction}):await u.request({method:"eth_signTransaction",params:[{...s(r),chainId:O0(a),from:i.address}]})}async function Lu0(u,{account:e=u.account,domain:t,message:n,primaryType:r,types:i}){if(!e)throw new A3({docsPath:"/docs/actions/wallet/signTypedData"});const a=An(e),o={EIP712Domain:tE({domain:t}),...i};if(Qg({domain:t,message:n,primaryType:r,types:o}),a.type==="local")return a.signTypedData({domain:t,primaryType:r,types:o,message:n});const s=Ce({domain:t??{},primaryType:r,types:o,message:n},(f,l)=>uu(l)?l.toLowerCase():l);return u.request({method:"eth_signTypedData_v4",params:[a.address,s]})}async function $u0(u,{id:e}){await u.request({method:"wallet_switchEthereumChain",params:[{chainId:O0(e)}]})}async function Uu0(u,e){return await u.request({method:"wallet_watchAsset",params:e})}function ER(u){return{addChain:e=>DX(u,e),deployContract:e=>Iu0(u,e),getAddresses:()=>Ou0(u),getChainId:()=>k1(u),getPermissions:()=>Ru0(u),prepareTransactionRequest:e=>Qd(u,e),requestAddresses:()=>Nu0(u),requestPermissions:e=>Mu0(u,e),sendRawTransaction:e=>Lg(u,e),sendTransaction:e=>$g(u,e),signMessage:e=>ju0(u,e),signTransaction:e=>zu0(u,e),signTypedData:e=>Lu0(u,e),switchChain:e=>$u0(u,e),watchAsset:e=>Uu0(u,e),writeContract:e=>vO(u,e)}}function w3(u){const{key:e="wallet",name:t="Wallet Client",transport:n}=u;return Yd({...u,key:e,name:t,transport:i=>n({...i,retryCount:0}),type:"walletClient"}).extend(ER)}function pR(u,e={}){const{key:t="webSocket",name:n="WebSocket JSON-RPC",retryDelay:r}=e;return({chain:i,retryCount:a,timeout:o})=>{var c;const s=e.retryCount??a,f=o??e.timeout??1e4,l=u||((c=i==null?void 0:i.rpcUrls.default.webSocket)==null?void 0:c[0]);if(!l)throw new Ug;return Tc({key:t,name:n,async request({method:d,params:E}){const p={method:d,params:E},h=await P8(l),{error:g,result:b}=await _f.webSocketAsync(h,{body:p,timeout:f});if(g)throw new Gd({body:p,error:g,url:l});return b},retryCount:s,retryDelay:r,timeout:f,type:"webSocket"},{getSocket(){return P8(l)},async subscribe({params:d,onData:E,onError:p}){const h=await P8(l),{result:g}=await new Promise((b,m)=>_f.webSocket(h,{body:{method:"eth_subscribe",params:d},onResponse(A){if(A.error){m(A.error),p==null||p(A.error);return}if(typeof A.id=="number"){b(A);return}A.method==="eth_subscription"&&E(A.params)}}));return{subscriptionId:g,async unsubscribe(){return new Promise(b=>_f.webSocket(h,{body:{method:"eth_unsubscribe",params:[g]},onResponse:b}))}}}})}}const Wu0="0x0000000000000000000000000000000000000000",qu0=2n**(8n-1n)-1n,Hu0=2n**(16n-1n)-1n,Gu0=2n**(24n-1n)-1n,Vu0=2n**(32n-1n)-1n,Ku0=2n**(40n-1n)-1n,Qu0=2n**(48n-1n)-1n,Ju0=2n**(56n-1n)-1n,Zu0=2n**(64n-1n)-1n,Yu0=2n**(72n-1n)-1n,Xu0=2n**(80n-1n)-1n,ue0=2n**(88n-1n)-1n,ee0=2n**(96n-1n)-1n,te0=2n**(104n-1n)-1n,ne0=2n**(112n-1n)-1n,re0=2n**(120n-1n)-1n,ie0=2n**(128n-1n)-1n,ae0=2n**(136n-1n)-1n,oe0=2n**(144n-1n)-1n,se0=2n**(152n-1n)-1n,fe0=2n**(160n-1n)-1n,le0=2n**(168n-1n)-1n,ce0=2n**(176n-1n)-1n,de0=2n**(184n-1n)-1n,Ee0=2n**(192n-1n)-1n,pe0=2n**(200n-1n)-1n,he0=2n**(208n-1n)-1n,Ce0=2n**(216n-1n)-1n,me0=2n**(224n-1n)-1n,be0=2n**(232n-1n)-1n,ge0=2n**(240n-1n)-1n,Ae0=2n**(248n-1n)-1n,ye0=2n**(256n-1n)-1n,ve0=-(2n**(8n-1n)),Be0=-(2n**(16n-1n)),Fe0=-(2n**(24n-1n)),De0=-(2n**(32n-1n)),we0=-(2n**(40n-1n)),xe0=-(2n**(48n-1n)),ke0=-(2n**(56n-1n)),_e0=-(2n**(64n-1n)),Se0=-(2n**(72n-1n)),Te0=-(2n**(80n-1n)),Pe0=-(2n**(88n-1n)),Ie0=-(2n**(96n-1n)),Oe0=-(2n**(104n-1n)),Re0=-(2n**(112n-1n)),Ne0=-(2n**(120n-1n)),Me0=-(2n**(128n-1n)),je0=-(2n**(136n-1n)),ze0=-(2n**(144n-1n)),Le0=-(2n**(152n-1n)),$e0=-(2n**(160n-1n)),Ue0=-(2n**(168n-1n)),We0=-(2n**(176n-1n)),qe0=-(2n**(184n-1n)),He0=-(2n**(192n-1n)),Ge0=-(2n**(200n-1n)),Ve0=-(2n**(208n-1n)),Ke0=-(2n**(216n-1n)),Qe0=-(2n**(224n-1n)),Je0=-(2n**(232n-1n)),Ze0=-(2n**(240n-1n)),Ye0=-(2n**(248n-1n)),Xe0=-(2n**(256n-1n)),ut0=2n**8n-1n,et0=2n**16n-1n,tt0=2n**24n-1n,nt0=2n**32n-1n,rt0=2n**40n-1n,it0=2n**48n-1n,at0=2n**56n-1n,ot0=2n**64n-1n,st0=2n**72n-1n,ft0=2n**80n-1n,lt0=2n**88n-1n,ct0=2n**96n-1n,dt0=2n**104n-1n,Et0=2n**112n-1n,pt0=2n**120n-1n,ht0=2n**128n-1n,Ct0=2n**136n-1n,mt0=2n**144n-1n,bt0=2n**152n-1n,gt0=2n**160n-1n,At0=2n**168n-1n,yt0=2n**176n-1n,vt0=2n**184n-1n,Bt0=2n**192n-1n,Ft0=2n**200n-1n,Dt0=2n**208n-1n,wt0=2n**216n-1n,xt0=2n**224n-1n,kt0=2n**232n-1n,_t0=2n**240n-1n,St0=2n**248n-1n,Tt0=2n**256n-1n,Pt0="0x0000000000000000000000000000000000000000000000000000000000000000",N8="/docs/contract/decodeDeployData";function It0({abi:u,bytecode:e,data:t}){if(t===e)return{bytecode:e};const n=u.find(i=>"type"in i&&i.type==="constructor");if(!n)throw new Eg({docsPath:N8});if(!("inputs"in n))throw new x1({docsPath:N8});if(!n.inputs||n.inputs.length===0)throw new x1({docsPath:N8});return{args:ss(n.inputs,`0x${t.replace(e,"")}`),bytecode:e}}function Ot0({r:u,yParityAndS:e}){const t=li(e),n=t[0]&128?28n:27n,r=t;return n===28n&&(r[0]&=127),{r:u,s:At(r),v:n}}function Rt0(u,e,t,n){if(typeof u.setBigUint64=="function")return u.setBigUint64(e,t,n);const r=BigInt(32),i=BigInt(4294967295),a=Number(t>>r&i),o=Number(t&i),s=n?4:0,f=n?0:4;u.setUint32(e+s,a,n),u.setUint32(e+f,o,n)}class Nt0 extends Ag{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=w8(this.buffer)}update(e){T4(this);const{view:t,buffer:n,blockLen:r}=this;e=jd(e);const i=e.length;for(let a=0;ar-a&&(this.process(n,0),a=0);for(let c=a;cl.length)throw new Error("_sha2: outputLen bigger than state");for(let c=0;cu&e^~u&t,jt0=(u,e,t)=>u&e^u&t^e&t,zt0=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]),Ai=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),yi=new Uint32Array(64);class Lt0 extends Nt0{constructor(){super(64,32,8,!1),this.A=Ai[0]|0,this.B=Ai[1]|0,this.C=Ai[2]|0,this.D=Ai[3]|0,this.E=Ai[4]|0,this.F=Ai[5]|0,this.G=Ai[6]|0,this.H=Ai[7]|0}get(){const{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=e|0,this.B=t|0,this.C=n|0,this.D=r|0,this.E=i|0,this.F=a|0,this.G=o|0,this.H=s|0}process(e,t){for(let c=0;c<16;c++,t+=4)yi[c]=e.getUint32(t,!1);for(let c=16;c<64;c++){const d=yi[c-15],E=yi[c-2],p=Zn(d,7)^Zn(d,18)^d>>>3,h=Zn(E,17)^Zn(E,19)^E>>>10;yi[c]=h+yi[c-7]+p+yi[c-16]|0}let{A:n,B:r,C:i,D:a,E:o,F:s,G:f,H:l}=this;for(let c=0;c<64;c++){const d=Zn(o,6)^Zn(o,11)^Zn(o,25),E=l+d+Mt0(o,s,f)+zt0[c]+yi[c]|0,h=(Zn(n,2)^Zn(n,13)^Zn(n,22))+jt0(n,r,i)|0;l=f,f=s,s=o,o=a+E|0,a=i,i=r,r=n,n=E+h|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,a=a+this.D|0,o=o+this.E|0,s=s+this.F|0,f=f+this.G|0,l=l+this.H|0,this.set(n,r,i,a,o,s,f,l)}roundClean(){yi.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const L2=GI(()=>new Lt0);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const pe=BigInt(0),Vu=BigInt(1),Va=BigInt(2),$t0=BigInt(3),EC=BigInt(4),VF=BigInt(5),KF=BigInt(8);BigInt(9);BigInt(16);function Ee(u,e){const t=u%e;return t>=pe?t:e+t}function Ut0(u,e,t){if(t<=pe||e 0");if(t===Vu)return pe;let n=Vu;for(;e>pe;)e&Vu&&(n=n*u%t),u=u*u%t,e>>=Vu;return n}function Vt(u,e,t){let n=u;for(;e-- >pe;)n*=n,n%=t;return n}function pC(u,e){if(u===pe||e<=pe)throw new Error(`invert: expected positive integers, got n=${u} mod=${e}`);let t=Ee(u,e),n=e,r=pe,i=Vu;for(;t!==pe;){const o=n/t,s=n%t,f=r-i*o;n=t,t=s,r=i,i=f}if(n!==Vu)throw new Error("invert: does not exist");return Ee(r,e)}function Wt0(u){const e=(u-Vu)/Va;let t,n,r;for(t=u-Vu,n=0;t%Va===pe;t/=Va,n++);for(r=Va;r(n[r]="function",n),e);return D3(u,t)}function Gt0(u,e,t){if(t 0");if(t===pe)return u.ONE;if(t===Vu)return e;let n=u.ONE,r=e;for(;t>pe;)t&Vu&&(n=u.mul(n,r)),r=u.sqr(r),t>>=Vu;return n}function Vt0(u,e){const t=new Array(e.length),n=e.reduce((i,a,o)=>u.is0(a)?i:(t[o]=i,u.mul(i,a)),u.ONE),r=u.inv(n);return e.reduceRight((i,a,o)=>u.is0(a)?i:(t[o]=u.mul(i,t[o]),u.mul(i,a)),r),t}function CR(u,e){const t=e!==void 0?e:u.toString(2).length,n=Math.ceil(t/8);return{nBitLength:t,nByteLength:n}}function Kt0(u,e,t=!1,n={}){if(u<=pe)throw new Error(`Expected Field ORDER > 0, got ${u}`);const{nBitLength:r,nByteLength:i}=CR(u,e);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const a=qt0(u),o=Object.freeze({ORDER:u,BITS:r,BYTES:i,MASK:fA(r),ZERO:pe,ONE:Vu,create:s=>Ee(s,u),isValid:s=>{if(typeof s!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof s}`);return pe<=s&&ss===pe,isOdd:s=>(s&Vu)===Vu,neg:s=>Ee(-s,u),eql:(s,f)=>s===f,sqr:s=>Ee(s*s,u),add:(s,f)=>Ee(s+f,u),sub:(s,f)=>Ee(s-f,u),mul:(s,f)=>Ee(s*f,u),pow:(s,f)=>Gt0(o,s,f),div:(s,f)=>Ee(s*pC(f,u),u),sqrN:s=>s*s,addN:(s,f)=>s+f,subN:(s,f)=>s-f,mulN:(s,f)=>s*f,inv:s=>pC(s,u),sqrt:n.sqrt||(s=>a(o,s)),invertBatch:s=>Vt0(o,s),cmov:(s,f,l)=>l?f:s,toBytes:s=>t?sA(s,i):ya(s,i),fromBytes:s=>{if(s.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${s.length}`);return t?oA(s):Xe(s)}});return Object.freeze(o)}function mR(u){if(typeof u!="bigint")throw new Error("field order must be bigint");const e=u.toString(2).length;return Math.ceil(e/8)}function bR(u){const e=mR(u);return e+Math.ceil(e/2)}function Qt0(u,e,t=!1){const n=u.length,r=mR(e),i=bR(e);if(n<16||n1024)throw new Error(`expected ${i}-1024 bytes of input, got ${n}`);const a=t?Xe(u):oA(u),o=Ee(a,e-Vu)+Vu;return t?sA(o,r):ya(o,r)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Jt0=BigInt(0),M8=BigInt(1);function Zt0(u,e){const t=(r,i)=>{const a=i.negate();return r?a:i},n=r=>{const i=Math.ceil(e/r)+1,a=2**(r-1);return{windows:i,windowSize:a}};return{constTimeNegate:t,unsafeLadder(r,i){let a=u.ZERO,o=r;for(;i>Jt0;)i&M8&&(a=a.add(o)),o=o.double(),i>>=M8;return a},precomputeWindow(r,i){const{windows:a,windowSize:o}=n(i),s=[];let f=r,l=f;for(let c=0;c>=E,g>s&&(g-=d,a+=M8);const b=h,m=h+Math.abs(g)-1,A=p%2!==0,y=g<0;g===0?l=l.add(t(A,i[b])):f=f.add(t(y,i[m]))}return{p:f,f:l}},wNAFCached(r,i,a,o){const s=r._WINDOW_SIZE||1;let f=i.get(r);return f||(f=this.precomputeWindow(r,s),s!==1&&i.set(r,o(f))),this.wNAF(s,f,a)}}}function gR(u){return hR(u.Fp),D3(u,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...CR(u.n,u.nBitLength),...u,p:u.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Yt0(u){const e=gR(u);D3(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:t,Fp:n,a:r}=e;if(t){if(!n.eql(r,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof t!="object"||typeof t.beta!="bigint"||typeof t.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:Xt0,hexToBytes:un0}=K00,to={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(u){const{Err:e}=to;if(u.length<2||u[0]!==2)throw new e("Invalid signature integer tag");const t=u[1],n=u.subarray(2,t+2);if(!t||n.length!==t)throw new e("Invalid signature integer: wrong length");if(n[0]&128)throw new e("Invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new e("Invalid signature integer: unnecessary leading zero");return{d:Xt0(n),l:u.subarray(t+2)}},toSig(u){const{Err:e}=to,t=typeof u=="string"?un0(u):u;if(!(t instanceof Uint8Array))throw new Error("ui8a expected");let n=t.length;if(n<2||t[0]!=48)throw new e("Invalid signature tag");if(t[1]!==n-2)throw new e("Invalid signature: incorrect length");const{d:r,l:i}=to._parseInt(t.subarray(2)),{d:a,l:o}=to._parseInt(i);if(o.length)throw new e("Invalid signature: left bytes after parsing");return{r,s:a}},hexFromSig(u){const e=f=>Number.parseInt(f[0],16)&8?"00"+f:f,t=f=>{const l=f.toString(16);return l.length&1?`0${l}`:l},n=e(t(u.s)),r=e(t(u.r)),i=n.length/2,a=r.length/2,o=t(i),s=t(a);return`30${t(a+i+4)}02${s}${r}02${o}${n}`}},Rn=BigInt(0),Uu=BigInt(1),vi=BigInt(2),$2=BigInt(3),QF=BigInt(4);function en0(u){const e=Yt0(u),{Fp:t}=e,n=e.toBytes||((p,h,g)=>{const b=h.toAffine();return It(Uint8Array.from([4]),t.toBytes(b.x),t.toBytes(b.y))}),r=e.fromBytes||(p=>{const h=p.subarray(1),g=t.fromBytes(h.subarray(0,t.BYTES)),b=t.fromBytes(h.subarray(t.BYTES,2*t.BYTES));return{x:g,y:b}});function i(p){const{a:h,b:g}=e,b=t.sqr(p),m=t.mul(b,p);return t.add(t.add(m,t.mul(p,h)),g)}if(!t.eql(t.sqr(e.Gy),i(e.Gx)))throw new Error("bad generator point: equation left != right");function a(p){return typeof p=="bigint"&&Rnt.eql(A,t.ZERO);return m(g)&&m(b)?c.ZERO:new c(g,b,t.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(h){const g=t.invertBatch(h.map(b=>b.pz));return h.map((b,m)=>b.toAffine(g[m])).map(c.fromAffine)}static fromHex(h){const g=c.fromAffine(r(Re("pointHex",h)));return g.assertValidity(),g}static fromPrivateKey(h){return c.BASE.multiply(s(h))}_setWindowSize(h){this._WINDOW_SIZE=h,f.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!t.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:h,y:g}=this.toAffine();if(!t.isValid(h)||!t.isValid(g))throw new Error("bad point: x or y not FE");const b=t.sqr(g),m=i(h);if(!t.eql(b,m))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:h}=this.toAffine();if(t.isOdd)return!t.isOdd(h);throw new Error("Field doesn't support isOdd")}equals(h){l(h);const{px:g,py:b,pz:m}=this,{px:A,py:y,pz:B}=h,v=t.eql(t.mul(g,B),t.mul(A,m)),C=t.eql(t.mul(b,B),t.mul(y,m));return v&&C}negate(){return new c(this.px,t.neg(this.py),this.pz)}double(){const{a:h,b:g}=e,b=t.mul(g,$2),{px:m,py:A,pz:y}=this;let B=t.ZERO,v=t.ZERO,C=t.ZERO,F=t.mul(m,m),S=t.mul(A,A),x=t.mul(y,y),$=t.mul(m,A);return $=t.add($,$),C=t.mul(m,y),C=t.add(C,C),B=t.mul(h,C),v=t.mul(b,x),v=t.add(B,v),B=t.sub(S,v),v=t.add(S,v),v=t.mul(B,v),B=t.mul($,B),C=t.mul(b,C),x=t.mul(h,x),$=t.sub(F,x),$=t.mul(h,$),$=t.add($,C),C=t.add(F,F),F=t.add(C,F),F=t.add(F,x),F=t.mul(F,$),v=t.add(v,F),x=t.mul(A,y),x=t.add(x,x),F=t.mul(x,$),B=t.sub(B,F),C=t.mul(x,S),C=t.add(C,C),C=t.add(C,C),new c(B,v,C)}add(h){l(h);const{px:g,py:b,pz:m}=this,{px:A,py:y,pz:B}=h;let v=t.ZERO,C=t.ZERO,F=t.ZERO;const S=e.a,x=t.mul(e.b,$2);let $=t.mul(g,A),X=t.mul(b,y),Q=t.mul(m,B),Z=t.add(g,b),I=t.add(A,y);Z=t.mul(Z,I),I=t.add($,X),Z=t.sub(Z,I),I=t.add(g,m);let O=t.add(A,B);return I=t.mul(I,O),O=t.add($,Q),I=t.sub(I,O),O=t.add(b,m),v=t.add(y,B),O=t.mul(O,v),v=t.add(X,Q),O=t.sub(O,v),F=t.mul(S,I),v=t.mul(x,Q),F=t.add(v,F),v=t.sub(X,F),F=t.add(X,F),C=t.mul(v,F),X=t.add($,$),X=t.add(X,$),Q=t.mul(S,Q),I=t.mul(x,I),X=t.add(X,Q),Q=t.sub($,Q),Q=t.mul(S,Q),I=t.add(I,Q),$=t.mul(X,I),C=t.add(C,$),$=t.mul(O,I),v=t.mul(Z,v),v=t.sub(v,$),$=t.mul(Z,X),F=t.mul(O,F),F=t.add(F,$),new c(v,C,F)}subtract(h){return this.add(h.negate())}is0(){return this.equals(c.ZERO)}wNAF(h){return E.wNAFCached(this,f,h,g=>{const b=t.invertBatch(g.map(m=>m.pz));return g.map((m,A)=>m.toAffine(b[A])).map(c.fromAffine)})}multiplyUnsafe(h){const g=c.ZERO;if(h===Rn)return g;if(o(h),h===Uu)return this;const{endo:b}=e;if(!b)return E.unsafeLadder(this,h);let{k1neg:m,k1:A,k2neg:y,k2:B}=b.splitScalar(h),v=g,C=g,F=this;for(;A>Rn||B>Rn;)A&Uu&&(v=v.add(F)),B&Uu&&(C=C.add(F)),F=F.double(),A>>=Uu,B>>=Uu;return m&&(v=v.negate()),y&&(C=C.negate()),C=new c(t.mul(C.px,b.beta),C.py,C.pz),v.add(C)}multiply(h){o(h);let g=h,b,m;const{endo:A}=e;if(A){const{k1neg:y,k1:B,k2neg:v,k2:C}=A.splitScalar(g);let{p:F,f:S}=this.wNAF(B),{p:x,f:$}=this.wNAF(C);F=E.constTimeNegate(y,F),x=E.constTimeNegate(v,x),x=new c(t.mul(x.px,A.beta),x.py,x.pz),b=F.add(x),m=S.add($)}else{const{p:y,f:B}=this.wNAF(g);b=y,m=B}return c.normalizeZ([b,m])[0]}multiplyAndAddUnsafe(h,g,b){const m=c.BASE,A=(B,v)=>v===Rn||v===Uu||!B.equals(m)?B.multiplyUnsafe(v):B.multiply(v),y=A(this,g).add(A(h,b));return y.is0()?void 0:y}toAffine(h){const{px:g,py:b,pz:m}=this,A=this.is0();h==null&&(h=A?t.ONE:t.inv(m));const y=t.mul(g,h),B=t.mul(b,h),v=t.mul(m,h);if(A)return{x:t.ZERO,y:t.ZERO};if(!t.eql(v,t.ONE))throw new Error("invZ was invalid");return{x:y,y:B}}isTorsionFree(){const{h,isTorsionFree:g}=e;if(h===Uu)return!0;if(g)return g(c,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h,clearCofactor:g}=e;return h===Uu?this:g?g(c,this):this.multiplyUnsafe(e.h)}toRawBytes(h=!0){return this.assertValidity(),n(c,this,h)}toHex(h=!0){return G4(this.toRawBytes(h))}}c.BASE=new c(e.Gx,e.Gy,t.ONE),c.ZERO=new c(t.ZERO,t.ONE,t.ZERO);const d=e.nBitLength,E=Zt0(c,e.endo?Math.ceil(d/2):d);return{CURVE:e,ProjectivePoint:c,normPrivateKeyToScalar:s,weierstrassEquation:i,isWithinCurveOrder:a}}function tn0(u){const e=gR(u);return D3(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function nn0(u){const e=tn0(u),{Fp:t,n}=e,r=t.BYTES+1,i=2*t.BYTES+1;function a(I){return RnG4(ya(I,e.nByteLength));function p(I){const O=n>>Uu;return I>O}function h(I){return p(I)?o(-I):I}const g=(I,O,W)=>Xe(I.slice(O,W));class b{constructor(O,W,L){this.r=O,this.s=W,this.recovery=L,this.assertValidity()}static fromCompact(O){const W=e.nByteLength;return O=Re("compactSignature",O,W*2),new b(g(O,0,W),g(O,W,2*W))}static fromDER(O){const{r:W,s:L}=to.toSig(Re("DER",O));return new b(W,L)}assertValidity(){if(!d(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!d(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(O){return new b(this.r,this.s,O)}recoverPublicKey(O){const{r:W,s:L,recovery:q}=this,U=C(Re("msgHash",O));if(q==null||![0,1,2,3].includes(q))throw new Error("recovery id invalid");const i0=q===2||q===3?W+e.n:W;if(i0>=t.ORDER)throw new Error("recovery id 2 or 3 invalid");const s0=q&1?"03":"02",o0=f.fromHex(s0+E(i0)),K=s(i0),b0=o(-U*K),A0=o(L*K),_0=f.BASE.multiplyAndAddUnsafe(o0,b0,A0);if(!_0)throw new Error("point at infinify");return _0.assertValidity(),_0}hasHighS(){return p(this.s)}normalizeS(){return this.hasHighS()?new b(this.r,o(-this.s),this.recovery):this}toDERRawBytes(){return V4(this.toDERHex())}toDERHex(){return to.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return V4(this.toCompactHex())}toCompactHex(){return E(this.r)+E(this.s)}}const m={isValidPrivateKey(I){try{return l(I),!0}catch{return!1}},normPrivateKeyToScalar:l,randomPrivateKey:()=>{const I=bR(e.n);return Qt0(e.randomBytes(I),e.n)},precompute(I=8,O=f.BASE){return O._setWindowSize(I),O.multiply(BigInt(3)),O}};function A(I,O=!0){return f.fromPrivateKey(I).toRawBytes(O)}function y(I){const O=I instanceof Uint8Array,W=typeof I=="string",L=(O||W)&&I.length;return O?L===r||L===i:W?L===2*r||L===2*i:I instanceof f}function B(I,O,W=!0){if(y(I))throw new Error("first arg must be private key");if(!y(O))throw new Error("second arg must be public key");return f.fromHex(O).multiply(l(I)).toRawBytes(W)}const v=e.bits2int||function(I){const O=Xe(I),W=I.length*8-e.nBitLength;return W>0?O>>BigInt(W):O},C=e.bits2int_modN||function(I){return o(v(I))},F=fA(e.nBitLength);function S(I){if(typeof I!="bigint")throw new Error("bigint expected");if(!(Rn<=I&&IB0 in W))throw new Error("sign() legacy options not supported");const{hash:L,randomBytes:q}=e;let{lowS:U,prehash:i0,extraEntropy:s0}=W;U==null&&(U=!0),I=Re("msgHash",I),i0&&(I=Re("prehashed msgHash",L(I)));const o0=C(I),K=l(O),b0=[S(K),S(o0)];if(s0!=null){const B0=s0===!0?q(t.BYTES):s0;b0.push(Re("extraEntropy",B0))}const A0=It(...b0),_0=o0;function w0(B0){const _=v(B0);if(!d(_))return;const T=s(_),P=f.BASE.multiply(_).toAffine(),j=o(P.x);if(j===Rn)return;const z=o(T*o(_0+j*K));if(z===Rn)return;let G=(P.x===j?0:2)|Number(P.y&Uu),t0=z;return U&&p(z)&&(t0=h(z),G^=1),new b(j,t0,G)}return{seed:A0,k2sig:w0}}const $={lowS:e.lowS,prehash:!1},X={lowS:e.lowS,prehash:!1};function Q(I,O,W=$){const{seed:L,k2sig:q}=x(I,O,W),U=e;return sR(U.hash.outputLen,U.nByteLength,U.hmac)(L,q)}f.BASE._setWindowSize(8);function Z(I,O,W,L=X){var P;const q=I;if(O=Re("msgHash",O),W=Re("publicKey",W),"strict"in L)throw new Error("options.strict was renamed to lowS");const{lowS:U,prehash:i0}=L;let s0,o0;try{if(typeof q=="string"||q instanceof Uint8Array)try{s0=b.fromDER(q)}catch(j){if(!(j instanceof to.Err))throw j;s0=b.fromCompact(q)}else if(typeof q=="object"&&typeof q.r=="bigint"&&typeof q.s=="bigint"){const{r:j,s:z}=q;s0=new b(j,z)}else throw new Error("PARSE");o0=f.fromHex(W)}catch(j){if(j.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(U&&s0.hasHighS())return!1;i0&&(O=e.hash(O));const{r:K,s:b0}=s0,A0=C(O),_0=s(b0),w0=o(A0*_0),B0=o(K*_0),_=(P=f.BASE.multiplyAndAddUnsafe(o0,w0,B0))==null?void 0:P.toAffine();return _?o(_.x)===K:!1}return{CURVE:e,getPublicKey:A,getSharedSecret:B,sign:Q,verify:Z,ProjectivePoint:f,Signature:b,utils:m}}function rn0(u,e){const t=u.ORDER;let n=Rn;for(let p=t-Uu;p%vi===Rn;p/=vi)n+=Uu;const r=n,i=vi<{let g=c,b=u.pow(h,f),m=u.sqr(b);m=u.mul(m,h);let A=u.mul(p,m);A=u.pow(A,s),A=u.mul(A,b),b=u.mul(A,h),m=u.mul(A,p);let y=u.mul(m,b);A=u.pow(y,l);let B=u.eql(A,u.ONE);b=u.mul(m,d),A=u.mul(y,g),m=u.cmov(b,m,B),y=u.cmov(A,y,B);for(let v=r;v>Uu;v--){let C=v-vi;C=vi<{let m=u.sqr(b);const A=u.mul(g,b);m=u.mul(m,A);let y=u.pow(m,p);y=u.mul(y,A);const B=u.mul(y,h),v=u.mul(u.sqr(y),b),C=u.eql(v,g);let F=u.cmov(B,y,C);return{isValid:C,value:F}}}return E}function in0(u,e){if(hR(u),!u.isValid(e.A)||!u.isValid(e.B)||!u.isValid(e.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const t=rn0(u,e.Z);if(!u.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let r,i,a,o,s,f,l,c;r=u.sqr(n),r=u.mul(r,e.Z),i=u.sqr(r),i=u.add(i,r),a=u.add(i,u.ONE),a=u.mul(a,e.B),o=u.cmov(e.Z,u.neg(i),!u.eql(i,u.ZERO)),o=u.mul(o,e.A),i=u.sqr(a),f=u.sqr(o),s=u.mul(f,e.A),i=u.add(i,s),i=u.mul(i,a),f=u.mul(f,o),s=u.mul(f,e.B),i=u.add(i,s),l=u.mul(r,a);const{isValid:d,value:E}=t(i,f);c=u.mul(r,n),c=u.mul(c,E),l=u.cmov(l,a,d),c=u.cmov(c,E,d);const p=u.isOdd(n)===u.isOdd(c);return c=u.cmov(u.neg(c),c,p),l=u.div(l,o),{x:l,y:c}}}function an0(u){if(u instanceof Uint8Array)return u;if(typeof u=="string")return iE(u);throw new Error("DST must be Uint8Array or string")}const on0=Xe;function Ti(u,e){if(u<0||u>=1<<8*e)throw new Error(`bad I2OSP call: value=${u} length=${e}`);const t=Array.from({length:e}).fill(0);for(let n=e-1;n>=0;n--)t[n]=u&255,u>>>=8;return new Uint8Array(t)}function sn0(u,e){const t=new Uint8Array(u.length);for(let n=0;n255&&(e=n(It(iE("H2C-OVERSIZE-DST-"),e)));const{outputLen:r,blockLen:i}=n,a=Math.ceil(t/r);if(a>255)throw new Error("Invalid xmd length");const o=It(e,Ti(e.length,1)),s=Ti(0,i),f=Ti(t,2),l=new Array(a),c=n(It(s,u,f,Ti(0,1),o));l[0]=n(It(c,Ti(1,1),o));for(let E=1;E<=a;E++){const p=[sn0(c,l[E-1]),Ti(E+1,1),o];l[E]=n(It(...p))}return It(...l).slice(0,t)}function ln0(u,e,t,n,r){if(_1(u),_1(e),lA(t),e.length>255){const i=Math.ceil(2*n/8);e=r.create({dkLen:i}).update(iE("H2C-OVERSIZE-DST-")).update(e).digest()}if(t>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return r.create({dkLen:t}).update(u).update(Ti(t,2)).update(e).update(Ti(e.length,1)).digest()}function JF(u,e,t){D3(t,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:n,k:r,m:i,hash:a,expand:o,DST:s}=t;_1(u),lA(e);const f=an0(s),l=n.toString(2).length,c=Math.ceil((l+r)/8),d=e*i*c;let E;if(o==="xmd")E=fn0(u,f,d,a);else if(o==="xof")E=ln0(u,f,d,r,a);else if(o==="_internal_pass")E=u;else throw new Error('expand must be "xmd" or "xof"');const p=new Array(e);for(let h=0;hArray.from(n).reverse());return(n,r)=>{const[i,a,o,s]=t.map(f=>f.reduce((l,c)=>u.add(u.mul(l,n),c)));return n=u.div(i,a),r=u.mul(r,u.div(o,s)),{x:n,y:r}}}function dn0(u,e,t){if(typeof e!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(n,r){const i=JF(n,2,{...t,DST:t.DST,...r}),a=u.fromAffine(e(i[0])),o=u.fromAffine(e(i[1])),s=a.add(o).clearCofactor();return s.assertValidity(),s},encodeToCurve(n,r){const i=JF(n,1,{...t,DST:t.encodeDST,...r}),a=u.fromAffine(e(i[0])).clearCofactor();return a.assertValidity(),a}}}let AR=class extends Ag{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,bY(e);const n=jd(t);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const r=this.blockLen,i=new Uint8Array(r);i.set(n.length>r?e.create().update(n).digest():n);for(let a=0;anew AR(u,e).update(t).digest();yR.create=(u,e)=>new AR(u,e);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function En0(u){return{hash:u,hmac:(e,...t)=>yR(u,e,kY(...t)),randomBytes:VI}}function pn0(u,e){const t=n=>nn0({...u,...En0(n)});return Object.freeze({...t(e),create:t})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const aE=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),U2=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),vR=BigInt(1),W2=BigInt(2),ZF=(u,e)=>(u+e/W2)/e;function BR(u){const e=aE,t=BigInt(3),n=BigInt(6),r=BigInt(11),i=BigInt(22),a=BigInt(23),o=BigInt(44),s=BigInt(88),f=u*u*u%e,l=f*f*u%e,c=Vt(l,t,e)*l%e,d=Vt(c,t,e)*l%e,E=Vt(d,W2,e)*f%e,p=Vt(E,r,e)*E%e,h=Vt(p,i,e)*p%e,g=Vt(h,o,e)*h%e,b=Vt(g,s,e)*g%e,m=Vt(b,o,e)*h%e,A=Vt(m,t,e)*l%e,y=Vt(A,a,e)*p%e,B=Vt(y,n,e)*f%e,v=Vt(B,W2,e);if(!va.eql(va.sqr(v),u))throw new Error("Cannot find square root");return v}const va=Kt0(aE,void 0,void 0,{sqrt:BR}),Ne=pn0({a:BigInt(0),b:BigInt(7),Fp:va,n:U2,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:u=>{const e=U2,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-vR*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),r=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=t,a=BigInt("0x100000000000000000000000000000000"),o=ZF(i*u,e),s=ZF(-n*u,e);let f=Ee(u-o*t-s*r,e),l=Ee(-o*n-s*i,e);const c=f>a,d=l>a;if(c&&(f=e-f),d&&(l=e-l),f>a||l>a)throw new Error("splitScalar: Endomorphism failed, k="+u);return{k1neg:c,k1:f,k2neg:d,k2:l}}}},L2),oE=BigInt(0),FR=u=>typeof u=="bigint"&&oEtypeof u=="bigint"&&oEr.charCodeAt(0)));t=It(n,n),YF[u]=t}return L2(It(t,...e))}const cA=u=>u.toRawBytes(!0).slice(1),hC=u=>ya(u,32),j8=u=>Ee(u,aE),S1=u=>Ee(u,U2),dA=Ne.ProjectivePoint,Cn0=(u,e,t)=>dA.BASE.multiplyAndAddUnsafe(u,e,t);function CC(u){let e=Ne.utils.normPrivateKeyToScalar(u),t=dA.fromPrivateKey(e);return{scalar:t.hasEvenY()?e:S1(-e),bytes:cA(t)}}function DR(u){if(!FR(u))throw new Error("bad x: need 0 < x < p");const e=j8(u*u),t=j8(e*u+BigInt(7));let n=BR(t);n%W2!==oE&&(n=j8(-n));const r=new dA(u,n,vR);return r.assertValidity(),r}function wR(...u){return S1(Xe(q2("BIP0340/challenge",...u)))}function mn0(u){return CC(u).bytes}function bn0(u,e,t=VI(32)){const n=Re("message",u),{bytes:r,scalar:i}=CC(e),a=Re("auxRand",t,32),o=hC(i^Xe(q2("BIP0340/aux",a))),s=q2("BIP0340/nonce",o,r,n),f=S1(Xe(s));if(f===oE)throw new Error("sign failed: k is zero");const{bytes:l,scalar:c}=CC(f),d=wR(l,r,n),E=new Uint8Array(64);if(E.set(l,0),E.set(hC(S1(c+d*i)),32),!xR(E,n,r))throw new Error("sign: Invalid signature produced");return E}function xR(u,e,t){const n=Re("signature",u,64),r=Re("message",e),i=Re("publicKey",t,32);try{const a=DR(Xe(i)),o=Xe(n.subarray(0,32));if(!FR(o))return!1;const s=Xe(n.subarray(32,64));if(!hn0(s))return!1;const f=wR(hC(o),cA(a),r),l=Cn0(a,s,S1(-f));return!(!l||!l.hasEvenY()||l.toAffine().x!==o)}catch{return!1}}const gn0={getPublicKey:mn0,sign:bn0,verify:xR,utils:{randomPrivateKey:Ne.utils.randomPrivateKey,lift_x:DR,pointToBytes:cA,numberToBytesBE:ya,bytesToNumberBE:Xe,taggedHash:q2,mod:Ee}},An0=cn0(va,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(u=>u.map(e=>BigInt(e)))),yn0=in0(va,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:va.create(BigInt("-11"))}),kR=dn0(Ne.ProjectivePoint,u=>{const{x:e,y:t}=yn0(va.create(u[0]));return An0(e,t)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:va.ORDER,m:1,k:128,expand:"xmd",hash:L2}),vn0=kR.hashToCurve,Bn0=kR.encodeToCurve,Fn0=Object.freeze(Object.defineProperty({__proto__:null,encodeToCurve:Bn0,hashToCurve:vn0,schnorr:gn0,secp256k1:Ne},Symbol.toStringTag,{value:"Module"}));function Dn0(u){const{r:e,s:t}=Ne.Signature.fromCompact(u.slice(2,130));return{r:O0(e,{size:32}),yParityAndS:O0(t,{size:32})}}function wn0(u){const{r:e,s:t}=Ne.Signature.fromCompact(u.slice(2,130)),n=BigInt(`0x${u.slice(130)}`);return{r:O0(e,{size:32}),s:O0(t,{size:32}),v:n}}function xn0(u){const{r:e,s:t,v:n}=u,r=n-27n;let i=t;if(r===1n){const a=li(t);a[0]|=128,i=At(a)}return{r:e,yParityAndS:i}}function kn0({r:u,yParityAndS:e}){return`0x${new Ne.Signature(Ru(u),Ru(e)).toCompactHex()}`}function _n0({r:u,s:e,v:t}){return`0x${new Ne.Signature(Ru(u),Ru(e)).toCompactHex()}${tu(t).slice(2)}`}const Sn0=Object.freeze(Object.defineProperty({__proto__:null,AbiConstructorNotFoundError:Eg,AbiConstructorParamsNotFoundError:x1,AbiDecodingDataSizeInvalidError:CY,AbiDecodingDataSizeTooSmallError:Md,AbiDecodingZeroDataError:Dc,AbiEncodingArrayLengthMismatchError:TI,AbiEncodingBytesSizeMismatchError:PI,AbiEncodingLengthMismatchError:pg,AbiErrorInputsNotFoundError:II,AbiErrorNotFoundError:eC,AbiErrorSignatureNotFoundError:hg,AbiEventNotFoundError:tC,AbiEventSignatureEmptyTopicsError:OI,AbiEventSignatureNotFoundError:RI,AbiFunctionNotFoundError:Go,AbiFunctionOutputsNotFoundError:Cg,AbiFunctionSignatureNotFoundError:NI,BaseError:l0,BaseFeeScalarError:EO,BlockNotFoundError:Pg,BytesSizeMismatchError:mg,CallExecutionError:Sg,ChainDisconnectedError:q4,ChainDoesNotSupportContract:F2,ChainMismatchError:rI,ChainNotFoundError:iI,CircularReferenceError:xI,ClientChainNotConfiguredError:lg,ContractFunctionExecutionError:qd,ContractFunctionRevertedError:N2,ContractFunctionZeroDataError:fO,DataLengthTooLongError:xZ,DataLengthTooShortError:kZ,DecodeLogDataMismatch:ba,DecodeLogTopicsMismatch:os,Eip1559FeesNotSupportedError:Kd,EnsAvatarInvalidNftUriError:zs,EnsAvatarUnsupportedNamespaceError:kO,EnsAvatarUriResolutionError:uE,EstimateGasExecutionError:dO,ExecutionRevertedError:eo,FeeCapTooHighError:ma,FeeCapTooLowError:D2,FeeConflictError:nO,FilterTypeNotSupportedError:UI,HttpRequestError:la,InsufficientFundsError:_2,IntegerOutOfRangeError:QP,InternalRpcError:Vo,IntrinsicGasTooHighError:S2,IntrinsicGasTooLowError:T2,InvalidAbiDecodingTypeError:jI,InvalidAbiEncodingTypeError:MI,InvalidAbiItemError:CI,InvalidAbiParameterError:bI,InvalidAbiParametersError:gI,InvalidAbiTypeParameterError:FI,InvalidAddressError:yt,InvalidArrayError:zI,InvalidBytesBooleanError:JP,InvalidChainIdError:Od,InvalidDefinitionTypeError:LI,InvalidFunctionModifierError:BI,InvalidHexBooleanError:ZP,InvalidHexValueError:YP,InvalidInputRpcError:ga,InvalidLegacyVError:xg,InvalidModifierError:vI,InvalidParameterError:AI,InvalidParamsRpcError:R4,InvalidParenthesisError:kI,InvalidRequestRpcError:I4,InvalidSerializableTransactionError:rO,InvalidSerializedTransactionError:Wd,InvalidSerializedTransactionTypeError:iO,InvalidSignatureError:ff,InvalidStorageKeySizeError:aO,InvalidStructSignatureError:wI,JsonRpcVersionUnsupportedError:L4,LimitExceededRpcError:z4,MaxFeePerGasTooLowError:pO,MethodNotFoundRpcError:O4,MethodNotSupportedRpcError:j4,NonceMaxValueError:k2,NonceTooHighError:w2,NonceTooLowError:x2,OffsetOutOfBoundsError:_Z,ParseRpcError:P4,ProviderDisconnectedError:W4,ProviderRpcError:fs,RawContractError:Hd,ResourceNotFoundRpcError:N4,ResourceUnavailableRpcError:ni,RpcError:at,RpcRequestError:Gd,SizeExceedsPaddingSizeError:ag,SizeOverflowError:XP,SliceOffsetOutOfBoundsError:ig,SolidityProtectedKeywordError:yI,SwitchChainError:Wn,TimeoutError:M2,TipAboveFeeCapError:S4,TransactionExecutionError:oO,TransactionNotFoundError:kg,TransactionReceiptNotFoundError:_g,TransactionRejectedRpcError:M4,TransactionTypeNotSupportedError:P2,UnauthorizedProviderError:$4,UnknownNodeError:Bc,UnknownRpcError:cO,UnknownSignatureError:DI,UnknownTypeError:mI,UnsupportedPackedAbiType:$I,UnsupportedProviderMethodError:U4,UrlRequiredError:Ug,UserRejectedRequestError:Xu,WaitForTransactionReceiptTimeoutError:sO,WebSocketRequestError:lO,assertCurrentChain:zg,assertRequest:y3,assertTransactionEIP1559:uA,assertTransactionEIP2930:eA,assertTransactionLegacy:tA,boolToBytes:eI,boolToHex:Sd,bytesToBigInt:lC,bytesToBigint:lC,bytesToBool:HO,bytesToHex:At,bytesToNumber:GO,bytesToRlp:Tn0,bytesToString:VO,ccipFetch:Gg,checksumAddress:wc,compactSignatureToHex:kn0,compactSignatureToSignature:Ot0,concat:Cn,concatBytes:oI,concatHex:ci,createClient:Yd,createPublicClient:dC,createTestClient:Pu0,createTransport:Tc,createWalletClient:w3,custom:F3,decodeAbiParameters:ss,decodeDeployData:It0,decodeErrorResult:wg,decodeEventLog:v3,decodeFunctionData:d00,decodeFunctionResult:ls,defineBlock:RZ,defineChain:_d,defineTransaction:OZ,defineTransactionReceipt:MZ,defineTransactionRequest:jZ,domainSeparator:c00,encodeAbiParameters:Ei,encodeDeployData:Jg,encodeErrorResult:E00,encodeEventTopics:g3,encodeFunctionData:pi,encodeFunctionResult:h00,encodePacked:C00,etherUnits:cg,extractChain:o00,fallback:oC,formatBlock:Id,formatEther:Ud,formatGwei:Ye,formatLog:hn,formatTransaction:Pd,formatTransactionReceipt:fg,formatTransactionRequest:as,formatUnits:w1,fromBytes:b00,fromHex:IZ,fromRlp:Zg,getAbiItem:_a,getAddress:ju,getChainContractAddress:cs,getContract:FX,getContractAddress:m00,getContractError:H4,getCreate2Address:qO,getCreateAddress:WO,getEventSelector:zd,getEventSignature:WI,getFunctionSelector:b3,getFunctionSignature:bg,getSerializedTransactionType:eR,getTransactionType:Og,getTypesForEIP712Domain:tE,gweiUnits:dg,hashDomain:Kg,hashMessage:Xg,hashTypedData:Vg,hexToBigInt:Ru,hexToBool:og,hexToBytes:li,hexToCompactSignature:Dn0,hexToNumber:gu,hexToRlp:Pn0,hexToSignature:wn0,hexToString:vc,http:DO,isAddress:tt,isAddressEqual:eE,isBytes:fC,isHash:JO,isHex:uu,keccak256:Yu,labelhash:xO,maxInt104:te0,maxInt112:ne0,maxInt120:re0,maxInt128:ie0,maxInt136:ae0,maxInt144:oe0,maxInt152:se0,maxInt16:Hu0,maxInt160:fe0,maxInt168:le0,maxInt176:ce0,maxInt184:de0,maxInt192:Ee0,maxInt200:pe0,maxInt208:he0,maxInt216:Ce0,maxInt224:me0,maxInt232:be0,maxInt24:Gu0,maxInt240:ge0,maxInt248:Ae0,maxInt256:ye0,maxInt32:Vu0,maxInt40:Ku0,maxInt48:Qu0,maxInt56:Ju0,maxInt64:Zu0,maxInt72:Yu0,maxInt8:qu0,maxInt80:Xu0,maxInt88:ue0,maxInt96:ee0,maxUint104:dt0,maxUint112:Et0,maxUint120:pt0,maxUint128:ht0,maxUint136:Ct0,maxUint144:mt0,maxUint152:bt0,maxUint16:et0,maxUint160:gt0,maxUint168:At0,maxUint176:yt0,maxUint184:vt0,maxUint192:Bt0,maxUint200:Ft0,maxUint208:Dt0,maxUint216:wt0,maxUint224:xt0,maxUint232:kt0,maxUint24:tt0,maxUint240:_t0,maxUint248:St0,maxUint256:Tt0,maxUint32:nt0,maxUint40:rt0,maxUint48:it0,maxUint56:at0,maxUint64:ot0,maxUint72:st0,maxUint8:ut0,maxUint80:ft0,maxUint88:lt0,maxUint96:ct0,minInt104:Oe0,minInt112:Re0,minInt120:Ne0,minInt128:Me0,minInt136:je0,minInt144:ze0,minInt152:Le0,minInt16:Be0,minInt160:$e0,minInt168:Ue0,minInt176:We0,minInt184:qe0,minInt192:He0,minInt200:Ge0,minInt208:Ve0,minInt216:Ke0,minInt224:Qe0,minInt232:Je0,minInt24:Fe0,minInt240:Ze0,minInt248:Ye0,minInt256:Xe0,minInt32:De0,minInt40:we0,minInt48:xe0,minInt56:ke0,minInt64:_e0,minInt72:Se0,minInt8:ve0,minInt80:Te0,minInt88:Pe0,minInt96:Ie0,multicall3Abi:j2,namehash:Vl,numberToBytes:tI,numberToHex:O0,offchainLookup:RO,offchainLookupAbiItem:Hg,offchainLookupSignature:OO,pad:Ln,padBytes:uI,padHex:$n,parseAbi:cY,parseAbiItem:dY,parseAbiParameter:EY,parseAbiParameters:pY,parseEther:P00,parseGwei:I00,parseTransaction:F00,parseUnits:rA,presignMessagePrefix:YO,publicActions:cR,recoverAddress:Yg,recoverMessageAddress:XO,recoverPublicKey:ZO,recoverTypedDataAddress:uR,rpcTransactionType:nI,serializeAccessList:nA,serializeTransaction:k00,signatureToCompactSignature:xn0,signatureToHex:_n0,size:Ku,slice:_u,sliceBytes:uO,sliceHex:vg,stringToBytes:br,stringToHex:yc,stringify:Ce,testActions:dR,toBytes:Ge,toHex:tu,toRlp:ds,transactionType:sg,trim:Ze,validateTypedData:Qg,verifyMessage:v00,verifyTypedData:B00,walletActions:ER,webSocket:pR,weiUnits:aI,zeroAddress:Wu0,zeroHash:Pt0},Symbol.toStringTag,{value:"Module"}));function ds(u,e="hex"){const t=_R(u),n=KO(new Uint8Array(t.length));return t.encode(n),e==="hex"?At(n.bytes):n.bytes}function Tn0(u,e="bytes"){return ds(u,e)}function Pn0(u,e="hex"){return ds(u,e)}function _R(u){return Array.isArray(u)?In0(u.map(e=>_R(e))):On0(u)}function In0(u){const e=u.reduce((r,i)=>r+i.length,0),t=SR(e);return{length:e<=55?1+e:1+t+e,encode(r){e<=55?r.pushByte(192+e):(r.pushByte(247+t),t===1?r.pushUint8(e):t===2?r.pushUint16(e):t===3?r.pushUint24(e):r.pushUint32(e));for(const{encode:i}of u)i(r)}}}function On0(u){const e=typeof u=="string"?li(u):u,t=SR(e.length);return{length:e.length===1&&e[0]<128?1:e.length<=55?1+e.length:1+t+e.length,encode(r){e.length===1&&e[0]<128?r.pushBytes(e):e.length<=55?(r.pushByte(128+e.length),r.pushBytes(e)):(r.pushByte(183+t),t===1?r.pushUint8(e.length):t===2?r.pushUint16(e.length):t===3?r.pushUint24(e.length):r.pushUint32(e.length),r.pushBytes(e))}}}function SR(u){if(u<2**8)return 1;if(u<2**16)return 2;if(u<2**24)return 3;if(u<2**32)return 4;throw new l0("Length is too large.")}const Rn0=_d({id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),TR=_d({id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),Nn0=_d({id:80001,name:"Polygon Mumbai",network:"maticmum",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mumbai.g.alchemy.com/v2"],webSocket:["wss://polygon-mumbai.g.alchemy.com/v2"]},infura:{http:["https://polygon-mumbai.infura.io/v3"],webSocket:["wss://polygon-mumbai.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/polygon_mumbai"]},public:{http:["https://rpc.ankr.com/polygon_mumbai"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"},default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0});var PR=class extends Error{constructor({chainId:u,connectorId:e}){super(`Chain "${u}" not configured for connector "${e}".`),this.name="ChainNotConfiguredForConnectorError"}},ft=class extends Error{constructor(){super(...arguments),this.name="ConnectorNotFoundError",this.message="Connector not found"}};function Ko(u){return typeof u=="string"?Number.parseInt(u,u.trim().substring(0,2)==="0x"?16:10):typeof u=="bigint"?Number(u):u}var IR={exports:{}};(function(u){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function r(s,f,l){this.fn=s,this.context=f,this.once=l||!1}function i(s,f,l,c,d){if(typeof l!="function")throw new TypeError("The listener must be a function");var E=new r(l,c||s,d),p=t?t+f:f;return s._events[p]?s._events[p].fn?s._events[p]=[s._events[p],E]:s._events[p].push(E):(s._events[p]=E,s._eventsCount++),s}function a(s,f){--s._eventsCount===0?s._events=new n:delete s._events[f]}function o(){this._events=new n,this._eventsCount=0}o.prototype.eventNames=function(){var f=[],l,c;if(this._eventsCount===0)return f;for(c in l=this._events)e.call(l,c)&&f.push(t?c.slice(1):c);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(l)):f},o.prototype.listeners=function(f){var l=t?t+f:f,c=this._events[l];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,E=c.length,p=new Array(E);d{if(!e.has(u))throw TypeError("Cannot "+t)},J0=(u,e,t)=>(EA(u,e,"read from private field"),t?t.call(u):e.get(u)),re=(u,e,t)=>{if(e.has(u))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(u):e.set(u,t)},ii=(u,e,t,n)=>(EA(u,e,"write to private field"),n?n.call(u,t):e.set(u,t),t),te=(u,e,t)=>(EA(u,e,"access private method"),t),Pc=class extends jn0{constructor({chains:u=[TR,Rn0],options:e}){super(),this.chains=u,this.options=e}getBlockExplorerUrls(u){const{default:e,...t}=u.blockExplorers??{};if(e)return[e.url,...Object.values(t).map(n=>n.url)]}isChainUnsupported(u){return!this.chains.some(e=>e.id===u)}setStorage(u){this.storage=u}};function zn0(u){var t;if(!u)return"Injected";const e=n=>{if(n.isApexWallet)return"Apex Wallet";if(n.isAvalanche)return"Core Wallet";if(n.isBackpack)return"Backpack";if(n.isBifrost)return"Bifrost Wallet";if(n.isBitKeep)return"BitKeep";if(n.isBitski)return"Bitski";if(n.isBlockWallet)return"BlockWallet";if(n.isBraveWallet)return"Brave Wallet";if(n.isCoin98)return"Coin98 Wallet";if(n.isCoinbaseWallet)return"Coinbase Wallet";if(n.isDawn)return"Dawn Wallet";if(n.isDefiant)return"Defiant";if(n.isDesig)return"Desig Wallet";if(n.isEnkrypt)return"Enkrypt";if(n.isExodus)return"Exodus";if(n.isFordefi)return"Fordefi";if(n.isFrame)return"Frame";if(n.isFrontier)return"Frontier Wallet";if(n.isGamestop)return"GameStop Wallet";if(n.isHaqqWallet)return"HAQQ Wallet";if(n.isHyperPay)return"HyperPay Wallet";if(n.isImToken)return"ImToken";if(n.isHaloWallet)return"Halo Wallet";if(n.isKuCoinWallet)return"KuCoin Wallet";if(n.isMathWallet)return"MathWallet";if(n.isNovaWallet)return"Nova Wallet";if(n.isOkxWallet||n.isOKExWallet)return"OKX Wallet";if(n.isOneInchIOSWallet||n.isOneInchAndroidWallet)return"1inch Wallet";if(n.isOpera)return"Opera";if(n.isPhantom)return"Phantom";if(n.isPortal)return"Ripio Portal";if(n.isRabby)return"Rabby Wallet";if(n.isRainbow)return"Rainbow";if(n.isSafePal)return"SafePal Wallet";if(n.isStatus)return"Status";if(n.isSubWallet)return"SubWallet";if(n.isTalisman)return"Talisman";if(n.isTally)return"Taho";if(n.isTokenPocket)return"TokenPocket";if(n.isTokenary)return"Tokenary";if(n.isTrust||n.isTrustWallet)return"Trust Wallet";if(n.isTTWallet)return"TTWallet";if(n.isXDEFI)return"XDEFI Wallet";if(n.isZeal)return"Zeal";if(n.isZerion)return"Zerion";if(n.isMetaMask)return"MetaMask"};if((t=u.providers)!=null&&t.length){const n=new Set;let r=1;for(const a of u.providers){let o=e(a);o||(o=`Unknown Wallet #${r}`,r+=1),n.add(o)}const i=[...n];return i.length?i:i[0]??"Injected"}return e(u)??"Injected"}var v5,K4=class extends Pc{constructor({chains:u,options:e}={}){const t={shimDisconnect:!0,getProvider(){if(typeof window>"u")return;const r=window.ethereum;return r!=null&&r.providers&&r.providers.length>0?r.providers[0]:r},...e};super({chains:u,options:t}),this.id="injected",re(this,v5,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`,this.onAccountsChanged=r=>{r.length===0?this.emit("disconnect"):this.emit("change",{account:ju(r[0])})},this.onChainChanged=r=>{const i=Ko(r),a=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:a}})},this.onDisconnect=async r=>{var i;r.code===1013&&await this.getProvider()&&await this.getAccount()||(this.emit("disconnect"),this.options.shimDisconnect&&((i=this.storage)==null||i.removeItem(this.shimDisconnectKey)))};const n=t.getProvider();if(typeof t.name=="string")this.name=t.name;else if(n){const r=zn0(n);t.name?this.name=t.name(r):typeof r=="string"?this.name=r:this.name=r[0]}else this.name="Injected";this.ready=!!n}async connect({chainId:u}={}){var e;try{const t=await this.getProvider();if(!t)throw new ft;t.on&&(t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});const n=await t.request({method:"eth_requestAccounts"}),r=ju(n[0]);let i=await this.getChainId(),a=this.isChainUnsupported(i);return u&&i!==u&&(i=(await this.switchChain(u)).id,a=this.isChainUnsupported(i)),this.options.shimDisconnect&&((e=this.storage)==null||e.setItem(this.shimDisconnectKey,!0)),{account:r,chain:{id:i,unsupported:a}}}catch(t){throw this.isUserRejectedRequestError(t)?new Xu(t):t.code===-32002?new ni(t):t}}async disconnect(){var e;const u=await this.getProvider();u!=null&&u.removeListener&&(u.removeListener("accountsChanged",this.onAccountsChanged),u.removeListener("chainChanged",this.onChainChanged),u.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&((e=this.storage)==null||e.removeItem(this.shimDisconnectKey)))}async getAccount(){const u=await this.getProvider();if(!u)throw new ft;const e=await u.request({method:"eth_accounts"});return ju(e[0])}async getChainId(){const u=await this.getProvider();if(!u)throw new ft;return u.request({method:"eth_chainId"}).then(Ko)}async getProvider(){const u=this.options.getProvider();return u&&ii(this,v5,u),J0(this,v5)}async getWalletClient({chainId:u}={}){const[e,t]=await Promise.all([this.getProvider(),this.getAccount()]),n=this.chains.find(r=>r.id===u);if(!e)throw new Error("provider is required.");return w3({account:t,chain:n,transport:F3(e)})}async isAuthorized(){var u;try{if(this.options.shimDisconnect&&!((u=this.storage)!=null&&u.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new ft;return!!await this.getAccount()}catch{return!1}}async switchChain(u){var n,r,i;const e=await this.getProvider();if(!e)throw new ft;const t=O0(u);try{return await Promise.all([e.request({method:"wallet_switchEthereumChain",params:[{chainId:t}]}),new Promise(a=>this.on("change",({chain:o})=>{(o==null?void 0:o.id)===u&&a()}))]),this.chains.find(a=>a.id===u)??{id:u,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(a){const o=this.chains.find(s=>s.id===u);if(!o)throw new PR({chainId:u,connectorId:this.id});if(a.code===4902||((r=(n=a==null?void 0:a.data)==null?void 0:n.originalError)==null?void 0:r.code)===4902)try{if(await e.request({method:"wallet_addEthereumChain",params:[{chainId:t,chainName:o.name,nativeCurrency:o.nativeCurrency,rpcUrls:[((i=o.rpcUrls.public)==null?void 0:i.http[0])??""],blockExplorerUrls:this.getBlockExplorerUrls(o)}]}),await this.getChainId()!==u)throw new Xu(new Error("User rejected switch after adding network."));return o}catch(s){throw new Xu(s)}throw this.isUserRejectedRequestError(a)?new Xu(a):new Wn(a)}}async watchAsset({address:u,decimals:e=18,image:t,symbol:n}){const r=await this.getProvider();if(!r)throw new ft;return r.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:u,decimals:e,image:t,symbol:n}}})}isUserRejectedRequestError(u){return u.code===4001}};v5=new WeakMap;var pA=(u,e,t)=>{if(!e.has(u))throw TypeError("Cannot "+t)},z8=(u,e,t)=>(pA(u,e,"read from private field"),t?t.call(u):e.get(u)),L8=(u,e,t)=>{if(e.has(u))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(u):e.set(u,t)},j6=(u,e,t,n)=>(pA(u,e,"write to private field"),n?n.call(u,t):e.set(u,t),t),Ln0=(u,e,t)=>(pA(u,e,"access private method"),t),$n0={VITE_REACT_APP_PROJECT_ID:"9d80089c30635ff84b5339d993d63fa1",VITE_MUMBAI_RPC:"https://polygon-mumbai.g.alchemy.com/v2/BmepUpwxd86PJSuisn7P4f3lZJSqcAUt",VITE_PINATA_JWT:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M",VITE_PINATA_GET_URL:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/",VITE_PINATA_PIN_FILE_URL:"https://api.pinata.cloud/pinning/pinFileToIPFS",VITE_PINATA_PIN_JSON_URL:"https://api.pinata.cloud/pinning/pinJSONToIPFS",BASE_URL:"/real-token/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Un0=u=>(e,t,n)=>{const r=n.subscribe;return n.subscribe=(a,o,s)=>{let f=a;if(o){const l=(s==null?void 0:s.equalityFn)||Object.is;let c=a(n.getState());f=d=>{const E=a(d);if(!l(c,E)){const p=c;o(c=E,p)}},s!=null&&s.fireImmediately&&o(c,c)}return r(f)},u(e,t,n)},Wn0=Un0;function qn0(u,e){let t;try{t=u()}catch{return}return{getItem:r=>{var i;const a=s=>s===null?null:JSON.parse(s,e==null?void 0:e.reviver),o=(i=t.getItem(r))!=null?i:null;return o instanceof Promise?o.then(a):a(o)},setItem:(r,i)=>t.setItem(r,JSON.stringify(i,e==null?void 0:e.replacer)),removeItem:r=>t.removeItem(r)}}const T1=u=>e=>{try{const t=u(e);return t instanceof Promise?t:{then(n){return T1(n)(t)},catch(n){return this}}}catch(t){return{then(n){return this},catch(n){return T1(n)(t)}}}},Hn0=(u,e)=>(t,n,r)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:g=>g,version:0,merge:(g,b)=>({...b,...g}),...e},a=!1;const o=new Set,s=new Set;let f;try{f=i.getStorage()}catch{}if(!f)return u((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...g)},n,r);const l=T1(i.serialize),c=()=>{const g=i.partialize({...n()});let b;const m=l({state:g,version:i.version}).then(A=>f.setItem(i.name,A)).catch(A=>{b=A});if(b)throw b;return m},d=r.setState;r.setState=(g,b)=>{d(g,b),c()};const E=u((...g)=>{t(...g),c()},n,r);let p;const h=()=>{var g;if(!f)return;a=!1,o.forEach(m=>m(n()));const b=((g=i.onRehydrateStorage)==null?void 0:g.call(i,n()))||void 0;return T1(f.getItem.bind(f))(i.name).then(m=>{if(m)return i.deserialize(m)}).then(m=>{if(m)if(typeof m.version=="number"&&m.version!==i.version){if(i.migrate)return i.migrate(m.state,m.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return m.state}).then(m=>{var A;return p=i.merge(m,(A=n())!=null?A:E),t(p,!0),c()}).then(()=>{b==null||b(p,void 0),a=!0,s.forEach(m=>m(p))}).catch(m=>{b==null||b(void 0,m)})};return r.persist={setOptions:g=>{i={...i,...g},g.getStorage&&(f=g.getStorage())},clearStorage:()=>{f==null||f.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>h(),hasHydrated:()=>a,onHydrate:g=>(o.add(g),()=>{o.delete(g)}),onFinishHydration:g=>(s.add(g),()=>{s.delete(g)})},h(),p||E},Gn0=(u,e)=>(t,n,r)=>{let i={storage:qn0(()=>localStorage),partialize:h=>h,version:0,merge:(h,g)=>({...g,...h}),...e},a=!1;const o=new Set,s=new Set;let f=i.storage;if(!f)return u((...h)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...h)},n,r);const l=()=>{const h=i.partialize({...n()});return f.setItem(i.name,{state:h,version:i.version})},c=r.setState;r.setState=(h,g)=>{c(h,g),l()};const d=u((...h)=>{t(...h),l()},n,r);let E;const p=()=>{var h,g;if(!f)return;a=!1,o.forEach(m=>{var A;return m((A=n())!=null?A:d)});const b=((g=i.onRehydrateStorage)==null?void 0:g.call(i,(h=n())!=null?h:d))||void 0;return T1(f.getItem.bind(f))(i.name).then(m=>{if(m)if(typeof m.version=="number"&&m.version!==i.version){if(i.migrate)return i.migrate(m.state,m.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return m.state}).then(m=>{var A;return E=i.merge(m,(A=n())!=null?A:d),t(E,!0),l()}).then(()=>{b==null||b(E,void 0),E=n(),a=!0,s.forEach(m=>m(E))}).catch(m=>{b==null||b(void 0,m)})};return r.persist={setOptions:h=>{i={...i,...h},h.storage&&(f=h.storage)},clearStorage:()=>{f==null||f.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>a,onHydrate:h=>(o.add(h),()=>{o.delete(h)}),onFinishHydration:h=>(s.add(h),()=>{s.delete(h)})},i.skipHydration||p(),E||d},Vn0=(u,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?(($n0?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Hn0(u,e)):Gn0(u,e),Kn0=Vn0;var Qn0={VITE_REACT_APP_PROJECT_ID:"9d80089c30635ff84b5339d993d63fa1",VITE_MUMBAI_RPC:"https://polygon-mumbai.g.alchemy.com/v2/BmepUpwxd86PJSuisn7P4f3lZJSqcAUt",VITE_PINATA_JWT:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M",VITE_PINATA_GET_URL:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/",VITE_PINATA_PIN_FILE_URL:"https://api.pinata.cloud/pinning/pinFileToIPFS",VITE_PINATA_PIN_JSON_URL:"https://api.pinata.cloud/pinning/pinJSONToIPFS",BASE_URL:"/real-token/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const XF=u=>{let e;const t=new Set,n=(s,f)=>{const l=typeof s=="function"?s(e):s;if(!Object.is(l,e)){const c=e;e=f??(typeof l!="object"||l===null)?l:Object.assign({},e,l),t.forEach(d=>d(e,c))}},r=()=>e,o={setState:n,getState:r,subscribe:s=>(t.add(s),()=>t.delete(s)),destroy:()=>{(Qn0?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}};return e=u(n,r,o),o},Jn0=u=>u?XF(u):XF;function hA(u,e){if(Object.is(u,e))return!0;if(typeof u!="object"||u===null||typeof e!="object"||e===null)return!1;if(u instanceof Map&&e instanceof Map){if(u.size!==e.size)return!1;for(const[n,r]of u)if(!Object.is(r,e.get(n)))return!1;return!0}if(u instanceof Set&&e instanceof Set){if(u.size!==e.size)return!1;for(const n of u)if(!e.has(n))return!1;return!0}const t=Object.keys(u);if(t.length!==Object.keys(e).length)return!1;for(let n=0;nh===c.id)||(s=[...s,p.chain]),f[c.id]=[...f[c.id]||[],...p.rpcUrls.http],p.rpcUrls.webSocket&&(l[c.id]=[...l[c.id]||[],...p.rpcUrls.webSocket]))}if(!d)throw new Error([`Could not find valid provider configuration for chain "${c.name}". `,"You may need to add `jsonRpcProvider` to `configureChains` with the chain's RPC URLs.","Read more: https://wagmi.sh/core/providers/jsonRpc"].join(` -`))}return{chains:s,publicClient:({chainId:c})=>{const d=s.find(h=>h.id===c)??u[0],E=f[d.id];if(!E||!E[0])throw new Error(`No providers configured for chain "${d.id}"`);const p=cC({batch:t,chain:d,transport:aC(E.map(h=>DO(h,{timeout:o})),{rank:r,retryCount:i,retryDelay:a}),pollingInterval:n});return Object.assign(p,{chains:s})},webSocketPublicClient:({chainId:c})=>{const d=s.find(h=>h.id===c)??u[0],E=l[d.id];if(!E||!E[0])return;const p=cC({batch:t,chain:d,transport:aC(E.map(h=>pR(h,{timeout:o})),{rank:r,retryCount:i,retryDelay:a}),pollingInterval:n});return Object.assign(p,{chains:s})}}}var Yn0=class extends Error{constructor({activeChain:u,targetChain:e}){super(`Chain mismatch: Expected "${e}", received "${u}".`),this.name="ChainMismatchError"}},Xn0=class extends Error{constructor({chainId:u,connectorId:e}){super(`Chain "${u}" not configured${e?` for connector "${e}"`:""}.`),this.name="ChainNotConfigured"}},ur0=class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}},er0=class extends Error{constructor(){super(...arguments),this.name="ConfigChainsNotFound",this.message="No chains were found on the wagmi config. Some functions that require a chain may not work."}},tr0=class extends Error{constructor({connector:u}){super(`"${u.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}};function CC(u,e){if(u===e)return!0;if(u&&e&&typeof u=="object"&&typeof e=="object"){if(u.constructor!==e.constructor)return!1;let t,n;if(Array.isArray(u)&&Array.isArray(e)){if(t=u.length,t!=e.length)return!1;for(n=t;n--!==0;)if(!CC(u[n],e[n]))return!1;return!0}if(u.valueOf!==Object.prototype.valueOf)return u.valueOf()===e.valueOf();if(u.toString!==Object.prototype.toString)return u.toString()===e.toString();const r=Object.keys(u);if(t=r.length,t!==Object.keys(e).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,r[n]))return!1;for(n=t;n--!==0;){const i=r[n];if(i&&!CC(u[i],e[i]))return!1}return!0}return u!==u&&e!==e}var mC=(u,{find:e,replace:t})=>u&&e(u)?t(u):typeof u!="object"?u:Array.isArray(u)?u.map(n=>mC(n,{find:e,replace:t})):u instanceof Object?Object.entries(u).reduce((n,[r,i])=>({...n,[r]:mC(i,{find:e,replace:t})}),{}):u;function nr0(u){const e=JSON.parse(u);return mC(e,{find:n=>typeof n=="string"&&n.startsWith("#bigint."),replace:n=>BigInt(n.replace("#bigint.",""))})}function OR(u){return{accessList:u.accessList,account:u.account,blockNumber:u.blockNumber,blockTag:u.blockTag,data:u.data,gas:u.gas,gasPrice:u.gasPrice,maxFeePerGas:u.maxFeePerGas,maxPriorityFeePerGas:u.maxPriorityFeePerGas,nonce:u.nonce,to:u.to,value:u.value}}function rr0(u){return{accessList:u.accessList,account:u.account,data:u.data,gas:u.gas,gasPrice:u.gasPrice,maxFeePerGas:u.maxFeePerGas,maxPriorityFeePerGas:u.maxPriorityFeePerGas,nonce:u.nonce,to:u.to,value:u.value}}function XF(u){return typeof u=="number"?u:u==="wei"?0:Math.abs(aI[u])}function uD(u,e){return u.slice(0,e).join(".")||"."}function eD(u,e){const{length:t}=u;for(let n=0;n{const a=typeof i=="bigint"?`#bigint.${i.toString()}`:i;return(e==null?void 0:e(r,a))||a},n),t??void 0)}var RR={getItem:u=>"",setItem:(u,e)=>null,removeItem:u=>null};function NR({deserialize:u=nr0,key:e="wagmi",serialize:t=ar0,storage:n}){return{...n,getItem:(r,i=null)=>{const a=n.getItem(`${e}.${r}`);try{return a?u(a):i}catch(o){return console.warn(o),i}},setItem:(r,i)=>{if(i===null)n.removeItem(`${e}.${r}`);else try{n.setItem(`${e}.${r}`,t(i))}catch(a){console.error(a)}},removeItem:r=>n.removeItem(`${e}.${r}`)}}var tD="store",Ls,Bl,bC,MR,or0=class{constructor({autoConnect:u=!1,connectors:e=[new K4],publicClient:t,storage:n=NR({storage:typeof window<"u"?window.localStorage:RR}),logger:r={warn:console.warn},webSocketPublicClient:i}){var f,l;z8(this,bC),this.publicClients=new Map,this.webSocketPublicClients=new Map,z8(this,Ls,void 0),z8(this,Bl,void 0),this.args={autoConnect:u,connectors:e,logger:r,publicClient:t,storage:n,webSocketPublicClient:i};let a="disconnected",o;if(u)try{const c=n.getItem(tD),d=(f=c==null?void 0:c.state)==null?void 0:f.data;a=d!=null&&d.account?"reconnecting":"connecting",o=(l=d==null?void 0:d.chain)==null?void 0:l.id}catch{}const s=typeof e=="function"?e():e;s.forEach(c=>c.setStorage(n)),this.store=Jn0(Wn0(Kn0(()=>({connectors:s,publicClient:this.getPublicClient({chainId:o}),status:a,webSocketPublicClient:this.getWebSocketPublicClient({chainId:o})}),{name:tD,storage:n,partialize:c=>{var d,E;return{...u&&{data:{account:(d=c==null?void 0:c.data)==null?void 0:d.account,chain:(E=c==null?void 0:c.data)==null?void 0:E.chain}},chains:c==null?void 0:c.chains}},version:2}))),this.storage=n,M6(this,Bl,n==null?void 0:n.getItem("wallet")),Ln0(this,bC,MR).call(this),u&&typeof window<"u"&&setTimeout(async()=>await this.autoConnect(),0)}get chains(){return this.store.getState().chains}get connectors(){return this.store.getState().connectors}get connector(){return this.store.getState().connector}get data(){return this.store.getState().data}get error(){return this.store.getState().error}get lastUsedChainId(){var u,e;return(e=(u=this.data)==null?void 0:u.chain)==null?void 0:e.id}get publicClient(){return this.store.getState().publicClient}get status(){return this.store.getState().status}get subscribe(){return this.store.subscribe}get webSocketPublicClient(){return this.store.getState().webSocketPublicClient}setState(u){const e=typeof u=="function"?u(this.store.getState()):u;this.store.setState(e,!0)}clearState(){this.setState(u=>({...u,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"}))}async destroy(){var u,e;this.connector&&await((e=(u=this.connector).disconnect)==null?void 0:e.call(u)),M6(this,Ls,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(j8(this,Ls))return;M6(this,Ls,!0),this.setState(t=>{var n;return{...t,status:(n=t.data)!=null&&n.account?"reconnecting":"connecting"}});const u=j8(this,Bl)?[...this.connectors].sort(t=>t.id===j8(this,Bl)?-1:1):this.connectors;let e=!1;for(const t of u){if(!t.ready||!t.isAuthorized||!await t.isAuthorized())continue;const r=await t.connect();this.setState(i=>({...i,connector:t,chains:t==null?void 0:t.chains,data:r,status:"connected"})),e=!0;break}return e||this.setState(t=>({...t,data:void 0,status:"disconnected"})),M6(this,Ls,!1),this.data}setConnectors(u){this.args={...this.args,connectors:u};const e=typeof u=="function"?u():u;e.forEach(t=>t.setStorage(this.args.storage)),this.setState(t=>({...t,connectors:e}))}getPublicClient({chainId:u}={}){let e=this.publicClients.get(-1);if(e&&(e==null?void 0:e.chain.id)===u||(e=this.publicClients.get(u??-1),e))return e;const{publicClient:t}=this.args;return e=typeof t=="function"?t({chainId:u}):t,this.publicClients.set(u??-1,e),e}setPublicClient(u){var t,n;const e=(n=(t=this.data)==null?void 0:t.chain)==null?void 0:n.id;this.args={...this.args,publicClient:u},this.publicClients.clear(),this.setState(r=>({...r,publicClient:this.getPublicClient({chainId:e})}))}getWebSocketPublicClient({chainId:u}={}){let e=this.webSocketPublicClients.get(-1);if(e&&(e==null?void 0:e.chain.id)===u||(e=this.webSocketPublicClients.get(u??-1),e))return e;const{webSocketPublicClient:t}=this.args;return e=typeof t=="function"?t({chainId:u}):t,e&&this.webSocketPublicClients.set(u??-1,e),e}setWebSocketPublicClient(u){var t,n;const e=(n=(t=this.data)==null?void 0:t.chain)==null?void 0:n.id;this.args={...this.args,webSocketPublicClient:u},this.webSocketPublicClients.clear(),this.setState(r=>({...r,webSocketPublicClient:this.getWebSocketPublicClient({chainId:e})}))}setLastUsedConnector(u=null){var e;(e=this.storage)==null||e.setItem("wallet",u)}};Ls=new WeakMap;Bl=new WeakMap;bC=new WeakSet;MR=function(){const u=o=>{this.setState(s=>({...s,data:{...s.data,...o}}))},e=()=>{this.clearState()},t=o=>{this.setState(s=>({...s,error:o}))};this.store.subscribe(({connector:o})=>o,(o,s)=>{var f,l,c,d,E,p;(f=s==null?void 0:s.off)==null||f.call(s,"change",u),(l=s==null?void 0:s.off)==null||l.call(s,"disconnect",e),(c=s==null?void 0:s.off)==null||c.call(s,"error",t),o&&((d=o.on)==null||d.call(o,"change",u),(E=o.on)==null||E.call(o,"disconnect",e),(p=o.on)==null||p.call(o,"error",t))});const{publicClient:n,webSocketPublicClient:r}=this.args;(typeof n=="function"||typeof r=="function")&&this.store.subscribe(({data:o})=>{var s;return(s=o==null?void 0:o.chain)==null?void 0:s.id},o=>{this.setState(s=>({...s,publicClient:this.getPublicClient({chainId:o}),webSocketPublicClient:this.getWebSocketPublicClient({chainId:o})}))})};var gC;function sr0(u){const e=new or0(u);return gC=e,e}function nt(){if(!gC)throw new Error("No wagmi config found. Ensure you have set up a config: https://wagmi.sh/react/config");return gC}async function fr0({chainId:u,connector:e}){const t=nt(),n=t.connector;if(n&&e.id===n.id)throw new ur0;try{t.setState(i=>({...i,status:"connecting"}));const r=await e.connect({chainId:u});return t.setLastUsedConnector(e.id),t.setState(i=>({...i,connector:e,chains:e==null?void 0:e.chains,data:r,status:"connected"})),t.storage.setItem("connected",!0),{...r,connector:e}}catch(r){throw t.setState(i=>({...i,status:i.connector?"connected":"disconnected"})),r}}async function lr0(){const u=nt();u.connector&&await u.connector.disconnect(),u.clearState(),u.storage.removeItem("connected")}var cr0=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],dr0=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}];function mn({chainId:u}={}){const e=nt();return u&&e.getPublicClient({chainId:u})||e.publicClient}async function Pc({chainId:u}={}){var n,r;return await((r=(n=nt().connector)==null?void 0:n.getWalletClient)==null?void 0:r.call(n,{chainId:u}))||null}function AC({chainId:u}={}){const e=nt();return u&&e.getWebSocketPublicClient({chainId:u})||e.webSocketPublicClient}function Er0(u,e){const t=nt(),n=async()=>e(mn(u));return t.subscribe(({publicClient:i})=>i,n)}function pr0({chainId:u},e){const t=nt(),n=async({chainId:i})=>{if(u&&i&&u!==i)return;const a=await Pc({chainId:u});return nt().connector?e(a):e(null)};return t.subscribe(({data:i,connector:a})=>{var o;return{account:i==null?void 0:i.account,chainId:(o=i==null?void 0:i.chain)==null?void 0:o.id,connector:a}},n,{equalityFn:pA})}function hr0(u,e){const t=nt(),n=async()=>e(AC(u));return t.subscribe(({webSocketPublicClient:i})=>i,n)}async function jR({abi:u,address:e,args:t,chainId:n,dataSuffix:r,functionName:i,walletClient:a,...o}){const s=mn({chainId:n}),f=a??await Pc({chainId:n});if(!f)throw new ft;n&&LR({chainId:n});const{account:l,accessList:c,blockNumber:d,blockTag:E,gas:p,gasPrice:h,maxFeePerGas:g,maxPriorityFeePerGas:b,nonce:m,value:A}=OR(o),{result:y,request:B}=await s.simulateContract({abi:u,address:e,functionName:i,args:t,account:l||f.account,accessList:c,blockNumber:d,blockTag:E,dataSuffix:r,gas:p,gasPrice:h,maxFeePerGas:g,maxPriorityFeePerGas:b,nonce:m,value:A}),v=u.filter(C=>"name"in C&&C.name===i);return{mode:"prepared",request:{...B,abi:v,chainId:n},result:y}}async function Cr0({chainId:u,contracts:e,blockNumber:t,blockTag:n,...r}){const i=mn({chainId:u});if(!i.chains)throw new er0;if(u&&i.chain.id!==u)throw new Xn0({chainId:u});return i.multicall({allowFailure:r.allowFailure??!0,blockNumber:t,blockTag:n,contracts:e})}async function mr0({address:u,account:e,chainId:t,abi:n,args:r,functionName:i,blockNumber:a,blockTag:o}){return mn({chainId:t}).readContract({abi:n,address:u,account:e,functionName:i,args:r,blockNumber:a,blockTag:o})}async function br0({contracts:u,blockNumber:e,blockTag:t,...n}){const{allowFailure:r=!0}=n;try{const i=mn(),a=u.reduce((l,c,d)=>{const E=c.chainId??i.chain.id;return{...l,[E]:[...l[E]||[],{contract:c,index:d}]}},{}),o=()=>Object.entries(a).map(([l,c])=>Cr0({allowFailure:r,chainId:parseInt(l),contracts:c.map(({contract:d})=>d),blockNumber:e,blockTag:t})),s=(await Promise.all(o())).flat(),f=Object.values(a).flatMap(l=>l.map(({index:c})=>c));return s.reduce((l,c,d)=>(l&&(l[f[d]]=c),l),[])}catch(i){if(i instanceof Wd)throw i;const a=()=>u.map(o=>mr0({...o,blockNumber:e,blockTag:t}));return r?(await Promise.allSettled(a())).map(o=>o.status==="fulfilled"?{result:o.value,status:"success"}:{error:o.reason,result:void 0,status:"failure"}):await Promise.all(a())}}async function nD(u){const e=await Pc({chainId:u.chainId});if(!e)throw new ft;u.chainId&&LR({chainId:u.chainId});let t;if(u.mode==="prepared")t=u.request;else{const{chainId:r,mode:i,...a}=u;t=(await jR(a)).request}return{hash:await e.writeContract({...t,chain:u.chainId?{id:u.chainId}:null})}}async function gr0({address:u,chainId:e,formatUnits:t,token:n}){const r=nt(),i=mn({chainId:e});if(n){const f=async({abi:l})=>{const c={abi:l,address:n,chainId:e},[d,E,p]=await br0({allowFailure:!1,contracts:[{...c,functionName:"balanceOf",args:[u]},{...c,functionName:"decimals"},{...c,functionName:"symbol"}]});return{decimals:E,formatted:D1(d??"0",XF(t??E)),symbol:p,value:d}};try{return await f({abi:cr0})}catch(l){if(l instanceof Wd){const{symbol:c,...d}=await f({abi:dr0});return{symbol:yc(Ze(c,{dir:"right"})),...d}}throw l}}const a=[...r.publicClient.chains||[],...r.chains??[]],o=await i.getBalance({address:u}),s=a.find(f=>f.id===i.chain.id);return{decimals:(s==null?void 0:s.nativeCurrency.decimals)??18,formatted:D1(o??"0",XF(t??18)),symbol:(s==null?void 0:s.nativeCurrency.symbol)??"ETH",value:o}}function zR(){const{data:u,connector:e,status:t}=nt();switch(t){case"connected":return{address:u==null?void 0:u.account,connector:e,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:t};case"reconnecting":return{address:u==null?void 0:u.account,connector:e,isConnected:!!(u!=null&&u.account),isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:t};case"connecting":return{address:u==null?void 0:u.account,connector:e,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:t};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:t}}}function hA(){var r,i,a,o;const u=nt(),e=(i=(r=u.data)==null?void 0:r.chain)==null?void 0:i.id,t=u.chains??[],n=[...((a=u.publicClient)==null?void 0:a.chains)||[],...t].find(s=>s.id===e)??{id:e,name:`Chain ${e}`,network:`${e}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:e?{...n,...(o=u.data)==null?void 0:o.chain,id:e}:void 0,chains:t}}async function Ar0(u){const e=await Pc();if(!e)throw new ft;return await e.signMessage({message:u.message})}async function yr0({chainId:u}){const{connector:e}=nt();if(!e)throw new ft;if(!e.switchChain)throw new tr0({connector:e});return e.switchChain(u)}function vr0(u,{selector:e=t=>t}={}){const t=nt(),n=()=>u(zR());return t.subscribe(({data:i,connector:a,status:o})=>e({address:i==null?void 0:i.account,connector:a,status:o}),n,{equalityFn:pA})}function Br0(u,{selector:e=t=>t}={}){const t=nt(),n=()=>u(hA());return t.subscribe(({data:i,chains:a})=>{var o;return e({chainId:(o=i==null?void 0:i.chain)==null?void 0:o.id,chains:a})},n,{equalityFn:pA})}async function Fr0({name:u,chainId:e}){const{normalize:t}=await q0(()=>import("./index-jmYzeU8F.js"),__vite__mapDeps([]));return await mn({chainId:e}).getEnsAvatar({name:t(u)})}async function Dr0({address:u,chainId:e}){return mn({chainId:e}).getEnsName({address:ju(u)})}async function wr0({chainId:u}={}){return await mn({chainId:u}).getBlockNumber()}async function xr0({chainId:u,confirmations:e=1,hash:t,onReplaced:n,timeout:r=0}){const i=mn({chainId:u}),a=await i.waitForTransactionReceipt({hash:t,confirmations:e,onReplaced:n,timeout:r});if(a.status==="reverted"){const o=await i.getTransaction({hash:a.transactionHash}),s=await i.call({...o,gasPrice:o.type!=="eip1559"?o.gasPrice:void 0,maxFeePerGas:o.type==="eip1559"?o.maxFeePerGas:void 0,maxPriorityFeePerGas:o.type==="eip1559"?o.maxPriorityFeePerGas:void 0}),f=yc(`0x${s.substring(138)}`);throw new Error(f)}return a}function LR({chainId:u}){var r,i;const{chain:e,chains:t}=hA(),n=e==null?void 0:e.id;if(n&&u!==n)throw new Yn0({activeChain:((r=t.find(a=>a.id===n))==null?void 0:r.name)??`Chain ${n}`,targetChain:((i=t.find(a=>a.id===u))==null?void 0:i.name)??`Chain ${u}`})}var $R={exports:{}},UR={};/** +`))}return{chains:s,publicClient:({chainId:c})=>{const d=s.find(h=>h.id===c)??u[0],E=f[d.id];if(!E||!E[0])throw new Error(`No providers configured for chain "${d.id}"`);const p=dC({batch:t,chain:d,transport:oC(E.map(h=>DO(h,{timeout:o})),{rank:r,retryCount:i,retryDelay:a}),pollingInterval:n});return Object.assign(p,{chains:s})},webSocketPublicClient:({chainId:c})=>{const d=s.find(h=>h.id===c)??u[0],E=l[d.id];if(!E||!E[0])return;const p=dC({batch:t,chain:d,transport:oC(E.map(h=>pR(h,{timeout:o})),{rank:r,retryCount:i,retryDelay:a}),pollingInterval:n});return Object.assign(p,{chains:s})}}}var Yn0=class extends Error{constructor({activeChain:u,targetChain:e}){super(`Chain mismatch: Expected "${e}", received "${u}".`),this.name="ChainMismatchError"}},Xn0=class extends Error{constructor({chainId:u,connectorId:e}){super(`Chain "${u}" not configured${e?` for connector "${e}"`:""}.`),this.name="ChainNotConfigured"}},ur0=class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}},er0=class extends Error{constructor(){super(...arguments),this.name="ConfigChainsNotFound",this.message="No chains were found on the wagmi config. Some functions that require a chain may not work."}},tr0=class extends Error{constructor({connector:u}){super(`"${u.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}};function mC(u,e){if(u===e)return!0;if(u&&e&&typeof u=="object"&&typeof e=="object"){if(u.constructor!==e.constructor)return!1;let t,n;if(Array.isArray(u)&&Array.isArray(e)){if(t=u.length,t!=e.length)return!1;for(n=t;n--!==0;)if(!mC(u[n],e[n]))return!1;return!0}if(u.valueOf!==Object.prototype.valueOf)return u.valueOf()===e.valueOf();if(u.toString!==Object.prototype.toString)return u.toString()===e.toString();const r=Object.keys(u);if(t=r.length,t!==Object.keys(e).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,r[n]))return!1;for(n=t;n--!==0;){const i=r[n];if(i&&!mC(u[i],e[i]))return!1}return!0}return u!==u&&e!==e}var bC=(u,{find:e,replace:t})=>u&&e(u)?t(u):typeof u!="object"?u:Array.isArray(u)?u.map(n=>bC(n,{find:e,replace:t})):u instanceof Object?Object.entries(u).reduce((n,[r,i])=>({...n,[r]:bC(i,{find:e,replace:t})}),{}):u;function nr0(u){const e=JSON.parse(u);return bC(e,{find:n=>typeof n=="string"&&n.startsWith("#bigint."),replace:n=>BigInt(n.replace("#bigint.",""))})}function OR(u){return{accessList:u.accessList,account:u.account,blockNumber:u.blockNumber,blockTag:u.blockTag,data:u.data,gas:u.gas,gasPrice:u.gasPrice,maxFeePerGas:u.maxFeePerGas,maxPriorityFeePerGas:u.maxPriorityFeePerGas,nonce:u.nonce,to:u.to,value:u.value}}function rr0(u){return{accessList:u.accessList,account:u.account,data:u.data,gas:u.gas,gasPrice:u.gasPrice,maxFeePerGas:u.maxFeePerGas,maxPriorityFeePerGas:u.maxPriorityFeePerGas,nonce:u.nonce,to:u.to,value:u.value}}function uD(u){return typeof u=="number"?u:u==="wei"?0:Math.abs(aI[u])}function eD(u,e){return u.slice(0,e).join(".")||"."}function tD(u,e){const{length:t}=u;for(let n=0;n{const a=typeof i=="bigint"?`#bigint.${i.toString()}`:i;return(e==null?void 0:e(r,a))||a},n),t??void 0)}var RR={getItem:u=>"",setItem:(u,e)=>null,removeItem:u=>null};function NR({deserialize:u=nr0,key:e="wagmi",serialize:t=ar0,storage:n}){return{...n,getItem:(r,i=null)=>{const a=n.getItem(`${e}.${r}`);try{return a?u(a):i}catch(o){return console.warn(o),i}},setItem:(r,i)=>{if(i===null)n.removeItem(`${e}.${r}`);else try{n.setItem(`${e}.${r}`,t(i))}catch(a){console.error(a)}},removeItem:r=>n.removeItem(`${e}.${r}`)}}var nD="store",Ls,Bl,gC,MR,or0=class{constructor({autoConnect:u=!1,connectors:e=[new K4],publicClient:t,storage:n=NR({storage:typeof window<"u"?window.localStorage:RR}),logger:r={warn:console.warn},webSocketPublicClient:i}){var f,l;L8(this,gC),this.publicClients=new Map,this.webSocketPublicClients=new Map,L8(this,Ls,void 0),L8(this,Bl,void 0),this.args={autoConnect:u,connectors:e,logger:r,publicClient:t,storage:n,webSocketPublicClient:i};let a="disconnected",o;if(u)try{const c=n.getItem(nD),d=(f=c==null?void 0:c.state)==null?void 0:f.data;a=d!=null&&d.account?"reconnecting":"connecting",o=(l=d==null?void 0:d.chain)==null?void 0:l.id}catch{}const s=typeof e=="function"?e():e;s.forEach(c=>c.setStorage(n)),this.store=Jn0(Wn0(Kn0(()=>({connectors:s,publicClient:this.getPublicClient({chainId:o}),status:a,webSocketPublicClient:this.getWebSocketPublicClient({chainId:o})}),{name:nD,storage:n,partialize:c=>{var d,E;return{...u&&{data:{account:(d=c==null?void 0:c.data)==null?void 0:d.account,chain:(E=c==null?void 0:c.data)==null?void 0:E.chain}},chains:c==null?void 0:c.chains}},version:2}))),this.storage=n,j6(this,Bl,n==null?void 0:n.getItem("wallet")),Ln0(this,gC,MR).call(this),u&&typeof window<"u"&&setTimeout(async()=>await this.autoConnect(),0)}get chains(){return this.store.getState().chains}get connectors(){return this.store.getState().connectors}get connector(){return this.store.getState().connector}get data(){return this.store.getState().data}get error(){return this.store.getState().error}get lastUsedChainId(){var u,e;return(e=(u=this.data)==null?void 0:u.chain)==null?void 0:e.id}get publicClient(){return this.store.getState().publicClient}get status(){return this.store.getState().status}get subscribe(){return this.store.subscribe}get webSocketPublicClient(){return this.store.getState().webSocketPublicClient}setState(u){const e=typeof u=="function"?u(this.store.getState()):u;this.store.setState(e,!0)}clearState(){this.setState(u=>({...u,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"}))}async destroy(){var u,e;this.connector&&await((e=(u=this.connector).disconnect)==null?void 0:e.call(u)),j6(this,Ls,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(z8(this,Ls))return;j6(this,Ls,!0),this.setState(t=>{var n;return{...t,status:(n=t.data)!=null&&n.account?"reconnecting":"connecting"}});const u=z8(this,Bl)?[...this.connectors].sort(t=>t.id===z8(this,Bl)?-1:1):this.connectors;let e=!1;for(const t of u){if(!t.ready||!t.isAuthorized||!await t.isAuthorized())continue;const r=await t.connect();this.setState(i=>({...i,connector:t,chains:t==null?void 0:t.chains,data:r,status:"connected"})),e=!0;break}return e||this.setState(t=>({...t,data:void 0,status:"disconnected"})),j6(this,Ls,!1),this.data}setConnectors(u){this.args={...this.args,connectors:u};const e=typeof u=="function"?u():u;e.forEach(t=>t.setStorage(this.args.storage)),this.setState(t=>({...t,connectors:e}))}getPublicClient({chainId:u}={}){let e=this.publicClients.get(-1);if(e&&(e==null?void 0:e.chain.id)===u||(e=this.publicClients.get(u??-1),e))return e;const{publicClient:t}=this.args;return e=typeof t=="function"?t({chainId:u}):t,this.publicClients.set(u??-1,e),e}setPublicClient(u){var t,n;const e=(n=(t=this.data)==null?void 0:t.chain)==null?void 0:n.id;this.args={...this.args,publicClient:u},this.publicClients.clear(),this.setState(r=>({...r,publicClient:this.getPublicClient({chainId:e})}))}getWebSocketPublicClient({chainId:u}={}){let e=this.webSocketPublicClients.get(-1);if(e&&(e==null?void 0:e.chain.id)===u||(e=this.webSocketPublicClients.get(u??-1),e))return e;const{webSocketPublicClient:t}=this.args;return e=typeof t=="function"?t({chainId:u}):t,e&&this.webSocketPublicClients.set(u??-1,e),e}setWebSocketPublicClient(u){var t,n;const e=(n=(t=this.data)==null?void 0:t.chain)==null?void 0:n.id;this.args={...this.args,webSocketPublicClient:u},this.webSocketPublicClients.clear(),this.setState(r=>({...r,webSocketPublicClient:this.getWebSocketPublicClient({chainId:e})}))}setLastUsedConnector(u=null){var e;(e=this.storage)==null||e.setItem("wallet",u)}};Ls=new WeakMap;Bl=new WeakMap;gC=new WeakSet;MR=function(){const u=o=>{this.setState(s=>({...s,data:{...s.data,...o}}))},e=()=>{this.clearState()},t=o=>{this.setState(s=>({...s,error:o}))};this.store.subscribe(({connector:o})=>o,(o,s)=>{var f,l,c,d,E,p;(f=s==null?void 0:s.off)==null||f.call(s,"change",u),(l=s==null?void 0:s.off)==null||l.call(s,"disconnect",e),(c=s==null?void 0:s.off)==null||c.call(s,"error",t),o&&((d=o.on)==null||d.call(o,"change",u),(E=o.on)==null||E.call(o,"disconnect",e),(p=o.on)==null||p.call(o,"error",t))});const{publicClient:n,webSocketPublicClient:r}=this.args;(typeof n=="function"||typeof r=="function")&&this.store.subscribe(({data:o})=>{var s;return(s=o==null?void 0:o.chain)==null?void 0:s.id},o=>{this.setState(s=>({...s,publicClient:this.getPublicClient({chainId:o}),webSocketPublicClient:this.getWebSocketPublicClient({chainId:o})}))})};var AC;function sr0(u){const e=new or0(u);return AC=e,e}function nt(){if(!AC)throw new Error("No wagmi config found. Ensure you have set up a config: https://wagmi.sh/react/config");return AC}async function fr0({chainId:u,connector:e}){const t=nt(),n=t.connector;if(n&&e.id===n.id)throw new ur0;try{t.setState(i=>({...i,status:"connecting"}));const r=await e.connect({chainId:u});return t.setLastUsedConnector(e.id),t.setState(i=>({...i,connector:e,chains:e==null?void 0:e.chains,data:r,status:"connected"})),t.storage.setItem("connected",!0),{...r,connector:e}}catch(r){throw t.setState(i=>({...i,status:i.connector?"connected":"disconnected"})),r}}async function lr0(){const u=nt();u.connector&&await u.connector.disconnect(),u.clearState(),u.storage.removeItem("connected")}var cr0=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],dr0=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}];function mn({chainId:u}={}){const e=nt();return u&&e.getPublicClient({chainId:u})||e.publicClient}async function Ic({chainId:u}={}){var n,r;return await((r=(n=nt().connector)==null?void 0:n.getWalletClient)==null?void 0:r.call(n,{chainId:u}))||null}function yC({chainId:u}={}){const e=nt();return u&&e.getWebSocketPublicClient({chainId:u})||e.webSocketPublicClient}function Er0(u,e){const t=nt(),n=async()=>e(mn(u));return t.subscribe(({publicClient:i})=>i,n)}function pr0({chainId:u},e){const t=nt(),n=async({chainId:i})=>{if(u&&i&&u!==i)return;const a=await Ic({chainId:u});return nt().connector?e(a):e(null)};return t.subscribe(({data:i,connector:a})=>{var o;return{account:i==null?void 0:i.account,chainId:(o=i==null?void 0:i.chain)==null?void 0:o.id,connector:a}},n,{equalityFn:hA})}function hr0(u,e){const t=nt(),n=async()=>e(yC(u));return t.subscribe(({webSocketPublicClient:i})=>i,n)}async function jR({abi:u,address:e,args:t,chainId:n,dataSuffix:r,functionName:i,walletClient:a,...o}){const s=mn({chainId:n}),f=a??await Ic({chainId:n});if(!f)throw new ft;n&&LR({chainId:n});const{account:l,accessList:c,blockNumber:d,blockTag:E,gas:p,gasPrice:h,maxFeePerGas:g,maxPriorityFeePerGas:b,nonce:m,value:A}=OR(o),{result:y,request:B}=await s.simulateContract({abi:u,address:e,functionName:i,args:t,account:l||f.account,accessList:c,blockNumber:d,blockTag:E,dataSuffix:r,gas:p,gasPrice:h,maxFeePerGas:g,maxPriorityFeePerGas:b,nonce:m,value:A}),v=u.filter(C=>"name"in C&&C.name===i);return{mode:"prepared",request:{...B,abi:v,chainId:n},result:y}}async function Cr0({chainId:u,contracts:e,blockNumber:t,blockTag:n,...r}){const i=mn({chainId:u});if(!i.chains)throw new er0;if(u&&i.chain.id!==u)throw new Xn0({chainId:u});return i.multicall({allowFailure:r.allowFailure??!0,blockNumber:t,blockTag:n,contracts:e})}async function mr0({address:u,account:e,chainId:t,abi:n,args:r,functionName:i,blockNumber:a,blockTag:o}){return mn({chainId:t}).readContract({abi:n,address:u,account:e,functionName:i,args:r,blockNumber:a,blockTag:o})}async function br0({contracts:u,blockNumber:e,blockTag:t,...n}){const{allowFailure:r=!0}=n;try{const i=mn(),a=u.reduce((l,c,d)=>{const E=c.chainId??i.chain.id;return{...l,[E]:[...l[E]||[],{contract:c,index:d}]}},{}),o=()=>Object.entries(a).map(([l,c])=>Cr0({allowFailure:r,chainId:parseInt(l),contracts:c.map(({contract:d})=>d),blockNumber:e,blockTag:t})),s=(await Promise.all(o())).flat(),f=Object.values(a).flatMap(l=>l.map(({index:c})=>c));return s.reduce((l,c,d)=>(l&&(l[f[d]]=c),l),[])}catch(i){if(i instanceof qd)throw i;const a=()=>u.map(o=>mr0({...o,blockNumber:e,blockTag:t}));return r?(await Promise.allSettled(a())).map(o=>o.status==="fulfilled"?{result:o.value,status:"success"}:{error:o.reason,result:void 0,status:"failure"}):await Promise.all(a())}}async function rD(u){const e=await Ic({chainId:u.chainId});if(!e)throw new ft;u.chainId&&LR({chainId:u.chainId});let t;if(u.mode==="prepared")t=u.request;else{const{chainId:r,mode:i,...a}=u;t=(await jR(a)).request}return{hash:await e.writeContract({...t,chain:u.chainId?{id:u.chainId}:null})}}async function gr0({address:u,chainId:e,formatUnits:t,token:n}){const r=nt(),i=mn({chainId:e});if(n){const f=async({abi:l})=>{const c={abi:l,address:n,chainId:e},[d,E,p]=await br0({allowFailure:!1,contracts:[{...c,functionName:"balanceOf",args:[u]},{...c,functionName:"decimals"},{...c,functionName:"symbol"}]});return{decimals:E,formatted:w1(d??"0",uD(t??E)),symbol:p,value:d}};try{return await f({abi:cr0})}catch(l){if(l instanceof qd){const{symbol:c,...d}=await f({abi:dr0});return{symbol:vc(Ze(c,{dir:"right"})),...d}}throw l}}const a=[...r.publicClient.chains||[],...r.chains??[]],o=await i.getBalance({address:u}),s=a.find(f=>f.id===i.chain.id);return{decimals:(s==null?void 0:s.nativeCurrency.decimals)??18,formatted:w1(o??"0",uD(t??18)),symbol:(s==null?void 0:s.nativeCurrency.symbol)??"ETH",value:o}}function zR(){const{data:u,connector:e,status:t}=nt();switch(t){case"connected":return{address:u==null?void 0:u.account,connector:e,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:t};case"reconnecting":return{address:u==null?void 0:u.account,connector:e,isConnected:!!(u!=null&&u.account),isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:t};case"connecting":return{address:u==null?void 0:u.account,connector:e,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:t};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:t}}}function CA(){var r,i,a,o;const u=nt(),e=(i=(r=u.data)==null?void 0:r.chain)==null?void 0:i.id,t=u.chains??[],n=[...((a=u.publicClient)==null?void 0:a.chains)||[],...t].find(s=>s.id===e)??{id:e,name:`Chain ${e}`,network:`${e}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:e?{...n,...(o=u.data)==null?void 0:o.chain,id:e}:void 0,chains:t}}async function Ar0(u){const e=await Ic();if(!e)throw new ft;return await e.signMessage({message:u.message})}async function yr0({chainId:u}){const{connector:e}=nt();if(!e)throw new ft;if(!e.switchChain)throw new tr0({connector:e});return e.switchChain(u)}function vr0(u,{selector:e=t=>t}={}){const t=nt(),n=()=>u(zR());return t.subscribe(({data:i,connector:a,status:o})=>e({address:i==null?void 0:i.account,connector:a,status:o}),n,{equalityFn:hA})}function Br0(u,{selector:e=t=>t}={}){const t=nt(),n=()=>u(CA());return t.subscribe(({data:i,chains:a})=>{var o;return e({chainId:(o=i==null?void 0:i.chain)==null?void 0:o.id,chains:a})},n,{equalityFn:hA})}async function Fr0({name:u,chainId:e}){const{normalize:t}=await q0(()=>import("./index-c-KTKmT5.js"),__vite__mapDeps([]));return await mn({chainId:e}).getEnsAvatar({name:t(u)})}async function Dr0({address:u,chainId:e}){return mn({chainId:e}).getEnsName({address:ju(u)})}async function wr0({chainId:u}={}){return await mn({chainId:u}).getBlockNumber()}async function xr0({chainId:u,confirmations:e=1,hash:t,onReplaced:n,timeout:r=0}){const i=mn({chainId:u}),a=await i.waitForTransactionReceipt({hash:t,confirmations:e,onReplaced:n,timeout:r});if(a.status==="reverted"){const o=await i.getTransaction({hash:a.transactionHash}),s=await i.call({...o,gasPrice:o.type!=="eip1559"?o.gasPrice:void 0,maxFeePerGas:o.type==="eip1559"?o.maxFeePerGas:void 0,maxPriorityFeePerGas:o.type==="eip1559"?o.maxPriorityFeePerGas:void 0}),f=vc(`0x${s.substring(138)}`);throw new Error(f)}return a}function LR({chainId:u}){var r,i;const{chain:e,chains:t}=CA(),n=e==null?void 0:e.id;if(n&&u!==n)throw new Yn0({activeChain:((r=t.find(a=>a.id===n))==null?void 0:r.name)??`Chain ${n}`,targetChain:((i=t.find(a=>a.id===u))==null?void 0:i.name)??`Chain ${u}`})}var $R={exports:{}},UR={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -199,8 +199,8 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var oE=w,kr0=tg;function _r0(u,e){return u===e&&(u!==0||1/u===1/e)||u!==u&&e!==e}var Sr0=typeof Object.is=="function"?Object.is:_r0,Tr0=kr0.useSyncExternalStore,Pr0=oE.useRef,Ir0=oE.useEffect,Or0=oE.useMemo,Rr0=oE.useDebugValue;UR.useSyncExternalStoreWithSelector=function(u,e,t,n,r){var i=Pr0(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=Or0(function(){function s(E){if(!f){if(f=!0,l=E,E=n(E),r!==void 0&&a.hasValue){var p=a.value;if(r(p,E))return c=p}return c=E}if(p=c,Sr0(l,E))return p;var h=n(E);return r!==void 0&&r(p,h)?p:(l=E,c=h)}var f=!1,l,c,d=t===void 0?null:t;return[function(){return s(e())},d===null?void 0:function(){return s(d())}]},[e,t,n,r]);var o=Tr0(u,i[0],i[1]);return Ir0(function(){a.hasValue=!0,a.value=o},[o]),Rr0(o),o};$R.exports=UR;var CA=$R.exports;function Nr0({queryClient:u=new HJ({defaultOptions:{queries:{cacheTime:1e3*60*60*24,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}}),storage:e=NR({storage:typeof window<"u"&&window.localStorage?window.localStorage:RR}),persister:t=typeof window<"u"?SJ({key:"cache",storage:e,serialize:r=>r,deserialize:r=>r}):void 0,...n}){const r=sr0({...n,storage:e});return t&&BZ({queryClient:u,persister:t,dehydrateOptions:{shouldDehydrateQuery:i=>i.cacheTime!==0&&i.queryKey[0].persist!==!1}}),Object.assign(r,{queryClient:u})}var WR=w.createContext(void 0),sE=w.createContext(void 0);function Mr0({children:u,config:e}){return w.createElement(WR.Provider,{children:w.createElement(dZ,{children:u,client:e.queryClient,context:sE}),value:e})}function fE(){const u=w.useContext(WR);if(!u)throw new Error(["`useConfig` must be used within `WagmiConfig`.\n","Read more: https://wagmi.sh/react/WagmiConfig"].join(` -`));return u}var jr0=tg.useSyncExternalStore;function zr0(u){return Array.isArray(u)}function Lr0(u){if(!rD(u))return!1;const e=u.constructor;if(typeof e>"u")return!0;const t=e.prototype;return!(!rD(t)||!t.hasOwnProperty("isPrototypeOf"))}function rD(u){return Object.prototype.toString.call(u)==="[object Object]"}function $r0(u,e,t){return zr0(u)?typeof e=="function"?{...t,queryKey:u,queryFn:e}:{...e,queryKey:u}:u}function Ur0(u){return JSON.stringify(u,(e,t)=>Lr0(t)?Object.keys(t).sort().reduce((n,r)=>(n[r]=t[r],n),{}):typeof t=="bigint"?t.toString():t)}function Wr0(u,e){return typeof u=="function"?u(...e):!!u}function qr0(u,e){const t={};return Object.keys(u).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(e.trackedProps.add(n),u[n])})}),t}function Hr0(u,e){const t=ng({context:u.context}),n=EZ(),r=CZ(),i=t.defaultQueryOptions({...u,queryKeyHashFn:Ur0});i._optimisticResults=n?"isRestoring":"optimistic",i.onError&&(i.onError=Hu.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=Hu.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=Hu.batchCalls(i.onSettled)),i.suspense&&typeof i.staleTime!="number"&&(i.staleTime=1e3),(i.suspense||i.useErrorBoundary)&&(r.isReset()||(i.retryOnMount=!1));const[a]=w.useState(()=>new e(t,i)),o=a.getOptimisticResult(i);if(jr0(w.useCallback(c=>n?()=>{}:a.subscribe(Hu.batchCalls(c)),[a,n]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),w.useEffect(()=>{r.clearReset()},[r]),w.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),i.suspense&&o.isLoading&&o.isFetching&&!n)throw a.fetchOptimistic(i).then(({data:c})=>{var d,E;(d=i.onSuccess)==null||d.call(i,c),(E=i.onSettled)==null||E.call(i,c,null)}).catch(c=>{var d,E;r.clearReset(),(d=i.onError)==null||d.call(i,c),(E=i.onSettled)==null||E.call(i,void 0,c)});if(o.isError&&!r.isReset()&&!o.isFetching&&Wr0(i.useErrorBoundary,[o.error,a.getCurrentQuery()]))throw o.error;const s=o.status==="loading"&&o.fetchStatus==="idle"?"idle":o.status,f=s==="idle",l=s==="loading"&&o.fetchStatus==="fetching";return{...o,defaultedOptions:i,isIdle:f,isLoading:l,observer:a,status:s}}function Ic(u,e,t){const n=RP(u,e,t);return bZ({context:sE,...n})}function Es(u,e,t){const n=$r0(u,e,t),r=Hr0({context:sE,...n},GJ),i={data:r.data,error:r.error,fetchStatus:r.fetchStatus,isError:r.isError,isFetched:r.isFetched,isFetchedAfterMount:r.isFetchedAfterMount,isFetching:r.isFetching,isIdle:r.isIdle,isLoading:r.isLoading,isRefetching:r.isRefetching,isSuccess:r.isSuccess,refetch:r.refetch,status:r.status,internal:{dataUpdatedAt:r.dataUpdatedAt,errorUpdatedAt:r.errorUpdatedAt,failureCount:r.failureCount,isFetchedAfterMount:r.isFetchedAfterMount,isLoadingError:r.isLoadingError,isPaused:r.isPaused,isPlaceholderData:r.isPlaceholderData,isPreviousData:r.isPreviousData,isRefetchError:r.isRefetchError,isStale:r.isStale,remove:r.remove}};return r.defaultedOptions.notifyOnChangeProps?i:qr0(i,r.observer)}var mA=()=>ng({context:sE});function lE({chainId:u}={}){return CA.useSyncExternalStoreWithSelector(e=>Er0({chainId:u},e),()=>mn({chainId:u}),()=>mn({chainId:u}),e=>e,(e,t)=>e.uid===t.uid)}function L8({chainId:u}){return[{entity:"walletClient",chainId:u,persist:!1}]}function Gr0({queryKey:[{chainId:u}]}){return Pc({chainId:u})}function Vr0({chainId:u,suspense:e,onError:t,onSettled:n,onSuccess:r}={}){const{connector:i}=Bt(),a=x3({chainId:u}),o=Es(L8({chainId:a}),Gr0,{cacheTime:0,enabled:!!i,staleTime:1/0,suspense:e,onError:t,onSettled:n,onSuccess:r}),s=mA();return w.useEffect(()=>pr0({chainId:a},l=>{l?s.invalidateQueries(L8({chainId:a})):s.removeQueries(L8({chainId:a}))}),[s,a]),o}function Kr0({chainId:u}={}){return CA.useSyncExternalStoreWithSelector(e=>hr0({chainId:u},e),()=>AC({chainId:u}),()=>AC({chainId:u}),e=>e,(e,t)=>(e==null?void 0:e.uid)===(t==null?void 0:t.uid))}function x3({chainId:u}={}){return lE({chainId:u}).chain.id}function Qr0(){const[,u]=w.useReducer(e=>e+1,0);return u}function iD({chainId:u,scopeKey:e}){return[{entity:"blockNumber",chainId:u,scopeKey:e}]}function Jr0({queryKey:[{chainId:u}]}){return wr0({chainId:u})}function Zr0({cacheTime:u=0,chainId:e,enabled:t=!0,scopeKey:n,staleTime:r,suspense:i,watch:a=!1,onBlock:o,onError:s,onSettled:f,onSuccess:l}={}){const c=x3({chainId:e}),d=lE({chainId:c}),E=Kr0({chainId:c}),p=mA();return w.useEffect(()=>!t||!a&&!o?void 0:(E??d).watchBlockNumber({onBlockNumber:b=>{a&&p.setQueryData(iD({chainId:c,scopeKey:n}),b),o&&o(b)},emitOnBegin:!0}),[c,n,o,d,p,a,E,t]),Es(iD({scopeKey:n,chainId:c}),Jr0,{cacheTime:u,enabled:t,staleTime:r,suspense:i,onError:s,onSettled:f,onSuccess:l})}function Yr0({chainId:u,enabled:e,queryKey:t}){const n=mA(),r=w.useCallback(()=>n.invalidateQueries({queryKey:t},{cancelRefetch:!1}),[n,t]);Zr0({chainId:u,enabled:e,onBlock:e?r:void 0,scopeKey:e?void 0:"idle"})}var $8=u=>typeof u=="object"&&!Array.isArray(u);function qR(u,e,t=e,n=CC){const r=w.useRef([]),i=CA.useSyncExternalStoreWithSelector(u,e,t,a=>a,(a,o)=>{if($8(a)&&$8(o)&&r.current.length){for(const s of r.current)if(!n(a[s],o[s]))return!1;return!0}return n(a,o)});if($8(i)){const a={...i};return Object.defineProperties(a,Object.entries(a).reduce((o,[s,f])=>({...o,[s]:{configurable:!1,enumerable:!0,get:()=>(r.current.includes(s)||r.current.push(s),f)}}),{})),a}return i}function Bt({onConnect:u,onDisconnect:e}={}){const t=fE(),n=w.useCallback(o=>vr0(o),[t]),r=qR(n,zR),i=w.useRef(),a=i.current;return w.useEffect(()=>{(a==null?void 0:a.status)!=="connected"&&r.status==="connected"&&(u==null||u({address:r.address,connector:r.connector,isReconnected:(a==null?void 0:a.status)==="reconnecting"||(a==null?void 0:a.status)===void 0})),(a==null?void 0:a.status)==="connected"&&r.status==="disconnected"&&(e==null||e()),i.current=r},[u,e,a,r]),r}function Xr0({address:u,chainId:e,formatUnits:t,scopeKey:n,token:r}){return[{entity:"balance",address:u,chainId:e,formatUnits:t,scopeKey:n,token:r}]}function ui0({queryKey:[{address:u,chainId:e,formatUnits:t,token:n}]}){if(!u)throw new Error("address is required");return gr0({address:u,chainId:e,formatUnits:t,token:n})}function HR({address:u,cacheTime:e,chainId:t,enabled:n=!0,formatUnits:r,scopeKey:i,staleTime:a,suspense:o,token:s,watch:f,onError:l,onSettled:c,onSuccess:d}={}){const E=x3({chainId:t}),p=w.useMemo(()=>Xr0({address:u,chainId:E,formatUnits:r,scopeKey:i,token:s}),[u,E,r,i,s]),h=Es(p,ui0,{cacheTime:e,enabled:!!(n&&u),staleTime:a,suspense:o,onError:l,onSettled:c,onSuccess:d});return Yr0({chainId:E,enabled:!!(n&&f&&u),queryKey:p}),h}var ei0=u=>[{entity:"connect",...u}],ti0=u=>{const{connector:e,chainId:t}=u;if(!e)throw new Error("connector is required");return fr0({connector:e,chainId:t})};function ni0({chainId:u,connector:e,onError:t,onMutate:n,onSettled:r,onSuccess:i}={}){const a=fE(),{data:o,error:s,isError:f,isIdle:l,isLoading:c,isSuccess:d,mutate:E,mutateAsync:p,reset:h,status:g,variables:b}=Ic(ei0({connector:e,chainId:u}),ti0,{onError:t,onMutate:n,onSettled:r,onSuccess:i}),m=w.useCallback(y=>E({chainId:(y==null?void 0:y.chainId)??u,connector:(y==null?void 0:y.connector)??e}),[u,e,E]),A=w.useCallback(y=>p({chainId:(y==null?void 0:y.chainId)??u,connector:(y==null?void 0:y.connector)??e}),[u,e,p]);return{connect:m,connectAsync:A,connectors:a.connectors,data:o,error:s,isError:f,isIdle:l,isLoading:c,isSuccess:d,pendingConnector:b==null?void 0:b.connector,reset:h,status:g,variables:b}}var ri0=[{entity:"disconnect"}],ii0=()=>lr0();function bA({onError:u,onMutate:e,onSettled:t,onSuccess:n}={}){const{error:r,isError:i,isIdle:a,isLoading:o,isSuccess:s,mutate:f,mutateAsync:l,reset:c,status:d}=Ic(ri0,ii0,{...u?{onError(E,p,h){u(E,h)}}:{},onMutate:e,...t?{onSettled(E,p,h,g){t(p,g)}}:{},...n?{onSuccess(E,p,h){n(h)}}:{}});return{disconnect:f,disconnectAsync:l,error:r,isError:i,isIdle:a,isLoading:o,isSuccess:s,reset:c,status:d}}function ka(){const u=fE(),e=w.useCallback(t=>Br0(t),[u]);return qR(e,hA)}var ai0=u=>[{entity:"signMessage",...u}],oi0=u=>{const{message:e}=u;if(!e)throw new Error("message is required");return Ar0({message:e})};function si0({message:u,onError:e,onMutate:t,onSettled:n,onSuccess:r}={}){const{data:i,error:a,isError:o,isIdle:s,isLoading:f,isSuccess:l,mutate:c,mutateAsync:d,reset:E,status:p,variables:h}=Ic(ai0({message:u}),oi0,{onError:e,onMutate:t,onSettled:n,onSuccess:r}),g=w.useCallback(m=>c(m||{message:u}),[u,c]),b=w.useCallback(m=>d(m||{message:u}),[u,d]);return{data:i,error:a,isError:o,isIdle:s,isLoading:f,isSuccess:l,reset:E,signMessage:g,signMessageAsync:b,status:p,variables:h}}var fi0=u=>[{entity:"switchNetwork",...u}],li0=u=>{const{chainId:e}=u;if(!e)throw new Error("chainId is required");return yr0({chainId:e})};function ci0({chainId:u,throwForSwitchChainNotSupported:e,onError:t,onMutate:n,onSettled:r,onSuccess:i}={}){var D;const a=fE(),o=Qr0(),{data:s,error:f,isError:l,isIdle:c,isLoading:d,isSuccess:E,mutate:p,mutateAsync:h,reset:g,status:b,variables:m}=Ic(fi0({chainId:u}),li0,{onError:t,onMutate:n,onSettled:r,onSuccess:i}),A=w.useCallback(S=>p({chainId:S??u}),[u,p]),y=w.useCallback(S=>h({chainId:S??u}),[u,h]);w.useEffect(()=>a.subscribe(({chains:x,connector:L})=>({chains:x,connector:L}),o),[a,o]);let B,v;const C=!!((D=a.connector)!=null&&D.switchChain);return(e||C)&&(B=A,v=y),{chains:a.chains??[],data:s,error:f,isError:l,isIdle:c,isLoading:d,isSuccess:E,pendingChainId:m==null?void 0:m.chainId,reset:g,status:b,switchNetwork:B,switchNetworkAsync:v,variables:m}}function di0({address:u,abi:e,functionName:t,...n}){const{args:r,accessList:i,account:a,dataSuffix:o,gas:s,gasPrice:f,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:d,request:E,value:p}=n;return[{entity:"writeContract",address:u,args:r,abi:e,accessList:i,account:a,dataSuffix:o,functionName:t,gas:s,gasPrice:f,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:d,request:E,value:p}]}function Ei0(u){if(u.mode==="prepared"){if(!u.request)throw new Error("request is required");return nD({mode:"prepared",request:u.request})}if(!u.address)throw new Error("address is required");if(!u.abi)throw new Error("abi is required");if(!u.functionName)throw new Error("functionName is required");return nD({address:u.address,args:u.args,chainId:u.chainId,abi:u.abi,functionName:u.functionName,accessList:u.accessList,account:u.account,dataSuffix:u.dataSuffix,gas:u.gas,gasPrice:u.gasPrice,maxFeePerGas:u.maxFeePerGas,maxPriorityFeePerGas:u.maxPriorityFeePerGas,nonce:u.nonce,value:u.value})}function lf(u){const{address:e,abi:t,args:n,chainId:r,functionName:i,mode:a,request:o,dataSuffix:s}=u,{accessList:f,account:l,gas:c,gasPrice:d,maxFeePerGas:E,maxPriorityFeePerGas:p,nonce:h,value:g}=rr0(u),{data:b,error:m,isError:A,isIdle:y,isLoading:B,isSuccess:v,mutate:C,mutateAsync:D,reset:S,status:x,variables:L}=Ic(di0({address:e,abi:t,functionName:i,chainId:r,mode:a,args:n,accessList:f,account:l,dataSuffix:s,gas:c,gasPrice:d,maxFeePerGas:E,maxPriorityFeePerGas:p,nonce:h,request:o,value:g}),Ei0,{onError:u.onError,onMutate:u.onMutate,onSettled:u.onSettled,onSuccess:u.onSuccess}),Y=w.useMemo(()=>u.mode==="prepared"?o?()=>C({mode:"prepared",request:u.request,chainId:u.chainId}):void 0:X=>C({address:e,args:n,abi:t,functionName:i,chainId:r,accessList:f,account:l,dataSuffix:s,gas:c,gasPrice:d,maxFeePerGas:E,maxPriorityFeePerGas:p,nonce:h,value:g,...X}),[f,l,t,e,n,r,u.chainId,u.mode,u.request,s,i,c,d,E,p,C,h,o,g]),G=w.useMemo(()=>u.mode==="prepared"?o?()=>D({mode:"prepared",request:u.request}):void 0:X=>D({address:e,args:n,abi:t,chainId:r,functionName:i,accessList:f,account:l,dataSuffix:s,gas:c,gasPrice:d,maxFeePerGas:E,maxPriorityFeePerGas:p,nonce:h,value:g,...X}),[f,l,t,e,n,r,u.mode,u.request,s,i,c,d,E,p,D,h,o,g]);return{data:b,error:m,isError:A,isIdle:y,isLoading:B,isSuccess:v,reset:S,status:x,variables:L,write:Y,writeAsync:G}}function pi0({accessList:u,account:e,activeChainId:t,args:n,address:r,blockNumber:i,blockTag:a,chainId:o,dataSuffix:s,functionName:f,gas:l,gasPrice:c,maxFeePerGas:d,maxPriorityFeePerGas:E,nonce:p,scopeKey:h,walletClientAddress:g,value:b}){return[{entity:"prepareContractTransaction",accessList:u,account:e,activeChainId:t,address:r,args:n,blockNumber:i,blockTag:a,chainId:o,dataSuffix:s,functionName:f,gas:l,gasPrice:c,maxFeePerGas:d,maxPriorityFeePerGas:E,nonce:p,scopeKey:h,walletClientAddress:g,value:b}]}function hi0({abi:u,walletClient:e}){return({queryKey:[{accessList:t,account:n,args:r,address:i,blockNumber:a,blockTag:o,chainId:s,dataSuffix:f,functionName:l,gas:c,gasPrice:d,maxFeePerGas:E,maxPriorityFeePerGas:p,nonce:h,value:g}]})=>{if(!u)throw new Error("abi is required");if(!i)throw new Error("address is required");if(!l)throw new Error("functionName is required");return jR({abi:u,accessList:t,account:n,args:r,address:i,blockNumber:a,blockTag:o,chainId:s,dataSuffix:f,functionName:l,gas:c,gasPrice:d,maxFeePerGas:E,maxPriorityFeePerGas:p,nonce:h,walletClient:e,value:g})}}function cf({address:u,abi:e,functionName:t,chainId:n,args:r,cacheTime:i,dataSuffix:a,enabled:o=!0,scopeKey:s,staleTime:f,suspense:l,onError:c,onSettled:d,onSuccess:E,...p}={}){const{chain:h}=ka(),{data:g}=Vr0({chainId:n}),{accessList:b,account:m,blockNumber:A,blockTag:y,gas:B,gasPrice:v,maxFeePerGas:C,maxPriorityFeePerGas:D,nonce:S,value:x}=OR(p),L=Es(pi0({accessList:b,account:m,activeChainId:h==null?void 0:h.id,address:u,args:r,blockNumber:A,blockTag:y,chainId:n,dataSuffix:a,functionName:t,gas:B,gasPrice:v,maxFeePerGas:C,maxPriorityFeePerGas:D,nonce:S,scopeKey:s,walletClientAddress:g==null?void 0:g.account.address,value:x}),hi0({abi:e,walletClient:g}),{cacheTime:i,enabled:!!(o&&e&&u&&t&&g),staleTime:f,suspense:l,onError:c,onSettled:d,onSuccess:E});return Object.assign(L,{config:{chainId:n,mode:"prepared",request:void 0,...L.data}})}function Ci0({name:u,chainId:e,scopeKey:t}){return[{entity:"ensAvatar",name:u,chainId:e,scopeKey:t}]}function mi0({queryKey:[{name:u,chainId:e}]}){if(!u)throw new Error("name is required");return Fr0({name:u,chainId:e})}function bi0({cacheTime:u,chainId:e,enabled:t=!0,name:n,scopeKey:r,staleTime:i=1e3*60*60*24,suspense:a,onError:o,onSettled:s,onSuccess:f}={}){const l=x3({chainId:e});return Es(Ci0({name:n,chainId:l,scopeKey:r}),mi0,{cacheTime:u,enabled:!!(t&&n&&l),staleTime:i,suspense:a,onError:o,onSettled:s,onSuccess:f})}function gi0({address:u,chainId:e,scopeKey:t}){return[{entity:"ensName",address:u,chainId:e,scopeKey:t}]}function Ai0({queryKey:[{address:u,chainId:e}]}){if(!u)throw new Error("address is required");return Dr0({address:u,chainId:e})}function yi0({address:u,cacheTime:e,chainId:t,enabled:n=!0,scopeKey:r,staleTime:i=1e3*60*60*24,suspense:a,onError:o,onSettled:s,onSuccess:f}={}){const l=x3({chainId:t});return Es(gi0({address:u,chainId:l,scopeKey:r}),Ai0,{cacheTime:e,enabled:!!(n&&u&&l),staleTime:i,suspense:a,onError:o,onSettled:s,onSuccess:f})}function vi0({confirmations:u,chainId:e,hash:t,scopeKey:n,timeout:r}){return[{entity:"waitForTransaction",confirmations:u,chainId:e,hash:t,scopeKey:n,timeout:r}]}function Bi0({onReplaced:u}){return({queryKey:[{chainId:e,confirmations:t,hash:n,timeout:r}]})=>{if(!n)throw new Error("hash is required");return xr0({chainId:e,confirmations:t,hash:n,onReplaced:u,timeout:r})}}function df({chainId:u,confirmations:e,hash:t,timeout:n,cacheTime:r,enabled:i=!0,scopeKey:a,staleTime:o,suspense:s,onError:f,onReplaced:l,onSettled:c,onSuccess:d}={}){const E=x3({chainId:u});return Es(vi0({chainId:E,confirmations:e,hash:t,scopeKey:a,timeout:n}),Bi0({onReplaced:l}),{cacheTime:r,enabled:!!(i&&t),staleTime:o,suspense:s,onError:f,onSettled:c,onSuccess:d})}function GR(u){var e,t,n="";if(typeof u=="string"||typeof u=="number")n+=u;else if(typeof u=="object")if(Array.isArray(u))for(e=0;e-1}var vo0=yo0,Bo0=pE;function Fo0(u,e){var t=this.__data__,n=Bo0(t,u);return n<0?(++this.size,t.push([u,e])):t[n][1]=e,this}var Do0=Fo0,wo0=so0,xo0=Co0,ko0=go0,_o0=vo0,So0=Do0;function _3(u){var e=-1,t=u==null?0:u.length;for(this.clear();++e-1&&u%1==0&&u-1&&u%1==0&&u<=Xs0}var xA=uf0,ef0=BA,tf0=wA,nf0=Ar,rf0=mE,if0=xA,af0=jc;function of0(u,e,t){e=ef0(e,u);for(var n=-1,r=e.length,i=!1;++n-1}var Xf0=Yf0;function u40(u,e,t){for(var n=-1,r=u==null?0:u.length;++n=A40){var f=e?null:b40(u);if(f)return g40(f);a=!1,r=m40,s=new p40}else s=e?[]:o;u:for(;++n{const o=[],s=[];return o.push(a),a||o.push(i.locale),i.enableFallback&&o.push(i.defaultLocale),o.filter(Boolean).map(f=>f.toString()).forEach(function(f){if(s.includes(f)||s.push(f),!i.enableFallback)return;const l=f.split("-");l.length===3&&s.push(`${l[0]}-${l[1]}`),s.push(l[0])}),(0,t.default)(s)};u.defaultLocaleResolver=n;class r{constructor(a){this.i18n=a,this.registry={},this.register("default",u.defaultLocaleResolver)}register(a,o){if(typeof o!="function"){const s=o;o=()=>s}this.registry[a]=o}get(a){let o=this.registry[a]||this.registry[this.i18n.locale]||this.registry.default;return typeof o=="function"&&(o=o(this.i18n,a)),o instanceof Array||(o=[o]),o}}u.Locales=r})(kA);var SA={};const v0=(u,e)=>e?"other":u==1?"one":"other",Ci=(u,e)=>e?"other":u==0||u==1?"one":"other",P3=(u,e)=>e?"other":u>=0&&u<=1?"one":"other",yn=(u,e)=>{const t=String(u).split("."),n=!t[1];return e?"other":u==1&&n?"one":"other"},lu=(u,e)=>"other",mi=(u,e)=>e?"other":u==1?"one":u==2?"two":"other",w40=v0,x40=Ci,k40=P3,_40=v0,S40=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-2);return e?"other":u==0?"zero":u==1?"one":u==2?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},T40=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-2);return e?"other":u==0?"zero":u==1?"one":u==2?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},P40=(u,e)=>e?u==1||u==5||u==7||u==8||u==9||u==10?"one":u==2||u==3?"two":u==4?"few":u==6?"many":"other":u>=0&&u<=1?"one":"other",I40=v0,O40=yn,R40=(u,e)=>{const t=String(u).split("."),n=t[0],r=n.slice(-1),i=n.slice(-2),a=n.slice(-3);return e?r==1||r==2||r==5||r==7||r==8||i==20||i==50||i==70||i==80?"one":r==3||r==4||a==100||a==200||a==300||a==400||a==500||a==600||a==700||a==800||a==900?"few":n==0||r==6||i==40||i==60||i==90?"many":"other":u==1?"one":"other"},N40=(u,e)=>u==1?"one":"other",M40=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-1),i=n&&t[0].slice(-2);return e?(r==2||r==3)&&i!=12&&i!=13?"few":"other":r==1&&i!=11?"one":r>=2&&r<=4&&(i<12||i>14)?"few":n&&r==0||r>=5&&r<=9||i>=11&&i<=14?"many":"other"},j40=v0,z40=v0,L40=v0,$40=Ci,U40=lu,W40=(u,e)=>e?u==1||u==5||u==7||u==8||u==9||u==10?"one":u==2||u==3?"two":u==4?"few":u==6?"many":"other":u>=0&&u<=1?"one":"other",q40=lu,H40=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-1),i=n&&t[0].slice(-2),a=n&&t[0].slice(-6);return e?"other":r==1&&i!=11&&i!=71&&i!=91?"one":r==2&&i!=12&&i!=72&&i!=92?"two":(r==3||r==4||r==9)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":u!=0&&n&&a==0?"many":"other"},G40=v0,V40=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),f=r.slice(-2);return e?"other":i&&a==1&&o!=11||s==1&&f!=11?"one":i&&a>=2&&a<=4&&(o<12||o>14)||s>=2&&s<=4&&(f<12||f>14)?"few":"other"},K40=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?u==1||u==3?"one":u==2?"two":u==4?"few":"other":u==1&&r?"one":n!=0&&i==0&&r?"many":"other"},Q40=v0,J40=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=r.slice(-1);return e?"other":i&&(n==1||n==2||n==3)||i&&a!=4&&a!=6&&a!=9||!i&&o!=4&&o!=6&&o!=9?"one":"other"},Z40=v0,Y40=v0,X40=v0,u30=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1];return e?"other":u==1&&r?"one":n>=2&&n<=4&&r?"few":r?"other":"many"},e30=(u,e)=>e?u==0||u==7||u==8||u==9?"zero":u==1?"one":u==2?"two":u==3||u==4?"few":u==5||u==6?"many":"other":u==0?"zero":u==1?"one":u==2?"two":u==3?"few":u==6?"many":"other",t30=(u,e)=>{const t=String(u).split("."),n=t[0],r=Number(t[0])==u;return e?"other":u==1||!r&&(n==0||n==1)?"one":"other"},n30=yn,r30=P3,i30=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-2),o=r.slice(-2);return e?"other":i&&a==1||o==1?"one":i&&a==2||o==2?"two":i&&(a==3||a==4)||o==3||o==4?"few":"other"},a30=v0,o30=lu,s30=v0,f30=v0,l30=(u,e)=>{const t=String(u).split("."),n=!t[1],r=Number(t[0])==u,i=r&&t[0].slice(-1),a=r&&t[0].slice(-2);return e?i==1&&a!=11?"one":i==2&&a!=12?"two":i==3&&a!=13?"few":"other":u==1&&n?"one":"other"},c30=v0,d30=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?"other":u==1?"one":n!=0&&i==0&&r?"many":"other"},E30=yn,p30=v0,h30=P3,C30=(u,e)=>e?"other":u>=0&&u<2?"one":"other",m30=yn,b30=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=r.slice(-1);return e?u==1?"one":"other":i&&(n==1||n==2||n==3)||i&&a!=4&&a!=6&&a!=9||!i&&o!=4&&o!=6&&o!=9?"one":"other"},g30=v0,A30=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?u==1?"one":"other":u>=0&&u<2?"one":n!=0&&i==0&&r?"many":"other"},y30=v0,v30=yn,B30=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?u==1?"one":"other":u==1?"one":u==2?"two":n&&u>=3&&u<=6?"few":n&&u>=7&&u<=10?"many":"other"},F30=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?u==1||u==11?"one":u==2||u==12?"two":u==3||u==13?"few":"other":u==1||u==11?"one":u==2||u==12?"two":n&&u>=3&&u<=10||n&&u>=13&&u<=19?"few":"other"},D30=yn,w30=v0,x30=(u,e)=>e?u==1?"one":u==2||u==3?"two":u==4?"few":u==6?"many":"other":u>=0&&u<=1?"one":"other",k30=Ci,_30=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-1),a=n.slice(-2);return e?"other":r&&i==1?"one":r&&i==2?"two":r&&(a==0||a==20||a==40||a==60||a==80)?"few":r?"other":"many"},S30=v0,T30=v0,P30=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1];return e?"other":n==1&&r||n==0&&!r?"one":n==2&&r?"two":"other"},I30=(u,e)=>e?u==1?"one":u==2||u==3?"two":u==4?"few":u==6?"many":"other":u>=0&&u<=1?"one":"other",O30=lu,R30=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),f=r.slice(-2);return e?"other":i&&a==1&&o!=11||s==1&&f!=11?"one":i&&a>=2&&a<=4&&(o<12||o>14)||s>=2&&s<=4&&(f<12||f>14)?"few":"other"},N30=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-2),o=r.slice(-2);return e?"other":i&&a==1||o==1?"one":i&&a==2||o==2?"two":i&&(a==3||a==4)||o==3||o==4?"few":"other"},M30=(u,e)=>e?u==1||u==5?"one":"other":u==1?"one":"other",j30=(u,e)=>e?u==1?"one":"other":u>=0&&u<2?"one":"other",z30=yn,L30=lu,$30=lu,U30=lu,W30=yn,q30=(u,e)=>{const t=String(u).split("."),n=t[0],r=(t[1]||"").replace(/0+$/,""),i=Number(t[0])==u,a=n.slice(-1),o=n.slice(-2);return e?"other":i&&a==1&&o!=11||r%10==1&&r%100!=11?"one":"other"},H30=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?u==11||u==8||u==80||u==800?"many":"other":u==1&&r?"one":n!=0&&i==0&&r?"many":"other"},G30=mi,V30=lu,K30=lu,Q30=v0,J30=v0,Z30=lu,Y30=lu,X30=(u,e)=>{const t=String(u).split("."),n=t[0],r=n.slice(-2);return e?n==1?"one":n==0||r>=2&&r<=20||r==40||r==60||r==80?"many":"other":u==1?"one":"other"},ul0=(u,e)=>e?"other":u>=0&&u<2?"one":"other",el0=v0,tl0=v0,nl0=lu,rl0=lu,il0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-1);return e?r==6||r==9||n&&r==0&&u!=0?"many":"other":u==1?"one":"other"},al0=v0,ol0=v0,sl0=lu,fl0=P3,ll0=lu,cl0=v0,dl0=v0,El0=(u,e)=>e?"other":u==0?"zero":u==1?"one":"other",pl0=v0,hl0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-2),i=n&&t[0].slice(-3),a=n&&t[0].slice(-5),o=n&&t[0].slice(-6);return e?n&&u>=1&&u<=4||r>=1&&r<=4||r>=21&&r<=24||r>=41&&r<=44||r>=61&&r<=64||r>=81&&r<=84?"one":u==5||r==5?"many":"other":u==0?"zero":u==1?"one":r==2||r==22||r==42||r==62||r==82||n&&i==0&&(a>=1e3&&a<=2e4||a==4e4||a==6e4||a==8e4)||u!=0&&o==1e5?"two":r==3||r==23||r==43||r==63||r==83?"few":u!=1&&(r==1||r==21||r==41||r==61||r==81)?"many":"other"},Cl0=v0,ml0=(u,e)=>{const t=String(u).split("."),n=t[0];return e?"other":u==0?"zero":(n==0||n==1)&&u!=0?"one":"other"},bl0=v0,gl0=v0,Al0=(u,e)=>{const t=String(u).split("."),n=!t[1],r=Number(t[0])==u;return e?u==11||u==8||r&&u>=80&&u<=89||r&&u>=800&&u<=899?"many":"other":u==1&&n?"one":"other"},yl0=lu,vl0=Ci,Bl0=(u,e)=>e&&u==1?"one":"other",Fl0=(u,e)=>{const t=String(u).split("."),n=t[1]||"",r=Number(t[0])==u,i=r&&t[0].slice(-1),a=r&&t[0].slice(-2);return e?"other":i==1&&(a<11||a>19)?"one":i>=2&&i<=9&&(a<11||a>19)?"few":n!=0?"many":"other"},Dl0=(u,e)=>{const t=String(u).split("."),n=t[1]||"",r=n.length,i=Number(t[0])==u,a=i&&t[0].slice(-1),o=i&&t[0].slice(-2),s=n.slice(-2),f=n.slice(-1);return e?"other":i&&a==0||o>=11&&o<=19||r==2&&s>=11&&s<=19?"zero":a==1&&o!=11||r==2&&f==1&&s!=11||r!=2&&f==1?"one":"other"},wl0=v0,xl0=Ci,kl0=v0,_l0=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),f=r.slice(-2);return e?a==1&&o!=11?"one":a==2&&o!=12?"two":(a==7||a==8)&&o!=17&&o!=18?"many":"other":i&&a==1&&o!=11||s==1&&f!=11?"one":"other"},Sl0=v0,Tl0=v0,Pl0=(u,e)=>{const t=String(u).split("."),n=!t[1],r=Number(t[0])==u,i=r&&t[0].slice(-2);return e?u==1?"one":"other":u==1&&n?"one":!n||u==0||u!=1&&i>=1&&i<=19?"few":"other"},Il0=(u,e)=>e?u==1?"one":u==2||u==3?"two":u==4?"few":"other":u==1?"one":"other",Ol0=(u,e)=>e&&u==1?"one":"other",Rl0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-2);return e?"other":u==1?"one":u==2?"two":u==0||r>=3&&r<=10?"few":r>=11&&r<=19?"many":"other"},Nl0=lu,Ml0=v0,jl0=mi,zl0=v0,Ll0=v0,$l0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?n&&u>=1&&u<=4?"one":"other":u==1?"one":"other"},Ul0=yn,Wl0=v0,ql0=v0,Hl0=v0,Gl0=lu,Vl0=v0,Kl0=Ci,Ql0=v0,Jl0=v0,Zl0=v0,Yl0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?u==1||u==5||n&&u>=7&&u<=9?"one":u==2||u==3?"two":u==4?"few":u==6?"many":"other":u==1?"one":"other"},Xl0=v0,u10=lu,e10=Ci,t10=v0,n10=P3,r10=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-1),a=n.slice(-2);return e?"other":u==1&&r?"one":r&&i>=2&&i<=4&&(a<12||a>14)?"few":r&&n!=1&&(i==0||i==1)||r&&i>=5&&i<=9||r&&a>=12&&a<=14?"many":"other"},i10=(u,e)=>{const t=String(u).split("."),n=t[1]||"",r=n.length,i=Number(t[0])==u,a=i&&t[0].slice(-1),o=i&&t[0].slice(-2),s=n.slice(-2),f=n.slice(-1);return e?"other":i&&a==0||o>=11&&o<=19||r==2&&s>=11&&s<=19?"zero":a==1&&o!=11||r==2&&f==1&&s!=11||r!=2&&f==1?"one":"other"},a10=v0,o10=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?"other":n==0||n==1?"one":n!=0&&i==0&&r?"many":"other"},s10=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?"other":u==1&&r?"one":n!=0&&i==0&&r?"many":"other"},f10=v0,l10=(u,e)=>{const t=String(u).split("."),n=!t[1],r=Number(t[0])==u,i=r&&t[0].slice(-2);return e?u==1?"one":"other":u==1&&n?"one":!n||u==0||u!=1&&i>=1&&i<=19?"few":"other"},c10=v0,d10=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-1),a=n.slice(-2);return e?"other":r&&i==1&&a!=11?"one":r&&i>=2&&i<=4&&(a<12||a>14)?"few":r&&i==0||r&&i>=5&&i<=9||r&&a>=11&&a<=14?"many":"other"},E10=v0,p10=lu,h10=v0,C10=mi,m10=(u,e)=>{const t=String(u).split("."),n=!t[1];return e?u==11||u==8||u==80||u==800?"many":"other":u==1&&n?"one":"other"},b10=(u,e)=>{const t=String(u).split("."),n=!t[1];return e?u==11||u==8||u==80||u==800?"many":"other":u==1&&n?"one":"other"},g10=v0,A10=v0,y10=mi,v10=v0,B10=lu,F10=lu,D10=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),f=r.slice(-2);return e?"other":i&&a==1&&o!=11||s==1&&f!=11?"one":i&&a>=2&&a<=4&&(o<12||o>14)||s>=2&&s<=4&&(f<12||f>14)?"few":"other"},w10=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?"other":u>=0&&u<=1?"one":n&&u>=2&&u<=10?"few":"other"},x10=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"";return e?"other":u==0||u==1||n==0&&r==1?"one":"other"},k10=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1];return e?"other":u==1&&r?"one":n>=2&&n<=4&&r?"few":r?"other":"many"},_10=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-2);return e?"other":r&&i==1?"one":r&&i==2?"two":r&&(i==3||i==4)||!r?"few":"other"},S10=mi,T10=mi,P10=mi,I10=mi,O10=mi,R10=v0,N10=v0,M10=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-1),i=n&&t[0].slice(-2);return e?u==1?"one":r==4&&i!=14?"many":"other":u==1?"one":"other"},j10=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),f=r.slice(-2);return e?"other":i&&a==1&&o!=11||s==1&&f!=11?"one":i&&a>=2&&a<=4&&(o<12||o>14)||s>=2&&s<=4&&(f<12||f>14)?"few":"other"},z10=v0,L10=v0,$10=v0,U10=lu,W10=(u,e)=>{const t=String(u).split("."),n=!t[1],r=Number(t[0])==u,i=r&&t[0].slice(-1),a=r&&t[0].slice(-2);return e?(i==1||i==2)&&a!=11&&a!=12?"one":"other":u==1&&n?"one":"other"},q10=yn,H10=v0,G10=v0,V10=v0,K10=v0,Q10=lu,J10=Ci,Z10=v0,Y10=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-1);return e?r==6||r==9||u==10?"few":"other":u==1?"one":"other"},X10=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=r.slice(-1);return e?u==1?"one":"other":i&&(n==1||n==2||n==3)||i&&a!=4&&a!=6&&a!=9||!i&&o!=4&&o!=6&&o!=9?"one":"other"},uc0=v0,ec0=lu,tc0=lu,nc0=v0,rc0=v0,ic0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?"other":u==0||u==1||n&&u>=11&&u<=99?"one":"other"},ac0=v0,oc0=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=Number(t[0])==u,a=i&&t[0].slice(-1),o=i&&t[0].slice(-2),s=n.slice(-1),f=n.slice(-2);return e?a==3&&o!=13?"few":"other":r&&s==1&&f!=11?"one":r&&s>=2&&s<=4&&(f<12||f>14)?"few":r&&s==0||r&&s>=5&&s<=9||r&&f>=11&&f<=14?"many":"other"},sc0=lu,fc0=yn,lc0=v0,cc0=v0,dc0=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?u==11||u==8||u==80||u==800?"many":"other":u==1&&r?"one":n!=0&&i==0&&r?"many":"other"},Ec0=(u,e)=>e&&u==1?"one":"other",pc0=v0,hc0=v0,Cc0=Ci,mc0=v0,bc0=lu,gc0=v0,Ac0=v0,yc0=yn,vc0=lu,Bc0=lu,Fc0=lu,Dc0=P3,wc0=Object.freeze(Object.defineProperty({__proto__:null,af:w40,ak:x40,am:k40,an:_40,ar:S40,ars:T40,as:P40,asa:I40,ast:O40,az:R40,bal:N40,be:M40,bem:j40,bez:z40,bg:L40,bho:$40,bm:U40,bn:W40,bo:q40,br:H40,brx:G40,bs:V40,ca:K40,ce:Q40,ceb:J40,cgg:Z40,chr:Y40,ckb:X40,cs:u30,cy:e30,da:t30,de:n30,doi:r30,dsb:i30,dv:a30,dz:o30,ee:s30,el:f30,en:l30,eo:c30,es:d30,et:E30,eu:p30,fa:h30,ff:C30,fi:m30,fil:b30,fo:g30,fr:A30,fur:y30,fy:v30,ga:B30,gd:F30,gl:D30,gsw:w30,gu:x30,guw:k30,gv:_30,ha:S30,haw:T30,he:P30,hi:I30,hnj:O30,hr:R30,hsb:N30,hu:M30,hy:j30,ia:z30,id:L30,ig:$30,ii:U30,io:W30,is:q30,it:H30,iu:G30,ja:V30,jbo:K30,jgo:Q30,jmc:J30,jv:Z30,jw:Y30,ka:X30,kab:ul0,kaj:el0,kcg:tl0,kde:nl0,kea:rl0,kk:il0,kkj:al0,kl:ol0,km:sl0,kn:fl0,ko:ll0,ks:cl0,ksb:dl0,ksh:El0,ku:pl0,kw:hl0,ky:Cl0,lag:ml0,lb:bl0,lg:gl0,lij:Al0,lkt:yl0,ln:vl0,lo:Bl0,lt:Fl0,lv:Dl0,mas:wl0,mg:xl0,mgo:kl0,mk:_l0,ml:Sl0,mn:Tl0,mo:Pl0,mr:Il0,ms:Ol0,mt:Rl0,my:Nl0,nah:Ml0,naq:jl0,nb:zl0,nd:Ll0,ne:$l0,nl:Ul0,nn:Wl0,nnh:ql0,no:Hl0,nqo:Gl0,nr:Vl0,nso:Kl0,ny:Ql0,nyn:Jl0,om:Zl0,or:Yl0,os:Xl0,osa:u10,pa:e10,pap:t10,pcm:n10,pl:r10,prg:i10,ps:a10,pt:o10,pt_PT:s10,rm:f10,ro:l10,rof:c10,ru:d10,rwk:E10,sah:p10,saq:h10,sat:C10,sc:m10,scn:b10,sd:g10,sdh:A10,se:y10,seh:v10,ses:B10,sg:F10,sh:D10,shi:w10,si:x10,sk:k10,sl:_10,sma:S10,smi:T10,smj:P10,smn:I10,sms:O10,sn:R10,so:N10,sq:M10,sr:j10,ss:z10,ssy:L10,st:$10,su:U10,sv:W10,sw:q10,syr:H10,ta:G10,te:V10,teo:K10,th:Q10,ti:J10,tig:Z10,tk:Y10,tl:X10,tn:uc0,to:ec0,tpi:tc0,tr:nc0,ts:rc0,tzm:ic0,ug:ac0,uk:oc0,und:sc0,ur:fc0,uz:lc0,ve:cc0,vec:dc0,vi:Ec0,vo:pc0,vun:hc0,wa:Cc0,wae:mc0,wo:bc0,xh:gc0,xog:Ac0,yi:yc0,yo:vc0,yue:Bc0,zh:Fc0,zu:Dc0},Symbol.toStringTag,{value:"Module"})),xc0=T9(wc0);(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.Pluralization=u.defaultPluralizer=u.useMakePlural=void 0;const e=xc0;function t({pluralizer:r,includeZero:i=!0,ordinal:a=!1}){return function(o,s){return[i&&s===0?"zero":"",r(s,a)].filter(Boolean)}}u.useMakePlural=t,u.defaultPluralizer=t({pluralizer:e.en,includeZero:!0});class n{constructor(i){this.i18n=i,this.registry={},this.register("default",u.defaultPluralizer)}register(i,a){this.registry[i]=a}get(i){return this.registry[i]||this.registry[this.i18n.locale]||this.registry.default}}u.Pluralization=n})(SA);var TA={},PA={},bE={};function kc0(u,e,t){var n=-1,r=u.length;e<0&&(e=-e>r?0:r+e),t=t>r?r:t,t<0&&(t+=r),r=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(r);++n=n?u:Sc0(u,e,t)}var Pc0=Tc0,Ic0="\\ud800-\\udfff",Oc0="\\u0300-\\u036f",Rc0="\\ufe20-\\ufe2f",Nc0="\\u20d0-\\u20ff",Mc0=Oc0+Rc0+Nc0,jc0="\\ufe0e\\ufe0f",zc0="\\u200d",Lc0=RegExp("["+zc0+Ic0+Mc0+jc0+"]");function $c0(u){return Lc0.test(u)}var lN=$c0;function Uc0(u){return u.split("")}var Wc0=Uc0,cN="\\ud800-\\udfff",qc0="\\u0300-\\u036f",Hc0="\\ufe20-\\ufe2f",Gc0="\\u20d0-\\u20ff",Vc0=qc0+Hc0+Gc0,Kc0="\\ufe0e\\ufe0f",Qc0="["+cN+"]",yC="["+Vc0+"]",vC="\\ud83c[\\udffb-\\udfff]",Jc0="(?:"+yC+"|"+vC+")",dN="[^"+cN+"]",EN="(?:\\ud83c[\\udde6-\\uddff]){2}",pN="[\\ud800-\\udbff][\\udc00-\\udfff]",Zc0="\\u200d",hN=Jc0+"?",CN="["+Kc0+"]?",Yc0="(?:"+Zc0+"(?:"+[dN,EN,pN].join("|")+")"+CN+hN+")*",Xc0=CN+hN+Yc0,u60="(?:"+[dN+yC+"?",yC,EN,pN,Qc0].join("|")+")",e60=RegExp(vC+"(?="+vC+")|"+u60+Xc0,"g");function t60(u){return u.match(e60)||[]}var n60=t60,r60=Wc0,i60=lN,a60=n60;function o60(u){return i60(u)?a60(u):r60(u)}var s60=o60,f60=Pc0,l60=lN,c60=s60,d60=T3;function E60(u){return function(e){e=d60(e);var t=l60(e)?c60(e):void 0,n=t?t[0]:e.charAt(0),r=t?f60(t,1).join(""):e.slice(1);return n[u]()+r}}var p60=E60,h60=p60,C60=h60("toUpperCase"),m60=C60,b60=T3,g60=m60;function A60(u){return g60(b60(u).toLowerCase())}var y60=A60;function v60(u,e,t,n){var r=-1,i=u==null?0:u.length;for(n&&i&&(t=u[++r]);++r(e[(0,R50.default)(t)]=u[t],e),{}):{}}bE.camelCaseKeys=N50;var gE={},_a={};Object.defineProperty(_a,"__esModule",{value:!0});_a.isSet=void 0;function M50(u){return u!=null}_a.isSet=M50;Object.defineProperty(gE,"__esModule",{value:!0});gE.createTranslationOptions=void 0;const vD=_a;function j50(u,e,t){let n=[{scope:e}];if((0,vD.isSet)(t.defaults)&&(n=n.concat(t.defaults)),(0,vD.isSet)(t.defaultValue)){const r=typeof t.defaultValue=="function"?t.defaultValue(u,e,t):t.defaultValue;n.push({message:r}),delete t.defaultValue}return n}gE.createTranslationOptions=j50;var I3={},SN={exports:{}};(function(u){(function(e){var t,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,r=Math.ceil,i=Math.floor,a="[BigNumber Error] ",o=a+"Number primitive has more than 15 significant digits: ",s=1e14,f=14,l=9007199254740991,c=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],d=1e7,E=1e9;function p(v){var C,D,S,x=Q.prototype={constructor:Q,toString:null,valueOf:null},L=new Q(1),Y=20,G=4,X=-7,I=21,O=-1e7,W=1e7,$=!1,q=1,U=0,i0={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},s0="0123456789abcdefghijklmnopqrstuvwxyz",o0=!0;function Q(_,T){var P,j,z,V,t0,H,J,u0,Z=this;if(!(Z instanceof Q))return new Q(_,T);if(T==null){if(_&&_._isBigNumber===!0){Z.s=_.s,!_.c||_.e>W?Z.c=Z.e=null:_.e=10;t0/=10,V++);V>W?Z.c=Z.e=null:(Z.e=V,Z.c=[_]);return}u0=String(_)}else{if(!n.test(u0=String(_)))return S(Z,u0,H);Z.s=u0.charCodeAt(0)==45?(u0=u0.slice(1),-1):1}(V=u0.indexOf("."))>-1&&(u0=u0.replace(".","")),(t0=u0.search(/e/i))>0?(V<0&&(V=t0),V+=+u0.slice(t0+1),u0=u0.substring(0,t0)):V<0&&(V=u0.length)}else{if(m(T,2,s0.length,"Base"),T==10&&o0)return Z=new Q(_),w0(Z,Y+Z.e+1,G);if(u0=String(_),H=typeof _=="number"){if(_*0!=0)return S(Z,u0,H,T);if(Z.s=1/_<0?(u0=u0.slice(1),-1):1,Q.DEBUG&&u0.replace(/^0\.0*|\./,"").length>15)throw Error(o+_)}else Z.s=u0.charCodeAt(0)===45?(u0=u0.slice(1),-1):1;for(P=s0.slice(0,T),V=t0=0,J=u0.length;t0V){V=J;continue}}else if(!z&&(u0==u0.toUpperCase()&&(u0=u0.toLowerCase())||u0==u0.toLowerCase()&&(u0=u0.toUpperCase()))){z=!0,t0=-1,V=0;continue}return S(Z,String(_),H,T)}H=!1,u0=D(u0,T,10,Z.s),(V=u0.indexOf("."))>-1?u0=u0.replace(".",""):V=u0.length}for(t0=0;u0.charCodeAt(t0)===48;t0++);for(J=u0.length;u0.charCodeAt(--J)===48;);if(u0=u0.slice(t0,++J)){if(J-=t0,H&&Q.DEBUG&&J>15&&(_>l||_!==i(_)))throw Error(o+Z.s*_);if((V=V-t0-1)>W)Z.c=Z.e=null;else if(V=-E&&z<=E&&z===i(z)){if(j[0]===0){if(z===0&&j.length===1)return!0;break u}if(T=(z+1)%f,T<1&&(T+=f),String(j[0]).length==T){for(T=0;T=s||P!==i(P))break u;if(P!==0)return!0}}}else if(j===null&&z===null&&(V===null||V===1||V===-1))return!0;throw Error(a+"Invalid BigNumber: "+_)},Q.maximum=Q.max=function(){return A0(arguments,-1)},Q.minimum=Q.min=function(){return A0(arguments,1)},Q.random=function(){var _=9007199254740992,T=Math.random()*_&2097151?function(){return i(Math.random()*_)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(P){var j,z,V,t0,H,J=0,u0=[],Z=new Q(L);if(P==null?P=Y:m(P,0,E),t0=r(P/f),$)if(crypto.getRandomValues){for(j=crypto.getRandomValues(new Uint32Array(t0*=2));J>>11),H>=9e15?(z=crypto.getRandomValues(new Uint32Array(2)),j[J]=z[0],j[J+1]=z[1]):(u0.push(H%1e14),J+=2);J=t0/2}else if(crypto.randomBytes){for(j=crypto.randomBytes(t0*=7);J=9e15?crypto.randomBytes(7).copy(j,J):(u0.push(H%1e14),J+=7);J=t0/7}else throw $=!1,Error(a+"crypto unavailable");if(!$)for(;J=10;H/=10,J++);Jz-1&&(H[t0+1]==null&&(H[t0+1]=0),H[t0+1]+=H[t0]/z|0,H[t0]%=z)}return H.reverse()}return function(P,j,z,V,t0){var H,J,u0,Z,n0,p0,C0,y0,g0=P.indexOf("."),F0=Y,c0=G;for(g0>=0&&(Z=U,U=0,P=P.replace(".",""),y0=new Q(j),p0=y0.pow(P.length-g0),U=Z,y0.c=T(B(g(p0.c),p0.e,"0"),10,z,_),y0.e=y0.c.length),C0=T(P,j,z,t0?(H=s0,_):(H=_,s0)),u0=Z=C0.length;C0[--Z]==0;C0.pop());if(!C0[0])return H.charAt(0);if(g0<0?--u0:(p0.c=C0,p0.e=u0,p0.s=V,p0=C(p0,y0,F0,c0,z),C0=p0.c,n0=p0.r,u0=p0.e),J=u0+F0+1,g0=C0[J],Z=z/2,n0=n0||J<0||C0[J+1]!=null,n0=c0<4?(g0!=null||n0)&&(c0==0||c0==(p0.s<0?3:2)):g0>Z||g0==Z&&(c0==4||n0||c0==6&&C0[J-1]&1||c0==(p0.s<0?8:7)),J<1||!C0[0])P=n0?B(H.charAt(1),-F0,H.charAt(0)):H.charAt(0);else{if(C0.length=J,n0)for(--z;++C0[--J]>z;)C0[J]=0,J||(++u0,C0=[1].concat(C0));for(Z=C0.length;!C0[--Z];);for(g0=0,P="";g0<=Z;P+=H.charAt(C0[g0++]));P=B(P,u0,H.charAt(0))}return P}}(),C=function(){function _(j,z,V){var t0,H,J,u0,Z=0,n0=j.length,p0=z%d,C0=z/d|0;for(j=j.slice();n0--;)J=j[n0]%d,u0=j[n0]/d|0,t0=C0*J+u0*p0,H=p0*J+t0%d*d+Z,Z=(H/V|0)+(t0/d|0)+C0*u0,j[n0]=H%V;return Z&&(j=[Z].concat(j)),j}function T(j,z,V,t0){var H,J;if(V!=t0)J=V>t0?1:-1;else for(H=J=0;Hz[H]?1:-1;break}return J}function P(j,z,V,t0){for(var H=0;V--;)j[V]-=H,H=j[V]1;j.splice(0,1));}return function(j,z,V,t0,H){var J,u0,Z,n0,p0,C0,y0,g0,F0,c0,d0,m0,G0,N0,x0,V0,D0,R0=j.s==z.s?1:-1,nu=j.c,hu=z.c;if(!nu||!nu[0]||!hu||!hu[0])return new Q(!j.s||!z.s||(nu?hu&&nu[0]==hu[0]:!hu)?NaN:nu&&nu[0]==0||!hu?R0*0:R0/0);for(g0=new Q(R0),F0=g0.c=[],u0=j.e-z.e,R0=V+u0+1,H||(H=s,u0=h(j.e/f)-h(z.e/f),R0=R0/f|0),Z=0;hu[Z]==(nu[Z]||0);Z++);if(hu[Z]>(nu[Z]||0)&&u0--,R0<0)F0.push(1),n0=!0;else{for(N0=nu.length,V0=hu.length,Z=0,R0+=2,p0=i(H/(hu[0]+1)),p0>1&&(hu=_(hu,p0,H),nu=_(nu,p0,H),V0=hu.length,N0=nu.length),G0=V0,c0=nu.slice(0,V0),d0=c0.length;d0=H/2&&x0++;do{if(p0=0,J=T(hu,c0,V0,d0),J<0){if(m0=c0[0],V0!=d0&&(m0=m0*H+(c0[1]||0)),p0=i(m0/x0),p0>1)for(p0>=H&&(p0=H-1),C0=_(hu,p0,H),y0=C0.length,d0=c0.length;T(C0,c0,y0,d0)==1;)p0--,P(C0,V0=10;R0/=10,Z++);w0(g0,V+(g0.e=Z+u0*f-1)+1,t0,n0)}else g0.e=u0,g0.r=+n0;return g0}}();function b0(_,T,P,j){var z,V,t0,H,J;if(P==null?P=G:m(P,0,8),!_.c)return _.toString();if(z=_.c[0],t0=_.e,T==null)J=g(_.c),J=j==1||j==2&&(t0<=X||t0>=I)?y(J,t0):B(J,t0,"0");else if(_=w0(new Q(_),T,P),V=_.e,J=g(_.c),H=J.length,j==1||j==2&&(T<=V||V<=X)){for(;HH){if(--T>0)for(J+=".";T--;J+="0");}else if(T+=V-H,T>0)for(V+1==H&&(J+=".");T--;J+="0");return _.s<0&&z?"-"+J:J}function A0(_,T){for(var P,j,z=1,V=new Q(_[0]);z<_.length;z++)j=new Q(_[z]),(!j.s||(P=b(V,j))===T||P===0&&V.s===T)&&(V=j);return V}function _0(_,T,P){for(var j=1,z=T.length;!T[--z];T.pop());for(z=T[0];z>=10;z/=10,j++);return(P=j+P*f-1)>W?_.c=_.e=null:P=10;H/=10,z++);if(V=T-z,V<0)V+=f,t0=T,J=n0[u0=0],Z=i(J/p0[z-t0-1]%10);else if(u0=r((V+1)/f),u0>=n0.length)if(j){for(;n0.length<=u0;n0.push(0));J=Z=0,z=1,V%=f,t0=V-f+1}else break u;else{for(J=H=n0[u0],z=1;H>=10;H/=10,z++);V%=f,t0=V-f+z,Z=t0<0?0:i(J/p0[z-t0-1]%10)}if(j=j||T<0||n0[u0+1]!=null||(t0<0?J:J%p0[z-t0-1]),j=P<4?(Z||j)&&(P==0||P==(_.s<0?3:2)):Z>5||Z==5&&(P==4||j||P==6&&(V>0?t0>0?J/p0[z-t0]:0:n0[u0-1])%10&1||P==(_.s<0?8:7)),T<1||!n0[0])return n0.length=0,j?(T-=_.e+1,n0[0]=p0[(f-T%f)%f],_.e=-T||0):n0[0]=_.e=0,_;if(V==0?(n0.length=u0,H=1,u0--):(n0.length=u0+1,H=p0[f-V],n0[u0]=t0>0?i(J/p0[z-t0]%p0[t0])*H:0),j)for(;;)if(u0==0){for(V=1,t0=n0[0];t0>=10;t0/=10,V++);for(t0=n0[0]+=H,H=1;t0>=10;t0/=10,H++);V!=H&&(_.e++,n0[0]==s&&(n0[0]=1));break}else{if(n0[u0]+=H,n0[u0]!=s)break;n0[u0--]=0,H=1}for(V=n0.length;n0[--V]===0;n0.pop());}_.e>W?_.c=_.e=null:_.e=I?y(T,P):B(T,P,"0"),_.s<0?"-"+T:T)}return x.absoluteValue=x.abs=function(){var _=new Q(this);return _.s<0&&(_.s=1),_},x.comparedTo=function(_,T){return b(this,new Q(_,T))},x.decimalPlaces=x.dp=function(_,T){var P,j,z,V=this;if(_!=null)return m(_,0,E),T==null?T=G:m(T,0,8),w0(new Q(V),_+V.e+1,T);if(!(P=V.c))return null;if(j=((z=P.length-1)-h(this.e/f))*f,z=P[z])for(;z%10==0;z/=10,j--);return j<0&&(j=0),j},x.dividedBy=x.div=function(_,T){return C(this,new Q(_,T),Y,G)},x.dividedToIntegerBy=x.idiv=function(_,T){return C(this,new Q(_,T),0,1)},x.exponentiatedBy=x.pow=function(_,T){var P,j,z,V,t0,H,J,u0,Z,n0=this;if(_=new Q(_),_.c&&!_.isInteger())throw Error(a+"Exponent not an integer: "+B0(_));if(T!=null&&(T=new Q(T)),H=_.e>14,!n0.c||!n0.c[0]||n0.c[0]==1&&!n0.e&&n0.c.length==1||!_.c||!_.c[0])return Z=new Q(Math.pow(+B0(n0),H?_.s*(2-A(_)):+B0(_))),T?Z.mod(T):Z;if(J=_.s<0,T){if(T.c?!T.c[0]:!T.s)return new Q(NaN);j=!J&&n0.isInteger()&&T.isInteger(),j&&(n0=n0.mod(T))}else{if(_.e>9&&(n0.e>0||n0.e<-1||(n0.e==0?n0.c[0]>1||H&&n0.c[1]>=24e7:n0.c[0]<8e13||H&&n0.c[0]<=9999975e7)))return V=n0.s<0&&A(_)?-0:0,n0.e>-1&&(V=1/V),new Q(J?1/V:V);U&&(V=r(U/f+2))}for(H?(P=new Q(.5),J&&(_.s=1),u0=A(_)):(z=Math.abs(+B0(_)),u0=z%2),Z=new Q(L);;){if(u0){if(Z=Z.times(n0),!Z.c)break;V?Z.c.length>V&&(Z.c.length=V):j&&(Z=Z.mod(T))}if(z){if(z=i(z/2),z===0)break;u0=z%2}else if(_=_.times(P),w0(_,_.e+1,1),_.e>14)u0=A(_);else{if(z=+B0(_),z===0)break;u0=z%2}n0=n0.times(n0),V?n0.c&&n0.c.length>V&&(n0.c.length=V):j&&(n0=n0.mod(T))}return j?Z:(J&&(Z=L.div(Z)),T?Z.mod(T):V?w0(Z,U,G,t0):Z)},x.integerValue=function(_){var T=new Q(this);return _==null?_=G:m(_,0,8),w0(T,T.e+1,_)},x.isEqualTo=x.eq=function(_,T){return b(this,new Q(_,T))===0},x.isFinite=function(){return!!this.c},x.isGreaterThan=x.gt=function(_,T){return b(this,new Q(_,T))>0},x.isGreaterThanOrEqualTo=x.gte=function(_,T){return(T=b(this,new Q(_,T)))===1||T===0},x.isInteger=function(){return!!this.c&&h(this.e/f)>this.c.length-2},x.isLessThan=x.lt=function(_,T){return b(this,new Q(_,T))<0},x.isLessThanOrEqualTo=x.lte=function(_,T){return(T=b(this,new Q(_,T)))===-1||T===0},x.isNaN=function(){return!this.s},x.isNegative=function(){return this.s<0},x.isPositive=function(){return this.s>0},x.isZero=function(){return!!this.c&&this.c[0]==0},x.minus=function(_,T){var P,j,z,V,t0=this,H=t0.s;if(_=new Q(_,T),T=_.s,!H||!T)return new Q(NaN);if(H!=T)return _.s=-T,t0.plus(_);var J=t0.e/f,u0=_.e/f,Z=t0.c,n0=_.c;if(!J||!u0){if(!Z||!n0)return Z?(_.s=-T,_):new Q(n0?t0:NaN);if(!Z[0]||!n0[0])return n0[0]?(_.s=-T,_):new Q(Z[0]?t0:G==3?-0:0)}if(J=h(J),u0=h(u0),Z=Z.slice(),H=J-u0){for((V=H<0)?(H=-H,z=Z):(u0=J,z=n0),z.reverse(),T=H;T--;z.push(0));z.reverse()}else for(j=(V=(H=Z.length)<(T=n0.length))?H:T,H=T=0;T0)for(;T--;Z[P++]=0);for(T=s-1;j>H;){if(Z[--j]=0;){for(P=0,p0=m0[z]%F0,C0=m0[z]/F0|0,t0=J,V=z+t0;V>z;)u0=d0[--t0]%F0,Z=d0[t0]/F0|0,H=C0*u0+Z*p0,u0=p0*u0+H%F0*F0+y0[V]+P,P=(u0/g0|0)+(H/F0|0)+C0*Z,y0[V--]=u0%g0;y0[V]=P}return P?++j:y0.splice(0,1),_0(_,y0,j)},x.negated=function(){var _=new Q(this);return _.s=-_.s||null,_},x.plus=function(_,T){var P,j=this,z=j.s;if(_=new Q(_,T),T=_.s,!z||!T)return new Q(NaN);if(z!=T)return _.s=-T,j.minus(_);var V=j.e/f,t0=_.e/f,H=j.c,J=_.c;if(!V||!t0){if(!H||!J)return new Q(z/0);if(!H[0]||!J[0])return J[0]?_:new Q(H[0]?j:z*0)}if(V=h(V),t0=h(t0),H=H.slice(),z=V-t0){for(z>0?(t0=V,P=J):(z=-z,P=H),P.reverse();z--;P.push(0));P.reverse()}for(z=H.length,T=J.length,z-T<0&&(P=J,J=H,H=P,T=z),z=0;T;)z=(H[--T]=H[T]+J[T]+z)/s|0,H[T]=s===H[T]?0:H[T]%s;return z&&(H=[z].concat(H),++t0),_0(_,H,t0)},x.precision=x.sd=function(_,T){var P,j,z,V=this;if(_!=null&&_!==!!_)return m(_,1,E),T==null?T=G:m(T,0,8),w0(new Q(V),_,T);if(!(P=V.c))return null;if(z=P.length-1,j=z*f+1,z=P[z]){for(;z%10==0;z/=10,j--);for(z=P[0];z>=10;z/=10,j++);}return _&&V.e+1>j&&(j=V.e+1),j},x.shiftedBy=function(_){return m(_,-l,l),this.times("1e"+_)},x.squareRoot=x.sqrt=function(){var _,T,P,j,z,V=this,t0=V.c,H=V.s,J=V.e,u0=Y+4,Z=new Q("0.5");if(H!==1||!t0||!t0[0])return new Q(!H||H<0&&(!t0||t0[0])?NaN:t0?V:1/0);if(H=Math.sqrt(+B0(V)),H==0||H==1/0?(T=g(t0),(T.length+J)%2==0&&(T+="0"),H=Math.sqrt(+T),J=h((J+1)/2)-(J<0||J%2),H==1/0?T="5e"+J:(T=H.toExponential(),T=T.slice(0,T.indexOf("e")+1)+J),P=new Q(T)):P=new Q(H+""),P.c[0]){for(J=P.e,H=J+u0,H<3&&(H=0);;)if(z=P,P=Z.times(z.plus(C(V,z,u0,1))),g(z.c).slice(0,H)===(T=g(P.c)).slice(0,H))if(P.e0&&y0>0){for(V=y0%H||H,Z=C0.substr(0,V);V0&&(Z+=u0+C0.slice(V)),p0&&(Z="-"+Z)}j=n0?Z+(P.decimalSeparator||"")+((J=+P.fractionGroupSize)?n0.replace(new RegExp("\\d{"+J+"}\\B","g"),"$&"+(P.fractionGroupSeparator||"")):n0):Z}return(P.prefix||"")+j+(P.suffix||"")},x.toFraction=function(_){var T,P,j,z,V,t0,H,J,u0,Z,n0,p0,C0=this,y0=C0.c;if(_!=null&&(H=new Q(_),!H.isInteger()&&(H.c||H.s!==1)||H.lt(L)))throw Error(a+"Argument "+(H.isInteger()?"out of range: ":"not an integer: ")+B0(H));if(!y0)return new Q(C0);for(T=new Q(L),u0=P=new Q(L),j=J=new Q(L),p0=g(y0),V=T.e=p0.length-C0.e-1,T.c[0]=c[(t0=V%f)<0?f+t0:t0],_=!_||H.comparedTo(T)>0?V>0?T:u0:H,t0=W,W=1/0,H=new Q(p0),J.c[0]=0;Z=C(H,T,0,1),z=P.plus(Z.times(j)),z.comparedTo(_)!=1;)P=j,j=z,u0=J.plus(Z.times(z=u0)),J=z,T=H.minus(Z.times(z=T)),H=z;return z=C(_.minus(P),j,0,1),J=J.plus(z.times(u0)),P=P.plus(z.times(j)),J.s=u0.s=C0.s,V=V*2,n0=C(u0,j,V,G).minus(C0).abs().comparedTo(C(J,P,V,G).minus(C0).abs())<1?[u0,j]:[J,P],W=t0,n0},x.toNumber=function(){return+B0(this)},x.toPrecision=function(_,T){return _!=null&&m(_,1,E),b0(this,_,T,2)},x.toString=function(_){var T,P=this,j=P.s,z=P.e;return z===null?j?(T="Infinity",j<0&&(T="-"+T)):T="NaN":(_==null?T=z<=X||z>=I?y(g(P.c),z):B(g(P.c),z,"0"):_===10&&o0?(P=w0(new Q(P),Y+z+1,G),T=B(g(P.c),P.e,"0")):(m(_,2,s0.length,"Base"),T=D(B(g(P.c),z,"0"),10,_,j,!0)),j<0&&P.c[0]&&(T="-"+T)),T},x.valueOf=x.toJSON=function(){return B0(this)},x._isBigNumber=!0,v!=null&&Q.set(v),Q}function h(v){var C=v|0;return v>0||v===C?C:C-1}function g(v){for(var C,D,S=1,x=v.length,L=v[0]+"";SI^D?1:-1;for(G=(X=x.length)<(I=L.length)?X:I,Y=0;YL[Y]^D?1:-1;return X==I?0:X>I^D?1:-1}function m(v,C,D,S){if(vD||v!==i(v))throw Error(a+(S||"Argument")+(typeof v=="number"?vD?" out of range: ":" not an integer: ":" not a primitive number: ")+String(v))}function A(v){var C=v.c.length-1;return h(v.e/f)==C&&v.c[C]%2!=0}function y(v,C){return(v.length>1?v.charAt(0)+"."+v.slice(1):v)+(C<0?"e":"e+")+C}function B(v,C,D){var S,x;if(C<0){for(x=D+".";++C;x+=D);v=x+v}else if(S=v.length,++C>S){for(x=D,C-=S;--C;x+=D);v+=x}else C$50)return t;do e%2&&(t+=u),e=U50(e/2),e&&(u+=u);while(e);return t}var q50=W50,H50=ZR,G50=xA;function V50(u){return u!=null&&G50(u.length)&&!H50(u)}var yE=V50,K50=EE,Q50=yE,J50=mE,Z50=ps;function Y50(u,e,t){if(!Z50(t))return!1;var n=typeof e;return(n=="number"?Q50(t)&&J50(e,t.length):n=="string"&&e in t)?K50(t[e],u):!1}var IA=Y50,X50=/\s/;function u20(u){for(var e=u.length;e--&&X50.test(u.charAt(e)););return e}var e20=u20,t20=e20,n20=/^\s+/;function r20(u){return u&&u.slice(0,t20(u)+1).replace(n20,"")}var i20=r20,a20=i20,BD=ps,o20=Mc,FD=NaN,s20=/^[-+]0x[0-9a-f]+$/i,f20=/^0b[01]+$/i,l20=/^0o[0-7]+$/i,c20=parseInt;function d20(u){if(typeof u=="number")return u;if(o20(u))return FD;if(BD(u)){var e=typeof u.valueOf=="function"?u.valueOf():u;u=BD(e)?e+"":e}if(typeof u!="string")return u===0?u:+u;u=a20(u);var t=f20.test(u);return t||l20.test(u)?c20(u.slice(2),t?2:8):s20.test(u)?FD:+u}var E20=d20,p20=E20,DD=1/0,h20=17976931348623157e292;function C20(u){if(!u)return u===0?u:0;if(u=p20(u),u===DD||u===-DD){var e=u<0?-1:1;return e*h20}return u===u?u:0}var TN=C20,m20=TN;function b20(u){var e=m20(u),t=e%1;return e===e?t?e-t:e:0}var g20=b20,A20=q50,y20=IA,v20=g20,B20=T3;function F20(u,e,t){return(t?y20(u,e,t):e===void 0)?e=1:e=v20(e),A20(B20(u),e)}var D20=F20,Cs={},w20=P0&&P0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Cs,"__esModule",{value:!0});Cs.roundNumber=void 0;const x20=w20(O3),k20=I3;function _20(u){return u.isZero()?1:Math.floor(Math.log10(u.abs().toNumber())+1)}function S20(u,{precision:e,significant:t}){return t&&e!==null&&e>0?e-_20(u):e}function T20(u,e){const t=S20(u,e);if(t===null)return u.toString();const n=(0,k20.expandRoundMode)(e.roundMode);if(t>=0)return u.toFixed(t,n);const r=Math.pow(10,Math.abs(t));return u=new x20.default(u.div(r).toFixed(0,n)).times(r),u.toString()}Cs.roundNumber=T20;var PN=P0&&P0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(AE,"__esModule",{value:!0});AE.formatNumber=void 0;const wD=PN(O3),P20=PN(D20),I20=Cs;function O20(u,{formattedNumber:e,unit:t}){return u.replace("%n",e).replace("%u",t)}function R20({significand:u,whole:e,precision:t}){if(e==="0"||t===null)return u;const n=Math.max(0,t-e.length);return(u??"").substr(0,n)}function N20(u,e){var t,n,r;const i=new wD.default(u);if(e.raise&&!i.isFinite())throw new Error(`"${u}" is not a valid numeric value`);const a=(0,I20.roundNumber)(i,e),o=new wD.default(a),s=o.lt(0),f=o.isZero();let[l,c]=a.split(".");const d=[];let E;const p=(t=e.format)!==null&&t!==void 0?t:"%n",h=(n=e.negativeFormat)!==null&&n!==void 0?n:`-${p}`,g=s&&!f?h:p;for(l=l.replace("-","");l.length>0;)d.unshift(l.substr(Math.max(0,l.length-3),3)),l=l.substr(0,l.length-3);return l=d.join(""),E=d.join(e.delimiter),e.significant?c=R20({whole:l,significand:c,precision:e.precision}):c=c??(0,P20.default)("0",(r=e.precision)!==null&&r!==void 0?r:0),e.stripInsignificantZeros&&c&&(c=c.replace(/0+$/,"")),i.isNaN()&&(E=u.toString()),c&&i.isFinite()&&(E+=(e.separator||".")+c),O20(g,{formattedNumber:E,unit:e.unit})}AE.formatNumber=N20;var R3={};Object.defineProperty(R3,"__esModule",{value:!0});R3.getFullScope=void 0;function M20(u,e,t){let n="";return(e instanceof String||typeof e=="string")&&(n=e),e instanceof Array&&(n=e.join(u.defaultSeparator)),t.scope&&(n=[t.scope,n].join(u.defaultSeparator)),n}R3.getFullScope=M20;var N3={};Object.defineProperty(N3,"__esModule",{value:!0});N3.inferType=void 0;function j20(u){var e,t;if(u===null)return"null";const n=typeof u;return n!=="object"?n:((t=(e=u==null?void 0:u.constructor)===null||e===void 0?void 0:e.name)===null||t===void 0?void 0:t.toLowerCase())||"object"}N3.inferType=j20;var vE={};Object.defineProperty(vE,"__esModule",{value:!0});vE.interpolate=void 0;const z20=_a;function L20(u,e,t){t=Object.keys(t).reduce((r,i)=>(r[u.transformKey(i)]=t[i],r),{});const n=e.match(u.placeholder);if(!n)return e;for(;n.length;){let r;const i=n.shift(),a=i.replace(u.placeholder,"$1");(0,z20.isSet)(t[a])?r=t[a].toString().replace(/\$/gm,"_#$#_"):a in t?r=u.nullPlaceholder(u,i,e,t):r=u.missingPlaceholder(u,i,e,t);const o=new RegExp(i.replace(/\{/gm,"\\{").replace(/\}/gm,"\\}"));e=e.replace(o,r)}return e.replace(/_#\$#_/g,"$")}vE.interpolate=L20;var M3={},$20=P0&&P0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(M3,"__esModule",{value:!0});M3.lookup=void 0;const U20=$20(DA),W20=_a,q20=R3,H20=N3;function G20(u,e,t={}){t=Object.assign({},t);const n="locale"in t?t.locale:u.locale,r=(0,H20.inferType)(n),i=u.locales.get(r==="string"?n:typeof n).slice();e=(0,q20.getFullScope)(u,e,t).split(u.defaultSeparator).map(o=>u.transformKey(o)).join(".");const a=i.map(o=>(0,U20.default)(u.translations,[o,e].join(".")));return a.push(t.defaultValue),a.find(o=>(0,W20.isSet)(o))}M3.lookup=G20;var BE={},V20=P0&&P0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(BE,"__esModule",{value:!0});BE.numberToDelimited=void 0;const K20=V20(O3);function Q20(u,e){const t=new K20.default(u);if(!t.isFinite())return u.toString();if(!e.delimiterPattern.global)throw new Error(`options.delimiterPattern must be a global regular expression; received ${e.delimiterPattern}`);let[n,r]=t.toString().split(".");return n=n.replace(e.delimiterPattern,i=>`${i}${e.delimiter}`),[n,r].filter(Boolean).join(e.separator)}BE.numberToDelimited=Q20;var FE={};function J20(u,e){for(var t=-1,n=e.length,r=u.length;++t0&&t(o)?e>1?ON(o,e-1,t,n,r):e90(r,o):n||(r[r.length]=o)}return r}var RN=ON,n90=hE;function r90(){this.__data__=new n90,this.size=0}var i90=r90;function a90(u){var e=this.__data__,t=e.delete(u);return this.size=e.size,t}var o90=a90;function s90(u){return this.__data__.get(u)}var f90=s90;function l90(u){return this.__data__.has(u)}var c90=l90,d90=hE,E90=AA,p90=yA,h90=200;function C90(u,e){var t=this.__data__;if(t instanceof d90){var n=t.__data__;if(!E90||n.lengtho))return!1;var f=i.get(u),l=i.get(e);if(f&&l)return f==e&&l==u;var c=-1,d=!0,E=t&S90?new w90:void 0;for(i.set(u,e),i.set(e,u);++ce||i&&a&&s&&!o&&!f||n&&a&&s||!t&&s||!r)return 1;if(!n&&!i&&!f&&u=o)return s;var f=t[n];return s*(f=="desc"?-1:1)}}return u.index-e.index}var j80=M80,G8=uN,z80=FA,L80=c80,$80=T80,U80=I80,W80=zN,q80=j80,H80=DE,G80=Ar;function V80(u,e,t){e.length?e=G8(e,function(i){return G80(i)?function(a){return z80(a,i.length===1?i[0]:i)}:i}):e=[H80];var n=-1;e=G8(e,W80(L80));var r=$80(u,function(i,a,o){var s=G8(e,function(f){return f(i)});return{criteria:s,index:++n,value:i}});return U80(r,function(i,a){return q80(i,a,t)})}var K80=V80;function Q80(u,e,t){switch(t.length){case 0:return u.call(e);case 1:return u.call(e,t[0]);case 2:return u.call(e,t[0],t[1]);case 3:return u.call(e,t[0],t[1],t[2])}return u.apply(e,t)}var J80=Q80,Z80=J80,QD=Math.max;function Y80(u,e,t){return e=QD(e===void 0?u.length-1:e,0),function(){for(var n=arguments,r=-1,i=QD(n.length-e,0),a=Array(i);++r0){if(++e>=ah0)return arguments[0]}else e=0;return u.apply(void 0,arguments)}}var lh0=fh0,ch0=ih0,dh0=lh0,Eh0=dh0(ch0),ph0=Eh0,hh0=DE,Ch0=X80,mh0=ph0;function bh0(u,e){return mh0(Ch0(u,e,hh0),u+"")}var gh0=bh0,Ah0=RN,yh0=K80,vh0=gh0,ZD=IA,Bh0=vh0(function(u,e){if(u==null)return[];var t=e.length;return t>1&&ZD(u,e[0],e[1])?e=[]:t>2&&ZD(e[0],e[1],e[2])&&(e=[e[0]]),yh0(u,Ah0(e,1),[])}),Fh0=Bh0;function Dh0(u,e,t){for(var n=-1,r=u.length,i=e.length,a={};++nparseInt(u,10)));function Mh0(u,e,t){const n={roundMode:t.roundMode,precision:t.precision,significant:t.significant};let r;if((0,Rh0.inferType)(t.units)==="string"){const c=t.units;if(r=(0,Oh0.lookup)(u,c),!r)throw new Error(`The scope "${u.locale}${u.defaultSeparator}${(0,Ih0.getFullScope)(u,c,{})}" couldn't be found`)}else r=t.units;let i=(0,YD.roundNumber)(new V8.default(e),n);const a=c=>(0,Th0.default)(Object.keys(c).map(d=>Nh0[d]),d=>d*-1),o=(c,d)=>{const E=c.isZero()?0:Math.floor(Math.log10(c.abs().toNumber()));return a(d).find(p=>E>=p)||0},s=(c,d)=>{const E=kC[d.toString()];return c[E]||""},f=o(new V8.default(i),r),l=s(r,f);if(i=(0,YD.roundNumber)(new V8.default(i).div(Math.pow(10,f)),n),t.stripInsignificantZeros){let[c,d]=i.split(".");d=(d||"").replace(/0+$/,""),i=c,d&&(i+=`${t.separator}${d}`)}return t.format.replace("%n",i||"0").replace("%u",l).trim()}FE.numberToHuman=Mh0;var wE={},jh0=P0&&P0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(wE,"__esModule",{value:!0});wE.numberToHumanSize=void 0;const z6=jh0(O3),zh0=Cs,Lh0=I3,XD=["byte","kb","mb","gb","tb","pb","eb"];function $h0(u,e,t){const n=(0,Lh0.expandRoundMode)(t.roundMode),r=1024,i=new z6.default(e).abs(),a=i.lt(r);let o;const s=(p,h)=>{const g=h.length-1,b=new z6.default(Math.log(p.toNumber())).div(Math.log(r)).integerValue(z6.default.ROUND_DOWN).toNumber();return Math.min(g,b)},f=p=>`number.human.storage_units.units.${a?"byte":p[l]}`,l=s(i,XD);a?o=i.integerValue():o=new z6.default((0,zh0.roundNumber)(i.div(Math.pow(r,l)),{significant:t.significant,precision:t.precision,roundMode:t.roundMode}));const c=u.translate("number.human.storage_units.format",{defaultValue:"%n %u"}),d=u.translate(f(XD),{count:i.integerValue().toNumber()});let E=o.toFixed(t.precision,n);return t.stripInsignificantZeros&&(E=E.replace(/(\..*?)0+$/,"$1").replace(/\.$/,"")),c.replace("%n",E).replace("%u",d)}wE.numberToHumanSize=$h0;var zc={};Object.defineProperty(zc,"__esModule",{value:!0});zc.parseDate=void 0;function Uh0(u){if(u instanceof Date)return u;if(typeof u=="number"){const n=new Date;return n.setTime(u),n}const e=new String(u).match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})(?:[.,](\d{1,3}))?)?(Z|\+00:?00)?/);if(e){const n=e.slice(1,8).map(d=>parseInt(d,10)||0);n[1]-=1;const[r,i,a,o,s,f,l]=n;return e[8]?new Date(Date.UTC(r,i,a,o,s,f,l)):new Date(r,i,a,o,s,f,l)}u.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)&&new Date().setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" ")));const t=new Date;return t.setTime(Date.parse(u)),t}zc.parseDate=Uh0;var xE={};Object.defineProperty(xE,"__esModule",{value:!0});xE.pluralize=void 0;const uw=_a,Wh0=M3;function qh0({i18n:u,count:e,scope:t,options:n,baseScope:r}){n=Object.assign({},n);let i,a;if(typeof t=="object"&&t?i=t:i=(0,Wh0.lookup)(u,t,n),!i)return u.missingTranslation.get(t,n);const s=u.pluralization.get(n.locale)(u,e),f=[];for(;s.length;){const l=s.shift();if((0,uw.isSet)(i[l])){a=i[l];break}f.push(l)}return(0,uw.isSet)(a)?(n.count=e,u.interpolate(u,a,n)):u.missingTranslation.get(r.split(u.defaultSeparator).concat([f[0]]),n)}xE.pluralize=qh0;var kE={},Hh0=RN,Gh0=1/0;function Vh0(u){var e=u==null?0:u.length;return e?Hh0(u,Gh0):[]}var Kh0=Vh0,GN=P0&&P0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(kE,"__esModule",{value:!0});kE.propertyFlatList=void 0;const Qh0=GN(ps),Jh0=GN(Kh0);class Zh0{constructor(e){this.target=e}call(){const e=(0,Jh0.default)(Object.keys(this.target).map(t=>this.compute(this.target[t],t)));return e.sort(),e}compute(e,t){return!Array.isArray(e)&&(0,Qh0.default)(e)?Object.keys(e).map(n=>this.compute(e[n],`${t}.${n}`)):t}}function Yh0(u){return new Zh0(u).call()}kE.propertyFlatList=Yh0;var _E={};Object.defineProperty(_E,"__esModule",{value:!0});_E.strftime=void 0;const Xh0={meridian:{am:"AM",pm:"PM"},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbrDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthNames:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbrMonthNames:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};function u70(u,e,t={}){const{abbrDayNames:n,dayNames:r,abbrMonthNames:i,monthNames:a,meridian:o}=Object.assign(Object.assign({},Xh0),t);if(isNaN(u.getTime()))throw new Error("strftime() requires a valid date object, but received an invalid date.");const s=u.getDay(),f=u.getDate(),l=u.getFullYear(),c=u.getMonth()+1,d=u.getHours();let E=d;const p=d>11?"pm":"am",h=u.getSeconds(),g=u.getMinutes(),b=u.getTimezoneOffset(),m=Math.floor(Math.abs(b/60)),A=Math.abs(b)-m*60,y=(b>0?"-":"+")+(m.toString().length<2?"0"+m:m)+(A.toString().length<2?"0"+A:A);return E>12?E=E-12:E===0&&(E=12),e=e.replace("%a",n[s]),e=e.replace("%A",r[s]),e=e.replace("%b",i[c]),e=e.replace("%B",a[c]),e=e.replace("%d",f.toString().padStart(2,"0")),e=e.replace("%e",f.toString()),e=e.replace("%-d",f.toString()),e=e.replace("%H",d.toString().padStart(2,"0")),e=e.replace("%-H",d.toString()),e=e.replace("%k",d.toString()),e=e.replace("%I",E.toString().padStart(2,"0")),e=e.replace("%-I",E.toString()),e=e.replace("%l",E.toString()),e=e.replace("%m",c.toString().padStart(2,"0")),e=e.replace("%-m",c.toString()),e=e.replace("%M",g.toString().padStart(2,"0")),e=e.replace("%-M",g.toString()),e=e.replace("%p",o[p]),e=e.replace("%P",o[p].toLowerCase()),e=e.replace("%S",h.toString().padStart(2,"0")),e=e.replace("%-S",h.toString()),e=e.replace("%w",s.toString()),e=e.replace("%y",l.toString().padStart(2,"0").substr(-2)),e=e.replace("%-y",l.toString().padStart(2,"0").substr(-2).replace(/^0+/,"")),e=e.replace("%Y",l.toString()),e=e.replace(/%z/i,y),e}_E.strftime=u70;var SE={},e70=Math.ceil,t70=Math.max;function n70(u,e,t,n){for(var r=-1,i=t70(e70((e-u)/(t||1)),0),a=Array(i);i--;)a[n?i:++r]=u,u+=t;return a}var r70=n70,i70=r70,a70=IA,K8=TN;function o70(u){return function(e,t,n){return n&&typeof n!="number"&&a70(e,t,n)&&(t=n=void 0),e=K8(e),t===void 0?(t=e,e=0):t=K8(t),n=n===void 0?et>=u&&t<=e;function p70(u,e,t,n={}){const r=n.scope||"datetime.distance_in_words",i=(C,D=0)=>u.t(C,{count:D,scope:r});e=(0,ew.parseDate)(e),t=(0,ew.parseDate)(t);let a=e.getTime()/1e3,o=t.getTime()/1e3;a>o&&([e,t,a,o]=[t,e,o,a]);const s=Math.round(o-a),f=Math.round((o-a)/60),c=f/60/24,d=Math.round(f/60),E=Math.round(c),p=Math.round(E/30);if(Ft(0,1,f))return n.includeSeconds?Ft(0,4,s)?i("less_than_x_seconds",5):Ft(5,9,s)?i("less_than_x_seconds",10):Ft(10,19,s)?i("less_than_x_seconds",20):Ft(20,39,s)?i("half_a_minute"):Ft(40,59,s)?i("less_than_x_minutes",1):i("x_minutes",1):f===0?i("less_than_x_minutes",1):i("x_minutes",f);if(Ft(2,44,f))return i("x_minutes",f);if(Ft(45,89,f))return i("about_x_hours",1);if(Ft(90,1439,f))return i("about_x_hours",d);if(Ft(1440,2519,f))return i("x_days",1);if(Ft(2520,43199,f))return i("x_days",E);if(Ft(43200,86399,f))return i("about_x_months",Math.round(f/43200));if(Ft(86400,525599,f))return i("x_months",p);let h=e.getFullYear();e.getMonth()+1>=3&&(h+=1);let g=t.getFullYear();t.getMonth()+1<3&&(g-=1);const b=h>g?0:(0,E70.default)(h,g).filter(C=>new Date(C,1,29).getMonth()==1).length,m=525600,A=b*1440,y=f-A,B=Math.trunc(y/m),v=parseFloat((y/m-B).toPrecision(3));return v<.25?i("about_x_years",B):v<.75?i("over_x_years",B):i("almost_x_years",B+1)}SE.timeAgoInWords=p70;(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.timeAgoInWords=u.strftime=u.roundNumber=u.propertyFlatList=u.pluralize=u.parseDate=u.numberToHumanSize=u.numberToHuman=u.numberToDelimited=u.lookup=u.isSet=u.interpolate=u.inferType=u.getFullScope=u.formatNumber=u.expandRoundMode=u.createTranslationOptions=u.camelCaseKeys=void 0;var e=bE;Object.defineProperty(u,"camelCaseKeys",{enumerable:!0,get:function(){return e.camelCaseKeys}});var t=gE;Object.defineProperty(u,"createTranslationOptions",{enumerable:!0,get:function(){return t.createTranslationOptions}});var n=I3;Object.defineProperty(u,"expandRoundMode",{enumerable:!0,get:function(){return n.expandRoundMode}});var r=AE;Object.defineProperty(u,"formatNumber",{enumerable:!0,get:function(){return r.formatNumber}});var i=R3;Object.defineProperty(u,"getFullScope",{enumerable:!0,get:function(){return i.getFullScope}});var a=N3;Object.defineProperty(u,"inferType",{enumerable:!0,get:function(){return a.inferType}});var o=vE;Object.defineProperty(u,"interpolate",{enumerable:!0,get:function(){return o.interpolate}});var s=_a;Object.defineProperty(u,"isSet",{enumerable:!0,get:function(){return s.isSet}});var f=M3;Object.defineProperty(u,"lookup",{enumerable:!0,get:function(){return f.lookup}});var l=BE;Object.defineProperty(u,"numberToDelimited",{enumerable:!0,get:function(){return l.numberToDelimited}});var c=FE;Object.defineProperty(u,"numberToHuman",{enumerable:!0,get:function(){return c.numberToHuman}});var d=wE;Object.defineProperty(u,"numberToHumanSize",{enumerable:!0,get:function(){return d.numberToHumanSize}});var E=zc;Object.defineProperty(u,"parseDate",{enumerable:!0,get:function(){return E.parseDate}});var p=xE;Object.defineProperty(u,"pluralize",{enumerable:!0,get:function(){return p.pluralize}});var h=kE;Object.defineProperty(u,"propertyFlatList",{enumerable:!0,get:function(){return h.propertyFlatList}});var g=Cs;Object.defineProperty(u,"roundNumber",{enumerable:!0,get:function(){return g.roundNumber}});var b=_E;Object.defineProperty(u,"strftime",{enumerable:!0,get:function(){return b.strftime}});var m=SE;Object.defineProperty(u,"timeAgoInWords",{enumerable:!0,get:function(){return m.timeAgoInWords}})})(PA);(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.MissingTranslation=u.errorStrategy=u.messageStrategy=u.guessStrategy=void 0;const e=PA,t=function(a,o){o instanceof Array&&(o=o.join(a.defaultSeparator));const s=o.split(a.defaultSeparator).slice(-1)[0];return a.missingTranslationPrefix+s.replace("_"," ").replace(/([a-z])([A-Z])/g,(f,l,c)=>`${l} ${c.toLowerCase()}`)};u.guessStrategy=t;const n=(a,o,s)=>{const f=(0,e.getFullScope)(a,o,s),l="locale"in s?s.locale:a.locale,c=(0,e.inferType)(l);return`[missing "${[c=="string"?l:c,f].join(a.defaultSeparator)}" translation]`};u.messageStrategy=n;const r=(a,o,s)=>{const f=(0,e.getFullScope)(a,o,s),l=[a.locale,f].join(a.defaultSeparator);throw new Error(`Missing translation: ${l}`)};u.errorStrategy=r;class i{constructor(o){this.i18n=o,this.registry={},this.register("guess",u.guessStrategy),this.register("message",u.messageStrategy),this.register("error",u.errorStrategy)}register(o,s){this.registry[o]=s}get(o,s){var f;return this.registry[(f=s.missingBehavior)!==null&&f!==void 0?f:this.i18n.missingBehavior](this.i18n,o,s)}}u.MissingTranslation=i})(TA);var h70=P0&&P0.__awaiter||function(u,e,t,n){function r(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function o(l){try{f(n.next(l))}catch(c){a(c)}}function s(l){try{f(n.throw(l))}catch(c){a(c)}}function f(l){l.done?i(l.value):r(l.value).then(o,s)}f((n=n.apply(u,e||[])).next())})},TE=P0&&P0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(cE,"__esModule",{value:!0});cE.I18n=void 0;const tw=TE(DA),C70=TE(cf0),m70=TE(kf0),b70=TE(Tf0),g70=kA,A70=SA,y70=TA,W0=PA,Q8={defaultLocale:"en",availableLocales:["en"],locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,enableFallback:!1,missingBehavior:"message",missingTranslationPrefix:"",missingPlaceholder:(u,e)=>`[missing "${e}" value]`,nullPlaceholder:(u,e,t,n)=>u.missingPlaceholder(u,e,t,n),transformKey:u=>u};class v70{constructor(e={},t={}){this._locale=Q8.locale,this._defaultLocale=Q8.defaultLocale,this._version=0,this.onChangeHandlers=[],this.translations={},this.availableLocales=[],this.t=this.translate,this.p=this.pluralize,this.l=this.localize,this.distanceOfTimeInWords=this.timeAgoInWords;const{locale:n,enableFallback:r,missingBehavior:i,missingTranslationPrefix:a,missingPlaceholder:o,nullPlaceholder:s,defaultLocale:f,defaultSeparator:l,placeholder:c,transformKey:d}=Object.assign(Object.assign({},Q8),t);this.locale=n,this.defaultLocale=f,this.defaultSeparator=l,this.enableFallback=r,this.locale=n,this.missingBehavior=i,this.missingTranslationPrefix=a,this.missingPlaceholder=o,this.nullPlaceholder=s,this.placeholder=c,this.pluralization=new A70.Pluralization(this),this.locales=new g70.Locales(this),this.missingTranslation=new y70.MissingTranslation(this),this.transformKey=d,this.interpolate=W0.interpolate,this.store(e)}store(e){(0,W0.propertyFlatList)(e).forEach(n=>(0,b70.default)(this.translations,n,(0,tw.default)(e,n),Object)),this.hasChanged()}get locale(){return this._locale||this.defaultLocale||"en"}set locale(e){if(typeof e!="string")throw new Error(`Expected newLocale to be a string; got ${(0,W0.inferType)(e)}`);const t=this._locale!==e;this._locale=e,t&&this.hasChanged()}get defaultLocale(){return this._defaultLocale||"en"}set defaultLocale(e){if(typeof e!="string")throw new Error(`Expected newLocale to be a string; got ${(0,W0.inferType)(e)}`);const t=this._defaultLocale!==e;this._defaultLocale=e,t&&this.hasChanged()}translate(e,t){t=Object.assign({},t);const n=(0,W0.createTranslationOptions)(this,e,t);let r;return n.some(a=>((0,W0.isSet)(a.scope)?r=(0,W0.lookup)(this,a.scope,t):(0,W0.isSet)(a.message)&&(r=a.message),r!=null))?(typeof r=="string"?r=this.interpolate(this,r,t):typeof r=="object"&&r&&(0,W0.isSet)(t.count)&&(r=(0,W0.pluralize)({i18n:this,count:t.count||0,scope:r,options:t,baseScope:(0,W0.getFullScope)(this,e,t)})),t&&r instanceof Array&&(r=r.map(a=>typeof a=="string"?(0,W0.interpolate)(this,a,t):a)),r):this.missingTranslation.get(e,t)}pluralize(e,t,n){return(0,W0.pluralize)({i18n:this,count:e,scope:t,options:Object.assign({},n),baseScope:(0,W0.getFullScope)(this,t,n??{})})}localize(e,t,n){if(n=Object.assign({},n),t==null)return"";switch(e){case"currency":return this.numberToCurrency(t);case"number":return(0,W0.formatNumber)(t,Object.assign({delimiter:",",precision:3,separator:".",significant:!1,stripInsignificantZeros:!1},(0,W0.lookup)(this,"number.format")));case"percentage":return this.numberToPercentage(t);default:{let r;return e.match(/^(date|time)/)?r=this.toTime(e,t):r=t.toString(),(0,W0.interpolate)(this,r,n)}}}toTime(e,t){const n=(0,W0.parseDate)(t),r=(0,W0.lookup)(this,e);return n.toString().match(/invalid/i)||!r?n.toString():this.strftime(n,r)}numberToCurrency(e,t={}){return(0,W0.formatNumber)(e,Object.assign(Object.assign(Object.assign({delimiter:",",format:"%u%n",precision:2,separator:".",significant:!1,stripInsignificantZeros:!1,unit:"$"},(0,W0.camelCaseKeys)(this.get("number.format"))),(0,W0.camelCaseKeys)(this.get("number.currency.format"))),t))}numberToPercentage(e,t={}){return(0,W0.formatNumber)(e,Object.assign(Object.assign(Object.assign({delimiter:"",format:"%n%",precision:3,stripInsignificantZeros:!1,separator:".",significant:!1},(0,W0.camelCaseKeys)(this.get("number.format"))),(0,W0.camelCaseKeys)(this.get("number.percentage.format"))),t))}numberToHumanSize(e,t={}){return(0,W0.numberToHumanSize)(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",precision:3,significant:!0,stripInsignificantZeros:!0,units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},(0,W0.camelCaseKeys)(this.get("number.human.format"))),(0,W0.camelCaseKeys)(this.get("number.human.storage_units"))),t))}numberToHuman(e,t={}){return(0,W0.numberToHuman)(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",separator:".",precision:3,significant:!0,stripInsignificantZeros:!0,format:"%n %u",roundMode:"default",units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},(0,W0.camelCaseKeys)(this.get("number.human.format"))),(0,W0.camelCaseKeys)(this.get("number.human.decimal_units"))),t))}numberToRounded(e,t){return(0,W0.formatNumber)(e,Object.assign({unit:"",precision:3,significant:!1,separator:".",delimiter:"",stripInsignificantZeros:!1},t))}numberToDelimited(e,t={}){return(0,W0.numberToDelimited)(e,Object.assign({delimiterPattern:/(\d)(?=(\d\d\d)+(?!\d))/g,delimiter:",",separator:"."},t))}withLocale(e,t){return h70(this,void 0,void 0,function*(){const n=this.locale;try{this.locale=e,yield t()}finally{this.locale=n}})}strftime(e,t,n={}){return(0,W0.strftime)(e,t,Object.assign(Object.assign(Object.assign({},(0,W0.camelCaseKeys)((0,W0.lookup)(this,"date"))),{meridian:{am:(0,W0.lookup)(this,"time.am")||"AM",pm:(0,W0.lookup)(this,"time.pm")||"PM"}}),n))}update(e,t,n={strict:!1}){if(n.strict&&!(0,C70.default)(this.translations,e))throw new Error(`The path "${e}" is not currently defined`);const r=(0,tw.default)(this.translations,e),i=(0,W0.inferType)(r),a=(0,W0.inferType)(t);if(n.strict&&i!==a)throw new Error(`The current type for "${e}" is "${i}", but you're trying to override it with "${a}"`);let o;a==="object"?o=Object.assign(Object.assign({},r),t):o=t,(0,m70.default)(this.translations,e,o),this.hasChanged()}toSentence(e,t={}){const{wordsConnector:n,twoWordsConnector:r,lastWordConnector:i}=Object.assign(Object.assign({wordsConnector:", ",twoWordsConnector:" and ",lastWordConnector:", and "},(0,W0.camelCaseKeys)((0,W0.lookup)(this,"support.array"))),t),a=e.length;switch(a){case 0:return"";case 1:return`${e[0]}`;case 2:return e.join(r);default:return[e.slice(0,a-1).join(n),i,e[a-1]].join("")}}timeAgoInWords(e,t,n={}){return(0,W0.timeAgoInWords)(this,e,t,n)}onChange(e){return this.onChangeHandlers.push(e),()=>{this.onChangeHandlers.splice(this.onChangeHandlers.indexOf(e),1)}}get version(){return this._version}formatNumber(e,t){return(0,W0.formatNumber)(e,t)}get(e){return(0,W0.lookup)(this,e)}runCallbacks(){this.onChangeHandlers.forEach(e=>e(this))}hasChanged(){this._version+=1,this.runCallbacks()}}cE.I18n=v70;var VN={};Object.defineProperty(VN,"__esModule",{value:!0});(function(u){var e=P0&&P0.__createBinding||(Object.create?function(o,s,f,l){l===void 0&&(l=f);var c=Object.getOwnPropertyDescriptor(s,f);(!c||("get"in c?!s.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(o,l,c)}:function(o,s,f,l){l===void 0&&(l=f),o[l]=s[f]}),t=P0&&P0.__exportStar||function(o,s){for(var f in o)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&e(s,o,f)};Object.defineProperty(u,"__esModule",{value:!0}),u.useMakePlural=u.Pluralization=u.MissingTranslation=u.Locales=u.I18n=void 0;var n=cE;Object.defineProperty(u,"I18n",{enumerable:!0,get:function(){return n.I18n}});var r=kA;Object.defineProperty(u,"Locales",{enumerable:!0,get:function(){return r.Locales}});var i=TA;Object.defineProperty(u,"MissingTranslation",{enumerable:!0,get:function(){return i.MissingTranslation}});var a=SA;Object.defineProperty(u,"Pluralization",{enumerable:!0,get:function(){return a.Pluralization}}),Object.defineProperty(u,"useMakePlural",{enumerable:!0,get:function(){return a.useMakePlural}}),t(VN,u)})(KR);var Oi=function(){return Oi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u")return $70;var e=U70(u),t=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-t+e[2]-e[0])}},q70=JN(),H70=function(u,e,t,n){var r=u.left,i=u.top,a=u.right,o=u.gap;return t===void 0&&(t="margin"),` + */var sE=w,kr0=ng;function _r0(u,e){return u===e&&(u!==0||1/u===1/e)||u!==u&&e!==e}var Sr0=typeof Object.is=="function"?Object.is:_r0,Tr0=kr0.useSyncExternalStore,Pr0=sE.useRef,Ir0=sE.useEffect,Or0=sE.useMemo,Rr0=sE.useDebugValue;UR.useSyncExternalStoreWithSelector=function(u,e,t,n,r){var i=Pr0(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=Or0(function(){function s(E){if(!f){if(f=!0,l=E,E=n(E),r!==void 0&&a.hasValue){var p=a.value;if(r(p,E))return c=p}return c=E}if(p=c,Sr0(l,E))return p;var h=n(E);return r!==void 0&&r(p,h)?p:(l=E,c=h)}var f=!1,l,c,d=t===void 0?null:t;return[function(){return s(e())},d===null?void 0:function(){return s(d())}]},[e,t,n,r]);var o=Tr0(u,i[0],i[1]);return Ir0(function(){a.hasValue=!0,a.value=o},[o]),Rr0(o),o};$R.exports=UR;var mA=$R.exports;function Nr0({queryClient:u=new HJ({defaultOptions:{queries:{cacheTime:1e3*60*60*24,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}}),storage:e=NR({storage:typeof window<"u"&&window.localStorage?window.localStorage:RR}),persister:t=typeof window<"u"?SJ({key:"cache",storage:e,serialize:r=>r,deserialize:r=>r}):void 0,...n}){const r=sr0({...n,storage:e});return t&&BZ({queryClient:u,persister:t,dehydrateOptions:{shouldDehydrateQuery:i=>i.cacheTime!==0&&i.queryKey[0].persist!==!1}}),Object.assign(r,{queryClient:u})}var WR=w.createContext(void 0),fE=w.createContext(void 0);function Mr0({children:u,config:e}){return w.createElement(WR.Provider,{children:w.createElement(dZ,{children:u,client:e.queryClient,context:fE}),value:e})}function lE(){const u=w.useContext(WR);if(!u)throw new Error(["`useConfig` must be used within `WagmiConfig`.\n","Read more: https://wagmi.sh/react/WagmiConfig"].join(` +`));return u}var jr0=ng.useSyncExternalStore;function zr0(u){return Array.isArray(u)}function Lr0(u){if(!iD(u))return!1;const e=u.constructor;if(typeof e>"u")return!0;const t=e.prototype;return!(!iD(t)||!t.hasOwnProperty("isPrototypeOf"))}function iD(u){return Object.prototype.toString.call(u)==="[object Object]"}function $r0(u,e,t){return zr0(u)?typeof e=="function"?{...t,queryKey:u,queryFn:e}:{...e,queryKey:u}:u}function Ur0(u){return JSON.stringify(u,(e,t)=>Lr0(t)?Object.keys(t).sort().reduce((n,r)=>(n[r]=t[r],n),{}):typeof t=="bigint"?t.toString():t)}function Wr0(u,e){return typeof u=="function"?u(...e):!!u}function qr0(u,e){const t={};return Object.keys(u).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(e.trackedProps.add(n),u[n])})}),t}function Hr0(u,e){const t=rg({context:u.context}),n=EZ(),r=CZ(),i=t.defaultQueryOptions({...u,queryKeyHashFn:Ur0});i._optimisticResults=n?"isRestoring":"optimistic",i.onError&&(i.onError=Hu.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=Hu.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=Hu.batchCalls(i.onSettled)),i.suspense&&typeof i.staleTime!="number"&&(i.staleTime=1e3),(i.suspense||i.useErrorBoundary)&&(r.isReset()||(i.retryOnMount=!1));const[a]=w.useState(()=>new e(t,i)),o=a.getOptimisticResult(i);if(jr0(w.useCallback(c=>n?()=>{}:a.subscribe(Hu.batchCalls(c)),[a,n]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),w.useEffect(()=>{r.clearReset()},[r]),w.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),i.suspense&&o.isLoading&&o.isFetching&&!n)throw a.fetchOptimistic(i).then(({data:c})=>{var d,E;(d=i.onSuccess)==null||d.call(i,c),(E=i.onSettled)==null||E.call(i,c,null)}).catch(c=>{var d,E;r.clearReset(),(d=i.onError)==null||d.call(i,c),(E=i.onSettled)==null||E.call(i,void 0,c)});if(o.isError&&!r.isReset()&&!o.isFetching&&Wr0(i.useErrorBoundary,[o.error,a.getCurrentQuery()]))throw o.error;const s=o.status==="loading"&&o.fetchStatus==="idle"?"idle":o.status,f=s==="idle",l=s==="loading"&&o.fetchStatus==="fetching";return{...o,defaultedOptions:i,isIdle:f,isLoading:l,observer:a,status:s}}function Oc(u,e,t){const n=RP(u,e,t);return bZ({context:fE,...n})}function Es(u,e,t){const n=$r0(u,e,t),r=Hr0({context:fE,...n},GJ),i={data:r.data,error:r.error,fetchStatus:r.fetchStatus,isError:r.isError,isFetched:r.isFetched,isFetchedAfterMount:r.isFetchedAfterMount,isFetching:r.isFetching,isIdle:r.isIdle,isLoading:r.isLoading,isRefetching:r.isRefetching,isSuccess:r.isSuccess,refetch:r.refetch,status:r.status,internal:{dataUpdatedAt:r.dataUpdatedAt,errorUpdatedAt:r.errorUpdatedAt,failureCount:r.failureCount,isFetchedAfterMount:r.isFetchedAfterMount,isLoadingError:r.isLoadingError,isPaused:r.isPaused,isPlaceholderData:r.isPlaceholderData,isPreviousData:r.isPreviousData,isRefetchError:r.isRefetchError,isStale:r.isStale,remove:r.remove}};return r.defaultedOptions.notifyOnChangeProps?i:qr0(i,r.observer)}var bA=()=>rg({context:fE});function cE({chainId:u}={}){return mA.useSyncExternalStoreWithSelector(e=>Er0({chainId:u},e),()=>mn({chainId:u}),()=>mn({chainId:u}),e=>e,(e,t)=>e.uid===t.uid)}function $8({chainId:u}){return[{entity:"walletClient",chainId:u,persist:!1}]}function Gr0({queryKey:[{chainId:u}]}){return Ic({chainId:u})}function Vr0({chainId:u,suspense:e,onError:t,onSettled:n,onSuccess:r}={}){const{connector:i}=Bt(),a=x3({chainId:u}),o=Es($8({chainId:a}),Gr0,{cacheTime:0,enabled:!!i,staleTime:1/0,suspense:e,onError:t,onSettled:n,onSuccess:r}),s=bA();return w.useEffect(()=>pr0({chainId:a},l=>{l?s.invalidateQueries($8({chainId:a})):s.removeQueries($8({chainId:a}))}),[s,a]),o}function Kr0({chainId:u}={}){return mA.useSyncExternalStoreWithSelector(e=>hr0({chainId:u},e),()=>yC({chainId:u}),()=>yC({chainId:u}),e=>e,(e,t)=>(e==null?void 0:e.uid)===(t==null?void 0:t.uid))}function x3({chainId:u}={}){return cE({chainId:u}).chain.id}function Qr0(){const[,u]=w.useReducer(e=>e+1,0);return u}function aD({chainId:u,scopeKey:e}){return[{entity:"blockNumber",chainId:u,scopeKey:e}]}function Jr0({queryKey:[{chainId:u}]}){return wr0({chainId:u})}function Zr0({cacheTime:u=0,chainId:e,enabled:t=!0,scopeKey:n,staleTime:r,suspense:i,watch:a=!1,onBlock:o,onError:s,onSettled:f,onSuccess:l}={}){const c=x3({chainId:e}),d=cE({chainId:c}),E=Kr0({chainId:c}),p=bA();return w.useEffect(()=>!t||!a&&!o?void 0:(E??d).watchBlockNumber({onBlockNumber:b=>{a&&p.setQueryData(aD({chainId:c,scopeKey:n}),b),o&&o(b)},emitOnBegin:!0}),[c,n,o,d,p,a,E,t]),Es(aD({scopeKey:n,chainId:c}),Jr0,{cacheTime:u,enabled:t,staleTime:r,suspense:i,onError:s,onSettled:f,onSuccess:l})}function Yr0({chainId:u,enabled:e,queryKey:t}){const n=bA(),r=w.useCallback(()=>n.invalidateQueries({queryKey:t},{cancelRefetch:!1}),[n,t]);Zr0({chainId:u,enabled:e,onBlock:e?r:void 0,scopeKey:e?void 0:"idle"})}var U8=u=>typeof u=="object"&&!Array.isArray(u);function qR(u,e,t=e,n=mC){const r=w.useRef([]),i=mA.useSyncExternalStoreWithSelector(u,e,t,a=>a,(a,o)=>{if(U8(a)&&U8(o)&&r.current.length){for(const s of r.current)if(!n(a[s],o[s]))return!1;return!0}return n(a,o)});if(U8(i)){const a={...i};return Object.defineProperties(a,Object.entries(a).reduce((o,[s,f])=>({...o,[s]:{configurable:!1,enumerable:!0,get:()=>(r.current.includes(s)||r.current.push(s),f)}}),{})),a}return i}function Bt({onConnect:u,onDisconnect:e}={}){const t=lE(),n=w.useCallback(o=>vr0(o),[t]),r=qR(n,zR),i=w.useRef(),a=i.current;return w.useEffect(()=>{(a==null?void 0:a.status)!=="connected"&&r.status==="connected"&&(u==null||u({address:r.address,connector:r.connector,isReconnected:(a==null?void 0:a.status)==="reconnecting"||(a==null?void 0:a.status)===void 0})),(a==null?void 0:a.status)==="connected"&&r.status==="disconnected"&&(e==null||e()),i.current=r},[u,e,a,r]),r}function Xr0({address:u,chainId:e,formatUnits:t,scopeKey:n,token:r}){return[{entity:"balance",address:u,chainId:e,formatUnits:t,scopeKey:n,token:r}]}function ui0({queryKey:[{address:u,chainId:e,formatUnits:t,token:n}]}){if(!u)throw new Error("address is required");return gr0({address:u,chainId:e,formatUnits:t,token:n})}function HR({address:u,cacheTime:e,chainId:t,enabled:n=!0,formatUnits:r,scopeKey:i,staleTime:a,suspense:o,token:s,watch:f,onError:l,onSettled:c,onSuccess:d}={}){const E=x3({chainId:t}),p=w.useMemo(()=>Xr0({address:u,chainId:E,formatUnits:r,scopeKey:i,token:s}),[u,E,r,i,s]),h=Es(p,ui0,{cacheTime:e,enabled:!!(n&&u),staleTime:a,suspense:o,onError:l,onSettled:c,onSuccess:d});return Yr0({chainId:E,enabled:!!(n&&f&&u),queryKey:p}),h}var ei0=u=>[{entity:"connect",...u}],ti0=u=>{const{connector:e,chainId:t}=u;if(!e)throw new Error("connector is required");return fr0({connector:e,chainId:t})};function ni0({chainId:u,connector:e,onError:t,onMutate:n,onSettled:r,onSuccess:i}={}){const a=lE(),{data:o,error:s,isError:f,isIdle:l,isLoading:c,isSuccess:d,mutate:E,mutateAsync:p,reset:h,status:g,variables:b}=Oc(ei0({connector:e,chainId:u}),ti0,{onError:t,onMutate:n,onSettled:r,onSuccess:i}),m=w.useCallback(y=>E({chainId:(y==null?void 0:y.chainId)??u,connector:(y==null?void 0:y.connector)??e}),[u,e,E]),A=w.useCallback(y=>p({chainId:(y==null?void 0:y.chainId)??u,connector:(y==null?void 0:y.connector)??e}),[u,e,p]);return{connect:m,connectAsync:A,connectors:a.connectors,data:o,error:s,isError:f,isIdle:l,isLoading:c,isSuccess:d,pendingConnector:b==null?void 0:b.connector,reset:h,status:g,variables:b}}var ri0=[{entity:"disconnect"}],ii0=()=>lr0();function gA({onError:u,onMutate:e,onSettled:t,onSuccess:n}={}){const{error:r,isError:i,isIdle:a,isLoading:o,isSuccess:s,mutate:f,mutateAsync:l,reset:c,status:d}=Oc(ri0,ii0,{...u?{onError(E,p,h){u(E,h)}}:{},onMutate:e,...t?{onSettled(E,p,h,g){t(p,g)}}:{},...n?{onSuccess(E,p,h){n(h)}}:{}});return{disconnect:f,disconnectAsync:l,error:r,isError:i,isIdle:a,isLoading:o,isSuccess:s,reset:c,status:d}}function Sa(){const u=lE(),e=w.useCallback(t=>Br0(t),[u]);return qR(e,CA)}var ai0=u=>[{entity:"signMessage",...u}],oi0=u=>{const{message:e}=u;if(!e)throw new Error("message is required");return Ar0({message:e})};function si0({message:u,onError:e,onMutate:t,onSettled:n,onSuccess:r}={}){const{data:i,error:a,isError:o,isIdle:s,isLoading:f,isSuccess:l,mutate:c,mutateAsync:d,reset:E,status:p,variables:h}=Oc(ai0({message:u}),oi0,{onError:e,onMutate:t,onSettled:n,onSuccess:r}),g=w.useCallback(m=>c(m||{message:u}),[u,c]),b=w.useCallback(m=>d(m||{message:u}),[u,d]);return{data:i,error:a,isError:o,isIdle:s,isLoading:f,isSuccess:l,reset:E,signMessage:g,signMessageAsync:b,status:p,variables:h}}var fi0=u=>[{entity:"switchNetwork",...u}],li0=u=>{const{chainId:e}=u;if(!e)throw new Error("chainId is required");return yr0({chainId:e})};function ci0({chainId:u,throwForSwitchChainNotSupported:e,onError:t,onMutate:n,onSettled:r,onSuccess:i}={}){var F;const a=lE(),o=Qr0(),{data:s,error:f,isError:l,isIdle:c,isLoading:d,isSuccess:E,mutate:p,mutateAsync:h,reset:g,status:b,variables:m}=Oc(fi0({chainId:u}),li0,{onError:t,onMutate:n,onSettled:r,onSuccess:i}),A=w.useCallback(S=>p({chainId:S??u}),[u,p]),y=w.useCallback(S=>h({chainId:S??u}),[u,h]);w.useEffect(()=>a.subscribe(({chains:x,connector:$})=>({chains:x,connector:$}),o),[a,o]);let B,v;const C=!!((F=a.connector)!=null&&F.switchChain);return(e||C)&&(B=A,v=y),{chains:a.chains??[],data:s,error:f,isError:l,isIdle:c,isLoading:d,isSuccess:E,pendingChainId:m==null?void 0:m.chainId,reset:g,status:b,switchNetwork:B,switchNetworkAsync:v,variables:m}}function di0({address:u,abi:e,functionName:t,...n}){const{args:r,accessList:i,account:a,dataSuffix:o,gas:s,gasPrice:f,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:d,request:E,value:p}=n;return[{entity:"writeContract",address:u,args:r,abi:e,accessList:i,account:a,dataSuffix:o,functionName:t,gas:s,gasPrice:f,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:d,request:E,value:p}]}function Ei0(u){if(u.mode==="prepared"){if(!u.request)throw new Error("request is required");return rD({mode:"prepared",request:u.request})}if(!u.address)throw new Error("address is required");if(!u.abi)throw new Error("abi is required");if(!u.functionName)throw new Error("functionName is required");return rD({address:u.address,args:u.args,chainId:u.chainId,abi:u.abi,functionName:u.functionName,accessList:u.accessList,account:u.account,dataSuffix:u.dataSuffix,gas:u.gas,gasPrice:u.gasPrice,maxFeePerGas:u.maxFeePerGas,maxPriorityFeePerGas:u.maxPriorityFeePerGas,nonce:u.nonce,value:u.value})}function lf(u){const{address:e,abi:t,args:n,chainId:r,functionName:i,mode:a,request:o,dataSuffix:s}=u,{accessList:f,account:l,gas:c,gasPrice:d,maxFeePerGas:E,maxPriorityFeePerGas:p,nonce:h,value:g}=rr0(u),{data:b,error:m,isError:A,isIdle:y,isLoading:B,isSuccess:v,mutate:C,mutateAsync:F,reset:S,status:x,variables:$}=Oc(di0({address:e,abi:t,functionName:i,chainId:r,mode:a,args:n,accessList:f,account:l,dataSuffix:s,gas:c,gasPrice:d,maxFeePerGas:E,maxPriorityFeePerGas:p,nonce:h,request:o,value:g}),Ei0,{onError:u.onError,onMutate:u.onMutate,onSettled:u.onSettled,onSuccess:u.onSuccess}),X=w.useMemo(()=>u.mode==="prepared"?o?()=>C({mode:"prepared",request:u.request,chainId:u.chainId}):void 0:Z=>C({address:e,args:n,abi:t,functionName:i,chainId:r,accessList:f,account:l,dataSuffix:s,gas:c,gasPrice:d,maxFeePerGas:E,maxPriorityFeePerGas:p,nonce:h,value:g,...Z}),[f,l,t,e,n,r,u.chainId,u.mode,u.request,s,i,c,d,E,p,C,h,o,g]),Q=w.useMemo(()=>u.mode==="prepared"?o?()=>F({mode:"prepared",request:u.request}):void 0:Z=>F({address:e,args:n,abi:t,chainId:r,functionName:i,accessList:f,account:l,dataSuffix:s,gas:c,gasPrice:d,maxFeePerGas:E,maxPriorityFeePerGas:p,nonce:h,value:g,...Z}),[f,l,t,e,n,r,u.mode,u.request,s,i,c,d,E,p,F,h,o,g]);return{data:b,error:m,isError:A,isIdle:y,isLoading:B,isSuccess:v,reset:S,status:x,variables:$,write:X,writeAsync:Q}}function pi0({accessList:u,account:e,activeChainId:t,args:n,address:r,blockNumber:i,blockTag:a,chainId:o,dataSuffix:s,functionName:f,gas:l,gasPrice:c,maxFeePerGas:d,maxPriorityFeePerGas:E,nonce:p,scopeKey:h,walletClientAddress:g,value:b}){return[{entity:"prepareContractTransaction",accessList:u,account:e,activeChainId:t,address:r,args:n,blockNumber:i,blockTag:a,chainId:o,dataSuffix:s,functionName:f,gas:l,gasPrice:c,maxFeePerGas:d,maxPriorityFeePerGas:E,nonce:p,scopeKey:h,walletClientAddress:g,value:b}]}function hi0({abi:u,walletClient:e}){return({queryKey:[{accessList:t,account:n,args:r,address:i,blockNumber:a,blockTag:o,chainId:s,dataSuffix:f,functionName:l,gas:c,gasPrice:d,maxFeePerGas:E,maxPriorityFeePerGas:p,nonce:h,value:g}]})=>{if(!u)throw new Error("abi is required");if(!i)throw new Error("address is required");if(!l)throw new Error("functionName is required");return jR({abi:u,accessList:t,account:n,args:r,address:i,blockNumber:a,blockTag:o,chainId:s,dataSuffix:f,functionName:l,gas:c,gasPrice:d,maxFeePerGas:E,maxPriorityFeePerGas:p,nonce:h,walletClient:e,value:g})}}function cf({address:u,abi:e,functionName:t,chainId:n,args:r,cacheTime:i,dataSuffix:a,enabled:o=!0,scopeKey:s,staleTime:f,suspense:l,onError:c,onSettled:d,onSuccess:E,...p}={}){const{chain:h}=Sa(),{data:g}=Vr0({chainId:n}),{accessList:b,account:m,blockNumber:A,blockTag:y,gas:B,gasPrice:v,maxFeePerGas:C,maxPriorityFeePerGas:F,nonce:S,value:x}=OR(p),$=Es(pi0({accessList:b,account:m,activeChainId:h==null?void 0:h.id,address:u,args:r,blockNumber:A,blockTag:y,chainId:n,dataSuffix:a,functionName:t,gas:B,gasPrice:v,maxFeePerGas:C,maxPriorityFeePerGas:F,nonce:S,scopeKey:s,walletClientAddress:g==null?void 0:g.account.address,value:x}),hi0({abi:e,walletClient:g}),{cacheTime:i,enabled:!!(o&&e&&u&&t&&g),staleTime:f,suspense:l,onError:c,onSettled:d,onSuccess:E});return Object.assign($,{config:{chainId:n,mode:"prepared",request:void 0,...$.data}})}function Ci0({name:u,chainId:e,scopeKey:t}){return[{entity:"ensAvatar",name:u,chainId:e,scopeKey:t}]}function mi0({queryKey:[{name:u,chainId:e}]}){if(!u)throw new Error("name is required");return Fr0({name:u,chainId:e})}function bi0({cacheTime:u,chainId:e,enabled:t=!0,name:n,scopeKey:r,staleTime:i=1e3*60*60*24,suspense:a,onError:o,onSettled:s,onSuccess:f}={}){const l=x3({chainId:e});return Es(Ci0({name:n,chainId:l,scopeKey:r}),mi0,{cacheTime:u,enabled:!!(t&&n&&l),staleTime:i,suspense:a,onError:o,onSettled:s,onSuccess:f})}function gi0({address:u,chainId:e,scopeKey:t}){return[{entity:"ensName",address:u,chainId:e,scopeKey:t}]}function Ai0({queryKey:[{address:u,chainId:e}]}){if(!u)throw new Error("address is required");return Dr0({address:u,chainId:e})}function yi0({address:u,cacheTime:e,chainId:t,enabled:n=!0,scopeKey:r,staleTime:i=1e3*60*60*24,suspense:a,onError:o,onSettled:s,onSuccess:f}={}){const l=x3({chainId:t});return Es(gi0({address:u,chainId:l,scopeKey:r}),Ai0,{cacheTime:e,enabled:!!(n&&u&&l),staleTime:i,suspense:a,onError:o,onSettled:s,onSuccess:f})}function vi0({confirmations:u,chainId:e,hash:t,scopeKey:n,timeout:r}){return[{entity:"waitForTransaction",confirmations:u,chainId:e,hash:t,scopeKey:n,timeout:r}]}function Bi0({onReplaced:u}){return({queryKey:[{chainId:e,confirmations:t,hash:n,timeout:r}]})=>{if(!n)throw new Error("hash is required");return xr0({chainId:e,confirmations:t,hash:n,onReplaced:u,timeout:r})}}function df({chainId:u,confirmations:e,hash:t,timeout:n,cacheTime:r,enabled:i=!0,scopeKey:a,staleTime:o,suspense:s,onError:f,onReplaced:l,onSettled:c,onSuccess:d}={}){const E=x3({chainId:u});return Es(vi0({chainId:E,confirmations:e,hash:t,scopeKey:a,timeout:n}),Bi0({onReplaced:l}),{cacheTime:r,enabled:!!(i&&t),staleTime:o,suspense:s,onError:f,onSettled:c,onSuccess:d})}function GR(u){var e,t,n="";if(typeof u=="string"||typeof u=="number")n+=u;else if(typeof u=="object")if(Array.isArray(u))for(e=0;e-1}var vo0=yo0,Bo0=hE;function Fo0(u,e){var t=this.__data__,n=Bo0(t,u);return n<0?(++this.size,t.push([u,e])):t[n][1]=e,this}var Do0=Fo0,wo0=so0,xo0=Co0,ko0=go0,_o0=vo0,So0=Do0;function _3(u){var e=-1,t=u==null?0:u.length;for(this.clear();++e-1&&u%1==0&&u-1&&u%1==0&&u<=Xs0}var kA=uf0,ef0=FA,tf0=xA,nf0=Ar,rf0=bE,if0=kA,af0=zc;function of0(u,e,t){e=ef0(e,u);for(var n=-1,r=e.length,i=!1;++n-1}var Xf0=Yf0;function u40(u,e,t){for(var n=-1,r=u==null?0:u.length;++n=A40){var f=e?null:b40(u);if(f)return g40(f);a=!1,r=m40,s=new p40}else s=e?[]:o;u:for(;++n{const o=[],s=[];return o.push(a),a||o.push(i.locale),i.enableFallback&&o.push(i.defaultLocale),o.filter(Boolean).map(f=>f.toString()).forEach(function(f){if(s.includes(f)||s.push(f),!i.enableFallback)return;const l=f.split("-");l.length===3&&s.push(`${l[0]}-${l[1]}`),s.push(l[0])}),(0,t.default)(s)};u.defaultLocaleResolver=n;class r{constructor(a){this.i18n=a,this.registry={},this.register("default",u.defaultLocaleResolver)}register(a,o){if(typeof o!="function"){const s=o;o=()=>s}this.registry[a]=o}get(a){let o=this.registry[a]||this.registry[this.i18n.locale]||this.registry.default;return typeof o=="function"&&(o=o(this.i18n,a)),o instanceof Array||(o=[o]),o}}u.Locales=r})(_A);var TA={};const v0=(u,e)=>e?"other":u==1?"one":"other",Ci=(u,e)=>e?"other":u==0||u==1?"one":"other",P3=(u,e)=>e?"other":u>=0&&u<=1?"one":"other",yn=(u,e)=>{const t=String(u).split("."),n=!t[1];return e?"other":u==1&&n?"one":"other"},lu=(u,e)=>"other",mi=(u,e)=>e?"other":u==1?"one":u==2?"two":"other",w40=v0,x40=Ci,k40=P3,_40=v0,S40=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-2);return e?"other":u==0?"zero":u==1?"one":u==2?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},T40=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-2);return e?"other":u==0?"zero":u==1?"one":u==2?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},P40=(u,e)=>e?u==1||u==5||u==7||u==8||u==9||u==10?"one":u==2||u==3?"two":u==4?"few":u==6?"many":"other":u>=0&&u<=1?"one":"other",I40=v0,O40=yn,R40=(u,e)=>{const t=String(u).split("."),n=t[0],r=n.slice(-1),i=n.slice(-2),a=n.slice(-3);return e?r==1||r==2||r==5||r==7||r==8||i==20||i==50||i==70||i==80?"one":r==3||r==4||a==100||a==200||a==300||a==400||a==500||a==600||a==700||a==800||a==900?"few":n==0||r==6||i==40||i==60||i==90?"many":"other":u==1?"one":"other"},N40=(u,e)=>u==1?"one":"other",M40=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-1),i=n&&t[0].slice(-2);return e?(r==2||r==3)&&i!=12&&i!=13?"few":"other":r==1&&i!=11?"one":r>=2&&r<=4&&(i<12||i>14)?"few":n&&r==0||r>=5&&r<=9||i>=11&&i<=14?"many":"other"},j40=v0,z40=v0,L40=v0,$40=Ci,U40=lu,W40=(u,e)=>e?u==1||u==5||u==7||u==8||u==9||u==10?"one":u==2||u==3?"two":u==4?"few":u==6?"many":"other":u>=0&&u<=1?"one":"other",q40=lu,H40=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-1),i=n&&t[0].slice(-2),a=n&&t[0].slice(-6);return e?"other":r==1&&i!=11&&i!=71&&i!=91?"one":r==2&&i!=12&&i!=72&&i!=92?"two":(r==3||r==4||r==9)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":u!=0&&n&&a==0?"many":"other"},G40=v0,V40=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),f=r.slice(-2);return e?"other":i&&a==1&&o!=11||s==1&&f!=11?"one":i&&a>=2&&a<=4&&(o<12||o>14)||s>=2&&s<=4&&(f<12||f>14)?"few":"other"},K40=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?u==1||u==3?"one":u==2?"two":u==4?"few":"other":u==1&&r?"one":n!=0&&i==0&&r?"many":"other"},Q40=v0,J40=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=r.slice(-1);return e?"other":i&&(n==1||n==2||n==3)||i&&a!=4&&a!=6&&a!=9||!i&&o!=4&&o!=6&&o!=9?"one":"other"},Z40=v0,Y40=v0,X40=v0,u30=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1];return e?"other":u==1&&r?"one":n>=2&&n<=4&&r?"few":r?"other":"many"},e30=(u,e)=>e?u==0||u==7||u==8||u==9?"zero":u==1?"one":u==2?"two":u==3||u==4?"few":u==5||u==6?"many":"other":u==0?"zero":u==1?"one":u==2?"two":u==3?"few":u==6?"many":"other",t30=(u,e)=>{const t=String(u).split("."),n=t[0],r=Number(t[0])==u;return e?"other":u==1||!r&&(n==0||n==1)?"one":"other"},n30=yn,r30=P3,i30=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-2),o=r.slice(-2);return e?"other":i&&a==1||o==1?"one":i&&a==2||o==2?"two":i&&(a==3||a==4)||o==3||o==4?"few":"other"},a30=v0,o30=lu,s30=v0,f30=v0,l30=(u,e)=>{const t=String(u).split("."),n=!t[1],r=Number(t[0])==u,i=r&&t[0].slice(-1),a=r&&t[0].slice(-2);return e?i==1&&a!=11?"one":i==2&&a!=12?"two":i==3&&a!=13?"few":"other":u==1&&n?"one":"other"},c30=v0,d30=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?"other":u==1?"one":n!=0&&i==0&&r?"many":"other"},E30=yn,p30=v0,h30=P3,C30=(u,e)=>e?"other":u>=0&&u<2?"one":"other",m30=yn,b30=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=r.slice(-1);return e?u==1?"one":"other":i&&(n==1||n==2||n==3)||i&&a!=4&&a!=6&&a!=9||!i&&o!=4&&o!=6&&o!=9?"one":"other"},g30=v0,A30=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?u==1?"one":"other":u>=0&&u<2?"one":n!=0&&i==0&&r?"many":"other"},y30=v0,v30=yn,B30=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?u==1?"one":"other":u==1?"one":u==2?"two":n&&u>=3&&u<=6?"few":n&&u>=7&&u<=10?"many":"other"},F30=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?u==1||u==11?"one":u==2||u==12?"two":u==3||u==13?"few":"other":u==1||u==11?"one":u==2||u==12?"two":n&&u>=3&&u<=10||n&&u>=13&&u<=19?"few":"other"},D30=yn,w30=v0,x30=(u,e)=>e?u==1?"one":u==2||u==3?"two":u==4?"few":u==6?"many":"other":u>=0&&u<=1?"one":"other",k30=Ci,_30=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-1),a=n.slice(-2);return e?"other":r&&i==1?"one":r&&i==2?"two":r&&(a==0||a==20||a==40||a==60||a==80)?"few":r?"other":"many"},S30=v0,T30=v0,P30=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1];return e?"other":n==1&&r||n==0&&!r?"one":n==2&&r?"two":"other"},I30=(u,e)=>e?u==1?"one":u==2||u==3?"two":u==4?"few":u==6?"many":"other":u>=0&&u<=1?"one":"other",O30=lu,R30=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),f=r.slice(-2);return e?"other":i&&a==1&&o!=11||s==1&&f!=11?"one":i&&a>=2&&a<=4&&(o<12||o>14)||s>=2&&s<=4&&(f<12||f>14)?"few":"other"},N30=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-2),o=r.slice(-2);return e?"other":i&&a==1||o==1?"one":i&&a==2||o==2?"two":i&&(a==3||a==4)||o==3||o==4?"few":"other"},M30=(u,e)=>e?u==1||u==5?"one":"other":u==1?"one":"other",j30=(u,e)=>e?u==1?"one":"other":u>=0&&u<2?"one":"other",z30=yn,L30=lu,$30=lu,U30=lu,W30=yn,q30=(u,e)=>{const t=String(u).split("."),n=t[0],r=(t[1]||"").replace(/0+$/,""),i=Number(t[0])==u,a=n.slice(-1),o=n.slice(-2);return e?"other":i&&a==1&&o!=11||r%10==1&&r%100!=11?"one":"other"},H30=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?u==11||u==8||u==80||u==800?"many":"other":u==1&&r?"one":n!=0&&i==0&&r?"many":"other"},G30=mi,V30=lu,K30=lu,Q30=v0,J30=v0,Z30=lu,Y30=lu,X30=(u,e)=>{const t=String(u).split("."),n=t[0],r=n.slice(-2);return e?n==1?"one":n==0||r>=2&&r<=20||r==40||r==60||r==80?"many":"other":u==1?"one":"other"},ul0=(u,e)=>e?"other":u>=0&&u<2?"one":"other",el0=v0,tl0=v0,nl0=lu,rl0=lu,il0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-1);return e?r==6||r==9||n&&r==0&&u!=0?"many":"other":u==1?"one":"other"},al0=v0,ol0=v0,sl0=lu,fl0=P3,ll0=lu,cl0=v0,dl0=v0,El0=(u,e)=>e?"other":u==0?"zero":u==1?"one":"other",pl0=v0,hl0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-2),i=n&&t[0].slice(-3),a=n&&t[0].slice(-5),o=n&&t[0].slice(-6);return e?n&&u>=1&&u<=4||r>=1&&r<=4||r>=21&&r<=24||r>=41&&r<=44||r>=61&&r<=64||r>=81&&r<=84?"one":u==5||r==5?"many":"other":u==0?"zero":u==1?"one":r==2||r==22||r==42||r==62||r==82||n&&i==0&&(a>=1e3&&a<=2e4||a==4e4||a==6e4||a==8e4)||u!=0&&o==1e5?"two":r==3||r==23||r==43||r==63||r==83?"few":u!=1&&(r==1||r==21||r==41||r==61||r==81)?"many":"other"},Cl0=v0,ml0=(u,e)=>{const t=String(u).split("."),n=t[0];return e?"other":u==0?"zero":(n==0||n==1)&&u!=0?"one":"other"},bl0=v0,gl0=v0,Al0=(u,e)=>{const t=String(u).split("."),n=!t[1],r=Number(t[0])==u;return e?u==11||u==8||r&&u>=80&&u<=89||r&&u>=800&&u<=899?"many":"other":u==1&&n?"one":"other"},yl0=lu,vl0=Ci,Bl0=(u,e)=>e&&u==1?"one":"other",Fl0=(u,e)=>{const t=String(u).split("."),n=t[1]||"",r=Number(t[0])==u,i=r&&t[0].slice(-1),a=r&&t[0].slice(-2);return e?"other":i==1&&(a<11||a>19)?"one":i>=2&&i<=9&&(a<11||a>19)?"few":n!=0?"many":"other"},Dl0=(u,e)=>{const t=String(u).split("."),n=t[1]||"",r=n.length,i=Number(t[0])==u,a=i&&t[0].slice(-1),o=i&&t[0].slice(-2),s=n.slice(-2),f=n.slice(-1);return e?"other":i&&a==0||o>=11&&o<=19||r==2&&s>=11&&s<=19?"zero":a==1&&o!=11||r==2&&f==1&&s!=11||r!=2&&f==1?"one":"other"},wl0=v0,xl0=Ci,kl0=v0,_l0=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),f=r.slice(-2);return e?a==1&&o!=11?"one":a==2&&o!=12?"two":(a==7||a==8)&&o!=17&&o!=18?"many":"other":i&&a==1&&o!=11||s==1&&f!=11?"one":"other"},Sl0=v0,Tl0=v0,Pl0=(u,e)=>{const t=String(u).split("."),n=!t[1],r=Number(t[0])==u,i=r&&t[0].slice(-2);return e?u==1?"one":"other":u==1&&n?"one":!n||u==0||u!=1&&i>=1&&i<=19?"few":"other"},Il0=(u,e)=>e?u==1?"one":u==2||u==3?"two":u==4?"few":"other":u==1?"one":"other",Ol0=(u,e)=>e&&u==1?"one":"other",Rl0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-2);return e?"other":u==1?"one":u==2?"two":u==0||r>=3&&r<=10?"few":r>=11&&r<=19?"many":"other"},Nl0=lu,Ml0=v0,jl0=mi,zl0=v0,Ll0=v0,$l0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?n&&u>=1&&u<=4?"one":"other":u==1?"one":"other"},Ul0=yn,Wl0=v0,ql0=v0,Hl0=v0,Gl0=lu,Vl0=v0,Kl0=Ci,Ql0=v0,Jl0=v0,Zl0=v0,Yl0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?u==1||u==5||n&&u>=7&&u<=9?"one":u==2||u==3?"two":u==4?"few":u==6?"many":"other":u==1?"one":"other"},Xl0=v0,u10=lu,e10=Ci,t10=v0,n10=P3,r10=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-1),a=n.slice(-2);return e?"other":u==1&&r?"one":r&&i>=2&&i<=4&&(a<12||a>14)?"few":r&&n!=1&&(i==0||i==1)||r&&i>=5&&i<=9||r&&a>=12&&a<=14?"many":"other"},i10=(u,e)=>{const t=String(u).split("."),n=t[1]||"",r=n.length,i=Number(t[0])==u,a=i&&t[0].slice(-1),o=i&&t[0].slice(-2),s=n.slice(-2),f=n.slice(-1);return e?"other":i&&a==0||o>=11&&o<=19||r==2&&s>=11&&s<=19?"zero":a==1&&o!=11||r==2&&f==1&&s!=11||r!=2&&f==1?"one":"other"},a10=v0,o10=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?"other":n==0||n==1?"one":n!=0&&i==0&&r?"many":"other"},s10=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?"other":u==1&&r?"one":n!=0&&i==0&&r?"many":"other"},f10=v0,l10=(u,e)=>{const t=String(u).split("."),n=!t[1],r=Number(t[0])==u,i=r&&t[0].slice(-2);return e?u==1?"one":"other":u==1&&n?"one":!n||u==0||u!=1&&i>=1&&i<=19?"few":"other"},c10=v0,d10=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-1),a=n.slice(-2);return e?"other":r&&i==1&&a!=11?"one":r&&i>=2&&i<=4&&(a<12||a>14)?"few":r&&i==0||r&&i>=5&&i<=9||r&&a>=11&&a<=14?"many":"other"},E10=v0,p10=lu,h10=v0,C10=mi,m10=(u,e)=>{const t=String(u).split("."),n=!t[1];return e?u==11||u==8||u==80||u==800?"many":"other":u==1&&n?"one":"other"},b10=(u,e)=>{const t=String(u).split("."),n=!t[1];return e?u==11||u==8||u==80||u==800?"many":"other":u==1&&n?"one":"other"},g10=v0,A10=v0,y10=mi,v10=v0,B10=lu,F10=lu,D10=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),f=r.slice(-2);return e?"other":i&&a==1&&o!=11||s==1&&f!=11?"one":i&&a>=2&&a<=4&&(o<12||o>14)||s>=2&&s<=4&&(f<12||f>14)?"few":"other"},w10=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?"other":u>=0&&u<=1?"one":n&&u>=2&&u<=10?"few":"other"},x10=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"";return e?"other":u==0||u==1||n==0&&r==1?"one":"other"},k10=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1];return e?"other":u==1&&r?"one":n>=2&&n<=4&&r?"few":r?"other":"many"},_10=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-2);return e?"other":r&&i==1?"one":r&&i==2?"two":r&&(i==3||i==4)||!r?"few":"other"},S10=mi,T10=mi,P10=mi,I10=mi,O10=mi,R10=v0,N10=v0,M10=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-1),i=n&&t[0].slice(-2);return e?u==1?"one":r==4&&i!=14?"many":"other":u==1?"one":"other"},j10=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),f=r.slice(-2);return e?"other":i&&a==1&&o!=11||s==1&&f!=11?"one":i&&a>=2&&a<=4&&(o<12||o>14)||s>=2&&s<=4&&(f<12||f>14)?"few":"other"},z10=v0,L10=v0,$10=v0,U10=lu,W10=(u,e)=>{const t=String(u).split("."),n=!t[1],r=Number(t[0])==u,i=r&&t[0].slice(-1),a=r&&t[0].slice(-2);return e?(i==1||i==2)&&a!=11&&a!=12?"one":"other":u==1&&n?"one":"other"},q10=yn,H10=v0,G10=v0,V10=v0,K10=v0,Q10=lu,J10=Ci,Z10=v0,Y10=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-1);return e?r==6||r==9||u==10?"few":"other":u==1?"one":"other"},X10=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=r.slice(-1);return e?u==1?"one":"other":i&&(n==1||n==2||n==3)||i&&a!=4&&a!=6&&a!=9||!i&&o!=4&&o!=6&&o!=9?"one":"other"},uc0=v0,ec0=lu,tc0=lu,nc0=v0,rc0=v0,ic0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?"other":u==0||u==1||n&&u>=11&&u<=99?"one":"other"},ac0=v0,oc0=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=Number(t[0])==u,a=i&&t[0].slice(-1),o=i&&t[0].slice(-2),s=n.slice(-1),f=n.slice(-2);return e?a==3&&o!=13?"few":"other":r&&s==1&&f!=11?"one":r&&s>=2&&s<=4&&(f<12||f>14)?"few":r&&s==0||r&&s>=5&&s<=9||r&&f>=11&&f<=14?"many":"other"},sc0=lu,fc0=yn,lc0=v0,cc0=v0,dc0=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?u==11||u==8||u==80||u==800?"many":"other":u==1&&r?"one":n!=0&&i==0&&r?"many":"other"},Ec0=(u,e)=>e&&u==1?"one":"other",pc0=v0,hc0=v0,Cc0=Ci,mc0=v0,bc0=lu,gc0=v0,Ac0=v0,yc0=yn,vc0=lu,Bc0=lu,Fc0=lu,Dc0=P3,wc0=Object.freeze(Object.defineProperty({__proto__:null,af:w40,ak:x40,am:k40,an:_40,ar:S40,ars:T40,as:P40,asa:I40,ast:O40,az:R40,bal:N40,be:M40,bem:j40,bez:z40,bg:L40,bho:$40,bm:U40,bn:W40,bo:q40,br:H40,brx:G40,bs:V40,ca:K40,ce:Q40,ceb:J40,cgg:Z40,chr:Y40,ckb:X40,cs:u30,cy:e30,da:t30,de:n30,doi:r30,dsb:i30,dv:a30,dz:o30,ee:s30,el:f30,en:l30,eo:c30,es:d30,et:E30,eu:p30,fa:h30,ff:C30,fi:m30,fil:b30,fo:g30,fr:A30,fur:y30,fy:v30,ga:B30,gd:F30,gl:D30,gsw:w30,gu:x30,guw:k30,gv:_30,ha:S30,haw:T30,he:P30,hi:I30,hnj:O30,hr:R30,hsb:N30,hu:M30,hy:j30,ia:z30,id:L30,ig:$30,ii:U30,io:W30,is:q30,it:H30,iu:G30,ja:V30,jbo:K30,jgo:Q30,jmc:J30,jv:Z30,jw:Y30,ka:X30,kab:ul0,kaj:el0,kcg:tl0,kde:nl0,kea:rl0,kk:il0,kkj:al0,kl:ol0,km:sl0,kn:fl0,ko:ll0,ks:cl0,ksb:dl0,ksh:El0,ku:pl0,kw:hl0,ky:Cl0,lag:ml0,lb:bl0,lg:gl0,lij:Al0,lkt:yl0,ln:vl0,lo:Bl0,lt:Fl0,lv:Dl0,mas:wl0,mg:xl0,mgo:kl0,mk:_l0,ml:Sl0,mn:Tl0,mo:Pl0,mr:Il0,ms:Ol0,mt:Rl0,my:Nl0,nah:Ml0,naq:jl0,nb:zl0,nd:Ll0,ne:$l0,nl:Ul0,nn:Wl0,nnh:ql0,no:Hl0,nqo:Gl0,nr:Vl0,nso:Kl0,ny:Ql0,nyn:Jl0,om:Zl0,or:Yl0,os:Xl0,osa:u10,pa:e10,pap:t10,pcm:n10,pl:r10,prg:i10,ps:a10,pt:o10,pt_PT:s10,rm:f10,ro:l10,rof:c10,ru:d10,rwk:E10,sah:p10,saq:h10,sat:C10,sc:m10,scn:b10,sd:g10,sdh:A10,se:y10,seh:v10,ses:B10,sg:F10,sh:D10,shi:w10,si:x10,sk:k10,sl:_10,sma:S10,smi:T10,smj:P10,smn:I10,sms:O10,sn:R10,so:N10,sq:M10,sr:j10,ss:z10,ssy:L10,st:$10,su:U10,sv:W10,sw:q10,syr:H10,ta:G10,te:V10,teo:K10,th:Q10,ti:J10,tig:Z10,tk:Y10,tl:X10,tn:uc0,to:ec0,tpi:tc0,tr:nc0,ts:rc0,tzm:ic0,ug:ac0,uk:oc0,und:sc0,ur:fc0,uz:lc0,ve:cc0,vec:dc0,vi:Ec0,vo:pc0,vun:hc0,wa:Cc0,wae:mc0,wo:bc0,xh:gc0,xog:Ac0,yi:yc0,yo:vc0,yue:Bc0,zh:Fc0,zu:Dc0},Symbol.toStringTag,{value:"Module"})),xc0=P9(wc0);(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.Pluralization=u.defaultPluralizer=u.useMakePlural=void 0;const e=xc0;function t({pluralizer:r,includeZero:i=!0,ordinal:a=!1}){return function(o,s){return[i&&s===0?"zero":"",r(s,a)].filter(Boolean)}}u.useMakePlural=t,u.defaultPluralizer=t({pluralizer:e.en,includeZero:!0});class n{constructor(i){this.i18n=i,this.registry={},this.register("default",u.defaultPluralizer)}register(i,a){this.registry[i]=a}get(i){return this.registry[i]||this.registry[this.i18n.locale]||this.registry.default}}u.Pluralization=n})(TA);var PA={},IA={},gE={};function kc0(u,e,t){var n=-1,r=u.length;e<0&&(e=-e>r?0:r+e),t=t>r?r:t,t<0&&(t+=r),r=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(r);++n=n?u:Sc0(u,e,t)}var Pc0=Tc0,Ic0="\\ud800-\\udfff",Oc0="\\u0300-\\u036f",Rc0="\\ufe20-\\ufe2f",Nc0="\\u20d0-\\u20ff",Mc0=Oc0+Rc0+Nc0,jc0="\\ufe0e\\ufe0f",zc0="\\u200d",Lc0=RegExp("["+zc0+Ic0+Mc0+jc0+"]");function $c0(u){return Lc0.test(u)}var lN=$c0;function Uc0(u){return u.split("")}var Wc0=Uc0,cN="\\ud800-\\udfff",qc0="\\u0300-\\u036f",Hc0="\\ufe20-\\ufe2f",Gc0="\\u20d0-\\u20ff",Vc0=qc0+Hc0+Gc0,Kc0="\\ufe0e\\ufe0f",Qc0="["+cN+"]",vC="["+Vc0+"]",BC="\\ud83c[\\udffb-\\udfff]",Jc0="(?:"+vC+"|"+BC+")",dN="[^"+cN+"]",EN="(?:\\ud83c[\\udde6-\\uddff]){2}",pN="[\\ud800-\\udbff][\\udc00-\\udfff]",Zc0="\\u200d",hN=Jc0+"?",CN="["+Kc0+"]?",Yc0="(?:"+Zc0+"(?:"+[dN,EN,pN].join("|")+")"+CN+hN+")*",Xc0=CN+hN+Yc0,u60="(?:"+[dN+vC+"?",vC,EN,pN,Qc0].join("|")+")",e60=RegExp(BC+"(?="+BC+")|"+u60+Xc0,"g");function t60(u){return u.match(e60)||[]}var n60=t60,r60=Wc0,i60=lN,a60=n60;function o60(u){return i60(u)?a60(u):r60(u)}var s60=o60,f60=Pc0,l60=lN,c60=s60,d60=T3;function E60(u){return function(e){e=d60(e);var t=l60(e)?c60(e):void 0,n=t?t[0]:e.charAt(0),r=t?f60(t,1).join(""):e.slice(1);return n[u]()+r}}var p60=E60,h60=p60,C60=h60("toUpperCase"),m60=C60,b60=T3,g60=m60;function A60(u){return g60(b60(u).toLowerCase())}var y60=A60;function v60(u,e,t,n){var r=-1,i=u==null?0:u.length;for(n&&i&&(t=u[++r]);++r(e[(0,R50.default)(t)]=u[t],e),{}):{}}gE.camelCaseKeys=N50;var AE={},Ta={};Object.defineProperty(Ta,"__esModule",{value:!0});Ta.isSet=void 0;function M50(u){return u!=null}Ta.isSet=M50;Object.defineProperty(AE,"__esModule",{value:!0});AE.createTranslationOptions=void 0;const BD=Ta;function j50(u,e,t){let n=[{scope:e}];if((0,BD.isSet)(t.defaults)&&(n=n.concat(t.defaults)),(0,BD.isSet)(t.defaultValue)){const r=typeof t.defaultValue=="function"?t.defaultValue(u,e,t):t.defaultValue;n.push({message:r}),delete t.defaultValue}return n}AE.createTranslationOptions=j50;var I3={},SN={exports:{}};(function(u){(function(e){var t,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,r=Math.ceil,i=Math.floor,a="[BigNumber Error] ",o=a+"Number primitive has more than 15 significant digits: ",s=1e14,f=14,l=9007199254740991,c=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],d=1e7,E=1e9;function p(v){var C,F,S,x=K.prototype={constructor:K,toString:null,valueOf:null},$=new K(1),X=20,Q=4,Z=-7,I=21,O=-1e7,W=1e7,L=!1,q=1,U=0,i0={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},s0="0123456789abcdefghijklmnopqrstuvwxyz",o0=!0;function K(_,T){var P,j,z,G,t0,H,J,u0,Y=this;if(!(Y instanceof K))return new K(_,T);if(T==null){if(_&&_._isBigNumber===!0){Y.s=_.s,!_.c||_.e>W?Y.c=Y.e=null:_.e=10;t0/=10,G++);G>W?Y.c=Y.e=null:(Y.e=G,Y.c=[_]);return}u0=String(_)}else{if(!n.test(u0=String(_)))return S(Y,u0,H);Y.s=u0.charCodeAt(0)==45?(u0=u0.slice(1),-1):1}(G=u0.indexOf("."))>-1&&(u0=u0.replace(".","")),(t0=u0.search(/e/i))>0?(G<0&&(G=t0),G+=+u0.slice(t0+1),u0=u0.substring(0,t0)):G<0&&(G=u0.length)}else{if(m(T,2,s0.length,"Base"),T==10&&o0)return Y=new K(_),w0(Y,X+Y.e+1,Q);if(u0=String(_),H=typeof _=="number"){if(_*0!=0)return S(Y,u0,H,T);if(Y.s=1/_<0?(u0=u0.slice(1),-1):1,K.DEBUG&&u0.replace(/^0\.0*|\./,"").length>15)throw Error(o+_)}else Y.s=u0.charCodeAt(0)===45?(u0=u0.slice(1),-1):1;for(P=s0.slice(0,T),G=t0=0,J=u0.length;t0G){G=J;continue}}else if(!z&&(u0==u0.toUpperCase()&&(u0=u0.toLowerCase())||u0==u0.toLowerCase()&&(u0=u0.toUpperCase()))){z=!0,t0=-1,G=0;continue}return S(Y,String(_),H,T)}H=!1,u0=F(u0,T,10,Y.s),(G=u0.indexOf("."))>-1?u0=u0.replace(".",""):G=u0.length}for(t0=0;u0.charCodeAt(t0)===48;t0++);for(J=u0.length;u0.charCodeAt(--J)===48;);if(u0=u0.slice(t0,++J)){if(J-=t0,H&&K.DEBUG&&J>15&&(_>l||_!==i(_)))throw Error(o+Y.s*_);if((G=G-t0-1)>W)Y.c=Y.e=null;else if(G=-E&&z<=E&&z===i(z)){if(j[0]===0){if(z===0&&j.length===1)return!0;break u}if(T=(z+1)%f,T<1&&(T+=f),String(j[0]).length==T){for(T=0;T=s||P!==i(P))break u;if(P!==0)return!0}}}else if(j===null&&z===null&&(G===null||G===1||G===-1))return!0;throw Error(a+"Invalid BigNumber: "+_)},K.maximum=K.max=function(){return A0(arguments,-1)},K.minimum=K.min=function(){return A0(arguments,1)},K.random=function(){var _=9007199254740992,T=Math.random()*_&2097151?function(){return i(Math.random()*_)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(P){var j,z,G,t0,H,J=0,u0=[],Y=new K($);if(P==null?P=X:m(P,0,E),t0=r(P/f),L)if(crypto.getRandomValues){for(j=crypto.getRandomValues(new Uint32Array(t0*=2));J>>11),H>=9e15?(z=crypto.getRandomValues(new Uint32Array(2)),j[J]=z[0],j[J+1]=z[1]):(u0.push(H%1e14),J+=2);J=t0/2}else if(crypto.randomBytes){for(j=crypto.randomBytes(t0*=7);J=9e15?crypto.randomBytes(7).copy(j,J):(u0.push(H%1e14),J+=7);J=t0/7}else throw L=!1,Error(a+"crypto unavailable");if(!L)for(;J=10;H/=10,J++);Jz-1&&(H[t0+1]==null&&(H[t0+1]=0),H[t0+1]+=H[t0]/z|0,H[t0]%=z)}return H.reverse()}return function(P,j,z,G,t0){var H,J,u0,Y,n0,p0,C0,y0,g0=P.indexOf("."),F0=X,c0=Q;for(g0>=0&&(Y=U,U=0,P=P.replace(".",""),y0=new K(j),p0=y0.pow(P.length-g0),U=Y,y0.c=T(B(g(p0.c),p0.e,"0"),10,z,_),y0.e=y0.c.length),C0=T(P,j,z,t0?(H=s0,_):(H=_,s0)),u0=Y=C0.length;C0[--Y]==0;C0.pop());if(!C0[0])return H.charAt(0);if(g0<0?--u0:(p0.c=C0,p0.e=u0,p0.s=G,p0=C(p0,y0,F0,c0,z),C0=p0.c,n0=p0.r,u0=p0.e),J=u0+F0+1,g0=C0[J],Y=z/2,n0=n0||J<0||C0[J+1]!=null,n0=c0<4?(g0!=null||n0)&&(c0==0||c0==(p0.s<0?3:2)):g0>Y||g0==Y&&(c0==4||n0||c0==6&&C0[J-1]&1||c0==(p0.s<0?8:7)),J<1||!C0[0])P=n0?B(H.charAt(1),-F0,H.charAt(0)):H.charAt(0);else{if(C0.length=J,n0)for(--z;++C0[--J]>z;)C0[J]=0,J||(++u0,C0=[1].concat(C0));for(Y=C0.length;!C0[--Y];);for(g0=0,P="";g0<=Y;P+=H.charAt(C0[g0++]));P=B(P,u0,H.charAt(0))}return P}}(),C=function(){function _(j,z,G){var t0,H,J,u0,Y=0,n0=j.length,p0=z%d,C0=z/d|0;for(j=j.slice();n0--;)J=j[n0]%d,u0=j[n0]/d|0,t0=C0*J+u0*p0,H=p0*J+t0%d*d+Y,Y=(H/G|0)+(t0/d|0)+C0*u0,j[n0]=H%G;return Y&&(j=[Y].concat(j)),j}function T(j,z,G,t0){var H,J;if(G!=t0)J=G>t0?1:-1;else for(H=J=0;Hz[H]?1:-1;break}return J}function P(j,z,G,t0){for(var H=0;G--;)j[G]-=H,H=j[G]1;j.splice(0,1));}return function(j,z,G,t0,H){var J,u0,Y,n0,p0,C0,y0,g0,F0,c0,d0,m0,G0,N0,x0,V0,D0,R0=j.s==z.s?1:-1,nu=j.c,hu=z.c;if(!nu||!nu[0]||!hu||!hu[0])return new K(!j.s||!z.s||(nu?hu&&nu[0]==hu[0]:!hu)?NaN:nu&&nu[0]==0||!hu?R0*0:R0/0);for(g0=new K(R0),F0=g0.c=[],u0=j.e-z.e,R0=G+u0+1,H||(H=s,u0=h(j.e/f)-h(z.e/f),R0=R0/f|0),Y=0;hu[Y]==(nu[Y]||0);Y++);if(hu[Y]>(nu[Y]||0)&&u0--,R0<0)F0.push(1),n0=!0;else{for(N0=nu.length,V0=hu.length,Y=0,R0+=2,p0=i(H/(hu[0]+1)),p0>1&&(hu=_(hu,p0,H),nu=_(nu,p0,H),V0=hu.length,N0=nu.length),G0=V0,c0=nu.slice(0,V0),d0=c0.length;d0=H/2&&x0++;do{if(p0=0,J=T(hu,c0,V0,d0),J<0){if(m0=c0[0],V0!=d0&&(m0=m0*H+(c0[1]||0)),p0=i(m0/x0),p0>1)for(p0>=H&&(p0=H-1),C0=_(hu,p0,H),y0=C0.length,d0=c0.length;T(C0,c0,y0,d0)==1;)p0--,P(C0,V0=10;R0/=10,Y++);w0(g0,G+(g0.e=Y+u0*f-1)+1,t0,n0)}else g0.e=u0,g0.r=+n0;return g0}}();function b0(_,T,P,j){var z,G,t0,H,J;if(P==null?P=Q:m(P,0,8),!_.c)return _.toString();if(z=_.c[0],t0=_.e,T==null)J=g(_.c),J=j==1||j==2&&(t0<=Z||t0>=I)?y(J,t0):B(J,t0,"0");else if(_=w0(new K(_),T,P),G=_.e,J=g(_.c),H=J.length,j==1||j==2&&(T<=G||G<=Z)){for(;HH){if(--T>0)for(J+=".";T--;J+="0");}else if(T+=G-H,T>0)for(G+1==H&&(J+=".");T--;J+="0");return _.s<0&&z?"-"+J:J}function A0(_,T){for(var P,j,z=1,G=new K(_[0]);z<_.length;z++)j=new K(_[z]),(!j.s||(P=b(G,j))===T||P===0&&G.s===T)&&(G=j);return G}function _0(_,T,P){for(var j=1,z=T.length;!T[--z];T.pop());for(z=T[0];z>=10;z/=10,j++);return(P=j+P*f-1)>W?_.c=_.e=null:P=10;H/=10,z++);if(G=T-z,G<0)G+=f,t0=T,J=n0[u0=0],Y=i(J/p0[z-t0-1]%10);else if(u0=r((G+1)/f),u0>=n0.length)if(j){for(;n0.length<=u0;n0.push(0));J=Y=0,z=1,G%=f,t0=G-f+1}else break u;else{for(J=H=n0[u0],z=1;H>=10;H/=10,z++);G%=f,t0=G-f+z,Y=t0<0?0:i(J/p0[z-t0-1]%10)}if(j=j||T<0||n0[u0+1]!=null||(t0<0?J:J%p0[z-t0-1]),j=P<4?(Y||j)&&(P==0||P==(_.s<0?3:2)):Y>5||Y==5&&(P==4||j||P==6&&(G>0?t0>0?J/p0[z-t0]:0:n0[u0-1])%10&1||P==(_.s<0?8:7)),T<1||!n0[0])return n0.length=0,j?(T-=_.e+1,n0[0]=p0[(f-T%f)%f],_.e=-T||0):n0[0]=_.e=0,_;if(G==0?(n0.length=u0,H=1,u0--):(n0.length=u0+1,H=p0[f-G],n0[u0]=t0>0?i(J/p0[z-t0]%p0[t0])*H:0),j)for(;;)if(u0==0){for(G=1,t0=n0[0];t0>=10;t0/=10,G++);for(t0=n0[0]+=H,H=1;t0>=10;t0/=10,H++);G!=H&&(_.e++,n0[0]==s&&(n0[0]=1));break}else{if(n0[u0]+=H,n0[u0]!=s)break;n0[u0--]=0,H=1}for(G=n0.length;n0[--G]===0;n0.pop());}_.e>W?_.c=_.e=null:_.e=I?y(T,P):B(T,P,"0"),_.s<0?"-"+T:T)}return x.absoluteValue=x.abs=function(){var _=new K(this);return _.s<0&&(_.s=1),_},x.comparedTo=function(_,T){return b(this,new K(_,T))},x.decimalPlaces=x.dp=function(_,T){var P,j,z,G=this;if(_!=null)return m(_,0,E),T==null?T=Q:m(T,0,8),w0(new K(G),_+G.e+1,T);if(!(P=G.c))return null;if(j=((z=P.length-1)-h(this.e/f))*f,z=P[z])for(;z%10==0;z/=10,j--);return j<0&&(j=0),j},x.dividedBy=x.div=function(_,T){return C(this,new K(_,T),X,Q)},x.dividedToIntegerBy=x.idiv=function(_,T){return C(this,new K(_,T),0,1)},x.exponentiatedBy=x.pow=function(_,T){var P,j,z,G,t0,H,J,u0,Y,n0=this;if(_=new K(_),_.c&&!_.isInteger())throw Error(a+"Exponent not an integer: "+B0(_));if(T!=null&&(T=new K(T)),H=_.e>14,!n0.c||!n0.c[0]||n0.c[0]==1&&!n0.e&&n0.c.length==1||!_.c||!_.c[0])return Y=new K(Math.pow(+B0(n0),H?_.s*(2-A(_)):+B0(_))),T?Y.mod(T):Y;if(J=_.s<0,T){if(T.c?!T.c[0]:!T.s)return new K(NaN);j=!J&&n0.isInteger()&&T.isInteger(),j&&(n0=n0.mod(T))}else{if(_.e>9&&(n0.e>0||n0.e<-1||(n0.e==0?n0.c[0]>1||H&&n0.c[1]>=24e7:n0.c[0]<8e13||H&&n0.c[0]<=9999975e7)))return G=n0.s<0&&A(_)?-0:0,n0.e>-1&&(G=1/G),new K(J?1/G:G);U&&(G=r(U/f+2))}for(H?(P=new K(.5),J&&(_.s=1),u0=A(_)):(z=Math.abs(+B0(_)),u0=z%2),Y=new K($);;){if(u0){if(Y=Y.times(n0),!Y.c)break;G?Y.c.length>G&&(Y.c.length=G):j&&(Y=Y.mod(T))}if(z){if(z=i(z/2),z===0)break;u0=z%2}else if(_=_.times(P),w0(_,_.e+1,1),_.e>14)u0=A(_);else{if(z=+B0(_),z===0)break;u0=z%2}n0=n0.times(n0),G?n0.c&&n0.c.length>G&&(n0.c.length=G):j&&(n0=n0.mod(T))}return j?Y:(J&&(Y=$.div(Y)),T?Y.mod(T):G?w0(Y,U,Q,t0):Y)},x.integerValue=function(_){var T=new K(this);return _==null?_=Q:m(_,0,8),w0(T,T.e+1,_)},x.isEqualTo=x.eq=function(_,T){return b(this,new K(_,T))===0},x.isFinite=function(){return!!this.c},x.isGreaterThan=x.gt=function(_,T){return b(this,new K(_,T))>0},x.isGreaterThanOrEqualTo=x.gte=function(_,T){return(T=b(this,new K(_,T)))===1||T===0},x.isInteger=function(){return!!this.c&&h(this.e/f)>this.c.length-2},x.isLessThan=x.lt=function(_,T){return b(this,new K(_,T))<0},x.isLessThanOrEqualTo=x.lte=function(_,T){return(T=b(this,new K(_,T)))===-1||T===0},x.isNaN=function(){return!this.s},x.isNegative=function(){return this.s<0},x.isPositive=function(){return this.s>0},x.isZero=function(){return!!this.c&&this.c[0]==0},x.minus=function(_,T){var P,j,z,G,t0=this,H=t0.s;if(_=new K(_,T),T=_.s,!H||!T)return new K(NaN);if(H!=T)return _.s=-T,t0.plus(_);var J=t0.e/f,u0=_.e/f,Y=t0.c,n0=_.c;if(!J||!u0){if(!Y||!n0)return Y?(_.s=-T,_):new K(n0?t0:NaN);if(!Y[0]||!n0[0])return n0[0]?(_.s=-T,_):new K(Y[0]?t0:Q==3?-0:0)}if(J=h(J),u0=h(u0),Y=Y.slice(),H=J-u0){for((G=H<0)?(H=-H,z=Y):(u0=J,z=n0),z.reverse(),T=H;T--;z.push(0));z.reverse()}else for(j=(G=(H=Y.length)<(T=n0.length))?H:T,H=T=0;T0)for(;T--;Y[P++]=0);for(T=s-1;j>H;){if(Y[--j]=0;){for(P=0,p0=m0[z]%F0,C0=m0[z]/F0|0,t0=J,G=z+t0;G>z;)u0=d0[--t0]%F0,Y=d0[t0]/F0|0,H=C0*u0+Y*p0,u0=p0*u0+H%F0*F0+y0[G]+P,P=(u0/g0|0)+(H/F0|0)+C0*Y,y0[G--]=u0%g0;y0[G]=P}return P?++j:y0.splice(0,1),_0(_,y0,j)},x.negated=function(){var _=new K(this);return _.s=-_.s||null,_},x.plus=function(_,T){var P,j=this,z=j.s;if(_=new K(_,T),T=_.s,!z||!T)return new K(NaN);if(z!=T)return _.s=-T,j.minus(_);var G=j.e/f,t0=_.e/f,H=j.c,J=_.c;if(!G||!t0){if(!H||!J)return new K(z/0);if(!H[0]||!J[0])return J[0]?_:new K(H[0]?j:z*0)}if(G=h(G),t0=h(t0),H=H.slice(),z=G-t0){for(z>0?(t0=G,P=J):(z=-z,P=H),P.reverse();z--;P.push(0));P.reverse()}for(z=H.length,T=J.length,z-T<0&&(P=J,J=H,H=P,T=z),z=0;T;)z=(H[--T]=H[T]+J[T]+z)/s|0,H[T]=s===H[T]?0:H[T]%s;return z&&(H=[z].concat(H),++t0),_0(_,H,t0)},x.precision=x.sd=function(_,T){var P,j,z,G=this;if(_!=null&&_!==!!_)return m(_,1,E),T==null?T=Q:m(T,0,8),w0(new K(G),_,T);if(!(P=G.c))return null;if(z=P.length-1,j=z*f+1,z=P[z]){for(;z%10==0;z/=10,j--);for(z=P[0];z>=10;z/=10,j++);}return _&&G.e+1>j&&(j=G.e+1),j},x.shiftedBy=function(_){return m(_,-l,l),this.times("1e"+_)},x.squareRoot=x.sqrt=function(){var _,T,P,j,z,G=this,t0=G.c,H=G.s,J=G.e,u0=X+4,Y=new K("0.5");if(H!==1||!t0||!t0[0])return new K(!H||H<0&&(!t0||t0[0])?NaN:t0?G:1/0);if(H=Math.sqrt(+B0(G)),H==0||H==1/0?(T=g(t0),(T.length+J)%2==0&&(T+="0"),H=Math.sqrt(+T),J=h((J+1)/2)-(J<0||J%2),H==1/0?T="5e"+J:(T=H.toExponential(),T=T.slice(0,T.indexOf("e")+1)+J),P=new K(T)):P=new K(H+""),P.c[0]){for(J=P.e,H=J+u0,H<3&&(H=0);;)if(z=P,P=Y.times(z.plus(C(G,z,u0,1))),g(z.c).slice(0,H)===(T=g(P.c)).slice(0,H))if(P.e0&&y0>0){for(G=y0%H||H,Y=C0.substr(0,G);G0&&(Y+=u0+C0.slice(G)),p0&&(Y="-"+Y)}j=n0?Y+(P.decimalSeparator||"")+((J=+P.fractionGroupSize)?n0.replace(new RegExp("\\d{"+J+"}\\B","g"),"$&"+(P.fractionGroupSeparator||"")):n0):Y}return(P.prefix||"")+j+(P.suffix||"")},x.toFraction=function(_){var T,P,j,z,G,t0,H,J,u0,Y,n0,p0,C0=this,y0=C0.c;if(_!=null&&(H=new K(_),!H.isInteger()&&(H.c||H.s!==1)||H.lt($)))throw Error(a+"Argument "+(H.isInteger()?"out of range: ":"not an integer: ")+B0(H));if(!y0)return new K(C0);for(T=new K($),u0=P=new K($),j=J=new K($),p0=g(y0),G=T.e=p0.length-C0.e-1,T.c[0]=c[(t0=G%f)<0?f+t0:t0],_=!_||H.comparedTo(T)>0?G>0?T:u0:H,t0=W,W=1/0,H=new K(p0),J.c[0]=0;Y=C(H,T,0,1),z=P.plus(Y.times(j)),z.comparedTo(_)!=1;)P=j,j=z,u0=J.plus(Y.times(z=u0)),J=z,T=H.minus(Y.times(z=T)),H=z;return z=C(_.minus(P),j,0,1),J=J.plus(z.times(u0)),P=P.plus(z.times(j)),J.s=u0.s=C0.s,G=G*2,n0=C(u0,j,G,Q).minus(C0).abs().comparedTo(C(J,P,G,Q).minus(C0).abs())<1?[u0,j]:[J,P],W=t0,n0},x.toNumber=function(){return+B0(this)},x.toPrecision=function(_,T){return _!=null&&m(_,1,E),b0(this,_,T,2)},x.toString=function(_){var T,P=this,j=P.s,z=P.e;return z===null?j?(T="Infinity",j<0&&(T="-"+T)):T="NaN":(_==null?T=z<=Z||z>=I?y(g(P.c),z):B(g(P.c),z,"0"):_===10&&o0?(P=w0(new K(P),X+z+1,Q),T=B(g(P.c),P.e,"0")):(m(_,2,s0.length,"Base"),T=F(B(g(P.c),z,"0"),10,_,j,!0)),j<0&&P.c[0]&&(T="-"+T)),T},x.valueOf=x.toJSON=function(){return B0(this)},x._isBigNumber=!0,v!=null&&K.set(v),K}function h(v){var C=v|0;return v>0||v===C?C:C-1}function g(v){for(var C,F,S=1,x=v.length,$=v[0]+"";SI^F?1:-1;for(Q=(Z=x.length)<(I=$.length)?Z:I,X=0;X$[X]^F?1:-1;return Z==I?0:Z>I^F?1:-1}function m(v,C,F,S){if(vF||v!==i(v))throw Error(a+(S||"Argument")+(typeof v=="number"?vF?" out of range: ":" not an integer: ":" not a primitive number: ")+String(v))}function A(v){var C=v.c.length-1;return h(v.e/f)==C&&v.c[C]%2!=0}function y(v,C){return(v.length>1?v.charAt(0)+"."+v.slice(1):v)+(C<0?"e":"e+")+C}function B(v,C,F){var S,x;if(C<0){for(x=F+".";++C;x+=F);v=x+v}else if(S=v.length,++C>S){for(x=F,C-=S;--C;x+=F);v+=x}else C$50)return t;do e%2&&(t+=u),e=U50(e/2),e&&(u+=u);while(e);return t}var q50=W50,H50=ZR,G50=kA;function V50(u){return u!=null&&G50(u.length)&&!H50(u)}var vE=V50,K50=pE,Q50=vE,J50=bE,Z50=ps;function Y50(u,e,t){if(!Z50(t))return!1;var n=typeof e;return(n=="number"?Q50(t)&&J50(e,t.length):n=="string"&&e in t)?K50(t[e],u):!1}var OA=Y50,X50=/\s/;function u20(u){for(var e=u.length;e--&&X50.test(u.charAt(e)););return e}var e20=u20,t20=e20,n20=/^\s+/;function r20(u){return u&&u.slice(0,t20(u)+1).replace(n20,"")}var i20=r20,a20=i20,FD=ps,o20=jc,DD=NaN,s20=/^[-+]0x[0-9a-f]+$/i,f20=/^0b[01]+$/i,l20=/^0o[0-7]+$/i,c20=parseInt;function d20(u){if(typeof u=="number")return u;if(o20(u))return DD;if(FD(u)){var e=typeof u.valueOf=="function"?u.valueOf():u;u=FD(e)?e+"":e}if(typeof u!="string")return u===0?u:+u;u=a20(u);var t=f20.test(u);return t||l20.test(u)?c20(u.slice(2),t?2:8):s20.test(u)?DD:+u}var E20=d20,p20=E20,wD=1/0,h20=17976931348623157e292;function C20(u){if(!u)return u===0?u:0;if(u=p20(u),u===wD||u===-wD){var e=u<0?-1:1;return e*h20}return u===u?u:0}var TN=C20,m20=TN;function b20(u){var e=m20(u),t=e%1;return e===e?t?e-t:e:0}var g20=b20,A20=q50,y20=OA,v20=g20,B20=T3;function F20(u,e,t){return(t?y20(u,e,t):e===void 0)?e=1:e=v20(e),A20(B20(u),e)}var D20=F20,Cs={},w20=P0&&P0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Cs,"__esModule",{value:!0});Cs.roundNumber=void 0;const x20=w20(O3),k20=I3;function _20(u){return u.isZero()?1:Math.floor(Math.log10(u.abs().toNumber())+1)}function S20(u,{precision:e,significant:t}){return t&&e!==null&&e>0?e-_20(u):e}function T20(u,e){const t=S20(u,e);if(t===null)return u.toString();const n=(0,k20.expandRoundMode)(e.roundMode);if(t>=0)return u.toFixed(t,n);const r=Math.pow(10,Math.abs(t));return u=new x20.default(u.div(r).toFixed(0,n)).times(r),u.toString()}Cs.roundNumber=T20;var PN=P0&&P0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(yE,"__esModule",{value:!0});yE.formatNumber=void 0;const xD=PN(O3),P20=PN(D20),I20=Cs;function O20(u,{formattedNumber:e,unit:t}){return u.replace("%n",e).replace("%u",t)}function R20({significand:u,whole:e,precision:t}){if(e==="0"||t===null)return u;const n=Math.max(0,t-e.length);return(u??"").substr(0,n)}function N20(u,e){var t,n,r;const i=new xD.default(u);if(e.raise&&!i.isFinite())throw new Error(`"${u}" is not a valid numeric value`);const a=(0,I20.roundNumber)(i,e),o=new xD.default(a),s=o.lt(0),f=o.isZero();let[l,c]=a.split(".");const d=[];let E;const p=(t=e.format)!==null&&t!==void 0?t:"%n",h=(n=e.negativeFormat)!==null&&n!==void 0?n:`-${p}`,g=s&&!f?h:p;for(l=l.replace("-","");l.length>0;)d.unshift(l.substr(Math.max(0,l.length-3),3)),l=l.substr(0,l.length-3);return l=d.join(""),E=d.join(e.delimiter),e.significant?c=R20({whole:l,significand:c,precision:e.precision}):c=c??(0,P20.default)("0",(r=e.precision)!==null&&r!==void 0?r:0),e.stripInsignificantZeros&&c&&(c=c.replace(/0+$/,"")),i.isNaN()&&(E=u.toString()),c&&i.isFinite()&&(E+=(e.separator||".")+c),O20(g,{formattedNumber:E,unit:e.unit})}yE.formatNumber=N20;var R3={};Object.defineProperty(R3,"__esModule",{value:!0});R3.getFullScope=void 0;function M20(u,e,t){let n="";return(e instanceof String||typeof e=="string")&&(n=e),e instanceof Array&&(n=e.join(u.defaultSeparator)),t.scope&&(n=[t.scope,n].join(u.defaultSeparator)),n}R3.getFullScope=M20;var N3={};Object.defineProperty(N3,"__esModule",{value:!0});N3.inferType=void 0;function j20(u){var e,t;if(u===null)return"null";const n=typeof u;return n!=="object"?n:((t=(e=u==null?void 0:u.constructor)===null||e===void 0?void 0:e.name)===null||t===void 0?void 0:t.toLowerCase())||"object"}N3.inferType=j20;var BE={};Object.defineProperty(BE,"__esModule",{value:!0});BE.interpolate=void 0;const z20=Ta;function L20(u,e,t){t=Object.keys(t).reduce((r,i)=>(r[u.transformKey(i)]=t[i],r),{});const n=e.match(u.placeholder);if(!n)return e;for(;n.length;){let r;const i=n.shift(),a=i.replace(u.placeholder,"$1");(0,z20.isSet)(t[a])?r=t[a].toString().replace(/\$/gm,"_#$#_"):a in t?r=u.nullPlaceholder(u,i,e,t):r=u.missingPlaceholder(u,i,e,t);const o=new RegExp(i.replace(/\{/gm,"\\{").replace(/\}/gm,"\\}"));e=e.replace(o,r)}return e.replace(/_#\$#_/g,"$")}BE.interpolate=L20;var M3={},$20=P0&&P0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(M3,"__esModule",{value:!0});M3.lookup=void 0;const U20=$20(wA),W20=Ta,q20=R3,H20=N3;function G20(u,e,t={}){t=Object.assign({},t);const n="locale"in t?t.locale:u.locale,r=(0,H20.inferType)(n),i=u.locales.get(r==="string"?n:typeof n).slice();e=(0,q20.getFullScope)(u,e,t).split(u.defaultSeparator).map(o=>u.transformKey(o)).join(".");const a=i.map(o=>(0,U20.default)(u.translations,[o,e].join(".")));return a.push(t.defaultValue),a.find(o=>(0,W20.isSet)(o))}M3.lookup=G20;var FE={},V20=P0&&P0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(FE,"__esModule",{value:!0});FE.numberToDelimited=void 0;const K20=V20(O3);function Q20(u,e){const t=new K20.default(u);if(!t.isFinite())return u.toString();if(!e.delimiterPattern.global)throw new Error(`options.delimiterPattern must be a global regular expression; received ${e.delimiterPattern}`);let[n,r]=t.toString().split(".");return n=n.replace(e.delimiterPattern,i=>`${i}${e.delimiter}`),[n,r].filter(Boolean).join(e.separator)}FE.numberToDelimited=Q20;var DE={};function J20(u,e){for(var t=-1,n=e.length,r=u.length;++t0&&t(o)?e>1?ON(o,e-1,t,n,r):e90(r,o):n||(r[r.length]=o)}return r}var RN=ON,n90=CE;function r90(){this.__data__=new n90,this.size=0}var i90=r90;function a90(u){var e=this.__data__,t=e.delete(u);return this.size=e.size,t}var o90=a90;function s90(u){return this.__data__.get(u)}var f90=s90;function l90(u){return this.__data__.has(u)}var c90=l90,d90=CE,E90=yA,p90=vA,h90=200;function C90(u,e){var t=this.__data__;if(t instanceof d90){var n=t.__data__;if(!E90||n.lengtho))return!1;var f=i.get(u),l=i.get(e);if(f&&l)return f==e&&l==u;var c=-1,d=!0,E=t&S90?new w90:void 0;for(i.set(u,e),i.set(e,u);++ce||i&&a&&s&&!o&&!f||n&&a&&s||!t&&s||!r)return 1;if(!n&&!i&&!f&&u=o)return s;var f=t[n];return s*(f=="desc"?-1:1)}}return u.index-e.index}var j80=M80,V8=uN,z80=DA,L80=c80,$80=T80,U80=I80,W80=zN,q80=j80,H80=wE,G80=Ar;function V80(u,e,t){e.length?e=V8(e,function(i){return G80(i)?function(a){return z80(a,i.length===1?i[0]:i)}:i}):e=[H80];var n=-1;e=V8(e,W80(L80));var r=$80(u,function(i,a,o){var s=V8(e,function(f){return f(i)});return{criteria:s,index:++n,value:i}});return U80(r,function(i,a){return q80(i,a,t)})}var K80=V80;function Q80(u,e,t){switch(t.length){case 0:return u.call(e);case 1:return u.call(e,t[0]);case 2:return u.call(e,t[0],t[1]);case 3:return u.call(e,t[0],t[1],t[2])}return u.apply(e,t)}var J80=Q80,Z80=J80,JD=Math.max;function Y80(u,e,t){return e=JD(e===void 0?u.length-1:e,0),function(){for(var n=arguments,r=-1,i=JD(n.length-e,0),a=Array(i);++r0){if(++e>=ah0)return arguments[0]}else e=0;return u.apply(void 0,arguments)}}var lh0=fh0,ch0=ih0,dh0=lh0,Eh0=dh0(ch0),ph0=Eh0,hh0=wE,Ch0=X80,mh0=ph0;function bh0(u,e){return mh0(Ch0(u,e,hh0),u+"")}var gh0=bh0,Ah0=RN,yh0=K80,vh0=gh0,YD=OA,Bh0=vh0(function(u,e){if(u==null)return[];var t=e.length;return t>1&&YD(u,e[0],e[1])?e=[]:t>2&&YD(e[0],e[1],e[2])&&(e=[e[0]]),yh0(u,Ah0(e,1),[])}),Fh0=Bh0;function Dh0(u,e,t){for(var n=-1,r=u.length,i=e.length,a={};++nparseInt(u,10)));function Mh0(u,e,t){const n={roundMode:t.roundMode,precision:t.precision,significant:t.significant};let r;if((0,Rh0.inferType)(t.units)==="string"){const c=t.units;if(r=(0,Oh0.lookup)(u,c),!r)throw new Error(`The scope "${u.locale}${u.defaultSeparator}${(0,Ih0.getFullScope)(u,c,{})}" couldn't be found`)}else r=t.units;let i=(0,XD.roundNumber)(new K8.default(e),n);const a=c=>(0,Th0.default)(Object.keys(c).map(d=>Nh0[d]),d=>d*-1),o=(c,d)=>{const E=c.isZero()?0:Math.floor(Math.log10(c.abs().toNumber()));return a(d).find(p=>E>=p)||0},s=(c,d)=>{const E=_C[d.toString()];return c[E]||""},f=o(new K8.default(i),r),l=s(r,f);if(i=(0,XD.roundNumber)(new K8.default(i).div(Math.pow(10,f)),n),t.stripInsignificantZeros){let[c,d]=i.split(".");d=(d||"").replace(/0+$/,""),i=c,d&&(i+=`${t.separator}${d}`)}return t.format.replace("%n",i||"0").replace("%u",l).trim()}DE.numberToHuman=Mh0;var xE={},jh0=P0&&P0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(xE,"__esModule",{value:!0});xE.numberToHumanSize=void 0;const L6=jh0(O3),zh0=Cs,Lh0=I3,uw=["byte","kb","mb","gb","tb","pb","eb"];function $h0(u,e,t){const n=(0,Lh0.expandRoundMode)(t.roundMode),r=1024,i=new L6.default(e).abs(),a=i.lt(r);let o;const s=(p,h)=>{const g=h.length-1,b=new L6.default(Math.log(p.toNumber())).div(Math.log(r)).integerValue(L6.default.ROUND_DOWN).toNumber();return Math.min(g,b)},f=p=>`number.human.storage_units.units.${a?"byte":p[l]}`,l=s(i,uw);a?o=i.integerValue():o=new L6.default((0,zh0.roundNumber)(i.div(Math.pow(r,l)),{significant:t.significant,precision:t.precision,roundMode:t.roundMode}));const c=u.translate("number.human.storage_units.format",{defaultValue:"%n %u"}),d=u.translate(f(uw),{count:i.integerValue().toNumber()});let E=o.toFixed(t.precision,n);return t.stripInsignificantZeros&&(E=E.replace(/(\..*?)0+$/,"$1").replace(/\.$/,"")),c.replace("%n",E).replace("%u",d)}xE.numberToHumanSize=$h0;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0});Lc.parseDate=void 0;function Uh0(u){if(u instanceof Date)return u;if(typeof u=="number"){const n=new Date;return n.setTime(u),n}const e=new String(u).match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})(?:[.,](\d{1,3}))?)?(Z|\+00:?00)?/);if(e){const n=e.slice(1,8).map(d=>parseInt(d,10)||0);n[1]-=1;const[r,i,a,o,s,f,l]=n;return e[8]?new Date(Date.UTC(r,i,a,o,s,f,l)):new Date(r,i,a,o,s,f,l)}u.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)&&new Date().setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" ")));const t=new Date;return t.setTime(Date.parse(u)),t}Lc.parseDate=Uh0;var kE={};Object.defineProperty(kE,"__esModule",{value:!0});kE.pluralize=void 0;const ew=Ta,Wh0=M3;function qh0({i18n:u,count:e,scope:t,options:n,baseScope:r}){n=Object.assign({},n);let i,a;if(typeof t=="object"&&t?i=t:i=(0,Wh0.lookup)(u,t,n),!i)return u.missingTranslation.get(t,n);const s=u.pluralization.get(n.locale)(u,e),f=[];for(;s.length;){const l=s.shift();if((0,ew.isSet)(i[l])){a=i[l];break}f.push(l)}return(0,ew.isSet)(a)?(n.count=e,u.interpolate(u,a,n)):u.missingTranslation.get(r.split(u.defaultSeparator).concat([f[0]]),n)}kE.pluralize=qh0;var _E={},Hh0=RN,Gh0=1/0;function Vh0(u){var e=u==null?0:u.length;return e?Hh0(u,Gh0):[]}var Kh0=Vh0,GN=P0&&P0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(_E,"__esModule",{value:!0});_E.propertyFlatList=void 0;const Qh0=GN(ps),Jh0=GN(Kh0);class Zh0{constructor(e){this.target=e}call(){const e=(0,Jh0.default)(Object.keys(this.target).map(t=>this.compute(this.target[t],t)));return e.sort(),e}compute(e,t){return!Array.isArray(e)&&(0,Qh0.default)(e)?Object.keys(e).map(n=>this.compute(e[n],`${t}.${n}`)):t}}function Yh0(u){return new Zh0(u).call()}_E.propertyFlatList=Yh0;var SE={};Object.defineProperty(SE,"__esModule",{value:!0});SE.strftime=void 0;const Xh0={meridian:{am:"AM",pm:"PM"},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbrDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthNames:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbrMonthNames:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};function u70(u,e,t={}){const{abbrDayNames:n,dayNames:r,abbrMonthNames:i,monthNames:a,meridian:o}=Object.assign(Object.assign({},Xh0),t);if(isNaN(u.getTime()))throw new Error("strftime() requires a valid date object, but received an invalid date.");const s=u.getDay(),f=u.getDate(),l=u.getFullYear(),c=u.getMonth()+1,d=u.getHours();let E=d;const p=d>11?"pm":"am",h=u.getSeconds(),g=u.getMinutes(),b=u.getTimezoneOffset(),m=Math.floor(Math.abs(b/60)),A=Math.abs(b)-m*60,y=(b>0?"-":"+")+(m.toString().length<2?"0"+m:m)+(A.toString().length<2?"0"+A:A);return E>12?E=E-12:E===0&&(E=12),e=e.replace("%a",n[s]),e=e.replace("%A",r[s]),e=e.replace("%b",i[c]),e=e.replace("%B",a[c]),e=e.replace("%d",f.toString().padStart(2,"0")),e=e.replace("%e",f.toString()),e=e.replace("%-d",f.toString()),e=e.replace("%H",d.toString().padStart(2,"0")),e=e.replace("%-H",d.toString()),e=e.replace("%k",d.toString()),e=e.replace("%I",E.toString().padStart(2,"0")),e=e.replace("%-I",E.toString()),e=e.replace("%l",E.toString()),e=e.replace("%m",c.toString().padStart(2,"0")),e=e.replace("%-m",c.toString()),e=e.replace("%M",g.toString().padStart(2,"0")),e=e.replace("%-M",g.toString()),e=e.replace("%p",o[p]),e=e.replace("%P",o[p].toLowerCase()),e=e.replace("%S",h.toString().padStart(2,"0")),e=e.replace("%-S",h.toString()),e=e.replace("%w",s.toString()),e=e.replace("%y",l.toString().padStart(2,"0").substr(-2)),e=e.replace("%-y",l.toString().padStart(2,"0").substr(-2).replace(/^0+/,"")),e=e.replace("%Y",l.toString()),e=e.replace(/%z/i,y),e}SE.strftime=u70;var TE={},e70=Math.ceil,t70=Math.max;function n70(u,e,t,n){for(var r=-1,i=t70(e70((e-u)/(t||1)),0),a=Array(i);i--;)a[n?i:++r]=u,u+=t;return a}var r70=n70,i70=r70,a70=OA,Q8=TN;function o70(u){return function(e,t,n){return n&&typeof n!="number"&&a70(e,t,n)&&(t=n=void 0),e=Q8(e),t===void 0?(t=e,e=0):t=Q8(t),n=n===void 0?et>=u&&t<=e;function p70(u,e,t,n={}){const r=n.scope||"datetime.distance_in_words",i=(C,F=0)=>u.t(C,{count:F,scope:r});e=(0,tw.parseDate)(e),t=(0,tw.parseDate)(t);let a=e.getTime()/1e3,o=t.getTime()/1e3;a>o&&([e,t,a,o]=[t,e,o,a]);const s=Math.round(o-a),f=Math.round((o-a)/60),c=f/60/24,d=Math.round(f/60),E=Math.round(c),p=Math.round(E/30);if(Ft(0,1,f))return n.includeSeconds?Ft(0,4,s)?i("less_than_x_seconds",5):Ft(5,9,s)?i("less_than_x_seconds",10):Ft(10,19,s)?i("less_than_x_seconds",20):Ft(20,39,s)?i("half_a_minute"):Ft(40,59,s)?i("less_than_x_minutes",1):i("x_minutes",1):f===0?i("less_than_x_minutes",1):i("x_minutes",f);if(Ft(2,44,f))return i("x_minutes",f);if(Ft(45,89,f))return i("about_x_hours",1);if(Ft(90,1439,f))return i("about_x_hours",d);if(Ft(1440,2519,f))return i("x_days",1);if(Ft(2520,43199,f))return i("x_days",E);if(Ft(43200,86399,f))return i("about_x_months",Math.round(f/43200));if(Ft(86400,525599,f))return i("x_months",p);let h=e.getFullYear();e.getMonth()+1>=3&&(h+=1);let g=t.getFullYear();t.getMonth()+1<3&&(g-=1);const b=h>g?0:(0,E70.default)(h,g).filter(C=>new Date(C,1,29).getMonth()==1).length,m=525600,A=b*1440,y=f-A,B=Math.trunc(y/m),v=parseFloat((y/m-B).toPrecision(3));return v<.25?i("about_x_years",B):v<.75?i("over_x_years",B):i("almost_x_years",B+1)}TE.timeAgoInWords=p70;(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.timeAgoInWords=u.strftime=u.roundNumber=u.propertyFlatList=u.pluralize=u.parseDate=u.numberToHumanSize=u.numberToHuman=u.numberToDelimited=u.lookup=u.isSet=u.interpolate=u.inferType=u.getFullScope=u.formatNumber=u.expandRoundMode=u.createTranslationOptions=u.camelCaseKeys=void 0;var e=gE;Object.defineProperty(u,"camelCaseKeys",{enumerable:!0,get:function(){return e.camelCaseKeys}});var t=AE;Object.defineProperty(u,"createTranslationOptions",{enumerable:!0,get:function(){return t.createTranslationOptions}});var n=I3;Object.defineProperty(u,"expandRoundMode",{enumerable:!0,get:function(){return n.expandRoundMode}});var r=yE;Object.defineProperty(u,"formatNumber",{enumerable:!0,get:function(){return r.formatNumber}});var i=R3;Object.defineProperty(u,"getFullScope",{enumerable:!0,get:function(){return i.getFullScope}});var a=N3;Object.defineProperty(u,"inferType",{enumerable:!0,get:function(){return a.inferType}});var o=BE;Object.defineProperty(u,"interpolate",{enumerable:!0,get:function(){return o.interpolate}});var s=Ta;Object.defineProperty(u,"isSet",{enumerable:!0,get:function(){return s.isSet}});var f=M3;Object.defineProperty(u,"lookup",{enumerable:!0,get:function(){return f.lookup}});var l=FE;Object.defineProperty(u,"numberToDelimited",{enumerable:!0,get:function(){return l.numberToDelimited}});var c=DE;Object.defineProperty(u,"numberToHuman",{enumerable:!0,get:function(){return c.numberToHuman}});var d=xE;Object.defineProperty(u,"numberToHumanSize",{enumerable:!0,get:function(){return d.numberToHumanSize}});var E=Lc;Object.defineProperty(u,"parseDate",{enumerable:!0,get:function(){return E.parseDate}});var p=kE;Object.defineProperty(u,"pluralize",{enumerable:!0,get:function(){return p.pluralize}});var h=_E;Object.defineProperty(u,"propertyFlatList",{enumerable:!0,get:function(){return h.propertyFlatList}});var g=Cs;Object.defineProperty(u,"roundNumber",{enumerable:!0,get:function(){return g.roundNumber}});var b=SE;Object.defineProperty(u,"strftime",{enumerable:!0,get:function(){return b.strftime}});var m=TE;Object.defineProperty(u,"timeAgoInWords",{enumerable:!0,get:function(){return m.timeAgoInWords}})})(IA);(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.MissingTranslation=u.errorStrategy=u.messageStrategy=u.guessStrategy=void 0;const e=IA,t=function(a,o){o instanceof Array&&(o=o.join(a.defaultSeparator));const s=o.split(a.defaultSeparator).slice(-1)[0];return a.missingTranslationPrefix+s.replace("_"," ").replace(/([a-z])([A-Z])/g,(f,l,c)=>`${l} ${c.toLowerCase()}`)};u.guessStrategy=t;const n=(a,o,s)=>{const f=(0,e.getFullScope)(a,o,s),l="locale"in s?s.locale:a.locale,c=(0,e.inferType)(l);return`[missing "${[c=="string"?l:c,f].join(a.defaultSeparator)}" translation]`};u.messageStrategy=n;const r=(a,o,s)=>{const f=(0,e.getFullScope)(a,o,s),l=[a.locale,f].join(a.defaultSeparator);throw new Error(`Missing translation: ${l}`)};u.errorStrategy=r;class i{constructor(o){this.i18n=o,this.registry={},this.register("guess",u.guessStrategy),this.register("message",u.messageStrategy),this.register("error",u.errorStrategy)}register(o,s){this.registry[o]=s}get(o,s){var f;return this.registry[(f=s.missingBehavior)!==null&&f!==void 0?f:this.i18n.missingBehavior](this.i18n,o,s)}}u.MissingTranslation=i})(PA);var h70=P0&&P0.__awaiter||function(u,e,t,n){function r(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function o(l){try{f(n.next(l))}catch(c){a(c)}}function s(l){try{f(n.throw(l))}catch(c){a(c)}}function f(l){l.done?i(l.value):r(l.value).then(o,s)}f((n=n.apply(u,e||[])).next())})},PE=P0&&P0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(dE,"__esModule",{value:!0});dE.I18n=void 0;const nw=PE(wA),C70=PE(cf0),m70=PE(kf0),b70=PE(Tf0),g70=_A,A70=TA,y70=PA,W0=IA,J8={defaultLocale:"en",availableLocales:["en"],locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,enableFallback:!1,missingBehavior:"message",missingTranslationPrefix:"",missingPlaceholder:(u,e)=>`[missing "${e}" value]`,nullPlaceholder:(u,e,t,n)=>u.missingPlaceholder(u,e,t,n),transformKey:u=>u};class v70{constructor(e={},t={}){this._locale=J8.locale,this._defaultLocale=J8.defaultLocale,this._version=0,this.onChangeHandlers=[],this.translations={},this.availableLocales=[],this.t=this.translate,this.p=this.pluralize,this.l=this.localize,this.distanceOfTimeInWords=this.timeAgoInWords;const{locale:n,enableFallback:r,missingBehavior:i,missingTranslationPrefix:a,missingPlaceholder:o,nullPlaceholder:s,defaultLocale:f,defaultSeparator:l,placeholder:c,transformKey:d}=Object.assign(Object.assign({},J8),t);this.locale=n,this.defaultLocale=f,this.defaultSeparator=l,this.enableFallback=r,this.locale=n,this.missingBehavior=i,this.missingTranslationPrefix=a,this.missingPlaceholder=o,this.nullPlaceholder=s,this.placeholder=c,this.pluralization=new A70.Pluralization(this),this.locales=new g70.Locales(this),this.missingTranslation=new y70.MissingTranslation(this),this.transformKey=d,this.interpolate=W0.interpolate,this.store(e)}store(e){(0,W0.propertyFlatList)(e).forEach(n=>(0,b70.default)(this.translations,n,(0,nw.default)(e,n),Object)),this.hasChanged()}get locale(){return this._locale||this.defaultLocale||"en"}set locale(e){if(typeof e!="string")throw new Error(`Expected newLocale to be a string; got ${(0,W0.inferType)(e)}`);const t=this._locale!==e;this._locale=e,t&&this.hasChanged()}get defaultLocale(){return this._defaultLocale||"en"}set defaultLocale(e){if(typeof e!="string")throw new Error(`Expected newLocale to be a string; got ${(0,W0.inferType)(e)}`);const t=this._defaultLocale!==e;this._defaultLocale=e,t&&this.hasChanged()}translate(e,t){t=Object.assign({},t);const n=(0,W0.createTranslationOptions)(this,e,t);let r;return n.some(a=>((0,W0.isSet)(a.scope)?r=(0,W0.lookup)(this,a.scope,t):(0,W0.isSet)(a.message)&&(r=a.message),r!=null))?(typeof r=="string"?r=this.interpolate(this,r,t):typeof r=="object"&&r&&(0,W0.isSet)(t.count)&&(r=(0,W0.pluralize)({i18n:this,count:t.count||0,scope:r,options:t,baseScope:(0,W0.getFullScope)(this,e,t)})),t&&r instanceof Array&&(r=r.map(a=>typeof a=="string"?(0,W0.interpolate)(this,a,t):a)),r):this.missingTranslation.get(e,t)}pluralize(e,t,n){return(0,W0.pluralize)({i18n:this,count:e,scope:t,options:Object.assign({},n),baseScope:(0,W0.getFullScope)(this,t,n??{})})}localize(e,t,n){if(n=Object.assign({},n),t==null)return"";switch(e){case"currency":return this.numberToCurrency(t);case"number":return(0,W0.formatNumber)(t,Object.assign({delimiter:",",precision:3,separator:".",significant:!1,stripInsignificantZeros:!1},(0,W0.lookup)(this,"number.format")));case"percentage":return this.numberToPercentage(t);default:{let r;return e.match(/^(date|time)/)?r=this.toTime(e,t):r=t.toString(),(0,W0.interpolate)(this,r,n)}}}toTime(e,t){const n=(0,W0.parseDate)(t),r=(0,W0.lookup)(this,e);return n.toString().match(/invalid/i)||!r?n.toString():this.strftime(n,r)}numberToCurrency(e,t={}){return(0,W0.formatNumber)(e,Object.assign(Object.assign(Object.assign({delimiter:",",format:"%u%n",precision:2,separator:".",significant:!1,stripInsignificantZeros:!1,unit:"$"},(0,W0.camelCaseKeys)(this.get("number.format"))),(0,W0.camelCaseKeys)(this.get("number.currency.format"))),t))}numberToPercentage(e,t={}){return(0,W0.formatNumber)(e,Object.assign(Object.assign(Object.assign({delimiter:"",format:"%n%",precision:3,stripInsignificantZeros:!1,separator:".",significant:!1},(0,W0.camelCaseKeys)(this.get("number.format"))),(0,W0.camelCaseKeys)(this.get("number.percentage.format"))),t))}numberToHumanSize(e,t={}){return(0,W0.numberToHumanSize)(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",precision:3,significant:!0,stripInsignificantZeros:!0,units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},(0,W0.camelCaseKeys)(this.get("number.human.format"))),(0,W0.camelCaseKeys)(this.get("number.human.storage_units"))),t))}numberToHuman(e,t={}){return(0,W0.numberToHuman)(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",separator:".",precision:3,significant:!0,stripInsignificantZeros:!0,format:"%n %u",roundMode:"default",units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},(0,W0.camelCaseKeys)(this.get("number.human.format"))),(0,W0.camelCaseKeys)(this.get("number.human.decimal_units"))),t))}numberToRounded(e,t){return(0,W0.formatNumber)(e,Object.assign({unit:"",precision:3,significant:!1,separator:".",delimiter:"",stripInsignificantZeros:!1},t))}numberToDelimited(e,t={}){return(0,W0.numberToDelimited)(e,Object.assign({delimiterPattern:/(\d)(?=(\d\d\d)+(?!\d))/g,delimiter:",",separator:"."},t))}withLocale(e,t){return h70(this,void 0,void 0,function*(){const n=this.locale;try{this.locale=e,yield t()}finally{this.locale=n}})}strftime(e,t,n={}){return(0,W0.strftime)(e,t,Object.assign(Object.assign(Object.assign({},(0,W0.camelCaseKeys)((0,W0.lookup)(this,"date"))),{meridian:{am:(0,W0.lookup)(this,"time.am")||"AM",pm:(0,W0.lookup)(this,"time.pm")||"PM"}}),n))}update(e,t,n={strict:!1}){if(n.strict&&!(0,C70.default)(this.translations,e))throw new Error(`The path "${e}" is not currently defined`);const r=(0,nw.default)(this.translations,e),i=(0,W0.inferType)(r),a=(0,W0.inferType)(t);if(n.strict&&i!==a)throw new Error(`The current type for "${e}" is "${i}", but you're trying to override it with "${a}"`);let o;a==="object"?o=Object.assign(Object.assign({},r),t):o=t,(0,m70.default)(this.translations,e,o),this.hasChanged()}toSentence(e,t={}){const{wordsConnector:n,twoWordsConnector:r,lastWordConnector:i}=Object.assign(Object.assign({wordsConnector:", ",twoWordsConnector:" and ",lastWordConnector:", and "},(0,W0.camelCaseKeys)((0,W0.lookup)(this,"support.array"))),t),a=e.length;switch(a){case 0:return"";case 1:return`${e[0]}`;case 2:return e.join(r);default:return[e.slice(0,a-1).join(n),i,e[a-1]].join("")}}timeAgoInWords(e,t,n={}){return(0,W0.timeAgoInWords)(this,e,t,n)}onChange(e){return this.onChangeHandlers.push(e),()=>{this.onChangeHandlers.splice(this.onChangeHandlers.indexOf(e),1)}}get version(){return this._version}formatNumber(e,t){return(0,W0.formatNumber)(e,t)}get(e){return(0,W0.lookup)(this,e)}runCallbacks(){this.onChangeHandlers.forEach(e=>e(this))}hasChanged(){this._version+=1,this.runCallbacks()}}dE.I18n=v70;var VN={};Object.defineProperty(VN,"__esModule",{value:!0});(function(u){var e=P0&&P0.__createBinding||(Object.create?function(o,s,f,l){l===void 0&&(l=f);var c=Object.getOwnPropertyDescriptor(s,f);(!c||("get"in c?!s.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(o,l,c)}:function(o,s,f,l){l===void 0&&(l=f),o[l]=s[f]}),t=P0&&P0.__exportStar||function(o,s){for(var f in o)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&e(s,o,f)};Object.defineProperty(u,"__esModule",{value:!0}),u.useMakePlural=u.Pluralization=u.MissingTranslation=u.Locales=u.I18n=void 0;var n=dE;Object.defineProperty(u,"I18n",{enumerable:!0,get:function(){return n.I18n}});var r=_A;Object.defineProperty(u,"Locales",{enumerable:!0,get:function(){return r.Locales}});var i=PA;Object.defineProperty(u,"MissingTranslation",{enumerable:!0,get:function(){return i.MissingTranslation}});var a=TA;Object.defineProperty(u,"Pluralization",{enumerable:!0,get:function(){return a.Pluralization}}),Object.defineProperty(u,"useMakePlural",{enumerable:!0,get:function(){return a.useMakePlural}}),t(VN,u)})(KR);var Ri=function(){return Ri=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u")return $70;var e=U70(u),t=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-t+e[2]-e[0])}},q70=JN(),H70=function(u,e,t,n){var r=u.left,i=u.top,a=u.right,o=u.gap;return t===void 0&&(t="margin"),` .`.concat(D70,` { overflow: hidden `).concat(n,`; padding-right: `).concat(o,"px ").concat(n,`; @@ -218,37 +218,37 @@ Error generating stack: `+i.message+` `),t==="padding"&&"padding-right: ".concat(o,"px ").concat(n,";")].filter(Boolean).join(""),` } - .`).concat(v5,` { + .`).concat(B5,` { right: `).concat(o,"px ").concat(n,`; } - .`).concat(B5,` { + .`).concat(F5,` { margin-right: `).concat(o,"px ").concat(n,`; } - .`).concat(v5," .").concat(v5,` { + .`).concat(B5," .").concat(B5,` { right: 0 `).concat(n,`; } - .`).concat(B5," .").concat(B5,` { + .`).concat(F5," .").concat(F5,` { margin-right: 0 `).concat(n,`; } body { `).concat(w70,": ").concat(o,`px; } -`)},G70=function(u){var e=u.noRelative,t=u.noImportant,n=u.gapMode,r=n===void 0?"margin":n,i=w.useMemo(function(){return W70(r)},[r]);return w.createElement(q70,{styles:H70(i,!e,r,t?"":"!important")})},_C=!1;if(typeof window<"u")try{var L6=Object.defineProperty({},"passive",{get:function(){return _C=!0,!0}});window.addEventListener("test",L6,L6),window.removeEventListener("test",L6,L6)}catch{_C=!1}var Ss=_C?{passive:!1}:!1,V70=function(u){var e=window.getComputedStyle(u);return e.overflowY!=="hidden"&&!(e.overflowY===e.overflowX&&e.overflowY==="visible")},K70=function(u){var e=window.getComputedStyle(u);return e.overflowX!=="hidden"&&!(e.overflowY===e.overflowX&&e.overflowX==="visible")},rw=function(u,e){var t=e;do{typeof ShadowRoot<"u"&&t instanceof ShadowRoot&&(t=t.host);var n=ZN(u,t);if(n){var r=YN(u,t),i=r[1],a=r[2];if(i>a)return!0}t=t.parentNode}while(t&&t!==document.body);return!1},Q70=function(u){var e=u.scrollTop,t=u.scrollHeight,n=u.clientHeight;return[e,t,n]},J70=function(u){var e=u.scrollLeft,t=u.scrollWidth,n=u.clientWidth;return[e,t,n]},ZN=function(u,e){return u==="v"?V70(e):K70(e)},YN=function(u,e){return u==="v"?Q70(e):J70(e)},Z70=function(u,e){return u==="h"&&e==="rtl"?-1:1},Y70=function(u,e,t,n,r){var i=Z70(u,window.getComputedStyle(e).direction),a=i*n,o=t.target,s=e.contains(o),f=!1,l=a>0,c=0,d=0;do{var E=YN(u,o),p=E[0],h=E[1],g=E[2],b=h-g-i*p;(p||b)&&ZN(u,o)&&(c+=b,d+=p),o=o.parentNode}while(!s&&o!==document.body||s&&(e.contains(o)||e===o));return(l&&(r&&c===0||!r&&a>c)||!l&&(r&&d===0||!r&&-a>d))&&(f=!0),f},$6=function(u){return"changedTouches"in u?[u.changedTouches[0].clientX,u.changedTouches[0].clientY]:[0,0]},iw=function(u){return[u.deltaX,u.deltaY]},aw=function(u){return u&&"current"in u?u.current:u},X70=function(u,e){return u[0]===e[0]&&u[1]===e[1]},uC0=function(u){return` +`)},G70=function(u){var e=u.noRelative,t=u.noImportant,n=u.gapMode,r=n===void 0?"margin":n,i=w.useMemo(function(){return W70(r)},[r]);return w.createElement(q70,{styles:H70(i,!e,r,t?"":"!important")})},SC=!1;if(typeof window<"u")try{var $6=Object.defineProperty({},"passive",{get:function(){return SC=!0,!0}});window.addEventListener("test",$6,$6),window.removeEventListener("test",$6,$6)}catch{SC=!1}var Ss=SC?{passive:!1}:!1,V70=function(u){var e=window.getComputedStyle(u);return e.overflowY!=="hidden"&&!(e.overflowY===e.overflowX&&e.overflowY==="visible")},K70=function(u){var e=window.getComputedStyle(u);return e.overflowX!=="hidden"&&!(e.overflowY===e.overflowX&&e.overflowX==="visible")},iw=function(u,e){var t=e;do{typeof ShadowRoot<"u"&&t instanceof ShadowRoot&&(t=t.host);var n=ZN(u,t);if(n){var r=YN(u,t),i=r[1],a=r[2];if(i>a)return!0}t=t.parentNode}while(t&&t!==document.body);return!1},Q70=function(u){var e=u.scrollTop,t=u.scrollHeight,n=u.clientHeight;return[e,t,n]},J70=function(u){var e=u.scrollLeft,t=u.scrollWidth,n=u.clientWidth;return[e,t,n]},ZN=function(u,e){return u==="v"?V70(e):K70(e)},YN=function(u,e){return u==="v"?Q70(e):J70(e)},Z70=function(u,e){return u==="h"&&e==="rtl"?-1:1},Y70=function(u,e,t,n,r){var i=Z70(u,window.getComputedStyle(e).direction),a=i*n,o=t.target,s=e.contains(o),f=!1,l=a>0,c=0,d=0;do{var E=YN(u,o),p=E[0],h=E[1],g=E[2],b=h-g-i*p;(p||b)&&ZN(u,o)&&(c+=b,d+=p),o=o.parentNode}while(!s&&o!==document.body||s&&(e.contains(o)||e===o));return(l&&(r&&c===0||!r&&a>c)||!l&&(r&&d===0||!r&&-a>d))&&(f=!0),f},U6=function(u){return"changedTouches"in u?[u.changedTouches[0].clientX,u.changedTouches[0].clientY]:[0,0]},aw=function(u){return[u.deltaX,u.deltaY]},ow=function(u){return u&&"current"in u?u.current:u},X70=function(u,e){return u[0]===e[0]&&u[1]===e[1]},uC0=function(u){return` .block-interactivity-`.concat(u,` {pointer-events: none;} .allow-interactivity-`).concat(u,` {pointer-events: all;} -`)},eC0=0,Ts=[];function tC0(u){var e=w.useRef([]),t=w.useRef([0,0]),n=w.useRef(),r=w.useState(eC0++)[0],i=w.useState(function(){return JN()})[0],a=w.useRef(u);w.useEffect(function(){a.current=u},[u]),w.useEffect(function(){if(u.inert){document.body.classList.add("block-interactivity-".concat(r));var h=F70([u.lockRef.current],(u.shards||[]).map(aw),!0).filter(Boolean);return h.forEach(function(g){return g.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),h.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(r))})}}},[u.inert,u.lockRef.current,u.shards]);var o=w.useCallback(function(h,g){if("touches"in h&&h.touches.length===2)return!a.current.allowPinchZoom;var b=$6(h),m=t.current,A="deltaX"in h?h.deltaX:m[0]-b[0],y="deltaY"in h?h.deltaY:m[1]-b[1],B,v=h.target,C=Math.abs(A)>Math.abs(y)?"h":"v";if("touches"in h&&C==="h"&&v.type==="range")return!1;var D=rw(C,v);if(!D)return!0;if(D?B=C:(B=C==="v"?"h":"v",D=rw(C,v)),!D)return!1;if(!n.current&&"changedTouches"in h&&(A||y)&&(n.current=B),!B)return!0;var S=n.current||B;return Y70(S,g,h,S==="h"?A:y,!0)},[]),s=w.useCallback(function(h){var g=h;if(!(!Ts.length||Ts[Ts.length-1]!==i)){var b="deltaY"in g?iw(g):$6(g),m=e.current.filter(function(B){return B.name===g.type&&B.target===g.target&&X70(B.delta,b)})[0];if(m&&m.should){g.preventDefault();return}if(!m){var A=(a.current.shards||[]).map(aw).filter(Boolean).filter(function(B){return B.contains(g.target)}),y=A.length>0?o(g,A[0]):!a.current.noIsolation;y&&g.preventDefault()}}},[]),f=w.useCallback(function(h,g,b,m){var A={name:h,delta:g,target:b,should:m};e.current.push(A),setTimeout(function(){e.current=e.current.filter(function(y){return y!==A})},1)},[]),l=w.useCallback(function(h){t.current=$6(h),n.current=void 0},[]),c=w.useCallback(function(h){f(h.type,iw(h),h.target,o(h,u.lockRef.current))},[]),d=w.useCallback(function(h){f(h.type,$6(h),h.target,o(h,u.lockRef.current))},[]);w.useEffect(function(){return Ts.push(i),u.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:d}),document.addEventListener("wheel",s,Ss),document.addEventListener("touchmove",s,Ss),document.addEventListener("touchstart",l,Ss),function(){Ts=Ts.filter(function(h){return h!==i}),document.removeEventListener("wheel",s,Ss),document.removeEventListener("touchmove",s,Ss),document.removeEventListener("touchstart",l,Ss)}},[]);var E=u.removeScrollBar,p=u.inert;return w.createElement(w.Fragment,null,p?w.createElement(i,{styles:uC0(r)}):null,E?w.createElement(G70,{gapMode:"margin"}):null)}const nC0=O70(QN,tC0);var XN=w.forwardRef(function(u,e){return w.createElement(PE,Oi({},u,{ref:e,sideCar:nC0}))});XN.classNames=PE.classNames;const rC0=XN;function ow(u){var e=u.match(/^var\((.*)\)$/);return e?e[1]:u}function iC0(u,e){var t=u;for(var n of e){if(!(n in t))throw new Error("Path ".concat(e.join(" -> ")," does not exist in object"));t=t[n]}return t}function uM(u,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=u.constructor();for(var r in u){var i=u[r],a=[...t,r];typeof i=="string"||typeof i=="number"||i==null?n[r]=e(i,a):typeof i=="object"&&!Array.isArray(i)?n[r]=uM(i,e,a):console.warn('Skipping invalid key "'.concat(a.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"'))}return n}function sw(u,e){var t={};if(typeof e=="object"){var n=u;uM(e,(a,o)=>{var s=iC0(n,o);t[ow(s)]=String(a)})}else{var r=u;for(var i in r)t[ow(i)]=r[i]}return Object.defineProperty(t,"toString",{value:function(){return Object.keys(this).map(o=>"".concat(o,":").concat(this[o])).join(";")},writable:!1}),t}var SC={exports:{}};(function(u,e){(function(t,n){var r="1.0.37",i="",a="?",o="function",s="undefined",f="object",l="string",c="major",d="model",E="name",p="type",h="vendor",g="version",b="architecture",m="console",A="mobile",y="tablet",B="smarttv",v="wearable",C="embedded",D=500,S="Amazon",x="Apple",L="ASUS",Y="BlackBerry",G="Browser",X="Chrome",I="Edge",O="Firefox",W="Google",$="Huawei",q="LG",U="Microsoft",i0="Motorola",s0="Opera",o0="Samsung",Q="Sharp",b0="Sony",A0="Xiaomi",_0="Zebra",w0="Facebook",B0="Chromium OS",_="Mac OS",T=function(g0,F0){var c0={};for(var d0 in g0)F0[d0]&&F0[d0].length%2===0?c0[d0]=F0[d0].concat(g0[d0]):c0[d0]=g0[d0];return c0},P=function(g0){for(var F0={},c0=0;c00?N0.length===2?typeof N0[1]==o?this[N0[0]]=N0[1].call(this,V0):this[N0[0]]=N0[1]:N0.length===3?typeof N0[1]===o&&!(N0[1].exec&&N0[1].test)?this[N0[0]]=V0?N0[1].call(this,V0,N0[2]):n:this[N0[0]]=V0?V0.replace(N0[1],N0[2]):n:N0.length===4&&(this[N0[0]]=V0?N0[3].call(this,V0.replace(N0[1],N0[2])):n):this[N0]=V0||n;c0+=2}},J=function(g0,F0){for(var c0 in F0)if(typeof F0[c0]===f&&F0[c0].length>0){for(var d0=0;d02&&(x0[d]="iPad",x0[p]=y),x0},this.getEngine=function(){var x0={};return x0[E]=n,x0[g]=n,H.call(x0,d0,G0.engine),x0},this.getOS=function(){var x0={};return x0[E]=n,x0[g]=n,H.call(x0,d0,G0.os),N0&&!x0[E]&&m0&&m0.platform!="Unknown"&&(x0[E]=m0.platform.replace(/chrome os/i,B0).replace(/macos/i,_)),x0},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 d0},this.setUA=function(x0){return d0=typeof x0===l&&x0.length>D?t0(x0,D):x0,this},this.setUA(d0),this};p0.VERSION=r,p0.BROWSER=P([E,g,c]),p0.CPU=P([b]),p0.DEVICE=P([d,h,p,m,A,B,y,v,C]),p0.ENGINE=p0.OS=P([E,g]),u.exports&&(e=u.exports=p0),e.UAParser=p0;var C0=typeof t!==s&&(t.jQuery||t.Zepto);if(C0&&!C0.ua){var y0=new p0;C0.ua=y0.getResult(),C0.ua.get=function(){return y0.getUA()},C0.ua.set=function(g0){y0.setUA(g0);var F0=y0.getResult();for(var c0 in F0)C0.ua[c0]=F0[c0]}}})(typeof window=="object"?window:P0)})(SC,SC.exports);var aC0=SC.exports,Lc={},oC0=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},eM={},Gt={};let NA;const sC0=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Gt.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};Gt.getSymbolTotalCodewords=function(e){return sC0[e]};Gt.getBCHDigit=function(u){let e=0;for(;u!==0;)e++,u>>>=1;return e};Gt.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');NA=e};Gt.isKanjiModeEnabled=function(){return typeof NA<"u"};Gt.toSJIS=function(e){return NA(e)};var IE={};(function(u){u.L={bit:1},u.M={bit:0},u.Q={bit:3},u.H={bit:2};function e(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return u.L;case"m":case"medium":return u.M;case"q":case"quartile":return u.Q;case"h":case"high":return u.H;default:throw new Error("Unknown EC Level: "+t)}}u.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},u.from=function(n,r){if(u.isValid(n))return n;try{return e(n)}catch{return r}}})(IE);function tM(){this.buffer=[],this.length=0}tM.prototype={get:function(u){const e=Math.floor(u/8);return(this.buffer[e]>>>7-u%8&1)===1},put:function(u,e){for(let t=0;t>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(u){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),u&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var fC0=tM;function $c(u){if(!u||u<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=u,this.data=new Uint8Array(u*u),this.reservedBit=new Uint8Array(u*u)}$c.prototype.set=function(u,e,t,n){const r=u*this.size+e;this.data[r]=t,n&&(this.reservedBit[r]=!0)};$c.prototype.get=function(u,e){return this.data[u*this.size+e]};$c.prototype.xor=function(u,e,t){this.data[u*this.size+e]^=t};$c.prototype.isReserved=function(u,e){return this.reservedBit[u*this.size+e]};var lC0=$c,nM={};(function(u){const e=Gt.getSymbolSize;u.getRowColCoords=function(n){if(n===1)return[];const r=Math.floor(n/7)+2,i=e(n),a=i===145?26:Math.ceil((i-13)/(2*r-2))*2,o=[i-7];for(let s=1;s=0&&r<=7},u.from=function(r){return u.isValid(r)?parseInt(r,10):void 0},u.getPenaltyN1=function(r){const i=r.size;let a=0,o=0,s=0,f=null,l=null;for(let c=0;c=5&&(a+=e.N1+(o-5)),f=E,o=1),E=r.get(d,c),E===l?s++:(s>=5&&(a+=e.N1+(s-5)),l=E,s=1)}o>=5&&(a+=e.N1+(o-5)),s>=5&&(a+=e.N1+(s-5))}return a},u.getPenaltyN2=function(r){const i=r.size;let a=0;for(let o=0;o=10&&(o===1488||o===93)&&a++,s=s<<1&2047|r.get(l,f),l>=10&&(s===1488||s===93)&&a++}return a*e.N3},u.getPenaltyN4=function(r){let i=0;const a=r.data.length;for(let s=0;s=0;){const a=i[0];for(let s=0;s0){const i=new Uint8Array(this.degree);return i.set(n,r),i}return n};var dC0=MA,sM={},Sa={},jA={};jA.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var yr={};const fM="[0-9]+",EC0="[A-Z $%*+\\-./:]+";let T1="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";T1=T1.replace(/u/g,"\\u");const pC0="(?:(?![A-Z0-9 $%*+\\-./:]|"+T1+`)(?:.|[\r -]))+`;yr.KANJI=new RegExp(T1,"g");yr.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");yr.BYTE=new RegExp(pC0,"g");yr.NUMERIC=new RegExp(fM,"g");yr.ALPHANUMERIC=new RegExp(EC0,"g");const hC0=new RegExp("^"+T1+"$"),CC0=new RegExp("^"+fM+"$"),mC0=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");yr.testKanji=function(e){return hC0.test(e)};yr.testNumeric=function(e){return CC0.test(e)};yr.testAlphanumeric=function(e){return mC0.test(e)};(function(u){const e=jA,t=yr;u.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},u.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},u.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},u.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},u.MIXED={bit:-1},u.getCharCountIndicator=function(i,a){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!e.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?i.ccBits[0]:a<27?i.ccBits[1]:i.ccBits[2]},u.getBestModeForData=function(i){return t.testNumeric(i)?u.NUMERIC:t.testAlphanumeric(i)?u.ALPHANUMERIC:t.testKanji(i)?u.KANJI:u.BYTE},u.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},u.isValid=function(i){return i&&i.bit&&i.ccBits};function n(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return u.NUMERIC;case"alphanumeric":return u.ALPHANUMERIC;case"kanji":return u.KANJI;case"byte":return u.BYTE;default:throw new Error("Unknown mode: "+r)}}u.from=function(i,a){if(u.isValid(i))return i;try{return n(i)}catch{return a}}})(Sa);(function(u){const e=Gt,t=OE,n=IE,r=Sa,i=jA,a=7973,o=e.getBCHDigit(a);function s(d,E,p){for(let h=1;h<=40;h++)if(E<=u.getCapacity(h,p,d))return h}function f(d,E){return r.getCharCountIndicator(d,E)+4}function l(d,E){let p=0;return d.forEach(function(h){const g=f(h.mode,E);p+=g+h.getBitsLength()}),p}function c(d,E){for(let p=1;p<=40;p++)if(l(d,p)<=u.getCapacity(p,E,r.MIXED))return p}u.from=function(E,p){return i.isValid(E)?parseInt(E,10):p},u.getCapacity=function(E,p,h){if(!i.isValid(E))throw new Error("Invalid QR Code version");typeof h>"u"&&(h=r.BYTE);const g=e.getSymbolTotalCodewords(E),b=t.getTotalCodewordsCount(E,p),m=(g-b)*8;if(h===r.MIXED)return m;const A=m-f(h,E);switch(h){case r.NUMERIC:return Math.floor(A/10*3);case r.ALPHANUMERIC:return Math.floor(A/11*2);case r.KANJI:return Math.floor(A/13);case r.BYTE:default:return Math.floor(A/8)}},u.getBestVersionForData=function(E,p){let h;const g=n.from(p,n.M);if(Array.isArray(E)){if(E.length>1)return c(E,g);if(E.length===0)return 1;h=E[0]}else h=E;return s(h.mode,h.getLength(),g)},u.getEncodedBits=function(E){if(!i.isValid(E)||E<7)throw new Error("Invalid QR Code version");let p=E<<12;for(;e.getBCHDigit(p)-o>=0;)p^=a<=0;)r^=cM<0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))};var AC0=Q4;const yC0=Sa,Y8=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function J4(u){this.mode=yC0.ALPHANUMERIC,this.data=u}J4.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};J4.prototype.getLength=function(){return this.data.length};J4.prototype.getBitsLength=function(){return J4.getBitsLength(this.data.length)};J4.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=Y8.indexOf(this.data[t])*45;n+=Y8.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(Y8.indexOf(this.data[t]),6)};var vC0=J4,BC0=function(e){for(var t=[],n=e.length,r=0;r=55296&&i<=56319&&n>r+1){var a=e.charCodeAt(r+1);a>=56320&&a<=57343&&(i=(i-55296)*1024+a-56320+65536,r+=1)}if(i<128){t.push(i);continue}if(i<2048){t.push(i>>6|192),t.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){t.push(i>>12|224),t.push(i>>6&63|128),t.push(i&63|128);continue}if(i>=65536&&i<=1114111){t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(i&63|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer};const FC0=BC0,DC0=Sa;function Z4(u){this.mode=DC0.BYTE,this.data=new Uint8Array(FC0(u))}Z4.getBitsLength=function(e){return e*8};Z4.prototype.getLength=function(){return this.data.length};Z4.prototype.getBitsLength=function(){return Z4.getBitsLength(this.data.length)};Z4.prototype.write=function(u){for(let e=0,t=this.data.length;e=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` -Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),u.put(t,13)}};var _C0=Y4,EM={exports:{}};(function(u){var e={single_source_shortest_paths:function(t,n,r){var i={},a={};a[n]=0;var o=e.PriorityQueue.make();o.push(n,0);for(var s,f,l,c,d,E,p,h,g;!o.empty();){s=o.pop(),f=s.value,c=s.cost,d=t[f]||{};for(l in d)d.hasOwnProperty(l)&&(E=d[l],p=c+E,h=a[l],g=typeof a[l]>"u",(g||h>p)&&(a[l]=p,o.push(l,p),i[l]=f))}if(typeof r<"u"&&typeof a[r]>"u"){var b=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(b)}return i},extract_shortest_path_from_predecessor_list:function(t,n){for(var r=[],i=n;i;)r.push(i),t[i],i=t[i];return r.reverse(),r},find_path:function(t,n,r){var i=e.single_source_shortest_paths(t,n,r);return e.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(t){var n=e.PriorityQueue,r={},i;t=t||{};for(i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);return r.queue=[],r.sorter=t.sorter||n.default_sorter,r},default_sorter:function(t,n){return t.cost-n.cost},push:function(t,n){var r={value:t,cost:n};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};u.exports=e})(EM);var SC0=EM.exports;(function(u){const e=Sa,t=AC0,n=vC0,r=wC0,i=_C0,a=yr,o=Gt,s=SC0;function f(b){return unescape(encodeURIComponent(b)).length}function l(b,m,A){const y=[];let B;for(;(B=b.exec(A))!==null;)y.push({data:B[0],index:B.index,mode:m,length:B[0].length});return y}function c(b){const m=l(a.NUMERIC,e.NUMERIC,b),A=l(a.ALPHANUMERIC,e.ALPHANUMERIC,b);let y,B;return o.isKanjiModeEnabled()?(y=l(a.BYTE,e.BYTE,b),B=l(a.KANJI,e.KANJI,b)):(y=l(a.BYTE_KANJI,e.BYTE,b),B=[]),m.concat(A,y,B).sort(function(C,D){return C.index-D.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function d(b,m){switch(m){case e.NUMERIC:return t.getBitsLength(b);case e.ALPHANUMERIC:return n.getBitsLength(b);case e.KANJI:return i.getBitsLength(b);case e.BYTE:return r.getBitsLength(b)}}function E(b){return b.reduce(function(m,A){const y=m.length-1>=0?m[m.length-1]:null;return y&&y.mode===A.mode?(m[m.length-1].data+=A.data,m):(m.push(A),m)},[])}function p(b){const m=[];for(let A=0;A=0&&o<=6&&(s===0||s===6)||s>=0&&s<=6&&(o===0||o===6)||o>=2&&o<=4&&s>=2&&s<=4?u.set(i+o,a+s,!0,!0):u.set(i+o,a+s,!1,!0))}}function zC0(u){const e=u.size;for(let t=8;t>o&1)===1,u.set(r,i,a,!0),u.set(i,r,a,!0)}function eh(u,e,t){const n=u.size,r=NC0.getEncodedBits(e,t);let i,a;for(i=0;i<15;i++)a=(r>>i&1)===1,i<6?u.set(i,8,a,!0):i<8?u.set(i+1,8,a,!0):u.set(n-15+i,8,a,!0),i<8?u.set(8,n-i-1,a,!0):i<9?u.set(8,15-i-1+1,a,!0):u.set(8,15-i-1,a,!0);u.set(n-8,8,1,!0)}function UC0(u,e){const t=u.size;let n=-1,r=t-1,i=7,a=0;for(let o=t-1;o>0;o-=2)for(o===6&&o--;;){for(let s=0;s<2;s++)if(!u.isReserved(r,o-s)){let f=!1;a>>i&1)===1),u.set(r,o-s,f),i--,i===-1&&(a++,i=7)}if(r+=n,r<0||t<=r){r-=n,n=-n;break}}}function WC0(u,e,t){const n=new TC0;t.forEach(function(s){n.put(s.mode.bit,4),n.put(s.getLength(),MC0.getCharCountIndicator(s.mode,u)),s.write(n)});const r=NE.getSymbolTotalCodewords(u),i=IC.getTotalCodewordsCount(u,e),a=(r-i)*8;for(n.getLengthInBits()+4<=a&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);const o=(a-n.getLengthInBits())/8;for(let s=0;sMath.abs(y)?"h":"v";if("touches"in h&&C==="h"&&v.type==="range")return!1;var F=iw(C,v);if(!F)return!0;if(F?B=C:(B=C==="v"?"h":"v",F=iw(C,v)),!F)return!1;if(!n.current&&"changedTouches"in h&&(A||y)&&(n.current=B),!B)return!0;var S=n.current||B;return Y70(S,g,h,S==="h"?A:y,!0)},[]),s=w.useCallback(function(h){var g=h;if(!(!Ts.length||Ts[Ts.length-1]!==i)){var b="deltaY"in g?aw(g):U6(g),m=e.current.filter(function(B){return B.name===g.type&&B.target===g.target&&X70(B.delta,b)})[0];if(m&&m.should){g.preventDefault();return}if(!m){var A=(a.current.shards||[]).map(ow).filter(Boolean).filter(function(B){return B.contains(g.target)}),y=A.length>0?o(g,A[0]):!a.current.noIsolation;y&&g.preventDefault()}}},[]),f=w.useCallback(function(h,g,b,m){var A={name:h,delta:g,target:b,should:m};e.current.push(A),setTimeout(function(){e.current=e.current.filter(function(y){return y!==A})},1)},[]),l=w.useCallback(function(h){t.current=U6(h),n.current=void 0},[]),c=w.useCallback(function(h){f(h.type,aw(h),h.target,o(h,u.lockRef.current))},[]),d=w.useCallback(function(h){f(h.type,U6(h),h.target,o(h,u.lockRef.current))},[]);w.useEffect(function(){return Ts.push(i),u.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:d}),document.addEventListener("wheel",s,Ss),document.addEventListener("touchmove",s,Ss),document.addEventListener("touchstart",l,Ss),function(){Ts=Ts.filter(function(h){return h!==i}),document.removeEventListener("wheel",s,Ss),document.removeEventListener("touchmove",s,Ss),document.removeEventListener("touchstart",l,Ss)}},[]);var E=u.removeScrollBar,p=u.inert;return w.createElement(w.Fragment,null,p?w.createElement(i,{styles:uC0(r)}):null,E?w.createElement(G70,{gapMode:"margin"}):null)}const nC0=O70(QN,tC0);var XN=w.forwardRef(function(u,e){return w.createElement(IE,Ri({},u,{ref:e,sideCar:nC0}))});XN.classNames=IE.classNames;const rC0=XN;function sw(u){var e=u.match(/^var\((.*)\)$/);return e?e[1]:u}function iC0(u,e){var t=u;for(var n of e){if(!(n in t))throw new Error("Path ".concat(e.join(" -> ")," does not exist in object"));t=t[n]}return t}function uM(u,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=u.constructor();for(var r in u){var i=u[r],a=[...t,r];typeof i=="string"||typeof i=="number"||i==null?n[r]=e(i,a):typeof i=="object"&&!Array.isArray(i)?n[r]=uM(i,e,a):console.warn('Skipping invalid key "'.concat(a.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"'))}return n}function fw(u,e){var t={};if(typeof e=="object"){var n=u;uM(e,(a,o)=>{var s=iC0(n,o);t[sw(s)]=String(a)})}else{var r=u;for(var i in r)t[sw(i)]=r[i]}return Object.defineProperty(t,"toString",{value:function(){return Object.keys(this).map(o=>"".concat(o,":").concat(this[o])).join(";")},writable:!1}),t}var TC={exports:{}};(function(u,e){(function(t,n){var r="1.0.37",i="",a="?",o="function",s="undefined",f="object",l="string",c="major",d="model",E="name",p="type",h="vendor",g="version",b="architecture",m="console",A="mobile",y="tablet",B="smarttv",v="wearable",C="embedded",F=500,S="Amazon",x="Apple",$="ASUS",X="BlackBerry",Q="Browser",Z="Chrome",I="Edge",O="Firefox",W="Google",L="Huawei",q="LG",U="Microsoft",i0="Motorola",s0="Opera",o0="Samsung",K="Sharp",b0="Sony",A0="Xiaomi",_0="Zebra",w0="Facebook",B0="Chromium OS",_="Mac OS",T=function(g0,F0){var c0={};for(var d0 in g0)F0[d0]&&F0[d0].length%2===0?c0[d0]=F0[d0].concat(g0[d0]):c0[d0]=g0[d0];return c0},P=function(g0){for(var F0={},c0=0;c00?N0.length===2?typeof N0[1]==o?this[N0[0]]=N0[1].call(this,V0):this[N0[0]]=N0[1]:N0.length===3?typeof N0[1]===o&&!(N0[1].exec&&N0[1].test)?this[N0[0]]=V0?N0[1].call(this,V0,N0[2]):n:this[N0[0]]=V0?V0.replace(N0[1],N0[2]):n:N0.length===4&&(this[N0[0]]=V0?N0[3].call(this,V0.replace(N0[1],N0[2])):n):this[N0]=V0||n;c0+=2}},J=function(g0,F0){for(var c0 in F0)if(typeof F0[c0]===f&&F0[c0].length>0){for(var d0=0;d02&&(x0[d]="iPad",x0[p]=y),x0},this.getEngine=function(){var x0={};return x0[E]=n,x0[g]=n,H.call(x0,d0,G0.engine),x0},this.getOS=function(){var x0={};return x0[E]=n,x0[g]=n,H.call(x0,d0,G0.os),N0&&!x0[E]&&m0&&m0.platform!="Unknown"&&(x0[E]=m0.platform.replace(/chrome os/i,B0).replace(/macos/i,_)),x0},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 d0},this.setUA=function(x0){return d0=typeof x0===l&&x0.length>F?t0(x0,F):x0,this},this.setUA(d0),this};p0.VERSION=r,p0.BROWSER=P([E,g,c]),p0.CPU=P([b]),p0.DEVICE=P([d,h,p,m,A,B,y,v,C]),p0.ENGINE=p0.OS=P([E,g]),u.exports&&(e=u.exports=p0),e.UAParser=p0;var C0=typeof t!==s&&(t.jQuery||t.Zepto);if(C0&&!C0.ua){var y0=new p0;C0.ua=y0.getResult(),C0.ua.get=function(){return y0.getUA()},C0.ua.set=function(g0){y0.setUA(g0);var F0=y0.getResult();for(var c0 in F0)C0.ua[c0]=F0[c0]}}})(typeof window=="object"?window:P0)})(TC,TC.exports);var aC0=TC.exports,$c={},oC0=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},eM={},Gt={};let MA;const sC0=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Gt.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};Gt.getSymbolTotalCodewords=function(e){return sC0[e]};Gt.getBCHDigit=function(u){let e=0;for(;u!==0;)e++,u>>>=1;return e};Gt.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');MA=e};Gt.isKanjiModeEnabled=function(){return typeof MA<"u"};Gt.toSJIS=function(e){return MA(e)};var OE={};(function(u){u.L={bit:1},u.M={bit:0},u.Q={bit:3},u.H={bit:2};function e(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return u.L;case"m":case"medium":return u.M;case"q":case"quartile":return u.Q;case"h":case"high":return u.H;default:throw new Error("Unknown EC Level: "+t)}}u.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},u.from=function(n,r){if(u.isValid(n))return n;try{return e(n)}catch{return r}}})(OE);function tM(){this.buffer=[],this.length=0}tM.prototype={get:function(u){const e=Math.floor(u/8);return(this.buffer[e]>>>7-u%8&1)===1},put:function(u,e){for(let t=0;t>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(u){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),u&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var fC0=tM;function Uc(u){if(!u||u<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=u,this.data=new Uint8Array(u*u),this.reservedBit=new Uint8Array(u*u)}Uc.prototype.set=function(u,e,t,n){const r=u*this.size+e;this.data[r]=t,n&&(this.reservedBit[r]=!0)};Uc.prototype.get=function(u,e){return this.data[u*this.size+e]};Uc.prototype.xor=function(u,e,t){this.data[u*this.size+e]^=t};Uc.prototype.isReserved=function(u,e){return this.reservedBit[u*this.size+e]};var lC0=Uc,nM={};(function(u){const e=Gt.getSymbolSize;u.getRowColCoords=function(n){if(n===1)return[];const r=Math.floor(n/7)+2,i=e(n),a=i===145?26:Math.ceil((i-13)/(2*r-2))*2,o=[i-7];for(let s=1;s=0&&r<=7},u.from=function(r){return u.isValid(r)?parseInt(r,10):void 0},u.getPenaltyN1=function(r){const i=r.size;let a=0,o=0,s=0,f=null,l=null;for(let c=0;c=5&&(a+=e.N1+(o-5)),f=E,o=1),E=r.get(d,c),E===l?s++:(s>=5&&(a+=e.N1+(s-5)),l=E,s=1)}o>=5&&(a+=e.N1+(o-5)),s>=5&&(a+=e.N1+(s-5))}return a},u.getPenaltyN2=function(r){const i=r.size;let a=0;for(let o=0;o=10&&(o===1488||o===93)&&a++,s=s<<1&2047|r.get(l,f),l>=10&&(s===1488||s===93)&&a++}return a*e.N3},u.getPenaltyN4=function(r){let i=0;const a=r.data.length;for(let s=0;s=0;){const a=i[0];for(let s=0;s0){const i=new Uint8Array(this.degree);return i.set(n,r),i}return n};var dC0=jA,sM={},Pa={},zA={};zA.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var yr={};const fM="[0-9]+",EC0="[A-Z $%*+\\-./:]+";let P1="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";P1=P1.replace(/u/g,"\\u");const pC0="(?:(?![A-Z0-9 $%*+\\-./:]|"+P1+`)(?:.|[\r +]))+`;yr.KANJI=new RegExp(P1,"g");yr.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");yr.BYTE=new RegExp(pC0,"g");yr.NUMERIC=new RegExp(fM,"g");yr.ALPHANUMERIC=new RegExp(EC0,"g");const hC0=new RegExp("^"+P1+"$"),CC0=new RegExp("^"+fM+"$"),mC0=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");yr.testKanji=function(e){return hC0.test(e)};yr.testNumeric=function(e){return CC0.test(e)};yr.testAlphanumeric=function(e){return mC0.test(e)};(function(u){const e=zA,t=yr;u.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},u.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},u.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},u.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},u.MIXED={bit:-1},u.getCharCountIndicator=function(i,a){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!e.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?i.ccBits[0]:a<27?i.ccBits[1]:i.ccBits[2]},u.getBestModeForData=function(i){return t.testNumeric(i)?u.NUMERIC:t.testAlphanumeric(i)?u.ALPHANUMERIC:t.testKanji(i)?u.KANJI:u.BYTE},u.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},u.isValid=function(i){return i&&i.bit&&i.ccBits};function n(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return u.NUMERIC;case"alphanumeric":return u.ALPHANUMERIC;case"kanji":return u.KANJI;case"byte":return u.BYTE;default:throw new Error("Unknown mode: "+r)}}u.from=function(i,a){if(u.isValid(i))return i;try{return n(i)}catch{return a}}})(Pa);(function(u){const e=Gt,t=RE,n=OE,r=Pa,i=zA,a=7973,o=e.getBCHDigit(a);function s(d,E,p){for(let h=1;h<=40;h++)if(E<=u.getCapacity(h,p,d))return h}function f(d,E){return r.getCharCountIndicator(d,E)+4}function l(d,E){let p=0;return d.forEach(function(h){const g=f(h.mode,E);p+=g+h.getBitsLength()}),p}function c(d,E){for(let p=1;p<=40;p++)if(l(d,p)<=u.getCapacity(p,E,r.MIXED))return p}u.from=function(E,p){return i.isValid(E)?parseInt(E,10):p},u.getCapacity=function(E,p,h){if(!i.isValid(E))throw new Error("Invalid QR Code version");typeof h>"u"&&(h=r.BYTE);const g=e.getSymbolTotalCodewords(E),b=t.getTotalCodewordsCount(E,p),m=(g-b)*8;if(h===r.MIXED)return m;const A=m-f(h,E);switch(h){case r.NUMERIC:return Math.floor(A/10*3);case r.ALPHANUMERIC:return Math.floor(A/11*2);case r.KANJI:return Math.floor(A/13);case r.BYTE:default:return Math.floor(A/8)}},u.getBestVersionForData=function(E,p){let h;const g=n.from(p,n.M);if(Array.isArray(E)){if(E.length>1)return c(E,g);if(E.length===0)return 1;h=E[0]}else h=E;return s(h.mode,h.getLength(),g)},u.getEncodedBits=function(E){if(!i.isValid(E)||E<7)throw new Error("Invalid QR Code version");let p=E<<12;for(;e.getBCHDigit(p)-o>=0;)p^=a<=0;)r^=cM<0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))};var AC0=Q4;const yC0=Pa,X8=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function J4(u){this.mode=yC0.ALPHANUMERIC,this.data=u}J4.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};J4.prototype.getLength=function(){return this.data.length};J4.prototype.getBitsLength=function(){return J4.getBitsLength(this.data.length)};J4.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=X8.indexOf(this.data[t])*45;n+=X8.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(X8.indexOf(this.data[t]),6)};var vC0=J4,BC0=function(e){for(var t=[],n=e.length,r=0;r=55296&&i<=56319&&n>r+1){var a=e.charCodeAt(r+1);a>=56320&&a<=57343&&(i=(i-55296)*1024+a-56320+65536,r+=1)}if(i<128){t.push(i);continue}if(i<2048){t.push(i>>6|192),t.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){t.push(i>>12|224),t.push(i>>6&63|128),t.push(i&63|128);continue}if(i>=65536&&i<=1114111){t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(i&63|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer};const FC0=BC0,DC0=Pa;function Z4(u){this.mode=DC0.BYTE,this.data=new Uint8Array(FC0(u))}Z4.getBitsLength=function(e){return e*8};Z4.prototype.getLength=function(){return this.data.length};Z4.prototype.getBitsLength=function(){return Z4.getBitsLength(this.data.length)};Z4.prototype.write=function(u){for(let e=0,t=this.data.length;e=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` +Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),u.put(t,13)}};var _C0=Y4,EM={exports:{}};(function(u){var e={single_source_shortest_paths:function(t,n,r){var i={},a={};a[n]=0;var o=e.PriorityQueue.make();o.push(n,0);for(var s,f,l,c,d,E,p,h,g;!o.empty();){s=o.pop(),f=s.value,c=s.cost,d=t[f]||{};for(l in d)d.hasOwnProperty(l)&&(E=d[l],p=c+E,h=a[l],g=typeof a[l]>"u",(g||h>p)&&(a[l]=p,o.push(l,p),i[l]=f))}if(typeof r<"u"&&typeof a[r]>"u"){var b=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(b)}return i},extract_shortest_path_from_predecessor_list:function(t,n){for(var r=[],i=n;i;)r.push(i),t[i],i=t[i];return r.reverse(),r},find_path:function(t,n,r){var i=e.single_source_shortest_paths(t,n,r);return e.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(t){var n=e.PriorityQueue,r={},i;t=t||{};for(i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);return r.queue=[],r.sorter=t.sorter||n.default_sorter,r},default_sorter:function(t,n){return t.cost-n.cost},push:function(t,n){var r={value:t,cost:n};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};u.exports=e})(EM);var SC0=EM.exports;(function(u){const e=Pa,t=AC0,n=vC0,r=wC0,i=_C0,a=yr,o=Gt,s=SC0;function f(b){return unescape(encodeURIComponent(b)).length}function l(b,m,A){const y=[];let B;for(;(B=b.exec(A))!==null;)y.push({data:B[0],index:B.index,mode:m,length:B[0].length});return y}function c(b){const m=l(a.NUMERIC,e.NUMERIC,b),A=l(a.ALPHANUMERIC,e.ALPHANUMERIC,b);let y,B;return o.isKanjiModeEnabled()?(y=l(a.BYTE,e.BYTE,b),B=l(a.KANJI,e.KANJI,b)):(y=l(a.BYTE_KANJI,e.BYTE,b),B=[]),m.concat(A,y,B).sort(function(C,F){return C.index-F.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function d(b,m){switch(m){case e.NUMERIC:return t.getBitsLength(b);case e.ALPHANUMERIC:return n.getBitsLength(b);case e.KANJI:return i.getBitsLength(b);case e.BYTE:return r.getBitsLength(b)}}function E(b){return b.reduce(function(m,A){const y=m.length-1>=0?m[m.length-1]:null;return y&&y.mode===A.mode?(m[m.length-1].data+=A.data,m):(m.push(A),m)},[])}function p(b){const m=[];for(let A=0;A=0&&o<=6&&(s===0||s===6)||s>=0&&s<=6&&(o===0||o===6)||o>=2&&o<=4&&s>=2&&s<=4?u.set(i+o,a+s,!0,!0):u.set(i+o,a+s,!1,!0))}}function zC0(u){const e=u.size;for(let t=8;t>o&1)===1,u.set(r,i,a,!0),u.set(i,r,a,!0)}function th(u,e,t){const n=u.size,r=NC0.getEncodedBits(e,t);let i,a;for(i=0;i<15;i++)a=(r>>i&1)===1,i<6?u.set(i,8,a,!0):i<8?u.set(i+1,8,a,!0):u.set(n-15+i,8,a,!0),i<8?u.set(8,n-i-1,a,!0):i<9?u.set(8,15-i-1+1,a,!0):u.set(8,15-i-1,a,!0);u.set(n-8,8,1,!0)}function UC0(u,e){const t=u.size;let n=-1,r=t-1,i=7,a=0;for(let o=t-1;o>0;o-=2)for(o===6&&o--;;){for(let s=0;s<2;s++)if(!u.isReserved(r,o-s)){let f=!1;a>>i&1)===1),u.set(r,o-s,f),i--,i===-1&&(a++,i=7)}if(r+=n,r<0||t<=r){r-=n,n=-n;break}}}function WC0(u,e,t){const n=new TC0;t.forEach(function(s){n.put(s.mode.bit,4),n.put(s.getLength(),MC0.getCharCountIndicator(s.mode,u)),s.write(n)});const r=ME.getSymbolTotalCodewords(u),i=OC.getTotalCodewordsCount(u,e),a=(r-i)*8;for(n.getLengthInBits()+4<=a&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);const o=(a-n.getLengthInBits())/8;for(let s=0;s=7&&$C0(s,e),UC0(s,a),isNaN(n)&&(n=PC.getBestMask(s,eh.bind(null,s,t))),PC.applyMask(n,s),eh(s,t,n),{modules:s,version:e,errorCorrectionLevel:t,maskPattern:n,segments:r}}eM.create=function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let n=X8.M,r,i;return typeof t<"u"&&(n=X8.from(t.errorCorrectionLevel,X8.M),r=J2.from(t.version),i=PC.from(t.maskPattern),t.toSJISFunc&&NE.setToSJISFunction(t.toSJISFunc)),HC0(e,r,n,i)};var pM={},zA={};(function(u){function e(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let n=t.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+t);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(i){return[i,i]}))),n.length===6&&n.push("F","F");const r=parseInt(n.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+n.slice(0,6).join("")}}u.getOptions=function(n){n||(n={}),n.color||(n.color={});const r=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,i=n.width&&n.width>=21?n.width:void 0,a=n.scale||4;return{width:i,scale:i?4:a,margin:r,color:{dark:e(n.color.dark||"#000000ff"),light:e(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},u.getScale=function(n,r){return r.width&&r.width>=n+r.margin*2?r.width/(n+r.margin*2):r.scale},u.getImageWidth=function(n,r){const i=u.getScale(n,r);return Math.floor((n+r.margin*2)*i)},u.qrToImageData=function(n,r,i){const a=r.modules.size,o=r.modules.data,s=u.getScale(a,i),f=Math.floor((a+i.margin*2)*s),l=i.margin*s,c=[i.color.light,i.color.dark];for(let d=0;d=l&&E>=l&&d"u"&&(!a||!a.getContext)&&(s=a,a=void 0),a||(f=n()),s=e.getOptions(s);const l=e.getImageWidth(i.modules.size,s),c=f.getContext("2d"),d=c.createImageData(l,l);return e.qrToImageData(d.data,i,s),t(c,f,l),c.putImageData(d,0,0),f},u.renderToDataURL=function(i,a,o){let s=o;typeof s>"u"&&(!a||!a.getContext)&&(s=a,a=void 0),s||(s={});const f=u.render(i,a,s),l=s.type||"image/png",c=s.rendererOpts||{};return f.toDataURL(l,c.quality)}})(pM);var hM={};const GC0=zA;function cw(u,e){const t=u.a/255,n=e+'="'+u.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}function th(u,e,t){let n=u+e;return typeof t<"u"&&(n+=" "+t),n}function VC0(u,e,t){let n="",r=0,i=!1,a=0;for(let o=0;o0&&s>0&&u[o-1]||(n+=i?th("M",s+t,.5+f+t):th("m",r,0),r=0,i=!1),s+1':"",f="',l='viewBox="0 0 '+o+" "+o+'"',d=''+s+f+` -`;return typeof n=="function"&&n(null,d),d};const KC0=oC0,OC=eM,CM=pM,QC0=hM;function LA(u,e,t,n,r){const i=[].slice.call(arguments,1),a=i.length,o=typeof i[a-1]=="function";if(!o&&!KC0())throw new Error("Callback required as last argument");if(o){if(a<2)throw new Error("Too few arguments provided");a===2?(r=t,t=e,e=n=void 0):a===3&&(e.getContext&&typeof r>"u"?(r=n,n=void 0):(r=n,n=t,t=e,e=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(t=e,e=n=void 0):a===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(s,f){try{const l=OC.create(t,n);s(u(l,e,n))}catch(l){f(l)}})}try{const s=OC.create(t,n);r(null,u(s,e,n))}catch(s){r(s)}}Lc.create=OC.create;Lc.toCanvas=LA.bind(null,CM.render);Lc.toDataURL=LA.bind(null,CM.renderToDataURL);Lc.toString=LA.bind(null,function(u,e,t){return QC0.render(u,t)});var JC0=768,Ps=DJ({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),ZC0=IP({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),RC=_J({conditions:{defaultCondition:"base",conditionNames:["base","hover","active"],responsiveArray:void 0},styles:{background:{values:{accentColor:{conditions:{base:"ju367v9h",hover:"ju367v9i",active:"ju367v9j"},defaultClass:"ju367v9h"},accentColorForeground:{conditions:{base:"ju367v9k",hover:"ju367v9l",active:"ju367v9m"},defaultClass:"ju367v9k"},actionButtonBorder:{conditions:{base:"ju367v9n",hover:"ju367v9o",active:"ju367v9p"},defaultClass:"ju367v9n"},actionButtonBorderMobile:{conditions:{base:"ju367v9q",hover:"ju367v9r",active:"ju367v9s"},defaultClass:"ju367v9q"},actionButtonSecondaryBackground:{conditions:{base:"ju367v9t",hover:"ju367v9u",active:"ju367v9v"},defaultClass:"ju367v9t"},closeButton:{conditions:{base:"ju367v9w",hover:"ju367v9x",active:"ju367v9y"},defaultClass:"ju367v9w"},closeButtonBackground:{conditions:{base:"ju367v9z",hover:"ju367va0",active:"ju367va1"},defaultClass:"ju367v9z"},connectButtonBackground:{conditions:{base:"ju367va2",hover:"ju367va3",active:"ju367va4"},defaultClass:"ju367va2"},connectButtonBackgroundError:{conditions:{base:"ju367va5",hover:"ju367va6",active:"ju367va7"},defaultClass:"ju367va5"},connectButtonInnerBackground:{conditions:{base:"ju367va8",hover:"ju367va9",active:"ju367vaa"},defaultClass:"ju367va8"},connectButtonText:{conditions:{base:"ju367vab",hover:"ju367vac",active:"ju367vad"},defaultClass:"ju367vab"},connectButtonTextError:{conditions:{base:"ju367vae",hover:"ju367vaf",active:"ju367vag"},defaultClass:"ju367vae"},connectionIndicator:{conditions:{base:"ju367vah",hover:"ju367vai",active:"ju367vaj"},defaultClass:"ju367vah"},downloadBottomCardBackground:{conditions:{base:"ju367vak",hover:"ju367val",active:"ju367vam"},defaultClass:"ju367vak"},downloadTopCardBackground:{conditions:{base:"ju367van",hover:"ju367vao",active:"ju367vap"},defaultClass:"ju367van"},error:{conditions:{base:"ju367vaq",hover:"ju367var",active:"ju367vas"},defaultClass:"ju367vaq"},generalBorder:{conditions:{base:"ju367vat",hover:"ju367vau",active:"ju367vav"},defaultClass:"ju367vat"},generalBorderDim:{conditions:{base:"ju367vaw",hover:"ju367vax",active:"ju367vay"},defaultClass:"ju367vaw"},menuItemBackground:{conditions:{base:"ju367vaz",hover:"ju367vb0",active:"ju367vb1"},defaultClass:"ju367vaz"},modalBackdrop:{conditions:{base:"ju367vb2",hover:"ju367vb3",active:"ju367vb4"},defaultClass:"ju367vb2"},modalBackground:{conditions:{base:"ju367vb5",hover:"ju367vb6",active:"ju367vb7"},defaultClass:"ju367vb5"},modalBorder:{conditions:{base:"ju367vb8",hover:"ju367vb9",active:"ju367vba"},defaultClass:"ju367vb8"},modalText:{conditions:{base:"ju367vbb",hover:"ju367vbc",active:"ju367vbd"},defaultClass:"ju367vbb"},modalTextDim:{conditions:{base:"ju367vbe",hover:"ju367vbf",active:"ju367vbg"},defaultClass:"ju367vbe"},modalTextSecondary:{conditions:{base:"ju367vbh",hover:"ju367vbi",active:"ju367vbj"},defaultClass:"ju367vbh"},profileAction:{conditions:{base:"ju367vbk",hover:"ju367vbl",active:"ju367vbm"},defaultClass:"ju367vbk"},profileActionHover:{conditions:{base:"ju367vbn",hover:"ju367vbo",active:"ju367vbp"},defaultClass:"ju367vbn"},profileForeground:{conditions:{base:"ju367vbq",hover:"ju367vbr",active:"ju367vbs"},defaultClass:"ju367vbq"},selectedOptionBorder:{conditions:{base:"ju367vbt",hover:"ju367vbu",active:"ju367vbv"},defaultClass:"ju367vbt"},standby:{conditions:{base:"ju367vbw",hover:"ju367vbx",active:"ju367vby"},defaultClass:"ju367vbw"}}},borderColor:{values:{accentColor:{conditions:{base:"ju367vbz",hover:"ju367vc0",active:"ju367vc1"},defaultClass:"ju367vbz"},accentColorForeground:{conditions:{base:"ju367vc2",hover:"ju367vc3",active:"ju367vc4"},defaultClass:"ju367vc2"},actionButtonBorder:{conditions:{base:"ju367vc5",hover:"ju367vc6",active:"ju367vc7"},defaultClass:"ju367vc5"},actionButtonBorderMobile:{conditions:{base:"ju367vc8",hover:"ju367vc9",active:"ju367vca"},defaultClass:"ju367vc8"},actionButtonSecondaryBackground:{conditions:{base:"ju367vcb",hover:"ju367vcc",active:"ju367vcd"},defaultClass:"ju367vcb"},closeButton:{conditions:{base:"ju367vce",hover:"ju367vcf",active:"ju367vcg"},defaultClass:"ju367vce"},closeButtonBackground:{conditions:{base:"ju367vch",hover:"ju367vci",active:"ju367vcj"},defaultClass:"ju367vch"},connectButtonBackground:{conditions:{base:"ju367vck",hover:"ju367vcl",active:"ju367vcm"},defaultClass:"ju367vck"},connectButtonBackgroundError:{conditions:{base:"ju367vcn",hover:"ju367vco",active:"ju367vcp"},defaultClass:"ju367vcn"},connectButtonInnerBackground:{conditions:{base:"ju367vcq",hover:"ju367vcr",active:"ju367vcs"},defaultClass:"ju367vcq"},connectButtonText:{conditions:{base:"ju367vct",hover:"ju367vcu",active:"ju367vcv"},defaultClass:"ju367vct"},connectButtonTextError:{conditions:{base:"ju367vcw",hover:"ju367vcx",active:"ju367vcy"},defaultClass:"ju367vcw"},connectionIndicator:{conditions:{base:"ju367vcz",hover:"ju367vd0",active:"ju367vd1"},defaultClass:"ju367vcz"},downloadBottomCardBackground:{conditions:{base:"ju367vd2",hover:"ju367vd3",active:"ju367vd4"},defaultClass:"ju367vd2"},downloadTopCardBackground:{conditions:{base:"ju367vd5",hover:"ju367vd6",active:"ju367vd7"},defaultClass:"ju367vd5"},error:{conditions:{base:"ju367vd8",hover:"ju367vd9",active:"ju367vda"},defaultClass:"ju367vd8"},generalBorder:{conditions:{base:"ju367vdb",hover:"ju367vdc",active:"ju367vdd"},defaultClass:"ju367vdb"},generalBorderDim:{conditions:{base:"ju367vde",hover:"ju367vdf",active:"ju367vdg"},defaultClass:"ju367vde"},menuItemBackground:{conditions:{base:"ju367vdh",hover:"ju367vdi",active:"ju367vdj"},defaultClass:"ju367vdh"},modalBackdrop:{conditions:{base:"ju367vdk",hover:"ju367vdl",active:"ju367vdm"},defaultClass:"ju367vdk"},modalBackground:{conditions:{base:"ju367vdn",hover:"ju367vdo",active:"ju367vdp"},defaultClass:"ju367vdn"},modalBorder:{conditions:{base:"ju367vdq",hover:"ju367vdr",active:"ju367vds"},defaultClass:"ju367vdq"},modalText:{conditions:{base:"ju367vdt",hover:"ju367vdu",active:"ju367vdv"},defaultClass:"ju367vdt"},modalTextDim:{conditions:{base:"ju367vdw",hover:"ju367vdx",active:"ju367vdy"},defaultClass:"ju367vdw"},modalTextSecondary:{conditions:{base:"ju367vdz",hover:"ju367ve0",active:"ju367ve1"},defaultClass:"ju367vdz"},profileAction:{conditions:{base:"ju367ve2",hover:"ju367ve3",active:"ju367ve4"},defaultClass:"ju367ve2"},profileActionHover:{conditions:{base:"ju367ve5",hover:"ju367ve6",active:"ju367ve7"},defaultClass:"ju367ve5"},profileForeground:{conditions:{base:"ju367ve8",hover:"ju367ve9",active:"ju367vea"},defaultClass:"ju367ve8"},selectedOptionBorder:{conditions:{base:"ju367veb",hover:"ju367vec",active:"ju367ved"},defaultClass:"ju367veb"},standby:{conditions:{base:"ju367vee",hover:"ju367vef",active:"ju367veg"},defaultClass:"ju367vee"}}},boxShadow:{values:{connectButton:{conditions:{base:"ju367veh",hover:"ju367vei",active:"ju367vej"},defaultClass:"ju367veh"},dialog:{conditions:{base:"ju367vek",hover:"ju367vel",active:"ju367vem"},defaultClass:"ju367vek"},profileDetailsAction:{conditions:{base:"ju367ven",hover:"ju367veo",active:"ju367vep"},defaultClass:"ju367ven"},selectedOption:{conditions:{base:"ju367veq",hover:"ju367ver",active:"ju367ves"},defaultClass:"ju367veq"},selectedWallet:{conditions:{base:"ju367vet",hover:"ju367veu",active:"ju367vev"},defaultClass:"ju367vet"},walletLogo:{conditions:{base:"ju367vew",hover:"ju367vex",active:"ju367vey"},defaultClass:"ju367vew"}}},color:{values:{accentColor:{conditions:{base:"ju367vez",hover:"ju367vf0",active:"ju367vf1"},defaultClass:"ju367vez"},accentColorForeground:{conditions:{base:"ju367vf2",hover:"ju367vf3",active:"ju367vf4"},defaultClass:"ju367vf2"},actionButtonBorder:{conditions:{base:"ju367vf5",hover:"ju367vf6",active:"ju367vf7"},defaultClass:"ju367vf5"},actionButtonBorderMobile:{conditions:{base:"ju367vf8",hover:"ju367vf9",active:"ju367vfa"},defaultClass:"ju367vf8"},actionButtonSecondaryBackground:{conditions:{base:"ju367vfb",hover:"ju367vfc",active:"ju367vfd"},defaultClass:"ju367vfb"},closeButton:{conditions:{base:"ju367vfe",hover:"ju367vff",active:"ju367vfg"},defaultClass:"ju367vfe"},closeButtonBackground:{conditions:{base:"ju367vfh",hover:"ju367vfi",active:"ju367vfj"},defaultClass:"ju367vfh"},connectButtonBackground:{conditions:{base:"ju367vfk",hover:"ju367vfl",active:"ju367vfm"},defaultClass:"ju367vfk"},connectButtonBackgroundError:{conditions:{base:"ju367vfn",hover:"ju367vfo",active:"ju367vfp"},defaultClass:"ju367vfn"},connectButtonInnerBackground:{conditions:{base:"ju367vfq",hover:"ju367vfr",active:"ju367vfs"},defaultClass:"ju367vfq"},connectButtonText:{conditions:{base:"ju367vft",hover:"ju367vfu",active:"ju367vfv"},defaultClass:"ju367vft"},connectButtonTextError:{conditions:{base:"ju367vfw",hover:"ju367vfx",active:"ju367vfy"},defaultClass:"ju367vfw"},connectionIndicator:{conditions:{base:"ju367vfz",hover:"ju367vg0",active:"ju367vg1"},defaultClass:"ju367vfz"},downloadBottomCardBackground:{conditions:{base:"ju367vg2",hover:"ju367vg3",active:"ju367vg4"},defaultClass:"ju367vg2"},downloadTopCardBackground:{conditions:{base:"ju367vg5",hover:"ju367vg6",active:"ju367vg7"},defaultClass:"ju367vg5"},error:{conditions:{base:"ju367vg8",hover:"ju367vg9",active:"ju367vga"},defaultClass:"ju367vg8"},generalBorder:{conditions:{base:"ju367vgb",hover:"ju367vgc",active:"ju367vgd"},defaultClass:"ju367vgb"},generalBorderDim:{conditions:{base:"ju367vge",hover:"ju367vgf",active:"ju367vgg"},defaultClass:"ju367vge"},menuItemBackground:{conditions:{base:"ju367vgh",hover:"ju367vgi",active:"ju367vgj"},defaultClass:"ju367vgh"},modalBackdrop:{conditions:{base:"ju367vgk",hover:"ju367vgl",active:"ju367vgm"},defaultClass:"ju367vgk"},modalBackground:{conditions:{base:"ju367vgn",hover:"ju367vgo",active:"ju367vgp"},defaultClass:"ju367vgn"},modalBorder:{conditions:{base:"ju367vgq",hover:"ju367vgr",active:"ju367vgs"},defaultClass:"ju367vgq"},modalText:{conditions:{base:"ju367vgt",hover:"ju367vgu",active:"ju367vgv"},defaultClass:"ju367vgt"},modalTextDim:{conditions:{base:"ju367vgw",hover:"ju367vgx",active:"ju367vgy"},defaultClass:"ju367vgw"},modalTextSecondary:{conditions:{base:"ju367vgz",hover:"ju367vh0",active:"ju367vh1"},defaultClass:"ju367vgz"},profileAction:{conditions:{base:"ju367vh2",hover:"ju367vh3",active:"ju367vh4"},defaultClass:"ju367vh2"},profileActionHover:{conditions:{base:"ju367vh5",hover:"ju367vh6",active:"ju367vh7"},defaultClass:"ju367vh5"},profileForeground:{conditions:{base:"ju367vh8",hover:"ju367vh9",active:"ju367vha"},defaultClass:"ju367vh8"},selectedOptionBorder:{conditions:{base:"ju367vhb",hover:"ju367vhc",active:"ju367vhd"},defaultClass:"ju367vhb"},standby:{conditions:{base:"ju367vhe",hover:"ju367vhf",active:"ju367vhg"},defaultClass:"ju367vhe"}}}}},{conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0},styles:{alignItems:{values:{"flex-start":{conditions:{smallScreen:"ju367v0",largeScreen:"ju367v1"},defaultClass:"ju367v0"},"flex-end":{conditions:{smallScreen:"ju367v2",largeScreen:"ju367v3"},defaultClass:"ju367v2"},center:{conditions:{smallScreen:"ju367v4",largeScreen:"ju367v5"},defaultClass:"ju367v4"}}},display:{values:{none:{conditions:{smallScreen:"ju367v6",largeScreen:"ju367v7"},defaultClass:"ju367v6"},block:{conditions:{smallScreen:"ju367v8",largeScreen:"ju367v9"},defaultClass:"ju367v8"},flex:{conditions:{smallScreen:"ju367va",largeScreen:"ju367vb"},defaultClass:"ju367va"},inline:{conditions:{smallScreen:"ju367vc",largeScreen:"ju367vd"},defaultClass:"ju367vc"}}}}},{conditions:void 0,styles:{margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},alignSelf:{values:{"flex-start":{defaultClass:"ju367ve"},"flex-end":{defaultClass:"ju367vf"},center:{defaultClass:"ju367vg"}}},backgroundSize:{values:{cover:{defaultClass:"ju367vh"}}},borderRadius:{values:{1:{defaultClass:"ju367vi"},6:{defaultClass:"ju367vj"},10:{defaultClass:"ju367vk"},13:{defaultClass:"ju367vl"},actionButton:{defaultClass:"ju367vm"},connectButton:{defaultClass:"ju367vn"},menuButton:{defaultClass:"ju367vo"},modal:{defaultClass:"ju367vp"},modalMobile:{defaultClass:"ju367vq"},"25%":{defaultClass:"ju367vr"},full:{defaultClass:"ju367vs"}}},borderStyle:{values:{solid:{defaultClass:"ju367vt"}}},borderWidth:{values:{0:{defaultClass:"ju367vu"},1:{defaultClass:"ju367vv"},2:{defaultClass:"ju367vw"},4:{defaultClass:"ju367vx"}}},cursor:{values:{pointer:{defaultClass:"ju367vy"},none:{defaultClass:"ju367vz"}}},pointerEvents:{values:{none:{defaultClass:"ju367v10"},all:{defaultClass:"ju367v11"}}},minHeight:{values:{8:{defaultClass:"ju367v12"},44:{defaultClass:"ju367v13"}}},flexDirection:{values:{row:{defaultClass:"ju367v14"},column:{defaultClass:"ju367v15"}}},fontFamily:{values:{body:{defaultClass:"ju367v16"}}},fontSize:{values:{12:{defaultClass:"ju367v17"},13:{defaultClass:"ju367v18"},14:{defaultClass:"ju367v19"},16:{defaultClass:"ju367v1a"},18:{defaultClass:"ju367v1b"},20:{defaultClass:"ju367v1c"},23:{defaultClass:"ju367v1d"}}},fontWeight:{values:{regular:{defaultClass:"ju367v1e"},medium:{defaultClass:"ju367v1f"},semibold:{defaultClass:"ju367v1g"},bold:{defaultClass:"ju367v1h"},heavy:{defaultClass:"ju367v1i"}}},gap:{values:{0:{defaultClass:"ju367v1j"},1:{defaultClass:"ju367v1k"},2:{defaultClass:"ju367v1l"},3:{defaultClass:"ju367v1m"},4:{defaultClass:"ju367v1n"},5:{defaultClass:"ju367v1o"},6:{defaultClass:"ju367v1p"},8:{defaultClass:"ju367v1q"},10:{defaultClass:"ju367v1r"},12:{defaultClass:"ju367v1s"},14:{defaultClass:"ju367v1t"},16:{defaultClass:"ju367v1u"},18:{defaultClass:"ju367v1v"},20:{defaultClass:"ju367v1w"},24:{defaultClass:"ju367v1x"},28:{defaultClass:"ju367v1y"},32:{defaultClass:"ju367v1z"},36:{defaultClass:"ju367v20"},44:{defaultClass:"ju367v21"},64:{defaultClass:"ju367v22"},"-1":{defaultClass:"ju367v23"}}},height:{values:{1:{defaultClass:"ju367v24"},2:{defaultClass:"ju367v25"},4:{defaultClass:"ju367v26"},8:{defaultClass:"ju367v27"},12:{defaultClass:"ju367v28"},20:{defaultClass:"ju367v29"},24:{defaultClass:"ju367v2a"},28:{defaultClass:"ju367v2b"},30:{defaultClass:"ju367v2c"},32:{defaultClass:"ju367v2d"},34:{defaultClass:"ju367v2e"},36:{defaultClass:"ju367v2f"},40:{defaultClass:"ju367v2g"},44:{defaultClass:"ju367v2h"},48:{defaultClass:"ju367v2i"},54:{defaultClass:"ju367v2j"},60:{defaultClass:"ju367v2k"},200:{defaultClass:"ju367v2l"},full:{defaultClass:"ju367v2m"},max:{defaultClass:"ju367v2n"}}},justifyContent:{values:{"flex-start":{defaultClass:"ju367v2o"},"flex-end":{defaultClass:"ju367v2p"},center:{defaultClass:"ju367v2q"},"space-between":{defaultClass:"ju367v2r"},"space-around":{defaultClass:"ju367v2s"}}},textAlign:{values:{left:{defaultClass:"ju367v2t"},center:{defaultClass:"ju367v2u"},inherit:{defaultClass:"ju367v2v"}}},marginBottom:{values:{0:{defaultClass:"ju367v2w"},1:{defaultClass:"ju367v2x"},2:{defaultClass:"ju367v2y"},3:{defaultClass:"ju367v2z"},4:{defaultClass:"ju367v30"},5:{defaultClass:"ju367v31"},6:{defaultClass:"ju367v32"},8:{defaultClass:"ju367v33"},10:{defaultClass:"ju367v34"},12:{defaultClass:"ju367v35"},14:{defaultClass:"ju367v36"},16:{defaultClass:"ju367v37"},18:{defaultClass:"ju367v38"},20:{defaultClass:"ju367v39"},24:{defaultClass:"ju367v3a"},28:{defaultClass:"ju367v3b"},32:{defaultClass:"ju367v3c"},36:{defaultClass:"ju367v3d"},44:{defaultClass:"ju367v3e"},64:{defaultClass:"ju367v3f"},"-1":{defaultClass:"ju367v3g"}}},marginLeft:{values:{0:{defaultClass:"ju367v3h"},1:{defaultClass:"ju367v3i"},2:{defaultClass:"ju367v3j"},3:{defaultClass:"ju367v3k"},4:{defaultClass:"ju367v3l"},5:{defaultClass:"ju367v3m"},6:{defaultClass:"ju367v3n"},8:{defaultClass:"ju367v3o"},10:{defaultClass:"ju367v3p"},12:{defaultClass:"ju367v3q"},14:{defaultClass:"ju367v3r"},16:{defaultClass:"ju367v3s"},18:{defaultClass:"ju367v3t"},20:{defaultClass:"ju367v3u"},24:{defaultClass:"ju367v3v"},28:{defaultClass:"ju367v3w"},32:{defaultClass:"ju367v3x"},36:{defaultClass:"ju367v3y"},44:{defaultClass:"ju367v3z"},64:{defaultClass:"ju367v40"},"-1":{defaultClass:"ju367v41"}}},marginRight:{values:{0:{defaultClass:"ju367v42"},1:{defaultClass:"ju367v43"},2:{defaultClass:"ju367v44"},3:{defaultClass:"ju367v45"},4:{defaultClass:"ju367v46"},5:{defaultClass:"ju367v47"},6:{defaultClass:"ju367v48"},8:{defaultClass:"ju367v49"},10:{defaultClass:"ju367v4a"},12:{defaultClass:"ju367v4b"},14:{defaultClass:"ju367v4c"},16:{defaultClass:"ju367v4d"},18:{defaultClass:"ju367v4e"},20:{defaultClass:"ju367v4f"},24:{defaultClass:"ju367v4g"},28:{defaultClass:"ju367v4h"},32:{defaultClass:"ju367v4i"},36:{defaultClass:"ju367v4j"},44:{defaultClass:"ju367v4k"},64:{defaultClass:"ju367v4l"},"-1":{defaultClass:"ju367v4m"}}},marginTop:{values:{0:{defaultClass:"ju367v4n"},1:{defaultClass:"ju367v4o"},2:{defaultClass:"ju367v4p"},3:{defaultClass:"ju367v4q"},4:{defaultClass:"ju367v4r"},5:{defaultClass:"ju367v4s"},6:{defaultClass:"ju367v4t"},8:{defaultClass:"ju367v4u"},10:{defaultClass:"ju367v4v"},12:{defaultClass:"ju367v4w"},14:{defaultClass:"ju367v4x"},16:{defaultClass:"ju367v4y"},18:{defaultClass:"ju367v4z"},20:{defaultClass:"ju367v50"},24:{defaultClass:"ju367v51"},28:{defaultClass:"ju367v52"},32:{defaultClass:"ju367v53"},36:{defaultClass:"ju367v54"},44:{defaultClass:"ju367v55"},64:{defaultClass:"ju367v56"},"-1":{defaultClass:"ju367v57"}}},maxWidth:{values:{1:{defaultClass:"ju367v58"},2:{defaultClass:"ju367v59"},4:{defaultClass:"ju367v5a"},8:{defaultClass:"ju367v5b"},12:{defaultClass:"ju367v5c"},20:{defaultClass:"ju367v5d"},24:{defaultClass:"ju367v5e"},28:{defaultClass:"ju367v5f"},30:{defaultClass:"ju367v5g"},32:{defaultClass:"ju367v5h"},34:{defaultClass:"ju367v5i"},36:{defaultClass:"ju367v5j"},40:{defaultClass:"ju367v5k"},44:{defaultClass:"ju367v5l"},48:{defaultClass:"ju367v5m"},54:{defaultClass:"ju367v5n"},60:{defaultClass:"ju367v5o"},200:{defaultClass:"ju367v5p"},full:{defaultClass:"ju367v5q"},max:{defaultClass:"ju367v5r"}}},minWidth:{values:{1:{defaultClass:"ju367v5s"},2:{defaultClass:"ju367v5t"},4:{defaultClass:"ju367v5u"},8:{defaultClass:"ju367v5v"},12:{defaultClass:"ju367v5w"},20:{defaultClass:"ju367v5x"},24:{defaultClass:"ju367v5y"},28:{defaultClass:"ju367v5z"},30:{defaultClass:"ju367v60"},32:{defaultClass:"ju367v61"},34:{defaultClass:"ju367v62"},36:{defaultClass:"ju367v63"},40:{defaultClass:"ju367v64"},44:{defaultClass:"ju367v65"},48:{defaultClass:"ju367v66"},54:{defaultClass:"ju367v67"},60:{defaultClass:"ju367v68"},200:{defaultClass:"ju367v69"},full:{defaultClass:"ju367v6a"},max:{defaultClass:"ju367v6b"}}},overflow:{values:{hidden:{defaultClass:"ju367v6c"}}},paddingBottom:{values:{0:{defaultClass:"ju367v6d"},1:{defaultClass:"ju367v6e"},2:{defaultClass:"ju367v6f"},3:{defaultClass:"ju367v6g"},4:{defaultClass:"ju367v6h"},5:{defaultClass:"ju367v6i"},6:{defaultClass:"ju367v6j"},8:{defaultClass:"ju367v6k"},10:{defaultClass:"ju367v6l"},12:{defaultClass:"ju367v6m"},14:{defaultClass:"ju367v6n"},16:{defaultClass:"ju367v6o"},18:{defaultClass:"ju367v6p"},20:{defaultClass:"ju367v6q"},24:{defaultClass:"ju367v6r"},28:{defaultClass:"ju367v6s"},32:{defaultClass:"ju367v6t"},36:{defaultClass:"ju367v6u"},44:{defaultClass:"ju367v6v"},64:{defaultClass:"ju367v6w"},"-1":{defaultClass:"ju367v6x"}}},paddingLeft:{values:{0:{defaultClass:"ju367v6y"},1:{defaultClass:"ju367v6z"},2:{defaultClass:"ju367v70"},3:{defaultClass:"ju367v71"},4:{defaultClass:"ju367v72"},5:{defaultClass:"ju367v73"},6:{defaultClass:"ju367v74"},8:{defaultClass:"ju367v75"},10:{defaultClass:"ju367v76"},12:{defaultClass:"ju367v77"},14:{defaultClass:"ju367v78"},16:{defaultClass:"ju367v79"},18:{defaultClass:"ju367v7a"},20:{defaultClass:"ju367v7b"},24:{defaultClass:"ju367v7c"},28:{defaultClass:"ju367v7d"},32:{defaultClass:"ju367v7e"},36:{defaultClass:"ju367v7f"},44:{defaultClass:"ju367v7g"},64:{defaultClass:"ju367v7h"},"-1":{defaultClass:"ju367v7i"}}},paddingRight:{values:{0:{defaultClass:"ju367v7j"},1:{defaultClass:"ju367v7k"},2:{defaultClass:"ju367v7l"},3:{defaultClass:"ju367v7m"},4:{defaultClass:"ju367v7n"},5:{defaultClass:"ju367v7o"},6:{defaultClass:"ju367v7p"},8:{defaultClass:"ju367v7q"},10:{defaultClass:"ju367v7r"},12:{defaultClass:"ju367v7s"},14:{defaultClass:"ju367v7t"},16:{defaultClass:"ju367v7u"},18:{defaultClass:"ju367v7v"},20:{defaultClass:"ju367v7w"},24:{defaultClass:"ju367v7x"},28:{defaultClass:"ju367v7y"},32:{defaultClass:"ju367v7z"},36:{defaultClass:"ju367v80"},44:{defaultClass:"ju367v81"},64:{defaultClass:"ju367v82"},"-1":{defaultClass:"ju367v83"}}},paddingTop:{values:{0:{defaultClass:"ju367v84"},1:{defaultClass:"ju367v85"},2:{defaultClass:"ju367v86"},3:{defaultClass:"ju367v87"},4:{defaultClass:"ju367v88"},5:{defaultClass:"ju367v89"},6:{defaultClass:"ju367v8a"},8:{defaultClass:"ju367v8b"},10:{defaultClass:"ju367v8c"},12:{defaultClass:"ju367v8d"},14:{defaultClass:"ju367v8e"},16:{defaultClass:"ju367v8f"},18:{defaultClass:"ju367v8g"},20:{defaultClass:"ju367v8h"},24:{defaultClass:"ju367v8i"},28:{defaultClass:"ju367v8j"},32:{defaultClass:"ju367v8k"},36:{defaultClass:"ju367v8l"},44:{defaultClass:"ju367v8m"},64:{defaultClass:"ju367v8n"},"-1":{defaultClass:"ju367v8o"}}},position:{values:{absolute:{defaultClass:"ju367v8p"},fixed:{defaultClass:"ju367v8q"},relative:{defaultClass:"ju367v8r"}}},right:{values:{0:{defaultClass:"ju367v8s"}}},transition:{values:{default:{defaultClass:"ju367v8t"},transform:{defaultClass:"ju367v8u"}}},userSelect:{values:{none:{defaultClass:"ju367v8v"}}},width:{values:{1:{defaultClass:"ju367v8w"},2:{defaultClass:"ju367v8x"},4:{defaultClass:"ju367v8y"},8:{defaultClass:"ju367v8z"},12:{defaultClass:"ju367v90"},20:{defaultClass:"ju367v91"},24:{defaultClass:"ju367v92"},28:{defaultClass:"ju367v93"},30:{defaultClass:"ju367v94"},32:{defaultClass:"ju367v95"},34:{defaultClass:"ju367v96"},36:{defaultClass:"ju367v97"},40:{defaultClass:"ju367v98"},44:{defaultClass:"ju367v99"},48:{defaultClass:"ju367v9a"},54:{defaultClass:"ju367v9b"},60:{defaultClass:"ju367v9c"},200:{defaultClass:"ju367v9d"},full:{defaultClass:"ju367v9e"},max:{defaultClass:"ju367v9f"}}},backdropFilter:{values:{modalOverlay:{defaultClass:"ju367v9g"}}}}}),dw={colors:{accentColor:"var(--rk-colors-accentColor)",accentColorForeground:"var(--rk-colors-accentColorForeground)",actionButtonBorder:"var(--rk-colors-actionButtonBorder)",actionButtonBorderMobile:"var(--rk-colors-actionButtonBorderMobile)",actionButtonSecondaryBackground:"var(--rk-colors-actionButtonSecondaryBackground)",closeButton:"var(--rk-colors-closeButton)",closeButtonBackground:"var(--rk-colors-closeButtonBackground)",connectButtonBackground:"var(--rk-colors-connectButtonBackground)",connectButtonBackgroundError:"var(--rk-colors-connectButtonBackgroundError)",connectButtonInnerBackground:"var(--rk-colors-connectButtonInnerBackground)",connectButtonText:"var(--rk-colors-connectButtonText)",connectButtonTextError:"var(--rk-colors-connectButtonTextError)",connectionIndicator:"var(--rk-colors-connectionIndicator)",downloadBottomCardBackground:"var(--rk-colors-downloadBottomCardBackground)",downloadTopCardBackground:"var(--rk-colors-downloadTopCardBackground)",error:"var(--rk-colors-error)",generalBorder:"var(--rk-colors-generalBorder)",generalBorderDim:"var(--rk-colors-generalBorderDim)",menuItemBackground:"var(--rk-colors-menuItemBackground)",modalBackdrop:"var(--rk-colors-modalBackdrop)",modalBackground:"var(--rk-colors-modalBackground)",modalBorder:"var(--rk-colors-modalBorder)",modalText:"var(--rk-colors-modalText)",modalTextDim:"var(--rk-colors-modalTextDim)",modalTextSecondary:"var(--rk-colors-modalTextSecondary)",profileAction:"var(--rk-colors-profileAction)",profileActionHover:"var(--rk-colors-profileActionHover)",profileForeground:"var(--rk-colors-profileForeground)",selectedOptionBorder:"var(--rk-colors-selectedOptionBorder)",standby:"var(--rk-colors-standby)"},fonts:{body:"var(--rk-fonts-body)"},radii:{actionButton:"var(--rk-radii-actionButton)",connectButton:"var(--rk-radii-connectButton)",menuButton:"var(--rk-radii-menuButton)",modal:"var(--rk-radii-modal)",modalMobile:"var(--rk-radii-modalMobile)"},shadows:{connectButton:"var(--rk-shadows-connectButton)",dialog:"var(--rk-shadows-dialog)",profileDetailsAction:"var(--rk-shadows-profileDetailsAction)",selectedOption:"var(--rk-shadows-selectedOption)",selectedWallet:"var(--rk-shadows-selectedWallet)",walletLogo:"var(--rk-shadows-walletLogo)"},blurs:{modalOverlay:"var(--rk-blurs-modalOverlay)"}},YC0={shrink:"_12cbo8i6",shrinkSm:"_12cbo8i7"},XC0="_12cbo8i3 ju367v8r",um0={grow:"_12cbo8i4",growLg:"_12cbo8i5"};function ue({active:u,hover:e}){return[XC0,e&&um0[e],YC0[u]]}var mM=w.createContext(null);function em0(){var u;const{adapter:e}=(u=w.useContext(mM))!=null?u:{};if(!e)throw new Error("No authentication adapter found");return e}function ME(){var u;const e=w.useContext(mM);return(u=e==null?void 0:e.status)!=null?u:null}function $A(){const u=ME(),{isConnected:e}=Bt();return e?u&&(u==="loading"||u==="unauthenticated")?u:"connected":"disconnected"}function UA(){return typeof navigator<"u"&&/android/i.test(navigator.userAgent)}function tm0(){return typeof navigator<"u"&&/iPhone|iPod/.test(navigator.userAgent)}function nm0(){return typeof navigator<"u"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function ms(){return tm0()||nm0()}function we(){return UA()||ms()}var rm0="iekbcc0",im0={a:"iekbcca",blockquote:"iekbcc2",button:"iekbcc9",input:"iekbcc8 iekbcc5 iekbcc4",mark:"iekbcc6",ol:"iekbcc1",q:"iekbcc2",select:"iekbcc7 iekbcc5 iekbcc4",table:"iekbcc3",textarea:"iekbcc5 iekbcc4",ul:"iekbcc1"},am0=({reset:u,...e})=>{if(!u)return RC(e);const t=im0[u],n=RC(e);return VR(rm0,t,n)},R=w.forwardRef(({as:u="div",className:e,testId:t,...n},r)=>{const i={},a={};for(const s in n)RC.properties.has(s)?i[s]=n[s]:a[s]=n[s];const o=am0({reset:typeof u=="string"?u:"div",...i});return w.createElement(u,{className:VR(o,e),...a,"data-testid":t?`rk-${t.replace(/^rk-/,"")}`:void 0,ref:r})});R.displayName="Box";var bM=new Map,nh=new Map;async function gM(u){const e=nh.get(u);if(e)return e;const t=async()=>u().then(async r=>(bM.set(u,r),r)),n=t().catch(r=>t().catch(i=>{nh.delete(u)}));return nh.set(u,n),n}async function gr(...u){return await Promise.all(u.map(e=>typeof e=="function"?gM(e):e))}function om0(){const[,u]=w.useReducer(e=>e+1,0);return u}function WA(u){const e=typeof u=="function"?bM.get(u):void 0,t=om0();return w.useEffect(()=>{typeof u=="function"&&!e&&gM(u).then(t)},[u,e,t]),typeof u=="function"?e:u}function se({alt:u,background:e,borderColor:t,borderRadius:n,boxShadow:r,height:i,src:a,width:o,testId:s}){const f=WA(a),l=f&&/^http/.test(f),[c,d]=w.useReducer(()=>!0,!1);return F.createElement(R,{"aria-label":u,borderRadius:n,boxShadow:r,height:typeof i=="string"?i:void 0,overflow:"hidden",position:"relative",role:"img",style:{background:e,height:typeof i=="number"?i:void 0,width:typeof o=="number"?o:void 0},width:typeof o=="string"?o:void 0,testId:s},F.createElement(R,{...l?{"aria-hidden":!0,as:"img",onLoad:d,src:f}:{backgroundSize:"cover"},height:"full",position:"absolute",style:{touchCallout:"none",transition:"opacity .15s linear",userSelect:"none",...l?{opacity:c?1:0}:{backgroundImage:f?`url(${f})`:void 0,backgroundRepeat:"no-repeat",opacity:f?1:0}},width:"full"}),t?F.createElement(R,{...typeof t=="object"&&"custom"in t?{style:{borderColor:t.custom}}:{borderColor:t},borderRadius:n,borderStyle:"solid",borderWidth:"1",height:"full",position:"relative",width:"full"}):null)}var sm0="_1luule42",fm0="_1luule43",lm0=u=>w.useMemo(()=>`${u}_${Math.round(Math.random()*1e9)}`,[u]),P1=({height:u=21,width:e=21})=>{const t=lm0("spinner");return F.createElement("svg",{className:sm0,fill:"none",height:u,viewBox:"0 0 21 21",width:e,xmlns:"http://www.w3.org/2000/svg"},F.createElement("clipPath",{id:t},F.createElement("path",{d:"M10.5 3C6.35786 3 3 6.35786 3 10.5C3 14.6421 6.35786 18 10.5 18C11.3284 18 12 18.6716 12 19.5C12 20.3284 11.3284 21 10.5 21C4.70101 21 0 16.299 0 10.5C0 4.70101 4.70101 0 10.5 0C16.299 0 21 4.70101 21 10.5C21 11.3284 20.3284 12 19.5 12C18.6716 12 18 11.3284 18 10.5C18 6.35786 14.6421 3 10.5 3Z"})),F.createElement("foreignObject",{clipPath:`url(#${t})`,height:"21",width:"21",x:"0",y:"0"},F.createElement("div",{className:fm0})))},X0=["#FC5C54","#FFD95A","#E95D72","#6A87C8","#5FD0F3","#75C06B","#FFDD86","#5FC6D4","#FF949A","#FF8024","#9BA1A4","#EC66FF","#FF8CBC","#FF9A23","#C5DADB","#A8CE63","#71ABFF","#FFE279","#B6B1B6","#FF6780","#A575FF","#4D82FF","#FFB35A"],Ew=[{color:X0[0],emoji:"🌶"},{color:X0[1],emoji:"🤑"},{color:X0[2],emoji:"🐙"},{color:X0[3],emoji:"🫐"},{color:X0[4],emoji:"🐳"},{color:X0[0],emoji:"🤶"},{color:X0[5],emoji:"🌲"},{color:X0[6],emoji:"🌞"},{color:X0[7],emoji:"🐒"},{color:X0[8],emoji:"🐵"},{color:X0[9],emoji:"🦊"},{color:X0[10],emoji:"🐼"},{color:X0[11],emoji:"🦄"},{color:X0[12],emoji:"🐷"},{color:X0[13],emoji:"🐧"},{color:X0[8],emoji:"🦩"},{color:X0[14],emoji:"👽"},{color:X0[0],emoji:"🎈"},{color:X0[8],emoji:"🍉"},{color:X0[1],emoji:"🎉"},{color:X0[15],emoji:"🐲"},{color:X0[16],emoji:"🌎"},{color:X0[17],emoji:"🍊"},{color:X0[18],emoji:"🐭"},{color:X0[19],emoji:"🍣"},{color:X0[1],emoji:"🐥"},{color:X0[20],emoji:"👾"},{color:X0[15],emoji:"🥦"},{color:X0[0],emoji:"👹"},{color:X0[17],emoji:"🙀"},{color:X0[4],emoji:"⛱"},{color:X0[21],emoji:"⛵️"},{color:X0[17],emoji:"🥳"},{color:X0[8],emoji:"🤯"},{color:X0[22],emoji:"🤠"}];function cm0(u){let e=0;if(u.length===0)return e;for(let t=0;t{const[n,r]=w.useState(!1);w.useEffect(()=>{if(e){const o=new Image;o.src=e,o.onload=()=>r(!0)}},[e]);const{color:i,emoji:a}=w.useMemo(()=>dm0(u),[u]);return e?n?F.createElement(R,{backgroundSize:"cover",borderRadius:"full",position:"absolute",style:{backgroundImage:`url(${e})`,backgroundPosition:"center",height:t,width:t}}):F.createElement(R,{alignItems:"center",backgroundSize:"cover",borderRadius:"full",color:"modalText",display:"flex",justifyContent:"center",position:"absolute",style:{height:t,width:t}},F.createElement(P1,null)):F.createElement(R,{alignItems:"center",display:"flex",justifyContent:"center",overflow:"hidden",style:{...!e&&{backgroundColor:i},height:t,width:t}},a)},AM=Em0,yM=w.createContext(AM);function vM({address:u,imageUrl:e,loading:t,size:n}){const r=w.useContext(yM);return F.createElement(R,{"aria-hidden":!0,borderRadius:"full",overflow:"hidden",position:"relative",style:{height:`${n}px`,width:`${n}px`},userSelect:"none"},F.createElement(R,{alignItems:"center",borderRadius:"full",display:"flex",justifyContent:"center",overflow:"hidden",position:"absolute",style:{fontSize:`${Math.round(n*.55)}px`,height:`${n}px`,transform:t?"scale(0.72)":void 0,transition:".25s ease",transitionDelay:t?void 0:".1s",width:`${n}px`,willChange:"transform"},userSelect:"none"},F.createElement(r,{address:u,ensImage:e,size:n})),t&&F.createElement(R,{color:"accentColor",display:"flex",height:"full",position:"absolute",width:"full"},F.createElement(P1,{height:"100%",width:"100%"})))}var pw=()=>F.createElement("svg",{fill:"none",height:"7",width:"14",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M12.75 1.54001L8.51647 5.0038C7.77974 5.60658 6.72026 5.60658 5.98352 5.0038L1.75 1.54001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",xmlns:"http://www.w3.org/2000/svg"})),pm0={label:"اتصال المحفظة"},hm0={title:"ما هو المحفظة؟",description:"تُستخدم المحفظة لإرسال واستلام وتخزين وعرض الأصول الرقمية. إنها أيضاً طريقة جديدة لتسجيل الدخول، دون الحاجة إلى إنشاء حسابات وكلمات مرور جديدة على كل موقع.",digital_asset:{title:"دار لأصولك الرقمية",description:"تُستخدم المحافظ لإرسال واستلام وتخزين وعرض الأصول الرقمية مثل إيثيريوم والـ NFTs."},login:{title:"طريقة جديدة لتسجيل الدخول",description:"بدلاً من إنشاء حسابات وكلمات مرور جديدة على كل موقع، فقط قم بتوصيل محفظتك."},get:{label:"احصل على محفظة"},learn_more:{label:"تعلم المزيد"}},Cm0={label:"تحقق من حسابك",description:"لإنهاء الاتصال، يجب عليك توقيع رسالة في محفظتك للتحقق من أنك صاحب هذا الحساب.",message:{send:"إرسال الرسالة",preparing:"جارٍ تجهيز الرسالة...",cancel:"إلغاء",preparing_error:"خطأ في تجهيز الرسالة، يرجى المحاولة مرة أخرى!"},signature:{waiting:"انتظار التوقيع...",verifying:"جار التحقق من التوقيع...",signing_error:"خطأ في توقيع الرسالة، يرجى المحاولة مرة أخرى!",verifying_error:"خطأ في التحقق من التوقيع، يرجى المحاولة مرة أخرى!",oops_error:"عذرًا، حدث خطأ ما!"}},mm0={label:"اتصل",title:"اتصال بالمحفظة",new_to_ethereum:{description:"جديد في محافظ Ethereum؟",learn_more:{label:"تعلم المزيد"}},learn_more:{label:"أعرف أكثر"},recent:"الأخير",status:{opening:"جار فتح %{wallet}...",not_installed:"%{wallet} غير مثبت",not_available:"%{wallet} غير متاح",confirm:"تأكيد الاتصال في الامتداد"},secondary_action:{get:{description:"لا يوجد لديك %{wallet}؟",label:"احصل"},install:{label:"تثبيت"},retry:{label:"أعد المحاولة"}},walletconnect:{description:{full:"هل تحتاج إلى النافذة الرسمية لـ WalletConnect؟",compact:"هل تحتاج إلى النافذة لـ WalletConnect؟"},open:{label:"افتح"}}},bm0={title:"المسح باستخدام %{wallet}",fallback_title:"المسح باستخدام هاتفك"},gm0={recommended:"موصى به",other:"آخر",popular:"شائع",more:"المزيد",others:"الآخرين"},Am0={title:"احصل على محفظة",action:{label:"احصل"},mobile:{description:"محفظة الموبايل"},extension:{description:"ملحق المتصفح"},mobile_and_extension:{description:"محفظة موبايل وملحق"},mobile_and_desktop:{description:"محفظة الموبايل والكمبيوتر"},looking_for:{title:"ليست هذه هي ما تبحث عنه؟",mobile:{description:"حدد محفظة على الشاشة الرئيسية للبدء باستخدام موفر محفظة مختلف."},desktop:{compact_description:"حدد محفظة على الشاشة الرئيسية للبدء باستخدام موفر محفظة مختلف.",wide_description:"حدد محفظة على اليسار للبدء باستخدام موفر محفظة مختلف."}}},ym0={title:"ابدأ مع %{wallet}",short_title:"احصل على %{wallet}",mobile:{title:"%{wallet} للجوال",description:"استخدم محفظة الموبايل لاستكشاف عالم Ethereum.",download:{label:"احصل على التطبيق"}},extension:{title:"%{wallet} لـ %{browser}",description:"وصول لمحفظتك مباشرة من متصفح الويب المفضل لديك.",download:{label:"أضف إلى %{browser}"}},desktop:{title:"%{wallet} لـ %{platform}",description:"قم بالوصول إلى محفظتك بشكل أصلي من كمبيوترك القوي.",download:{label:"أضف إلى %{platform}"}}},vm0={title:"قم بالتثبيت %{wallet}",description:"استخدم هاتفك للتحميل على iOS أو Android",continue:{label:"استمر"}},Bm0={mobile:{connect:{label:"اتصل"},learn_more:{label:"تعلم المزيد"}},extension:{refresh:{label:"تحديث"},learn_more:{label:"تعلم المزيد"}},desktop:{connect:{label:"اتصل"},learn_more:{label:"تعلم المزيد"}}},Fm0={title:"تبديل الشبكات",wrong_network:"تم اكتشاف شبكة غير صحيحة، قم بالتبديل أو القطع للمتابعة.",confirm:"التأكيد في المحفظة",switching_not_supported:"محفظتك لا تدعم التبديل بين الشبكات من %{appName}. جرب التبديل بين الشبكات من داخل المحفظة بدلاً من ذلك.",switching_not_supported_fallback:"محفظتك لا تدعم تبديل الشبكات من هذا التطبيق. حاول تبديل الشبكات من داخل المحفظة بدلاً من ذلك.",disconnect:"قطع الاتصال",connected:"متصل"},Dm0={disconnect:{label:"قطع الاتصال"},copy_address:{label:"نسخ العنوان",copied:"تم النسخ!"},explorer:{label:"عرض المزيد على المستكشف"},transactions:{description:"%{appName} ستظهر المعاملات هنا...",description_fallback:"سوف تظهر معاملاتك هنا...",recent:{title:"المعاملات الأخيرة"},clear:{label:"مسح الكل"}}},wm0={argent:{qr_code:{step1:{description:"ضع أرجنت على شاشتك الرئيسية للوصول السريع إلى محفظتك.",title:"افتح تطبيق Argent"},step2:{description:"أنشئ محفظة واسم مستخدم، أو استورد محفظة موجودة بالفعل.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك.",title:"اضغط على زر فحص الكود الشريطي"}}},bifrost:{qr_code:{step1:{description:"نوصي بوضع محفظة Bifrost على الشاشة الرئيسية للوصول الأسرع.",title:"افتح تطبيق محفظة Bifrost"},step2:{description:"أنشئ أو استورد محفظة باستخدام عبارة الاستعادة الخاصة بك.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، سيظهر موجه الاتصال لك لتوصيل محفظتك.",title:"اضغط على زر المسح"}}},bitget:{qr_code:{step1:{description:"نوصي بوضع محفظة Bitget على الشاشة الرئيسية للوصول الأسرع.",title:"افتح تطبيق محفظة Bitget"},step2:{description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك موجه اتصال لتوصيل محفظتك.",title:"اضغط على زر الفحص"}},extension:{step1:{description:"نوصي بتثبيت محفظة Bitget على شريط المهام للوصول الأسرع إلى محفظتك.",title:"قم بتثبيت امتداد محفظة Bitget"},step2:{description:"تأكد من نسخ محفظتك احتياطيًا باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"أنشئ محفظة أو استورد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد.",title:"قم بتحديث متصفحك"}}},bitski:{extension:{step1:{description:"نوصي بتثبيت Bitski على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.",title:"قم بتثبيت امتداد Bitski"},step2:{description:"تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد إعداد المحفظة الخاصة بك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"تحديث المتصفح الخاص بك"}}},coin98:{qr_code:{step1:{description:"نوصي بوضع محفظة Coin98 على الشاشة الرئيسية لسرعة الوصول إلى محفظتك.",title:"افتح تطبيق محفظة Coin98"},step2:{description:"يمكنك بسهولة نسخ محفظتك الاحتياطي باستخدام ميزة النسخ الاحتياطي على هاتفك.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك مطالبة بالاتصال لتوصيل محفظتك.",title:"اضغط على زر WalletConnect"}},extension:{step1:{description:"انقر في الجزء العلوي الأيمن من المتصفح وثبت Coin98 Wallet لسهولة الوصول.",title:"قم بتثبيت امتداد Coin98 Wallet"},step2:{description:"أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل.",title:"أنشئ محفظة أو استورد محفظة"},step3:{description:"بمجرد إعداد Coin98 Wallet ، انقر أدناه لتحديث المتصفح وتحميل الامتداد.",title:"تحديث المتصفح الخاص بك"}}},coinbase:{qr_code:{step1:{description:"نوصي بوضع Coinbase Wallet على الشاشة الرئيسية لسهولة الوصول.",title:"افتح تطبيق Coinbase Wallet"},step2:{description:"يمكنك بسهولة النسخ الاحتياطي لمحفظتك باستخدام ميزة النسخ الاحتياطي السحابي.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك مطالبة بالاتصال لتوصيل محفظتك.",title:"اضغط على زر الفحص"}},extension:{step1:{description:"نوصي بتثبيت محفظة Coinbase على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.",title:"تثبيت امتداد محفظة Coinbase"},step2:{description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد المحفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"تحديث المتصفح الخاص بك"}}},core:{qr_code:{step1:{description:"نوصي بوضع Core على الشاشة الرئيسية للوصول السريع إلى محفظتك.",title:"افتح تطبيق Core"},step2:{description:"يمكنك بسهولة النسخ الاحتياطي لمحفظتك باستخدام ميزة النسخ الاحتياطي على هاتفك.",title:"إنشاء أو استيراد المحفظة"},step3:{description:"بعد الفحص، سيظهر لك موجه الاتصال لتوصيل محفظتك.",title:"اضغط على زر WalletConnect"}},extension:{step1:{description:"نوصي بتثبيت Core على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.",title:"قم بتثبيت امتداد Core"},step2:{description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد.",title:"تحديث متصفحك"}}},fox:{qr_code:{step1:{description:"نوصي بوضع FoxWallet على شاشتك الرئيسية للوصول الأسرع.",title:"افتح تطبيق FoxWallet"},step2:{description:"تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء محفظة أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك موجه الاتصال لتتمكن من اتصال محفظتك.",title:"اضغط على زر الفحص"}}},frontier:{qr_code:{step1:{description:"نوصي بوضع Frontier Wallet على شاشتك الرئيسية للوصول الأسرع.",title:"افتح تطبيق Frontier Wallet"},step2:{description:"تأكد من نسخ محفظتك احتياطيا باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك موجه الاتصال لربط محفظتك.",title:"اضغط على زر الفحص"}},extension:{step1:{description:"نوصي بتثبيت محفظة Frontier على شريط المهام للوصول الأسرع إلى محفظتك.",title:"تثبيت امتداد محفظة Frontier"},step2:{description:"تأكد من نسخ محفظتك احتياطيا باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"قم بتحديث المتصفح الخاص بك"}}},im_token:{qr_code:{step1:{title:"افتح تطبيق imToken",description:"ضع تطبيق imToken على الشاشة الرئيسية للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"قم بإنشاء محفظة جديدة أو استيراد واحدة موجودة."},step3:{title:"اضغط على أيقونة الماسح الضوئي في الزاوية العليا اليمنى",description:"اختر الاتصال الجديد، ثم امسح الرمز الشريطي وأكد الموجه للاتصال."}}},metamask:{qr_code:{step1:{title:"افتح تطبيق MetaMask",description:"نوصي بوضع MetaMask على الشاشة الرئيسية لديك للوصول بشكل أسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ الحفاظ على محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، ستظهر لك موجه اتصال لتوصيل محفظتك."}},extension:{step1:{title:"قم بتثبيت امتداد MetaMask",description:"نوصي بتثبيت MetaMask في شريط المهام للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"تحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}}},okx:{qr_code:{step1:{title:"افتح تطبيق محفظة OKX",description:"نوصي بوضع محفظة OKX على الشاشة الرئيسية للوصول الأسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، ستظهر لك مطالبة بالاتصال لتوصيل محفظتك."}},extension:{step1:{title:"قم بتثبيت امتداد محفظة OKX",description:"نوصي بتثبيت محفظة OKX على شريط المهام للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من حفظ نسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"قم بتحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},omni:{qr_code:{step1:{title:"افتح تطبيق Omni",description:"أضف Omni إلى شاشتك الرئيسية للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"إنشاء محفظة جديدة أو استيراد واحدة موجودة."},step3:{title:"اضغط على أيقونة الرمز الاستجابة السريعة وامسحها",description:"اضغط على الرمز QR على الشاشة الرئيسية الخاصة بك، امسح الرمز وأكد الموافقة للاتصال."}}},token_pocket:{qr_code:{step1:{title:"افتح تطبيق TokenPocket",description:"نوصي بوضع TokenPocket على الشاشة الرئيسية للوصول السريع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، ستظهر لك رسالة موجهة للاتصال بمحفظتك."}},extension:{step1:{title:"قم بتثبيت امتداد TokenPocket",description:"نوصي بتثبيت TokenPocket على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"قم بإنشاء محفظة أو استيراد محفظة",description:"تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"قم بتحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},trust:{qr_code:{step1:{title:"افتح تطبيق Trust Wallet",description:"ضع Trust Wallet على الشاشة الرئيسية للوصول السريع إلى محفظتك."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"أنشئ محفظة جديدة أو استورد واحدة موجودة."},step3:{title:"اضغط على WalletConnect في الإعدادات",description:"اختر الاتصال الجديد، ثم امسح الرمز الشريطي QR وأكد الموجه للاتصال."}},extension:{step1:{title:"قم بتثبيت امتداد Trust Wallet",description:"انقر في الجزء العلوي الأيمن من المتصفح وثبت Trust Wallet للوصول بسهولة."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"أنشئ محفظة جديدة أو استورد واحدة موجودة."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد Trust Wallet، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},uniswap:{qr_code:{step1:{title:"افتح تطبيق Uniswap",description:"أضف محفظة Uniswap إلى شاشة الرئيسية للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"قم بإنشاء محفظة جديدة أو استيراد واحدة موجودة."},step3:{title:"اضغط على الأيقونة QR واقرأ الرمز",description:"اضغط على أيقونة QR على الشاشة الرئيسية، قراءة الرمز وتأكيد الرسالة الموجهة للاتصال."}}},zerion:{qr_code:{step1:{title:"افتح تطبيق Zerion",description:"نوصي بوضع Zerion على شاشتك الرئيسية للوصول الأسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من حفظ نسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"اضغط على زر المسح",description:"بعد المسح، سوف يظهر لك نافذة الاتصال لتوصيل محفظتك."}},extension:{step1:{title:"تثبيت امتداد Zerion",description:"نوصي بتثبيت Zerion على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"قم بتحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},rainbow:{qr_code:{step1:{title:"افتح تطبيق Rainbow",description:"نوصي بوضع Rainbow على شاشة البداية للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء محفظة أو استيراد محفظة",description:"يمكنك عمل نسخة احتياطية بسهولة لمحفظتك باستخدام ميزة النسخ الاحتياطي على هاتفك."},step3:{title:"اضغط على الزر الماسح الضوئي",description:"بعد الفحص، سيظهر لك موجه اتصال لربط محفظتك."}}},enkrypt:{extension:{step1:{description:"نوصي بتثبيت محفظة Enkrypt على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.",title:"تثبيت امتداد محفظة Enkrypt"},step2:{description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"أنشئ أو استورد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"حدث المتصفح الخاص بك"}}},frame:{extension:{step1:{description:"نوصي بتعليق Frame على شريط المهام للوصول السريع إلى محفظتك.",title:"ثبت Frame والإضافة المصاحبة"},step2:{description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"أنشئ أو استورد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"حدث المتصفح الخاص بك"}}},one_key:{extension:{step1:{title:"قم بتثبيت امتداد محفظة OneKey",description:"نوصي بتثبيت محفظة OneKey على شريط المهام للوصول السريع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"تحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}}},phantom:{extension:{step1:{title:"قم بتثبيت امتداد Phantom",description:"نوصي بتثبيت Phantom على شريط المهام للوصول الأسهل إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ محفظتك احتياطيًا باستخدام طريقة آمنة. لا تشارك عبارة الاستعادة السرية الخاصة بك مع أي شخص."},step3:{title:"قم بتحديث المتصفح",description:"بمجرد إعداد المحفظة، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},rabby:{extension:{step1:{title:"ثبت امتداد Rabby",description:"نوصي بتثبيت Rabby على شريط المهام للوصول الأسرع إلى محفظتك."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"تأكد من نسخ محفظتك احتياطيًا باستخدام طريقة آمنة. لا تشارك العبارة السرية مع أي شخص."},step3:{title:"قم بتحديث المتصفح",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},safeheron:{extension:{step1:{title:"قم بتثبيت إضافة النواة",description:"نوصي بتثبيت Safeheron على شريط المهام الخاص بك للوصول السريع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ محفظتك بطريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"تحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},taho:{extension:{step1:{title:"تثبيت إضافة Taho",description:"نوصي بتثبيت Taho على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء محفظة أو استيراد محفظة",description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"تحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},talisman:{extension:{step1:{title:"تثبيت إضافة Talisman",description:"نوصي بتثبيت Talisman على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء محفظة Ethereum أو استيرادها",description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارة الاستعادة الخاصة بك مع أي شخص."},step3:{title:"قم بتحديث المستعرض الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المستعرض وتحميل الإضافة."}}},xdefi:{extension:{step1:{title:"قم بتثبيت إضافة XDEFI Wallet",description:"نوصي بتثبيت XDEFI Wallet على شريط المهام للوصول الأسرع إلى محفظتك."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك العبارة السرية الخاصة بك مع أي شخص."},step3:{title:"قم بتحديث المستعرض الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},zeal:{extension:{step1:{title:"قم بتثبيت امتداد Zeal",description:"نوصي بتثبيت Zeal في شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}}},safepal:{extension:{step1:{title:"قم بتثبيت صيغة SafePal Wallet",description:"انقر في أعلى يمين المتصفح وثبت صيغة SafePal Wallet لسهولة الوصول."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظة SafePal، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}},qr_code:{step1:{title:"افتح تطبيق محفظة SafePal",description:"ضع محفظة SafePal على شاشة الرئيسية لسهولة الوصول إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل."},step3:{title:"اضغط على WalletConnect في الإعدادات",description:"اختر الاتصال الجديد، ثم امسح الرمز الشريطي وأكد الموجه للاتصال."}}},desig:{extension:{step1:{title:"قم بتثبيت إضافة Desig",description:"نوصي بتثبيت Desig على شريط المهام الخاص بك للوصول الأسهل إلى محفظتك."},step2:{title:"إنشاء محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}}},subwallet:{extension:{step1:{title:"قم بتثبيت إضافة SubWallet",description:"نوصي بتثبيت SubWallet على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارة الاستعادة الخاصة بك مع أي شخص."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}},qr_code:{step1:{title:"افتح تطبيق SubWallet",description:"نوصي بوضع SubWallet على شاشة الرئيسية الخاصة بك للوصول الأسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك."}}},clv:{extension:{step1:{title:"قم بتثبيت إضافة CLV Wallet",description:"نوصي بتثبيت CLV Wallet على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}},qr_code:{step1:{title:"افتح تطبيق محفظة CLV",description:"نوصي بوضع محفظة CLV على الشاشة الرئيسية للوصول الأسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك."}}},okto:{qr_code:{step1:{title:"افتح تطبيق Okto",description:"أضف Okto إلى الشاشة الرئيسية للوصول السريع"},step2:{title:"أنشئ محفظة MPC",description:"أنشئ حسابًا وقم بإنشاء محفظة"},step3:{title:"اضغط على WalletConnect في الإعدادات",description:"اضغط على أيقونة فحص الشاشة في الجهة العليا اليمنى وأكد الإدخال للاتصال."}}},ledger:{desktop:{step1:{title:"افتح تطبيق Ledger Live",description:"نوصي بوضع Ledger Live على شاشة الرئيسية لديك لسرعة الوصول."},step2:{title:"قم بإعداد Ledger الخاص بك",description:"قم بإعداد Ledger جديد أو قم بالاتصال بواحد موجود ."},step3:{title:"اتصل",description:"بعد المسح، سوف يظهر لك نافذة الاتصال لتوصيل محفظتك."}},qr_code:{step1:{title:"افتح تطبيق Ledger Live",description:"نوصي بوضع Ledger Live على شاشة الرئيسية لديك لسرعة الوصول."},step2:{title:"قم بإعداد Ledger الخاص بك",description:"يمكنك إما المزامنة مع تطبيق سطح المكتب أو توصيل Ledger الخاص بك."},step3:{title:"مسح الرمز",description:"اضغط على WalletConnect ثم انتقل إلى الفحص. بعد المسح، سوف يظهر لك نافذة الاتصال لتوصيل محفظتك."}}}},hw={connect_wallet:pm0,intro:hm0,sign_in:Cm0,connect:mm0,connect_scan:bm0,connector_group:gm0,get:Am0,get_options:ym0,get_mobile:vm0,get_instructions:Bm0,chains:Fm0,profile:Dm0,wallet_connectors:wm0},xm0={label:"Connect Wallet"},km0={title:"What is a Wallet?",description:"A wallet is used to send, receive, store, and display digital assets. It's also a new way to log in, without needing to create new accounts and passwords on every website.",digital_asset:{title:"A Home for your Digital Assets",description:"Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs."},login:{title:"A New Way to Log In",description:"Instead of creating new accounts and passwords on every website, just connect your wallet."},get:{label:"Get a Wallet"},learn_more:{label:"Learn More"}},_m0={label:"Verify your account",description:"To finish connecting, you must sign a message in your wallet to verify that you are the owner of this account.",message:{send:"Sign message",preparing:"Preparing message...",cancel:"Cancel",preparing_error:"Error preparing message, please retry!"},signature:{waiting:"Waiting for signature...",verifying:"Verifying signature...",signing_error:"Error signing message, please retry!",verifying_error:"Error verifying signature, please retry!",oops_error:"Oops, something went wrong!"}},Sm0={label:"Connect",title:"Connect a Wallet",new_to_ethereum:{description:"New to Ethereum wallets?",learn_more:{label:"Learn More"}},learn_more:{label:"Learn more"},recent:"Recent",status:{opening:"Opening %{wallet}...",connecting:"Connecting",connect_mobile:"Continue in %{wallet}",not_installed:"%{wallet} is not installed",not_available:"%{wallet} is not available",confirm:"Confirm connection in the extension",confirm_mobile:"Accept connection request in the wallet"},secondary_action:{get:{description:"Don't have %{wallet}?",label:"GET"},install:{label:"INSTALL"},retry:{label:"RETRY"}},walletconnect:{description:{full:"Need the official WalletConnect modal?",compact:"Need the WalletConnect modal?"},open:{label:"OPEN"}}},Tm0={title:"Scan with %{wallet}",fallback_title:"Scan with your phone"},Pm0={recommended:"Recommended",other:"Other",popular:"Popular",more:"More",others:"Others"},Im0={title:"Get a Wallet",action:{label:"GET"},mobile:{description:"Mobile Wallet"},extension:{description:"Browser Extension"},mobile_and_extension:{description:"Mobile Wallet and Extension"},mobile_and_desktop:{description:"Mobile and Desktop Wallet"},looking_for:{title:"Not what you're looking for?",mobile:{description:"Select a wallet on the main screen to get started with a different wallet provider."},desktop:{compact_description:"Select a wallet on the main screen to get started with a different wallet provider.",wide_description:"Select a wallet on the left to get started with a different wallet provider."}}},Om0={title:"Get started with %{wallet}",short_title:"Get %{wallet}",mobile:{title:"%{wallet} for Mobile",description:"Use the mobile wallet to explore the world of Ethereum.",download:{label:"Get the app"}},extension:{title:"%{wallet} for %{browser}",description:"Access your wallet right from your favorite web browser.",download:{label:"Add to %{browser}"}},desktop:{title:"%{wallet} for %{platform}",description:"Access your wallet natively from your powerful desktop.",download:{label:"Add to %{platform}"}}},Rm0={title:"Install %{wallet}",description:"Scan with your phone to download on iOS or Android",continue:{label:"Continue"}},Nm0={mobile:{connect:{label:"Connect"},learn_more:{label:"Learn More"}},extension:{refresh:{label:"Refresh"},learn_more:{label:"Learn More"}},desktop:{connect:{label:"Connect"},learn_more:{label:"Learn More"}}},Mm0={title:"Switch Networks",wrong_network:"Wrong network detected, switch or disconnect to continue.",confirm:"Confirm in Wallet",switching_not_supported:"Your wallet does not support switching networks from %{appName}. Try switching networks from within your wallet instead.",switching_not_supported_fallback:"Your wallet does not support switching networks from this app. Try switching networks from within your wallet instead.",disconnect:"Disconnect",connected:"Connected"},jm0={disconnect:{label:"Disconnect"},copy_address:{label:"Copy Address",copied:"Copied!"},explorer:{label:"View more on explorer"},transactions:{description:"%{appName} transactions will appear here...",description_fallback:"Your transactions will appear here...",recent:{title:"Recent Transactions"},clear:{label:"Clear All"}}},zm0={argent:{qr_code:{step1:{description:"Put Argent on your home screen for faster access to your wallet.",title:"Open the Argent app"},step2:{description:"Create a wallet and username, or import an existing wallet.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the Scan QR button"}}},bifrost:{qr_code:{step1:{description:"We recommend putting Bifrost Wallet on your home screen for quicker access.",title:"Open the Bifrost Wallet app"},step2:{description:"Create or import a wallet using your recovery phrase.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}}},bitget:{qr_code:{step1:{description:"We recommend putting Bitget Wallet on your home screen for quicker access.",title:"Open the Bitget Wallet app"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}},extension:{step1:{description:"We recommend pinning Bitget Wallet to your taskbar for quicker access to your wallet.",title:"Install the Bitget Wallet extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},bitski:{extension:{step1:{description:"We recommend pinning Bitski to your taskbar for quicker access to your wallet.",title:"Install the Bitski extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},coin98:{qr_code:{step1:{description:"We recommend putting Coin98 Wallet on your home screen for faster access to your wallet.",title:"Open the Coin98 Wallet app"},step2:{description:"You can easily backup your wallet using our backup feature on your phone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the WalletConnect button"}},extension:{step1:{description:"Click at the top right of your browser and pin Coin98 Wallet for easy access.",title:"Install the Coin98 Wallet extension"},step2:{description:"Create a new wallet or import an existing one.",title:"Create or Import a wallet"},step3:{description:"Once you set up Coin98 Wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},coinbase:{qr_code:{step1:{description:"We recommend putting Coinbase Wallet on your home screen for quicker access.",title:"Open the Coinbase Wallet app"},step2:{description:"You can easily backup your wallet using the cloud backup feature.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}},extension:{step1:{description:"We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.",title:"Install the Coinbase Wallet extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},core:{qr_code:{step1:{description:"We recommend putting Core on your home screen for faster access to your wallet.",title:"Open the Core app"},step2:{description:"You can easily backup your wallet using our backup feature on your phone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the WalletConnect button"}},extension:{step1:{description:"We recommend pinning Core to your taskbar for quicker access to your wallet.",title:"Install the Core extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},fox:{qr_code:{step1:{description:"We recommend putting FoxWallet on your home screen for quicker access.",title:"Open the FoxWallet app"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}}},frontier:{qr_code:{step1:{description:"We recommend putting Frontier Wallet on your home screen for quicker access.",title:"Open the Frontier Wallet app"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}},extension:{step1:{description:"We recommend pinning Frontier Wallet to your taskbar for quicker access to your wallet.",title:"Install the Frontier Wallet extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},im_token:{qr_code:{step1:{title:"Open the imToken app",description:"Put imToken app on your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap Scanner Icon in top right corner",description:"Choose New Connection, then scan the QR code and confirm the prompt to connect."}}},metamask:{qr_code:{step1:{title:"Open the MetaMask app",description:"We recommend putting MetaMask on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}},extension:{step1:{title:"Install the MetaMask extension",description:"We recommend pinning MetaMask to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},okx:{qr_code:{step1:{title:"Open the OKX Wallet app",description:"We recommend putting OKX Wallet on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}},extension:{step1:{title:"Install the OKX Wallet extension",description:"We recommend pinning OKX Wallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},omni:{qr_code:{step1:{title:"Open the Omni app",description:"Add Omni to your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap the QR icon and scan",description:"Tap the QR icon on your home screen, scan the code and confirm the prompt to connect."}}},token_pocket:{qr_code:{step1:{title:"Open the TokenPocket app",description:"We recommend putting TokenPocket on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}},extension:{step1:{title:"Install the TokenPocket extension",description:"We recommend pinning TokenPocket to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},trust:{qr_code:{step1:{title:"Open the Trust Wallet app",description:"Put Trust Wallet on your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap WalletConnect in Settings",description:"Choose New Connection, then scan the QR code and confirm the prompt to connect."}},extension:{step1:{title:"Install the Trust Wallet extension",description:"Click at the top right of your browser and pin Trust Wallet for easy access."},step2:{title:"Create or Import a wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Refresh your browser",description:"Once you set up Trust Wallet, click below to refresh the browser and load up the extension."}}},uniswap:{qr_code:{step1:{title:"Open the Uniswap app",description:"Add Uniswap Wallet to your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap the QR icon and scan",description:"Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."}}},zerion:{qr_code:{step1:{title:"Open the Zerion app",description:"We recommend putting Zerion on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}},extension:{step1:{title:"Install the Zerion extension",description:"We recommend pinning Zerion to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},rainbow:{qr_code:{step1:{title:"Open the Rainbow app",description:"We recommend putting Rainbow on your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"You can easily backup your wallet using our backup feature on your phone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}}},enkrypt:{extension:{step1:{description:"We recommend pinning Enkrypt Wallet to your taskbar for quicker access to your wallet.",title:"Install the Enkrypt Wallet extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},frame:{extension:{step1:{description:"We recommend pinning Frame to your taskbar for quicker access to your wallet.",title:"Install Frame & the companion extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},one_key:{extension:{step1:{title:"Install the OneKey Wallet extension",description:"We recommend pinning OneKey Wallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},phantom:{extension:{step1:{title:"Install the Phantom extension",description:"We recommend pinning Phantom to your taskbar for easier access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},rabby:{extension:{step1:{title:"Install the Rabby extension",description:"We recommend pinning Rabby to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},safeheron:{extension:{step1:{title:"Install the Core extension",description:"We recommend pinning Safeheron to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},taho:{extension:{step1:{title:"Install the Taho extension",description:"We recommend pinning Taho to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},talisman:{extension:{step1:{title:"Install the Talisman extension",description:"We recommend pinning Talisman to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import an Ethereum Wallet",description:"Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},xdefi:{extension:{step1:{title:"Install the XDEFI Wallet extension",description:"We recommend pinning XDEFI Wallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},zeal:{extension:{step1:{title:"Install the Zeal extension",description:"We recommend pinning Zeal to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},safepal:{extension:{step1:{title:"Install the SafePal Wallet extension",description:"Click at the top right of your browser and pin SafePal Wallet for easy access."},step2:{title:"Create or Import a wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Refresh your browser",description:"Once you set up SafePal Wallet, click below to refresh the browser and load up the extension."}},qr_code:{step1:{title:"Open the SafePal Wallet app",description:"Put SafePal Wallet on your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap WalletConnect in Settings",description:"Choose New Connection, then scan the QR code and confirm the prompt to connect."}}},desig:{extension:{step1:{title:"Install the Desig extension",description:"We recommend pinning Desig to your taskbar for easier access to your wallet."},step2:{title:"Create a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},subwallet:{extension:{step1:{title:"Install the SubWallet extension",description:"We recommend pinning SubWallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}},qr_code:{step1:{title:"Open the SubWallet app",description:"We recommend putting SubWallet on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}}},clv:{extension:{step1:{title:"Install the CLV Wallet extension",description:"We recommend pinning CLV Wallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}},qr_code:{step1:{title:"Open the CLV Wallet app",description:"We recommend putting CLV Wallet on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}}},okto:{qr_code:{step1:{title:"Open the Okto app",description:"Add Okto to your home screen for quick access"},step2:{title:"Create an MPC Wallet",description:"Create an account and generate a wallet"},step3:{title:"Tap WalletConnect in Settings",description:"Tap the Scan QR icon at the top right and confirm the prompt to connect."}}},ledger:{desktop:{step1:{title:"Open the Ledger Live app",description:"We recommend putting Ledger Live on your home screen for quicker access."},step2:{title:"Set up your Ledger",description:"Set up a new Ledger or connect to an existing one."},step3:{title:"Connect",description:"A connection prompt will appear for you to connect your wallet."}},qr_code:{step1:{title:"Open the Ledger Live app",description:"We recommend putting Ledger Live on your home screen for quicker access."},step2:{title:"Set up your Ledger",description:"You can either sync with the desktop app or connect your Ledger."},step3:{title:"Scan the code",description:"Tap WalletConnect then Switch to Scanner. After you scan, a connection prompt will appear for you to connect your wallet."}}}},Cw={connect_wallet:xm0,intro:km0,sign_in:_m0,connect:Sm0,connect_scan:Tm0,connector_group:Pm0,get:Im0,get_options:Om0,get_mobile:Rm0,get_instructions:Nm0,chains:Mm0,profile:jm0,wallet_connectors:zm0},Lm0={label:"Conectar la billetera"},$m0={title:"¿Qué es una billetera?",description:"Una billetera se usa para enviar, recibir, almacenar y mostrar activos digitales. También es una nueva forma de iniciar sesión, sin necesidad de crear nuevas cuentas y contraseñas en cada sitio web.",digital_asset:{title:"Un hogar para tus Activos Digitales",description:"Las carteras se utilizan para enviar, recibir, almacenar y mostrar activos digitales como Ethereum y NFTs."},login:{title:"Una nueva forma de iniciar sesión",description:"En lugar de crear nuevas cuentas y contraseñas en cada sitio web, simplemente conecta tu cartera."},get:{label:"Obtener una billetera"},learn_more:{label:"Obtener más información"}},Um0={label:"Verifica tu cuenta",description:"Para terminar de conectar, debes firmar un mensaje en tu billetera para verificar que eres el propietario de esta cuenta.",message:{send:"Enviar mensaje",preparing:"Preparando mensaje...",cancel:"Cancelar",preparing_error:"Error al preparar el mensaje, ¡intenta de nuevo!"},signature:{waiting:"Esperando firma...",verifying:"Verificando firma...",signing_error:"Error al firmar el mensaje, ¡intenta de nuevo!",verifying_error:"Error al verificar la firma, ¡intenta de nuevo!",oops_error:"¡Ups! Algo salió mal."}},Wm0={label:"Conectar",title:"Conectar una billetera",new_to_ethereum:{description:"¿Eres nuevo en las billeteras Ethereum?",learn_more:{label:"Obtener más información"}},learn_more:{label:"Obtener más información"},recent:"Reciente",status:{opening:"Abriendo %{wallet}...",not_installed:"%{wallet} no está instalado",not_available:"%{wallet} no está disponible",confirm:"Confirma la conexión en la extensión"},secondary_action:{get:{description:"¿No tienes %{wallet}?",label:"OBTENER"},install:{label:"INSTALAR"},retry:{label:"REINTENTAR"}},walletconnect:{description:{full:"¿Necesitas el modal oficial de WalletConnect?",compact:"¿Necesitas el modal de WalletConnect?"},open:{label:"ABRIR"}}},qm0={title:"Escanea con %{wallet}",fallback_title:"Escanea con tu teléfono"},Hm0={recommended:"Recomendado",other:"Otro",popular:"Popular",more:"Más",others:"Otros"},Gm0={title:"Obtener una billetera",action:{label:"OBTENER"},mobile:{description:"Billetera Móvil"},extension:{description:"Extensión de navegador"},mobile_and_extension:{description:"Billetera móvil y extensión"},mobile_and_desktop:{description:"Billetera Móvil y de Escritorio"},looking_for:{title:"¿No es lo que estás buscando?",mobile:{description:"Seleccione una billetera en la pantalla principal para comenzar con un proveedor de billetera diferente."},desktop:{compact_description:"Seleccione una cartera en la pantalla principal para comenzar con un proveedor de cartera diferente.",wide_description:"Seleccione una cartera a la izquierda para comenzar con un proveedor de cartera diferente."}}},Vm0={title:"Comienza con %{wallet}",short_title:"Obtener %{wallet}",mobile:{title:"%{wallet} para móvil",description:"Use la billetera móvil para explorar el mundo de Ethereum.",download:{label:"Obtener la aplicación"}},extension:{title:"%{wallet} para %{browser}",description:"Acceda a su billetera directamente desde su navegador web favorito.",download:{label:"Añadir a %{browser}"}},desktop:{title:"%{wallet} para %{platform}",description:"Acceda a su billetera de forma nativa desde su potente escritorio.",download:{label:"Añadir a %{platform}"}}},Km0={title:"Instalar %{wallet}",description:"Escanee con su teléfono para descargar en iOS o Android",continue:{label:"Continuar"}},Qm0={mobile:{connect:{label:"Conectar"},learn_more:{label:"Obtener más información"}},extension:{refresh:{label:"Actualizar"},learn_more:{label:"Obtener más información"}},desktop:{connect:{label:"Conectar"},learn_more:{label:"Obtener más información"}}},Jm0={title:"Cambiar redes",wrong_network:"Se detectó la red incorrecta, cambia o desconéctate para continuar.",confirm:"Confirmar en la cartera",switching_not_supported:"Tu cartera no admite cambiar las redes desde %{appName}. Intenta cambiar las redes desde tu cartera.",switching_not_supported_fallback:"Su billetera no admite el cambio de redes desde esta aplicación. Intente cambiar de red desde dentro de su billetera en su lugar.",disconnect:"Desconectar",connected:"Conectado"},Zm0={disconnect:{label:"Desconectar"},copy_address:{label:"Copiar dirección",copied:"¡Copiado!"},explorer:{label:"Ver más en el explorador"},transactions:{description:"%{appName} transacciones aparecerán aquí...",description_fallback:"Tus transacciones aparecerán aquí...",recent:{title:"Transacciones recientes"},clear:{label:"Borrar Todo"}}},Ym0={argent:{qr_code:{step1:{description:"Coloque Argent en su pantalla de inicio para un acceso más rápido a su billetera.",title:"Abra la aplicación Argent"},step2:{description:"Cree una billetera y un nombre de usuario, o importe una billetera existente.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un mensaje de conexión para que conecte su billetera.",title:"Toque el botón Escanear QR"}}},bifrost:{qr_code:{step1:{description:"Recomendamos poner Bifrost Wallet en su pantalla de inicio para un acceso más rápido.",title:"Abra la aplicación Bifrost Wallet"},step2:{description:"Cree o importe una billetera usando su frase de recuperación.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que conecte su billetera.",title:"Toque el botón de escaneo"}}},bitget:{qr_code:{step1:{description:"Recomendamos colocar Bitget Wallet en su pantalla de inicio para un acceso más rápido.",title:"Abra la aplicación Bitget Wallet"},step2:{description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que pueda conectar su billetera.",title:"Toque el botón de escanear"}},extension:{step1:{description:"Recomendamos anclar Bitget Wallet a su barra de tareas para un acceso más rápido a su billetera.",title:"Instale la extensión de la Billetera Bitget"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión.",title:"Refrescar tu navegador"}}},bitski:{extension:{step1:{description:"Recomendamos anclar Bitski a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala la extensión Bitski"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configure su billetera, haga clic abajo para actualizar el navegador y cargar la extensión.",title:"Actualiza tu navegador"}}},coin98:{qr_code:{step1:{description:"Recomendamos poner Coin98 Wallet en la pantalla de inicio para un acceso más rápido a su billetera.",title:"Abra la aplicación Coin98 Wallet"},step2:{description:"Puede respaldar fácilmente su billetera utilizando nuestra función de respaldo en su teléfono.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que conecte su billetera.",title:"Toque el botón WalletConnect"}},extension:{step1:{description:"Haga clic en la parte superior derecha de su navegador y fije Coin98 Wallet para un fácil acceso.",title:"Instale la extensión Coin98 Wallet"},step2:{description:"Crea una nueva billetera o importa una existente.",title:"Crear o Importar una billetera"},step3:{description:"Una vez que configures Coin98 Wallet, haz clic a continuación para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},coinbase:{qr_code:{step1:{description:"Recomendamos poner Coinbase Wallet en tu pantalla de inicio para un acceso más rápido.",title:"Abre la aplicación de la Billetera Coinbase"},step2:{description:"Puedes respaldar tu billetera fácilmente utilizando la función de respaldo en la nube.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera.",title:"Pulsa el botón de escanear"}},extension:{step1:{description:"Te recomendamos anclar la Billetera Coinbase a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala la extensión de la Billetera Coinbase"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configure su billetera, haga clic abajo para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},core:{qr_code:{step1:{description:"Recomendamos poner Core en su pantalla de inicio para un acceso más rápido a su billetera.",title:"Abra la aplicación Core"},step2:{description:"Puedes respaldar fácilmente tu billetera utilizando nuestra función de respaldo en tu teléfono.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera.",title:"Toque el botón WalletConnect"}},extension:{step1:{description:"Recomendamos fijar Core a tu barra de tareas para acceder más rápido a tu billetera.",title:"Instala la extensión Core"},step2:{description:"Asegúrate de hacer una copia de seguridad de tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},fox:{qr_code:{step1:{description:"Recomendamos poner FoxWallet en tu pantalla de inicio para un acceso más rápido.",title:"Abre la aplicación FoxWallet"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá una solicitud de conexión para que conectes tu billetera.",title:"Toca el botón de escanear"}}},frontier:{qr_code:{step1:{description:"Recomendamos poner la Billetera Frontier en tu pantalla principal para un acceso más rápido.",title:"Abre la aplicación de la Billetera Frontier"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un mensaje para que conectes tu billetera.",title:"Haz clic en el botón de escaneo"}},extension:{step1:{description:"Recomendamos anclar la billetera Frontier a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala la extensión de la billetera Frontier"},step2:{description:"Asegúrese de hacer una copia de seguridad de su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configure su billetera, haga clic a continuación para actualizar el navegador y cargar la extensión.",title:"Actualizar tu navegador"}}},im_token:{qr_code:{step1:{title:"Abrir la aplicación imToken",description:"Pon la aplicación imToken en tu pantalla de inicio para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Toca el Icono del Escáner en la esquina superior derecha",description:"Elija Nueva Conexión, luego escanee el código QR y confirme el aviso para conectar."}}},metamask:{qr_code:{step1:{title:"Abre la aplicación MetaMask",description:"Recomendamos colocar MetaMask en tu pantalla de inicio para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Toca el botón de escanear",description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}},extension:{step1:{title:"Instala la extensión MetaMask",description:"Recomendamos anclar MetaMask a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de hacer una copia de seguridad de tu billetera usando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Refresca tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},okx:{qr_code:{step1:{title:"Abre la aplicación OKX Wallet",description:"Recomendamos colocar OKX Wallet en tu pantalla de inicio para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera usando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Toca el botón de escanear",description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}},extension:{step1:{title:"Instala la extensión de Billetera OKX",description:"Recomendamos anclar la Billetera OKX a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera usando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Refresca tu navegador",description:"Una vez que configure su billetera, haga clic abajo para actualizar el navegador y cargar la extensión."}}},omni:{qr_code:{step1:{title:"Abra la aplicación Omni",description:"Agregue Omni a su pantalla de inicio para un acceso más rápido a su billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crear una nueva billetera o importar una existente."},step3:{title:"Toque el icono de QR y escanee",description:"Toca el icono QR en tu pantalla principal, escanea el código y confirma el aviso para conectar."}}},token_pocket:{qr_code:{step1:{title:"Abre la aplicación TokenPocket",description:"Recomendamos colocar TokenPocket en tu pantalla principal para un acceso más rápido."},step2:{title:"Crear o importar una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Toca el botón de escaneo",description:"Después de escanear, aparecerá una solicitud de conexión para que puedas conectar tu billetera."}},extension:{step1:{title:"Instala la extensión TokenPocket",description:"Recomendamos anclar TokenPocket a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para actualizar el navegador y cargar la extensión."}}},trust:{qr_code:{step1:{title:"Abre la aplicación Trust Wallet",description:"Ubica Trust Wallet en tu pantalla de inicio para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Toca WalletConnect en Configuraciones",description:"Elige Nueva Conexión, luego escanea el código QR y confirma el aviso para conectar."}},extension:{step1:{title:"Instala la extensión de Trust Wallet",description:"Haz clic en la parte superior derecha de tu navegador y fija Trust Wallet para un fácil acceso."},step2:{title:"Crea o Importa una billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Refresca tu navegador",description:"Una vez que configures Trust Wallet, haz clic abajo para refrescar el navegador y cargar la extensión."}}},uniswap:{qr_code:{step1:{title:"Abre la aplicación Uniswap",description:"Agrega la billetera Uniswap a tu pantalla de inicio para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Toca el icono QR y escanea",description:"Toca el icono QR en tu pantalla de inicio, escanea el código y confirma el prompt para conectar."}}},zerion:{qr_code:{step1:{title:"Abre la aplicación Zerion",description:"Recomendamos poner Zerion en tu pantalla de inicio para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de hacer una copia de seguridad de tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Toca el botón de escanear",description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}},extension:{step1:{title:"Instala la extensión Zerion",description:"Recomendamos anclar Zerion a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera usando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para actualizar el navegador y cargar la extensión."}}},rainbow:{qr_code:{step1:{title:"Abre la aplicación Rainbow",description:"Recomendamos poner Rainbow en tu pantalla de inicio para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Puedes respaldar fácilmente tu billetera usando nuestra función de respaldo en tu teléfono."},step3:{title:"Toca el botón de escanear",description:"Después de escanear, aparecerá una solicitud de conexión para que conectes tu billetera."}}},enkrypt:{extension:{step1:{description:"Recomendamos anclar la Billetera Enkrypt a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala la extensión de Billetera Enkrypt"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},frame:{extension:{step1:{description:"Recomendamos anclar Frame a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala Frame y la extensión complementaria"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},one_key:{extension:{step1:{title:"Instale la extensión de Billetera OneKey",description:"Recomendamos anclar la Billetera OneKey a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera usando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para actualizar el navegador y cargar la extensión."}}},phantom:{extension:{step1:{title:"Instala la extensión Phantom",description:"Recomendamos fijar Phantom a tu barra de tareas para un acceso más fácil a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera usando un método seguro. Nunca comparta su frase secreta de recuperación con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},rabby:{extension:{step1:{title:"Instala la extensión Rabby",description:"Recomendamos anclar Rabby a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de hacer una copia de seguridad de tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para actualizar el navegador y cargar la extensión."}}},safeheron:{extension:{step1:{title:"Instala la extensión Core",description:"Recomendamos anclar Safeheron a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Refresca tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},taho:{extension:{step1:{title:"Instala la extensión de Taho",description:"Recomendamos anclar Taho a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crea o Importa una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Refresca tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},talisman:{extension:{step1:{title:"Instala la extensión de Talisman",description:"Recomendamos anclar Talisman a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crea o importa una billetera Ethereum",description:"Asegúrate de respaldar tu billetera usando un método seguro. Nunca compartas tu frase de recuperación con nadie."},step3:{title:"Recarga tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},xdefi:{extension:{step1:{title:"Instala la extensión de la billetera XDEFI",description:"Recomendamos anclar XDEFI Wallet a su barra de tareas para un acceso más rápido a su billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Actualice su navegador",description:"Una vez que configure su billetera, haga clic abajo para actualizar el navegador y cargar la extensión."}}},zeal:{extension:{step1:{title:"Instale la extensión Zeal",description:"Recomendamos anclar Zeal a su barra de tareas para un acceso más rápido a su billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Refrescar tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión."}}},safepal:{extension:{step1:{title:"Instale la extensión de la billetera SafePal",description:"Haga clic en la esquina superior derecha de su navegador y ancle SafePal Wallet para un fácil acceso."},step2:{title:"Crear o Importar una billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Refrescar tu navegador",description:"Una vez que configure la Billetera SafePal, haga clic abajo para refrescar el navegador y cargar la extensión."}},qr_code:{step1:{title:"Abra la aplicación Billetera SafePal",description:"Coloque la Billetera SafePal en su pantalla de inicio para un acceso más rápido a su billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Toca WalletConnect en Configuraciones",description:"Elija Nueva Conexión, luego escanee el código QR y confirme el aviso para conectar."}}},desig:{extension:{step1:{title:"Instala la extensión Desig",description:"Recomendamos anclar Desig a tu barra de tareas para acceder más fácilmente a tu cartera."},step2:{title:"Crea una Cartera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Refrescar tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión."}}},subwallet:{extension:{step1:{title:"Instala la extensión SubWallet",description:"Recomendamos anclar SubWallet a tu barra de tareas para acceder a tu cartera más rápidamente."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera usando un método seguro. Nunca compartas tu frase de recuperación con nadie."},step3:{title:"Refrescar tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión."}},qr_code:{step1:{title:"Abre la aplicación SubWallet",description:"Recomendamos colocar SubWallet en tu pantalla principal para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Toque el botón de escaneo",description:"Después de escanear, aparecerá un mensaje de conexión para que conecte su billetera."}}},clv:{extension:{step1:{title:"Instala la extensión CLV Wallet",description:"Recomendamos anclar la billetera CLV a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Refrescar tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión."}},qr_code:{step1:{title:"Abra la aplicación CLV Wallet",description:"Recomendamos colocar la billetera CLV en tu pantalla de inicio para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Toque el botón de escaneo",description:"Después de escanear, aparecerá un mensaje de conexión para que conecte su billetera."}}},okto:{qr_code:{step1:{title:"Abra la aplicación Okto",description:"Agrega Okto a tu pantalla de inicio para un acceso rápido"},step2:{title:"Crea una billetera MPC",description:"Crea una cuenta y genera una billetera"},step3:{title:"Toca WalletConnect en Configuraciones",description:"Toca el icono de Escanear QR en la parte superior derecha y confirma el mensaje para conectar."}}},ledger:{desktop:{step1:{title:"Abra la aplicación Ledger Live",description:"Recomendamos poner Ledger Live en su pantalla de inicio para un acceso más rápido."},step2:{title:"Configure su Ledger",description:"Configure un nuevo Ledger o conéctese a uno existente."},step3:{title:"Conectar",description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}},qr_code:{step1:{title:"Abra la aplicación Ledger Live",description:"Recomendamos poner Ledger Live en su pantalla de inicio para un acceso más rápido."},step2:{title:"Configure su Ledger",description:"Puedes sincronizar con la aplicación de escritorio o conectar tu Ledger."},step3:{title:"Escanea el código",description:"Toca WalletConnect y luego cambia a Scanner. Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}}}},mw={connect_wallet:Lm0,intro:$m0,sign_in:Um0,connect:Wm0,connect_scan:qm0,connector_group:Hm0,get:Gm0,get_options:Vm0,get_mobile:Km0,get_instructions:Qm0,chains:Jm0,profile:Zm0,wallet_connectors:Ym0},Xm0={label:"Connecter le portefeuille"},ub0={title:"Qu'est-ce qu'un portefeuille?",description:"Un portefeuille est utilisé pour envoyer, recevoir, stocker et afficher des actifs numériques. C'est aussi une nouvelle façon de se connecter, sans avoir besoin de créer de nouveaux comptes et mots de passe sur chaque site.",digital_asset:{title:"Un foyer pour vos actifs numériques",description:"Les portefeuilles sont utilisés pour envoyer, recevoir, stocker et afficher des actifs numériques comme Ethereum et les NFTs."},login:{title:"Une nouvelle façon de se connecter",description:"Au lieu de créer de nouveaux comptes et mots de passe sur chaque site Web, connectez simplement votre portefeuille."},get:{label:"Obtenir un portefeuille"},learn_more:{label:"En savoir plus"}},eb0={label:"Vérifiez votre compte",description:"Pour terminer la connexion, vous devez signer un message dans votre portefeuille pour vérifier que vous êtes le propriétaire de ce compte.",message:{send:"Envoyer le message",preparing:"Préparation du message...",cancel:"Annuler",preparing_error:"Erreur lors de la préparation du message, veuillez réessayer!"},signature:{waiting:"En attente de la signature...",verifying:"Vérification de la signature...",signing_error:"Erreur lors de la signature du message, veuillez réessayer!",verifying_error:"Erreur lors de la vérification de la signature, veuillez réessayer!",oops_error:"Oups, quelque chose a mal tourné!"}},tb0={label:"Connecter",title:"Connecter un portefeuille",new_to_ethereum:{description:"Nouveau aux portefeuilles Ethereum?",learn_more:{label:"En savoir plus"}},learn_more:{label:"En savoir plus"},recent:"Récents",status:{opening:"Ouverture %{wallet}...",not_installed:"%{wallet} n'est pas installé",not_available:"%{wallet} n'est pas disponible",confirm:"Confirmez la connexion dans l'extension"},secondary_action:{get:{description:"Vous n'avez pas de %{wallet}?",label:"OBTENIR"},install:{label:"INSTALLER"},retry:{label:"RÉESSAYER"}},walletconnect:{description:{full:"Vous avez besoin du modal officiel de WalletConnect ?",compact:"Besoin du modal de WalletConnect ?"},open:{label:"OUVRIR"}}},nb0={title:"Scannez avec %{wallet}",fallback_title:"Scannez avec votre téléphone"},rb0={recommended:"Recommandé",other:"Autre",popular:"Populaire",more:"Plus",others:"Autres"},ib0={title:"Obtenez un portefeuille",action:{label:"OBTENIR"},mobile:{description:"Portefeuille mobile"},extension:{description:"Extension de navigateur"},mobile_and_extension:{description:"Portefeuille mobile et extension"},mobile_and_desktop:{description:"Portefeuille mobile et de bureau"},looking_for:{title:"Ce n'est pas ce que vous cherchez ?",mobile:{description:"Sélectionnez un portefeuille sur l'écran principal pour commencer avec un autre fournisseur de portefeuille."},desktop:{compact_description:"Sélectionnez un portefeuille sur l'écran principal pour commencer avec un autre fournisseur de portefeuille.",wide_description:"Sélectionnez un portefeuille sur la gauche pour commencer avec un autre fournisseur de portefeuille."}}},ab0={title:"Commencez avec %{wallet}",short_title:"Obtenez %{wallet}",mobile:{title:"%{wallet} pour mobile",description:"Utilisez le portefeuille mobile pour explorer le monde d'Ethereum.",download:{label:"Obtenez l'application"}},extension:{title:"%{wallet} pour %{browser}",description:"Accédez à votre portefeuille directement depuis votre navigateur web préféré.",download:{label:"Ajouter à %{browser}"}},desktop:{title:"%{wallet} pour %{platform}",description:"Accédez à votre portefeuille nativement depuis votre puissant ordinateur de bureau.",download:{label:"Ajouter à %{platform}"}}},ob0={title:"Installer %{wallet}",description:"Scannez avec votre téléphone pour télécharger sur iOS ou Android",continue:{label:"Continuer"}},sb0={mobile:{connect:{label:"Connecter"},learn_more:{label:"En savoir plus"}},extension:{refresh:{label:"Rafraîchir"},learn_more:{label:"En savoir plus"}},desktop:{connect:{label:"Connecter"},learn_more:{label:"En savoir plus"}}},fb0={title:"Changer de Réseaux",wrong_network:"Mauvais réseau détecté, changez ou déconnectez-vous pour continuer.",confirm:"Confirmer dans le portefeuille",switching_not_supported:"Votre portefeuille ne supporte pas le changement de réseaux depuis %{appName}. Essayez de changer de réseau depuis votre portefeuille.",switching_not_supported_fallback:"Votre portefeuille ne prend pas en charge le changement de réseaux à partir de cette application. Essayez de changer de réseau à partir de votre portefeuille à la place.",disconnect:"Déconnecter",connected:"Connecté"},lb0={disconnect:{label:"Déconnecter"},copy_address:{label:"Copier l'adresse",copied:"Copié !"},explorer:{label:"Voir plus sur l'explorateur"},transactions:{description:"%{appName} transactions apparaîtront ici...",description_fallback:"Vos transactions apparaîtront ici...",recent:{title:"Transactions Récentes"},clear:{label:"Tout supprimer"}}},cb0={argent:{qr_code:{step1:{description:"Mettez Argent sur votre écran d'accueil pour un accès plus rapide à votre portefeuille.",title:"Ouvrez l'application Argent"},step2:{description:"Créez un portefeuille et un nom d'utilisateur, ou importez un portefeuille existant.",title:"Créer ou Importer un Portefeuille"},step3:{description:"Après avoir numérisé, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton Scan QR"}}},bifrost:{qr_code:{step1:{description:"Nous vous recommandons de mettre le portefeuille Bifrost sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application Bifrost Wallet"},step2:{description:"Créez ou importez un portefeuille en utilisant votre phrase de récupération.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après votre scan, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}}},bitget:{qr_code:{step1:{description:"Nous vous recommandons de placer Bitget Wallet sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application Bitget Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après le scan, une incitation de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}},extension:{step1:{description:"Nous vous recommandons d'épingler Bitget Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension de portefeuille Bitget"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créez ou Importez un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},bitski:{extension:{step1:{description:"Nous recommandons d'épingler Bitski à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Bitski"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},coin98:{qr_code:{step1:{description:"Nous vous recommandons de placer Coin98 Wallet sur votre écran d'accueil pour un accès plus rapide à votre portefeuille.",title:"Ouvrez l'application Coin98 Wallet"},step2:{description:"Vous pouvez facilement sauvegarder votre portefeuille en utilisant notre fonction de sauvegarde sur votre téléphone.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après que vous ayez scanné, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton WalletConnect"}},extension:{step1:{description:"Cliquez en haut à droite de votre navigateur et épinglez Coin98 Wallet pour un accès facile.",title:"Installez l'extension Coin98 Wallet"},step2:{description:"Créez un nouveau portefeuille ou importez-en un existant.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré Coin98 Wallet, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},coinbase:{qr_code:{step1:{description:"Nous recommandons de placer Coinbase Wallet sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application Coinbase Wallet"},step2:{description:"Vous pouvez facilement sauvegarder votre portefeuille en utilisant la fonction de sauvegarde cloud.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après avoir scanné, une invite de connexion s'affichera pour que vous puissiez connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}},extension:{step1:{description:"Nous recommandons d'épingler Coinbase Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Coinbase Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sûre. Ne partagez jamais votre phrase secrète avec quiconque.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.",title:"Actualisez votre navigateur"}}},core:{qr_code:{step1:{description:"Nous recommandons de placer Core sur votre écran d'accueil pour un accès plus rapide à votre portefeuille.",title:"Ouvrez l'application Core"},step2:{description:"Vous pouvez facilement sauvegarder votre portefeuille en utilisant notre fonction de sauvegarde sur votre téléphone.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après avoir scanné, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton WalletConnect"}},extension:{step1:{description:"Nous recommandons d'épingler Core à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Core"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque.",title:"Créez ou Importer un Portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},fox:{qr_code:{step1:{description:"Nous recommandons de mettre FoxWallet sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application FoxWallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après avoir scanné, une invitation à la connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}}},frontier:{qr_code:{step1:{description:"Nous vous recommandons de placer le portefeuille Frontier sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application Frontier Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après avoir scanné, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}},extension:{step1:{description:"Nous recommandons d'épingler Frontier Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Frontier Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créez ou importez un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},im_token:{qr_code:{step1:{title:"Ouvrez l'application imToken",description:"Placez l'application imToken sur votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou importez un portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant ."},step3:{title:"Appuyez sur l'icône du scanner dans le coin supérieur droit",description:"Choisissez Nouvelle Connexion, puis scannez le code QR et confirmez l'invite pour vous connecter."}}},metamask:{qr_code:{step1:{title:"Ouvrez l'application MetaMask",description:"Nous vous recommandons de mettre MetaMask sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un Portefeuille",description:"Veillez à sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Appuyez sur le bouton de scan",description:"Après avoir scanné, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}},extension:{step1:{title:"Installez l’extension de MetaMask",description:"Nous recommandons d'épingler MetaMask à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},okx:{qr_code:{step1:{title:"Ouvrez l'application OKX Wallet",description:"Nous recommandons de mettre OKX Wallet sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Appuyez sur le bouton de numérisation",description:"Après avoir numérisé, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}},extension:{step1:{title:"Installez l'extension de portefeuille OKX",description:"Nous vous recommandons d'épingler le portefeuille OKX à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}}},omni:{qr_code:{step1:{title:"Ouvrez l'application Omni",description:"Ajoutez Omni à votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant."},step3:{title:"Touchez l'icône QR et scannez",description:"Appuyez sur l'icône QR sur votre écran d'accueil, scannez le code et confirmez l'invite pour vous connecter."}}},token_pocket:{qr_code:{step1:{title:"Ouvrez l'application TokenPocket",description:"Nous vous recommandons de mettre TokenPocket sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créez ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille à l'aide d'une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Appuyez sur le bouton de scan",description:"Après votre scan, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}},extension:{step1:{title:"Installez l'extension TokenPocket",description:"Nous recommandons d'épingler TokenPocket à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},trust:{qr_code:{step1:{title:"Ouvrez l'application Trust Wallet",description:"Placez Trust Wallet sur votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Créer un nouveau portefeuille ou en importer un existant."},step3:{title:"Appuyez sur WalletConnect dans les paramètres",description:"Choisissez Nouvelle Connexion, puis scannez le code QR et confirmez l'invite pour vous connecter."}},extension:{step1:{title:"Installez l'extension Trust Wallet",description:"Cliquez en haut à droite de votre navigateur et épinglez Trust Wallet pour un accès facile."},step2:{title:"Créer ou importer un portefeuille",description:"Créer un nouveau portefeuille ou en importer un existant."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré Trust Wallet, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},uniswap:{qr_code:{step1:{title:"Ouvrez l'application Uniswap",description:"Ajoutez Uniswap Wallet à votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou importez un portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant."},step3:{title:"Tapez sur l'icône QR et scannez",description:"Touchez l'icône QR sur votre écran d'accueil, scannez le code et confirmez l'invite pour vous connecter."}}},zerion:{qr_code:{step1:{title:"Ouvrez l'application Zerion",description:"Nous vous recommandons de mettre Zerion sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne."},step3:{title:"Appuyez sur le bouton de scan",description:"Une fois que vous avez scanné, une invite de connexion apparaîtra pour que vous puissiez connecter votre portefeuille."}},extension:{step1:{title:"Installer l'extension Zerion",description:"Nous recommandons d'épingler Zerion à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou Importez un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},rainbow:{qr_code:{step1:{title:"Ouvre l'application Rainbow",description:"Nous vous recommandons de mettre Rainbow sur votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou Importez un portefeuille",description:"Vous pouvez facilement sauvegarder votre portefeuille en utilisant notre fonction de sauvegarde sur votre téléphone."},step3:{title:"Appuyez sur le bouton de scan",description:"Après avoir scanné, une invite de connexion apparaîtra pour que vous connectiez votre portefeuille."}}},enkrypt:{extension:{step1:{description:"Nous vous recommandons d'épingler Enkrypt Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Enkrypt Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quelqu'un.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l’extension.",title:"Rafraîchissez votre navigateur"}}},frame:{extension:{step1:{description:"Nous vous recommandons d'épingler Frame à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez Frame & l'extension complémentaire"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille à l'aide d'une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},one_key:{extension:{step1:{title:"Installez l'extension OneKey Wallet",description:"Nous vous recommandons d'épingler OneKey Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},phantom:{extension:{step1:{title:"Installez l'extension Phantom",description:"Nous vous recommandons d'épingler Phantom à votre barre des tâches pour un accès plus facile à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase de récupération secrète avec personne."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},rabby:{extension:{step1:{title:"Installez l'extension Rabby",description:"Nous recommandons d'épingler Rabby à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Actualisez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}}},safeheron:{extension:{step1:{title:"Installez l'extension Core",description:"Nous recommandons d'épingler Safeheron à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quelqu'un."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},taho:{extension:{step1:{title:"Installez l'extension Taho",description:"Nous vous recommandons d'épingler Taho à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou Importez un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quelqu'un."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},talisman:{extension:{step1:{title:"Installez l'extension Talisman",description:"Nous vous recommandons d'épingler Talisman à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou importer un portefeuille Ethereum",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase de récupération avec personne."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},xdefi:{extension:{step1:{title:"Installez l'extension du portefeuille XDEFI",description:"Nous vous recommandons d'épingler XDEFI Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},zeal:{extension:{step1:{title:"Installez l'extension Zeal",description:"Nous vous recommandons d'épingler Zeal à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}}},safepal:{extension:{step1:{title:"Installez l'extension SafePal Wallet",description:"Cliquez en haut à droite de votre navigateur et épinglez SafePal Wallet pour un accès facile."},step2:{title:"Créer ou Importer un portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré SafePal Wallet, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}},qr_code:{step1:{title:"Ouvrez l'application SafePal Wallet",description:"Mettez SafePal Wallet sur votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant."},step3:{title:"Appuyez sur WalletConnect dans les paramètres",description:"Choisissez Nouvelle Connexion, puis scannez le code QR et confirmez l'invite pour vous connecter."}}},desig:{extension:{step1:{title:"Installez l'extension Desig",description:"Nous vous recommandons d'épingler Desig à votre barre des tâches pour un accès plus facile à votre portefeuille."},step2:{title:"Créer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}}},subwallet:{extension:{step1:{title:"Installez l'extension SubWallet",description:"Nous vous recommandons d'épingler SubWallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase de récupération avec personne."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}},qr_code:{step1:{title:"Ouvrez l'application SubWallet",description:"Nous vous recommandons de mettre SubWallet sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Appuyez sur le bouton de scan",description:"Après avoir numérisé, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}}},clv:{extension:{step1:{title:"Installez l'extension CLV Wallet",description:"Nous vous recommandons d'épingler CLV Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}},qr_code:{step1:{title:"Ouvrez l'application CLV Wallet",description:"Nous vous recommandons de mettre CLV Wallet sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Appuyez sur le bouton de scan",description:"Après avoir numérisé, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}}},okto:{qr_code:{step1:{title:"Ouvrez l'application Okto",description:"Ajoutez Okto à votre écran d'accueil pour un accès rapide"},step2:{title:"Créer un portefeuille MPC",description:"Créez un compte et générez un portefeuille"},step3:{title:"Appuyez sur WalletConnect dans les paramètres",description:"Touchez l'icône 'Scan QR' en haut à droite et confirmez l'invite pour vous connecter."}}},ledger:{desktop:{step1:{title:"Ouvrez l'application Ledger Live",description:"Nous vous recommandons de mettre Ledger Live sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Configurez votre Ledger",description:"Configurez un nouveau Ledger ou connectez-vous à un existant."},step3:{title:"Connecter",description:"Une fois que vous avez scanné, une invite de connexion apparaîtra pour que vous puissiez connecter votre portefeuille."}},qr_code:{step1:{title:"Ouvrez l'application Ledger Live",description:"Nous vous recommandons de mettre Ledger Live sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Configurez votre Ledger",description:"Vous pouvez soit synchroniser avec l'application de bureau, soit connecter votre Ledger."},step3:{title:"Scannez le code",description:"Appuyez sur WalletConnect puis passez au Scanner. Une fois que vous avez scanné, une invite de connexion apparaîtra pour que vous puissiez connecter votre portefeuille."}}}},bw={connect_wallet:Xm0,intro:ub0,sign_in:eb0,connect:tb0,connect_scan:nb0,connector_group:rb0,get:ib0,get_options:ab0,get_mobile:ob0,get_instructions:sb0,chains:fb0,profile:lb0,wallet_connectors:cb0},db0={label:"वॉलेट को कनेक्ट करें"},Eb0={title:"वॉलेट क्या है?",description:"एक वॉलेट का उपयोग डिजिटल संपत्तियों को भेजने, प्राप्त करने, संग्रहित करने और प्रदर्शित करने के लिए किया जाता है। यह एक नया तरीका भी है लॉग इन करने का, हर वेबसाइट पर नए खाते और पासवर्ड बनाने की जरूरत के बिना।",digital_asset:{title:"अपने डिजिटल संपत्तियों के लिए एक घर",description:"वॉलेट का उपयोग Ethereum और NFTs जैसी डिजिटल संपत्तियों को भेजने, प्राप्त करने, संग्रहित करने और प्रदर्शित करने के लिए किया जाता है."},login:{title:"लॉग इन करने का एक नया तरीका",description:"हर वेबसाइट पर नए खाते और पासवर्ड बनाने की बजाय, बस अपना वॉलेट कनेक्ट करें."},get:{label:"एक वॉलेट प्राप्त करें"},learn_more:{label:"और जानें"}},pb0={label:"अपने खाते की पुष्टि करें",description:"जुड़ने को पूरा करने के लिए, आपको अपने बटुए में एक संदेश पर हस्ताक्षर करना होगा ताकि पुष्टि हो सके कि आप इस खाते के मालिक हैं।",message:{send:"संदेश भेजें",preparing:"संदेश तैयार कर रहा है...",cancel:"रद्द करें",preparing_error:"संदेश तैयार करते समय त्रुटि, कृपया पुनः प्रयास करें!"},signature:{waiting:"हस्ताक्षर का इंतजार कर रहा है...",verifying:"हस्ताक्षर की पुष्टि की जा रही है...",signing_error:"संदेश पर हस्ताक्षर करते समय त्रुटि, कृपया पुनः प्रयास करें!",verifying_error:"हस्ताक्षर की पुष्टि में त्रुटि, कृपया पुनः प्रयास करें!",oops_error:"ओह, कुछ गलत हो गया!"}},hb0={label:"कनेक्ट करें",title:"वॉलेट को कनेक्ट करें",new_to_ethereum:{description:"Ethereum वॉलेट्स में नए हैं?",learn_more:{label:"और जानें"}},learn_more:{label:"और जानें।"},recent:"हाल ही में",status:{opening:"%{wallet}खोल रहा है...",not_installed:"%{wallet} स्थापित नहीं है",not_available:"%{wallet} उपलब्ध नहीं है",confirm:"एक्सटेंशन में कनेक्शन की पुष्टि करें"},secondary_action:{get:{description:"क्या आपके पास %{wallet}नहीं है ?",label:"प्राप्त करें"},install:{label:"स्थापित करें"},retry:{label:"पुनः प्रयास करें"}},walletconnect:{description:{full:"क्या आपको आधिकारिक WalletConnect मोडल की आवश्यकता है?",compact:"क्या आपको WalletConnect मोडल की आवश्यकता है?"},open:{label:"खोलें"}}},Cb0={title:"स्कैन करें विथ %{wallet}",fallback_title:"अपने फोन से स्कैन करें"},mb0={recommended:"अनुशंसित",other:"अन्य",popular:"लोकप्रिय",more:"अधिक",others:"अन्य लोग"},bb0={title:"एक वॉलेट प्राप्त करें",action:{label:"प्राप्त करें"},mobile:{description:"मोबाइल वॉलेट"},extension:{description:"ब्राउज़र एक्सटेंशन"},mobile_and_extension:{description:"मोबाइल वॉलेट और एक्सटेंशन"},mobile_and_desktop:{description:"मोबाइल और डेस्कटॉप वॉलेट"},looking_for:{title:"क्या आपको जो चाहिए वह नहीं मिल रहा है?",mobile:{description:"मुख्य स्क्रीन पर एक बटुआ चुनें ताकि आप एक अलग बटुआ प्रदाता के साथ शुरू कर सकें।"},desktop:{compact_description:"मुख्य स्क्रीन पर एक बटुआ चुनें ताकि आप एक अलग बटुआ प्रदाता के साथ शुरू कर सकें।",wide_description:"बाएं एक बटुआ चुनें ताकि आप एक अलग बटुआ प्रदाता के साथ शुरू कर सकें।"}}},gb0={title:"%{wallet}के साथ शुरू करें",short_title:"%{wallet}प्राप्त करें",mobile:{title:"मोबाइल के लिए %{wallet}",description:"मोबाइल वॉलेट का उपयोग करके Ethereum की दुनिया का अन्वेषण करें।",download:{label:"ऐप प्राप्त करें"}},extension:{title:"%{wallet} के लिए %{browser}",description:"अपने पसंदीदा वेब ब्राउज़र से अपने वॉलेट तक पहुंचें।",download:{label:"करें जोड़ें %{browser}"}},desktop:{title:"%{wallet} के लिए %{platform}",description:"अपने शक्तिशाली डेस्कटॉप से आपके वॉलेट की स्वतंत्रता द्वारा पहुंच।",download:{label:"को जोड़ें %{platform}"}}},Ab0={title:"स्थापित करें %{wallet}",description:"iOS या Android पर डाउनलोड करने के लिए अपने फोन से स्कैन करें",continue:{label:"जारी रखें"}},yb0={mobile:{connect:{label:"जोड़ें"},learn_more:{label:"और जानें"}},extension:{refresh:{label:"ताज़ा करें"},learn_more:{label:"और जानें"}},desktop:{connect:{label:"कनेक्ट करें"},learn_more:{label:"और जानें"}}},vb0={title:"नेटवर्क स्विच करें",wrong_network:"गलत नेटवर्क का पता चला, जारी रखने के लिए स्विच करें या कनेक्ट करें।",confirm:"वॉलेट में पुष्टि करें",switching_not_supported:"आपका वॉलेट नेटवर्क्स को %{appName}से स्विच करना समर्थन नहीं करता . बजाय अपने वॉलेट के भीतर से नेटवर्क स्विच करने का प्रयास करें।",switching_not_supported_fallback:"आपका वॉलेट इस एप से नेटवर्क्स स्विच करने का समर्थन नहीं करता। बजाय उसके, अपना वॉलेट द्वारा नेटवर्क्स स्विच करने की कोशिश करें।",disconnect:"डिकनेक्ट",connected:"कनेक्ट किया गया"},Bb0={disconnect:{label:"डिकनेक्ट"},copy_address:{label:"पता कॉपी करें",copied:"कॉपी कर दिया गया!"},explorer:{label:"एक्सप्लोरर पर अधिक देखें"},transactions:{description:"%{appName} लेन - देन यहां दिखाई देंगे...",description_fallback:"आपके लेन-देन यहां दिखाई देंगे...",recent:{title:"हाल के लेन - देन"},clear:{label:"सभी को हटाएं"}}},Fb0={argent:{qr_code:{step1:{description:"अपने वॉलेट को जल्दी से एक्सेस करने के लिए आपके होम स्क्रीन पर Argent डालें।",title:"Argent ऐप खोलें"},step2:{description:"वॉलेट और उपयोगकर्ता नाम बनाएं, या मौजूदा वॉलेट को आयात करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"जैसे ही आप स्कैन करेंगे, एक कनेक्शन संकेत आपके वॉलेट को कनेक्ट करने के लिए प्रकट होगा।",title:"QR स्कैन बटन को टैप करें"}}},bifrost:{qr_code:{step1:{description:"हम आपको सलाह देते हैं कि Bifrost Wallet को अपने होम स्क्रीन पर लगाएं, ताकि त्वरित एक्सेस को सुनिश्चित किया जा सके।",title:"Bifrost Wallet ऐप को खोलें"},step2:{description:"अपने रिकवरी फ़्रेज़ का उपयोग करके एक वॉलेट बनाएं या इंपोर्ट करें।",title:"वॉलेट बनाएं या इंपोर्ट करें"},step3:{description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत दिखाई देगा।",title:"स्कैन बटन को टैप करें"}}},bitget:{qr_code:{step1:{description:"हम इसे सुझाव देते हैं कि आप अपने होम स्क्रीन पर Bitget वॉलेट को रखें ताकि जल्दी एक्सेस कर सकें।",title:"Bitget वॉलेट एप को खोलें"},step2:{description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने का एक संकेत दिखाई देगा।",title:"स्कैन बटन पर टैप करें"}},extension:{step1:{description:"हम इसे सुझाव देते हैं कि आप Bitget वॉलेट को आपके टास्कबार में पिन करें ताकि आपके वॉलेट तक जल्दी पहुंच सकें।",title:"Bitget Wallet एक्सटेंशन स्थापित करें"},step2:{description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप किसी सुरक्षित तरीके से ले रहे हैं। अपनी गुप्त वाक्यांश को कभी किसी के साथ साझा न करें।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।",title:"अपने ब्राउज़र को ताज़ा करें"}}},bitski:{extension:{step1:{description:"हम आपको अपने वॉलेट तक जल्दी पहुंचने के लिए Bitski को अपने टास्कबार में पिन करने की सलाह देते हैं।",title:"Bitski एक्सटेंशन स्थापित करें"},step2:{description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके से अपने वॉलेट का बैकअप बना रहे हैं। कभी भी किसी के साथ अपने गोपनीय वाक्यांश को साझा न करें।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपना वॉलेट सेट कर लेते हैं, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।",title:"अपने ब्राउज़र को ताज़ा करें"}}},coin98:{qr_code:{step1:{description:"हम आपके वॉलेट तक तेजी से पहुंचने के लिए अपने होम स्क्रीन पर Coin98 वॉलेट रखने की सलाह देते हैं।",title:"Coin98 वॉलेट ऐप को खोलें"},step2:{description:"आप अपने फोन पर हमारे बैकअप फीचर का उपयोग करके आसानी से अपने वॉलेट का बैकअप कर सकते हैं।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन प्रांप्ट दिखाई देगा।",title:"WalletConnect बटन पर टैप करें"}},extension:{step1:{description:"अपने ब्राउज़र के ऊपरी दाएं हिस्से पर क्लिक करें और आसानी से पहुंच के लिए Coin98 वॉलेट को पिन करें।",title:"Coin98 वॉलेट एक्सटेंशन स्थापित करें"},step2:{description:"नया बटुआ बनाएं या मौजूदा को आयात करें।",title:"एक बटुआ बनाएं या आयात करें"},step3:{description:"एक बार जब आप Coin98 वॉलेट सेट करते हैं, तो नीचे क्लिक करके ब्राउजर को ताजा करें और एक्सटेंशन को लोड करें।",title:"अपने ब्राउज़र को ताज़ा करें"}}},coinbase:{qr_code:{step1:{description:"हम आपको सलाह देते हैं कि आपकी मुख्य बिल्ड स्क्रीन पर Coinbase वॉलेट को रखें जिससे आपकी पहुंच तेज हो।",title:"Coinbase वॉलेट ऐप खोलें"},step2:{description:"आप बादल बैकअप सुविधा का उपयोग करके आसानी से अपने वॉलेट का बैकअप ले सकते हैं।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"जैसे ही आप स्कैन करते हैं, आपको अपने वॉलेट से कनेक्ट करने के लिए एक कनेक्शन संकेत दिखाई देगा।",title:"स्कैन बटन को छूना"}},extension:{step1:{description:"हमारा सिफारिश है कि आप अपने वॉलेट तक जल्दी पहुंचने के लिए Coinbase वॉलेट को अपने टास्कबार पर पिन पर रखें।",title:"Coinbase वॉलेट एक्सटेंशन स्थापित करें"},step2:{description:"सुरक्षित विधि का उपयोग करके अपने बटुए का बैकअप लेना सुनिश्चित करें। अपना गुप्त पुनर्प्राप्ति वाक्यांश कभी भी किसी के साथ साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपना वॉलेट सेट अप करते हैं, तो ब्राउज़र को ताजगी देने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें.",title:"अपना ब्राउज़र ताजा करें"}}},core:{qr_code:{step1:{description:"हम आपकी वॉलेट के तेज एक्सेस के लिए Core को आपके होम स्क्रीन पर डालने की सलाह देते हैं.",title:"Core एप खोलें"},step2:{description:"आप आसानी से अपने फ़ोन पर हमारे बैकअप फीचर का उपयोग करके अपना वॉलेट बैकअप कर सकते हैं.",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए आपके लिए कनेक्शन प्राम्प्ट प्रकट होगा.",title:"WalletConnect बटन को छूने के साथ"}},extension:{step1:{description:"हम अपने वॉलेट के लिए तेज एक्सेस के लिए कोर को अपने टास्कबार में पिन करने की सिफारिश करते हैं।",title:"कोर एक्सटेंशन स्थापित करें"},step2:{description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से ले। कभी भी किसी के साथ अपनी गुप्त वाक्यांश साझा न करें।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपने वॉलेट की स्थापना कर लें, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा कर सकें और एक्सटेंशन को लोड कर सकें।",title:"अपने ब्राउज़र को ताज़ा करें"}}},fox:{qr_code:{step1:{description:"हम FoxWallet को अपने होम स्क्रीन पर रखने की सिफारिश करते हैं ताकि त्वरित एक्सेस मिल सके।",title:"FoxWallet ऐप खोलें"},step2:{description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके का उपयोग करके अपने वॉलेट का बैकअप ले रहे हैं। कभी भी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"जब आप स्कैन करेंगे, तो आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत प्रकट होगा।",title:"स्कैन बटन पर टैप करें"}}},frontier:{qr_code:{step1:{description:"हमारी सिफारिश है कि आप अपने होम स्क्रीन पर फ्रंटियर वॉलेट रखें जिससे कि आपको त्वरित पहुंच मिले।",title:"फ्रंटियर वॉलेट ऐप को खोलें"},step2:{description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके का उपयोग करके अपने वॉलेट का बैकअप ले रहे हैं। कभी भी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"जब आप स्कैन करते हैं, तो आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत प्रकट होगा।",title:"स्कैन बटन को टैप करें"}},extension:{step1:{description:"हम आपके वॉलेट की तेजी से पहुंच के लिए Frontier Wallet को अपने टास्कबार में पिन करने की सिफारिश करते हैं।",title:"Frontier Wallet एक्सटेंशन इंस्टॉल करें"},step2:{description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके से अपना वॉलेट बैकअप कर रहे हैं। कभी भी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"वॉलेट सेटअप होने के बाद, ब्राउज़र को रिफ्रेश करने के लिए नीचे क्लिक करें और एक्सटेंशन लोड करें।",title:"अपना ब्राउज़र रिफ्रेश करें"}}},im_token:{qr_code:{step1:{title:"imToken ऐप खोलें",description:"अपने वॉलेट के तेजी से पहुँच के लिए imToken एप्लीकेशन को अपने होम स्क्रीन पर रखें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा एक को आयात करें।"},step3:{title:"ऊपरी दाएं कोने में स्कैनर आइकॉन पर टैप करें",description:"नया कनेक्शन चुनें, फिर QR कोड स्कैन करें और कनेक्ट करने के लिए प्रॉम्प्ट की पुष्टि करें।"}}},metamask:{qr_code:{step1:{title:"MetaMask ऐप को खोलें",description:"हम आपको MetaMask को आपकी होम स्क्रीन पर रखने की सलाह देते हैं, इससे आपको त्वरित पहुँच मिलेगी।"},step2:{title:"एक वॉलेट बनाएं या इम्पोर्ट करें",description:"सुरक्षित विधि का उपयोग करके अपने बटुए का बैकअप लेना सुनिश्चित करें। अपना गुप्त वाक्यांश कभी भी किसी के साथ साझा न करें।"},step3:{title:"स्कैन बटन पर टैप करें",description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन प्रॉम्प्ट दिखाई देगा।"}},extension:{step1:{title:"MetaMask एक्सटेंशन स्थापित करें",description:"हम अपने वॉलेट तक जल्दी से पहुँचने के लिए MetaMask को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेना सुनिश्चित करें। अपनी गुप्त वाक्यांश को किसी के साथ शेयर न करें।"},step3:{title:"अपना ब्राउज़र ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेट अप करते हैं, तो ब्राउजर को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},okx:{qr_code:{step1:{title:"OKX Wallet ऐप खोलें",description:"हम आपको OKX Wallet को अपने होम स्क्रीन पर रखने की सलाह देते हैं, जिससे आप जल्दी से पहुंच सकें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने का यकीन करें। कभी भी किसी के साथ अपने गुप्त वाक्यांश साझा न करें।"},step3:{title:"स्कैन बटन पर टैप करें",description:"जब आप स्कैन करते हैं, तो आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत प्रकट होगा।"}},extension:{step1:{title:"OKX वॉलेट एक्सटेंशन स्थापित करें",description:"हम अपने वॉलेट तक तेज़ी से पहुंचने के लिए आपको OKX वॉलेट को अपने कार्यपट्टी में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने का यकीन करें। कभी भी किसी के साथ अपने गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"जब आप अपना वॉलेट सेट अप कर लेते हैं, तो नीचे क्लिक करके ब्राउज़र को ताजा करें और एक्सटेंशन को लोड करें।"}}},omni:{qr_code:{step1:{title:"Omni ऐप को खोलें",description:"अपने वॉलेट तक अधिक जल्दी पहुंचने के लिए Omni को अपने होम स्क्रीन पर जोड़ें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा एक को आयात करें।"},step3:{title:"QR आइकन पर टैप करें और स्कैन करें",description:"अपने होम स्क्रीन पर QR आइकन पर टैप करें, कोड स्कैन करें और कनेक्ट करने के लिए प्रॉम्प्ट की पुष्टि करें।"}}},token_pocket:{qr_code:{step1:{title:"TokenPocket ऐप को खोलें",description:"हम आपको TokenPocket को अपने होम स्क्रीन पर रखने की सलाह देते हैं ताकि आपको तेज एक्सेस मिल सके।"},step2:{title:"एक वॉलेट बनाएँ या आयात करें",description:"सुरक्षित विधि का उपयोग करके अपने बटुए का बैकअप लेना सुनिश्चित करें। अपना गुप्त वाक्यांश कभी भी किसी के साथ साझा न करें।"},step3:{title:"स्कैन बटन पर टैप करें",description:"एक बार स्कैन करने के बाद, आपके लिए एक कनेक्शन प्रॉम्प्ट प्रकट होगा ताकि आप अपने वॉलेट को कनेक्ट कर सकें।"}},extension:{step1:{title:"TokenPocket एक्सटेंशन स्थापित करें",description:"हम अपने वॉलेट तक त्वरित पहुंच के लिए TokenPocket को अपने taskbar पर pin करने की सिफारिश करते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेते हैं। कभी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपना ब्राउज़र ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताज़ा ब्राउज़र लोड करें और एक्सटेंशन अप करें।"}}},trust:{qr_code:{step1:{title:"Trust Wallet ऐप खोलें",description:"अपने वॉलेट तक तेज़ी से पहुंचने के लिए Trust Wallet को अपने होम स्क्रीन पर रखें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा वॉलेट आयात करें।"},step3:{title:"सेटिंग्स में WalletConnect को टैप करें",description:"नया कनेक्शन चुनें, फिर QR कोड स्कैन करें और प्रम्प्ट की पुष्टि करें।"}},extension:{step1:{title:"Trust Wallet एक्सटेंशन को इंस्टॉल करें",description:"अपने ब्राउज़र के ऊपरी दाएं कोने पर क्लिक करें और Trust Wallet को आसानी से प्रवेश के लिए पिन करें।"},step2:{title:"एक वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा वॉलेट आयात करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार Trust Wallet सेट अप करने के बाद, नीचे क्लिक करें ब्राउज़र को ताज़ा करने और एक्सटेंशन लोड करने के लिए।"}}},uniswap:{qr_code:{step1:{title:"Uniswap ऐप को खोलें",description:"अपने होम स्क्रीन पर Uniswap वॉलेट जोड़ें, इससे आपके वॉलेट तक तेजी से पहुंचने की सुविधा होगी।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा वॉलेट को आयात करें।"},step3:{title:"QR आइकन पर टैप करें और स्कैन करें",description:"अपने होमस्क्रीन पर QR आइकन पर टैप करें, कोड स्कैन करें और प्रम्प्ट को कनेक्ट करने की पुष्टि करें।"}}},zerion:{qr_code:{step1:{title:"Zerion ऐप को खोलें",description:"हम सलाह देते हैं कि आप Zerion को अपने होम स्क्रीन पर रखें, इससे तेजी से एक्सेस करने में आसानी होगी।"},step2:{title:"एक वॉलेट बनाएं या आयात करें",description:"सुरक्षित विधि का उपयोग करके अपने बटुए का बैकअप लेना सुनिश्चित करें। अपना गुप्त वाक्यांश कभी भी किसी के साथ साझा न करें।"},step3:{title:"स्कैन बटन को टैप करें",description:"आप स्कैन करने के बाद, एक कनेक्शन प्रोम्प्ट आपके बटुए को कनेक्ट करने के लिए प्रकट होगा।"}},extension:{step1:{title:"Zerion एक्सटेंशन स्थापित करें",description:"हमारी सिफारिश है कि आप अपने वॉलेट तक जल्दी पहुँचने के लिए Zerion को अपने टास्कबार में पिन करें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप एक सुरक्षित विधि का उपयोग करके अपने वॉलेट का बैकअप ले रहे हैं। अपना गुप्त वाक्य कभी किसी के साथ साझा न करें।"},step3:{title:"अपना ब्राउज़र ताज़ा करें",description:"एक बार जब आप अपने वॉलेट की स्थापना कर लें, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},rainbow:{qr_code:{step1:{title:"Rainbow ऐप को खोलें",description:"हम अपने वॉलेट के तेज एक्सेस के लिए Rainbow को अपने होम स्क्रीन पर रखने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"आप अपने फ़ोन पर हमारे बैकअप फीचर का उपयोग करके अपने वॉलेट का बैकअप आसानी से ले सकते हैं।"},step3:{title:"स्कैन बटन पर टैप करें",description:"जब आप स्कैन करते हैं, तो आपकी वॉलेट से कनेक्ट करने के लिए एक कनेक्शन संकेत दिखाई देगा।"}}},enkrypt:{extension:{step1:{description:"हम अपनी वॉलेट तक तेज़ी से पहुँच के लिए Enkrypt वॉलेट को अपने टास्कबार में पिन करने की सलाह देते हैं।",title:"Enkrypt वॉलेट एक्सटेंशन स्थापित करें"},step2:{description:"सुनिश्चित करें कि आप अपनी वॉलेट का बैकअप एक सुरक्षित तरीके से ले। अपनी गुप्त वाक्यांश को कभी भी किसी के साथ साझा न करें।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपनी वॉलेट सेट कर लें, तो नीचे क्लिक करें ब्राउज़र को ताज़ा करने और एक्सटेंशन लोड करने के लिए।",title:"अपने ब्राउज़र को ताज़ा करें"}}},frame:{extension:{step1:{description:"हम अपनी वॉलेट तक तेज़ी से पहुँच के लिए Frame को अपने टास्कबार में पिन करने की सलाह देते हैं।",title:"Frame और साथी एक्सटेंशन स्थापित करें"},step2:{description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेना सुनिश्चित करें। कभी भी अपनी गुप्त वाक्यांश को किसी के साथ साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपने वॉलेट की सेटअप कर लेते हैं, तो नीचे क्लिक करके ब्राउज़र को ताज़ा करें और एक्सटेंशन को लोड करें।",title:"अपना ब्राउज़र ताज़ा करें"}}},one_key:{extension:{step1:{title:"OneKey Wallet एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट की तेज एक्सेस के लिए OneKey Wallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से ले रहे हैं। अपना गुप्त वाक्यांश किसी के साथ भी साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेट अप कर लेते हैं, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},phantom:{extension:{step1:{title:"फैंटम एक्सटेंशन स्थापित करें",description:"हम आपके वॉलेट के आसान उपयोग के लिए फैंटम को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"एक वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से ले रहे हैं। अपना गुप्त वसूली वाक्यांश किसी के साथ भी साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेट कर लें, तो ब्राउज़र को ताजगी देने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},rabby:{extension:{step1:{title:"Rabby एक्सटेंशन स्थापित करें",description:"हम आपको सलाह देते हैं कि अपने वॉलेट की जल्दी से पहुँच के लिए Rabby को अपने टास्कबार में पिन करें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेते हैं। कभी भी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपना ब्राउज़र ताज़ा करें",description:"जब आप अपना वॉलेट सेट अप कर लेते हैं, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन लोड करने के लिए नीचे क्लिक करें।"}}},safeheron:{extension:{step1:{title:"कोर एक्सटेंशन स्थापित करें",description:"हम आपको सलाह देते हैं कि अपने वॉलेट की जल्दी से पहुँच के लिए Safeheron को अपने टास्कबार में पिन करें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके से अपना वॉलेट बैकअप कर रहे हैं। कभी भी किसी के साथ अपने गुप्त वाक्यांश को साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपने वॉलेट को सेट अप करते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन को लोड करें।"}}},taho:{extension:{step1:{title:"ताहो एक्सटेंशन स्थापित करें",description:"हम आपके वॉलेट तक त्वरित पहुँच के लिए ताहो को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"एक वॉलेट बनाएँ या आयात करें",description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके से अपना वॉलेट बैकअप कर रहे हैं। कभी भी किसी के साथ अपने गुप्त वाक्यांश को साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना बटुआ सेट कर लेते हैं, तो नीचे क्लिक करके ब्राउज़र को ताज़ा करें और एक्सटेंशन को लोड करें।"}}},talisman:{extension:{step1:{title:"तालिसमान एक्सटेंशन स्थापित करें",description:"हम आपके बटुए के त्वरित पहुँच के लिए तालिसमान को अपने टास्कबार में पिन करने की सिफारिश करते हैं।"},step2:{title:"एक ईथेरियम बटुए बनाएं या आयात करें",description:"अपने बटुए का बैकअप एक सुरक्षित तरीके से लेने का ध्यान रखें। कभी भी अपनी वसूली वाक्यांश को किसी के साथ साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना बटुआ सेट कर लेते हैं, तो नीचे क्लिक करके ब्राउज़र को ताज़ा करें और एक्सटेंशन को लोड करें।"}}},xdefi:{extension:{step1:{title:"XDEFI वॉलेट एक्सटेंशन स्थापित करें",description:"हम आपकी वॉलेट की जल्दी से पहुँच के लिए XDEFI Wallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"एक वॉलेट बनाएं या आयात करें",description:"निश्चित रूप से अपने वॉलेट का बैकअप किसी सुरक्षित तरीके से लें। अपनी गोपनीय वाक्यांश को किसी के साथ शेयर ना करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आपने अपनी वॉलेट सेट अप कर ली हो, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},zeal:{extension:{step1:{title:"Zeal एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट तक जल्दी पहुँचने के लिए Zeal को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।"}}},safepal:{extension:{step1:{title:"SafePal Wallet एक्सटेंशन स्थापित करें",description:"अपने ब्राउज़र के शीर्ष दाएं में क्लिक करें और SafePal Wallet को आसानी से पहुंच के लिए पिन करें।"},step2:{title:"एक बटुआ बनाएं या आयात करें",description:"नया बटुआ बनाएं या मौजूदा को आयात करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप SafePal वॉलेट सेट अप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को रिफ्रेश करें और एक्सटेंशन लोड करें।"}},qr_code:{step1:{title:"SafePal वॉलेट ऐप खोलें",description:"अपने वॉलेट तक जल्दी पहुंचने के लिए SafePal वॉलेट को अपनी होम स्क्रीन पर रखें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"नया बटुआ बनाएं या मौजूदा को आयात करें।"},step3:{title:"सेटिंग्स में WalletConnect को टैप करें",description:"नया कनेक्शन चुनें, फिर QR कोड स्कैन करें और कनेक्ट करने के लिए प्रॉम्प्ट की पुष्टि करें।"}}},desig:{extension:{step1:{title:"Desig एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट के लिए आसानी से पहुंच पाने के लिए Desig को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"एक वॉलेट बनाएँ",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।"}}},subwallet:{extension:{step1:{title:"SubWallet एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट तक तेजी से पहुंचने के लिए SubWallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने बटुए का बैकअप एक सुरक्षित तरीके से लेने का ध्यान रखें। कभी भी अपनी वसूली वाक्यांश को किसी के साथ साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।"}},qr_code:{step1:{title:"SubWallet ऐप खोलें",description:"हम आपको तेजी से पहुंचने के लिए SubWallet को अपने होम स्क्रीन पर रखने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"स्कैन बटन को टैप करें",description:"जैसे ही आप स्कैन करेंगे, एक कनेक्शन संकेत आपके वॉलेट को कनेक्ट करने के लिए प्रकट होगा।"}}},clv:{extension:{step1:{title:"CLV Wallet एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट तक तेजी से पहुंचने के लिए CLV Wallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।"}},qr_code:{step1:{title:"CLV वॉलेट ऐप खोलें",description:"हम तीव्र पहुंच के लिए आपके होम स्क्रीन पर CLV वॉलेट रखने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"स्कैन बटन को टैप करें",description:"जैसे ही आप स्कैन करेंगे, एक कनेक्शन संकेत आपके वॉलेट को कनेक्ट करने के लिए प्रकट होगा।"}}},okto:{qr_code:{step1:{title:"Okto ऐप को खोलें",description:"त्वरित पहुंच के लिए अपने होम स्क्रीन पर Okto जोड़ें"},step2:{title:"एक MPC वॉलेट बनाएं",description:"एक खाता बनाएं और वॉलेट उत्पन्न करें"},step3:{title:"सेटिंग्स में WalletConnect को टैप करें",description:"ऊपरी दाएँ में स्कैन QR आइकन को टैप करें और कनेक्ट करने के लिए संकेत दें।"}}},ledger:{desktop:{step1:{title:"लेजर लाइव ऐप खोलें",description:"हम तेज एक्सेस के लिए अपने होम स्क्रीन पर Ledger Live डालने की सिफारिश करते हैं।"},step2:{title:"अपना लेजर सेट करें",description:"एक नया लेजर सेट अप करें या मौजूदा वाले से कनेक्ट करें।"},step3:{title:"कनेक्ट करें",description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन प्रॉम्प्ट दिखाई देगा।"}},qr_code:{step1:{title:"लेजर लाइव ऐप खोलें",description:"हम तेज एक्सेस के लिए अपने होम स्क्रीन पर Ledger Live डालने की सिफारिश करते हैं।"},step2:{title:"अपना लेजर सेट करें",description:"आप डेस्कटॉप ऐप के साथ सिंक कर सकते हैं या अपने Ledger को कनेक्ट कर सकते हैं।"},step3:{title:"कोड स्कैन करें",description:"WalletConnect पर टैप करें फिर स्कैनर पर स्विच करें। जब आप स्कैन करेंगे, तो आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत प्रकट होगा।"}}}},gw={connect_wallet:db0,intro:Eb0,sign_in:pb0,connect:hb0,connect_scan:Cb0,connector_group:mb0,get:bb0,get_options:gb0,get_mobile:Ab0,get_instructions:yb0,chains:vb0,profile:Bb0,wallet_connectors:Fb0},Db0={label:"Hubungkan Dompet"},wb0={title:"Apa itu Dompet?",description:"Sebuah dompet digunakan untuk mengirim, menerima, menyimpan, dan menampilkan aset digital. Ini juga cara baru untuk masuk, tanpa perlu membuat akun dan kata sandi baru di setiap situs web.",digital_asset:{title:"Sebuah Rumah untuk Aset Digital Anda",description:"Dompet digunakan untuk mengirim, menerima, menyimpan, dan menampilkan aset digital seperti Ethereum dan NFTs."},login:{title:"Cara Baru untuk Masuk",description:"Alih-alih membuat akun dan kata sandi baru di setiap situs web, cukup hubungkan dompet Anda."},get:{label:"Dapatkan Dompet"},learn_more:{label:"Pelajari lebih lanjut"}},xb0={label:"Verifikasi akun Anda",description:"Untuk menyelesaikan koneksi, Anda harus menandatangani sebuah pesan di dompet Anda untuk memastikan bahwa Anda adalah pemilik dari akun ini.",message:{send:"Kirim pesan",preparing:"Mempersiapkan pesan...",cancel:"Batal",preparing_error:"Kesalahan dalam mempersiapkan pesan, silakan coba lagi!"},signature:{waiting:"Menunggu tanda tangan...",verifying:"Memverifikasi tanda tangan...",signing_error:"Kesalahan dalam menandatangani pesan, silakan coba lagi!",verifying_error:"Kesalahan dalam memverifikasi tanda tangan, silakan coba lagi!",oops_error:"Ups, ada yang salah!"}},kb0={label:"Hubungkan",title:"Hubungkan Dompet",new_to_ethereum:{description:"Baru dalam dompet Ethereum?",learn_more:{label:"Pelajari lebih lanjut"}},learn_more:{label:"Pelajari lebih lanjut"},recent:"Terkini",status:{opening:"Membuka %{wallet}...",not_installed:"%{wallet} tidak terpasang",not_available:"%{wallet} tidak tersedia",confirm:"Konfirmasikan koneksi di ekstensi"},secondary_action:{get:{description:"Tidak memiliki %{wallet}?",label:"DAPATKAN"},install:{label:"PASANG"},retry:{label:"COBA LAGI"}},walletconnect:{description:{full:"Perlu modal resmi WalletConnect?",compact:"Perlu modal WalletConnect?"},open:{label:"BUKA"}}},_b0={title:"Pindai dengan %{wallet}",fallback_title:"Pindai dengan ponsel Anda"},Sb0={recommended:"Direkomendasikan",other:"Lainnya",popular:"Populer",more:"Lebih Banyak",others:"Lainnya"},Tb0={title:"Dapatkan Dompet",action:{label:"DAPATKAN"},mobile:{description:"Dompet Mobile"},extension:{description:"Ekstensi Browser"},mobile_and_extension:{description:"Dompet Mobile dan Ekstensi"},mobile_and_desktop:{description:"Dompet Seluler dan Desktop"},looking_for:{title:"Bukan yang Anda cari?",mobile:{description:"Pilih dompet di layar utama untuk memulai dengan penyedia dompet yang berbeda."},desktop:{compact_description:"Pilih dompet di layar utama untuk memulai dengan penyedia dompet yang berbeda.",wide_description:"Pilih dompet di sebelah kiri untuk memulai dengan penyedia dompet yang berbeda."}}},Pb0={title:"Mulai dengan %{wallet}",short_title:"Dapatkan %{wallet}",mobile:{title:"%{wallet} untuk Mobile",description:"Gunakan dompet mobile untuk menjelajahi dunia Ethereum.",download:{label:"Dapatkan aplikasinya"}},extension:{title:"%{wallet} untuk %{browser}",description:"Akses dompet Anda langsung dari browser web favorit Anda.",download:{label:"Tambahkan ke %{browser}"}},desktop:{title:"%{wallet} untuk %{platform}",description:"Akses dompet Anda secara native dari desktop yang kuat Anda.",download:{label:"Tambahkan ke %{platform}"}}},Ib0={title:"Instal %{wallet}",description:"Pindai dengan ponsel Anda untuk mengunduh di iOS atau Android",continue:{label:"Lanjutkan"}},Ob0={mobile:{connect:{label:"Hubungkan"},learn_more:{label:"Pelajari lebih lanjut"}},extension:{refresh:{label:"Segarkan"},learn_more:{label:"Pelajari lebih lanjut"}},desktop:{connect:{label:"Hubungkan"},learn_more:{label:"Pelajari lebih lanjut"}}},Rb0={title:"Alihkan Jaringan",wrong_network:"Jaringan yang salah terdeteksi, alihkan atau diskonek untuk melanjutkan.",confirm:"Konfirmasi di Dompet",switching_not_supported:"Dompet Anda tidak mendukung pengalihan jaringan dari %{appName}. Coba alihkan jaringan dari dalam dompet Anda.",switching_not_supported_fallback:"Wallet Anda tidak mendukung penggantian jaringan dari aplikasi ini. Cobalah ganti jaringan dari dalam wallet Anda.",disconnect:"Putuskan koneksi",connected:"Terkoneksi"},Nb0={disconnect:{label:"Putuskan koneksi"},copy_address:{label:"Salin Alamat",copied:"Tersalin!"},explorer:{label:"Lihat lebih banyak di penjelajah"},transactions:{description:"%{appName} transaksi akan muncul di sini...",description_fallback:"Transaksi Anda akan muncul di sini...",recent:{title:"Transaksi Terbaru"},clear:{label:"Hapus Semua"}}},Mb0={argent:{qr_code:{step1:{description:"Letakkan Argent di layar utama Anda untuk akses lebih cepat ke dompet Anda.",title:"Buka aplikasi Argent"},step2:{description:"Buat dompet dan nama pengguna, atau impor dompet yang ada.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menghubungkan dompet Anda.",title:"Tekan tombol Scan QR"}}},bifrost:{qr_code:{step1:{description:"Kami merekomendasikan untuk menempatkan Bifrost Wallet di layar utama anda untuk akses yang lebih cepat.",title:"Buka aplikasi Bifrost Wallet"},step2:{description:"Buat atau impor sebuah dompet menggunakan frasa pemulihan Anda.",title:"Buat atau Impor sebuah Wallet"},step3:{description:"Setelah Anda memindai, sebuah pesan akan muncul untuk menghubungkan dompet Anda.",title:"Tekan tombol scan"}}},bitget:{qr_code:{step1:{description:"Kami menyarankan untuk meletakkan Bitget Wallet di layar depan Anda untuk akses yang lebih cepat.",title:"Buka aplikasi Bitget Wallet"},step2:{description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda pindai, akan muncul petunjuk untuk menghubungkan wallet Anda.",title:"Tekan tombol pindai"}},extension:{step1:{description:"Kami menyarankan untuk memasang Bitget Wallet ke taskbar Anda untuk akses yang lebih cepat ke wallet Anda.",title:"Instal ekstensi Dompet Bitget"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frasa rahasia Anda kepada siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},bitski:{extension:{step1:{description:"Kami merekomendasikan untuk memasang Bitski ke taskbar Anda untuk akses dompet Anda yang lebih cepat.",title:"Pasang ekstensi Bitski"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},coin98:{qr_code:{step1:{description:"Kami merekomendasikan untuk menaruh Coin98 Wallet di layar utama Anda untuk akses wallet Anda lebih cepat.",title:"Buka aplikasi Coin98 Wallet"},step2:{description:"Anda dapat dengan mudah mencadangkan wallet Anda menggunakan fitur cadangan kami di telepon Anda.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda melakukan pemindaian, akan muncul prompt koneksi untuk Anda menghubungkan wallet Anda.",title:"Ketuk tombol WalletConnect"}},extension:{step1:{description:"Klik di pojok kanan atas browser Anda dan sematkan Coin98 Wallet untuk akses mudah.",title:"Pasang ekstensi Coin98 Wallet"},step2:{description:"Buat dompet baru atau impor yang sudah ada.",title:"Buat atau Impor sebuah dompet"},step3:{description:"Setelah Anda menyiapkan Coin98 Wallet, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},coinbase:{qr_code:{step1:{description:"Kami merekomendasikan memasang Coinbase Wallet di layar utama Anda untuk akses yang lebih cepat.",title:"Buka aplikasi Coinbase Wallet"},step2:{description:"Anda dapat dengan mudah mencadangkan dompet Anda menggunakan fitur cadangan awan.",title:"Buat atau Impor sebuah Dompet"},step3:{description:"Setelah Anda memindai, akan muncul sebuah petunjuk koneksi untuk Anda menyambungkan dompet Anda.",title:"Ketuk tombol pindai"}},extension:{step1:{description:"Kami merekomendasikan untuk menempel Coinbase Wallet ke taskbar Anda untuk akses lebih cepat ke dompet Anda.",title:"Instal ekstensi Coinbase Wallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun.",title:"Buat atau Import Wallet"},step3:{description:"Setelah Anda menyiapkan wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},core:{qr_code:{step1:{description:"Kami merekomendasikan untuk meletakkan Core di layar utama Anda untuk akses lebih cepat ke wallet Anda.",title:"Buka aplikasi Core"},step2:{description:"Anda dapat dengan mudah mencadangkan wallet Anda dengan menggunakan fitur cadangan kami di telepon Anda.",title:"Buat atau Import Wallet"},step3:{description:"Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menyambungkan wallet Anda.",title:"Ketuk tombol WalletConnect"}},extension:{step1:{description:"Kami merekomendasikan untuk menempelkan Core pada taskbar Anda untuk akses ke dompet Anda lebih cepat.",title:"Pasang ekstensi Core"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},fox:{qr_code:{step1:{description:"Kami merekomendasikan untuk menaruh FoxWallet pada layar utama Anda untuk akses lebih cepat.",title:"Buka aplikasi FoxWallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda memindai, prompt koneksi akan muncul untuk Anda hubungkan dompet Anda.",title:"Ketuk tombol pindai"}}},frontier:{qr_code:{step1:{description:"Kami merekomendasikan untuk meletakkan Frontier Wallet di layar awal Anda untuk akses yang lebih cepat.",title:"Buka aplikasi Frontier Wallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda memindai, prompt koneksi akan muncul untuk Anda menghubungkan dompet Anda.",title:"Ketuk tombol pindai"}},extension:{step1:{description:"Kami menyarankan menempelkan Frontier Wallet ke taskbar Anda untuk akses yang lebih cepat ke dompet Anda.",title:"Instal ekstensi Frontier Wallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},im_token:{qr_code:{step1:{title:"Buka aplikasi imToken",description:"Letakkan aplikasi imToken di layar utama Anda untuk akses yang lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Ketuk Ikon Scanner di pojok kanan atas",description:"Pilih Koneksi Baru, lalu pindai kode QR dan konfirmasi petunjuk untuk terhubung."}}},metamask:{qr_code:{step1:{title:"Buka aplikasi MetaMask",description:"Kami merekomendasikan untuk meletakkan MetaMask di layar beranda Anda untuk akses yang lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun."},step3:{title:"Ketuk tombol pindai",description:"Setelah Anda memindai, petunjuk koneksi akan muncul untuk Anda menyambungkan dompet Anda."}},extension:{step1:{title:"Pasang ekstensi MetaMask",description:"Kami menyarankan untuk memasang MetaMask pada taskbar Anda untuk akses wallet lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},okx:{qr_code:{step1:{title:"Buka aplikasi OKX Wallet",description:"Kami menyarankan untuk menaruh OKX Wallet di layar utama Anda untuk akses lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frasa rahasia Anda kepada siapa pun."},step3:{title:"Ketuk tombol scan",description:"Setelah Anda memindai, prompt koneksi akan muncul untuk Anda hubungkan dompet Anda."}},extension:{step1:{title:"Instal ekstensi OKX Wallet",description:"Kami menyarankan untuk menempelkan OKX Wallet ke taskbar Anda untuk akses lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frasa rahasia Anda kepada siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},omni:{qr_code:{step1:{title:"Buka aplikasi Omni",description:"Tambahkan Omni ke layar utama Anda untuk akses yang lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Buat wallet baru atau impor yang sudah ada."},step3:{title:"Ketuk ikon QR dan scan",description:"Ketuk ikon QR di layar utama Anda, pindai kode dan konfirmasi petunjuk untuk terhubung."}}},token_pocket:{qr_code:{step1:{title:"Buka aplikasi TokenPocket",description:"Kami sarankan meletakkan TokenPocket di layar utama Anda untuk akses yang lebih cepat."},step2:{title:"Buat atau impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun."},step3:{title:"Ketuk tombol pindai",description:"Setelah Anda memindai, Indikasi sambungan akan muncul untuk Anda menghubungkan dompet Anda."}},extension:{step1:{title:"Instal ekstensi TokenPocket",description:"Kami merekomendasikan penambatan TokenPocket ke taskbar Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},trust:{qr_code:{step1:{title:"Buka aplikasi Trust Wallet",description:"Pasang Trust Wallet di layar utama Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Ketuk WalletConnect di Pengaturan",description:"Pilih Koneksi Baru, kemudian pindai kode QR dan konfirmasi perintah untuk terhubung."}},extension:{step1:{title:"Instal ekstensi Trust Wallet",description:"Klik di pojok kanan atas browser Anda dan sematkan Trust Wallet untuk akses mudah."},step2:{title:"Buat atau Impor dompet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur Trust Wallet, klik di bawah untuk menyegarkan browser dan memuat ekstensi."}}},uniswap:{qr_code:{step1:{title:"Buka aplikasi Uniswap",description:"Tambahkan Uniswap Wallet ke layar utama Anda untuk akses ke wallet Anda lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Buat wallet baru atau impor yang sudah ada."},step3:{title:"Ketuk ikon QR dan pindai",description:"Ketuk ikon QR di layar utama Anda, pindai kode dan konfirmasi prompt untuk terhubung."}}},zerion:{qr_code:{step1:{title:"Buka aplikasi Zerion",description:"Kami merekomendasikan untuk meletakkan Zerion di layar utama Anda untuk akses lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun."},step3:{title:"Ketuk tombol scan",description:"Setelah Anda scan, muncul prompt koneksi untuk Anda menghubungkan dompet Anda."}},extension:{step1:{title:"Instal ekstensi Zerion",description:"Kami menyarankan untuk menempelkan Zerion ke taskbar Anda untuk akses lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur wallet Anda, klik di bawah untuk menyegarkan browser dan memuat ekstensi."}}},rainbow:{qr_code:{step1:{title:"Buka aplikasi Rainbow",description:"Kami menyarankan menempatkan Rainbow di layar home Anda untuk akses yang lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Anda dapat dengan mudah mencadangkan wallet Anda menggunakan fitur cadangan kami di telepon Anda."},step3:{title:"Tekan tombol scan",description:"Setelah Anda memindai, akan muncul pesan untuk menghubungkan dompet Anda."}}},enkrypt:{extension:{step1:{description:"Kami menyarankan untuk memasang Enkrypt Wallet ke taskbar Anda untuk akses dompet yang lebih cepat.",title:"Instal ekstensi Enkrypt Wallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frase rahasia Anda dengan siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet, klik di bawah ini untuk memuat ulang peramban dan meload ekstensi.",title:"Segarkan browser Anda"}}},frame:{extension:{step1:{description:"Kami menyarankan untuk memasang Frame ke taskbar Anda untuk akses dompet yang lebih cepat.",title:"Instal Frame & ekstensi pendamping"},step2:{description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda menyetel wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},one_key:{extension:{step1:{title:"Instal ekstensi OneKey Wallet",description:"Kami menyarankan untuk menempelkan OneKey Wallet ke taskbar Anda untuk akses wallet yang lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},phantom:{extension:{step1:{title:"Instal ekstensi Phantom",description:"Kami menyarankan untuk mem-pin Phantom ke taskbar Anda untuk akses dompet yang lebih mudah."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},rabby:{extension:{step1:{title:"Instal ekstensi Rabby",description:"Kami merekomendasikan menempelkan Rabby ke taskbar Anda untuk akses lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan wallet Anda dengan metode yang aman. Jangan pernah berbagi frase rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},safeheron:{extension:{step1:{title:"Instal ekstensi Core",description:"Kami merekomendasikan menempelkan Safeheron ke taskbar Anda untuk akses lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan dompet Anda dengan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur dompet Anda, klik di bawah untuk menyegarkan browser dan memuat ekstensi."}}},taho:{extension:{step1:{title:"Instal ekstensi Taho",description:"Kami merekomendasikan pengepinan Taho ke taskbar Anda untuk akses yang lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda dengan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},talisman:{extension:{step1:{title:"Instal ekstensi Talisman",description:"Kami merekomendasikan menempelkan Talisman ke taskbar Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Dompet Ethereum",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frase pemulihan Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},xdefi:{extension:{step1:{title:"Instal ekstensi Dompet XDEFI",description:"Kami merekomendasikan menempelkan XDEFI Wallet ke taskbar Anda untuk akses lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda dengan metode yang aman. Jangan pernah berbagi frase rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},zeal:{extension:{step1:{title:"Instal ekstensi Zeal",description:"Kami merekomendasikan untuk mem-pin Zeal ke taskbar Anda untuk akses wallet lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},safepal:{extension:{step1:{title:"Pasang ekstensi SafePal Wallet",description:"Klik di pojok kanan atas browser Anda dan pin SafePal Wallet untuk akses mudah."},step2:{title:"Buat atau Impor sebuah dompet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan SafePal Wallet, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}},qr_code:{step1:{title:"Buka aplikasi SafePal Wallet",description:"Letakkan SafePal Wallet di layar utama Anda untuk akses yang lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Ketuk WalletConnect di Pengaturan",description:"Pilih Koneksi Baru, lalu pindai kode QR dan konfirmasi petunjuk untuk terhubung."}}},desig:{extension:{step1:{title:"Instal ekstensi Desig",description:"Kami merekomendasikan menempelkan Desig ke taskbar Anda untuk akses dompet Anda lebih mudah."},step2:{title:"Buat Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},subwallet:{extension:{step1:{title:"Instal ekstensi SubWallet",description:"Kami merekomendasikan menempelkan SubWallet ke taskbar Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frase pemulihan Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}},qr_code:{step1:{title:"Buka aplikasi SubWallet",description:"Kami merekomendasikan menaruh SubWallet di layar utama Anda untuk akses lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Tekan tombol scan",description:"Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menghubungkan dompet Anda."}}},clv:{extension:{step1:{title:"Instal ekstensi CLV Wallet",description:"Kami merekomendasikan menempelkan CLV Wallet ke taskbar Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}},qr_code:{step1:{title:"Buka aplikasi CLV Wallet",description:"Kami sarankan untuk menempatkan CLV Wallet di layar utama Anda untuk akses yang lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Tekan tombol scan",description:"Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menghubungkan dompet Anda."}}},okto:{qr_code:{step1:{title:"Buka aplikasi Okto",description:"Tambahkan Okto ke layar utama Anda untuk akses cepat"},step2:{title:"Buat Wallet MPC",description:"Buat akun dan generate wallet"},step3:{title:"Ketuk WalletConnect di Pengaturan",description:"Ketuk ikon Scan QR di pojok kanan atas dan konfirmasi prompt untuk terhubung."}}},ledger:{desktop:{step1:{title:"Buka aplikasi Ledger Live",description:"Kami merekomendasikan menempatkan Ledger Live di layar utama Anda untuk akses lebih cepat."},step2:{title:"Atur Ledger Anda",description:"Atur Ledger baru atau hubungkan ke Ledger yang sudah ada."},step3:{title:"Hubungkan",description:"Setelah Anda scan, muncul prompt koneksi untuk Anda menghubungkan dompet Anda."}},qr_code:{step1:{title:"Buka aplikasi Ledger Live",description:"Kami merekomendasikan menempatkan Ledger Live di layar utama Anda untuk akses lebih cepat."},step2:{title:"Atur Ledger Anda",description:"Anda dapat melakukan sinkronisasi dengan aplikasi desktop atau menghubungkan Ledger Anda."},step3:{title:"Pindai kode",description:"Ketuk WalletConnect lalu Beralih ke Scanner. Setelah Anda scan, muncul prompt koneksi untuk Anda menghubungkan dompet Anda."}}}},Aw={connect_wallet:Db0,intro:wb0,sign_in:xb0,connect:kb0,connect_scan:_b0,connector_group:Sb0,get:Tb0,get_options:Pb0,get_mobile:Ib0,get_instructions:Ob0,chains:Rb0,profile:Nb0,wallet_connectors:Mb0},jb0={label:"ウォレットを接続"},zb0={title:"ウォレットとは何ですか?",description:"ウォレットは、デジタルアセットを送信、受信、保存、表示するために使用されます。また、各ウェブサイトで新たなアカウントやパスワードを作成する必要なく、ログインする新しい方法でもあります。",digital_asset:{title:"あなたのデジタル資産のための家",description:"ウォレットは、EthereumやNFTのようなデジタル資産を送信、受信、保存、表示するために使用されます。"},login:{title:"新しいログイン方法",description:"すべてのウェブサイトで新しいアカウントとパスワードを作成する代わりに、ウォレットを接続します。"},get:{label:"ウォレットを取得する"},learn_more:{label:"詳しくはこちら"}},Lb0={label:"アカウントを確認する",description:"接続を完了するには、このアカウントの所有者であることを証明するためにウォレットでメッセージに署名する必要があります。",message:{send:"メッセージを送信",preparing:"メッセージの準備中...",cancel:"キャンセル",preparing_error:"メッセージの準備中にエラーが発生しました、再試行してください!"},signature:{waiting:"署名を待っています...",verifying:"署名を検証中...",signing_error:"メッセージの署名中にエラーが発生しました、再試行してください!",verifying_error:"署名の検証中にエラーが発生しました、再試行してください!",oops_error:"おっと、何かが間違っていました!"}},$b0={label:"接続",title:"ウォレットを接続する",new_to_ethereum:{description:"Ethereumのウォレットが初めてですか?",learn_more:{label:"詳しくはこちら"}},learn_more:{label:"詳しくはこちら"},recent:"最近利用しました",status:{opening:"%{wallet}を開いています...",not_installed:"%{wallet} はインストールされていません",not_available:"%{wallet} は利用できません",confirm:"エクステンションで接続を確認してください"},secondary_action:{get:{description:"%{wallet}がありませんか?",label:"取得"},install:{label:"インストール"},retry:{label:"再試行"}},walletconnect:{description:{full:"公式のWalletConnectモーダルが必要ですか?",compact:"WalletConnectモーダルが必要ですか?"},open:{label:"開く"}}},Ub0={title:"%{wallet}でスキャン",fallback_title:"携帯電話でスキャンしてください"},Wb0={recommended:"おすすめのウォレット",other:"その他",popular:"人気のウォレット",more:"もっと",others:"その他"},qb0={title:"ウォレットを取得",action:{label:"取得"},mobile:{description:"モバイルウォレット"},extension:{description:"ブラウザ拡張"},mobile_and_extension:{description:"モバイルウォレットと拡張機能"},mobile_and_desktop:{description:"モバイルとデスクトップウォレット"},looking_for:{title:"お探しのウォレットがありませんか?",mobile:{description:"メイン画面でウォレットを選択し、異なるウォレットプロバイダーで始めてください。"},desktop:{compact_description:"メイン画面でウォレットを選択し、異なるウォレットプロバイダーで始めてください。",wide_description:"左側のウォレットを選択して、別のウォレットプロバイダーで始めてください。"}}},Hb0={title:"%{wallet}で始める",short_title:"%{wallet}を取得する",mobile:{title:"モバイル用 %{wallet}",description:"モバイルウォレットを使用して、イーサリアムの世界を探索します。",download:{label:"アプリを取得"}},extension:{title:"%{wallet} for %{browser}",description:"お好きなウェブブラウザからウォレットに直接アクセスします。",download:{label:"%{browser}に追加"}},desktop:{title:"%{wallet} for %{platform}",description:"あなたの強力なデスクトップからネイティブにウォレットにアクセスします。",download:{label:"%{platform}に追加する"}}},Gb0={title:"%{wallet}をインストール",description:"iOSまたはAndroidでダウンロードするために電話でスキャン",continue:{label:"続行"}},Vb0={mobile:{connect:{label:"接続"},learn_more:{label:"詳しくはこちら"}},extension:{refresh:{label:"更新"},learn_more:{label:"詳しくはこちら"}},desktop:{connect:{label:"接続"},learn_more:{label:"詳しくはこちら"}}},Kb0={title:"ネットワークを切り替える",wrong_network:"誤ったネットワークが検出されました、続行するには切り替えるか切断してください。",confirm:"ウォレットで確認する",switching_not_supported:"あなたのウォレットは %{appName}からネットワークを切り替えることをサポートしていません。ウォレット内でネットワークを切り替えてみてください。",switching_not_supported_fallback:"あなたのウォレットは、このアプリからネットワークを切り替えることをサポートしていません。代わりにウォレット内からネットワークを切り替えてみてください。",disconnect:"切断する",connected:"接続しました"},Qb0={disconnect:{label:"切断する"},copy_address:{label:"アドレスをコピーする",copied:"コピーしました!"},explorer:{label:"エクスプローラーで詳しく見る"},transactions:{description:"%{appName} トランザクションがここに表示されます...",description_fallback:"あなたのトランザクションはここに表示されます...",recent:{title:"最近のトランザクション"},clear:{label:"すべてクリア"}}},Jb0={argent:{qr_code:{step1:{description:"より速くウォレットにアクセスするために、Argentをホーム画面に置いてください。",title:"Argentアプリを開く"},step2:{description:"ウォレットとユーザーネームを作成するか、既存のウォレットをインポートします。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",title:"「QRをスキャン」ボタンをタップします"}}},bifrost:{qr_code:{step1:{description:"より速くアクセスできるように、Bifrost Walletをホーム画面に置くことをお勧めします。",title:"Bifrost Walletアプリを開きます"},step2:{description:"リカバリーフレーズを使用してウォレットを作成またはインポートします。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",title:"「スキャン」ボタンをタップします"}}},bitget:{qr_code:{step1:{description:"より迅速なアクセスのために、ホーム画面にBitget Walletを配置することをお勧めします。",title:"Bitget Walletアプリを開く"},step2:{description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",title:"スキャンボタンをタップする"}},extension:{step1:{description:"ウォレットへのより迅速なアクセスのためにBitget Walletをタスクバーにピン留めすることをお勧めします。",title:"Bitget Wallet拡張機能をインストールします"},step2:{description:"ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成またはインポートします"},step3:{description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。",title:"ブラウザを更新する"}}},bitski:{extension:{step1:{description:"ウォレットへの素早いアクセスのために、Bitskiをタスクバーにピン留めすることをお勧めします。",title:"Bitskiエクステンションをインストールする"},step2:{description:"ウォレットを安全な方法でバックアップしてください。シークレットフレーズは誰とも共有しないでください。",title:"ウォレットを作成するか、インポートする"},step3:{description:"ウォレットのセットアップが完了したら、以下をクリックしてブラウザを更新し、エクステンションを読み込みます。",title:"ブラウザを更新する"}}},coin98:{qr_code:{step1:{description:"Coin98ウォレットをホーム画面に置くことで、ウォレットへのアクセスが高速化されることをお勧めします。",title:"Coin98ウォレットアプリを開きます"},step2:{description:"電話のバックアップ機能を使用して、ウォレットを簡単にバックアップすることができます。",title:"ウォレットを作成またはインポートする"},step3:{description:"スキャン後、ウォレットへの接続を促すプロンプトが表示されます。",title:"WalletConnectボタンをタップします"}},extension:{step1:{description:"ブラウザの右上をクリックして、Coin98ウォレットをピン留めして簡単にアクセスできるようにします。",title:"Coin98ウォレットの拡張機能をインストールします"},step2:{description:"新しいウォレットを作成するか、既存のものをインポートします。",title:"ウォレットを作成またはインポートする"},step3:{description:"Coin98ウォレットをセットアップしたら、下のリンクをクリックしてブラウザを更新し、拡張機能をロードします。",title:"ブラウザを更新する"}}},coinbase:{qr_code:{step1:{description:"より素早くアクセスできるように、Coinbaseウォレットをホームスクリーンに置くことをお勧めします。",title:"Coinbase Walletアプリを開く"},step2:{description:"クラウドバックアップ機能を使用して、簡単にウォレットをバックアップできます。",title:"ウォレットを作成またはインポートする"},step3:{description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",title:"スキャンボタンをタップする"}},extension:{step1:{description:"タスクバーにCoinbase Walletをピン留めして、ウォレットにより早くアクセスできるように推奨します。",title:"Coinbase Wallet拡張機能をインストールする"},step2:{description:"必ず安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰にも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"ウォレットの設定が完了したら、下のボタンをクリックしてブラウザを更新し、拡張機能をロードします。",title:"ブラウザを更新する"}}},core:{qr_code:{step1:{description:"ウォレットへの迅速なアクセスのため、コアをホーム画面に設定することを推奨します。",title:"Coreアプリを開く"},step2:{description:"電話のバックアップ機能を使って、簡単にウォレットをバックアップできます。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後、ウォレットを接続するようにプロンプトが表示されます。",title:"WalletConnectボタンをタップする"}},extension:{step1:{description:"ウォレットへのより迅速なアクセスのために、タスクバーにCoreをピン留めすることをお勧めします。",title:"Core拡張機能をインストールする"},step2:{description:"セキュアな方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成またはインポートする"},step3:{description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。",title:"ブラウザを更新する"}}},fox:{qr_code:{step1:{description:"より迅速なアクセスのために、ホーム画面にFoxWalletを置くことをお勧めします。",title:"FoxWalletアプリを開く"},step2:{description:"セキュアな方法を使用してウォレットをバックアップすることを確認してください。秘密のフレーズは誰とも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。",title:"スキャンボタンをタップします"}}},frontier:{qr_code:{step1:{description:"Frontierウォレットをホーム画面に置くことで、より早くアクセスできることをお勧めします。",title:"Frontierウォレットアプリを開きます"},step2:{description:"セキュアな方法を使用してウォレットをバックアップすることを確認してください。秘密のフレーズは誰とも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後に、ウォレットの接続を促すメッセージが表示されます。",title:"スキャンボタンをタップします"}},extension:{step1:{description:"より迅速なウォレットへのアクセスを可能にするために、フロンティアウォレットをタスクバーにピン留めすることを推奨します。",title:"フロンティアウォレットの拡張機能をインストールします"},step2:{description:"安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"ウォレットの設定が完了したら、ブラウザを更新して拡張機能を読み込みます。",title:"ブラウザを更新する"}}},im_token:{qr_code:{step1:{title:"imTokenアプリを開く",description:"ウォレットへのアクセスを速くするために、imTokenアプリをホーム画面に置いてください。"},step2:{title:"ウォレットを作成またはインポート",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"右上隅のスキャナーアイコンをタップします",description:"新しい接続を選択し、QRコードをスキャンしてプロンプトを確認し接続します。"}}},metamask:{qr_code:{step1:{title:"MetaMaskアプリを開きます",description:"迅速なアクセスのために、MetaMaskをホーム画面に置くことをお勧めします。"},step2:{title:"ウォレットを作成またはインポートします",description:"必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。"},step3:{title:"スキャンボタンをタップします",description:"スキャンすると、ウォレットを接続するための接続プロンプトが表示されます。"}},extension:{step1:{title:"MetaMaskの拡張機能をインストールします",description:"ウォレットへのより速いアクセスのために、MetaMaskをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"安全な方法を使用してウォレットをバックアップし、秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新",description:"ウォレットを設定した後は、下のリンクをクリックしてブラウザを更新し、エクステンションを読み込んでください。"}}},okx:{qr_code:{step1:{title:"OKX Walletアプリを開く",description:"OKX Walletをホーム画面に配置して、より早くアクセスできるようにすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"セキュアな方法を使ってウォレットをバックアップしてください。秘密フレーズは誰とも共有しないでください。"},step3:{title:"スキャンボタンをタップする",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}},extension:{step1:{title:"OKXウォレット拡張機能をインストールする",description:"ウォレットへの迅速なアクセスのため、OKXウォレットをタスクバーにピン止めすることをお勧めします。"},step2:{title:"ウォレットを作成するか、インポートする",description:"セキュアな方法を使ってウォレットをバックアップしてください。秘密フレーズは誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、下をクリックしてブラウザをリフレッシュし、拡張機能を読み込みます。"}}},omni:{qr_code:{step1:{title:"Omniアプリを開く",description:"Omniをホーム画面に追加して、ウォレットへのアクセスを早めます。"},step2:{title:"ウォレットを作成またはインポート",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"QRアイコンをタップしてスキャン",description:"ホーム画面のQRアイコンをタップし、コードをスキャンし、プロンプトを確認して接続します。"}}},token_pocket:{qr_code:{step1:{title:"TokenPocketアプリを開く",description:"より速いアクセスのために、TokenPocketをホーム画面に置くことをお勧めします。"},step2:{title:"ウォレットを作成またはインポートする",description:"必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。"},step3:{title:"スキャンボタンをタップする",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}},extension:{step1:{title:"TokenPocketエクステンションをインストールする",description:"ウォレットへのより早いアクセスのために、TokenPocketをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットを安全な方法でバックアップすることを確認してください。シークレットフレーズを決して他の人と共有しないでください。"},step3:{title:"ブラウザを更新",description:"ウォレットのセットアップが完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},trust:{qr_code:{step1:{title:"Trust Walletアプリを開く",description:"ウォレットへの高速アクセスのために、Trust Walletをホーム画面に置きます。"},step2:{title:"ウォレットを作成またはインポート",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"設定でWalletConnectをタップします",description:"新しい接続を選択し、QRコードをスキャンして、プロンプトで接続を確認します。"}},extension:{step1:{title:"Trust Wallet拡張機能をインストールします",description:"ブラウザの右上をクリックし、Trust Walletをピン留めして簡単にアクセスできるようにします。"},step2:{title:"ウォレットを作成するかインポートします",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"ブラウザを更新する",description:"Trust Walletの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}}},uniswap:{qr_code:{step1:{title:"Uniswapアプリを開く",description:"Uniswapウォレットをホーム画面に追加して、ウォレットへのアクセスを高速化します。"},step2:{title:"ウォレットを作成またはインポートする",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"QRアイコンをタップしてスキャンする",description:"ホーム画面のQRアイコンをタップし、コードをスキャンしてプロンプトを確認して接続します。"}}},zerion:{qr_code:{step1:{title:"Zerionアプリを開く",description:"より速くアクセスするために、Zerionをホーム画面に置くことをお勧めします。"},step2:{title:"ウォレットを作成するか、インポートする",description:"必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。"},step3:{title:"スキャンボタンを押す",description:"スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。"}},extension:{step1:{title:"Zerion拡張機能をインストールする",description:"ウォレットへの素早いアクセスのため、Zerionをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットをセキュアな方法でバックアップすることを確認してください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットをセットアップしたら、下のボタンをクリックしてブラウザを更新し、拡張機能をロードします。"}}},rainbow:{qr_code:{step1:{title:"Rainbowアプリを開く",description:"ウォレットへの早いアクセスのために、Rainbowをホーム画面に置くことをおすすめします。"},step2:{title:"ウォレットを作成またはインポート",description:"電話のバックアップ機能を使用して、簡単にウォレットをバックアップすることができます。"},step3:{title:"スキャンボタンをタップする",description:"スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。"}}},enkrypt:{extension:{step1:{description:"ウォレットへのアクセスをより早くするため、タスクバーにEnkrypt Walletをピン留めすることを推奨します。",title:"Enkrypt Wallet拡張機能をインストールしてください"},step2:{description:"安全な方法でウォレットのバックアップを必ず取り、秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成するか、インポートする"},step3:{description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。",title:"ブラウザを更新する"}}},frame:{extension:{step1:{description:"ウォレットへのアクセスをより早くするため、タスクバーにFrameをピン留めすることを推奨します。",title:"Frameとその付属の拡張機能をインストール"},step2:{description:"ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成、またはインポート"},step3:{description:"ウォレットの設定が完了したら、下のリンクをクリックしてブラウザを更新し、拡張機能をロードします。",title:"ブラウザを更新"}}},one_key:{extension:{step1:{title:"OneKey Wallet拡張機能をインストール",description:"ウォレットへのアクセスを素早く行うため、OneKey Walletをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成、またはインポート",description:"安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},phantom:{extension:{step1:{title:"Phantom拡張機能をインストールする",description:"ウォレットへの容易なアクセスのため、Phantomをタスクバーにピン留めすることを推奨します。"},step2:{title:"ウォレットを作成またはインポートする",description:"安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、エクステンションを読み込みます。"}}},rabby:{extension:{step1:{title:"Rabbyエクステンションをインストールする",description:"ウォレットへの素早いアクセスのため、タスクバーにRabbyをピン止めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"セキュアな方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新",description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},safeheron:{extension:{step1:{title:"コア拡張機能をインストール",description:"ウォレットへの素早いアクセスのため、タスクバーにSafeheronをピン止めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"確実に安全な方法でウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},taho:{extension:{step1:{title:"Taho拡張機能をインストールする",description:"ウォレットへのより迅速なアクセスのため、Tahoをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成するか、インポートする",description:"確実に安全な方法でウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},talisman:{extension:{step1:{title:"Talisman拡張機能をインストールする",description:"ウォレットへのより早いアクセスのために、Talismanをタスクバーにピン留めすることをお勧めします。"},step2:{title:"Ethereumウォレットを作成するか、インポートする",description:"ウォレットを安全な方法でバックアップしておくことを確認してください。リカバリーフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},xdefi:{extension:{step1:{title:"XDEFI Wallet拡張機能をインストールする",description:"XDEFI Walletをタスクバーにピン留めすることで、ウォレットへのアクセスが速くなることをお勧めします。"},step2:{title:"ウォレットの作成またはインポート",description:"ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードしてください。"}}},zeal:{extension:{step1:{title:"Zeal 拡張機能をインストール",description:"ウォレットに素早くアクセスするために、タスクバーに Zeal をピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}}},safepal:{extension:{step1:{title:"SafePal Wallet拡張機能をインストールする",description:"ブラウザの右上でクリックし、Easy AccessのためにSafePal Walletをピン留めします。"},step2:{title:"ウォレットを作成またはインポートする",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"ブラウザを更新する",description:"SafePal Walletのセットアップが完了したら、以下をクリックしてブラウザをリフレッシュし、エクステンションをロードします。"}},qr_code:{step1:{title:"SafePal Walletアプリを開く",description:"SafePal Walletをホーム画面に置くことで、ウォレットへの素早いアクセスが可能になります。"},step2:{title:"ウォレットを作成またはインポート",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"設定でWalletConnectをタップします",description:"新しい接続を選択し、QRコードをスキャンしてプロンプトを確認し接続します。"}}},desig:{extension:{step1:{title:"Desig拡張機能をインストール",description:"あなたのウォレットへの簡単なアクセスのために、Desigをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}}},subwallet:{extension:{step1:{title:"SubWallet拡張機能をインストール",description:"ウォレットへのより素早いアクセスのため、SubWalletをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットを安全な方法でバックアップしておくことを確認してください。リカバリーフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}},qr_code:{step1:{title:"SubWalletアプリを開く",description:"より迅速なアクセスのために、SubWalletをホーム画面に置くことをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"「スキャン」ボタンをタップします",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}}},clv:{extension:{step1:{title:"CLV Wallet拡張機能をインストール",description:"ウォレットへのより素早いアクセスのため、CLV Walletをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}},qr_code:{step1:{title:"CLV Walletアプリを開く",description:"より迅速なアクセスのために、ホーム画面にCLV Walletを置くことをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"「スキャン」ボタンをタップします",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}}},okto:{qr_code:{step1:{title:"Oktoアプリを開く",description:"素早くアクセスするために、ホーム画面にOktoを追加します"},step2:{title:"MPCウォレットを作成する",description:"アカウントを作成し、ウォレットを生成します"},step3:{title:"設定でWalletConnectをタップします",description:"右上のScan QRアイコンをタップし、接続するためのプロンプトを確認します。"}}},ledger:{desktop:{step1:{title:"Ledger Liveアプリを開く",description:"より速いアクセスのために、ホーム画面にLedger Liveを置くことを推奨します。"},step2:{title:"あなたのLedgerを設定する",description:"新しいLedgerを設定するか、既存のものに接続します。"},step3:{title:"接続",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}},qr_code:{step1:{title:"Ledger Liveアプリを開く",description:"より速いアクセスのために、ホーム画面にLedger Liveを置くことを推奨します。"},step2:{title:"あなたのLedgerを設定する",description:"デスクトップアプリと同期するか、あなたのLedgerに接続することができます。"},step3:{title:"コードをスキャンする",description:"WalletConnectをタップし、スキャナーに切り替えてください。スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}}}},yw={connect_wallet:jb0,intro:zb0,sign_in:Lb0,connect:$b0,connect_scan:Ub0,connector_group:Wb0,get:qb0,get_options:Hb0,get_mobile:Gb0,get_instructions:Vb0,chains:Kb0,profile:Qb0,wallet_connectors:Jb0},Zb0={label:"지갑 연결"},Yb0={title:"지갑이란 무엇인가요?",description:"지갑은 디지털 자산을 보내고, 받고, 저장하고, 표시하는 데 사용됩니다. 또한, 모든 웹 사이트에서 새 계정과 비밀번호를 생성할 필요 없이 로그인하는 새로운 방법입니다.",digital_asset:{title:"당신의 디지털 자산을 위한 집",description:"지갑은 이더리움 및 NFT와 같은 디지털 자산을 보내고, 받고, 저장하고, 표시하는데 사용됩니다."},login:{title:"새로운 로그인 방식",description:"모든 웹사이트에서 새 계정과 비밀번호를 생성하는 대신, 당신의 지갑을 연결하기만 하면 됩니다."},get:{label:"지갑 가져오기"},learn_more:{label:"더 알아보기"}},Xb0={label:"계정을 확인하세요",description:"연결을 완료하려면 이 계정의 소유자임을 확인하기 위해 지갑에 메시지에 서명해야 합니다.",message:{send:"메시지 보내기",preparing:"메시지 준비 중...",cancel:"취소",preparing_error:"메시지 준비 중 오류가 발생했습니다. 다시 시도하세요!"},signature:{waiting:"서명을 기다리는 중...",verifying:"서명 검증 중...",signing_error:"메시지 서명 중 오류가 발생했습니다. 다시 시도하세요!",verifying_error:"서명 검증 중 오류가 발생했습니다. 다시 시도하세요!",oops_error:"앗, 문제가 발생했습니다!"}},ug0={label:"연결",title:"지갑 연결",new_to_ethereum:{description:"이더리움 지갑에 처음 접하시나요?",learn_more:{label:"더 알아보기"}},learn_more:{label:"더 알아보기"},recent:"최근",status:{opening:"%{wallet}열기 ...",not_installed:"%{wallet} 가 설치되어 있지 않습니다",not_available:"%{wallet} 를 사용할 수 없습니다",confirm:"확장기능에서 연결을 확인하세요"},secondary_action:{get:{description:"%{wallet}가 없나요?",label:"GET"},install:{label:"설치"},retry:{label:"다시 시도"}},walletconnect:{description:{full:"공식 WalletConnect 모달이 필요한가요?",compact:"WalletConnect 모달이 필요한가요?"},open:{label:"열기"}}},eg0={title:"%{wallet}로 스캔하기",fallback_title:"휴대폰으로 스캔하기"},tg0={recommended:"추천",other:"기타",popular:"인기",more:"더 보기",others:"다른 사항들"},ng0={title:"월렛 받기",action:{label:"받기"},mobile:{description:"모바일 월렛"},extension:{description:"브라우저 확장 프로그램"},mobile_and_extension:{description:"모바일 지갑 및 확장 프로그램"},mobile_and_desktop:{description:"모바일 및 데스크톱 지갑"},looking_for:{title:"찾고 계신 것이 아닌가요?",mobile:{description:"메인 화면에서 다른 지갑 제공자를 사용하기 위해 지갑을 선택하세요."},desktop:{compact_description:"메인 화면에서 다른 지갑 제공자를 사용하기 위해 지갑을 선택하세요.",wide_description:"왼쪽에서 지갑을 선택하여 다른 지갑 제공자를 사용하기 시작하세요."}}},rg0={title:"%{wallet}로 시작하십시오",short_title:"%{wallet}얻기",mobile:{title:"모바일용 %{wallet}",description:"모바일 지갑으로 이더리움 세계를 탐험하세요.",download:{label:"앱 받기"}},extension:{title:"%{browser}용 %{wallet}",description:"가장 좋아하는 웹 브라우저에서 바로 지갑에 접근하세요.",download:{label:"추가하기 %{browser}"}},desktop:{title:"%{wallet} 용 %{platform}",description:"강력한 데스크톱에서 네이티브로 지갑에 접근하세요.",download:{label:"%{platform}에 추가"}}},ig0={title:"설치하기 %{wallet}",description:"iOS 또는 Android에서 다운로드하기 위해 휴대폰으로 스캔하세요",continue:{label:"계속"}},ag0={mobile:{connect:{label:"연결"},learn_more:{label:"더 알아보기"}},extension:{refresh:{label:"새로고침"},learn_more:{label:"더 알아보기"}},desktop:{connect:{label:"연결"},learn_more:{label:"더 알아보기"}}},og0={title:"네트워크 전환",wrong_network:"잘못된 네트워크를 탐지했습니다, 계속하려면 전환하거나 연결을 해제하세요.",confirm:"지갑에서 승인",switching_not_supported:"지갑에서 %{appName}네트워크를 전환하는 것은 지원되지 않습니다. 대신 지갑 내에서 네트워크를 전환해 보세요.",switching_not_supported_fallback:"당신의 지갑은 이 앱에서 네트워크를 바꾸는 것을 지원하지 않습니다. 대신 지갑 내에서 네트워크를 변경해 보십시오.",disconnect:"연결 해제",connected:"연결됨"},sg0={disconnect:{label:"연결 해제"},copy_address:{label:"주소 복사",copied:"복사됨!"},explorer:{label:"탐색기에서 더 보기"},transactions:{description:"%{appName} 거래가 여기에 나타납니다...",description_fallback:"여기에 트랜잭션이 표시됩니다...",recent:{title:"최근 거래 내역"},clear:{label:"모두 지우기"}}},fg0={argent:{qr_code:{step1:{description:"지갑에 더 빠르게 액세스하려면 Argent를 홈 화면에 놓으십시오.",title:"Argent 앱을 열기"},step2:{description:"지갑과 사용자 이름을 생성하거나 기존의 지갑을 가져옵니다.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다.",title:"QR 코드 스캔 버튼을 누르기"}}},bifrost:{qr_code:{step1:{description:"더 빠른 접근을 위해 홈 화면에 Bifrost Wallet을 놓는 것을 권장합니다.",title:"Bifrost 지갑 앱을 열어주세요"},step2:{description:"복구 문구를 사용하여 지갑을 생성하거나 가져옵니다.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔 후 연결 프롬프트가 나타나고 지갑을 연결할 수 있습니다.",title:"스캔 버튼을 누릅니다"}}},bitget:{qr_code:{step1:{description:"더 빠른 접근을 위해 Bitget 지갑을 홈 화면에 두는 것을 권장합니다.",title:"Bitget 지갑 앱을 열십시오"},step2:{description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔 후, 지갑을 연결하라는 연결 요청 메시지가 나타납니다.",title:"스캔 버튼을 누르십시오"}},extension:{step1:{description:"지갑에 빠르게 액세스하기 위해 Bitget Wallet을 작업 표시줄에 고정하는 것을 권장합니다.",title:"Bitget Wallet 확장 프로그램을 설치하세요"},step2:{description:"지갑을 안전한 방법으로 백업하십시오. 절대로 비밀 문구를 누구와도 공유하지 마십시오.",title:"지갑 생성 또는 가져오기"},step3:{description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요.",title:"브라우저를 새로 고침하세요"}}},bitski:{extension:{step1:{description:"지갑에 더 빠르게 액세스하기 위해 Bitski를 작업 표시줄에 고정하는 것을 권장합니다.",title:"Bitski 확장 기능을 설치합니다"},step2:{description:"안전한 방법을 사용하여 지갑을 백업하십시오. 비밀 문구를 누구와도 공유하지 마십시오.",title:"지갑 만들기 또는 가져오기"},step3:{description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드하세요.",title:"브라우저를 새로고침하세요"}}},coin98:{qr_code:{step1:{description:"지갑에 빠르게 액세스하기 위해 Coin98 Wallet을 홈 화면에 두는 것을 권장합니다.",title:"Coin98 Wallet 앱을 열기"},step2:{description:"휴대폰에서 백업 기능을 이용하여 지갑을 쉽게 백업할 수 있습니다.",title:"지갑 만들기 또는 가져오기"},step3:{description:"스캔한 후 연결 프롬프트가 나타나 지갑을 연결하도록 합니다.",title:"WalletConnect 버튼을 누르십시오"}},extension:{step1:{description:"브라우저 오른쪽 상단을 클릭하고 쉽게 액세스할 수 있도록 Coin98 Wallet을 고정하십시오.",title:"Coin98 Wallet 확장 프로그램을 설치하십시오"},step2:{description:"새로운 지갑을 만들거나 기존의 지갑을 가져옵니다.",title:"지갑을 만들거나 가져옵니다"},step3:{description:"Coin98 Wallet을 설정하면 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하십시오.",title:"브라우저를 새로 고치십시오"}}},coinbase:{qr_code:{step1:{description:"더 빠른 액세스를 위해 Coinbase Wallet을 홈 화면에 두는 것을 권장합니다.",title:"Coinbase Wallet 앱을 엽니다"},step2:{description:"클라우드 백업 기능을 사용하여 지갑을 쉽게 백업할 수 있습니다.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔한 후에 지갑을 연결하라는 연결 프롬프트가 나타납니다.",title:"스캔 버튼을 탭하세요"}},extension:{step1:{description:"지갑에 더 빠르게 접근할 수 있도록 Coinbase Wallet을 작업 표시줄에 고정하는 것을 권장합니다.",title:"Coinbase Wallet 확장 프로그램을 설치하세요"},step2:{description:"안전한 방법을 사용하여 지갑을 백업하십시오. 비밀 문구는 절대로 누구와도 공유하지 마십시오.",title:"지갑 만들기 또는 가져오기"},step3:{description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하십시오.",title:"브라우저 새로 고침"}}},core:{qr_code:{step1:{description:"지갑에 빠르게 액세스할 수 있도록 Core를 홈 화면에 두는 것을 추천드립니다.",title:"Core 앱 열기"},step2:{description:"휴대폰에서 우리의 백업 기능을 이용해 지갑을 쉽게 백업할 수 있습니다.",title:"지갑 만들기 또는 가져오기"},step3:{description:"스캔 한 후에는 지갑을 연결하라는 연결 요청이 표시됩니다.",title:"WalletConnect 버튼을 누르세요"}},extension:{step1:{description:"지갑에 더 빠르게 액세스하기 위해 작업 표시줄에 Core를 고정하는 것을 권장합니다.",title:"Core 확장 프로그램을 설치하십시오"},step2:{description:"안전한 방법을 사용하여 지갑을 백업해야 합니다. 절대로 비밀 문구를 다른 사람과 공유하지 마십시오.",title:"지갑 만들기 또는 가져오기"},step3:{description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하십시오.",title:"브라우저를 새로 고치세요"}}},fox:{qr_code:{step1:{description:"FoxWallet을 홈 화면에 놓는 것을 추천합니다. 이렇게 하면 더 빠르게 접근할 수 있습니다.",title:"FoxWallet 앱을 열어주세요"},step2:{description:"지갑을 안전한 방법으로 백업하십시오. 절대로 비밀 문구를 다른 사람과 공유하지 마십시오.",title:"지갑을 생성하거나 가져오기"},step3:{description:"스캔 후, 지갑을 연결하라는 연결 프롬프트가 표시됩니다.",title:"스캔 버튼을 누르세요"}}},frontier:{qr_code:{step1:{description:"Frontier Wallet을 홈 화면에 놓는 것을 추천합니다. 이렇게 하면 더 빠르게 접근할 수 있습니다.",title:"Frontier Wallet 앱을 열어주세요"},step2:{description:"지갑을 안전한 방법으로 백업해야 합니다. 비밀 구문을 누구와도 공유하지 마세요.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔 후에 지갑을 연결하라는 연결 프롬프트가 표시됩니다.",title:"스캔 버튼을 누르세요"}},extension:{step1:{description:"지갑에 더 빠르게 액세스 할 수 있도록 Frontier Wallet을 작업 표시줄에 고정하는 것을 권장합니다.",title:"Frontier Wallet 확장 기능 설치"},step2:{description:"지갑을 안전한 방법으로 백업해야 합니다. 비밀 구문을 누구와도 공유하지 마세요.",title:"지갑 생성 또는 가져오기"},step3:{description:"지갑을 설정한 후에 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하십시오.",title:"브라우저를 새로 고칩니다"}}},im_token:{qr_code:{step1:{title:"imToken 앱을 연다",description:"당신의 지갑에 더 빠르게 접근하기 위해 imToken 앱을 홈 화면에 둡니다."},step2:{title:"지갑을 만들거나 불러옵니다",description:"새 지갑을 생성하거나 기존의 것을 가져옵니다."},step3:{title:"오른쪽 상단의 스캐너 아이콘을 누릅니다",description:"새 연결을 선택하고 QR 코드를 스캔한 뒤, 연결하려는 프롬프트를 확인합니다."}}},metamask:{qr_code:{step1:{title:"MetaMask 앱을 엽니다",description:"빠른 액세스를 위해 MetaMask를 홈 화면에 두는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"당신의 지갑을 안전한 방법으로 백업하는 것을 잊지 마세요. 절대로 비밀 구절을 공유하지 마세요."},step3:{title:"스캔 버튼을 누릅니다",description:"스캔한 후에 지갑을 연결하라는 연결 프롬프트가 나타납니다."}},extension:{step1:{title:"MetaMask 확장 프로그램을 설치하세요",description:"지갑에 빠르게 접근하기 위해 MetaMask를 작업표시줄에 고정하는 것을 추천합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 결코 비밀 문구를 다른 사람과 공유하지 마세요."},step3:{title:"브라우저를 새로 고치세요",description:"지갑 설정을 마친 후에는 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}}},okx:{qr_code:{step1:{title:"OKX Wallet 앱을 열기",description:"더 빠른 접근을 위해 OKX 지갑을 홈 화면에 두는 것을 추천합니다."},step2:{title:"지갑 만들기 또는 불러오기",description:"안전한 방법으로 지갑을 백업하십시오. 절대 비밀 문구를 다른 사람과 공유하지 마세요."},step3:{title:"스캔 버튼을 탭하세요",description:"스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다."}},extension:{step1:{title:"OKX 지갑 확장 프로그램 설치하기",description:"지갑에 빠르게 접근할 수 있도록 OKX 지갑을 작업 표시줄에 고정하는 것을 추천합니다."},step2:{title:"지갑 만들기 또는 불러오기",description:"당신의 지갑을 안전한 방법으로 백업해야 합니다. 비밀 문구를 절대로 다른 사람과 공유하지 마세요."},step3:{title:"브라우저를 새로 고치세요",description:"지갑을 설정한 후, 브라우저를 새로 고치고 확장 기능을 로드하기 위해 아래를 클릭하세요."}}},omni:{qr_code:{step1:{title:"Omni 앱을 열기",description:"더 빠른 액세스를 위해 Omni를 홈 스크린에 추가하세요."},step2:{title:"지갑 만들기 또는 가져오기",description:"새로운 지갑을 만들거나 기존의 하나를 가져옵니다."},step3:{title:"QR 아이콘을 탭하고 스캔하기",description:"홈 화면의 QR 아이콘을 탭하고, 코드를 스캔하고 프롬프트를 확인하여 연결하세요."}}},token_pocket:{qr_code:{step1:{title:"TokenPocket 앱을 열어주세요",description:"빠른 접근을 위해 홈 화면에 TokenPocket을 추가하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 절대로 누구에게도 비밀 문구를 공유하지 마세요."},step3:{title:"스캔 버튼을 탭하세요",description:"스캔 후에 지갑을 연결하라는 프롬프트가 표시됩니다."}},extension:{step1:{title:"TokenPocket 확장 기능을 설치하십시오",description:"지갑에 빠르게 접근하기 위해 TokenPocket를 작업 표시줄에 고정하는 것을 추천합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 문구를 다른 사람과 공유하지 마세요."},step3:{title:"브라우저 새로 고침",description:"지갑을 설정하면 아래를 클릭하여 브라우저를 새로 고침하고 확장 기능을 로드합니다."}}},trust:{qr_code:{step1:{title:"Trust Wallet 앱을 열기",description:"지갑에 빠르게 접근하기 위해 Trust Wallet을 홈 스크린에 두십시오."},step2:{title:"지갑 생성 또는 가져오기",description:"새로운 지갑을 생성하거나 기존의 것을 가져오십시오."},step3:{title:"설정에서 WalletConnect를 탭하십시오",description:"새 연결을 선택한 다음 QR 코드를 스캔하고, 연결을 확인하는 프롬프트를 확인하십시오."}},extension:{step1:{title:"Trust Wallet 확장 기능을 설치하십시오",description:"브라우저의 오른쪽 상단을 클릭하고 Trust Wallet을 고정하여 쉽게 접근하십시오."},step2:{title:"지갑 생성 또는 가져오기",description:"새로운 지갑을 생성하거나 기존의 것을 가져오십시오."},step3:{title:"브라우저를 새로고침하세요",description:"Trust Wallet을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드합니다."}}},uniswap:{qr_code:{step1:{title:"Uniswap 앱을 엽니다",description:"Uniswap Wallet을 홈 화면에 추가하여 지갑에 더 빠르게 액세스하세요."},step2:{title:"지갑을 만들거나 가져오기",description:"새 지갑을 생성하거나 기존의 것을 가져옵니다."},step3:{title:"QR 아이콘을 누르고 스캔하기",description:"홈화면의 QR 아이콘을 누르고 코드를 스캔하고 프롬프트를 확인하여 연결하세요."}}},zerion:{qr_code:{step1:{title:"Zerion 앱을 엽니다",description:"더 빠른 접근을 위해 Zerion을 홈 화면에 두는 것을 권장합니다."},step2:{title:"지갑 만들기 또는 가져오기",description:"안전한 방법으로 지갑을 백업하십시오. 절대로 비밀 구절을 누군가와 공유하지 마십시오."},step3:{title:"스캔 버튼을 탭하십시오",description:"스캔 후 연결 프롬프트가 나타나 지갑을 연결하십시오."}},extension:{step1:{title:"Zerion 확장 프로그램을 설치하십시오",description:"지갑에 더 빠르게 접근할 수 있도록 Zerion을 작업 표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 비밀 구문을 절대로 다른 사람과 공유하지 마세요."},step3:{title:"브라우저를 새로 고치세요",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}}},rainbow:{qr_code:{step1:{title:"Rainbow 앱 열기",description:"지갑에 더 빠르게 접근하기 위해 홈 화면에 Rainbow를 두는 것을 추천합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"휴대폰에 있는 백업 기능을 사용하여 지갑을 쉽게 백업할 수 있습니다."},step3:{title:"스캔 버튼을 누르세요",description:"스캔 후, 지갑을 연결하라는 연결 프롬프트가 나타납니다."}}},enkrypt:{extension:{step1:{description:"지갑에 더 빠르게 접근하기 위해 작업 표시줄에 Enkrypt Wallet를 고정하는 것을 추천합니다.",title:"Enkrypt Wallet 확장 프로그램을 설치하세요"},step2:{description:"지갑을 안전한 방법으로 백업하십시오. 절대로 비밀 문구를 다른 사람과 공유하지 마십시오.",title:"지갑 생성 또는 가져오기"},step3:{description:"지갑을 설정한 후에는 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드하세요.",title:"브라우저 새로 고침"}}},frame:{extension:{step1:{description:"지갑에 더 빠르게 접근할 수 있도록 Frame을 작업 표시줄에 고정하는 것을 추천합니다.",title:"Frame 및 동반 확장 프로그램 설치"},step2:{description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 다른 사람과 공유하지 마세요.",title:"지갑 생성 또는 가져오기"},step3:{description:"지갑을 설정한 후에는 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드하세요.",title:"브라우저 새로 고침"}}},one_key:{extension:{step1:{title:"OneKey Wallet 확장 프로그램을 설치하세요",description:"지갑에 빠르게 접근할 수 있도록 OneKey Wallet을 작업 표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 불러오기",description:"지갑을 안전한 방법으로 백업하십시오. 절대로 비밀 문구를 다른 사람과 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하십시오",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드하십시오."}}},phantom:{extension:{step1:{title:"Phantom 확장 프로그램을 설치하세요",description:"지갑에 더 쉽게 접근할 수 있도록 Phantom을 작업 표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 불러오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 누구와도 비밀 복구 구문을 공유하지 마십시오."},step3:{title:"브라우저를 새로고침하십시오",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 기능을 로드하십시오."}}},rabby:{extension:{step1:{title:"Rabby 확장 프로그램을 설치하십시오",description:"지갑에 더 빠르게 액세스할 수 있도록 Rabby를 작업표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 만들기 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 누구와도 비밀 구문을 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하십시오",description:"지갑 설정을 완료하면 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드합니다."}}},safeheron:{extension:{step1:{title:"코어 확장 프로그램 설치",description:"지갑에 빠르게 액세스하기 위해 Safeheron을 작업 표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 만들기 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 비밀 문구를 절대 다른 사람과 공유하지 마십시오."},step3:{title:"브라우저 새로 고침",description:"지갑 설정을 완료하면 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드합니다."}}},taho:{extension:{step1:{title:"Taho 확장 프로그램 설치",description:"지갑에 더 빠르게 액세스하기 위해 Taho를 작업 표시줄에 고정하는 것을 추천합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 결코 비밀 문구를 누군가와 공유하지 마십시오."},step3:{title:"브라우저를 새로 고치십시오",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하십시오."}}},talisman:{extension:{step1:{title:"탈리스만 확장 프로그램 설치",description:"지갑에 더 빠르게 접근하기 위해 Talisman을 작업 표시줄에 고정하는 것을 추천합니다."},step2:{title:"이더리움 지갑 생성 또는 가져오기",description:"반드시 안전한 방법을 사용하여 지갑을 백업하십시오. 복구 문구를 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하십시오",description:"지갑을 설정 한 후 아래를 클릭하여 브라우저를 새로 고침하고 확장 기능을 로드하십시오."}}},xdefi:{extension:{step1:{title:"XDEFI 지갑 확장 기능을 설치하십시오",description:"지갑에 빠르게 액세스하기 위해 작업 표시줄에 XDEFI Wallet을 고정하는 것을 권장합니다."},step2:{title:"지갑을 만들거나 가져오기",description:"반드시 안전한 방법을 사용하여 지갑을 백업하십시오. 비밀 문구를 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하십시오",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하십시오."}}},zeal:{extension:{step1:{title:"Zeal 확장 프로그램을 설치하십시오",description:"월렛에 더 빠르게 액세스할 수 있도록 Zeal을 작업 표시 줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하세요",description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}}},safepal:{extension:{step1:{title:"SafePal Wallet 확장 프로그램을 설치하세요",description:"브라우저의 오른쪽 상단에서 클릭하고 SafePal Wallet을 고정하여 쉽게 접근하세요."},step2:{title:"지갑을 만들거나 가져옵니다",description:"새로운 지갑을 만들거나 기존의 지갑을 가져옵니다."},step3:{title:"브라우저를 새로 고침하세요",description:"SafePal Wallet을 설정한 후에는 아래를 클릭하여 브라우저를 새로 고치고 확장 기능을 로드하십시오."}},qr_code:{step1:{title:"SafePal Wallet 앱을 열십시오",description:"월렛에 빠르게 액세스할 수 있도록 SafePal Wallet을 홈 화면에 두십시오."},step2:{title:"지갑 생성 또는 가져오기",description:"새로운 지갑을 만들거나 기존의 지갑을 가져옵니다."},step3:{title:"설정에서 WalletConnect를 탭하십시오",description:"새 연결을 선택하고 QR 코드를 스캔한 뒤, 연결하려는 프롬프트를 확인합니다."}}},desig:{extension:{step1:{title:"Desig 확장 프로그램 설치",description:"당신의 지갑에 더 쉽게 접근하기 위해 작업 표시줄에 Desig을 고정하는 것을 권장합니다."},step2:{title:"지갑 생성",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하세요",description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}}},subwallet:{extension:{step1:{title:"SubWallet 확장 프로그램 설치",description:"당신의 지갑에 더 빠르게 접근하기 위해 작업 표시줄에 SubWallet을 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"반드시 안전한 방법을 사용하여 지갑을 백업하십시오. 복구 문구를 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하세요",description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}},qr_code:{step1:{title:"SubWallet 앱 열기",description:"더 빠른 접근을 위해 SubWallet을 홈 화면에 두는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오."},step3:{title:"스캔 버튼을 누릅니다",description:"스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다."}}},clv:{extension:{step1:{title:"CLV Wallet 확장 프로그램 설치",description:"당신의 지갑에 더 빠르게 접근하기 위해 작업 표시줄에 CLV Wallet을 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하세요",description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}},qr_code:{step1:{title:"CLV Wallet 앱을 엽니다",description:"더 빠른 접근을 위해 CLV Wallet을 홈 화면에 놓는 것이 좋습니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오."},step3:{title:"스캔 버튼을 누릅니다",description:"스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다."}}},okto:{qr_code:{step1:{title:"Okto 앱을 엽니다",description:"빠른 접근을 위해 Okto를 홈 화면에 추가합니다"},step2:{title:"MPC Wallet을 만듭니다",description:"계정을 만들고 지갑을 생성합니다"},step3:{title:"설정에서 WalletConnect를 탭하십시오",description:"오른쪽 상단의 QR 아이콘을 탭하고 연결하려면 알림을 확인합니다."}}},ledger:{desktop:{step1:{title:"Ledger Live 앱을 엽니다",description:"빠른 접근을 위해 Ledger Live를 홈화면에 두는 것을 권장합니다."},step2:{title:"Ledger 설정",description:"새 Ledger를 설정하거나 기존 Ledger에 연결하세요."},step3:{title:"연결",description:"스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다."}},qr_code:{step1:{title:"Ledger Live 앱을 엽니다",description:"빠른 접근을 위해 Ledger Live를 홈화면에 두는 것을 권장합니다."},step2:{title:"Ledger 설정",description:"데스크톱 앱과 동기화하거나 Ledger를 연결할 수 있습니다."},step3:{title:"코드를 스캔하십시오",description:"WalletConnect를 탭하고 스캐너로 전환합니다. 스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다."}}}},vw={connect_wallet:Zb0,intro:Yb0,sign_in:Xb0,connect:ug0,connect_scan:eg0,connector_group:tg0,get:ng0,get_options:rg0,get_mobile:ig0,get_instructions:ag0,chains:og0,profile:sg0,wallet_connectors:fg0},lg0={label:"Conectar Carteira"},cg0={title:"O que é uma Carteira?",description:"Uma carteira é usada para enviar, receber, armazenar e exibir ativos digitais. Também é uma nova forma de se conectar, sem precisar criar novas contas e senhas em todo site.",digital_asset:{title:"Um lar para seus ativos digitais",description:"Carteiras são usadas para enviar, receber, armazenar e exibir ativos digitais como Ethereum e NFTs."},login:{title:"Uma nova maneira de fazer login",description:"Em vez de criar novas contas e senhas em todos os sites, basta conectar sua carteira."},get:{label:"Obter uma Carteira"},learn_more:{label:"Saiba mais"}},dg0={label:"Verifique sua conta",description:"Para concluir a conexão, você deve assinar uma mensagem em sua carteira para confirmar que você é o proprietário desta conta.",message:{send:"Enviar mensagem",preparing:"Preparando mensagem...",cancel:"Cancelar",preparing_error:"Erro ao preparar a mensagem, tente novamente!"},signature:{waiting:"Aguardando assinatura...",verifying:"Verificando assinatura...",signing_error:"Erro ao assinar a mensagem, tente novamente!",verifying_error:"Erro ao verificar assinatura, tente novamente!",oops_error:"Ops, algo deu errado!"}},Eg0={label:"Conectar",title:"Conectar uma Carteira",new_to_ethereum:{description:"Novo nas carteiras Ethereum?",learn_more:{label:"Saiba mais"}},learn_more:{label:"Saiba mais"},recent:"Recente",status:{opening:"Abrindo %{wallet}...",not_installed:"%{wallet} não está instalado",not_available:"%{wallet} não está disponível",confirm:"Confirme a conexão na extensão"},secondary_action:{get:{description:"Não tem %{wallet}?",label:"OBTER"},install:{label:"INSTALAR"},retry:{label:"TENTAR DE NOVO"}},walletconnect:{description:{full:"Precisa do modal oficial do WalletConnect?",compact:"Precisa do modal WalletConnect?"},open:{label:"ABRIR"}}},pg0={title:"Digitalize com %{wallet}",fallback_title:"Digitalize com o seu telefone"},hg0={recommended:"Recomendado",other:"Outro",popular:"Popular",more:"Mais",others:"Outros"},Cg0={title:"Obter uma Carteira",action:{label:"OBTER"},mobile:{description:"Carteira Móvel"},extension:{description:"Extensão do Navegador"},mobile_and_extension:{description:"Carteira Móvel e Extensão"},mobile_and_desktop:{description:"Carteira para Mobile e Desktop"},looking_for:{title:"Não é o que você está procurando?",mobile:{description:"Selecione uma carteira na tela principal para começar com um provedor de carteira diferente."},desktop:{compact_description:"Selecione uma carteira na tela principal para começar com um provedor de carteira diferente.",wide_description:"Selecione uma carteira à esquerda para começar com um provedor de carteira diferente."}}},mg0={title:"Comece com %{wallet}",short_title:"Obtenha %{wallet}",mobile:{title:"%{wallet} para Móvel",description:"Use a carteira móvel para explorar o mundo do Ethereum.",download:{label:"Baixe o aplicativo"}},extension:{title:"%{wallet} para %{browser}",description:"Acesse sua carteira diretamente do seu navegador web favorito.",download:{label:"Adicionar ao %{browser}"}},desktop:{title:"%{wallet} para %{platform}",description:"Acesse sua carteira nativamente do seu desktop poderoso.",download:{label:"Adicionar ao %{platform}"}}},bg0={title:"Instale %{wallet}",description:"Escaneie com seu celular para baixar no iOS ou Android",continue:{label:"Continuar"}},gg0={mobile:{connect:{label:"Conectar"},learn_more:{label:"Saiba mais"}},extension:{refresh:{label:"Atualizar"},learn_more:{label:"Saiba mais"}},desktop:{connect:{label:"Conectar"},learn_more:{label:"Saiba mais"}}},Ag0={title:"Mudar Redes",wrong_network:"Rede errada detectada, mude ou desconecte para continuar.",confirm:"Confirme na Carteira",switching_not_supported:"Sua carteira não suporta a mudança de redes de %{appName}. Tente mudar de redes dentro da sua carteira.",switching_not_supported_fallback:"Sua carteira não suporta a troca de redes a partir deste aplicativo. Tente trocar de rede dentro de sua carteira.",disconnect:"Desconectar",connected:"Conectado"},yg0={disconnect:{label:"Desconectar"},copy_address:{label:"Copiar Endereço",copied:"Copiado!"},explorer:{label:"Veja mais no explorador"},transactions:{description:"%{appName} transações aparecerão aqui...",description_fallback:"Suas transações aparecerão aqui...",recent:{title:"Transações Recentes"},clear:{label:"Limpar Tudo"}}},vg0={argent:{qr_code:{step1:{description:"Coloque o Argent na tela inicial para um acesso mais rápido à sua carteira.",title:"Abra o aplicativo Argent"},step2:{description:"Crie uma carteira e nome de usuário, ou importe uma carteira existente.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois que você escanear, um prompt de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão Scan QR"}}},bifrost:{qr_code:{step1:{description:"Recomendamos colocar a Bifrost Wallet na sua tela inicial para um acesso mais rápido.",title:"Abra o aplicativo Bifrost Wallet"},step2:{description:"Crie ou importe uma carteira usando sua frase de recuperação.",title:"Criar ou Importar uma Carteira"},step3:{description:"Após você escanear, um prompt de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão de escanear"}}},bitget:{qr_code:{step1:{description:"Recomendamos colocar a Bitget Wallet na sua tela inicial para um acesso mais rápido.",title:"Abra o aplicativo Bitget Wallet"},step2:{description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, um prompt de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão de escaneamento"}},extension:{step1:{description:"Recomendamos fixar a Bitget Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão da Carteira Bitget"},step2:{description:"Certifique-se de fazer o backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},bitski:{extension:{step1:{description:"Recomendamos fixar o Bitski na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão Bitski"},step2:{description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},coin98:{qr_code:{step1:{description:"Recomendamos colocar a Carteira Coin98 na tela inicial para um acesso mais rápido à sua carteira.",title:"Abra o aplicativo Carteira Coin98"},step2:{description:"Você pode facilmente fazer backup de sua carteira usando nosso recurso de backup em seu telefone.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, uma solicitação de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão WalletConnect"}},extension:{step1:{description:"Clique no canto superior direito do seu navegador e fixe a Carteira Coin98 para fácil acesso.",title:"Instale a extensão da Carteira Coin98"},step2:{description:"Crie uma nova carteira ou importe uma existente.",title:"Criar ou Importar uma carteira"},step3:{description:"Depois de configurar a Carteira Coin98, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},coinbase:{qr_code:{step1:{description:"Recomendamos colocar a Carteira Coinbase na tela inicial para um acesso mais rápido.",title:"Abra o aplicativo Coinbase Wallet"},step2:{description:"Você pode fazer backup da sua carteira facilmente usando o recurso de backup na nuvem.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, um prompt de conexão aparecerá para que você conecte sua carteira.",title:"Toque no botão de escanear"}},extension:{step1:{description:"Recomendamos fixar o Coinbase Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão Coinbase Wallet"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},core:{qr_code:{step1:{description:"Recomendamos colocar o Core na tela inicial para um acesso mais rápido à sua carteira.",title:"Abra o aplicativo Core"},step2:{description:"Você pode facilmente salvar sua carteira usando nosso recurso de backup no seu celular.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, um prompt de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão WalletConnect"}},extension:{step1:{description:"Recomendamos fixar o Core na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão Core"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},fox:{qr_code:{step1:{description:"Recomendamos colocar o FoxWallet na tela inicial para um acesso mais rápido.",title:"Abra o aplicativo FoxWallet"},step2:{description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, uma solicitação de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão de escaneamento"}}},frontier:{qr_code:{step1:{description:"Recomendamos colocar o Frontier Wallet na tela inicial para um acesso mais rápido.",title:"Abra o aplicativo Frontier Wallet"},step2:{description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira.",title:"Toque no botão de varredura"}},extension:{step1:{description:"Recomendamos fixar a Carteira Frontier na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão da Carteira Frontier"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},im_token:{qr_code:{step1:{title:"Abra o aplicativo imToken",description:"Coloque o aplicativo imToken na tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque no ícone do Scanner no canto superior direito",description:"Escolha Nova Conexão, em seguida, escaneie o código QR e confirme o prompt para conectar."}}},metamask:{qr_code:{step1:{title:"Abra o aplicativo MetaMask",description:"Recomendamos colocar o MetaMask na tela inicial para um acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão escanear",description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}},extension:{step1:{title:"Instale a extensão MetaMask",description:"Recomendamos fixar o MetaMask na barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize o seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},okx:{qr_code:{step1:{title:"Abra o aplicativo da Carteira OKX",description:"Recomendamos colocar a Carteira OKX na tela inicial para um acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer o backup da sua carteira utilizando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de digitalização",description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}},extension:{step1:{title:"Instale a extensão OKX Wallet",description:"Recomendamos fixar a OKX Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer o backup da sua carteira utilizando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize o seu navegador",description:"Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},omni:{qr_code:{step1:{title:"Abra o aplicativo Omni",description:"Adicione o Omni à sua tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque no ícone do QR e escaneie",description:"Toque no ícone QR na tela inicial, escaneie o código e confirme o prompt para conectar."}}},token_pocket:{qr_code:{step1:{title:"Abra o aplicativo TokenPocket",description:"Recomendamos colocar o TokenPocket na tela inicial para um acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de digitalização",description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}},extension:{step1:{title:"Instale a extensão TokenPocket",description:"Recomendamos fixar o TokenPocket em sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},trust:{qr_code:{step1:{title:"Abra o aplicativo Trust Wallet",description:"Coloque o Trust Wallet na tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque em WalletConnect nas Configurações",description:"Escolha Nova Conexão, depois escaneie o QR code e confirme o prompt para se conectar."}},extension:{step1:{title:"Instale a extensão Trust Wallet",description:"Clique no canto superior direito do seu navegador e marque Trust Wallet para fácil acesso."},step2:{title:"Crie ou Importe uma carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Atualize seu navegador",description:"Depois que configurar a Trust Wallet, clique abaixo para atualizar o navegador e carregar a extensão."}}},uniswap:{qr_code:{step1:{title:"Abra o aplicativo Uniswap",description:"Adicione a Carteira Uniswap à sua tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque no ícone QR e escaneie",description:"Toque no ícone QR na sua tela inicial, escaneie o código e confirme o prompt para conectar."}}},zerion:{qr_code:{step1:{title:"Abra o aplicativo Zerion",description:"Recomendamos colocar o Zerion na sua tela inicial para um acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de digitalização",description:"Depois de digitalizar, um prompt de conexão aparecerá para que você possa conectar sua carteira."}},extension:{step1:{title:"Instale a extensão Zerion",description:"Recomendamos fixar o Zerion na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},rainbow:{qr_code:{step1:{title:"Abra o aplicativo Rainbow",description:"Recomendamos colocar o Rainbow na tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Você pode facilmente fazer backup da sua carteira usando nosso recurso de backup no seu telefone."},step3:{title:"Toque no botão de digitalizar",description:"Depois de escanear, uma solicitação de conexão aparecerá para você conectar sua carteira."}}},enkrypt:{extension:{step1:{description:"Recomendamos fixar a Carteira Enkrypt na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão da Carteira Enkrypt"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize o seu navegador"}}},frame:{extension:{step1:{description:"Recomendamos fixar o Frame na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale o Frame e a extensão complementar"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},one_key:{extension:{step1:{title:"Instale a extensão OneKey Wallet",description:"Recomendamos fixar a OneKey Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},phantom:{extension:{step1:{title:"Instale a extensão Phantom",description:"Recomendamos fixar o Phantom na sua barra de tarefas para facilitar o acesso à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta de recuperação com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},rabby:{extension:{step1:{title:"Instale a extensão Rabby",description:"Recomendamos fixar Rabby na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},safeheron:{extension:{step1:{title:"Instale a extensão Core",description:"Recomendamos fixar Safeheron na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer o backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},taho:{extension:{step1:{title:"Instale a extensão Taho",description:"Recomendamos fixar o Taho na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer o backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},talisman:{extension:{step1:{title:"Instale a extensão Talisman",description:"Recomendamos fixar o Talisman na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Crie ou Importe uma Carteira Ethereum",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase de recuperação com ninguém."},step3:{title:"Atualize o seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},xdefi:{extension:{step1:{title:"Instale a extensão XDEFI Wallet",description:"Recomendamos fixar a Carteira XDEFI na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},zeal:{extension:{step1:{title:"Instale a extensão Zeal",description:"Recomendamos fixar o Zeal na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},safepal:{extension:{step1:{title:"Instale a extensão da Carteira SafePal",description:"Clique no canto superior direito do seu navegador e fixe a Carteira SafePal para fácil acesso."},step2:{title:"Criar ou Importar uma carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Atualize seu navegador",description:"Depois de configurar a Carteira SafePal, clique abaixo para atualizar o navegador e carregar a extensão."}},qr_code:{step1:{title:"Abra o aplicativo Carteira SafePal",description:"Coloque a Carteira SafePal na tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque em WalletConnect nas Configurações",description:"Escolha Nova Conexão, em seguida, escaneie o código QR e confirme o prompt para conectar."}}},desig:{extension:{step1:{title:"Instale a extensão Desig",description:"Recomendamos fixar Desig na sua barra de tarefas para facilitar o acesso à sua carteira."},step2:{title:"Criar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},subwallet:{extension:{step1:{title:"Instale a extensão SubWallet",description:"Recomendamos fixar SubWallet na sua barra de tarefas para acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase de recuperação com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}},qr_code:{step1:{title:"Abra o aplicativo SubWallet",description:"Recomendamos colocar SubWallet na tela inicial para acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de escanear",description:"Depois que você escanear, um prompt de conexão aparecerá para você conectar sua carteira."}}},clv:{extension:{step1:{title:"Instale a extensão CLV Wallet",description:"Recomendamos fixar CLV Wallet na sua barra de tarefas para acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}},qr_code:{step1:{title:"Abra o aplicativo da carteira CLV",description:"Recomendamos colocar a Carteira CLV na tela inicial para acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de escanear",description:"Depois que você escanear, um prompt de conexão aparecerá para você conectar sua carteira."}}},okto:{qr_code:{step1:{title:"Abra o aplicativo Okto",description:"Adicione Okto à sua tela inicial para acesso rápido"},step2:{title:"Crie uma carteira MPC",description:"Crie uma conta e gere uma carteira"},step3:{title:"Toque em WalletConnect nas Configurações",description:"Toque no ícone Scan QR no canto superior direito e confirme o prompt para conectar."}}},ledger:{desktop:{step1:{title:"Abra o aplicativo Ledger Live",description:"Recomendamos colocar o Ledger Live na tela inicial para um acesso mais rápido."},step2:{title:"Configure seu Ledger",description:"Configure um novo Ledger ou conecte-se a um já existente."},step3:{title:"Conectar",description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}},qr_code:{step1:{title:"Abra o aplicativo Ledger Live",description:"Recomendamos colocar o Ledger Live na tela inicial para um acesso mais rápido."},step2:{title:"Configure seu Ledger",description:"Você pode sincronizar com o aplicativo de desktop ou conectar seu Ledger."},step3:{title:"Escanear o código",description:"Toque em WalletConnect e em seguida mude para Scanner. Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}}}},Bw={connect_wallet:lg0,intro:cg0,sign_in:dg0,connect:Eg0,connect_scan:pg0,connector_group:hg0,get:Cg0,get_options:mg0,get_mobile:bg0,get_instructions:gg0,chains:Ag0,profile:yg0,wallet_connectors:vg0},Bg0={label:"Подключить кошелек"},Fg0={title:"Что такое кошелек?",description:"Кошелек используется для отправки, получения, хранения и отображения цифровых активов. Это также новый способ входа в систему, без необходимости создания новых учетных записей и паролей на каждом сайте.",digital_asset:{title:"Дом для ваших цифровых активов",description:"Кошельки используются для отправки, получения, хранения и отображения цифровых активов, таких как Ethereum и NFT."},login:{title:"Новый способ входа в систему",description:"Вместо создания новых аккаунтов и паролей на каждом сайте, просто подключите ваш кошелек."},get:{label:"Получить кошелек"},learn_more:{label:"Узнать больше"}},Dg0={label:"Проверьте ваш аккаунт",description:"Чтобы завершить подключение, вы должны подписать сообщение в вашем кошельке, чтобы подтвердить, что вы являетесь владельцем этого аккаунта.",message:{send:"Отправить сообщение",preparing:"Подготовка сообщения...",cancel:"Отмена",preparing_error:"Ошибка при подготовке сообщения, пожалуйста, попробуйте снова!"},signature:{waiting:"Ожидание подписи...",verifying:"Проверка подписи...",signing_error:"Ошибка при подписании сообщения, пожалуйста, попробуйте снова!",verifying_error:"Ошибка при проверке подписи, пожалуйста, попробуйте снова!",oops_error:"Ой, что-то пошло не так!"}},wg0={label:"Подключить",title:"Подключить кошелек",new_to_ethereum:{description:"Впервые столкнулись с кошельками Ethereum?",learn_more:{label:"Узнать больше"}},learn_more:{label:"Узнать больше"},recent:"Недавние",status:{opening:"Открывается %{wallet}...",not_installed:"%{wallet} не установлен",not_available:"%{wallet} не доступен",confirm:"Подтвердите подключение в расширении"},secondary_action:{get:{description:"У вас нет %{wallet}?",label:"ПОЛУЧИТЬ"},install:{label:"УСТАНОВИТЬ"},retry:{label:"ПОВТОРИТЬ"}},walletconnect:{description:{full:"Нужен официальный модальный окно WalletConnect?",compact:"Нужен модальный окно WalletConnect?"},open:{label:"ОТКРЫТЬ"}}},xg0={title:"Сканировать с помощью %{wallet}",fallback_title:"Сканировать с помощью вашего телефона"},kg0={recommended:"Рекомендуемые",other:"Другие",popular:"Популярные",more:"Больше",others:"Другие"},_g0={title:"Получить кошелек",action:{label:"ПОЛУЧИТЬ"},mobile:{description:"Мобильный кошелек"},extension:{description:"Расширение для браузера"},mobile_and_extension:{description:"Мобильный кошелек и расширение"},mobile_and_desktop:{description:"Мобильный и настольный кошелек"},looking_for:{title:"Не то, что вы ищете?",mobile:{description:"Выберите кошелек на главном экране, чтобы начать работу с другим провайдером кошелька."},desktop:{compact_description:"Выберите кошелек на главном экране, чтобы начать работу с другим провайдером кошелька.",wide_description:"Выберите кошелек слева, чтобы начать работу с другим провайдером кошелька."}}},Sg0={title:"Начните с %{wallet}",short_title:"Получить %{wallet}",mobile:{title:"%{wallet} для мобильных",description:"Используйте мобильный кошелек для исследования мира Ethereum.",download:{label:"Скачать приложение"}},extension:{title:"%{wallet} для %{browser}",description:"Доступ к вашему кошельку прямо из вашего любимого веб-браузера.",download:{label:"Добавить в %{browser}"}},desktop:{title:"%{wallet} для %{platform}",description:"Получите доступ к вашему кошельку нативно со своего мощного рабочего стола.",download:{label:"Добавить в %{platform}"}}},Tg0={title:"Установить %{wallet}",description:"Отсканируйте на своем телефоне для скачивания на iOS или Android",continue:{label:"Продолжить"}},Pg0={mobile:{connect:{label:"Подключить"},learn_more:{label:"Узнать больше"}},extension:{refresh:{label:"Обновить"},learn_more:{label:"Узнать больше"}},desktop:{connect:{label:"Подключить"},learn_more:{label:"Узнать больше"}}},Ig0={title:"Переключить сети",wrong_network:"Обнаружена неверная сеть, переключитесь или отключитесь для продолжения.",confirm:"Подтвердить в кошельке",switching_not_supported:"Ваш кошелек не поддерживает переключение сетей с %{appName}. Попробуйте переключить сети из вашего кошелька.",switching_not_supported_fallback:"Ваш кошелек не поддерживает переключение сетей из этого приложения. Попробуйте переключить сети из вашего кошелька.",disconnect:"Отключить",connected:"Подключено"},Og0={disconnect:{label:"Отключить"},copy_address:{label:"Скопировать адрес",copied:"Скопировано!"},explorer:{label:"Посмотреть больше в эксплорере"},transactions:{description:"%{appName} транзакции появятся здесь...",description_fallback:"Ваши транзакции появятся здесь...",recent:{title:"Недавние транзакции"},clear:{label:"Очистить все"}}},Rg0={argent:{qr_code:{step1:{description:"Добавьте Argent на домашний экран для более быстрого доступа к вашему кошельку.",title:"Откройте приложение Argent"},step2:{description:"Создайте кошелек и имя пользователя или импортируйте существующий кошелек.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение для подключения вашего кошелька.",title:"Нажмите кнопку Сканировать QR"}}},bifrost:{qr_code:{step1:{description:"Мы рекомендуем добавить кошелек Bifrost на ваш начальный экран для более быстрого доступа.",title:"Откройте приложение Bifrost Wallet"},step2:{description:"Создайте или импортируйте кошелек, используя вашу фразу восстановления.",title:"Создать или импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение вашего кошелька.",title:"Нажмите кнопку сканирования"}}},bitget:{qr_code:{step1:{description:"Мы рекомендуем добавить Bitget Wallet на ваш экран для более быстрого доступа.",title:"Откройте приложение Bitget Wallet"},step2:{description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение вашего кошелька.",title:"Нажмите кнопку сканирования"}},extension:{step1:{description:"Мы рекомендуем закрепить Bitget Wallet на панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Bitget Wallet"},step2:{description:"Обязательно сохраните резервную копию вашего кошелька с помощью надёжного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},bitski:{extension:{step1:{description:"Мы рекомендуем прикрепить Bitski к вашей панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Bitski"},step2:{description:"Обязательно сохраните резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать кошелек или Импортировать кошелек"},step3:{description:"После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},coin98:{qr_code:{step1:{description:"Мы рекомендуем добавить Coin98 Wallet на ваш главный экран для более быстрого доступа к вашему кошельку.",title:"Откройте приложение Coin98 Wallet"},step2:{description:"Вы можете легко сделать резервную копию вашего кошелька, используя нашу функцию резервного копирования на вашем телефоне.",title:"Создать или импортировать кошелек"},step3:{description:"После сканирования для вас появится запрос на подключение, чтобы подключить ваш кошелек.",title:"Нажмите кнопку WalletConnect"}},extension:{step1:{description:"Нажмите в верхнем правом углу вашего браузера и закрепите Coin98 Wallet для удобного доступа.",title:"Установите расширение Coin98 Wallet"},step2:{description:"Создайте новый кошелек или импортируйте существующий.",title:"Создайте или импортируйте кошелек"},step3:{description:"После того как вы настроите Кошелек Coin98, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},coinbase:{qr_code:{step1:{description:"Мы рекомендуем добавить Coinbase Wallet на ваш экран начала для более быстрого доступа.",title:"Откройте приложение Coinbase Wallet"},step2:{description:"Вы легко можете сделать резервную копию вашего кошелька, используя функцию облачного резервного копирования.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение для подключения вашего кошелька.",title:"Нажмите кнопку сканирования"}},extension:{step1:{description:"Мы рекомендуем закрепить Coinbase Wallet на вашей панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Coinbase Wallet"},step2:{description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},core:{qr_code:{step1:{description:"Мы рекомендуем добавить Core на ваш экран быстрого доступа для ускоренного доступа к вашему кошельку.",title:"Открыть приложение Core"},step2:{description:"Вы можете легко создать резервную копию вашего кошелька, используя нашу функцию резервного копирования на вашем телефоне.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение, чтобы вы могли подключить ваш кошелек.",title:"Нажмите кнопку WalletConnect"}},extension:{step1:{description:"Мы рекомендуем закрепить Core на панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Core"},step2:{description:"Обязательно создайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь вашей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"Как только вы настроите ваш кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},fox:{qr_code:{step1:{description:"Мы рекомендуем поместить FoxWallet на ваш экран начального экрана для более быстрого доступа.",title:"Откройте приложение FoxWallet"},step2:{description:"Обязательно сделайте резервное копирование вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится приглашение для подключения вашего кошелька.",title:"Нажмите кнопку сканирования"}}},frontier:{qr_code:{step1:{description:"Мы рекомендуем установить Frontier Wallet на экран вашего смартфона для более быстрого доступа.",title:"Откройте приложение Frontier Wallet"},step2:{description:"Обязательно сделайте резервное копирование вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение кошелька.",title:"Нажмите кнопку сканирования"}},extension:{step1:{description:"Мы рекомендуем прикрепить кошелек Frontier к панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение кошелька Frontier"},step2:{description:"Обязательно сделайте резервную копию своего кошелька с использованием надежного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или импортировать кошелек"},step3:{description:"После настройки вашего кошелька нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},im_token:{qr_code:{step1:{title:"Откройте приложение imToken",description:"Поместите приложение imToken на главный экран для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите на иконку сканера в верхнем правом углу",description:"Выберите Новое соединение, затем отсканируйте QR-код и подтвердите запрос на соединение."}}},metamask:{qr_code:{step1:{title:"Откройте приложение MetaMask",description:"Мы рекомендуем поместить MetaMask на главный экран для быстрого доступа."},step2:{title:"Создайте или импортируйте кошелек",description:"Обязательно сохраните копию своего кошелька с помощью надежного метода. Никогда не делитесь своей секретной фразой с кем бы то ни было."},step3:{title:"Нажмите кнопку сканирования",description:"После сканирования появится запрос на соединение вашего кошелька."}},extension:{step1:{title:"Установите расширение MetaMask",description:"Мы рекомендуем закрепить MetaMask на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сохраните резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, щелкните ниже, чтобы обновить браузер и загрузить расширение."}}},okx:{qr_code:{step1:{title:"Откройте приложение кошелька OKX",description:"Мы рекомендуем разместить кошелек OKX на вашем главном экране для более быстрого доступа."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сохраните резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Нажмите на кнопку сканирования",description:"После сканирования появится запрос на подключение вашего кошелька."}},extension:{step1:{title:"Установите расширение кошелька OKX",description:"Мы рекомендуем закрепить OKX Wallet на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать кошелек или импортировать кошелек",description:"Обязательно сохраните резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"Как только вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},omni:{qr_code:{step1:{title:"Откройте приложение Omni",description:"Добавьте Omni на свой домашний экран для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите на иконку QR и отсканируйте",description:"Нажмите на иконку QR на вашем домашнем экране, отсканируйте код и подтвердите подсказку, чтобы подключиться."}}},token_pocket:{qr_code:{step1:{title:"Откройте приложение TokenPocket",description:"Мы рекомендуем разместить TokenPocket на вашем домашнем экране для быстрого доступа."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька при помощи безопасного метода. Никогда не делитесь своим секретным кодом с кем-либо."},step3:{title:"Нажмите на кнопку сканирования",description:"После сканирования появится подсказка о подключении для подключения вашего кошелька."}},extension:{step1:{title:"Установите расширение TokenPocket",description:"Мы рекомендуем закрепить TokenPocket на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},trust:{qr_code:{step1:{title:"Откройте приложение Trust Wallet",description:"Разместите Trust Wallet на вашем домашнем экране для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите WalletConnect в настройках",description:"Выберите Новое соединение, затем сканируйте QR-код и подтвердите запрос на подключение."}},extension:{step1:{title:"Установите расширение Trust Wallet",description:"Кликните в правом верхнем углу вашего браузера и закрепите Trust Wallet для легкого доступа."},step2:{title:"Создайте или импортируйте кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Обновите ваш браузер",description:"После настройки Trust Wallet, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},uniswap:{qr_code:{step1:{title:"Откройте приложение Uniswap",description:"Добавьте кошелек Uniswap на главный экран для быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите на иконку QR и отсканируйте",description:"Нажмите на иконку QR на главном экране, отсканируйте код и подтвердите запрос на подключение."}}},zerion:{qr_code:{step1:{title:"Откройте приложение Zerion",description:"Мы рекомендуем разместить Zerion на главном экране для более быстрого доступа."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Нажмите кнопку сканирования",description:"После сканирования вам будет предложено подключить ваш кошелек."}},extension:{step1:{title:"Установите расширение Zerion",description:"Мы рекомендуем прикрепить Zerion к вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создайте или импортируйте кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делясь своим секретным паролем с кем-либо."},step3:{title:"Обновите ваш браузер",description:"Как только вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},rainbow:{qr_code:{step1:{title:"Откройте приложение Rainbow",description:"Мы рекомендуем поместить Rainbow на ваш экран главного меню для более быстрого доступа к вашему кошельку."},step2:{title:"Создайте или импортируйте кошелек",description:"Вы можете легко сделать резервную копию вашего кошелька с помощью нашей функции резервного копирования на вашем телефоне."},step3:{title:"Нажмите кнопку сканировать",description:"После сканирования появится запрос на подключение вашего кошелька."}}},enkrypt:{extension:{step1:{description:"Мы рекомендуем закрепить Enkrypt Wallet на панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Enkrypt Wallet"},step2:{description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или импортировать кошелек"},step3:{description:"Как только вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},frame:{extension:{step1:{description:"Мы рекомендуем закрепить Frame на панели задач для более быстрого доступа к вашему кошельку.",title:"Установите Frame и дополнительное расширение"},step2:{description:"Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создайте или Импортируйте кошелек"},step3:{description:"После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},one_key:{extension:{step1:{title:"Установите расширение OneKey Wallet",description:"Мы рекомендуем закрепить OneKey Wallet на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создайте или Импортируйте кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки кошелька нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},phantom:{extension:{step1:{title:"Установите расширение Phantom",description:"Мы рекомендуем закрепить Phantom на панели задач для более удобного доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой восстановления с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},rabby:{extension:{step1:{title:"Установите расширение Rabby",description:"Мы рекомендуем закрепить Rabby на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем бы то ни было."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},safeheron:{extension:{step1:{title:"Установите основное расширение",description:"Мы рекомендуем закрепить SafeHeron на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После того, как вы настроите ваш кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},taho:{extension:{step1:{title:"Установите расширение Taho",description:"Мы рекомендуем закрепить Taho на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},talisman:{extension:{step1:{title:"Установите расширение Talisman",description:"Мы рекомендуем закрепить Talisman на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создайте или импортируйте кошелек Ethereum",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь вашей фразой восстановления с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},xdefi:{extension:{step1:{title:"Установите расширение кошелька XDEFI",description:"Мы рекомендуем закрепить XDEFI Wallet на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После того, как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},zeal:{extension:{step1:{title:"Установите расширение Zeal",description:"Мы рекомендуем закрепить Zeal на панели задач для быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},safepal:{extension:{step1:{title:"Установите расширение SafePal Wallet",description:"Кликните в верхнем правом углу вашего браузера и закрепите SafePal Wallet для удобного доступа."},step2:{title:"Создайте или импортируйте кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Обновите ваш браузер",description:"После настройки кошелька SafePal нажмите ниже, чтобы обновить браузер и загрузить расширение."}},qr_code:{step1:{title:"Откройте приложение SafePal Wallet",description:"Разместите SafePal Wallet на главном экране для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите WalletConnect в настройках",description:"Выберите Новое соединение, затем отсканируйте QR-код и подтвердите запрос на соединение."}}},desig:{extension:{step1:{title:"Установите расширение Desig",description:"Мы рекомендуем закрепить Desig на вашей панели задач для более удобного доступа к вашему кошельку."},step2:{title:"Создать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},subwallet:{extension:{step1:{title:"Установите расширение SubWallet",description:"Мы рекомендуем закрепить SubWallet на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь вашей фразой восстановления с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}},qr_code:{step1:{title:"Откройте приложение SubWallet",description:"Мы рекомендуем добавить SubWallet на ваш экран начальной страницы для более быстрого доступа."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Нажмите кнопку сканирования",description:"После сканирования появится запрос на подключение для подключения вашего кошелька."}}},clv:{extension:{step1:{title:"Установите расширение CLV Wallet",description:"Мы рекомендуем закрепить CLV Wallet на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}},qr_code:{step1:{title:"Откройте приложение CLV Wallet",description:"Мы рекомендуем поместить CLV Wallet на ваш экран домой для более быстрого доступа."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Нажмите кнопку сканирования",description:"После сканирования появится запрос на подключение для подключения вашего кошелька."}}},okto:{qr_code:{step1:{title:"Откройте приложение Okto",description:"Добавьте Okto на ваш экран домой для быстрого доступа"},step2:{title:"Создать кошелек MPC",description:"Создайте учетную запись и сгенерируйте кошелек"},step3:{title:"Нажмите WalletConnect в настройках",description:"Коснитесь значка Scan QR в верхнем правом углу и подтвердите запрос на подключение."}}},ledger:{desktop:{step1:{title:"Откройте приложение Ledger Live",description:"Мы рекомендуем поместить Ledger Live на ваш экран домой для более быстрого доступа."},step2:{title:"Настройте ваш Ledger",description:"Настройте новый Ledger или подключитесь к существующему."},step3:{title:"Подключить",description:"После сканирования вам будет предложено подключить ваш кошелек."}},qr_code:{step1:{title:"Откройте приложение Ledger Live",description:"Мы рекомендуем поместить Ledger Live на ваш экран домой для более быстрого доступа."},step2:{title:"Настройте ваш Ledger",description:"Вы можете синхронизировать с настольным приложением или подключить свой Ledger."},step3:{title:"Сканировать код",description:"Нажмите WalletConnect, затем переключитесь на Scanner. После сканирования вам будет предложено подключить ваш кошелек."}}}},Fw={connect_wallet:Bg0,intro:Fg0,sign_in:Dg0,connect:wg0,connect_scan:xg0,connector_group:kg0,get:_g0,get_options:Sg0,get_mobile:Tg0,get_instructions:Pg0,chains:Ig0,profile:Og0,wallet_connectors:Rg0},Ng0={label:"เชื่อมต่อกระเป๋าเงิน"},Mg0={title:"อะไรคือกระเป๋าเงิน?",description:"กระเป๋าเงินใช้ในการส่ง, รับ, เก็บ, และแสดงสินทรัพย์ดิจิทัล มันยังเป็นวิธีใหม่ในการเข้าสู่ระบบ, โดยไม่จำเป็นต้องสร้างบัญชีและรหัสผ่านใหม่ในทุกเว็บไซต์.",digital_asset:{title:"บ้านสำหรับสินทรัพย์ดิจิทัลของคุณ",description:"กระเป๋าเงินถูกใช้เพื่อส่ง, รับ, เก็บ, แสดงสินทรัพย์ดิจิทัล เช่น Ethereum และ NFTs."},login:{title:"วิธีใหม่ในการเข้าสู่ระบบ",description:"แทนที่จะสร้างบัญชีและรหัสผ่านใหม่ในทุกเว็บไซต์, แค่เชื่อมต่อกระเป๋าของคุณ."},get:{label:"รับกระเป๋าเงิน"},learn_more:{label:"เรียนรู้เพิ่มเติม"}},jg0={label:"ยืนยันบัญชีของคุณ",description:"เพื่อการเชื่อมต่อที่สมบูรณ์, คุณต้องลงนามในข้อความในกระเป๋าเงินของคุณเพื่อยืนยันว่าคุณเป็นเจ้าของบัญชีนี้",message:{send:"ส่งข้อความ",preparing:"กำลังเตรียมข้อความ...",cancel:"ยกเลิก",preparing_error:"เกิดข้อผิดพลาดในการเตรียมข้อความ โปรดลองใหม่!"},signature:{waiting:"รอการลงนาม...",verifying:"กำลังตรวจสอบลายเซ็น...",signing_error:"เกิดข้อผิดพลาดในการลงนามในข้อความ โปรดลองใหม่!",verifying_error:"เกิดข้อผิดพลาดในการตรวจสอบลายเซ็น โปรดลองใหม่!",oops_error:"อ๊ะ, เกิดข้อผิดพลาดบางอย่าง!"}},zg0={label:"เชื่อมต่อ",title:"เชื่อมต่อกระเป๋าเงิน",new_to_ethereum:{description:"ใหม่กับกระเป๋า Ethereum หรือไม่?",learn_more:{label:"เรียนรู้เพิ่มเติม"}},learn_more:{label:"เรียนรู้เพิ่มเติม"},recent:"ล่าสุด",status:{opening:"กำลังเปิด %{wallet}...",not_installed:"%{wallet} ไม่ได้ติดตั้ง",not_available:"%{wallet} ไม่สามารถใช้ได้",confirm:"ยืนยันการเชื่อมต่อในส่วนขยาย"},secondary_action:{get:{description:"ไม่มี %{wallet}?",label:"รับ"},install:{label:"ติดตั้ง"},retry:{label:"ลองใหม่"}},walletconnect:{description:{full:"ต้องการ modal อย่างเป็นทางการจาก WalletConnect หรือไม่?",compact:"ต้องการ modal จาก WalletConnect หรือไม่?"},open:{label:"เปิด"}}},Lg0={title:"สแกนด้วย %{wallet}",fallback_title:"สแกนด้วยโทรศัพท์ของคุณ"},$g0={recommended:"แนะนำ",other:"อื่น ๆ",popular:"ยอดนิยม",more:"เพิ่มเติม",others:"อื่น ๆ"},Ug0={title:"รับ Wallet",action:{label:"รับ"},mobile:{description:"Wallet บนมือถือ"},extension:{description:"ส่วนขยายบราวเซอร์"},mobile_and_extension:{description:"กระเป๋าเงินมือถือและส่วนขยาย"},mobile_and_desktop:{description:"กระเป๋าเงินบนมือถือและคอมพิวเตอร์"},looking_for:{title:"ไม่ใช่สิ่งที่คุณกำลังหาหรือไม่?",mobile:{description:"เลือกกระเป๋าเงินบนหน้าจอหลักเพื่อเริ่มต้นใช้งานกับผู้ให้บริการกระเป๋าเงินที่แตกต่างกัน"},desktop:{compact_description:"เลือกกระเป๋าเงินบนหน้าจอหลักเพื่อเริ่มต้นใช้งานกับผู้ให้บริการกระเป๋าเงินที่แตกต่างกัน",wide_description:"เลือกกระเป๋าเงินที่อยู่ทางซ้ายเพื่อเริ่มต้นใช้งานกับผู้ให้บริการกระเป๋าเงินที่แตกต่างกัน"}}},Wg0={title:"เริ่มต้นกับ %{wallet}",short_title:"รับ %{wallet}",mobile:{title:"%{wallet} สำหรับมือถือ",description:"ใช้กระเป๋าระบบมือถือในการสำรวจโลกของ Ethereum.",download:{label:"รับแอป"}},extension:{title:"%{wallet} สำหรับ %{browser}",description:"เข้าถึงกระเป๋าเงินของคุณได้โดยตรงจากบราวเซอร์ที่คุณชื่นชอบ.",download:{label:"เพิ่มไปยัง %{browser}"}},desktop:{title:"%{wallet} สำหรับ %{platform}",description:"เข้าถึงกระเป๋าเงินของคุณโดยตรงจากคอมพิวเตอร์ที่มีประสิทธิภาพของคุณ",download:{label:"เพิ่มไปยัง %{platform}"}}},qg0={title:"ติดตั้ง %{wallet}",description:"สแกนด้วยโทรศัพท์ของคุณเพื่อดาวน์โหลดบน iOS หรือ Android",continue:{label:"ดำเนินการต่อ"}},Hg0={mobile:{connect:{label:"เชื่อมต่อ"},learn_more:{label:"เรียนรู้เพิ่มเติม"}},extension:{refresh:{label:"รีเฟรช"},learn_more:{label:"เรียนรู้เพิ่มเติม"}},desktop:{connect:{label:"เชื่อมต่อ"},learn_more:{label:"เรียนรู้เพิ่มเติม"}}},Gg0={title:"เปลี่ยนเครือข่าย",wrong_network:"ตรวจสอบพบเครือข่ายที่ไม่ถูกต้อง สลับหรือตัดการเชื่อมต่อเพื่อดำเนินการต่อ.",confirm:"ยืนยันใน Wallet",switching_not_supported:"กระเป๋าสตางค์ของคุณไม่สนับสนุนการเปลี่ยนเครือข่ายจาก %{appName}ลองเปลี่ยนเครือข่ายจากภายในกระเป๋าสตางค์ของคุณแทน",switching_not_supported_fallback:"กระเป๋าสตางค์ของคุณไม่สนับสนุนการสลับเครือข่ายจากแอปนี้ ลองสลับเครือข่ายจากภายในกระเป๋าสตางค์ของคุณแทน",disconnect:"ตัดการเชื่อมต่อ",connected:"เชื่อมต่อแล้ว"},Vg0={disconnect:{label:"ตัดการเชื่อมต่อ"},copy_address:{label:"คัดลอกที่อยู่",copied:"คัดลอกแล้ว!"},explorer:{label:"ดูเพิ่มเติมบน explorer"},transactions:{description:"%{appName} รายการจะปรากฎที่นี่...",description_fallback:"การทำธุรกรรมของคุณจะปรากฎที่นี่...",recent:{title:"ธุรกรรมล่าสุด"},clear:{label:"ลบทั้งหมด"}}},Kg0={argent:{qr_code:{step1:{description:"วาง Argent บนหน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น",title:"เปิดแอป Argent"},step2:{description:"สร้างกระเป๋าเงินและชื่อผู้ใช้หรือนำเข้ากระเป๋าเงินที่มีอยู่แล้ว",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"หลังจากคุณสแกน จะปรากฏหน้าต่างเชื่อมต่อให้คุณเชื่อมต่อกระเป๋าเงินของคุณ",title:"แตะที่คุ่มุ่งสแกน QR"}}},bifrost:{qr_code:{step1:{description:"เราขอแนะนำให้คุณวาง Bifrost Wallet บนหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น",title:"เปิดแอพฯ Bifrost Wallet"},step2:{description:"สร้างหรือนำเข้ากระเป๋าเงินด้วย recovery phrase ของคุณ",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"หลังจากที่คุณสแกนแล้วยินยันการเชื่อมต่อกับกระเป๋าเงินของคุณ",title:"แตะปุ่มสแกน"}}},bitget:{qr_code:{step1:{description:"เราขอแนะนำให้วาง Bitget Wallet บนหน้าจอหน้าแรกของคุณเพื่อการเข้าถึงที่รวดเร็วขึ้น.",title:"เปิดแอพ Bitget Wallet"},step2:{description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด.",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"หลังจากที่คุณสแกน จะมีข้อความขอเชื่อมต่อที่จะปรากฏขึ้นให้คุณเชื่อมต่อกระเป๋าสตางค์ของคุณ.",title:"แตะปุ่มสแกน"}},extension:{step1:{description:"เราแนะนำให้คุณปัก Bitget Wallet ไว้บนแถบงานของคุณเพื่อเข้าถึงกระเป๋าสตางค์ได้เร็วขึ้น",title:"ติดตั้งส่วนเสริม Bitget Wallet"},step2:{description:"โปรดแน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับบุคคลใดๆ",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},bitski:{extension:{step1:{description:"เราแนะนำให้ทำปัก Bitski ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินได้โดยไม่ต้องรอ",title:"ติดตั้งส่วนขยาย Bitski"},step2:{description:"ควรสำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยคำลับของคุณให้ใครทราบ",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},coin98:{qr_code:{step1:{description:"เราขอแนะนำให้คุณวาง Coin98 Wallet บนหน้าจอหลักของคุณ เพื่อให้เข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น.",title:"เปิดแอพ Coin98 Wallet"},step2:{description:"คุณสามารถสำรองข้อมูลกระเป๋าเงินของคุณได้ง่ายๆ ด้วยฟีเจอร์สำรองข้อมูลบนโทรศัพท์ของคุณ.",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"หลังจากคุณสแกน จะมีเตือนการเชื่อมต่อที่ปรากฏขึ้นให้คุณเชื่อมต่อกระเป๋าเงินของคุณ.",title:"แตะที่ปุ่ม WalletConnect"}},extension:{step1:{description:"คลิกที่ด้านบนขวาของเบราว์เซอร์ของคุณและปัก Coin98 Wallet ไว้เพื่อให้เข้าถึงได้ง่าย.",title:"ติดตั้งส่วนขยาย Coin98 Wallet"},step2:{description:"สร้างกระเป๋าเงินใหม่หรือนำเข้าที่มีอยู่แล้ว.",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"เมื่อคุณตั้งค่า Coin98 Wallet แล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยายขึ้นมา.",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},coinbase:{qr_code:{step1:{description:"เราแนะนำให้วาง Coinbase Wallet ไว้ที่หน้าจอหลักของคุณเพื่อให้เข้าถึงได้เร็วขึ้น.",title:"เปิดแอป Coinbase Wallet"},step2:{description:"คุณสามารถสำรองข้อมูลกระเป๋าสตางค์ของคุณได้ง่ายๆ โดยใช้ฟีเจอร์การสำรองข้อมูลด้วยคลาวด์",title:"สร้างหรือนำเข้ากระเป๋าสตางค์"},step3:{description:"หลังจากที่คุณสแกนแล้ว จะมีการแสดงขอ้มูลเพื่อให้คุณเชื่อมต่อกระเป๋าสตางค์ของคุณ",title:"แตะที่ปุ่มสแกน"}},extension:{step1:{description:"เราแนะนำให้คุณยัด Coinbase Wallet ไว้ที่แถบงานของคุณเพื่อให้สามารถเข้าถึงกระเป๋าสตางค์ของคุณได้เร็วขึ้น",title:"ติดตั้งส่วนขยาย Coinbase Wallet"},step2:{description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับของคุณให้กับใครเลย",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"เมื่อคุณได้ตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อเรียกดูเบราว์เซอร์ใหม่และโหลดส่วนขยาย",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},core:{qr_code:{step1:{description:"เราแนะนำให้คุณวาง Core ลงสนามหลักเพื่อให้เข้าถึงกระเป๋าเงินได้เร็วขึ้น",title:"เปิดแอปเครื่องมือช่วยอีเกิร์น"},step2:{description:"คุณสามารถสำรองกระเป๋าเงินของคุณได้ง่ายๆ โดยใช้ฟีเจอร์สำรองของเราบนโทรศัพท์ของคุณ",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"หลังจากที่คุณสแกนแล้ว จะมีการแจ้งเตือนเพื่อให้คุณเชื่อมต่อกับกระเป๋าสตางค์ของคุณ",title:"แตะปุ่ม WalletConnect"}},extension:{step1:{description:"เราขอแนะนำให้คุณปัก Core ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าสตางค์ของคุณได้อย่างรวดเร็ว",title:"ติดตั้งส่วนขยาย Core"},step2:{description:"โปรดแน่ใจว่าคุณได้สำรองกระเป๋าสตางค์ของคุณใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"เมื่อคุณตั้งค่ากระเป๋าสตางค์ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},fox:{qr_code:{step1:{description:"เราขอแนะนำให้คุณวาง FoxWallet บนหน้าจอหลักเพื่อให้เข้าถึงได้เร็วขึ้น",title:"เปิดแอป FoxWallet"},step2:{description:"ตรวจสอบที่จะสำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย จงอย่าเปิดเผยประโยคลับลับของคุณให้ผู้อื่นรู้",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"หลังจากที่คุณสแกน จะมีการเชื่อมต่อที่แสดงให้คุณเชื่อมต่อกระเป๋าเงินของคุณ",title:"แตะปุ่มสแกน"}}},frontier:{qr_code:{step1:{description:"เราขอแนะนำให้คุณวาง Frontier Wallet บนหน้าจอหลักเพื่อให้เข้าถึงได้เร็วขึ้น",title:"เปิดแอป Frontier Wallet"},step2:{description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าสตางค์ของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร",title:"สร้างหรือนำเข้ากระเป๋าสตางค์"},step3:{description:"หลังจากที่คุณสแกนแล้ว จะมีการแสดงข้อมูลเพื่อให้คุณเชื่อมต่อกับกระเป๋าสตางค์ของคุณ",title:"แตะปุ่มสแกน"}},extension:{step1:{description:"เราแนะนำให้คุณปักหมุด Frontier Wallet ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าสตางค์ของคุณได้ง่ายขึ้น",title:"ติดตั้งส่วนเสริม Frontier Wallet"},step2:{description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าสตางค์ของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร",title:"สร้างหรือนำเข้ากระเป๋าสตางค์"},step3:{description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},im_token:{qr_code:{step1:{title:"เปิดแอพ imToken",description:"ใส่แอพ imToken ไว้ที่หน้าจอหลักเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น."},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"สร้างกระเป๋าเงินใหม่หรือนำเข้ากระเป๋าเงินที่มีอยู่แล้ว"},step3:{title:"แตะไอคอนสแกนเนอร์ในมุมบนขวา",description:"เลือก New Connection, แล้วสแกน QR code และยืนยันการรับรองสำหรับการเชื่อมต่อ"}}},metamask:{qr_code:{step1:{title:"เปิดแอป MetaMask",description:"เราขอแนะนำให้วาง MetaMask บนหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบว่าได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้กับใคร"},step3:{title:"แตะที่ปุ่มสแกน",description:"หลังจากการสแกน, จะปรากฏข้อความเชื่อมต่อสำหรับคุณเพื่อเชื่อมต่อกับกระเป๋าเงินของคุณ"}},extension:{step1:{title:"ติดตั้งส่วนขยาย MetaMask",description:"เราขอแนะนำให้คุณปัก MetaMask ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้รวดเร็ว"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"อย่างแน่นอนให้สำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์ประโยคลับของคุณกับใครเลย"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},okx:{qr_code:{step1:{title:"เปิดแอพ OKX Wallet",description:"เราแนะนำให้วาง OKX Wallet บนหน้าจอหลักของคุณเพื่อให้เข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"จงแน่ใจว่าคุณได้สำรองข้อมูล wallet ของคุณด้วยวิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณให้คนอื่น"},step3:{title:"แตะปุ่มสแกน",description:"หลังจากคุณสแกน จะมีการแสดงข้อมูลเพื่อให้คุณเชื่อมต่อ wallet ของคุณ"}},extension:{step1:{title:"ติดตั้งส่วนเสริม OKX Wallet",description:"เราแนะนำให้ยึด OKX Wallet ไว้ที่แถบงานของคุณเพื่อให้เข้าถึง wallet ของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"โปรดแน่ใจว่าคุณได้สำรองกระเป๋าสตางค์ของคุณด้วยวิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับของคุณให้ใครทราบ"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าสตางค์ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},omni:{qr_code:{step1:{title:"เปิดแอป Omni",description:"เพิ่ม Omni ไปยังหน้าจอแรกเพื่อเข้าถึงกระเป๋าสตางค์ของคุณได้รวดเร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าสตางค์",description:"สร้างกระเป๋าสตางค์ใหม่หรือนำเข้ากระเป๋าสตางค์ที่มีอยู่"},step3:{title:"แตะที่ไอคอน QR แล้วสแกน",description:"แตะที่ไอคอน QR บนหน้าจอหน้าแรกของคุณ, สแกนรหัสและยืนยันการเตือนเพื่อเชื่อมต่อ."}}},token_pocket:{qr_code:{step1:{title:"เปิดแอป TokenPocket",description:"เราแนะนำให้วาง TokenPocket บนหน้าจอหน้าแรกของคุณเพื่อเข้าถึงได้เร็วขึ้น."},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"ตรวจสอบว่าได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้ผู้อื่นทราบในทางใดทางหนึ่ง."},step3:{title:"แตะปุ่มสแกน",description:"หลังจากที่คุณสแกนแล้ว จะมีการเรียกให้เชื่อมต่อกับกระเป๋าเงินของคุณ"}},extension:{step1:{title:"ติดตั้งส่วนขยาย TokenPocket",description:"เราขอแนะนำให้คุณปัก TokenPocket ไว้ที่แถบงานเพื่อทำให้สามารถเข้าถึงกระเป๋าเงินของคุณได้ง่ายขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณด้วยวิธีที่ปลอดภัย อย่าทำการแชร์ประโยคลับด้วยความลับของคุณกับใคร"},step3:{title:"รีเฟรชบราวเซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชบราวเซอร์และโหลดส่วนขยาย"}}},trust:{qr_code:{step1:{title:"เปิดแอพ Trust Wallet",description:"วาง Trust Wallet ที่หน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้รวดเร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"สร้าง wallet ใหม่หรือนำเข้า wallet ที่มีอยู่แล้ว"},step3:{title:"แตะ WalletConnect ในการตั้งค่า",description:"เลือก New Connection จากนั้นสแกน QR code และยืนยันการแจ้งเตือนเพื่อเชื่อมต่อ"}},extension:{step1:{title:"ติดตั้งส่วนขยาย Trust Wallet",description:"คลิกที่มุมบนขวาของเบราว์เซอร์ของคุณและปัก Trust Wallet เพื่อเข้าถึงได้ง่าย"},step2:{title:"สร้างหรือนำเข้า wallet",description:"สร้าง wallet ใหม่หรือนำเข้า wallet ที่มีอยู่แล้ว"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่า Trust Wallet แล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยายขึ้นมา"}}},uniswap:{qr_code:{step1:{title:"เปิดแอป Uniswap",description:"เพิ่ม Uniswap Wallet ไปยังหน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"สร้างกระเป๋าเงินใหม่หรือนำเข้ากระเป๋าเงินที่มีอยู่แล้ว"},step3:{title:"แตะที่ไอคอน QR และสแกน",description:"แตะที่ไอคอน QR บนหน้าจอหลักของคุณ สแกนรหัสและยืนยันการเชื่อมต่อ"}}},zerion:{qr_code:{step1:{title:"เปิดแอป Zerion",description:"เราแนะนำให้คุณวาง Zerion บนหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ลองทำสำเนาข้อมูล wallet ของคุณไว้ในช่องทางที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้กับผู้อื่น"},step3:{title:"แตะที่ปุ่มสแกน",description:"หลังจากสแกน จะมีหน้าต่างแสดงคำสั่งเชื่อมต่อให้คุณเชื่อมต่อ wallet ของคุณ"}},extension:{step1:{title:"ติดตั้งส่วนขยาย Zerion",description:"เราแนะนำให้คุณติด Zerion บนแถบงานของคุณเพื่อเข้าถึง wallet ของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณโดยวิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับลับของคุณให้ใครทราบครับ"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},rainbow:{qr_code:{step1:{title:"เปิดแอป Rainbow",description:"เราขอแนะนำให้คุณวาง Rainbow อยู่บนหน้าจอหลักของคุณเพื่อรับผิดชอบจากกระเป๋าสตางค์ของคุณอย่างรวดเร็ว"},step2:{title:"สร้างหรือนำเข้ากระเป๋าสตางค์",description:"คุณสามารถสำรองข้อมูลกระเป๋าสตางค์ของคุณได้ง่ายๆ ด้วยฟีเจอร์สำรองข้อมูลบนโทรศัพท์ของคุณ"},step3:{title:"แตะปุ่มสแกน",description:"หลังจากสแกนแล้ว จะแสดงข้อความขอเชื่อมต่อเพื่อให้คุณเชื่อมต่อกระเป๋าสตางค์ของคุณ"}}},enkrypt:{extension:{step1:{description:"เราขอแนะนำให้คุณปัก Enkrypt Wallet ไว้ที่แทบงานของคุณเพื่อให้สามารถเข้าถึงกระเป๋าสตางค์ของคุณได้เร็วขึ้น",title:"ติดตั้งส่วนขยาย Enkrypt Wallet"},step2:{description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองกระเป๋าสตางค์ของคุณโดยใช้วิธีที่ปลอดภัย ห้ามแชร์วลีลับของคุณให้กับใคร",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"เมื่อคุณตั้งค่า wallet ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรช browser และโหลดขึ้น extension",title:"รีเฟรช browser ของคุณ"}}},frame:{extension:{step1:{description:"เราแนะนำให้หมุน Frame ไว้บน taskbar ของคุณเพื่อให้เข้าถึง wallet ได้เร็วขึ้น",title:"ติดตั้ง Frame และ extension ที่เป็นคู่"},step2:{description:"ตรวจสอบว่าได้สำรอง wallet ของคุณโดยใช้วิธีการที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้กับใคร",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"เมื่อคุณตั้งค่า wallet ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรช browser และโหลดขึ้น extension",title:"รีเฟรช browser ของคุณ"}}},one_key:{extension:{step1:{title:"ติดตั้งส่วนเสริม OneKey Wallet",description:"เราแนะนำการปัก OneKey Wallet ไว้บนแทบงานของคุณเพื่อเข้าถึงกระเป๋าเงินได้ง่ายขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"อย่าลืมสำรองกระเป๋าเงินของคุณด้วยวิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}}},phantom:{extension:{step1:{title:"ติดตั้งส่วนเสริม Phantom",description:"เราแนะนำการปัก Phantom ไว้บนแทบงานของคุณเพื่อเข้าถึงกระเป๋าเงินได้ง่ายขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยข้อความลับสำหรับการกู้คืนของคุณกับบุคคลใด ๆ"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินเรียบร้อยแล้ว, คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},rabby:{extension:{step1:{title:"ติดตั้งส่วนขยาย Rabby",description:"เราแนะนำให้คุณปัก Rabby ไว้ที่แถบงานเพื่อให้เข้าถึงกระเป๋าเงินของคุณได้รวดเร็วขึ้น."},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์ข้อความลับของคุณกับบุคคลอื่น"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},safeheron:{extension:{step1:{title:"ติดตั้งส่วนขยาย Core",description:"เราขอแนะนำให้คุณปัก Safeheron ไว้ที่แถบงานเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"อย่าลืมสำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับของคุณให้ผู้อื่นทราบ"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},taho:{extension:{step1:{title:"ติดตั้งส่วนขยาย Taho",description:"เราแนะนำให้คุณปัก Taho ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"โปรดแน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์ประโยคลับคุณกับผู้อื่น"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},talisman:{extension:{step1:{title:"ติดตั้งส่วนขยาย Talisman",description:"เราแนะนำให้คุณปัก Talisman ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน Ethereum",description:"ให้แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีการกู้คืนของคุณให้ใครทราบเด็ดขาด"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},xdefi:{extension:{step1:{title:"ติดตั้งส่วนขยาย XDEFI Wallet",description:"เราแนะนำให้คุณตรา XDEFI Wallet ไว้ที่แถบงานเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"ให้แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้ใครทราบเด็ดขาด"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"หลังจากที่คุณตั้งค่ากระเป๋าสตางค์ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชบราวเซอร์และโหลดส่วนเสริม."}}},zeal:{extension:{step1:{title:"ติดตั้งส่วนขยาย Zeal",description:"เราแนะนำให้ปัก Zeal ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}}},safepal:{extension:{step1:{title:"ติดตั้งส่วนขยาย SafePal Wallet",description:"คลิกที่มุมบนขวาของเบราว์เซอร์ของคุณและปักมุม SafePal Wallet เพื่อที่จะเข้าถึงได้ง่าย"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"สร้างกระเป๋าเงินใหม่หรือนำเข้าที่มีอยู่แล้ว."},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"หลังจากคุณตั้งค่า SafePal Wallet เรียบร้อยแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}},qr_code:{step1:{title:"เปิดแอป SafePal Wallet",description:"วาง SafePal Wallet ที่หน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"สร้างกระเป๋าเงินใหม่หรือนำเข้าที่มีอยู่แล้ว."},step3:{title:"แตะ WalletConnect ในการตั้งค่า",description:"เลือก New Connection, แล้วสแกน QR code และยืนยันการรับรองสำหรับการเชื่อมต่อ"}}},desig:{extension:{step1:{title:"ติดตั้งส่วนขยาย Desig",description:"เราขอแนะนำให้คุณตรึง Desig ไว้ที่แถบงานของคุณเพื่อให้เข้าถึงกระเป๋าเงินของคุณได้ง่ายขึ้น"},step2:{title:"สร้างกระเป๋าเงิน",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}}},subwallet:{extension:{step1:{title:"ติดตั้งส่วนขยาย SubWallet",description:"เราขอแนะนำให้คุณตรึง SubWallet ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ให้แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีการกู้คืนของคุณให้ใครทราบเด็ดขาด"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}},qr_code:{step1:{title:"เปิดแอพ SubWallet",description:"เราขอแนะนำให้วาง SubWallet ไว้ที่หน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"แตะปุ่มสแกน",description:"หลังจากคุณสแกน จะปรากฏหน้าต่างเชื่อมต่อให้คุณเชื่อมต่อกระเป๋าเงินของคุณ"}}},clv:{extension:{step1:{title:"ติดตั้งส่วนขยาย CLV Wallet",description:"เราขอแนะนำให้คุณตรึง CLV Wallet ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}},qr_code:{step1:{title:"เปิดแอพ CLV Wallet",description:"เราแนะนำให้คุณวาง CLV Wallet บนหน้าจอหลักเพื่อให้สามารถเข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"แตะปุ่มสแกน",description:"หลังจากคุณสแกน จะปรากฏหน้าต่างเชื่อมต่อให้คุณเชื่อมต่อกระเป๋าเงินของคุณ"}}},okto:{qr_code:{step1:{title:"เปิดแอพ Okto",description:"เพิ่ม Okto ไปยังหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็ว"},step2:{title:"สร้างกระเป๋าเงิน MPC",description:"สร้างบัญชีและสร้างกระเป๋าเงิน"},step3:{title:"แตะ WalletConnect ในการตั้งค่า",description:"แตะที่ไอคอน Scan QR ที่บริเวณมุมบนขวาและยืนยันข้อความเพื่อเชื่อมต่อ."}}},ledger:{desktop:{step1:{title:"เปิดแอป Ledger Live",description:"เราแนะนำให้คุณวาง Ledger Live บนหน้าจอหลักเพื่อให้สามารถเข้าถึงได้เร็วขึ้น"},step2:{title:"ตั้งค่า Ledger ของคุณ",description:"ตั้งค่า Ledger ใหม่หรือเชื่อมต่อกับ Ledger ที่มีอยู่แล้ว"},step3:{title:"เชื่อมต่อ",description:"หลังจากที่คุณสแกนแล้ว จะมีการเรียกให้เชื่อมต่อกับกระเป๋าเงินของคุณ"}},qr_code:{step1:{title:"เปิดแอป Ledger Live",description:"เราแนะนำให้วาง Ledger Live บนหน้าจอหลักของคุณเพื่อการเข้าถึงที่รวดเร็วขึ้น"},step2:{title:"ตั้งค่า Ledger ของคุณ",description:"คุณสามารถซิงค์กับแอพพลิเคชันบนเดสก์ท็อปหรือเชื่อมต่อ Ledger ของคุณ"},step3:{title:"สแกนรหัส",description:"แตะ WalletConnect แล้วเปลี่ยนไปที่ Scanner. หลังจากที่คุณสแกนแล้ว จะมีการเรียกให้เชื่อมต่อกับกระเป๋าเงินของคุณ"}}}},Dw={connect_wallet:Ng0,intro:Mg0,sign_in:jg0,connect:zg0,connect_scan:Lg0,connector_group:$g0,get:Ug0,get_options:Wg0,get_mobile:qg0,get_instructions:Hg0,chains:Gg0,profile:Vg0,wallet_connectors:Kg0},Qg0={label:"Cüzdanı Bağla"},Jg0={title:"Cüzdan nedir?",description:"Bir cüzdan, dijital varlıkları göndermek, almak, saklamak ve görüntülemek için kullanılır. Aynı zamanda her web sitesinde yeni hesaplar ve şifreler oluşturmanıza gerek kalmadan oturum açmanın yeni bir yoludur.",digital_asset:{title:"Dijital Varlıklarınız İçin Bir Ev",description:"Cüzdanlar, Ethereum ve NFT'ler gibi dijital varlıkları göndermek, almak, depolamak ve görüntülemek için kullanılır."},login:{title:"Yeni Bir Giriş Yolu",description:"Her web sitesinde yeni hesap ve parolalar oluşturmak yerine, sadece cüzdanınızı bağlayın."},get:{label:"Bir Cüzdan Edinin"},learn_more:{label:"Daha fazla bilgi edinin"}},Zg0={label:"Hesabınızı doğrulayın",description:"Bağlantıyı tamamlamak için, bu hesabın sahibi olduğunuzu doğrulamak için cüzdanınızdaki bir mesaja imza atmalısınız.",message:{send:"Mesajı gönder",preparing:"Mesaj hazırlanıyor...",cancel:"İptal",preparing_error:"Mesajı hazırlarken hata oluştu, lütfen tekrar deneyin!"},signature:{waiting:"İmza bekleniyor...",verifying:"İmza doğrulanıyor...",signing_error:"Mesajı imzalarken hata oluştu, lütfen tekrar deneyin!",verifying_error:"İmza doğrulanırken hata oluştu, lütfen tekrar deneyin!",oops_error:"Hata, bir şeyler yanlış gitti!"}},Yg0={label:"Bağlan",title:"Bir Cüzdanı Bağla",new_to_ethereum:{description:"Ethereum cüzdanlarına yeni misiniz?",learn_more:{label:"Daha fazla bilgi edinin"}},learn_more:{label:"Daha fazla bilgi edinin"},recent:"Son",status:{opening:"%{wallet}açılıyor...",not_installed:"%{wallet} yüklü değil",not_available:"%{wallet} kullanılabilir değil",confirm:"Bağlantıyı eklentide onaylayın"},secondary_action:{get:{description:"%{wallet}yok mu?",label:"AL"},install:{label:"YÜKLE"},retry:{label:"YENİDEN DENE"}},walletconnect:{description:{full:"Resmi WalletConnect modalına mı ihtiyacınız var?",compact:"WalletConnect modalına mı ihtiyacınız var?"},open:{label:"AÇ"}}},Xg0={title:"%{wallet}ile tarama yapın",fallback_title:"Telefonunuzla tarama yapın"},uA0={recommended:"Tavsiye Edilen",other:"Diğer",popular:"Popüler",more:"Daha Fazla",others:"Diğerleri"},eA0={title:"Bir Cüzdan Edinin",action:{label:"AL"},mobile:{description:"Mobil Cüzdan"},extension:{description:"Tarayıcı Eklentisi"},mobile_and_extension:{description:"Mobil Cüzdan ve Eklenti"},mobile_and_desktop:{description:"Mobil ve Masaüstü Cüzdan"},looking_for:{title:"Aradığınız şey bu değil mi?",mobile:{description:"Ana ekranda başka bir cüzdan sağlayıcısıyla başlamak için bir cüzdan seçin."},desktop:{compact_description:"Ana ekranda başka bir cüzdan sağlayıcısıyla başlamak için bir cüzdan seçin.",wide_description:"Başka bir cüzdan sağlayıcısıyla başlamak için sol tarafta bir cüzdan seçin."}}},tA0={title:"%{wallet}ile başlayın",short_title:"%{wallet}Edinin",mobile:{title:"%{wallet} Mobil İçin",description:"Mobil cüzdanı kullanarak Ethereum dünyasını keşfedin.",download:{label:"Uygulamayı alın"}},extension:{title:"%{wallet} için %{browser}",description:"Cüzdanınıza favori web tarayıcınızdan doğrudan erişin.",download:{label:"%{browser}'e ekle"}},desktop:{title:"%{wallet} için %{platform}",description:"Güçlü masaüstünüzden cüzdanınıza yerel olarak erişin.",download:{label:"%{platform}ekleyin"}}},nA0={title:"%{wallet}'i yükleyin",description:"iOS veya Android'de indirmek için telefonunuzla tarayın",continue:{label:"Devam et"}},rA0={mobile:{connect:{label:"Bağlan"},learn_more:{label:"Daha fazla bilgi edinin"}},extension:{refresh:{label:"Yenile"},learn_more:{label:"Daha fazla bilgi edinin"}},desktop:{connect:{label:"Bağlan"},learn_more:{label:"Daha fazla bilgi edinin"}}},iA0={title:"Ağları Değiştir",wrong_network:"Yanlış ağ algılandı, devam etmek için bağlantıyı kesin veya değiştirin.",confirm:"Cüzdanında Onayla",switching_not_supported:"Cüzdanınız %{appName}. ağları değiştirmeyi desteklemiyor. Bunun yerine cüzdanınızdan ağları değiştirmeyi deneyin.",switching_not_supported_fallback:"Cüzdanınız bu uygulamadan ağları değiştirmeyi desteklemiyor. Bunun yerine cüzdanınızdaki ağları değiştirmeyi deneyin.",disconnect:"Bağlantıyı Kes",connected:"Bağlı"},aA0={disconnect:{label:"Bağlantıyı Kes"},copy_address:{label:"Adresi Kopyala",copied:"Kopyalandı!"},explorer:{label:"Explorer üzerinde daha fazlasını görün"},transactions:{description:"%{appName} işlem burada görünecek...",description_fallback:"İşlemleriniz burada görünecek...",recent:{title:"Son İşlemler"},clear:{label:"Hepsini Temizle"}}},oA0={argent:{qr_code:{step1:{description:"Cüzdanınıza daha hızlı erişim için Argent'i ana ekranınıza koyun.",title:"Argent uygulamasını açın"},step2:{description:"Bir cüzdan ve kullanıcı adı oluşturun veya mevcut bir cüzdanı içe aktarın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Taradıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.",title:"QR tarayıcı düğmesine dokunun"}}},bifrost:{qr_code:{step1:{description:"Daha hızlı erişim için Bifrost Cüzdan'ı ana ekranınıza koymanızı öneririz.",title:"Bifrost Cüzdan uygulamasını açın"},step2:{description:"Kurtarma ifadenizle bir cüzdan oluşturun veya içe aktarın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Tarama işlemi sonrasında, cüzdanınızı bağlamak için bir bağlantı istemi gözükecektir.",title:"Tarayıcı düğmesine dokunun"}}},bitget:{qr_code:{step1:{description:"Daha hızlı erişim için Bitget Cüzdanınızı ana ekranınıza koymanızı öneririz.",title:"Bitget Cüzdan uygulamasını açın"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Tarama yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.",title:"Tarama düğmesine dokunun"}},extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Bitget Cüzdanını görev çubuğunuza sabitlemenizi öneririz.",title:"Bitget Cüzdan eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklemekten emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin.",title:"Tarayıcınızı yenileyin"}}},bitski:{extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Bitski'yi görev çubuğunuza sabitlemenizi öneririz.",title:"Bitski eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi kimseyle paylaşmayın.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},coin98:{qr_code:{step1:{description:"Cüzdanınıza daha hızlı erişim için Coin98 Cüzdanınızı ana ekranınıza koymanızı öneririz.",title:"Coin98 Cüzdan uygulamasını açın"},step2:{description:"Telefonunuzdaki yedekleme özelliğimizi kullanarak cüzdanınızı kolayca yedekleyebilirsiniz.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Tarama işlemi yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.",title:"CüzdanBağlantısı düğmesine dokunun"}},extension:{step1:{description:"Tarayıcınızın sağ üst köşesinde tıklayın ve Coin98 Cüzdanınızı kolay erişim için sabitleyin.",title:"Coin98 Cüzdan eklentisini yükleyin"},step2:{description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın.",title:"Bir cüzdan oluşturun veya içe aktarın"},step3:{description:"Coin98 Cüzdan'ı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},coinbase:{qr_code:{step1:{description:"Coinbase Cüzdan'ı ana ekranınıza koymanızı öneririz, böylece daha hızlı erişim sağlanır.",title:"Coinbase Wallet uygulamasını açın"},step2:{description:"Cüzdanınızı bulut yedekleme özelliğini kullanarak kolayca yedekleyebilirsiniz.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Tarama yaptıktan sonra, cüzdanınızı bağlamanız için bir bağlantı istemi belirecektir.",title:"Tarama düğmesine dokunun"}},extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Coinbase Wallet'ı görev çubuğunuza sabitlemenizi öneririz.",title:"Coinbase Wallet uzantısını yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli ifadenizi asla başkalarıyla paylaşmayın.",title:"Cüzdan Oluştur veya İçe Aktar"},step3:{description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},core:{qr_code:{step1:{description:"Cüzdanınıza daha hızlı erişim için Core'u ana ekranınıza koymanızı öneririz.",title:"Core uygulamasını açın"},step2:{description:"Cüzdanınızın yedeğini telefonunuzda bulunan yedekleme özelliğimizi kullanarak kolayca alabilirsiniz.",title:"Cüzdan Oluştur veya İçe Aktar"},step3:{description:"Tarama yaptıktan sonra, cüzdanınızı bağlamak üzere bir bağlantı istemi görünecektir.",title:"WalletConnect düğmesine dokunun"}},extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Core'u görev çubuğunuza sabitlemenizi öneririz.",title:"Core eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye dikkat edin. Gizli ifadenizi asla kimseyle paylaşmayın.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayarak tarayıcıyı yenileyin ve eklentiyi yükleyin.",title:"Tarayıcınızı yenileyin"}}},fox:{qr_code:{step1:{description:"Daha hızlı erişim için FoxWallet'ı ana ekranınıza koymanızı öneririz.",title:"FoxWallet uygulamasını açın"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi asla kimseyle paylaşmayın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Tarama yaptıktan sonra cüzdanınızı bağlamanız için bir bağlantı istemi belirecektir.",title:"Tarama düğmesine dokunun"}}},frontier:{qr_code:{step1:{description:"Daha hızlı erişim için Frontier Cüzdanını ana ekranınıza koymanızı öneririz.",title:"Frontier Cüzdan uygulamasını açın"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi asla kimseyle paylaşmayın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Taramadan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.",title:"Tarama düğmesine dokunun"}},extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Frontier Cüzdanını görev çubuğunuza sabitlemenizi öneririz.",title:"Frontier Cüzdan eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemeye ve eklentiyi yüklemeye başlamak için aşağıya tıklayın.",title:"Tarayıcınızı Yenileyin"}}},im_token:{qr_code:{step1:{title:"imToken uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için imToken uygulamasını ana ekranınıza koyun."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Yeni bir cüzdan oluşturun veya mevcut bir cüzdanı içe aktarın."},step3:{title:"Sağ üst köşede Tarayıcı Simgesine dokunun",description:"Yeni Bağlantı'yı seçin, ardından QR kodunu tarayın ve bağlantıyı onaylamak için istemi onaylayın."}}},metamask:{qr_code:{step1:{title:"MetaMask uygulamasını açın",description:"Daha hızlı erişim için MetaMask'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli kurtarma ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarama düğmesine dokunun",description:"Taramayı yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}},extension:{step1:{title:"MetaMask eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için MetaMask'i görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı Yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},okx:{qr_code:{step1:{title:"OKX Wallet uygulamasını açın",description:"Daha hızlı erişim için OKX Wallet'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli cümlenizi asla kimseyle paylaşmayın."},step3:{title:"Tarama düğmesine dokunun",description:"Tarama yaptıktan sonra, cüzdanınızı bağlama istemi görünecektir."}},extension:{step1:{title:"OKX Cüzdan eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için OKX Cüzdan'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli cümlenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},omni:{qr_code:{step1:{title:"Omni uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için Omni'yi ana ekranınıza ekleyin."},step2:{title:"Bir Cüzdan Oluşturun ya da İçe Aktarın",description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın."},step3:{title:"QR simgesine dokunun ve tarayın",description:"Ana ekranınızdaki QR simgesine dokunun, kodu tarayın ve bağlanmak için istemi onaylayın."}}},token_pocket:{qr_code:{step1:{title:"TokenPocket uygulamasını açın",description:"Daha hızlı erişim için TokenPocket'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya Cüzdanı İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarama düğmesine dokunun",description:"Taramayı yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}},extension:{step1:{title:"TokenPocket eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için TokenPocket'i görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli cümlenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemekte ve eklentiyi yüklemek için aşağıya tıklayın."}}},trust:{qr_code:{step1:{title:"Trust Wallet uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için Trust Wallet'ı ana ekranınıza koyun."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Yeni bir cüzdan oluşturun veya mevcut bir tane içe aktarın."},step3:{title:"Ayarlar'da WalletConnect'e dokunun",description:"Yeni Bağlantı'yı seçin, ardından QR kodunu tarayın ve bağlanmak için istemi onaylayın."}},extension:{step1:{title:"Trust Wallet eklentisini yükleyin",description:"Tarayıcınızın sağ üst köşesine tıklayın ve kolay erişim için Trust Wallet'i sabitleyin."},step2:{title:"Bir cüzdan oluşturun veya içe aktarın",description:"Yeni bir cüzdan oluşturun veya mevcut bir tane içe aktarın."},step3:{title:"Tarayıcınızı yenileyin",description:"Trust Wallet'ı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},uniswap:{qr_code:{step1:{title:"Uniswap uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için Uniswap Cüzdanınızı ana ekranınıza ekleyin."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın."},step3:{title:"QR ikonuna dokunun ve tarama yapın",description:"Ana ekranınızdaki QR simgesine dokunun, kodu tarayın ve bağlanmayı onaylamak için istemi kabul edin."}}},zerion:{qr_code:{step1:{title:"Zerion uygulamasını açın",description:"Daha hızlı erişim için Zerion'un ana ekranınıza konumlandırmanızı öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarama düğmesine basın",description:"Taramadan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}},extension:{step1:{title:"Zerion eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Zerion'u görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklemeye emin olun. Gizli ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},rainbow:{qr_code:{step1:{title:"Rainbow uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için Rainbow'u ana ekranınıza koymanızı öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Telefonunuzdaki yedekleme özelliğimizi kullanarak cüzdanınızı kolayca yedekleyebilirsiniz."},step3:{title:"Tarama düğmesine dokunun",description:"Tarama yaptıktan sonra, cüzdanınızı bağlamanız için bir bağlantı istemi belirecektir."}}},enkrypt:{extension:{step1:{description:"Cüzdanınıza daha hızlı erişim sağlamak için Enkrypt Cüzdan'ı görev çubuğunuza sabitlemenizi öneririz.",title:"Enkrypt Cüzdan eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},frame:{extension:{step1:{description:"Cüzdanınıza daha hızlı erişim sağlamak için Frame'ı görev çubuğunuza sabitlemenizi öneririz.",title:"Frame ve eşlik eden uzantıyı yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi asla başkasıyla paylaşmayın.",title:"Cüzdan Oluştur veya İçe Aktar"},step3:{description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve uzantıyı yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},one_key:{extension:{step1:{title:"OneKey Wallet uzantısını yükleyin",description:"Cüzdanınıza daha hızlı erişim için OneKey Wallet'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},phantom:{extension:{step1:{title:"Phantom eklentisini yükleyin",description:"Cüzdanınıza daha kolay erişim sağlamak için Phantom'u görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli kurtarma ifadenizi kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},rabby:{extension:{step1:{title:"Rabby eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Rabby'yi görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıdaki düğmeye tıklayın."}}},safeheron:{extension:{step1:{title:"Core eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Safeheron'u görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},taho:{extension:{step1:{title:"Taho uzantısını yükleyin",description:"Cüzdanınıza daha hızlı erişim için Taho'yu görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},talisman:{extension:{step1:{title:"Talisman eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Talisman'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Ethereum Cüzdanı Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Kurtarma ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},xdefi:{extension:{step1:{title:"XDEFI Cüzdan eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için XDEFI Wallet'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},zeal:{extension:{step1:{title:"Zeal eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Zeal'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin."}}},safepal:{extension:{step1:{title:"SafePal Wallet eklentisini yükleyin",description:"Tarayıcınızın sağ üst köşesine tıklayın ve kolay erişim için SafePal Wallet'ı sabitleyin."},step2:{title:"Bir cüzdan oluşturun veya içe aktarın",description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın."},step3:{title:"Tarayıcınızı yenileyin",description:"SafePal Cüzdan'ı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}},qr_code:{step1:{title:"SafePal Cüzdan uygulamasını açın",description:"SafePal Cüzdan'ı ana ekranınıza koyun, cüzdanınıza daha hızlı erişim için."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın."},step3:{title:"Ayarlar'da WalletConnect'e dokunun",description:"Yeni Bağlantı'yı seçin, ardından QR kodunu tarayın ve bağlantıyı onaylamak için istemi onaylayın."}}},desig:{extension:{step1:{title:"Desig eklentisini yükleyin",description:"Cüzdanınıza daha kolay erişim sağlamak için Desig'i görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin."}}},subwallet:{extension:{step1:{title:"SubWallet eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için SubWallet'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Kurtarma ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin."}},qr_code:{step1:{title:"SubWallet uygulamasını açın",description:"Daha hızlı erişim için SubWallet'ı ana ekranınıza koymenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcı düğmesine dokunun",description:"Taradıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir."}}},clv:{extension:{step1:{title:"CLV Cüzdanı eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için CLV Cüzdanını görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin."}},qr_code:{step1:{title:"CLV Cüzdan uygulamasını açın",description:"Daha hızlı erişim için CLV Cüzdanını ana ekranınıza koymanızı öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcı düğmesine dokunun",description:"Taradıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir."}}},okto:{qr_code:{step1:{title:"Okto uygulamasını açın",description:"Hızlı erişim için Okto'yu ana ekranınıza ekleyin"},step2:{title:"MPC Cüzdanı oluşturun",description:"Bir hesap oluşturun ve bir cüzdan oluşturun"},step3:{title:"Ayarlar'da WalletConnect'e dokunun",description:"Sağ üstteki Tarama QR simgesine dokunun ve bağlanmak için istemi onaylayın."}}},ledger:{desktop:{step1:{title:"Ledger Live uygulamasını açın",description:"Daha hızlı erişim için Ledger Live'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Ledger'ınızı kurun",description:"Yeni bir Ledger kurun veya mevcut birine bağlanın."},step3:{title:"Bağlan",description:"Cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}},qr_code:{step1:{title:"Ledger Live uygulamasını açın",description:"Daha hızlı erişim için Ledger Live'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Ledger'ınızı kurun",description:"Masaüstü uygulama ile senkronize olabilir veya Ledger'ınızı bağlayabilirsiniz."},step3:{title:"Kodu tarayın",description:"WalletConnect'e dokunun ve ardından Tarayıcı'ya geçin. Taramadan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}}}},ww={connect_wallet:Qg0,intro:Jg0,sign_in:Zg0,connect:Yg0,connect_scan:Xg0,connector_group:uA0,get:eA0,get_options:tA0,get_mobile:nA0,get_instructions:rA0,chains:iA0,profile:aA0,wallet_connectors:oA0},sA0={label:"连接钱包"},fA0={title:"什么是钱包?",description:"钱包用于发送、接收、存储和显示数字资产。它也是一种新型的登录方式,无需在每个网站上创建新账户和密码。",digital_asset:{title:"您的数字资产之家",description:"钱包用于发送、接收、存储和显示像以太坊和NFT这样的数字资产。"},login:{title:"一种新的登录方式",description:"而不是在每个网站上创建新的账户和密码,只需连接您的钱包。"},get:{label:"获取钱包"},learn_more:{label:"了解更多"}},lA0={label:"验证您的账户",description:"为了完成连接,您必须在钱包中签署一条消息,以验证您是此账户的所有者。",message:{send:"发送消息",preparing:"准备消息中...",cancel:"取消",preparing_error:"准备消息时出错,请重试!"},signature:{waiting:"等待签名...",verifying:"正在验证签名...",signing_error:"签署消息时出错,请重试!",verifying_error:"验证签名时出错,请重试!",oops_error:"哎呀,出了点问题!"}},cA0={label:"连接",title:"连接钱包",new_to_ethereum:{description:"对以太坊钱包不熟悉?",learn_more:{label:"了解更多"}},learn_more:{label:"了解更多"},recent:"近期",status:{opening:"正在打开 %{wallet}...",not_installed:"%{wallet} 尚未安装",not_available:"%{wallet} 不可用",confirm:"在扩展中确认连接"},secondary_action:{get:{description:"没有 %{wallet}吗?",label:"获取"},install:{label:"安装"},retry:{label:"重试"}},walletconnect:{description:{full:"需要官方的 WalletConnect 弹窗吗?",compact:"需要 WalletConnect 弹窗吗?"},open:{label:"打开"}}},dA0={title:"使用 %{wallet}扫描",fallback_title:"使用您的手机扫描"},EA0={recommended:"推荐",other:"其他",popular:"流行",more:"更多",others:"其他的"},pA0={title:"获取一个钱包",action:{label:"获取"},mobile:{description:"移动钱包"},extension:{description:"浏览器扩展"},mobile_and_extension:{description:"移动钱包和扩展"},mobile_and_desktop:{description:"移动和桌面钱包"},looking_for:{title:"不是你要找的吗?",mobile:{description:"在主屏幕上选择一个钱包,以开始使用不同的钱包提供商。"},desktop:{compact_description:"在主屏幕上选择一个钱包,以开始使用不同的钱包提供商。",wide_description:"在左侧选择一个钱包,以开始使用不同的钱包提供商。"}}},hA0={title:"开始使用 %{wallet}",short_title:"获取 %{wallet}",mobile:{title:"%{wallet} 用于移动",description:"使用移动钱包探索以太坊的世界。",download:{label:"获取应用"}},extension:{title:"%{wallet} 为 %{browser}",description:"从您最喜欢的网络浏览器直接访问您的钱包。",download:{label:"添加到 %{browser}"}},desktop:{title:"%{wallet} 对于 %{platform}",description:"从您强大的桌面原生访问您的钱包。",download:{label:"添加到 %{platform}"}}},CA0={title:"安装 %{wallet}",description:"用手机扫描下载 iOS 或 Android",continue:{label:"继续"}},mA0={mobile:{connect:{label:"连接"},learn_more:{label:"了解更多"}},extension:{refresh:{label:"刷新"},learn_more:{label:"了解更多"}},desktop:{connect:{label:"连接"},learn_more:{label:"了解更多"}}},bA0={title:"切换网络",wrong_network:"检测到错误的网络,请切换或断开连接以继续。",confirm:"在钱包中确认",switching_not_supported:"您的钱包不支持从 %{appName}切换网络。请尝试从您的钱包内部切换网络。",switching_not_supported_fallback:"您的钱包不支持从此应用切换网络。尝试从您的钱包内切换网络。",disconnect:"断开连接",connected:"已连接"},gA0={disconnect:{label:"断开连接"},copy_address:{label:"复制地址",copied:"已复制!"},explorer:{label:"在浏览器上查看更多"},transactions:{description:"%{appName} 交易将会出现在这里...",description_fallback:"您的交易将会出现在这里...",recent:{title:"最近交易"},clear:{label:"清除全部"}}},AA0={argent:{qr_code:{step1:{description:"将 Argent 放到您的主屏幕上,以便更快地访问您的钱包。",title:"打开 Argent 应用"},step2:{description:"创建钱包和用户名,或导入现有钱包。",title:"创建或导入钱包"},step3:{description:"在您扫描后,将出现连接提示,供您连接您的钱包。",title:"点击扫描二维码按钮"}}},bifrost:{qr_code:{step1:{description:"我们建议将Bifrost Wallet放在您的主屏幕上,以便更快地访问。",title:"打开 Bifrost Wallet 应用"},step2:{description:"使用恢复短语创建或导入钱包。",title:"创建或导入钱包"},step3:{description:"在您扫描后,将出现连接提示,供您连接您的钱包。",title:"点击扫描按钮"}}},bitget:{qr_code:{step1:{description:"我们建议您将Bitget钱包添加到主屏幕,以便更快地访问。",title:"打开Bitget钱包应用程序"},step2:{description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现一个连接提示,供您连接您的钱包。",title:"点击扫描按钮"}},extension:{step1:{description:"我们建议您将Bitget钱包固定在任务栏,以便更快地访问您的钱包。",title:"安装Bitget Wallet扩展"},step2:{description:"确保使用安全的方式备份您的钱包。绝不与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置钱包后,点击下方刷新浏览器并加载扩展。",title:"刷新您的浏览器"}}},bitski:{extension:{step1:{description:"我们建议您将Bitski固定在任务栏上,以便更快地访问您的钱包。",title:"安装Bitski扩展"},step2:{description:"请确保用安全的方法备份您的钱包。绝不与任何人共享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置完您的钱包后,点击下方以刷新浏览器并加载扩展程序。",title:"刷新您的浏览器"}}},coin98:{qr_code:{step1:{description:"我们建议将Coin98钱包放在您的主屏幕上,以便更快地访问您的钱包。",title:"打开Coin98钱包应用程序"},step2:{description:"您可以使用我们的手机上的备份功能轻松备份您的钱包。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现一个连接提示,让您连接您的钱包。",title:"点击WalletConnect按钮"}},extension:{step1:{description:"点击浏览器右上角并固定Coin98钱包,以便轻松访问。",title:"安装Coin98钱包扩展"},step2:{description:"创建新钱包或导入现有钱包。",title:"创建或导入钱包。"},step3:{description:"设置完成Coin98 钱包后,单击下方以刷新浏览器并加载扩展程序。",title:"刷新您的浏览器"}}},coinbase:{qr_code:{step1:{description:"我们建议您把Coinbase钱包放到主屏幕上,以便更快地访问。",title:"打开Coinbase钱包应用"},step2:{description:"您可以轻松地使用云备份功能备份您的钱包。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现连接提示,供您连接您的钱包。",title:"点击扫描按钮"}},extension:{step1:{description:"我们建议您将Coinbase钱包固定在任务栏上,以便更快地访问您的钱包。",title:"安装Coinbase钱包扩展"},step2:{description:"务必使用安全的方法备份您的钱包。永远不要与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置好钱包后,点击下方以刷新浏览器并加载扩展。",title:"刷新您的浏览器"}}},core:{qr_code:{step1:{description:"我们建议您将Core添加到主屏幕,以便更快地访问您的钱包。",title:"打开Core应用程序"},step2:{description:"您可以使用我们的手机备份功能轻松备份您的钱包。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现连接提示,让您连接您的钱包。",title:"点击WalletConnect按钮"}},extension:{step1:{description:"我们建议将 Core 固定到任务栏,以便更快地访问您的钱包。",title:"安装 Core 扩展"},step2:{description:"一定要使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置好钱包后,点击下方以刷新浏览器并加载扩展。",title:"刷新你的浏览器"}}},fox:{qr_code:{step1:{description:"我们建议您将 FoxWallet 放到主屏幕上,以便更快的访问。",title:"打开 FoxWallet 应用"},step2:{description:"确保使用安全的方法备份您的钱包。永远不要与任何人共享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现连接提示,让您连接您的钱包。",title:"点击扫描按钮"}}},frontier:{qr_code:{step1:{description:"我们建议将 Frontier 钱包放在您的主屏幕上,以便更快地访问。",title:"打开 Frontier 钱包应用"},step2:{description:"确保使用安全的方法备份您的钱包。永远不要与任何人共享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现连接提示,让您连接您的钱包。",title:"点击扫描按钮"}},extension:{step1:{description:"我们建议您将Frontier钱包固定到任务栏,以便更快地访问您的钱包。",title:"安装Frontier钱包扩展"},step2:{description:"确保使用安全的方法备份您的钱包。永远不要与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置完成钱包后,点击下方刷新浏览器并加载扩展。",title:"刷新你的浏览器"}}},im_token:{qr_code:{step1:{title:"打开imToken应用",description:"将imToken应用放在您的主屏幕上,以更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"创建新钱包或导入已有的钱包。"},step3:{title:"点击右上角的扫描图标",description:"选择新连接,然后扫描二维码并确认提示以进行连接。"}}},metamask:{qr_code:{step1:{title:"打开 MetaMask 应用",description:"我们建议将 MetaMask 放在您的主屏幕上,以便更快地访问。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。永远不要与任何人分享你的秘密短语。"},step3:{title:"点击扫描按钮",description:"扫描后,将出现连接提示,以便你连接你的钱包。"}},extension:{step1:{title:"安装 MetaMask 扩展",description:"我们建议将MetaMask固定在您的任务栏上,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"请务必使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"一旦您设置好您的钱包,点击下面刷新浏览器并加载扩展。"}}},okx:{qr_code:{step1:{title:"打开OKX钱包应用程序",description:"我们建议将OKX钱包放在您的主屏幕上,以便更快地访问。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。千万不要与任何人分享您的秘密短语。"},step3:{title:"点击扫描按钮",description:"扫描后,将出现一个连接提示,让您连接您的钱包。"}},extension:{step1:{title:"安装 OKX 钱包扩展",description:"我们建议将 OKX 钱包固定到您的任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。千万不要与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"一旦你设置好你的钱包,点击下方刷新浏览器并加载扩展。"}}},omni:{qr_code:{step1:{title:"打开Omni应用",description:"将Omni添加到你的主屏幕,以便更快地访问你的钱包。"},step2:{title:"创建或导入钱包",description:"创建新的钱包或导入现有的钱包。"},step3:{title:"点击QR图标并扫描",description:"点击首页的二维码图标,扫描代码并确认提示以连接。"}}},token_pocket:{qr_code:{step1:{title:"打开TokenPocket应用",description:"我们建议将TokenPocket放在您的主屏幕上以便更快的访问。"},step2:{title:"创建或导入钱包",description:"一定要使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"点击扫描按钮",description:"扫描后,将出现连接提示,供您连接钱包。"}},extension:{step1:{title:"安装TokenPocket扩展",description:"我们建议将TokenPocket固定到任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入一个钱包",description:"一定要使用安全的方法备份您的钱包。绝对不要与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下面刷新浏览器并加载扩展。"}}},trust:{qr_code:{step1:{title:"打开Trust Wallet应用",description:"将Trust Wallet放在主屏幕上,以便更快地访问您的钱包。"},step2:{title:"创建或导入一个钱包",description:"创建新的钱包或导入现有的钱包。"},step3:{title:"在设置中点击WalletConnect",description:"选择新的连接,然后扫描二维码并确认提示以进行连接。"}},extension:{step1:{title:"安装Trust Wallet扩展程序",description:"在浏览器的右上角点击并固定Trust Wallet以便于访问。"},step2:{title:"创建或导入钱包",description:"创建新的钱包或导入现有的钱包。"},step3:{title:"刷新您的浏览器",description:"设置Trust Wallet后,点击下面以刷新浏览器并加载扩展程序。"}}},uniswap:{qr_code:{step1:{title:"打开Uniswap应用",description:"将Uniswap钱包添加到您的主屏幕,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"创建新钱包或导入现有钱包。"},step3:{title:"点击QR图标并扫描",description:"在您的主屏幕上点击QR图标,扫描代码并确认提示以进行连接。"}}},zerion:{qr_code:{step1:{title:"打开Zerion应用",description:"我们建议将Zerion放在您的主屏幕上以便更快地访问。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方式备份你的钱包。绝对不要与任何人分享你的私人密语。"},step3:{title:"点击扫描按钮",description:"你扫描后,会出现一个连接提示让你连接你的钱包。"}},extension:{step1:{title:"安装 Zerion 扩展",description:"我们建议将 Zerion 固定在你的任务栏以便更快访问你的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份你的钱包。永远不要与任何人分享你的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置您的钱包后,点击下面以刷新浏览器并加载扩展程序。"}}},rainbow:{qr_code:{step1:{title:"打开 Rainbow 应用",description:"我们建议将 Rainbow 放在您的主屏幕上,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"您可以使用我们的备份功能在您的手机上轻松备份你的钱包。"},step3:{title:"点击扫描按钮",description:"扫描后,将出现连接提示,让您连接您的钱包。"}}},enkrypt:{extension:{step1:{description:"我们建议将Enkrypt Wallet固定到任务栏,以便更快地访问您的钱包。",title:"安装Enkrypt Wallet扩展"},step2:{description:"请确保使用安全方法备份您的钱包。永远不要与任何人分享您的秘密短语。",title:"创建钱包或导入钱包"},step3:{description:"设置钱包后,点击下面刷新浏览器并加载扩展。",title:"刷新您的浏览器"}}},frame:{extension:{step1:{description:"我们建议将Frame固定到任务栏,以便更快地访问您的钱包。",title:"安装Frame及其配套扩展"},step2:{description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置钱包后,点击下方以刷新浏览器并加载扩展。",title:"刷新你的浏览器"}}},one_key:{extension:{step1:{title:"安装OneKey Wallet扩展",description:"我们建议将OneKey Wallet固定到任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},phantom:{extension:{step1:{title:"安装 Phantom 扩展程序",description:"我们建议将 Phantom 固定到您的任务栏,以便更容易访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密恢复短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},rabby:{extension:{step1:{title:"安装 Rabby 扩展程序",description:"我们建议将 Rabby 固定在您的任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"一定要使用安全的方法备份您的钱包。切勿与任何人分享您的密钥短语。"},step3:{title:"刷新您的浏览器",description:"一旦您设置好您的钱包,点击以下以刷新浏览器并加载扩展程序。"}}},safeheron:{extension:{step1:{title:"安装 Core 扩展",description:"我们建议将 Safeheron 固定在您的任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},taho:{extension:{step1:{title:"安装Taho扩展程序",description:"我们建议将Taho固定在您的任务栏上,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},talisman:{extension:{step1:{title:"安装 Talisman 扩展程序",description:"我们建议将 Talisman 固定在任务栏上,以便更快地访问您的钱包。"},step2:{title:"创建或导入以太坊钱包",description:"确保使用安全的方法备份您的钱包。永远不要与任何人分享您的恢复短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},xdefi:{extension:{step1:{title:"安装 XDEFI 钱包扩展程序",description:"我们建议将XDEFI钱包固定到您的任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。永远不要与任何人共享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"一旦你设置好你的钱包,点击下面刷新浏览器和加载扩展。"}}},zeal:{extension:{step1:{title:"安装Zeal扩展程序",description:"我们建议将Zeal固定在您的任务栏上,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置钱包后,点击下方刷新浏览器并加载扩展。"}}},safepal:{extension:{step1:{title:"安装SafePal Wallet扩展程序",description:"点击浏览器右上角并固定SafePal Wallet以便于快速访问。"},step2:{title:"创建或导入钱包。",description:"创建新钱包或导入现有钱包。"},step3:{title:"刷新您的浏览器",description:"一旦设置了SafePal钱包,点击下方刷新浏览器并加载扩展程序。"}},qr_code:{step1:{title:"打开SafePal钱包应用程序",description:"将SafePal钱包放在主屏幕上以更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"创建新钱包或导入现有钱包。"},step3:{title:"在设置中点击WalletConnect",description:"选择新连接,然后扫描二维码并确认提示以进行连接。"}}},desig:{extension:{step1:{title:"安装 Desig 扩展",description:"我们建议将 Desig 固定到任务栏,以便更轻松地访问您的钱包。"},step2:{title:"创建一个钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置钱包后,点击下方刷新浏览器并加载扩展。"}}},subwallet:{extension:{step1:{title:"安装 SubWallet 扩展",description:"我们建议将 SubWallet 固定到任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。永远不要与任何人分享您的恢复短语。"},step3:{title:"刷新您的浏览器",description:"设置钱包后,点击下方刷新浏览器并加载扩展。"}},qr_code:{step1:{title:"打开 SubWallet 应用",description:"我们建议将 SubWallet 放置在主屏幕上,以便更快地访问。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"点击扫描按钮",description:"在您扫描后,将出现连接提示,供您连接您的钱包。"}}},clv:{extension:{step1:{title:"安装 CLV Wallet 扩展",description:"我们建议将 CLV Wallet 固定到任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置钱包后,点击下方刷新浏览器并加载扩展。"}},qr_code:{step1:{title:"打开 CLV 钱包应用",description:"我们建议将 CLV 钱包添加到您的主屏幕,以便更快地访问。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"点击扫描按钮",description:"在您扫描后,将出现连接提示,供您连接您的钱包。"}}},okto:{qr_code:{step1:{title:"打开 Okto 应用",description:"将 Okto 添加到您的主屏幕以便快速访问"},step2:{title:"创建一个 MPC 钱包",description:"创建一个账户并生成一个钱包"},step3:{title:"在设置中点击WalletConnect",description:"点击右上角的扫描二维码图标,并确认提示以连接。"}}},ledger:{desktop:{step1:{title:"打开Ledger Live应用",description:"我们建议将Ledger Live放在您的主屏幕上,以便更快地访问。"},step2:{title:"设置您的Ledger",description:"设置一个新的Ledger或连接到一个现有的。"},step3:{title:"连接",description:"你扫描后,会出现一个连接提示让你连接你的钱包。"}},qr_code:{step1:{title:"打开Ledger Live应用",description:"我们建议将Ledger Live放在您的主屏幕上,以便更快地访问。"},step2:{title:"设置您的Ledger",description:"您可以同步桌面应用程式,或连接您的Ledger。"},step3:{title:"扫描代码",description:"点击 WalletConnect 然后切换到扫描器。你扫描后,会出现一个连接提示让你连接你的钱包。"}}}},xw={connect_wallet:sA0,intro:fA0,sign_in:lA0,connect:cA0,connect_scan:dA0,connector_group:EA0,get:pA0,get_options:hA0,get_mobile:CA0,get_instructions:mA0,chains:bA0,profile:gA0,wallet_connectors:AA0},So=new KR.I18n({ar:hw,"ar-AR":hw,en:Cw,"en-US":Cw,es:mw,"es-419":mw,fr:bw,"fr-FR":bw,hi:gw,"hi-IN":gw,id:Aw,"id-ID":Aw,ja:yw,"ja-JP":yw,ko:vw,"ko-KR":vw,pt:Bw,"pt-BR":Bw,ru:Fw,"ru-RU":Fw,th:Dw,"th-TH":Dw,tr:ww,"tr-TR":ww,zh:xw,"zh-CN":xw});So.defaultLocale="en-US";So.locale="en-US";So.enableFallback=!0;var yA0=()=>{var u;if(typeof window<"u"&&typeof navigator<"u"){if((u=navigator.languages)!=null&&u.length)return navigator.languages[0];if(navigator.language)return navigator.language}},le=w.createContext(So),vA0=({children:u,locale:e})=>{const t=w.useMemo(()=>yA0(),[]),n=w.useMemo(()=>(e?So.locale=e:!e&&t&&(So.locale=t),So),[e,t]);return F.createElement(le.Provider,{value:n},u)};function qA(u){return u!=null}var kw={iconBackground:"#96bedc",iconUrl:async()=>(await q0(()=>import("./arbitrum-LYDBJZP3-KuelVeRo.js"),__vite__mapDeps([]))).default},_w={iconBackground:"#e84141",iconUrl:async()=>(await q0(()=>import("./avalanche-TFPKP544-t-P1D_4h.js"),__vite__mapDeps([]))).default},Sw={iconBackground:"#0052ff",iconUrl:async()=>(await q0(()=>import("./base-3MIUIYGA-O1y3e2Yh.js"),__vite__mapDeps([]))).default},Tw={iconBackground:"#ebac0e",iconUrl:async()=>(await q0(()=>import("./bsc-S2GSW6VX-hwC4eOfE.js"),__vite__mapDeps([]))).default},Pw={iconBackground:"#002D74",iconUrl:async()=>(await q0(()=>import("./cronos-DQKKIEX7-hjhPqvrD.js"),__vite__mapDeps([]))).default},Bi={iconBackground:"#484c50",iconUrl:async()=>(await q0(()=>import("./ethereum-4FY57XJF-hWY7Q1hZ.js"),__vite__mapDeps([]))).default},BA0={iconBackground:"#f9f7ec",iconUrl:async()=>(await q0(()=>import("./hardhat-ARRFHFKB-h5iXIbmF.js"),__vite__mapDeps([]))).default},rh={iconBackground:"#ff5a57",iconUrl:async()=>(await q0(()=>import("./optimism-UUP5Y7TB-KDutc3G3.js"),__vite__mapDeps([]))).default},Iw={iconBackground:"#9f71ec",iconUrl:async()=>(await q0(()=>import("./polygon-Z4QITDL7-zNmkxoMh.js"),__vite__mapDeps([]))).default},Ow={iconBackground:"#f9f7ec",iconUrl:async()=>(await q0(()=>import("./xdc-5UHQ25DW-5b24iEUg.js"),__vite__mapDeps([]))).default},Rw={iconBackground:"#f9f7ec",iconUrl:async()=>(await q0(()=>import("./zkSync-XRUC4ZHO-NNXylIR-.js"),__vite__mapDeps([]))).default},Nw={iconBackground:"#000000",iconUrl:async()=>(await q0(()=>import("./zora-KVO7WIOK-R166txMv.js"),__vite__mapDeps([]))).default},FA0={arbitrum:{chainId:42161,name:"Arbitrum",...kw},arbitrumGoerli:{chainId:421613,...kw},avalanche:{chainId:43114,..._w},avalancheFuji:{chainId:43113,..._w},base:{chainId:8453,name:"Base",...Sw},baseGoerli:{chainId:84531,...Sw},bsc:{chainId:56,name:"BSC",...Tw},bscTestnet:{chainId:97,...Tw},cronos:{chainId:25,...Pw},cronosTestnet:{chainId:338,...Pw},goerli:{chainId:5,...Bi},hardhat:{chainId:31337,...BA0},holesky:{chainId:17e3,...Bi},kovan:{chainId:42,...Bi},localhost:{chainId:1337,...Bi},mainnet:{chainId:1,name:"Ethereum",...Bi},optimism:{chainId:10,name:"Optimism",...rh},optimismGoerli:{chainId:420,...rh},optimismKovan:{chainId:69,...rh},polygon:{chainId:137,name:"Polygon",...Iw},polygonMumbai:{chainId:80001,...Iw},rinkeby:{chainId:4,...Bi},ropsten:{chainId:3,...Bi},sepolia:{chainId:11155111,...Bi},xdc:{chainId:50,name:"XinFin",...Ow},xdcTestnet:{chainId:51,...Ow},zkSync:{chainId:324,name:"zkSync",...Rw},zkSyncTestnet:{chainId:280,...Rw},zora:{chainId:7777777,name:"Zora",...Nw},zoraTestnet:{chainId:999,...Nw}},DA0=Object.fromEntries(Object.values(FA0).filter(qA).map(({chainId:u,...e})=>[u,e])),wA0=u=>u.map(e=>{var t,n,r,i;const a=(t=DA0[e.id])!=null?t:{};return{...e,name:(n=a.name)!=null?n:e.name,iconUrl:(r=e.iconUrl)!=null?r:a.iconUrl,iconBackground:(i=e.iconBackground)!=null?i:a.iconBackground}}),HA=w.createContext({chains:[]});function xA0({chains:u,children:e,initialChain:t}){return F.createElement(HA.Provider,{value:w.useMemo(()=>({chains:wA0(u),initialChainId:typeof t=="number"?t:t==null?void 0:t.id}),[u,t])},e)}var Uc=()=>w.useContext(HA).chains,kA0=()=>w.useContext(HA).initialChainId,_A0=()=>{const u=Uc();return w.useMemo(()=>{const e={};return u.forEach(t=>{e[t.id]=t}),e},[u])},SA0=()=>{const[u,e]=w.useReducer(()=>!0,!1);return w.useEffect(e,[e]),u};function BM(){const u=TR.id,e=lE(),t=Array.isArray(e.chains)?e.chains:[],n=t==null?void 0:t.some(r=>(r==null?void 0:r.id)===u);return{chainId:u,enabled:n}}function FM(u){const{chainId:e,enabled:t}=BM(),{data:n}=bi0({chainId:e,enabled:t,name:u});return n}function DM(u){const{chainId:e,enabled:t}=BM(),{data:n}=yi0({address:u,chainId:e,enabled:t});return n}function GA(){var u;const{chain:e}=ka();return(u=e==null?void 0:e.id)!=null?u:null}var wM="rk-transactions";function TA0(u){try{const e=u?JSON.parse(u):{};return typeof e=="object"?e:{}}catch{return{}}}function Mw(){return TA0(typeof localStorage<"u"?localStorage.getItem(wM):null)}var PA0=/^0x([A-Fa-f0-9]{64})$/;function IA0(u){const e=[];return PA0.test(u.hash)||e.push("Invalid transaction hash"),typeof u.description!="string"&&e.push("Transaction must have a description"),typeof u.confirmations<"u"&&(!Number.isInteger(u.confirmations)||u.confirmations<1)&&e.push("Transaction confirmations must be a positiver integer"),e}function OA0({provider:u}){let e=Mw(),t=u;const n=new Set,r=new Map;function i(h){t=h}function a(h,g){var b,m;return(m=(b=e[h])==null?void 0:b[g])!=null?m:[]}function o(h,g,b){const m=IA0(b);if(m.length>0)throw new Error(["Unable to add transaction",...m].join(` -`));c(h,g,A=>[{...b,status:"pending"},...A.filter(({hash:y})=>y!==b.hash)])}function s(h,g){c(h,g,()=>[])}function f(h,g,b,m){c(h,g,A=>A.map(y=>y.hash===b?{...y,status:m}:y))}async function l(h,g){await Promise.all(a(h,g).filter(b=>b.status==="pending").map(async b=>{const{confirmations:m,hash:A}=b,y=r.get(A);if(y)return await y;const B=t.waitForTransactionReceipt({confirmations:m,hash:A}).then(({status:v})=>{r.delete(A),v!==void 0&&f(h,g,A,v===0||v==="reverted"?"failed":"confirmed")});return r.set(A,B),await B}))}function c(h,g,b){var m,A;e=Mw(),e[h]=(m=e[h])!=null?m:{};let y=0;const B=10,v=b((A=e[h][g])!=null?A:[]).filter(({status:C})=>C==="pending"?!0:y++<=B);e[h][g]=v.length>0?v:void 0,d(),E(),l(h,g)}function d(){localStorage.setItem(wM,JSON.stringify(e))}function E(){n.forEach(h=>h())}function p(h){return n.add(h),()=>{n.delete(h)}}return{addTransaction:o,clearTransactions:s,getTransactions:a,onChange:p,setProvider:i,waitForPendingTransactions:l}}var ih,xM=w.createContext(null);function RA0({children:u}){const e=lE(),{address:t}=Bt(),n=GA(),[r]=w.useState(()=>ih??(ih=OA0({provider:e})));return w.useEffect(()=>{r.setProvider(e)},[r,e]),w.useEffect(()=>{t&&n&&r.waitForPendingTransactions(t,n)},[r,t,n]),F.createElement(xM.Provider,{value:r},u)}function kM(){const u=w.useContext(xM);if(!u)throw new Error("Transaction hooks must be used within RainbowKitProvider");return u}function _M(){const u=kM(),{address:e}=Bt(),t=GA(),[n,r]=w.useState(()=>u&&e&&t?u.getTransactions(e,t):[]);return w.useEffect(()=>{if(u&&e&&t)return r(u.getTransactions(e,t)),u.onChange(()=>{r(u.getTransactions(e,t))})},[u,e,t]),n}var jw=u=>typeof u=="function"?u():u;function NA0(u,{extends:e}={}){const t={...sw(dw,jw(u))};if(!e)return t;const n=sw(dw,jw(e));return Object.fromEntries(Object.entries(t).filter(([i,a])=>a!==n[i]))}function zw(u,e={}){return Object.entries(NA0(u,e)).map(([t,n])=>`${t}:${n.replace(/[:;{}]/g,"")};`).join("")}var SM={appName:void 0,disclaimer:void 0,learnMoreUrl:"https://learn.rainbow.me/understanding-web3?utm_source=rainbowkit&utm_campaign=learnmore"},L3=w.createContext(SM),TM=w.createContext(!1),PM=()=>{const[u,e]=w.useState({height:void 0,width:void 0});return w.useEffect(()=>{function t(){e({height:window.innerHeight,width:window.innerWidth})}return window.addEventListener("resize",t),t(),()=>window.removeEventListener("resize",t)},[]),u},Wc=w.createContext({connector:null,setConnector:()=>{}});function MA0({children:u}){const[e,t]=w.useState(null);return F.createElement(Wc.Provider,{value:w.useMemo(()=>({connector:e,setConnector:t}),[e])},u)}var qc={COMPACT:"compact",WIDE:"wide"},jE=w.createContext(qc.WIDE);function jA0({children:u,modalSize:e}){const{width:t}=PM(),n=t&&t{LA0({version:"1.3.0"})},[]);w.useEffect(()=>{u()},[u])}function UA0(u){const e=[];for(const t of u)e.push(...t);return e}function WA0(u,e){const t={};return u.forEach(n=>{const r=e(n);r&&(t[r]=n)}),t}function KA(){return typeof navigator<"u"&&/Version\/([0-9._]+).*Safari/.test(navigator.userAgent)}function qA0(){return typeof document<"u"&&getComputedStyle(document.body).getPropertyValue("--arc-palette-focus")!==""}function QA(){var u;if(typeof navigator>"u")return"Browser";const e=navigator.userAgent.toLowerCase();return(u=navigator.brave)!=null&&u.isBrave?"Brave":e.indexOf("edg/")>-1?"Edge":e.indexOf("op")>-1?"Opera":qA0()?"Arc":e.indexOf("chrome")>-1?"Chrome":e.indexOf("firefox")>-1?"Firefox":KA()?"Safari":"Browser"}var HA0=aC0.UAParser(),{os:JA}=HA0;function GA0(){return JA.name==="Windows"}function VA0(){return JA.name==="Mac OS"}function KA0(){return["Ubuntu","Mint","Fedora","Debian","Arch","Linux"].includes(JA.name)}function ZA(){return GA0()?"Windows":VA0()?"macOS":KA0()?"Linux":"Desktop"}var QA0=u=>{var e,t,n,r,i,a,o,s,f,l,c,d;const E=QA();return(d={Arc:(e=u==null?void 0:u.downloadUrls)==null?void 0:e.chrome,Brave:(t=u==null?void 0:u.downloadUrls)==null?void 0:t.chrome,Chrome:(n=u==null?void 0:u.downloadUrls)==null?void 0:n.chrome,Edge:((r=u==null?void 0:u.downloadUrls)==null?void 0:r.edge)||((i=u==null?void 0:u.downloadUrls)==null?void 0:i.chrome),Firefox:(a=u==null?void 0:u.downloadUrls)==null?void 0:a.firefox,Opera:((o=u==null?void 0:u.downloadUrls)==null?void 0:o.opera)||((s=u==null?void 0:u.downloadUrls)==null?void 0:s.chrome),Safari:(f=u==null?void 0:u.downloadUrls)==null?void 0:f.safari,Browser:(l=u==null?void 0:u.downloadUrls)==null?void 0:l.browserExtension}[E])!=null?d:(c=u==null?void 0:u.downloadUrls)==null?void 0:c.browserExtension},JA0=u=>{var e,t,n,r;return(r=ms()?(e=u==null?void 0:u.downloadUrls)==null?void 0:e.ios:(t=u==null?void 0:u.downloadUrls)==null?void 0:t.android)!=null?r:(n=u==null?void 0:u.downloadUrls)==null?void 0:n.mobile},ZA0=u=>{var e,t,n,r,i,a;const o=ZA();return(a={Windows:(e=u==null?void 0:u.downloadUrls)==null?void 0:e.windows,macOS:(t=u==null?void 0:u.downloadUrls)==null?void 0:t.macos,Linux:(n=u==null?void 0:u.downloadUrls)==null?void 0:n.linux,Desktop:(r=u==null?void 0:u.downloadUrls)==null?void 0:r.desktop}[o])!=null?a:(i=u==null?void 0:u.downloadUrls)==null?void 0:i.desktop},IM="rk-recent";function YA0(u){try{const e=u?JSON.parse(u):[];return Array.isArray(e)?e:[]}catch{return[]}}function OM(){return typeof localStorage<"u"?YA0(localStorage.getItem(IM)):[]}function XA0(u){return[...new Set(u)]}function uy0(u){const e=XA0([u,...OM()]);localStorage.setItem(IM,JSON.stringify(e))}function zE(){const u=Uc(),e=kA0(),{connectAsync:t,connectors:n}=ni0(),r=n;async function i(E,p){var h,g,b;const m=await p.getChainId(),A=await t({chainId:(b=e??((h=u.find(({id:y})=>y===m))==null?void 0:h.id))!=null?b:(g=u[0])==null?void 0:g.id,connector:p});return A&&uy0(E),A}async function a(E,p){try{return await i(E,p)}catch(h){if(!(h.name==="UserRejectedRequestError"||h.message==="Connection request reset. Please try again."))throw h}}const o=UA0(r.map(E=>{var p;return(p=E._wallets)!=null?p:[]})).sort((E,p)=>E.index-p.index),s=WA0(o,E=>E.id),f=3,l=OM().map(E=>s[E]).filter(qA).slice(0,f),c=[...l,...o.filter(E=>!l.includes(E))],d=[];return c.forEach(E=>{var p;if(!E)return;const h=l.includes(E);d.push({...E,connect:()=>E.connector.showQrModal?a(E.id,E.connector):i(E.id,E.connector),desktopDownloadUrl:ZA0(E),extensionDownloadUrl:QA0(E),groupName:E.groupName,mobileDownloadUrl:JA0(E),onConnecting:g=>E.connector.on("message",({type:b})=>b==="connecting"?g():void 0),ready:((p=E.installed)!=null?p:!0)&&E.connector.ready,recent:h,showWalletConnectModal:E.walletConnectModalConnector?()=>a(E.id,E.walletConnectModalConnector):void 0})}),d}var RM=async()=>(await q0(()=>import("./assets-26YY4GVD-VbicoLcw.js"),__vite__mapDeps([]))).default,ey0=()=>gr(RM),ty0=()=>F.createElement(se,{background:"#d0d5de",borderRadius:"10",height:"48",src:RM,width:"48"}),NM=async()=>(await q0(()=>import("./login-ZSMM5UYL-SM24YM7m.js"),__vite__mapDeps([]))).default,ny0=()=>gr(NM),ry0=()=>F.createElement(se,{background:"#d0d5de",borderRadius:"10",height:"48",src:NM,width:"48"}),I0=F.forwardRef(({as:u="div",children:e,className:t,color:n,display:r,font:i="body",id:a,size:o="16",style:s,tabIndex:f,textAlign:l="inherit",weight:c="regular",testId:d},E)=>F.createElement(R,{as:u,className:t,color:n,display:r,fontFamily:i,fontSize:o,fontWeight:c,id:a,ref:E,style:s,tabIndex:f,textAlign:l,testId:d},e));I0.displayName="Text";var iy0={large:{fontSize:"16",paddingX:"24",paddingY:"10"},medium:{fontSize:"14",height:"28",paddingX:"12",paddingY:"4"},small:{fontSize:"14",paddingX:"10",paddingY:"5"}};function ut({disabled:u=!1,href:e,label:t,onClick:n,rel:r="noreferrer noopener",size:i="medium",target:a="_blank",testId:o,type:s="primary"}){const f=s==="primary",l=i!=="large",c=we(),d=u?"actionButtonSecondaryBackground":f?"accentColor":l?"actionButtonSecondaryBackground":null,{fontSize:E,height:p,paddingX:h,paddingY:g}=iy0[i],b=!c||!l;return F.createElement(R,{...e?u?{}:{as:"a",href:e,rel:r,target:a}:{as:"button",type:"button"},onClick:u?void 0:n,...b?{borderColor:c&&!l&&!f?"actionButtonBorderMobile":"actionButtonBorder",borderStyle:"solid",borderWidth:"1"}:{},borderRadius:"actionButton",className:!u&&ue({active:"shrinkSm",hover:"grow"}),display:"block",paddingX:h,paddingY:g,style:{willChange:"transform"},testId:o,textAlign:"center",transition:"transform",...d?{background:d}:{},...p?{height:p}:{}},F.createElement(I0,{color:u?"modalTextSecondary":f?"accentColorForeground":"accentColor",size:E,weight:"bold"},t))}var ay0=()=>we()?F.createElement("svg",{"aria-hidden":!0,fill:"none",height:"11.5",viewBox:"0 0 11.5 11.5",width:"11.5",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M2.13388 0.366117C1.64573 -0.122039 0.854272 -0.122039 0.366117 0.366117C-0.122039 0.854272 -0.122039 1.64573 0.366117 2.13388L3.98223 5.75L0.366117 9.36612C-0.122039 9.85427 -0.122039 10.6457 0.366117 11.1339C0.854272 11.622 1.64573 11.622 2.13388 11.1339L5.75 7.51777L9.36612 11.1339C9.85427 11.622 10.6457 11.622 11.1339 11.1339C11.622 10.6457 11.622 9.85427 11.1339 9.36612L7.51777 5.75L11.1339 2.13388C11.622 1.64573 11.622 0.854272 11.1339 0.366117C10.6457 -0.122039 9.85427 -0.122039 9.36612 0.366117L5.75 3.98223L2.13388 0.366117Z",fill:"currentColor"})):F.createElement("svg",{"aria-hidden":!0,fill:"none",height:"10",viewBox:"0 0 10 10",width:"10",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M1.70711 0.292893C1.31658 -0.0976311 0.683417 -0.0976311 0.292893 0.292893C-0.0976311 0.683417 -0.0976311 1.31658 0.292893 1.70711L3.58579 5L0.292893 8.29289C-0.0976311 8.68342 -0.0976311 9.31658 0.292893 9.70711C0.683417 10.0976 1.31658 10.0976 1.70711 9.70711L5 6.41421L8.29289 9.70711C8.68342 10.0976 9.31658 10.0976 9.70711 9.70711C10.0976 9.31658 10.0976 8.68342 9.70711 8.29289L6.41421 5L9.70711 1.70711C10.0976 1.31658 10.0976 0.683417 9.70711 0.292893C9.31658 -0.0976311 8.68342 -0.0976311 8.29289 0.292893L5 3.58579L1.70711 0.292893Z",fill:"currentColor"})),Qo=({"aria-label":u="Close",onClose:e})=>{const t=we();return F.createElement(R,{alignItems:"center","aria-label":u,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:t?"0":"1",className:ue({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:t?"30":"28",justifyContent:"center",onClick:e,style:{willChange:"transform"},transition:"default",type:"button",width:t?"30":"28"},F.createElement(ay0,null))},MM=async()=>(await q0(()=>import("./sign-FZVB2CS6-wZQBK821.js"),__vite__mapDeps([]))).default;function oy0({onClose:u}){const e=w.useContext(le),[{status:t,...n},r]=F.useState({status:"idle"}),i=em0(),a=w.useCallback(async()=>{try{const E=await i.getNonce();r(p=>({...p,nonce:E}))}catch{r(E=>({...E,errorMessage:e.t("sign_in.message.preparing_error"),status:"idle"}))}},[i]),o=w.useRef(!1);F.useEffect(()=>{o.current||(o.current=!0,a())},[a]);const s=we(),{address:f}=Bt(),{chain:l}=ka(),{signMessageAsync:c}=si0(),d=async()=>{try{const E=l==null?void 0:l.id,{nonce:p}=n;if(!f||!E||!p)return;r(b=>({...b,errorMessage:void 0,status:"signing"}));const h=i.createMessage({address:f,chainId:E,nonce:p});let g;try{g=await c({message:i.getMessageBody({message:h})})}catch(b){return b instanceof Xu?r(m=>({...m,status:"idle"})):r(m=>({...m,errorMessage:e.t("sign_in.signature.signing_error"),status:"idle"}))}r(b=>({...b,status:"verifying"}));try{if(await i.verify({message:h,signature:g}))return;throw new Error}catch{return r(b=>({...b,errorMessage:e.t("sign_in.signature.verifying_error"),status:"idle"}))}}catch{r({errorMessage:e.t("sign_in.signature.oops_error"),status:"idle"})}};return F.createElement(R,{position:"relative"},F.createElement(R,{display:"flex",paddingRight:"16",paddingTop:"16",position:"absolute",right:"0"},F.createElement(Qo,{onClose:u})),F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:s?"32":"24",padding:"24",paddingX:"18",style:{paddingTop:s?"60px":"36px"}},F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:s?"6":"4",style:{maxWidth:s?320:280}},F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:s?"32":"16"},F.createElement(se,{height:40,src:MM,width:40}),F.createElement(I0,{color:"modalText",size:s?"20":"18",textAlign:"center",weight:"heavy"},e.t("sign_in.label"))),F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:s?"16":"12"},F.createElement(I0,{color:"modalTextSecondary",size:s?"16":"14",textAlign:"center"},e.t("sign_in.description")),t==="idle"&&n.errorMessage?F.createElement(I0,{color:"error",size:s?"16":"14",textAlign:"center",weight:"bold"},n.errorMessage):null)),F.createElement(R,{alignItems:s?void 0:"center",display:"flex",flexDirection:"column",gap:"8",width:"full"},F.createElement(ut,{disabled:!n.nonce||t==="signing"||t==="verifying",label:n.nonce?t==="signing"?e.t("sign_in.signature.waiting"):t==="verifying"?e.t("sign_in.signature.verifying"):e.t("sign_in.message.send"):e.t("sign_in.message.preparing"),onClick:d,size:s?"large":"medium",testId:"auth-message-button"}),s?F.createElement(ut,{label:"Cancel",onClick:u,size:"large",type:"secondary"}):F.createElement(R,{as:"button",borderRadius:"full",className:ue({active:"shrink",hover:"grow"}),display:"block",onClick:u,paddingX:"10",paddingY:"5",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},F.createElement(I0,{color:"closeButton",size:s?"16":"14",weight:"bold"},e.t("sign_in.message.cancel"))))))}function sy0(){const u=Uc(),e=zE(),t=ME()==="unauthenticated",n=w.useCallback(()=>{gr(...e.map(r=>r.iconUrl),...u.map(r=>r.iconUrl).filter(qA)),we()||(ey0(),ny0()),t&&gr(MM)},[e,u,t]);w.useEffect(()=>{n()},[n])}var jM="WALLETCONNECT_DEEPLINK_CHOICE";function fy0({mobileUri:u,name:e}){localStorage.setItem(jM,JSON.stringify({href:u.split("?")[0],name:e}))}function ly0(){localStorage.removeItem(jM)}var zM=w.createContext(void 0),NC="data-rk",LM=u=>({[NC]:u||""}),cy0=u=>{if(u&&!/^[a-zA-Z0-9_]+$/.test(u))throw new Error(`Invalid ID: ${u}`);return u?`[${NC}="${u}"]`:`[${NC}]`},dy0=()=>{const u=w.useContext(zM);return LM(u)},Ey0=TP();function py0({appInfo:u,avatar:e,chains:t,children:n,coolMode:r=!1,id:i,initialChain:a,locale:o,modalSize:s=qc.WIDE,showRecentTransactions:f=!1,theme:l=Ey0}){if(sy0(),$A0(),Bt({onDisconnect:ly0}),typeof l=="function")throw new Error('A theme function was provided to the "theme" prop instead of a theme object. You must execute this function to get the resulting theme object.');const c=cy0(i),d={...SM,...u},E=e??AM;return F.createElement(xA0,{chains:t,initialChain:a},F.createElement(MA0,null,F.createElement(vA0,{locale:o},F.createElement(TM.Provider,{value:r},F.createElement(jA0,{modalSize:s},F.createElement(VA.Provider,{value:f},F.createElement(RA0,null,F.createElement(yM.Provider,{value:E},F.createElement(L3.Provider,{value:d},F.createElement(zM.Provider,{value:i},F.createElement(xv0,null,l?F.createElement("div",{...LM(i)},F.createElement("style",{dangerouslySetInnerHTML:{__html:[`${c}{${zw("lightMode"in l?l.lightMode:l)}}`,"darkMode"in l?`@media(prefers-color-scheme:dark){${c}{${zw(l.darkMode,{extends:l.lightMode})}}}`:null].join("")}}),n):n)))))))))))}var hy0="_9pm4ki5 ju367va ju367v15 ju367v8r",Cy0="_9pm4ki3 ju367v9g ju367vb2 ju367va ju367v2q ju367v8q",Lw=(u,e)=>{const t=u.querySelectorAll("button:not(:disabled), a[href]");t.length!==0&&t[e==="end"?t.length-1:0].focus()};function my0(u){const e=w.useRef(null);return w.useEffect(()=>{const t=document.activeElement;return()=>{var n;(n=t.focus)==null||n.call(t)}},[]),w.useEffect(()=>{if(e.current){const t=e.current.querySelector("[data-auto-focus]");t?t.focus():e.current.focus()}},[e]),F.createElement(F.Fragment,null,F.createElement("div",{onFocus:w.useCallback(()=>e.current&&Lw(e.current,"end"),[]),tabIndex:0}),F.createElement("div",{ref:e,style:{outline:"none"},tabIndex:-1,...u}),F.createElement("div",{onFocus:w.useCallback(()=>e.current&&Lw(e.current,"start"),[]),tabIndex:0}))}var by0=u=>u.stopPropagation();function Z2({children:u,onClose:e,open:t,titleId:n}){w.useEffect(()=>{const f=l=>t&&l.key==="Escape"&&e();return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[t,e]);const[r,i]=w.useState(!0);w.useEffect(()=>{i(getComputedStyle(window.document.body).overflow!=="hidden")},[]);const a=w.useCallback(()=>e(),[e]),o=dy0(),s=we();return F.createElement(F.Fragment,null,t?E3.createPortal(F.createElement(rC0,{enabled:r},F.createElement(R,{...o},F.createElement(R,{...o,alignItems:s?"flex-end":"center","aria-labelledby":n,"aria-modal":!0,className:Cy0,onClick:a,position:"fixed",role:"dialog"},F.createElement(my0,{className:hy0,onClick:by0,role:"document"},u)))),document.body):null)}var gy0="_1ckjpok7",Ay0="_1ckjpok1 ju367vb5 ju367vdq ju367vp ju367vt ju367vv ju367vek ju367va ju367v15 ju367v6c ju367v8r",yy0="_1ckjpok4 _1ckjpok1 ju367vb5 ju367vdq ju367vp ju367vt ju367vv ju367vek ju367va ju367v15 ju367v6c ju367v8r",vy0="_1ckjpok6 ju367vq",By0="_1ckjpok3 _1ckjpok1 ju367vb5 ju367vdq ju367vp ju367vt ju367vv ju367vek ju367va ju367v15 ju367v6c ju367v8r",Fy0="_1ckjpok2 _1ckjpok1 ju367vb5 ju367vdq ju367vp ju367vt ju367vv ju367vek ju367va ju367v15 ju367v6c ju367v8r";function Y2({bottomSheetOnMobile:u=!1,children:e,marginTop:t,padding:n="16",paddingBottom:r,wide:i=!1}){const a=we(),s=w.useContext(jE)===qc.COMPACT;return F.createElement(R,{marginTop:t},F.createElement(R,{className:[i?a?Fy0:s?yy0:By0:Ay0,a?vy0:null,a&&u?gy0:null].join(" ")},F.createElement(R,{padding:n,paddingBottom:r??n},e)))}var $w=["k","m","b","t"];function q6(u,e=1){return u.toString().replace(new RegExp(`(.+\\.\\d{${e}})\\d+`),"$1").replace(/(\.[1-9]*)0+$/,"$1").replace(/\.$/,"")}function $M(u){if(u<1)return q6(u,3);if(u<10**2)return q6(u,2);if(u<10**4)return new Intl.NumberFormat().format(parseFloat(q6(u,1)));const e=10**1;let t=String(u);for(let n=$w.length-1;n>=0;n--){const r=10**((n+1)*3);if(r<=u){u=u*e/r/e,t=q6(u,1)+$w[n];break}}return t}function UM(u){return u.length<8?u:`${u.substring(0,4)}…${u.substring(u.length-4)}`}function WM(u){const e=u.split("."),t=e.pop();return e.join(".").length>24?`${e.join(".").substring(0,24)}...`:`${e.join(".")}.${t}`}var Dy0=()=>F.createElement("svg",{fill:"none",height:"13",viewBox:"0 0 13 13",width:"13",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M4.94568 12.2646C5.41052 12.2646 5.77283 12.0869 6.01892 11.7109L12.39 1.96973C12.5677 1.69629 12.6429 1.44336 12.6429 1.2041C12.6429 0.561523 12.1644 0.0966797 11.5082 0.0966797C11.057 0.0966797 10.7767 0.260742 10.5033 0.691406L4.9115 9.50977L2.07458 5.98926C1.82166 5.68848 1.54822 5.55176 1.16541 5.55176C0.502319 5.55176 0.0238037 6.02344 0.0238037 6.66602C0.0238037 6.95312 0.112671 7.20605 0.358765 7.48633L3.88611 11.7588C4.18005 12.1074 4.50818 12.2646 4.94568 12.2646Z",fill:"currentColor"})),wy0=()=>F.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 17 16",width:"17",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M3.04236 12.3027H4.18396V13.3008C4.18396 14.8525 5.03845 15.7002 6.59705 15.7002H13.6244C15.183 15.7002 16.0375 14.8525 16.0375 13.3008V6.24609C16.0375 4.69434 15.183 3.84668 13.6244 3.84668H12.4828V2.8418C12.4828 1.29688 11.6283 0.442383 10.0697 0.442383H3.04236C1.48376 0.442383 0.629272 1.29004 0.629272 2.8418V9.90332C0.629272 11.4551 1.48376 12.3027 3.04236 12.3027ZM3.23376 10.5391C2.68689 10.5391 2.39294 10.2656 2.39294 9.68457V3.06055C2.39294 2.47949 2.68689 2.21289 3.23376 2.21289H9.8783C10.4252 2.21289 10.7191 2.47949 10.7191 3.06055V3.84668H6.59705C5.03845 3.84668 4.18396 4.69434 4.18396 6.24609V10.5391H3.23376ZM6.78845 13.9365C6.24158 13.9365 5.94763 13.6699 5.94763 13.0889V6.45801C5.94763 5.87695 6.24158 5.61035 6.78845 5.61035H13.433C13.9799 5.61035 14.2738 5.87695 14.2738 6.45801V13.0889C14.2738 13.6699 13.9799 13.9365 13.433 13.9365H6.78845Z",fill:"currentColor"})),xy0=()=>F.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 18 16",width:"18",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M2.67834 15.5908H9.99963C11.5514 15.5908 12.399 14.7432 12.399 13.1777V10.2656H10.6354V12.9863C10.6354 13.5332 10.3688 13.8271 9.78772 13.8271H2.89026C2.3092 13.8271 2.0426 13.5332 2.0426 12.9863V3.15625C2.0426 2.60254 2.3092 2.30859 2.89026 2.30859H9.78772C10.3688 2.30859 10.6354 2.60254 10.6354 3.15625V5.89746H12.399V2.95801C12.399 1.39941 11.5514 0.544922 9.99963 0.544922H2.67834C1.12659 0.544922 0.278931 1.39941 0.278931 2.95801V13.1777C0.278931 14.7432 1.12659 15.5908 2.67834 15.5908ZM7.43616 8.85059H14.0875L15.0924 8.78906L14.566 9.14453L13.6842 9.96484C13.5406 10.1016 13.4586 10.2861 13.4586 10.4844C13.4586 10.8398 13.7321 11.168 14.1217 11.168C14.3199 11.168 14.4635 11.0928 14.6002 10.9561L16.7809 8.68652C16.986 8.48145 17.0543 8.27637 17.0543 8.06445C17.0543 7.85254 16.986 7.64746 16.7809 7.43555L14.6002 5.17285C14.4635 5.03613 14.3199 4.9541 14.1217 4.9541C13.7321 4.9541 13.4586 5.27539 13.4586 5.6377C13.4586 5.83594 13.5406 6.02734 13.6842 6.15723L14.566 6.98438L15.0924 7.33984L14.0875 7.27148H7.43616C7.01917 7.27148 6.65686 7.62012 6.65686 8.06445C6.65686 8.50195 7.01917 8.85059 7.43616 8.85059Z",fill:"currentColor"}));function ky0(){const u=kM(),{address:e}=Bt(),t=GA();return w.useCallback(()=>{if(!e||!t)throw new Error("No address or chain ID found");u.clearTransactions(e,t)},[u,e,t])}var qM=u=>{var e,t;return(t=(e=u==null?void 0:u.blockExplorers)==null?void 0:e.default)==null?void 0:t.url},HM=()=>F.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM12.7158 12.1416C13.2432 12.1416 13.5684 11.7549 13.5684 11.1836V7.19336C13.5684 6.44629 13.1377 6.05957 12.417 6.05957H8.40918C7.8291 6.05957 7.45117 6.38477 7.45117 6.91211C7.45117 7.43945 7.8291 7.77344 8.40918 7.77344H9.69238L10.7207 7.63281L9.53418 8.67871L6.73047 11.4912C6.53711 11.6758 6.41406 11.9395 6.41406 12.2031C6.41406 12.7832 6.85352 13.1699 7.39844 13.1699C7.68848 13.1699 7.92578 13.0732 8.1543 12.8623L10.9316 10.0762L11.9775 8.89844L11.8545 9.98828V11.1836C11.8545 11.7725 12.1885 12.1416 12.7158 12.1416Z",fill:"currentColor"})),_y0=()=>F.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM7.29297 13.3018C7.58301 13.3018 7.81152 13.2139 7.99609 13.0205L10 11.0166L12.0127 13.0205C12.1973 13.2051 12.4258 13.3018 12.707 13.3018C13.2432 13.3018 13.6562 12.8887 13.6562 12.3525C13.6562 12.0977 13.5508 11.8691 13.3662 11.6934L11.3535 9.67188L13.375 7.6416C13.5596 7.44824 13.6562 7.22852 13.6562 6.98242C13.6562 6.44629 13.2432 6.0332 12.7158 6.0332C12.4346 6.0332 12.2148 6.12109 12.0215 6.31445L10 8.32715L7.9873 6.32324C7.80273 6.12988 7.58301 6.04199 7.29297 6.04199C6.76562 6.04199 6.35254 6.45508 6.35254 6.99121C6.35254 7.2373 6.44922 7.46582 6.63379 7.6416L8.65527 9.67188L6.63379 11.6934C6.44922 11.8691 6.35254 12.1064 6.35254 12.3525C6.35254 12.8887 6.76562 13.3018 7.29297 13.3018Z",fill:"currentColor"})),Sy0=()=>F.createElement("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M10 19.4443C15.0977 19.4443 19.2812 15.252 19.2812 10.1543C19.2812 5.06543 15.0889 0.873047 10 0.873047C4.90234 0.873047 0.71875 5.06543 0.71875 10.1543C0.71875 15.252 4.91113 19.4443 10 19.4443ZM10 17.1328C6.1416 17.1328 3.03906 14.0215 3.03906 10.1543C3.03906 6.2959 6.13281 3.18457 10 3.18457C13.8584 3.18457 16.9697 6.2959 16.9697 10.1543C16.9785 14.0215 13.8672 17.1328 10 17.1328ZM9.07715 14.3379C9.4375 14.3379 9.7627 14.1533 9.97363 13.8369L13.7441 8.00977C13.8848 7.79883 13.9814 7.5791 13.9814 7.36816C13.9814 6.84961 13.5244 6.48926 13.0322 6.48926C12.707 6.48926 12.4258 6.66504 12.2148 7.0166L9.05957 12.0967L7.5918 10.2949C7.37207 10.0225 7.13477 9.9082 6.84473 9.9082C6.33496 9.9082 5.92188 10.3125 5.92188 10.8223C5.92188 11.0684 6.00098 11.2793 6.18555 11.5078L8.1543 13.8545C8.40918 14.1709 8.70801 14.3379 9.07715 14.3379Z",fill:"currentColor"})),Ty0=u=>{switch(u){case"pending":return P1;case"confirmed":return Sy0;case"failed":return _y0;default:return P1}};function Py0({tx:u}){const e=we(),t=Ty0(u.status),n=u.status==="failed"?"error":"accentColor",{chain:r}=ka(),i=u.status==="confirmed"?"Confirmed":u.status==="failed"?"Failed":"Pending",a=qM(r);return F.createElement(F.Fragment,null,F.createElement(R,{...a?{as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:ue({active:"shrink"}),href:`${a}/tx/${u.hash}`,rel:"noreferrer noopener",target:"_blank",transition:"default"}:{},color:"modalText",display:"flex",flexDirection:"row",justifyContent:"space-between",padding:"8",width:"full"},F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:e?"16":"14"},F.createElement(R,{color:n},F.createElement(t,null)),F.createElement(R,{display:"flex",flexDirection:"column",gap:e?"3":"1"},F.createElement(R,null,F.createElement(I0,{color:"modalText",font:"body",size:e?"16":"14",weight:"bold"},u==null?void 0:u.description)),F.createElement(R,null,F.createElement(I0,{color:u.status==="pending"?"modalTextSecondary":n,font:"body",size:"14",weight:e?"medium":"regular"},i)))),a&&F.createElement(R,{alignItems:"center",color:"modalTextDim",display:"flex"},F.createElement(HM,null))))}var Iy0=3;function Oy0({address:u}){const e=_M(),t=ky0(),{chain:n}=ka(),r=qM(n),i=e.slice(0,Iy0),a=i.length>0,o=we(),{appName:s}=w.useContext(L3),f=w.useContext(le);return F.createElement(F.Fragment,null,F.createElement(R,{display:"flex",flexDirection:"column",gap:"10",paddingBottom:"2",paddingTop:"16",paddingX:o?"8":"18"},a&&F.createElement(R,{paddingBottom:o?"4":"0",paddingTop:"8",paddingX:o?"12":"6"},F.createElement(R,{display:"flex",justifyContent:"space-between"},F.createElement(I0,{color:"modalTextSecondary",size:o?"16":"14",weight:"semibold"},f.t("profile.transactions.recent.title")),F.createElement(R,{style:{marginBottom:-6,marginLeft:-10,marginRight:-10,marginTop:-6}},F.createElement(R,{as:"button",background:{hover:"profileForeground"},borderRadius:"actionButton",className:ue({active:"shrink"}),onClick:t,paddingX:o?"8":"12",paddingY:o?"4":"5",transition:"default",type:"button"},F.createElement(I0,{color:"modalTextSecondary",size:o?"16":"14",weight:"semibold"},f.t("profile.transactions.clear.label")))))),F.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},a?i.map(l=>F.createElement(Py0,{key:l.hash,tx:l})):F.createElement(F.Fragment,null,F.createElement(R,{padding:o?"12":"8"},F.createElement(I0,{color:"modalTextDim",size:o?"16":"14",weight:o?"medium":"bold"},s?f.t("profile.transactions.description",{appName:s}):f.t("profile.transactions.description_fallback"))),o&&F.createElement(R,{background:"generalBorderDim",height:"1",marginX:"12",marginY:"8"})))),r&&F.createElement(R,{paddingBottom:"18",paddingX:o?"8":"18"},F.createElement(R,{alignItems:"center",as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:ue({active:"shrink"}),color:"modalTextDim",display:"flex",flexDirection:"row",href:`${r}/address/${u}`,justifyContent:"space-between",paddingX:"8",paddingY:"12",rel:"noreferrer noopener",style:{willChange:"transform"},target:"_blank",transition:"default",width:"full",...o?{paddingLeft:"12"}:{}},F.createElement(I0,{color:"modalText",font:"body",size:o?"16":"14",weight:o?"semibold":"bold"},f.t("profile.explorer.label")),F.createElement(HM,null))))}function Uw({action:u,icon:e,label:t,testId:n,url:r}){const i=we();return F.createElement(R,{...r?{as:"a",href:r,rel:"noreferrer noopener",target:"_blank"}:{as:"button",type:"button"},background:{base:"profileAction",...i?{}:{hover:"profileActionHover"}},borderRadius:"menuButton",boxShadow:"profileDetailsAction",className:ue({active:"shrinkSm",hover:i?void 0:"grow"}),display:"flex",onClick:u,padding:i?"6":"8",style:{willChange:"transform"},testId:n,transition:"default",width:"full"},F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"1",justifyContent:"center",paddingTop:"2",width:"full"},F.createElement(R,{color:"modalText",height:"max"},e),F.createElement(R,null,F.createElement(I0,{color:"modalText",size:i?"12":"13",weight:"semibold"},t))))}function Ry0({address:u,balanceData:e,ensAvatar:t,ensName:n,onClose:r,onDisconnect:i}){const a=w.useContext(VA),[o,s]=w.useState(!1),f=w.useContext(le),l=w.useCallback(()=>{u&&(navigator.clipboard.writeText(u),s(!0))},[u]);if(w.useEffect(()=>{if(o){const g=setTimeout(()=>{s(!1)},1500);return()=>clearTimeout(g)}},[o]),!u)return null;const c=n?WM(n):UM(u),d=e==null?void 0:e.formatted,E=d?$M(parseFloat(d)):void 0,p="rk_profile_title",h=we();return F.createElement(F.Fragment,null,F.createElement(R,{display:"flex",flexDirection:"column"},F.createElement(R,{background:"profileForeground",padding:"16"},F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:h?"16":"12",justifyContent:"center",margin:"8",style:{textAlign:"center"}},F.createElement(R,{style:{position:"absolute",right:16,top:16,willChange:"transform"}},F.createElement(Qo,{onClose:r}))," ",F.createElement(R,{marginTop:h?"24":"0"},F.createElement(vM,{address:u,imageUrl:t,size:h?82:74})),F.createElement(R,{display:"flex",flexDirection:"column",gap:h?"4":"0",textAlign:"center"},F.createElement(R,{textAlign:"center"},F.createElement(I0,{as:"h1",color:"modalText",id:p,size:h?"20":"18",weight:"heavy"},c)),e&&F.createElement(R,{textAlign:"center"},F.createElement(I0,{as:"h1",color:"modalTextSecondary",id:p,size:h?"16":"14",weight:"semibold"},E," ",e.symbol)))),F.createElement(R,{display:"flex",flexDirection:"row",gap:"8",margin:"2",marginTop:"16"},F.createElement(Uw,{action:l,icon:o?F.createElement(Dy0,null):F.createElement(wy0,null),label:o?f.t("profile.copy_address.copied"):f.t("profile.copy_address.label")}),F.createElement(Uw,{action:i,icon:F.createElement(xy0,null),label:f.t("profile.disconnect.label"),testId:"disconnect-button"}))),a&&F.createElement(F.Fragment,null,F.createElement(R,{background:"generalBorder",height:"1",marginTop:"-1"}),F.createElement(R,null,F.createElement(Oy0,{address:u})))))}function Ny0({onClose:u,open:e}){const{address:t}=Bt(),{data:n}=HR({address:t}),r=DM(t),i=FM(r),{disconnect:a}=bA();if(!t)return null;const o="rk_account_modal_title";return F.createElement(F.Fragment,null,t&&F.createElement(Z2,{onClose:u,open:e,titleId:o},F.createElement(Y2,{bottomSheetOnMobile:!0,padding:"0"},F.createElement(Ry0,{address:t,balanceData:n,ensAvatar:i,ensName:r,onClose:u,onDisconnect:a}))))}var My0=({size:u})=>F.createElement("svg",{fill:"none",height:u,viewBox:"0 0 28 28",width:u,xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M6.742 22.195h8.367c1.774 0 2.743-.968 2.743-2.758V16.11h-2.016v3.11c0 .625-.305.96-.969.96H6.984c-.664 0-.968-.335-.968-.96V7.984c0-.632.304-.968.968-.968h7.883c.664 0 .969.336.969.968v3.133h2.016v-3.36c0-1.78-.97-2.757-2.743-2.757H6.742C4.97 5 4 5.977 4 7.758v11.68c0 1.789.969 2.757 2.742 2.757Zm5.438-7.703h7.601l1.149-.07-.602.406-1.008.938a.816.816 0 0 0-.258.593c0 .407.313.782.758.782.227 0 .39-.086.547-.243l2.492-2.593c.235-.235.313-.47.313-.711 0-.242-.078-.477-.313-.719l-2.492-2.586c-.156-.156-.32-.25-.547-.25-.445 0-.758.367-.758.781 0 .227.094.446.258.594l1.008.945.602.407-1.149-.079H12.18a.904.904 0 0 0 0 1.805Z",fill:"currentColor"})),jy0="v9horb0",MC=F.forwardRef(({children:u,currentlySelected:e=!1,onClick:t,testId:n,...r},i)=>{const a=we();return F.createElement(R,{as:"button",borderRadius:"menuButton",disabled:e,display:"flex",onClick:t,ref:i,testId:n,type:"button"},F.createElement(R,{borderRadius:"menuButton",className:[a?jy0:void 0,!e&&ue({active:"shrink"})],padding:a?"8":"6",transition:"default",width:"full",...e?{background:"accentColor",borderColor:"selectedOptionBorder",borderStyle:"solid",borderWidth:"1",boxShadow:"selectedOption",color:"accentColorForeground"}:{background:{hover:"menuItemBackground"},color:"modalText",transition:"default"},...r},u))});MC.displayName="MenuButton";var zy0="_18dqw9x0",Ly0="_18dqw9x1";function $y0({onClose:u,open:e}){var t;const{chain:n}=ka(),{chains:r,pendingChainId:i,reset:a,switchNetwork:o}=ci0({onSettled:()=>{a(),u()}}),s=w.useContext(le),{disconnect:f}=bA(),l="rk_chain_modal_title",c=we(),d=(t=n==null?void 0:n.unsupported)!=null?t:!1,E=c?"36":"28",{appName:p}=w.useContext(L3),h=Uc();return!n||!(n!=null&&n.id)?null:F.createElement(Z2,{onClose:u,open:e,titleId:l},F.createElement(Y2,{bottomSheetOnMobile:!0,paddingBottom:"0"},F.createElement(R,{display:"flex",flexDirection:"column",gap:"14"},F.createElement(R,{display:"flex",flexDirection:"row",justifyContent:"space-between"},c&&F.createElement(R,{width:"30"}),F.createElement(R,{paddingBottom:"0",paddingLeft:"8",paddingTop:"4"},F.createElement(I0,{as:"h1",color:"modalText",id:l,size:c?"20":"18",weight:"heavy"},s.t("chains.title"))),F.createElement(Qo,{onClose:u})),d&&F.createElement(R,{marginX:"8",textAlign:c?"center":"left"},F.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},s.t("chains.wrong_network"))),F.createElement(R,{className:c?Ly0:zy0,display:"flex",flexDirection:"column",gap:"4",padding:"2",paddingBottom:"16"},o?h.map(({iconBackground:g,iconUrl:b,id:m,name:A},y)=>{const B=r.find(D=>D.id===m);if(!B)return null;const v=B.id===(n==null?void 0:n.id),C=!v&&B.id===i;return F.createElement(w.Fragment,{key:B.id},F.createElement(MC,{currentlySelected:v,onClick:v?void 0:()=>o(B.id),testId:`chain-option-${B.id}`},F.createElement(R,{fontFamily:"body",fontSize:"16",fontWeight:"bold"},F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:E},b&&F.createElement(R,{height:"full",marginRight:"8"},F.createElement(se,{alt:A??B.name,background:g,borderRadius:"full",height:E,src:b,width:E,testId:`chain-option-${B.id}-icon`})),F.createElement("div",null,A??B.name)),v&&F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},F.createElement(I0,{color:"accentColorForeground",size:"14",weight:"medium"},s.t("chains.connected")),F.createElement(R,{background:"connectionIndicator",borderColor:"selectedOptionBorder",borderRadius:"full",borderStyle:"solid",borderWidth:"1",height:"8",marginLeft:"8",width:"8"})),C&&F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},F.createElement(I0,{color:"modalText",size:"14",weight:"medium"},s.t("chains.confirm")),F.createElement(R,{background:"standby",borderRadius:"full",height:"8",marginLeft:"8",width:"8"}))))),c&&yf(),testId:"chain-option-disconnect"},F.createElement(R,{color:"error",fontFamily:"body",fontSize:"16",fontWeight:"bold"},F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:E},F.createElement(R,{alignItems:"center",color:"error",height:E,justifyContent:"center",marginRight:"8"},F.createElement(My0,{size:Number(E)})),F.createElement("div",null,s.t("chains.disconnect")))))))))))}function Uy0(u,e){const t={};return u.forEach(n=>{const r=e(n);r&&(t[r]||(t[r]=[]),t[r].push(n))}),t}var Wy0="rk-latest-id";function qy0(u){localStorage.setItem(Wy0,u)}var YA=({children:u,href:e})=>F.createElement(R,{as:"a",color:"accentColor",href:e,rel:"noreferrer",target:"_blank"},u),XA=({children:u})=>F.createElement(I0,{color:"modalTextSecondary",size:"12",weight:"medium"},u);function Ww({compactModeEnabled:u=!1,getWallet:e}){const{disclaimer:t,learnMoreUrl:n}=w.useContext(L3),r=w.useContext(le);return F.createElement(F.Fragment,null,F.createElement(R,{alignItems:"center",color:"accentColor",display:"flex",flexDirection:"column",height:"full",justifyContent:"space-around"},F.createElement(R,{marginBottom:"10"},!u&&F.createElement(I0,{color:"modalText",size:"18",weight:"heavy"},r.t("intro.title"))),F.createElement(R,{display:"flex",flexDirection:"column",gap:"32",justifyContent:"center",marginY:"20",style:{maxWidth:312}},F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},F.createElement(R,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},F.createElement(ty0,null)),F.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},F.createElement(I0,{color:"modalText",size:"14",weight:"bold"},r.t("intro.digital_asset.title")),F.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},r.t("intro.digital_asset.description")))),F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},F.createElement(R,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},F.createElement(ry0,null)),F.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},F.createElement(I0,{color:"modalText",size:"14",weight:"bold"},r.t("intro.login.title")),F.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},r.t("intro.login.description"))))),F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",margin:"10"},F.createElement(ut,{label:r.t("intro.get.label"),onClick:e}),F.createElement(R,{as:"a",className:ue({active:"shrink",hover:"grow"}),display:"block",href:n,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},F.createElement(I0,{color:"accentColor",size:"14",weight:"bold"},r.t("intro.learn_more.label")))),t&&!u&&F.createElement(R,{marginBottom:"8",marginTop:"12",textAlign:"center"},F.createElement(t,{Link:YA,Text:XA}))))}var GM=()=>F.createElement("svg",{fill:"none",height:"17",viewBox:"0 0 11 17",width:"11",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M0.99707 8.6543C0.99707 9.08496 1.15527 9.44531 1.51562 9.79688L8.16016 16.3096C8.43262 16.5732 8.74902 16.7051 9.13574 16.7051C9.90918 16.7051 10.5508 16.0811 10.5508 15.3076C10.5508 14.9121 10.3838 14.5605 10.0938 14.2705L4.30176 8.64551L10.0938 3.0293C10.3838 2.74805 10.5508 2.3877 10.5508 2.00098C10.5508 1.23633 9.90918 0.603516 9.13574 0.603516C8.74902 0.603516 8.43262 0.735352 8.16016 0.999023L1.51562 7.51172C1.15527 7.85449 1.00586 8.21484 0.99707 8.6543Z",fill:"currentColor"})),Hy0=()=>F.createElement("svg",{fill:"none",height:"12",viewBox:"0 0 8 12",width:"8",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M3.64258 7.99609C4.19336 7.99609 4.5625 7.73828 4.68555 7.24609C4.69141 7.21094 4.70312 7.16406 4.70898 7.13477C4.80859 6.60742 5.05469 6.35547 6.04492 5.76367C7.14648 5.10156 7.67969 4.3457 7.67969 3.24414C7.67969 1.39844 6.17383 0.255859 3.95898 0.255859C2.32422 0.255859 1.05859 0.894531 0.548828 1.86719C0.396484 2.14844 0.320312 2.44727 0.320312 2.74023C0.314453 3.37305 0.742188 3.79492 1.42188 3.79492C1.91406 3.79492 2.33594 3.54883 2.53516 3.11523C2.78711 2.47656 3.23242 2.21289 3.83594 2.21289C4.55664 2.21289 5.10742 2.65234 5.10742 3.29102C5.10742 3.9707 4.7793 4.29883 3.81836 4.87891C3.02148 5.36523 2.50586 5.92773 2.50586 6.76562V6.90039C2.50586 7.55664 2.96289 7.99609 3.64258 7.99609ZM3.67188 11.4473C4.42773 11.4473 5.04297 10.8672 5.04297 10.1406C5.04297 9.41406 4.42773 8.83984 3.67188 8.83984C2.91602 8.83984 2.30664 9.41406 2.30664 10.1406C2.30664 10.8672 2.91602 11.4473 3.67188 11.4473Z",fill:"currentColor"})),Gy0=({"aria-label":u="Info",onClick:e})=>{const t=we();return F.createElement(R,{alignItems:"center","aria-label":u,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:t?"0":"1",className:ue({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:t?"30":"28",justifyContent:"center",onClick:e,style:{willChange:"transform"},transition:"default",type:"button",width:t?"30":"28"},F.createElement(Hy0,null))},VM=u=>{const e=w.useRef(null),t=w.useContext(TM),n=WA(u);return w.useEffect(()=>{if(t&&e.current&&n)return Ky0(e.current,n)},[t,n]),e},Vy0=()=>{const u="_rk_coolMode",e=document.getElementById(u);if(e)return e;const t=document.createElement("div");return t.setAttribute("id",u),t.setAttribute("style",["overflow:hidden","position:fixed","height:100%","top:0","left:0","right:0","bottom:0","pointer-events:none","z-index:2147483647"].join(";")),document.body.appendChild(t),t},qw=0;function Ky0(u,e){qw++;const t=[15,20,25,35,45],n=35;let r=[],i=!1,a=0,o=0;const s=Vy0();function f(){const y=t[Math.floor(Math.random()*t.length)],B=Math.random()*10,v=Math.random()*25,C=Math.random()*360,D=Math.random()*35*(Math.random()<=.5?-1:1),S=o-y/2,x=a-y/2,L=Math.random()<=.5?-1:1,Y=document.createElement("div");Y.innerHTML=``,Y.setAttribute("style",["position:absolute","will-change:transform",`top:${S}px`,`left:${x}px`,`transform:rotate(${C}deg)`].join(";")),s.appendChild(Y),r.push({direction:L,element:Y,left:x,size:y,speedHorz:B,speedUp:v,spinSpeed:D,spinVal:C,top:S})}function l(){r.forEach(y=>{y.left=y.left-y.speedHorz*y.direction,y.top=y.top-y.speedUp,y.speedUp=Math.min(y.size,y.speedUp-1),y.spinVal=y.spinVal+y.spinSpeed,y.top>=Math.max(window.innerHeight,document.body.clientHeight)+y.size&&(r=r.filter(B=>B!==y),y.element.remove()),y.element.setAttribute("style",["position:absolute","will-change:transform",`top:${y.top}px`,`left:${y.left}px`,`transform:rotate(${y.spinVal}deg)`].join(";"))})}let c;function d(){i&&r.length{var B,v;"touches"in y?(a=(B=y.touches)==null?void 0:B[0].clientX,o=(v=y.touches)==null?void 0:v[0].clientY):(a=y.clientX,o=y.clientY)},m=y=>{b(y),i=!0},A=()=>{i=!1};return u.addEventListener(g,b,{passive:!1}),u.addEventListener(p,m),u.addEventListener(h,A),u.addEventListener("mouseleave",A),()=>{u.removeEventListener(g,b),u.removeEventListener(p,m),u.removeEventListener(h,A),u.removeEventListener("mouseleave",A);const y=setInterval(()=>{c&&r.length===0&&(cancelAnimationFrame(c),clearInterval(y),--qw===0&&s.remove())},500)}}var Qy0="g5kl0l0",KM=({as:u="button",currentlySelected:e=!1,iconBackground:t,iconUrl:n,name:r,onClick:i,ready:a,recent:o,testId:s,...f})=>{const l=VM(n),[c,d]=w.useState(!1),E=w.useContext(le);return F.createElement(R,{display:"flex",flexDirection:"column",onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),ref:l},F.createElement(R,{as:u,borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:e?void 0:[Qy0,ue({active:"shrink"})],disabled:e,onClick:i,padding:"5",style:{willChange:"transform"},testId:s,transition:"default",width:"full",...e?{background:"accentColor",borderColor:"selectedOptionBorder",boxShadow:"selectedWallet"}:{background:{hover:"menuItemBackground"}},...f},F.createElement(R,{color:e?"accentColorForeground":"modalText",disabled:!a,fontFamily:"body",fontSize:"16",fontWeight:"bold",transition:"default"},F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"12"},F.createElement(se,{background:t,...c?{}:{borderColor:"actionButtonBorder"},borderRadius:"6",height:"28",src:n,width:"28"}),F.createElement(R,null,F.createElement(R,{style:{marginTop:o?-2:void 0}},r),o&&F.createElement(I0,{color:e?"accentColorForeground":"accentColor",size:"12",style:{lineHeight:1,marginTop:-1},weight:"medium"},E.t("connect.recent")))))))};KM.displayName="ModalSelection";var ah=(u,e=1)=>{let t=u.replace("#","");t.length===3&&(t=`${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`);const n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),i=parseInt(t.substring(4,6),16);return e>1&&e<=100&&(e=e/100),`rgba(${n},${r},${i},${e})`},Jy0=u=>u?[ah(u,.2),ah(u,.14),ah(u,.1)]:null,Zy0=u=>/^#([0-9a-f]{3}){1,2}$/i.test(u),QM=async()=>(await q0(()=>import("./connect-XNDTNVUH-hhMIOxrc.js"),__vite__mapDeps([]))).default,Yy0=()=>gr(QM),Xy0=()=>F.createElement(se,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:QM,width:"48"}),JM=async()=>(await q0(()=>import("./create-PAJXJDV3-km5bd1se.js"),__vite__mapDeps([]))).default,ZM=()=>gr(JM),uv0=()=>F.createElement(se,{background:"#e3a5e8",borderColor:"generalBorder",borderRadius:"10",height:"48",src:JM,width:"48"}),YM=async()=>(await q0(()=>import("./refresh-5KGGHTJP-85I9TqPb.js"),__vite__mapDeps([]))).default,ev0=()=>gr(YM),tv0=()=>F.createElement(se,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:YM,width:"48"}),XM=async()=>(await q0(()=>import("./scan-HZBLXLM4-CuMFQji0.js"),__vite__mapDeps([]))).default,uj=()=>gr(XM),nv0=()=>F.createElement(se,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:XM,width:"48"}),rv0="_1vwt0cg0",iv0="_1vwt0cg2 ju367v7a ju367v7v",av0="_1vwt0cg3",ov0="_1vwt0cg4",sv0=(u,e)=>{const t=Array.prototype.slice.call(Lc.create(u,{errorCorrectionLevel:e}).modules.data,0),n=Math.sqrt(t.length);return t.reduce((r,i,a)=>(a%n===0?r.push([i]):r[r.length-1].push(i))&&r,[])};function ej({ecl:u="M",logoBackground:e,logoMargin:t=10,logoSize:n=50,logoUrl:r,size:i=200,uri:a}){const o="20",s=i-parseInt(o,10)*2,f=w.useMemo(()=>{const d=[],E=sv0(a,u),p=s/E.length;[{x:0,y:0},{x:1,y:0},{x:0,y:1}].forEach(({x:A,y})=>{const B=(E.length-7)*p*A,v=(E.length-7)*p*y;for(let C=0;C<3;C++)d.push(F.createElement("rect",{fill:C%2!==0?"white":"black",height:p*(7-C*2),key:`${C}-${A}-${y}`,rx:(C-2)*-5+(C===0?2:0),ry:(C-2)*-5+(C===0?2:0),width:p*(7-C*2),x:B+p*C,y:v+p*C}))});const g=Math.floor((n+25)/p),b=E.length/2-g/2,m=E.length/2+g/2-1;return E.forEach((A,y)=>{A.forEach((B,v)=>{E[y][v]&&(y<7&&v<7||y>E.length-8&&v<7||y<7&&v>E.length-8||y>b&&yb&&v{switch(QA()){case"Arc":return(await q0(()=>import("./Arc-QDJFTGH2-x-TIuu8Z.js"),__vite__mapDeps([]))).default;case"Brave":return(await q0(()=>import("./Brave-YATE5BIM-9tj-VFqu.js"),__vite__mapDeps([]))).default;case"Chrome":return(await q0(()=>import("./Chrome-LGF33C3S-wsO3nrZt.js"),__vite__mapDeps([]))).default;case"Edge":return(await q0(()=>import("./Edge-K2JEGI5S--gxTpD72.js"),__vite__mapDeps([]))).default;case"Firefox":return(await q0(()=>import("./Firefox-NP5SYEK5-7iuNDPna.js"),__vite__mapDeps([]))).default;case"Opera":return(await q0(()=>import("./Opera-KV54PXPA-OCnboboB.js"),__vite__mapDeps([]))).default;case"Safari":return(await q0(()=>import("./Safari-2QIYKJ4P-DqnkdcRR.js"),__vite__mapDeps([]))).default;default:return(await q0(()=>import("./Browser-HN7O5MN7-tT69d9rj.js"),__vite__mapDeps([]))).default}},fv0=()=>gr(tj),nj=async()=>{switch(ZA()){case"Windows":return(await q0(()=>import("./Windows-R3CKAIUV-UAjuZCQz.js"),__vite__mapDeps([]))).default;case"macOS":return(await q0(()=>import("./Macos-2KTZ2XLP-xHqsL0QY.js"),__vite__mapDeps([]))).default;case"Linux":return(await q0(()=>import("./Linux-NS2LQPT4-bLbGf4OB.js"),__vite__mapDeps([]))).default;default:return(await q0(()=>import("./Linux-NS2LQPT4-bLbGf4OB.js"),__vite__mapDeps([]))).default}},lv0=()=>gr(nj);function cv0({getWalletDownload:u,compactModeEnabled:e}){const n=zE().splice(0,5),r=w.useContext(le);return F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginTop:"18",width:"full"},F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"28",height:"full",width:"full"},n==null?void 0:n.filter(i=>{var a;return i.extensionDownloadUrl||i.desktopDownloadUrl||i.qrCode&&((a=i.downloadUrls)==null?void 0:a.qrCode)}).map(i=>{const{downloadUrls:a,iconBackground:o,iconUrl:s,id:f,name:l,qrCode:c}=i,d=(a==null?void 0:a.qrCode)&&c,E=!!i.extensionDownloadUrl,p=(a==null?void 0:a.qrCode)&&E,h=(a==null?void 0:a.qrCode)&&!!i.desktopDownloadUrl;return F.createElement(R,{alignItems:"center",display:"flex",gap:"16",justifyContent:"space-between",key:i.id,width:"full"},F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},F.createElement(se,{background:o,borderColor:"actionButtonBorder",borderRadius:"10",height:"48",src:s,width:"48"}),F.createElement(R,{display:"flex",flexDirection:"column",gap:"2"},F.createElement(I0,{color:"modalText",size:"14",weight:"bold"},l),F.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},p?r.t("get.mobile_and_extension.description"):h?r.t("get.mobile_and_desktop.description"):d?r.t("get.mobile.description"):E?r.t("get.extension.description"):null))),F.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},F.createElement(ut,{label:r.t("get.action.label"),onClick:()=>u(f),type:"secondary"})))})),F.createElement(R,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"column",gap:"8",justifyContent:"space-between",marginBottom:"4",paddingY:"8",style:{maxWidth:275,textAlign:"center"}},F.createElement(I0,{color:"modalText",size:"14",weight:"bold"},r.t("get.looking_for.title")),F.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},e?r.t("get.looking_for.desktop.compact_description"):r.t("get.looking_for.desktop.wide_description"))))}var oh="44";function dv0({changeWalletStep:u,compactModeEnabled:e,connectionError:t,onClose:n,qrCodeUri:r,reconnect:i,wallet:a}){var o;const{downloadUrls:s,iconBackground:f,iconUrl:l,name:c,qrCode:d,ready:E,showWalletConnectModal:p}=a,h=(o=a.desktop)==null?void 0:o.getUri,g=KA(),b=w.useContext(le),m=!!a.extensionDownloadUrl,A=(s==null?void 0:s.qrCode)&&m,y=(s==null?void 0:s.qrCode)&&!!a.desktopDownloadUrl,B=d&&r,v=p?{description:e?b.t("connect.walletconnect.description.compact"):b.t("connect.walletconnect.description.full"),label:b.t("connect.walletconnect.open.label"),onClick:()=>{n(),p()}}:B?{description:b.t("connect.secondary_action.get.description",{wallet:c}),label:b.t("connect.secondary_action.get.label"),onClick:()=>u(A||y?"DOWNLOAD_OPTIONS":"DOWNLOAD")}:null,{width:C}=PM(),D=C&&C<768;return w.useEffect(()=>{fv0(),lv0()},[]),F.createElement(R,{display:"flex",flexDirection:"column",height:"full",width:"full"},B?F.createElement(R,{alignItems:"center",display:"flex",height:"full",justifyContent:"center"},F.createElement(ej,{logoBackground:f,logoSize:e?60:72,logoUrl:l,size:e?318:D?Math.max(280,Math.min(C-308,382)):382,uri:r})):F.createElement(R,{alignItems:"center",display:"flex",justifyContent:"center",style:{flexGrow:1}},F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8"},F.createElement(R,{borderRadius:"10",height:oh,overflow:"hidden"},F.createElement(se,{height:oh,src:l,width:oh})),F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"4",paddingX:"32",style:{textAlign:"center"}},F.createElement(I0,{color:"modalText",size:"18",weight:"bold"},E?b.t("connect.status.opening",{wallet:c}):m?b.t("connect.status.not_installed",{wallet:c}):b.t("connect.status.not_available",{wallet:c})),!E&&m?F.createElement(R,{paddingTop:"20"},F.createElement(ut,{href:a.extensionDownloadUrl,label:b.t("connect.secondary_action.install.label"),type:"secondary"})):null,E&&!B&&F.createElement(F.Fragment,null,F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},F.createElement(I0,{color:"modalTextSecondary",size:"14",textAlign:"center",weight:"medium"},b.t("connect.status.confirm"))),F.createElement(R,{alignItems:"center",color:"modalText",display:"flex",flexDirection:"row",height:"32",marginTop:"8"},t?F.createElement(ut,{label:b.t("connect.secondary_action.retry.label"),onClick:h?async()=>{const S=await h();window.open(S,g?"_blank":"_self")}:()=>{i(a)}}):F.createElement(R,{color:"modalTextSecondary"},F.createElement(P1,null))))))),F.createElement(R,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"28",justifyContent:"space-between",marginTop:"12"},E&&v&&F.createElement(F.Fragment,null,F.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},v.description),F.createElement(ut,{label:v.label,onClick:v.onClick,type:"secondary"}))))}var sh=({actionLabel:u,description:e,iconAccent:t,iconBackground:n,iconUrl:r,isCompact:i,onAction:a,title:o,url:s,variant:f})=>{const l=f==="browser",c=!l&&t&&Jy0(t);return F.createElement(R,{alignItems:"center",borderRadius:"13",display:"flex",justifyContent:"center",overflow:"hidden",paddingX:i?"18":"44",position:"relative",style:{flex:1,isolation:"isolate"},width:"full"},F.createElement(R,{borderColor:"actionButtonBorder",borderRadius:"13",borderStyle:"solid",borderWidth:"1",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0",zIndex:1}}),l&&F.createElement(R,{background:"downloadTopCardBackground",height:"full",position:"absolute",style:{zIndex:0},width:"full"},F.createElement(R,{display:"flex",flexDirection:"row",justifyContent:"space-between",style:{bottom:"0",filter:"blur(20px)",left:"0",position:"absolute",right:"0",top:"0",transform:"translate3d(0, 0, 0)"}},F.createElement(R,{style:{filter:"blur(100px)",marginLeft:-27,marginTop:-20,opacity:.6,transform:"translate3d(0, 0, 0)"}},F.createElement(se,{borderRadius:"full",height:"200",src:r,width:"200"})),F.createElement(R,{style:{filter:"blur(100px)",marginRight:0,marginTop:105,opacity:.6,overflow:"auto",transform:"translate3d(0, 0, 0)"}},F.createElement(se,{borderRadius:"full",height:"200",src:r,width:"200"})))),!l&&c&&F.createElement(R,{background:"downloadBottomCardBackground",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0"}},F.createElement(R,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${c[0]} 0%, ${c[1]} 25%, rgba(0,0,0,0) 100%)`,height:564,left:-215,top:-197,transform:"translate3d(0, 0, 0)",width:564}}),F.createElement(R,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${c[2]} 0%, rgba(0, 0, 0, 0) 100%)`,height:564,left:-1,top:-76,transform:"translate3d(0, 0, 0)",width:564}})),F.createElement(R,{alignItems:"flex-start",display:"flex",flexDirection:"row",gap:"24",height:"max",justifyContent:"center",style:{zIndex:1}},F.createElement(R,null,F.createElement(se,{height:"60",src:r,width:"60",...n?{background:n,borderColor:"generalBorder",borderRadius:"10"}:null})),F.createElement(R,{display:"flex",flexDirection:"column",gap:"4",style:{flex:1},width:"full"},F.createElement(I0,{color:"modalText",size:"14",weight:"bold"},o),F.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},e),F.createElement(R,{marginTop:"14",width:"max"},F.createElement(ut,{href:s,label:u,onClick:a,size:"medium"})))))};function Ev0({changeWalletStep:u,wallet:e}){const t=QA(),n=ZA(),i=w.useContext(jE)==="compact",{desktop:a,desktopDownloadUrl:o,extension:s,extensionDownloadUrl:f,mobileDownloadUrl:l}=e,c=w.useContext(le);return w.useEffect(()=>{ZM(),uj(),ev0(),Yy0()},[]),F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",marginBottom:"8",marginTop:"4",width:"full"},F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8",height:"full",justifyContent:"center",width:"full"},f&&F.createElement(sh,{actionLabel:c.t("get_options.extension.download.label",{browser:t}),description:c.t("get_options.extension.description"),iconUrl:tj,isCompact:i,onAction:()=>u(s!=null&&s.instructions?"INSTRUCTIONS_EXTENSION":"CONNECT"),title:c.t("get_options.extension.title",{wallet:e.name,browser:t}),url:f,variant:"browser"}),o&&F.createElement(sh,{actionLabel:c.t("get_options.desktop.download.label",{platform:n}),description:c.t("get_options.desktop.description"),iconUrl:nj,isCompact:i,onAction:()=>u(a!=null&&a.instructions?"INSTRUCTIONS_DESKTOP":"CONNECT"),title:c.t("get_options.desktop.title",{wallet:e.name,platform:n}),url:o,variant:"desktop"}),l&&F.createElement(sh,{actionLabel:c.t("get_options.mobile.download.label",{wallet:e.name}),description:c.t("get_options.mobile.description"),iconAccent:e.iconAccent,iconBackground:e.iconBackground,iconUrl:e.iconUrl,isCompact:i,onAction:()=>{u("DOWNLOAD")},title:c.t("get_options.mobile.title",{wallet:e.name}),variant:"app"})))}function pv0({changeWalletStep:u,wallet:e}){const{downloadUrls:t,qrCode:n}=e,r=w.useContext(le);return w.useEffect(()=>{ZM(),uj()},[]),F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",width:"full"},F.createElement(R,{style:{maxWidth:220,textAlign:"center"}},F.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"semibold"},r.t("get_mobile.description"))),F.createElement(R,{height:"full"},t!=null&&t.qrCode?F.createElement(ej,{logoSize:0,size:268,uri:t.qrCode}):null),F.createElement(R,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"34",justifyContent:"space-between",marginBottom:"12",paddingY:"8"},F.createElement(ut,{label:r.t("get_mobile.continue.label"),onClick:()=>u(n!=null&&n.instructions?"INSTRUCTIONS_MOBILE":"CONNECT")})))}var X4={connect:()=>F.createElement(Xy0,null),create:()=>F.createElement(uv0,null),install:u=>F.createElement(se,{background:u.iconBackground,borderColor:"generalBorder",borderRadius:"10",height:"48",src:u.iconUrl,width:"48"}),refresh:()=>F.createElement(tv0,null),scan:()=>F.createElement(nv0,null)};function hv0({connectWallet:u,wallet:e}){var t,n,r,i;const a=w.useContext(le);return F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},F.createElement(R,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(n=(t=e==null?void 0:e.qrCode)==null?void 0:t.instructions)==null?void 0:n.steps.map((o,s)=>{var f;return F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:s},F.createElement(R,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(f=X4[o.step])==null?void 0:f.call(X4,e)),F.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},F.createElement(I0,{color:"modalText",size:"14",weight:"bold"},a.t(o.title)),F.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},a.t(o.description))))})),F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},F.createElement(ut,{label:a.t("get_instructions.mobile.connect.label"),onClick:()=>u(e)}),F.createElement(R,{as:"a",className:ue({active:"shrink",hover:"grow"}),display:"block",href:(i=(r=e==null?void 0:e.qrCode)==null?void 0:r.instructions)==null?void 0:i.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},F.createElement(I0,{color:"accentColor",size:"14",weight:"bold"},a.t("get_instructions.mobile.learn_more.label")))))}function Cv0({wallet:u}){var e,t,n,r;const i=w.useContext(le);return F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},F.createElement(R,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(t=(e=u==null?void 0:u.extension)==null?void 0:e.instructions)==null?void 0:t.steps.map((a,o)=>{var s;return F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:o},F.createElement(R,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(s=X4[a.step])==null?void 0:s.call(X4,u)),F.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},F.createElement(I0,{color:"modalText",size:"14",weight:"bold"},i.t(a.title)),F.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},i.t(a.description))))})),F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},F.createElement(ut,{label:i.t("get_instructions.extension.refresh.label"),onClick:window.location.reload.bind(window.location)}),F.createElement(R,{as:"a",className:ue({active:"shrink",hover:"grow"}),display:"block",href:(r=(n=u==null?void 0:u.extension)==null?void 0:n.instructions)==null?void 0:r.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},F.createElement(I0,{color:"accentColor",size:"14",weight:"bold"},i.t("get_instructions.extension.learn_more.label")))))}function mv0({connectWallet:u,wallet:e}){var t,n,r,i;const a=w.useContext(le);return F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},F.createElement(R,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(n=(t=e==null?void 0:e.desktop)==null?void 0:t.instructions)==null?void 0:n.steps.map((o,s)=>{var f;return F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:s},F.createElement(R,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(f=X4[o.step])==null?void 0:f.call(X4,e)),F.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},F.createElement(I0,{color:"modalText",size:"14",weight:"bold"},a.t(o.title)),F.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},a.t(o.description))))})),F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},F.createElement(ut,{label:a.t("get_instructions.desktop.connect.label"),onClick:()=>u(e)}),F.createElement(R,{as:"a",className:ue({active:"shrink",hover:"grow"}),display:"block",href:(i=(r=e==null?void 0:e.desktop)==null?void 0:r.instructions)==null?void 0:i.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},F.createElement(I0,{color:"accentColor",size:"14",weight:"bold"},a.t("get_instructions.desktop.learn_more.label")))))}function bv0({onClose:u}){const e="rk_connect_title",t=KA(),[n,r]=w.useState(),[i,a]=w.useState(),[o,s]=w.useState(),f=!!(i!=null&&i.qrCode)&&o,[l,c]=w.useState(!1),E=w.useContext(jE)===qc.COMPACT,{disclaimer:p}=w.useContext(L3),h=w.useContext(le),g=w.useRef(!1),{connector:b}=w.useContext(Wc),m=zE().filter(U=>U.ready||!!U.extensionDownloadUrl).sort((U,i0)=>U.groupIndex-i0.groupIndex),A=Uy0(m,U=>U.groupName),y=["Recommended","Other","Popular","More","Others"];w.useEffect(()=>{b&&!g.current&&(S("CONNECT"),v(b),g.current=!0)},[b]);const B=U=>{var i0,s0,o0;if(c(!1),U.ready){(s0=(i0=U==null?void 0:U.connect)==null?void 0:i0.call(U))==null||s0.catch(()=>{c(!0)});const Q=(o0=U.desktop)==null?void 0:o0.getUri;Q&&setTimeout(async()=>{const b0=await Q();window.open(b0,t?"_blank":"_self")},0)}},v=U=>{var i0;if(qy0(U.id),B(U),r(U.id),U.ready){let s0=!1;(i0=U==null?void 0:U.onConnecting)==null||i0.call(U,async()=>{var o0,Q;if(s0)return;s0=!0;const b0=m.find(B0=>U.id===B0.id),A0=await((o0=b0==null?void 0:b0.qrCode)==null?void 0:o0.getUri());s(A0),setTimeout(()=>{a(b0),S("CONNECT")},A0?0:50);const _0=await(b0==null?void 0:b0.connector.getProvider()),w0=(Q=_0==null?void 0:_0.signer)==null?void 0:Q.connection;if(w0!=null&&w0.on&&(w0!=null&&w0.off)){const B0=()=>{_(),v(U)},_=()=>{w0.off("close",B0),w0.off("open",_)};w0.on("close",B0),w0.on("open",_)}})}else a(U),S(U!=null&&U.extensionDownloadUrl?"DOWNLOAD_OPTIONS":"CONNECT")},C=U=>{var i0;r(U);const s0=m.find(A0=>U===A0.id),o0=(i0=s0==null?void 0:s0.downloadUrls)==null?void 0:i0.qrCode,Q=!!(s0!=null&&s0.desktopDownloadUrl),b0=!!(s0!=null&&s0.extensionDownloadUrl);a(s0),S(o0&&(b0||Q)?"DOWNLOAD_OPTIONS":o0?"DOWNLOAD":Q?"INSTRUCTIONS_DESKTOP":"INSTRUCTIONS_EXTENSION")},D=()=>{r(void 0),a(void 0),s(void 0)},S=(U,i0=!1)=>{i0&&U==="GET"&&x==="GET"?D():!i0&&U==="GET"?L("GET"):!i0&&U==="CONNECT"&&L("CONNECT"),G(U)},[x,L]=w.useState("NONE"),[Y,G]=w.useState("NONE");let X=null,I=null,O=null,W;w.useEffect(()=>{c(!1)},[Y,i]);const q=!!(!!(i!=null&&i.extensionDownloadUrl)&&(i!=null&&i.mobileDownloadUrl));switch(Y){case"NONE":X=F.createElement(Ww,{getWallet:()=>S("GET")});break;case"LEARN_COMPACT":X=F.createElement(Ww,{compactModeEnabled:E,getWallet:()=>S("GET")}),I=h.t("intro.title"),O="NONE";break;case"GET":X=F.createElement(cv0,{getWalletDownload:C,compactModeEnabled:E}),I=h.t("get.title"),O=E?"LEARN_COMPACT":"NONE";break;case"CONNECT":X=i&&F.createElement(dv0,{changeWalletStep:S,compactModeEnabled:E,connectionError:l,onClose:u,qrCodeUri:o,reconnect:B,wallet:i}),I=f&&(i.name==="WalletConnect"?h.t("connect_scan.fallback_title"):h.t("connect_scan.title",{wallet:i.name})),O=E?b?null:"NONE":null,W=E?b?()=>{}:D:()=>{};break;case"DOWNLOAD_OPTIONS":X=i&&F.createElement(Ev0,{changeWalletStep:S,wallet:i}),I=i&&h.t("get_options.short_title",{wallet:i.name}),O=b?"CONNECT":q?x:null;break;case"DOWNLOAD":X=i&&F.createElement(pv0,{changeWalletStep:S,wallet:i}),I=i&&h.t("get_mobile.title",{wallet:i.name}),O=q?"DOWNLOAD_OPTIONS":x;break;case"INSTRUCTIONS_MOBILE":X=i&&F.createElement(hv0,{connectWallet:v,wallet:i}),I=i&&h.t("get_options.title",{wallet:E&&i.shortName||i.name}),O="DOWNLOAD";break;case"INSTRUCTIONS_EXTENSION":X=i&&F.createElement(Cv0,{wallet:i}),I=i&&h.t("get_options.title",{wallet:E&&i.shortName||i.name}),O="DOWNLOAD_OPTIONS";break;case"INSTRUCTIONS_DESKTOP":X=i&&F.createElement(mv0,{connectWallet:v,wallet:i}),I=i&&h.t("get_options.title",{wallet:E&&i.shortName||i.name}),O="DOWNLOAD_OPTIONS";break}return F.createElement(R,{display:"flex",flexDirection:"row",style:{maxHeight:E?468:504}},(E?Y==="NONE":!0)&&F.createElement(R,{className:E?ov0:av0,display:"flex",flexDirection:"column",marginTop:"16"},F.createElement(R,{display:"flex",justifyContent:"space-between"},E&&p&&F.createElement(R,{marginLeft:"16",width:"28"},F.createElement(Gy0,{onClick:()=>S("LEARN_COMPACT")})),E&&!p&&F.createElement(R,{marginLeft:"16",width:"28"}),F.createElement(R,{marginLeft:E?"0":"6",paddingBottom:"8",paddingTop:"2",paddingX:"18"},F.createElement(I0,{as:"h1",color:"modalText",id:e,size:"18",weight:"heavy",testId:"connect-header-label"},h.t("connect.title"))),E&&F.createElement(R,{marginRight:"16"},F.createElement(Qo,{onClose:u}))),F.createElement(R,{className:iv0,paddingBottom:"18"},Object.entries(A).map(([U,i0],s0)=>i0.length>0&&F.createElement(w.Fragment,{key:s0},U?F.createElement(R,{marginBottom:"8",marginTop:"16",marginX:"6"},F.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"bold"},y.includes(U)?h.t(`connector_group.${U.toLowerCase()}`):U)):null,F.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},i0.map(o0=>F.createElement(KM,{currentlySelected:o0.id===n,iconBackground:o0.iconBackground,iconUrl:o0.iconUrl,key:o0.id,name:o0.name,onClick:()=>v(o0),ready:o0.ready,recent:o0.recent,testId:`wallet-option-${o0.id}`})))))),E&&F.createElement(F.Fragment,null,F.createElement(R,{background:"generalBorder",height:"1",marginTop:"-1"}),p?F.createElement(R,{paddingX:"24",paddingY:"16",textAlign:"center"},F.createElement(p,{Link:YA,Text:XA})):F.createElement(R,{alignItems:"center",display:"flex",justifyContent:"space-between",paddingX:"24",paddingY:"16"},F.createElement(R,{paddingY:"4"},F.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},h.t("connect.new_to_ethereum.description"))),F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",justifyContent:"center"},F.createElement(R,{className:ue({active:"shrink",hover:"grow"}),cursor:"pointer",onClick:()=>S("LEARN_COMPACT"),paddingY:"4",style:{willChange:"transform"},transition:"default"},F.createElement(I0,{color:"accentColor",size:"14",weight:"bold"},h.t("connect.new_to_ethereum.learn_more.label"))))))),(E?Y!=="NONE":!0)&&F.createElement(F.Fragment,null,!E&&F.createElement(R,{background:"generalBorder",minWidth:"1",width:"1"}),F.createElement(R,{display:"flex",flexDirection:"column",margin:"16",style:{flexGrow:1}},F.createElement(R,{alignItems:"center",display:"flex",justifyContent:"space-between",marginBottom:"12"},F.createElement(R,{width:"28"},O&&F.createElement(R,{as:"button",className:ue({active:"shrinkSm",hover:"growLg"}),color:"accentColor",onClick:()=>{O&&S(O,!0),W==null||W()},paddingX:"8",paddingY:"4",style:{boxSizing:"content-box",height:17,willChange:"transform"},transition:"default",type:"button"},F.createElement(GM,null))),F.createElement(R,{display:"flex",justifyContent:"center",style:{flexGrow:1}},I&&F.createElement(I0,{color:"modalText",size:"18",textAlign:"center",weight:"heavy"},I)),F.createElement(Qo,{onClose:u})),F.createElement(R,{display:"flex",flexDirection:"column",style:{minHeight:E?396:432}},F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"6",height:"full",justifyContent:"center",marginX:"8"},X)))))}var gv0="_1am14412",Av0="_1am14410",yv0="_1am14413",vv0=({wallet:u})=>F.createElement("svg",{className:yv0,viewBox:"0 0 86 86",width:"86",height:"86"},F.createElement("rect",{x:"3",y:"3",width:80,height:80,rx:20,ry:20,strokeDasharray:`${160/3} ${2*160/3}`,strokeDashoffset:160,className:gv0,style:{stroke:(u==null?void 0:u.iconAccent)||"#0D3887"}}));function rj({onClose:u,wallet:e,connecting:t}){const{connect:n,connector:r,iconBackground:i,iconUrl:a,id:o,mobile:s,name:f,onConnecting:l,ready:c,shortName:d}=e,E=s==null?void 0:s.getUri,p=VM(a),h=w.useRef(!1),g=w.useContext(le),b=w.useCallback(async()=>{var m;o==="walletConnect"&&(u==null||u()),(m=n==null?void 0:n())==null||m.catch(()=>{});let A=!1;l==null||l(async()=>{if(!A&&(A=!0,E)){const y=await E();if((r.id==="walletConnect"||r.id==="walletConnectLegacy")&&fy0({mobileUri:y,name:f}),y.startsWith("http")){const B=document.createElement("a");B.href=y,B.target="_blank",B.rel="noreferrer noopener",B.click()}else window.location.href=y}})},[r,n,E,l,u,f,o]);return w.useEffect(()=>{t&&!h.current&&(b(),h.current=!0)},[t]),F.createElement(R,{as:"button",color:c?"modalText":"modalTextSecondary",disabled:!c,fontFamily:"body",key:o,onClick:b,ref:p,style:{overflow:"visible",textAlign:"center"},testId:`wallet-option-${o}`,type:"button",width:"full"},F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},F.createElement(R,{display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"8",paddingTop:"10",position:"relative"},t?F.createElement(vv0,{wallet:e}):null,F.createElement(se,{background:i,borderRadius:"13",boxShadow:"walletLogo",height:"60",src:a,width:"60"})),t?null:F.createElement(R,{display:"flex",flexDirection:"column",textAlign:"center"},F.createElement(I0,{as:"h2",color:e.ready?"modalText":"modalTextSecondary",size:"13",weight:"medium"},F.createElement(R,{as:"span",position:"relative"},d??f,!e.ready&&" (unsupported)")),e.recent&&F.createElement(I0,{color:"accentColor",size:"12",weight:"medium"},g.t("connect.recent")))))}function Bv0({onClose:u}){var e;const t="rk_connect_title",n=zE(),{disclaimer:r,learnMoreUrl:i}=w.useContext(L3);let a=null,o=null,s=!1,f=null;const[l,c]=w.useState("CONNECT"),d=w.useContext(le),E=ms();switch(l){case"CONNECT":{a=d.t("connect.title"),s=!0,o=F.createElement(R,null,F.createElement(R,{background:"profileForeground",className:Av0,display:"flex",paddingBottom:"20",paddingTop:"6"},F.createElement(R,{display:"flex",style:{margin:"0 auto"}},n.filter(p=>p.ready).map(p=>F.createElement(R,{key:p.id,paddingX:"20"},F.createElement(R,{width:"60"},F.createElement(rj,{onClose:u,wallet:p})))))),F.createElement(R,{background:"generalBorder",height:"1",marginBottom:"32",marginTop:"-1"}),F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"32",paddingX:"32",style:{textAlign:"center"}},F.createElement(R,{display:"flex",flexDirection:"column",gap:"8",textAlign:"center"},F.createElement(I0,{color:"modalText",size:"16",weight:"bold"},d.t("intro.title")),F.createElement(I0,{color:"modalTextSecondary",size:"16"},d.t("intro.description")))),F.createElement(R,{paddingTop:"32",paddingX:"20"},F.createElement(R,{display:"flex",gap:"14",justifyContent:"center"},F.createElement(ut,{label:d.t("intro.get.label"),onClick:()=>c("GET"),size:"large",type:"secondary"}),F.createElement(ut,{href:i,label:d.t("intro.learn_more.label"),size:"large",type:"secondary"}))),r&&F.createElement(R,{marginTop:"28",marginX:"32",textAlign:"center"},F.createElement(r,{Link:YA,Text:XA})));break}case"GET":{a=d.t("get.title"),f="CONNECT";const p=(e=n==null?void 0:n.filter(h=>{var g,b,m;return((g=h.downloadUrls)==null?void 0:g.ios)||((b=h.downloadUrls)==null?void 0:b.android)||((m=h.downloadUrls)==null?void 0:m.mobile)}))==null?void 0:e.splice(0,3);o=F.createElement(R,null,F.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginBottom:"36",marginTop:"5",paddingTop:"12",width:"full"},p.map((h,g)=>{const{downloadUrls:b,iconBackground:m,iconUrl:A,name:y}=h;return!(b!=null&&b.ios)&&!(b!=null&&b.android)&&!(b!=null&&b.mobile)?null:F.createElement(R,{display:"flex",gap:"16",key:h.id,paddingX:"20",width:"full"},F.createElement(R,{style:{minHeight:48,minWidth:48}},F.createElement(se,{background:m,borderColor:"generalBorder",borderRadius:"10",height:"48",src:A,width:"48"})),F.createElement(R,{display:"flex",flexDirection:"column",width:"full"},F.createElement(R,{alignItems:"center",display:"flex",height:"48"},F.createElement(R,{width:"full"},F.createElement(I0,{color:"modalText",size:"18",weight:"bold"},y)),F.createElement(ut,{href:(E?b==null?void 0:b.ios:b==null?void 0:b.android)||(b==null?void 0:b.mobile),label:d.t("get.action.label"),size:"small",type:"secondary"})),gc(f),padding:"16",style:{height:17,willChange:"transform"},transition:"default",type:"button"},F.createElement(GM,null))),F.createElement(R,{marginTop:"4",textAlign:"center",width:"full"},F.createElement(I0,{as:"h1",color:"modalText",id:t,size:"20",weight:"bold"},a)),F.createElement(R,{alignItems:"center",display:"flex",height:"32",paddingRight:"14",position:"absolute",right:"0"},F.createElement(R,{style:{marginBottom:-20,marginTop:-20}},F.createElement(Qo,{onClose:u}))))),F.createElement(R,{display:"flex",flexDirection:"column"},o))}var Fv0=({onClose:u})=>{const{connector:e}=w.useContext(Wc),t=w.useContext(le),n=(e==null?void 0:e.name)||"";return F.createElement(R,null,F.createElement(R,{display:"flex",paddingBottom:"32",justifyContent:"center",alignItems:"center",background:"profileForeground",flexDirection:"column"},F.createElement(R,{width:"full",display:"flex",justifyContent:"flex-end",marginTop:"18",marginRight:"24"},F.createElement(Qo,{onClose:u})),F.createElement(R,{width:"60"},F.createElement(rj,{onClose:u,wallet:e,connecting:!0})),F.createElement(R,{marginTop:"20"},F.createElement(I0,{textAlign:"center",color:"modalText",size:"18",weight:"semibold"},t.t("connect.status.connect_mobile",{wallet:n}))),F.createElement(R,{maxWidth:"full",marginTop:"8"},F.createElement(I0,{textAlign:"center",color:"modalText",size:"16",weight:"medium"},t.t("connect.status.confirm_mobile",{wallet:n})))))};function Dv0({onClose:u}){const{connector:e}=w.useContext(Wc);return we()?e?F.createElement(Fv0,{onClose:u}):F.createElement(Bv0,{onClose:u}):F.createElement(bv0,{onClose:u})}function wv0({onClose:u,open:e}){const t="rk_connect_title",n=$A(),{disconnect:r}=bA(),{isConnecting:i}=Bt(),a=F.useCallback(()=>{u(),r()},[u,r]),o=F.useCallback(()=>{i&&r(),u()},[u,r,i]);return n==="disconnected"?F.createElement(Z2,{onClose:o,open:e,titleId:t},F.createElement(Y2,{bottomSheetOnMobile:!0,padding:"0",wide:!0},F.createElement(Dv0,{onClose:o}))):n==="unauthenticated"?F.createElement(Z2,{onClose:a,open:e,titleId:t},F.createElement(Y2,{bottomSheetOnMobile:!0,padding:"0"},F.createElement(oy0,{onClose:a}))):null}function fh(){const[u,e]=w.useState(!1);return{closeModal:w.useCallback(()=>e(!1),[]),isModalOpen:u,openModal:w.useCallback(()=>e(!0),[])}}var Hc=w.createContext({accountModalOpen:!1,chainModalOpen:!1,connectModalOpen:!1});function xv0({children:u}){const{closeModal:e,isModalOpen:t,openModal:n}=fh(),{closeModal:r,isModalOpen:i,openModal:a}=fh(),{closeModal:o,isModalOpen:s,openModal:f}=fh(),l=$A(),{chain:c}=ka(),d=!(c!=null&&c.unsupported);function E({keepConnectModalOpen:h=!1}={}){h||e(),r(),o()}const p=ME()==="unauthenticated";return Bt({onConnect:()=>E({keepConnectModalOpen:p}),onDisconnect:()=>E()}),F.createElement(Hc.Provider,{value:w.useMemo(()=>({accountModalOpen:i,chainModalOpen:s,connectModalOpen:t,openAccountModal:d&&l==="connected"?a:void 0,openChainModal:l==="connected"?f:void 0,openConnectModal:l==="disconnected"||l==="unauthenticated"?n:void 0}),[l,d,i,s,t,a,f,n])},u,F.createElement(wv0,{onClose:e,open:t}),F.createElement(Ny0,{onClose:r,open:i}),F.createElement($y0,{onClose:o,open:s}))}function kv0(){const{accountModalOpen:u,chainModalOpen:e,connectModalOpen:t}=w.useContext(Hc);return{accountModalOpen:u,chainModalOpen:e,connectModalOpen:t}}function _v0(){const{accountModalOpen:u,openAccountModal:e}=w.useContext(Hc);return{accountModalOpen:u,openAccountModal:e}}function Sv0(){const{chainModalOpen:u,openChainModal:e}=w.useContext(Hc);return{chainModalOpen:u,openChainModal:e}}function Tv0(){const{connectModalOpen:u,openConnectModal:e}=w.useContext(Hc);return{connectModalOpen:u,openConnectModal:e}}var lh=()=>{};function uy({children:u}){var e,t,n,r;const i=SA0(),{address:a}=Bt(),o=DM(a),s=FM(o),{data:f}=HR({address:a}),{chain:l}=ka(),c=_A0(),d=(e=ME())!=null?e:void 0,E=l?c[l.id]:void 0,p=(t=E==null?void 0:E.name)!=null?t:void 0,h=(n=E==null?void 0:E.iconUrl)!=null?n:void 0,g=(r=E==null?void 0:E.iconBackground)!=null?r:void 0,b=WA(h),m=w.useContext(VA),A=_M().some(({status:L})=>L==="pending")&&m,y=f?`${$M(parseFloat(f.formatted))} ${f.symbol}`:void 0,{openConnectModal:B}=Tv0(),{openChainModal:v}=Sv0(),{openAccountModal:C}=_v0(),{accountModalOpen:D,chainModalOpen:S,connectModalOpen:x}=kv0();return F.createElement(F.Fragment,null,u({account:a?{address:a,balanceDecimals:f==null?void 0:f.decimals,balanceFormatted:f==null?void 0:f.formatted,balanceSymbol:f==null?void 0:f.symbol,displayBalance:y,displayName:o?WM(o):UM(a),ensAvatar:s??void 0,ensName:o??void 0,hasPendingTransactions:A}:void 0,accountModalOpen:D,authenticationStatus:d,chain:l?{hasIcon:!!h,iconBackground:g,iconUrl:b,id:l.id,name:p??l.name,unsupported:l.unsupported}:void 0,chainModalOpen:S,connectModalOpen:x,mounted:i,openAccountModal:C??lh,openChainModal:v??lh,openConnectModal:B??lh}))}uy.displayName="ConnectButton.Custom";var Fl={accountStatus:"full",chainStatus:{largeScreen:"full",smallScreen:"icon"},label:"Connect Wallet",showBalance:{largeScreen:!0,smallScreen:!1}};function ey({accountStatus:u=Fl.accountStatus,chainStatus:e=Fl.chainStatus,label:t=Fl.label,showBalance:n=Fl.showBalance}){const r=Uc(),i=$A(),a=w.useContext(le);return F.createElement(uy,null,({account:o,chain:s,mounted:f,openAccountModal:l,openChainModal:c,openConnectModal:d})=>{var E,p,h;const g=f&&i!=="loading",b=(E=s==null?void 0:s.unsupported)!=null?E:!1;return F.createElement(R,{display:"flex",gap:"12",...!g&&{"aria-hidden":!0,style:{opacity:0,pointerEvents:"none",userSelect:"none"}}},g&&o&&i==="connected"?F.createElement(F.Fragment,null,s&&(r.length>1||b)&&F.createElement(R,{alignItems:"center","aria-label":"Chain Selector",as:"button",background:b?"connectButtonBackgroundError":"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:ue({active:"shrink",hover:"grow"}),color:b?"connectButtonTextError":"connectButtonText",display:Ps(e,m=>m==="none"?"none":"flex"),fontFamily:"body",fontWeight:"bold",gap:"6",key:b?"unsupported":"supported",onClick:c,paddingX:"10",paddingY:"8",testId:b?"wrong-network-button":"chain-button",transition:"default",type:"button"},b?F.createElement(R,{alignItems:"center",display:"flex",height:"24",paddingX:"4"},"Wrong network"):F.createElement(R,{alignItems:"center",display:"flex",gap:"6"},s.hasIcon?F.createElement(R,{display:Ps(e,m=>m==="full"||m==="icon"?"block":"none"),height:"24",width:"24"},F.createElement(se,{alt:(p=s.name)!=null?p:"Chain icon",background:s.iconBackground,borderRadius:"full",height:"24",src:s.iconUrl,width:"24"})):null,F.createElement(R,{display:Ps(e,m=>m==="icon"&&!s.iconUrl||m==="full"||m==="name"?"block":"none")},(h=s.name)!=null?h:s.id)),F.createElement(pw,null)),!b&&F.createElement(R,{alignItems:"center",as:"button",background:"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:ue({active:"shrink",hover:"grow"}),color:"connectButtonText",display:"flex",fontFamily:"body",fontWeight:"bold",onClick:l,testId:"account-button",transition:"default",type:"button"},o.displayBalance&&F.createElement(R,{display:Ps(n,m=>m?"block":"none"),padding:"8",paddingLeft:"12"},o.displayBalance),F.createElement(R,{background:ZC0(n)[we()?"smallScreen":"largeScreen"]?"connectButtonInnerBackground":"connectButtonBackground",borderColor:"connectButtonBackground",borderRadius:"connectButton",borderStyle:"solid",borderWidth:"2",color:"connectButtonText",fontFamily:"body",fontWeight:"bold",paddingX:"8",paddingY:"6",transition:"default"},F.createElement(R,{alignItems:"center",display:"flex",gap:"6",height:"24"},F.createElement(R,{display:Ps(u,m=>m==="full"||m==="avatar"?"block":"none")},F.createElement(vM,{address:o.address,imageUrl:o.ensAvatar,loading:o.hasPendingTransactions,size:24})),F.createElement(R,{alignItems:"center",display:"flex",gap:"6"},F.createElement(R,{display:Ps(u,m=>m==="full"||m==="address"?"block":"none")},o.displayName),F.createElement(pw,null)))))):F.createElement(R,{as:"button",background:"accentColor",borderRadius:"connectButton",boxShadow:"connectButton",className:ue({active:"shrink",hover:"grow"}),color:"accentColorForeground",fontFamily:"body",fontWeight:"bold",height:"40",key:"connect",onClick:d,paddingX:"14",testId:"connect-button",transition:"default",type:"button"},f&&t==="Connect Wallet"?a.t("connect_wallet.label"):t))})}ey.__defaultProps=Fl;ey.Custom=uy;var ty={},LE={},Q0={},ij={};(function(u){Object.defineProperty(u,"__esModule",{value:!0});function e(o,s){var f=o>>>16&65535,l=o&65535,c=s>>>16&65535,d=s&65535;return l*d+(f*d+l*c<<16>>>0)|0}u.mul=Math.imul||e;function t(o,s){return o+s|0}u.add=t;function n(o,s){return o-s|0}u.sub=n;function r(o,s){return o<>>32-s}u.rotl=r;function i(o,s){return o<<32-s|o>>>s}u.rotr=i;function a(o){return typeof o=="number"&&isFinite(o)&&Math.floor(o)===o}u.isInteger=Number.isInteger||a,u.MAX_SAFE_INTEGER=9007199254740991,u.isSafeInteger=function(o){return u.isInteger(o)&&o>=-u.MAX_SAFE_INTEGER&&o<=u.MAX_SAFE_INTEGER}})(ij);Object.defineProperty(Q0,"__esModule",{value:!0});var aj=ij;function Pv0(u,e){return e===void 0&&(e=0),(u[e+0]<<8|u[e+1])<<16>>16}Q0.readInt16BE=Pv0;function Iv0(u,e){return e===void 0&&(e=0),(u[e+0]<<8|u[e+1])>>>0}Q0.readUint16BE=Iv0;function Ov0(u,e){return e===void 0&&(e=0),(u[e+1]<<8|u[e])<<16>>16}Q0.readInt16LE=Ov0;function Rv0(u,e){return e===void 0&&(e=0),(u[e+1]<<8|u[e])>>>0}Q0.readUint16LE=Rv0;function oj(u,e,t){return e===void 0&&(e=new Uint8Array(2)),t===void 0&&(t=0),e[t+0]=u>>>8,e[t+1]=u>>>0,e}Q0.writeUint16BE=oj;Q0.writeInt16BE=oj;function sj(u,e,t){return e===void 0&&(e=new Uint8Array(2)),t===void 0&&(t=0),e[t+0]=u>>>0,e[t+1]=u>>>8,e}Q0.writeUint16LE=sj;Q0.writeInt16LE=sj;function jC(u,e){return e===void 0&&(e=0),u[e]<<24|u[e+1]<<16|u[e+2]<<8|u[e+3]}Q0.readInt32BE=jC;function zC(u,e){return e===void 0&&(e=0),(u[e]<<24|u[e+1]<<16|u[e+2]<<8|u[e+3])>>>0}Q0.readUint32BE=zC;function LC(u,e){return e===void 0&&(e=0),u[e+3]<<24|u[e+2]<<16|u[e+1]<<8|u[e]}Q0.readInt32LE=LC;function $C(u,e){return e===void 0&&(e=0),(u[e+3]<<24|u[e+2]<<16|u[e+1]<<8|u[e])>>>0}Q0.readUint32LE=$C;function X2(u,e,t){return e===void 0&&(e=new Uint8Array(4)),t===void 0&&(t=0),e[t+0]=u>>>24,e[t+1]=u>>>16,e[t+2]=u>>>8,e[t+3]=u>>>0,e}Q0.writeUint32BE=X2;Q0.writeInt32BE=X2;function u9(u,e,t){return e===void 0&&(e=new Uint8Array(4)),t===void 0&&(t=0),e[t+0]=u>>>0,e[t+1]=u>>>8,e[t+2]=u>>>16,e[t+3]=u>>>24,e}Q0.writeUint32LE=u9;Q0.writeInt32LE=u9;function Nv0(u,e){e===void 0&&(e=0);var t=jC(u,e),n=jC(u,e+4);return t*4294967296+n-(n>>31)*4294967296}Q0.readInt64BE=Nv0;function Mv0(u,e){e===void 0&&(e=0);var t=zC(u,e),n=zC(u,e+4);return t*4294967296+n}Q0.readUint64BE=Mv0;function jv0(u,e){e===void 0&&(e=0);var t=LC(u,e),n=LC(u,e+4);return n*4294967296+t-(t>>31)*4294967296}Q0.readInt64LE=jv0;function zv0(u,e){e===void 0&&(e=0);var t=$C(u,e),n=$C(u,e+4);return n*4294967296+t}Q0.readUint64LE=zv0;function fj(u,e,t){return e===void 0&&(e=new Uint8Array(8)),t===void 0&&(t=0),X2(u/4294967296>>>0,e,t),X2(u>>>0,e,t+4),e}Q0.writeUint64BE=fj;Q0.writeInt64BE=fj;function lj(u,e,t){return e===void 0&&(e=new Uint8Array(8)),t===void 0&&(t=0),u9(u>>>0,e,t),u9(u/4294967296>>>0,e,t+4),e}Q0.writeUint64LE=lj;Q0.writeInt64LE=lj;function Lv0(u,e,t){if(t===void 0&&(t=0),u%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(u/8>e.length-t)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,r=1,i=u/8+t-1;i>=t;i--)n+=e[i]*r,r*=256;return n}Q0.readUintBE=Lv0;function $v0(u,e,t){if(t===void 0&&(t=0),u%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(u/8>e.length-t)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,r=1,i=t;i=n;i--)t[i]=e/r&255,r*=256;return t}Q0.writeUintBE=Uv0;function Wv0(u,e,t,n){if(t===void 0&&(t=new Uint8Array(u/8)),n===void 0&&(n=0),u%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!aj.isSafeInteger(e))throw new Error("writeUintLE value must be an integer");for(var r=1,i=n;i>>16|I<<16,L=L+I|0,C^=L,C=C>>>20|C<<12,y=y+D|0,O^=y,O=O>>>16|O<<16,Y=Y+O|0,D^=Y,D=D>>>20|D<<12,B=B+S|0,W^=B,W=W>>>16|W<<16,G=G+W|0,S^=G,S=S>>>20|S<<12,v=v+x|0,$^=v,$=$>>>16|$<<16,X=X+$|0,x^=X,x=x>>>20|x<<12,B=B+S|0,W^=B,W=W>>>24|W<<8,G=G+W|0,S^=G,S=S>>>25|S<<7,v=v+x|0,$^=v,$=$>>>24|$<<8,X=X+$|0,x^=X,x=x>>>25|x<<7,y=y+D|0,O^=y,O=O>>>24|O<<8,Y=Y+O|0,D^=Y,D=D>>>25|D<<7,A=A+C|0,I^=A,I=I>>>24|I<<8,L=L+I|0,C^=L,C=C>>>25|C<<7,A=A+D|0,$^=A,$=$>>>16|$<<16,G=G+$|0,D^=G,D=D>>>20|D<<12,y=y+S|0,I^=y,I=I>>>16|I<<16,X=X+I|0,S^=X,S=S>>>20|S<<12,B=B+x|0,O^=B,O=O>>>16|O<<16,L=L+O|0,x^=L,x=x>>>20|x<<12,v=v+C|0,W^=v,W=W>>>16|W<<16,Y=Y+W|0,C^=Y,C=C>>>20|C<<12,B=B+x|0,O^=B,O=O>>>24|O<<8,L=L+O|0,x^=L,x=x>>>25|x<<7,v=v+C|0,W^=v,W=W>>>24|W<<8,Y=Y+W|0,C^=Y,C=C>>>25|C<<7,y=y+S|0,I^=y,I=I>>>24|I<<8,X=X+I|0,S^=X,S=S>>>25|S<<7,A=A+D|0,$^=A,$=$>>>24|$<<8,G=G+$|0,D^=G,D=D>>>25|D<<7;Se.writeUint32LE(A+n|0,u,0),Se.writeUint32LE(y+r|0,u,4),Se.writeUint32LE(B+i|0,u,8),Se.writeUint32LE(v+a|0,u,12),Se.writeUint32LE(C+o|0,u,16),Se.writeUint32LE(D+s|0,u,20),Se.writeUint32LE(S+f|0,u,24),Se.writeUint32LE(x+l|0,u,28),Se.writeUint32LE(L+c|0,u,32),Se.writeUint32LE(Y+d|0,u,36),Se.writeUint32LE(G+E|0,u,40),Se.writeUint32LE(X+p|0,u,44),Se.writeUint32LE(I+h|0,u,48),Se.writeUint32LE(O+g|0,u,52),Se.writeUint32LE(W+b|0,u,56),Se.writeUint32LE($+m|0,u,60)}function cj(u,e,t,n,r){if(r===void 0&&(r=0),u.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(n.length>>=8,e++;if(n>0)throw new Error("ChaCha: counter overflow")}var dj={},Ta={};Object.defineProperty(Ta,"__esModule",{value:!0});function nB0(u,e,t){return~(u-1)&e|u-1&t}Ta.select=nB0;function rB0(u,e){return(u|0)-(e|0)-1>>>31&1}Ta.lessOrEqual=rB0;function Ej(u,e){if(u.length!==e.length)return 0;for(var t=0,n=0;n>>8}Ta.compare=Ej;function iB0(u,e){return u.length===0||e.length===0?!1:Ej(u,e)!==0}Ta.equal=iB0;(function(u){Object.defineProperty(u,"__esModule",{value:!0});var e=Ta,t=Kn;u.DIGEST_LENGTH=16;var n=function(){function a(o){this.digestLength=u.DIGEST_LENGTH,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,this._finished=!1;var s=o[0]|o[1]<<8;this._r[0]=s&8191;var f=o[2]|o[3]<<8;this._r[1]=(s>>>13|f<<3)&8191;var l=o[4]|o[5]<<8;this._r[2]=(f>>>10|l<<6)&7939;var c=o[6]|o[7]<<8;this._r[3]=(l>>>7|c<<9)&8191;var d=o[8]|o[9]<<8;this._r[4]=(c>>>4|d<<12)&255,this._r[5]=d>>>1&8190;var E=o[10]|o[11]<<8;this._r[6]=(d>>>14|E<<2)&8191;var p=o[12]|o[13]<<8;this._r[7]=(E>>>11|p<<5)&8065;var h=o[14]|o[15]<<8;this._r[8]=(p>>>8|h<<8)&8191,this._r[9]=h>>>5&127,this._pad[0]=o[16]|o[17]<<8,this._pad[1]=o[18]|o[19]<<8,this._pad[2]=o[20]|o[21]<<8,this._pad[3]=o[22]|o[23]<<8,this._pad[4]=o[24]|o[25]<<8,this._pad[5]=o[26]|o[27]<<8,this._pad[6]=o[28]|o[29]<<8,this._pad[7]=o[30]|o[31]<<8}return a.prototype._blocks=function(o,s,f){for(var l=this._fin?0:2048,c=this._h[0],d=this._h[1],E=this._h[2],p=this._h[3],h=this._h[4],g=this._h[5],b=this._h[6],m=this._h[7],A=this._h[8],y=this._h[9],B=this._r[0],v=this._r[1],C=this._r[2],D=this._r[3],S=this._r[4],x=this._r[5],L=this._r[6],Y=this._r[7],G=this._r[8],X=this._r[9];f>=16;){var I=o[s+0]|o[s+1]<<8;c+=I&8191;var O=o[s+2]|o[s+3]<<8;d+=(I>>>13|O<<3)&8191;var W=o[s+4]|o[s+5]<<8;E+=(O>>>10|W<<6)&8191;var $=o[s+6]|o[s+7]<<8;p+=(W>>>7|$<<9)&8191;var q=o[s+8]|o[s+9]<<8;h+=($>>>4|q<<12)&8191,g+=q>>>1&8191;var U=o[s+10]|o[s+11]<<8;b+=(q>>>14|U<<2)&8191;var i0=o[s+12]|o[s+13]<<8;m+=(U>>>11|i0<<5)&8191;var s0=o[s+14]|o[s+15]<<8;A+=(i0>>>8|s0<<8)&8191,y+=s0>>>5|l;var o0=0,Q=o0;Q+=c*B,Q+=d*(5*X),Q+=E*(5*G),Q+=p*(5*Y),Q+=h*(5*L),o0=Q>>>13,Q&=8191,Q+=g*(5*x),Q+=b*(5*S),Q+=m*(5*D),Q+=A*(5*C),Q+=y*(5*v),o0+=Q>>>13,Q&=8191;var b0=o0;b0+=c*v,b0+=d*B,b0+=E*(5*X),b0+=p*(5*G),b0+=h*(5*Y),o0=b0>>>13,b0&=8191,b0+=g*(5*L),b0+=b*(5*x),b0+=m*(5*S),b0+=A*(5*D),b0+=y*(5*C),o0+=b0>>>13,b0&=8191;var A0=o0;A0+=c*C,A0+=d*v,A0+=E*B,A0+=p*(5*X),A0+=h*(5*G),o0=A0>>>13,A0&=8191,A0+=g*(5*Y),A0+=b*(5*L),A0+=m*(5*x),A0+=A*(5*S),A0+=y*(5*D),o0+=A0>>>13,A0&=8191;var _0=o0;_0+=c*D,_0+=d*C,_0+=E*v,_0+=p*B,_0+=h*(5*X),o0=_0>>>13,_0&=8191,_0+=g*(5*G),_0+=b*(5*Y),_0+=m*(5*L),_0+=A*(5*x),_0+=y*(5*S),o0+=_0>>>13,_0&=8191;var w0=o0;w0+=c*S,w0+=d*D,w0+=E*C,w0+=p*v,w0+=h*B,o0=w0>>>13,w0&=8191,w0+=g*(5*X),w0+=b*(5*G),w0+=m*(5*Y),w0+=A*(5*L),w0+=y*(5*x),o0+=w0>>>13,w0&=8191;var B0=o0;B0+=c*x,B0+=d*S,B0+=E*D,B0+=p*C,B0+=h*v,o0=B0>>>13,B0&=8191,B0+=g*B,B0+=b*(5*X),B0+=m*(5*G),B0+=A*(5*Y),B0+=y*(5*L),o0+=B0>>>13,B0&=8191;var _=o0;_+=c*L,_+=d*x,_+=E*S,_+=p*D,_+=h*C,o0=_>>>13,_&=8191,_+=g*v,_+=b*B,_+=m*(5*X),_+=A*(5*G),_+=y*(5*Y),o0+=_>>>13,_&=8191;var T=o0;T+=c*Y,T+=d*L,T+=E*x,T+=p*S,T+=h*D,o0=T>>>13,T&=8191,T+=g*C,T+=b*v,T+=m*B,T+=A*(5*X),T+=y*(5*G),o0+=T>>>13,T&=8191;var P=o0;P+=c*G,P+=d*Y,P+=E*L,P+=p*x,P+=h*S,o0=P>>>13,P&=8191,P+=g*D,P+=b*C,P+=m*v,P+=A*B,P+=y*(5*X),o0+=P>>>13,P&=8191;var j=o0;j+=c*X,j+=d*G,j+=E*Y,j+=p*L,j+=h*x,o0=j>>>13,j&=8191,j+=g*S,j+=b*D,j+=m*C,j+=A*v,j+=y*B,o0+=j>>>13,j&=8191,o0=(o0<<2)+o0|0,o0=o0+Q|0,Q=o0&8191,o0=o0>>>13,b0+=o0,c=Q,d=b0,E=A0,p=_0,h=w0,g=B0,b=_,m=T,A=P,y=j,s+=16,f-=16}this._h[0]=c,this._h[1]=d,this._h[2]=E,this._h[3]=p,this._h[4]=h,this._h[5]=g,this._h[6]=b,this._h[7]=m,this._h[8]=A,this._h[9]=y},a.prototype.finish=function(o,s){s===void 0&&(s=0);var f=new Uint16Array(10),l,c,d,E;if(this._leftover){for(E=this._leftover,this._buffer[E++]=1;E<16;E++)this._buffer[E]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(l=this._h[1]>>>13,this._h[1]&=8191,E=2;E<10;E++)this._h[E]+=l,l=this._h[E]>>>13,this._h[E]&=8191;for(this._h[0]+=l*5,l=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=l,l=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=l,f[0]=this._h[0]+5,l=f[0]>>>13,f[0]&=8191,E=1;E<10;E++)f[E]=this._h[E]+l,l=f[E]>>>13,f[E]&=8191;for(f[9]-=8192,c=(l^1)-1,E=0;E<10;E++)f[E]&=c;for(c=~c,E=0;E<10;E++)this._h[E]=this._h[E]&c|f[E];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,d=this._h[0]+this._pad[0],this._h[0]=d&65535,E=1;E<8;E++)d=(this._h[E]+this._pad[E]|0)+(d>>>16)|0,this._h[E]=d&65535;return o[s+0]=this._h[0]>>>0,o[s+1]=this._h[0]>>>8,o[s+2]=this._h[1]>>>0,o[s+3]=this._h[1]>>>8,o[s+4]=this._h[2]>>>0,o[s+5]=this._h[2]>>>8,o[s+6]=this._h[3]>>>0,o[s+7]=this._h[3]>>>8,o[s+8]=this._h[4]>>>0,o[s+9]=this._h[4]>>>8,o[s+10]=this._h[5]>>>0,o[s+11]=this._h[5]>>>8,o[s+12]=this._h[6]>>>0,o[s+13]=this._h[6]>>>8,o[s+14]=this._h[7]>>>0,o[s+15]=this._h[7]>>>8,this._finished=!0,this},a.prototype.update=function(o){var s=0,f=o.length,l;if(this._leftover){l=16-this._leftover,l>f&&(l=f);for(var c=0;c=16&&(l=f-f%16,this._blocks(o,s,l),s+=l,f-=l),f){for(var c=0;c16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var E=new Uint8Array(16);E.set(f,E.length-f.length);var p=new Uint8Array(32);e.stream(this._key,E,p,4);var h=l.length+this.tagLength,g;if(d){if(d.length!==h)throw new Error("ChaCha20Poly1305: incorrect destination length");g=d}else g=new Uint8Array(h);return e.streamXOR(this._key,E,l,g,4),this._authenticate(g.subarray(g.length-this.tagLength,g.length),p,g.subarray(0,g.length-this.tagLength),c),n.wipe(E),g},s.prototype.open=function(f,l,c,d){if(f.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(l.length0&&E.update(a.subarray(d.length%16))),E.update(c),c.length%16>0&&E.update(a.subarray(c.length%16));var p=new Uint8Array(8);d&&r.writeUint64LE(d.length,p),E.update(p),r.writeUint64LE(c.length,p),E.update(p);for(var h=E.digest(),g=0;gthis.blockSize?this._inner.update(t).finish(n).clean():n.set(t);for(var r=0;r1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},u.prototype.expand=function(e){for(var t=new Uint8Array(e),n=0;n256)throw new Error("randomString charset is too long");let d="";const E=l.length,p=256-256%E;for(;f>0;){const h=r(Math.ceil(f*256/p),c);for(let g=0;g0;g++){const b=h[g];b0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=s[l++],f--;this._bufferLength===this.blockSize&&(i(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(f>=this.blockSize&&(l=i(this._temp,this._state,s,l,f),f%=this.blockSize);f>0;)this._buffer[this._bufferLength++]=s[l++],f--;return this},o.prototype.finish=function(s){if(!this._finished){var f=this._bytesHashed,l=this._bufferLength,c=f/536870912|0,d=f<<3,E=f%64<56?64:128;this._buffer[l]=128;for(var p=l+1;p0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},o.prototype.restoreState=function(s){return this._state.set(s.state),this._bufferLength=s.bufferLength,s.buffer&&this._buffer.set(s.buffer),this._bytesHashed=s.bytesHashed,this._finished=!1,this},o.prototype.cleanSavedState=function(s){t.wipe(s.state),s.buffer&&t.wipe(s.buffer),s.bufferLength=0,s.bytesHashed=0},o}();u.SHA256=n;var r=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function i(o,s,f,l,c){for(;c>=64;){for(var d=s[0],E=s[1],p=s[2],h=s[3],g=s[4],b=s[5],m=s[6],A=s[7],y=0;y<16;y++){var B=l+y*4;o[y]=e.readUint32BE(f,B)}for(var y=16;y<64;y++){var v=o[y-2],C=(v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10;v=o[y-15];var D=(v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3;o[y]=(C+o[y-7]|0)+(D+o[y-16]|0)}for(var y=0;y<64;y++){var C=(((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&b^~g&m)|0)+(A+(r[y]+o[y]|0)|0)|0,D=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&E^d&p^E&p)|0;A=m,m=b,b=g,g=h+C|0,h=p,p=E,E=d,d=C+D|0}s[0]+=d,s[1]+=E,s[2]+=p,s[3]+=h,s[4]+=g,s[5]+=b,s[6]+=m,s[7]+=A,l+=64,c-=64}return l}function a(o){var s=new n;s.update(o);var f=s.digest();return s.clean(),f}u.hash=a})(HE);var ry={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.sharedKey=u.generateKeyPair=u.generateKeyPairFromSeed=u.scalarMultBase=u.scalarMult=u.SHARED_KEY_LENGTH=u.SECRET_KEY_LENGTH=u.PUBLIC_KEY_LENGTH=void 0;const e=$E,t=Kn;u.PUBLIC_KEY_LENGTH=32,u.SECRET_KEY_LENGTH=32,u.SHARED_KEY_LENGTH=32;function n(y){const B=new Float64Array(16);if(y)for(let v=0;v>16&1),v[x-1]&=65535;v[15]=C[15]-32767-(v[14]>>16&1);const S=v[15]>>16&1;v[14]&=65535,o(C,v,1-S)}for(let D=0;D<16;D++)y[2*D]=C[D]&255,y[2*D+1]=C[D]>>8}function f(y,B){for(let v=0;v<16;v++)y[v]=B[2*v]+(B[2*v+1]<<8);y[15]&=32767}function l(y,B,v){for(let C=0;C<16;C++)y[C]=B[C]+v[C]}function c(y,B,v){for(let C=0;C<16;C++)y[C]=B[C]-v[C]}function d(y,B,v){let C,D,S=0,x=0,L=0,Y=0,G=0,X=0,I=0,O=0,W=0,$=0,q=0,U=0,i0=0,s0=0,o0=0,Q=0,b0=0,A0=0,_0=0,w0=0,B0=0,_=0,T=0,P=0,j=0,z=0,V=0,t0=0,H=0,J=0,u0=0,Z=v[0],n0=v[1],p0=v[2],C0=v[3],y0=v[4],g0=v[5],F0=v[6],c0=v[7],d0=v[8],m0=v[9],G0=v[10],N0=v[11],x0=v[12],V0=v[13],D0=v[14],R0=v[15];C=B[0],S+=C*Z,x+=C*n0,L+=C*p0,Y+=C*C0,G+=C*y0,X+=C*g0,I+=C*F0,O+=C*c0,W+=C*d0,$+=C*m0,q+=C*G0,U+=C*N0,i0+=C*x0,s0+=C*V0,o0+=C*D0,Q+=C*R0,C=B[1],x+=C*Z,L+=C*n0,Y+=C*p0,G+=C*C0,X+=C*y0,I+=C*g0,O+=C*F0,W+=C*c0,$+=C*d0,q+=C*m0,U+=C*G0,i0+=C*N0,s0+=C*x0,o0+=C*V0,Q+=C*D0,b0+=C*R0,C=B[2],L+=C*Z,Y+=C*n0,G+=C*p0,X+=C*C0,I+=C*y0,O+=C*g0,W+=C*F0,$+=C*c0,q+=C*d0,U+=C*m0,i0+=C*G0,s0+=C*N0,o0+=C*x0,Q+=C*V0,b0+=C*D0,A0+=C*R0,C=B[3],Y+=C*Z,G+=C*n0,X+=C*p0,I+=C*C0,O+=C*y0,W+=C*g0,$+=C*F0,q+=C*c0,U+=C*d0,i0+=C*m0,s0+=C*G0,o0+=C*N0,Q+=C*x0,b0+=C*V0,A0+=C*D0,_0+=C*R0,C=B[4],G+=C*Z,X+=C*n0,I+=C*p0,O+=C*C0,W+=C*y0,$+=C*g0,q+=C*F0,U+=C*c0,i0+=C*d0,s0+=C*m0,o0+=C*G0,Q+=C*N0,b0+=C*x0,A0+=C*V0,_0+=C*D0,w0+=C*R0,C=B[5],X+=C*Z,I+=C*n0,O+=C*p0,W+=C*C0,$+=C*y0,q+=C*g0,U+=C*F0,i0+=C*c0,s0+=C*d0,o0+=C*m0,Q+=C*G0,b0+=C*N0,A0+=C*x0,_0+=C*V0,w0+=C*D0,B0+=C*R0,C=B[6],I+=C*Z,O+=C*n0,W+=C*p0,$+=C*C0,q+=C*y0,U+=C*g0,i0+=C*F0,s0+=C*c0,o0+=C*d0,Q+=C*m0,b0+=C*G0,A0+=C*N0,_0+=C*x0,w0+=C*V0,B0+=C*D0,_+=C*R0,C=B[7],O+=C*Z,W+=C*n0,$+=C*p0,q+=C*C0,U+=C*y0,i0+=C*g0,s0+=C*F0,o0+=C*c0,Q+=C*d0,b0+=C*m0,A0+=C*G0,_0+=C*N0,w0+=C*x0,B0+=C*V0,_+=C*D0,T+=C*R0,C=B[8],W+=C*Z,$+=C*n0,q+=C*p0,U+=C*C0,i0+=C*y0,s0+=C*g0,o0+=C*F0,Q+=C*c0,b0+=C*d0,A0+=C*m0,_0+=C*G0,w0+=C*N0,B0+=C*x0,_+=C*V0,T+=C*D0,P+=C*R0,C=B[9],$+=C*Z,q+=C*n0,U+=C*p0,i0+=C*C0,s0+=C*y0,o0+=C*g0,Q+=C*F0,b0+=C*c0,A0+=C*d0,_0+=C*m0,w0+=C*G0,B0+=C*N0,_+=C*x0,T+=C*V0,P+=C*D0,j+=C*R0,C=B[10],q+=C*Z,U+=C*n0,i0+=C*p0,s0+=C*C0,o0+=C*y0,Q+=C*g0,b0+=C*F0,A0+=C*c0,_0+=C*d0,w0+=C*m0,B0+=C*G0,_+=C*N0,T+=C*x0,P+=C*V0,j+=C*D0,z+=C*R0,C=B[11],U+=C*Z,i0+=C*n0,s0+=C*p0,o0+=C*C0,Q+=C*y0,b0+=C*g0,A0+=C*F0,_0+=C*c0,w0+=C*d0,B0+=C*m0,_+=C*G0,T+=C*N0,P+=C*x0,j+=C*V0,z+=C*D0,V+=C*R0,C=B[12],i0+=C*Z,s0+=C*n0,o0+=C*p0,Q+=C*C0,b0+=C*y0,A0+=C*g0,_0+=C*F0,w0+=C*c0,B0+=C*d0,_+=C*m0,T+=C*G0,P+=C*N0,j+=C*x0,z+=C*V0,V+=C*D0,t0+=C*R0,C=B[13],s0+=C*Z,o0+=C*n0,Q+=C*p0,b0+=C*C0,A0+=C*y0,_0+=C*g0,w0+=C*F0,B0+=C*c0,_+=C*d0,T+=C*m0,P+=C*G0,j+=C*N0,z+=C*x0,V+=C*V0,t0+=C*D0,H+=C*R0,C=B[14],o0+=C*Z,Q+=C*n0,b0+=C*p0,A0+=C*C0,_0+=C*y0,w0+=C*g0,B0+=C*F0,_+=C*c0,T+=C*d0,P+=C*m0,j+=C*G0,z+=C*N0,V+=C*x0,t0+=C*V0,H+=C*D0,J+=C*R0,C=B[15],Q+=C*Z,b0+=C*n0,A0+=C*p0,_0+=C*C0,w0+=C*y0,B0+=C*g0,_+=C*F0,T+=C*c0,P+=C*d0,j+=C*m0,z+=C*G0,V+=C*N0,t0+=C*x0,H+=C*V0,J+=C*D0,u0+=C*R0,S+=38*b0,x+=38*A0,L+=38*_0,Y+=38*w0,G+=38*B0,X+=38*_,I+=38*T,O+=38*P,W+=38*j,$+=38*z,q+=38*V,U+=38*t0,i0+=38*H,s0+=38*J,o0+=38*u0,D=1,C=S+D+65535,D=Math.floor(C/65536),S=C-D*65536,C=x+D+65535,D=Math.floor(C/65536),x=C-D*65536,C=L+D+65535,D=Math.floor(C/65536),L=C-D*65536,C=Y+D+65535,D=Math.floor(C/65536),Y=C-D*65536,C=G+D+65535,D=Math.floor(C/65536),G=C-D*65536,C=X+D+65535,D=Math.floor(C/65536),X=C-D*65536,C=I+D+65535,D=Math.floor(C/65536),I=C-D*65536,C=O+D+65535,D=Math.floor(C/65536),O=C-D*65536,C=W+D+65535,D=Math.floor(C/65536),W=C-D*65536,C=$+D+65535,D=Math.floor(C/65536),$=C-D*65536,C=q+D+65535,D=Math.floor(C/65536),q=C-D*65536,C=U+D+65535,D=Math.floor(C/65536),U=C-D*65536,C=i0+D+65535,D=Math.floor(C/65536),i0=C-D*65536,C=s0+D+65535,D=Math.floor(C/65536),s0=C-D*65536,C=o0+D+65535,D=Math.floor(C/65536),o0=C-D*65536,C=Q+D+65535,D=Math.floor(C/65536),Q=C-D*65536,S+=D-1+37*(D-1),D=1,C=S+D+65535,D=Math.floor(C/65536),S=C-D*65536,C=x+D+65535,D=Math.floor(C/65536),x=C-D*65536,C=L+D+65535,D=Math.floor(C/65536),L=C-D*65536,C=Y+D+65535,D=Math.floor(C/65536),Y=C-D*65536,C=G+D+65535,D=Math.floor(C/65536),G=C-D*65536,C=X+D+65535,D=Math.floor(C/65536),X=C-D*65536,C=I+D+65535,D=Math.floor(C/65536),I=C-D*65536,C=O+D+65535,D=Math.floor(C/65536),O=C-D*65536,C=W+D+65535,D=Math.floor(C/65536),W=C-D*65536,C=$+D+65535,D=Math.floor(C/65536),$=C-D*65536,C=q+D+65535,D=Math.floor(C/65536),q=C-D*65536,C=U+D+65535,D=Math.floor(C/65536),U=C-D*65536,C=i0+D+65535,D=Math.floor(C/65536),i0=C-D*65536,C=s0+D+65535,D=Math.floor(C/65536),s0=C-D*65536,C=o0+D+65535,D=Math.floor(C/65536),o0=C-D*65536,C=Q+D+65535,D=Math.floor(C/65536),Q=C-D*65536,S+=D-1+37*(D-1),y[0]=S,y[1]=x,y[2]=L,y[3]=Y,y[4]=G,y[5]=X,y[6]=I,y[7]=O,y[8]=W,y[9]=$,y[10]=q,y[11]=U,y[12]=i0,y[13]=s0,y[14]=o0,y[15]=Q}function E(y,B){d(y,B,B)}function p(y,B){const v=n();for(let C=0;C<16;C++)v[C]=B[C];for(let C=253;C>=0;C--)E(v,v),C!==2&&C!==4&&d(v,v,B);for(let C=0;C<16;C++)y[C]=v[C]}function h(y,B){const v=new Uint8Array(32),C=new Float64Array(80),D=n(),S=n(),x=n(),L=n(),Y=n(),G=n();for(let W=0;W<31;W++)v[W]=y[W];v[31]=y[31]&127|64,v[0]&=248,f(C,B);for(let W=0;W<16;W++)S[W]=C[W];D[0]=L[0]=1;for(let W=254;W>=0;--W){const $=v[W>>>3]>>>(W&7)&1;o(D,S,$),o(x,L,$),l(Y,D,x),c(D,D,x),l(x,S,L),c(S,S,L),E(L,Y),E(G,D),d(D,x,D),d(x,S,Y),l(Y,D,x),c(D,D,x),E(S,D),c(x,L,G),d(D,x,i),l(D,D,L),d(x,x,D),d(D,L,G),d(L,S,C),E(S,Y),o(D,S,$),o(x,L,$)}for(let W=0;W<16;W++)C[W+16]=D[W],C[W+32]=x[W],C[W+48]=S[W],C[W+64]=L[W];const X=C.subarray(32),I=C.subarray(16);p(X,X),d(I,I,X);const O=new Uint8Array(32);return s(O,I),O}u.scalarMult=h;function g(y){return h(y,r)}u.scalarMultBase=g;function b(y){if(y.length!==u.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${u.SECRET_KEY_LENGTH} bytes`);const B=new Uint8Array(y);return{publicKey:g(B),secretKey:B}}u.generateKeyPairFromSeed=b;function m(y){const B=(0,e.randomBytes)(32,y),v=b(B);return(0,t.wipe)(B),v}u.generateKeyPair=m;function A(y,B,v=!1){if(y.length!==u.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(B.length!==u.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const C=h(y,B);if(v){let D=0;for(let S=0;Sr+i.length,0));const t=Cj(e);let n=0;for(const r of u)t.set(r,n),n+=r.length;return iy(t)}function vB0(u,e){if(u.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,y=new Uint8Array(A);b!==m;){for(var B=p[b],v=0,C=A-1;(B!==0||v>>0,y[C]=B%o>>>0,B=B/o>>>0;if(B!==0)throw new Error("Non-zero carry");g=v,b++}for(var D=A-g;D!==A&&y[D]===0;)D++;for(var S=s.repeat(h);D>>0,A=new Uint8Array(m);p[h];){var y=t[p.charCodeAt(h)];if(y===255)return;for(var B=0,v=m-1;(y!==0||B>>0,A[v]=y%256>>>0,y=y/256>>>0;if(y!==0)throw new Error("Non-zero carry");b=B,h++}if(p[h]!==" "){for(var C=m-b;C!==m&&A[C]===0;)C++;for(var D=new Uint8Array(g+(m-C)),S=g;C!==m;)D[S++]=A[C++];return D}}}function E(p){var h=d(p);if(h)return h;throw new Error(`Non-${e} character`)}return{encode:c,decodeUnsafe:d,decode:E}}var BB0=vB0,FB0=BB0;const DB0=u=>{if(u instanceof Uint8Array&&u.constructor.name==="Uint8Array")return u;if(u instanceof ArrayBuffer)return new Uint8Array(u);if(ArrayBuffer.isView(u))return new Uint8Array(u.buffer,u.byteOffset,u.byteLength);throw new Error("Unknown type, must be binary type")},wB0=u=>new TextEncoder().encode(u),xB0=u=>new TextDecoder().decode(u);class kB0{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class _B0{constructor(e,t,n){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return mj(this,e)}}class SB0{constructor(e){this.decoders=e}or(e){return mj(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const mj=(u,e)=>new SB0({...u.decoders||{[u.prefix]:u},...e.decoders||{[e.prefix]:e}});class TB0{constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new kB0(e,t,n),this.decoder=new _B0(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const GE=({name:u,prefix:e,encode:t,decode:n})=>new TB0(u,e,t,n),Vc=({prefix:u,name:e,alphabet:t})=>{const{encode:n,decode:r}=FB0(t,e);return GE({prefix:u,name:e,encode:n,decode:i=>DB0(r(i))})},PB0=(u,e,t,n)=>{const r={};for(let l=0;l=8&&(o-=8,a[f++]=255&s>>o)}if(o>=t||255&s<<8-o)throw new SyntaxError("Unexpected end of data");return a},IB0=(u,e,t)=>{const n=e[e.length-1]==="=",r=(1<t;)a-=t,i+=e[r&o>>a];if(a&&(i+=e[r&o<GE({prefix:e,name:u,encode(r){return IB0(r,n,t)},decode(r){return PB0(r,n,t,u)}}),OB0=GE({prefix:"\0",name:"identity",encode:u=>xB0(u),decode:u=>wB0(u)}),RB0=Object.freeze(Object.defineProperty({__proto__:null,identity:OB0},Symbol.toStringTag,{value:"Module"})),NB0=xe({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),MB0=Object.freeze(Object.defineProperty({__proto__:null,base2:NB0},Symbol.toStringTag,{value:"Module"})),jB0=xe({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),zB0=Object.freeze(Object.defineProperty({__proto__:null,base8:jB0},Symbol.toStringTag,{value:"Module"})),LB0=Vc({prefix:"9",name:"base10",alphabet:"0123456789"}),$B0=Object.freeze(Object.defineProperty({__proto__:null,base10:LB0},Symbol.toStringTag,{value:"Module"})),UB0=xe({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),WB0=xe({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),qB0=Object.freeze(Object.defineProperty({__proto__:null,base16:UB0,base16upper:WB0},Symbol.toStringTag,{value:"Module"})),HB0=xe({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),GB0=xe({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),VB0=xe({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),KB0=xe({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),QB0=xe({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),JB0=xe({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),ZB0=xe({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),YB0=xe({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),XB0=xe({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),uF0=Object.freeze(Object.defineProperty({__proto__:null,base32:HB0,base32hex:QB0,base32hexpad:ZB0,base32hexpadupper:YB0,base32hexupper:JB0,base32pad:VB0,base32padupper:KB0,base32upper:GB0,base32z:XB0},Symbol.toStringTag,{value:"Module"})),eF0=Vc({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),tF0=Vc({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),nF0=Object.freeze(Object.defineProperty({__proto__:null,base36:eF0,base36upper:tF0},Symbol.toStringTag,{value:"Module"})),rF0=Vc({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),iF0=Vc({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),aF0=Object.freeze(Object.defineProperty({__proto__:null,base58btc:rF0,base58flickr:iF0},Symbol.toStringTag,{value:"Module"})),oF0=xe({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),sF0=xe({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),fF0=xe({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),lF0=xe({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),cF0=Object.freeze(Object.defineProperty({__proto__:null,base64:oF0,base64pad:sF0,base64url:fF0,base64urlpad:lF0},Symbol.toStringTag,{value:"Module"})),bj=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),dF0=bj.reduce((u,e,t)=>(u[t]=e,u),[]),EF0=bj.reduce((u,e,t)=>(u[e.codePointAt(0)]=t,u),[]);function pF0(u){return u.reduce((e,t)=>(e+=dF0[t],e),"")}function hF0(u){const e=[];for(const t of u){const n=EF0[t.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(n)}return new Uint8Array(e)}const CF0=GE({prefix:"🚀",name:"base256emoji",encode:pF0,decode:hF0}),mF0=Object.freeze(Object.defineProperty({__proto__:null,base256emoji:CF0},Symbol.toStringTag,{value:"Module"}));new TextEncoder;new TextDecoder;const Qw={...RB0,...MB0,...zB0,...$B0,...qB0,...uF0,...nF0,...aF0,...cF0,...mF0};function gj(u,e,t,n){return{name:u,prefix:e,encoder:{name:u,prefix:e,encode:t},decoder:{decode:n}}}const Jw=gj("utf8","u",u=>"u"+new TextDecoder("utf8").decode(u),u=>new TextEncoder().encode(u.substring(1))),ch=gj("ascii","a",u=>{let e="a";for(let t=0;t{u=u.substring(1);const e=Cj(u.length);for(let t=0;t"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new vF0:typeof navigator<"u"?ux(navigator.userAgent):_F0()}function xF0(u){return u!==""&&DF0.reduce(function(e,t){var n=t[0],r=t[1];if(e)return e;var i=r.exec(u);return!!i&&[n,i]},!1)}function ux(u){var e=xF0(u);if(!e)return null;var t=e[0],n=e[1];if(t==="searchbot")return new yF0;var r=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);r?r.length=7&&$C0(s,e),UC0(s,a),isNaN(n)&&(n=IC.getBestMask(s,th.bind(null,s,t))),IC.applyMask(n,s),th(s,t,n),{modules:s,version:e,errorCorrectionLevel:t,maskPattern:n,segments:r}}eM.create=function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let n=uh.M,r,i;return typeof t<"u"&&(n=uh.from(t.errorCorrectionLevel,uh.M),r=Z2.from(t.version),i=IC.from(t.maskPattern),t.toSJISFunc&&ME.setToSJISFunction(t.toSJISFunc)),HC0(e,r,n,i)};var pM={},LA={};(function(u){function e(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let n=t.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+t);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(i){return[i,i]}))),n.length===6&&n.push("F","F");const r=parseInt(n.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+n.slice(0,6).join("")}}u.getOptions=function(n){n||(n={}),n.color||(n.color={});const r=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,i=n.width&&n.width>=21?n.width:void 0,a=n.scale||4;return{width:i,scale:i?4:a,margin:r,color:{dark:e(n.color.dark||"#000000ff"),light:e(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},u.getScale=function(n,r){return r.width&&r.width>=n+r.margin*2?r.width/(n+r.margin*2):r.scale},u.getImageWidth=function(n,r){const i=u.getScale(n,r);return Math.floor((n+r.margin*2)*i)},u.qrToImageData=function(n,r,i){const a=r.modules.size,o=r.modules.data,s=u.getScale(a,i),f=Math.floor((a+i.margin*2)*s),l=i.margin*s,c=[i.color.light,i.color.dark];for(let d=0;d=l&&E>=l&&d"u"&&(!a||!a.getContext)&&(s=a,a=void 0),a||(f=n()),s=e.getOptions(s);const l=e.getImageWidth(i.modules.size,s),c=f.getContext("2d"),d=c.createImageData(l,l);return e.qrToImageData(d.data,i,s),t(c,f,l),c.putImageData(d,0,0),f},u.renderToDataURL=function(i,a,o){let s=o;typeof s>"u"&&(!a||!a.getContext)&&(s=a,a=void 0),s||(s={});const f=u.render(i,a,s),l=s.type||"image/png",c=s.rendererOpts||{};return f.toDataURL(l,c.quality)}})(pM);var hM={};const GC0=LA;function dw(u,e){const t=u.a/255,n=e+'="'+u.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}function nh(u,e,t){let n=u+e;return typeof t<"u"&&(n+=" "+t),n}function VC0(u,e,t){let n="",r=0,i=!1,a=0;for(let o=0;o0&&s>0&&u[o-1]||(n+=i?nh("M",s+t,.5+f+t):nh("m",r,0),r=0,i=!1),s+1':"",f="',l='viewBox="0 0 '+o+" "+o+'"',d=''+s+f+` +`;return typeof n=="function"&&n(null,d),d};const KC0=oC0,RC=eM,CM=pM,QC0=hM;function $A(u,e,t,n,r){const i=[].slice.call(arguments,1),a=i.length,o=typeof i[a-1]=="function";if(!o&&!KC0())throw new Error("Callback required as last argument");if(o){if(a<2)throw new Error("Too few arguments provided");a===2?(r=t,t=e,e=n=void 0):a===3&&(e.getContext&&typeof r>"u"?(r=n,n=void 0):(r=n,n=t,t=e,e=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(t=e,e=n=void 0):a===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(s,f){try{const l=RC.create(t,n);s(u(l,e,n))}catch(l){f(l)}})}try{const s=RC.create(t,n);r(null,u(s,e,n))}catch(s){r(s)}}$c.create=RC.create;$c.toCanvas=$A.bind(null,CM.render);$c.toDataURL=$A.bind(null,CM.renderToDataURL);$c.toString=$A.bind(null,function(u,e,t){return QC0.render(u,t)});var JC0=768,Ps=DJ({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),ZC0=IP({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),NC=_J({conditions:{defaultCondition:"base",conditionNames:["base","hover","active"],responsiveArray:void 0},styles:{background:{values:{accentColor:{conditions:{base:"ju367v9h",hover:"ju367v9i",active:"ju367v9j"},defaultClass:"ju367v9h"},accentColorForeground:{conditions:{base:"ju367v9k",hover:"ju367v9l",active:"ju367v9m"},defaultClass:"ju367v9k"},actionButtonBorder:{conditions:{base:"ju367v9n",hover:"ju367v9o",active:"ju367v9p"},defaultClass:"ju367v9n"},actionButtonBorderMobile:{conditions:{base:"ju367v9q",hover:"ju367v9r",active:"ju367v9s"},defaultClass:"ju367v9q"},actionButtonSecondaryBackground:{conditions:{base:"ju367v9t",hover:"ju367v9u",active:"ju367v9v"},defaultClass:"ju367v9t"},closeButton:{conditions:{base:"ju367v9w",hover:"ju367v9x",active:"ju367v9y"},defaultClass:"ju367v9w"},closeButtonBackground:{conditions:{base:"ju367v9z",hover:"ju367va0",active:"ju367va1"},defaultClass:"ju367v9z"},connectButtonBackground:{conditions:{base:"ju367va2",hover:"ju367va3",active:"ju367va4"},defaultClass:"ju367va2"},connectButtonBackgroundError:{conditions:{base:"ju367va5",hover:"ju367va6",active:"ju367va7"},defaultClass:"ju367va5"},connectButtonInnerBackground:{conditions:{base:"ju367va8",hover:"ju367va9",active:"ju367vaa"},defaultClass:"ju367va8"},connectButtonText:{conditions:{base:"ju367vab",hover:"ju367vac",active:"ju367vad"},defaultClass:"ju367vab"},connectButtonTextError:{conditions:{base:"ju367vae",hover:"ju367vaf",active:"ju367vag"},defaultClass:"ju367vae"},connectionIndicator:{conditions:{base:"ju367vah",hover:"ju367vai",active:"ju367vaj"},defaultClass:"ju367vah"},downloadBottomCardBackground:{conditions:{base:"ju367vak",hover:"ju367val",active:"ju367vam"},defaultClass:"ju367vak"},downloadTopCardBackground:{conditions:{base:"ju367van",hover:"ju367vao",active:"ju367vap"},defaultClass:"ju367van"},error:{conditions:{base:"ju367vaq",hover:"ju367var",active:"ju367vas"},defaultClass:"ju367vaq"},generalBorder:{conditions:{base:"ju367vat",hover:"ju367vau",active:"ju367vav"},defaultClass:"ju367vat"},generalBorderDim:{conditions:{base:"ju367vaw",hover:"ju367vax",active:"ju367vay"},defaultClass:"ju367vaw"},menuItemBackground:{conditions:{base:"ju367vaz",hover:"ju367vb0",active:"ju367vb1"},defaultClass:"ju367vaz"},modalBackdrop:{conditions:{base:"ju367vb2",hover:"ju367vb3",active:"ju367vb4"},defaultClass:"ju367vb2"},modalBackground:{conditions:{base:"ju367vb5",hover:"ju367vb6",active:"ju367vb7"},defaultClass:"ju367vb5"},modalBorder:{conditions:{base:"ju367vb8",hover:"ju367vb9",active:"ju367vba"},defaultClass:"ju367vb8"},modalText:{conditions:{base:"ju367vbb",hover:"ju367vbc",active:"ju367vbd"},defaultClass:"ju367vbb"},modalTextDim:{conditions:{base:"ju367vbe",hover:"ju367vbf",active:"ju367vbg"},defaultClass:"ju367vbe"},modalTextSecondary:{conditions:{base:"ju367vbh",hover:"ju367vbi",active:"ju367vbj"},defaultClass:"ju367vbh"},profileAction:{conditions:{base:"ju367vbk",hover:"ju367vbl",active:"ju367vbm"},defaultClass:"ju367vbk"},profileActionHover:{conditions:{base:"ju367vbn",hover:"ju367vbo",active:"ju367vbp"},defaultClass:"ju367vbn"},profileForeground:{conditions:{base:"ju367vbq",hover:"ju367vbr",active:"ju367vbs"},defaultClass:"ju367vbq"},selectedOptionBorder:{conditions:{base:"ju367vbt",hover:"ju367vbu",active:"ju367vbv"},defaultClass:"ju367vbt"},standby:{conditions:{base:"ju367vbw",hover:"ju367vbx",active:"ju367vby"},defaultClass:"ju367vbw"}}},borderColor:{values:{accentColor:{conditions:{base:"ju367vbz",hover:"ju367vc0",active:"ju367vc1"},defaultClass:"ju367vbz"},accentColorForeground:{conditions:{base:"ju367vc2",hover:"ju367vc3",active:"ju367vc4"},defaultClass:"ju367vc2"},actionButtonBorder:{conditions:{base:"ju367vc5",hover:"ju367vc6",active:"ju367vc7"},defaultClass:"ju367vc5"},actionButtonBorderMobile:{conditions:{base:"ju367vc8",hover:"ju367vc9",active:"ju367vca"},defaultClass:"ju367vc8"},actionButtonSecondaryBackground:{conditions:{base:"ju367vcb",hover:"ju367vcc",active:"ju367vcd"},defaultClass:"ju367vcb"},closeButton:{conditions:{base:"ju367vce",hover:"ju367vcf",active:"ju367vcg"},defaultClass:"ju367vce"},closeButtonBackground:{conditions:{base:"ju367vch",hover:"ju367vci",active:"ju367vcj"},defaultClass:"ju367vch"},connectButtonBackground:{conditions:{base:"ju367vck",hover:"ju367vcl",active:"ju367vcm"},defaultClass:"ju367vck"},connectButtonBackgroundError:{conditions:{base:"ju367vcn",hover:"ju367vco",active:"ju367vcp"},defaultClass:"ju367vcn"},connectButtonInnerBackground:{conditions:{base:"ju367vcq",hover:"ju367vcr",active:"ju367vcs"},defaultClass:"ju367vcq"},connectButtonText:{conditions:{base:"ju367vct",hover:"ju367vcu",active:"ju367vcv"},defaultClass:"ju367vct"},connectButtonTextError:{conditions:{base:"ju367vcw",hover:"ju367vcx",active:"ju367vcy"},defaultClass:"ju367vcw"},connectionIndicator:{conditions:{base:"ju367vcz",hover:"ju367vd0",active:"ju367vd1"},defaultClass:"ju367vcz"},downloadBottomCardBackground:{conditions:{base:"ju367vd2",hover:"ju367vd3",active:"ju367vd4"},defaultClass:"ju367vd2"},downloadTopCardBackground:{conditions:{base:"ju367vd5",hover:"ju367vd6",active:"ju367vd7"},defaultClass:"ju367vd5"},error:{conditions:{base:"ju367vd8",hover:"ju367vd9",active:"ju367vda"},defaultClass:"ju367vd8"},generalBorder:{conditions:{base:"ju367vdb",hover:"ju367vdc",active:"ju367vdd"},defaultClass:"ju367vdb"},generalBorderDim:{conditions:{base:"ju367vde",hover:"ju367vdf",active:"ju367vdg"},defaultClass:"ju367vde"},menuItemBackground:{conditions:{base:"ju367vdh",hover:"ju367vdi",active:"ju367vdj"},defaultClass:"ju367vdh"},modalBackdrop:{conditions:{base:"ju367vdk",hover:"ju367vdl",active:"ju367vdm"},defaultClass:"ju367vdk"},modalBackground:{conditions:{base:"ju367vdn",hover:"ju367vdo",active:"ju367vdp"},defaultClass:"ju367vdn"},modalBorder:{conditions:{base:"ju367vdq",hover:"ju367vdr",active:"ju367vds"},defaultClass:"ju367vdq"},modalText:{conditions:{base:"ju367vdt",hover:"ju367vdu",active:"ju367vdv"},defaultClass:"ju367vdt"},modalTextDim:{conditions:{base:"ju367vdw",hover:"ju367vdx",active:"ju367vdy"},defaultClass:"ju367vdw"},modalTextSecondary:{conditions:{base:"ju367vdz",hover:"ju367ve0",active:"ju367ve1"},defaultClass:"ju367vdz"},profileAction:{conditions:{base:"ju367ve2",hover:"ju367ve3",active:"ju367ve4"},defaultClass:"ju367ve2"},profileActionHover:{conditions:{base:"ju367ve5",hover:"ju367ve6",active:"ju367ve7"},defaultClass:"ju367ve5"},profileForeground:{conditions:{base:"ju367ve8",hover:"ju367ve9",active:"ju367vea"},defaultClass:"ju367ve8"},selectedOptionBorder:{conditions:{base:"ju367veb",hover:"ju367vec",active:"ju367ved"},defaultClass:"ju367veb"},standby:{conditions:{base:"ju367vee",hover:"ju367vef",active:"ju367veg"},defaultClass:"ju367vee"}}},boxShadow:{values:{connectButton:{conditions:{base:"ju367veh",hover:"ju367vei",active:"ju367vej"},defaultClass:"ju367veh"},dialog:{conditions:{base:"ju367vek",hover:"ju367vel",active:"ju367vem"},defaultClass:"ju367vek"},profileDetailsAction:{conditions:{base:"ju367ven",hover:"ju367veo",active:"ju367vep"},defaultClass:"ju367ven"},selectedOption:{conditions:{base:"ju367veq",hover:"ju367ver",active:"ju367ves"},defaultClass:"ju367veq"},selectedWallet:{conditions:{base:"ju367vet",hover:"ju367veu",active:"ju367vev"},defaultClass:"ju367vet"},walletLogo:{conditions:{base:"ju367vew",hover:"ju367vex",active:"ju367vey"},defaultClass:"ju367vew"}}},color:{values:{accentColor:{conditions:{base:"ju367vez",hover:"ju367vf0",active:"ju367vf1"},defaultClass:"ju367vez"},accentColorForeground:{conditions:{base:"ju367vf2",hover:"ju367vf3",active:"ju367vf4"},defaultClass:"ju367vf2"},actionButtonBorder:{conditions:{base:"ju367vf5",hover:"ju367vf6",active:"ju367vf7"},defaultClass:"ju367vf5"},actionButtonBorderMobile:{conditions:{base:"ju367vf8",hover:"ju367vf9",active:"ju367vfa"},defaultClass:"ju367vf8"},actionButtonSecondaryBackground:{conditions:{base:"ju367vfb",hover:"ju367vfc",active:"ju367vfd"},defaultClass:"ju367vfb"},closeButton:{conditions:{base:"ju367vfe",hover:"ju367vff",active:"ju367vfg"},defaultClass:"ju367vfe"},closeButtonBackground:{conditions:{base:"ju367vfh",hover:"ju367vfi",active:"ju367vfj"},defaultClass:"ju367vfh"},connectButtonBackground:{conditions:{base:"ju367vfk",hover:"ju367vfl",active:"ju367vfm"},defaultClass:"ju367vfk"},connectButtonBackgroundError:{conditions:{base:"ju367vfn",hover:"ju367vfo",active:"ju367vfp"},defaultClass:"ju367vfn"},connectButtonInnerBackground:{conditions:{base:"ju367vfq",hover:"ju367vfr",active:"ju367vfs"},defaultClass:"ju367vfq"},connectButtonText:{conditions:{base:"ju367vft",hover:"ju367vfu",active:"ju367vfv"},defaultClass:"ju367vft"},connectButtonTextError:{conditions:{base:"ju367vfw",hover:"ju367vfx",active:"ju367vfy"},defaultClass:"ju367vfw"},connectionIndicator:{conditions:{base:"ju367vfz",hover:"ju367vg0",active:"ju367vg1"},defaultClass:"ju367vfz"},downloadBottomCardBackground:{conditions:{base:"ju367vg2",hover:"ju367vg3",active:"ju367vg4"},defaultClass:"ju367vg2"},downloadTopCardBackground:{conditions:{base:"ju367vg5",hover:"ju367vg6",active:"ju367vg7"},defaultClass:"ju367vg5"},error:{conditions:{base:"ju367vg8",hover:"ju367vg9",active:"ju367vga"},defaultClass:"ju367vg8"},generalBorder:{conditions:{base:"ju367vgb",hover:"ju367vgc",active:"ju367vgd"},defaultClass:"ju367vgb"},generalBorderDim:{conditions:{base:"ju367vge",hover:"ju367vgf",active:"ju367vgg"},defaultClass:"ju367vge"},menuItemBackground:{conditions:{base:"ju367vgh",hover:"ju367vgi",active:"ju367vgj"},defaultClass:"ju367vgh"},modalBackdrop:{conditions:{base:"ju367vgk",hover:"ju367vgl",active:"ju367vgm"},defaultClass:"ju367vgk"},modalBackground:{conditions:{base:"ju367vgn",hover:"ju367vgo",active:"ju367vgp"},defaultClass:"ju367vgn"},modalBorder:{conditions:{base:"ju367vgq",hover:"ju367vgr",active:"ju367vgs"},defaultClass:"ju367vgq"},modalText:{conditions:{base:"ju367vgt",hover:"ju367vgu",active:"ju367vgv"},defaultClass:"ju367vgt"},modalTextDim:{conditions:{base:"ju367vgw",hover:"ju367vgx",active:"ju367vgy"},defaultClass:"ju367vgw"},modalTextSecondary:{conditions:{base:"ju367vgz",hover:"ju367vh0",active:"ju367vh1"},defaultClass:"ju367vgz"},profileAction:{conditions:{base:"ju367vh2",hover:"ju367vh3",active:"ju367vh4"},defaultClass:"ju367vh2"},profileActionHover:{conditions:{base:"ju367vh5",hover:"ju367vh6",active:"ju367vh7"},defaultClass:"ju367vh5"},profileForeground:{conditions:{base:"ju367vh8",hover:"ju367vh9",active:"ju367vha"},defaultClass:"ju367vh8"},selectedOptionBorder:{conditions:{base:"ju367vhb",hover:"ju367vhc",active:"ju367vhd"},defaultClass:"ju367vhb"},standby:{conditions:{base:"ju367vhe",hover:"ju367vhf",active:"ju367vhg"},defaultClass:"ju367vhe"}}}}},{conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0},styles:{alignItems:{values:{"flex-start":{conditions:{smallScreen:"ju367v0",largeScreen:"ju367v1"},defaultClass:"ju367v0"},"flex-end":{conditions:{smallScreen:"ju367v2",largeScreen:"ju367v3"},defaultClass:"ju367v2"},center:{conditions:{smallScreen:"ju367v4",largeScreen:"ju367v5"},defaultClass:"ju367v4"}}},display:{values:{none:{conditions:{smallScreen:"ju367v6",largeScreen:"ju367v7"},defaultClass:"ju367v6"},block:{conditions:{smallScreen:"ju367v8",largeScreen:"ju367v9"},defaultClass:"ju367v8"},flex:{conditions:{smallScreen:"ju367va",largeScreen:"ju367vb"},defaultClass:"ju367va"},inline:{conditions:{smallScreen:"ju367vc",largeScreen:"ju367vd"},defaultClass:"ju367vc"}}}}},{conditions:void 0,styles:{margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},alignSelf:{values:{"flex-start":{defaultClass:"ju367ve"},"flex-end":{defaultClass:"ju367vf"},center:{defaultClass:"ju367vg"}}},backgroundSize:{values:{cover:{defaultClass:"ju367vh"}}},borderRadius:{values:{1:{defaultClass:"ju367vi"},6:{defaultClass:"ju367vj"},10:{defaultClass:"ju367vk"},13:{defaultClass:"ju367vl"},actionButton:{defaultClass:"ju367vm"},connectButton:{defaultClass:"ju367vn"},menuButton:{defaultClass:"ju367vo"},modal:{defaultClass:"ju367vp"},modalMobile:{defaultClass:"ju367vq"},"25%":{defaultClass:"ju367vr"},full:{defaultClass:"ju367vs"}}},borderStyle:{values:{solid:{defaultClass:"ju367vt"}}},borderWidth:{values:{0:{defaultClass:"ju367vu"},1:{defaultClass:"ju367vv"},2:{defaultClass:"ju367vw"},4:{defaultClass:"ju367vx"}}},cursor:{values:{pointer:{defaultClass:"ju367vy"},none:{defaultClass:"ju367vz"}}},pointerEvents:{values:{none:{defaultClass:"ju367v10"},all:{defaultClass:"ju367v11"}}},minHeight:{values:{8:{defaultClass:"ju367v12"},44:{defaultClass:"ju367v13"}}},flexDirection:{values:{row:{defaultClass:"ju367v14"},column:{defaultClass:"ju367v15"}}},fontFamily:{values:{body:{defaultClass:"ju367v16"}}},fontSize:{values:{12:{defaultClass:"ju367v17"},13:{defaultClass:"ju367v18"},14:{defaultClass:"ju367v19"},16:{defaultClass:"ju367v1a"},18:{defaultClass:"ju367v1b"},20:{defaultClass:"ju367v1c"},23:{defaultClass:"ju367v1d"}}},fontWeight:{values:{regular:{defaultClass:"ju367v1e"},medium:{defaultClass:"ju367v1f"},semibold:{defaultClass:"ju367v1g"},bold:{defaultClass:"ju367v1h"},heavy:{defaultClass:"ju367v1i"}}},gap:{values:{0:{defaultClass:"ju367v1j"},1:{defaultClass:"ju367v1k"},2:{defaultClass:"ju367v1l"},3:{defaultClass:"ju367v1m"},4:{defaultClass:"ju367v1n"},5:{defaultClass:"ju367v1o"},6:{defaultClass:"ju367v1p"},8:{defaultClass:"ju367v1q"},10:{defaultClass:"ju367v1r"},12:{defaultClass:"ju367v1s"},14:{defaultClass:"ju367v1t"},16:{defaultClass:"ju367v1u"},18:{defaultClass:"ju367v1v"},20:{defaultClass:"ju367v1w"},24:{defaultClass:"ju367v1x"},28:{defaultClass:"ju367v1y"},32:{defaultClass:"ju367v1z"},36:{defaultClass:"ju367v20"},44:{defaultClass:"ju367v21"},64:{defaultClass:"ju367v22"},"-1":{defaultClass:"ju367v23"}}},height:{values:{1:{defaultClass:"ju367v24"},2:{defaultClass:"ju367v25"},4:{defaultClass:"ju367v26"},8:{defaultClass:"ju367v27"},12:{defaultClass:"ju367v28"},20:{defaultClass:"ju367v29"},24:{defaultClass:"ju367v2a"},28:{defaultClass:"ju367v2b"},30:{defaultClass:"ju367v2c"},32:{defaultClass:"ju367v2d"},34:{defaultClass:"ju367v2e"},36:{defaultClass:"ju367v2f"},40:{defaultClass:"ju367v2g"},44:{defaultClass:"ju367v2h"},48:{defaultClass:"ju367v2i"},54:{defaultClass:"ju367v2j"},60:{defaultClass:"ju367v2k"},200:{defaultClass:"ju367v2l"},full:{defaultClass:"ju367v2m"},max:{defaultClass:"ju367v2n"}}},justifyContent:{values:{"flex-start":{defaultClass:"ju367v2o"},"flex-end":{defaultClass:"ju367v2p"},center:{defaultClass:"ju367v2q"},"space-between":{defaultClass:"ju367v2r"},"space-around":{defaultClass:"ju367v2s"}}},textAlign:{values:{left:{defaultClass:"ju367v2t"},center:{defaultClass:"ju367v2u"},inherit:{defaultClass:"ju367v2v"}}},marginBottom:{values:{0:{defaultClass:"ju367v2w"},1:{defaultClass:"ju367v2x"},2:{defaultClass:"ju367v2y"},3:{defaultClass:"ju367v2z"},4:{defaultClass:"ju367v30"},5:{defaultClass:"ju367v31"},6:{defaultClass:"ju367v32"},8:{defaultClass:"ju367v33"},10:{defaultClass:"ju367v34"},12:{defaultClass:"ju367v35"},14:{defaultClass:"ju367v36"},16:{defaultClass:"ju367v37"},18:{defaultClass:"ju367v38"},20:{defaultClass:"ju367v39"},24:{defaultClass:"ju367v3a"},28:{defaultClass:"ju367v3b"},32:{defaultClass:"ju367v3c"},36:{defaultClass:"ju367v3d"},44:{defaultClass:"ju367v3e"},64:{defaultClass:"ju367v3f"},"-1":{defaultClass:"ju367v3g"}}},marginLeft:{values:{0:{defaultClass:"ju367v3h"},1:{defaultClass:"ju367v3i"},2:{defaultClass:"ju367v3j"},3:{defaultClass:"ju367v3k"},4:{defaultClass:"ju367v3l"},5:{defaultClass:"ju367v3m"},6:{defaultClass:"ju367v3n"},8:{defaultClass:"ju367v3o"},10:{defaultClass:"ju367v3p"},12:{defaultClass:"ju367v3q"},14:{defaultClass:"ju367v3r"},16:{defaultClass:"ju367v3s"},18:{defaultClass:"ju367v3t"},20:{defaultClass:"ju367v3u"},24:{defaultClass:"ju367v3v"},28:{defaultClass:"ju367v3w"},32:{defaultClass:"ju367v3x"},36:{defaultClass:"ju367v3y"},44:{defaultClass:"ju367v3z"},64:{defaultClass:"ju367v40"},"-1":{defaultClass:"ju367v41"}}},marginRight:{values:{0:{defaultClass:"ju367v42"},1:{defaultClass:"ju367v43"},2:{defaultClass:"ju367v44"},3:{defaultClass:"ju367v45"},4:{defaultClass:"ju367v46"},5:{defaultClass:"ju367v47"},6:{defaultClass:"ju367v48"},8:{defaultClass:"ju367v49"},10:{defaultClass:"ju367v4a"},12:{defaultClass:"ju367v4b"},14:{defaultClass:"ju367v4c"},16:{defaultClass:"ju367v4d"},18:{defaultClass:"ju367v4e"},20:{defaultClass:"ju367v4f"},24:{defaultClass:"ju367v4g"},28:{defaultClass:"ju367v4h"},32:{defaultClass:"ju367v4i"},36:{defaultClass:"ju367v4j"},44:{defaultClass:"ju367v4k"},64:{defaultClass:"ju367v4l"},"-1":{defaultClass:"ju367v4m"}}},marginTop:{values:{0:{defaultClass:"ju367v4n"},1:{defaultClass:"ju367v4o"},2:{defaultClass:"ju367v4p"},3:{defaultClass:"ju367v4q"},4:{defaultClass:"ju367v4r"},5:{defaultClass:"ju367v4s"},6:{defaultClass:"ju367v4t"},8:{defaultClass:"ju367v4u"},10:{defaultClass:"ju367v4v"},12:{defaultClass:"ju367v4w"},14:{defaultClass:"ju367v4x"},16:{defaultClass:"ju367v4y"},18:{defaultClass:"ju367v4z"},20:{defaultClass:"ju367v50"},24:{defaultClass:"ju367v51"},28:{defaultClass:"ju367v52"},32:{defaultClass:"ju367v53"},36:{defaultClass:"ju367v54"},44:{defaultClass:"ju367v55"},64:{defaultClass:"ju367v56"},"-1":{defaultClass:"ju367v57"}}},maxWidth:{values:{1:{defaultClass:"ju367v58"},2:{defaultClass:"ju367v59"},4:{defaultClass:"ju367v5a"},8:{defaultClass:"ju367v5b"},12:{defaultClass:"ju367v5c"},20:{defaultClass:"ju367v5d"},24:{defaultClass:"ju367v5e"},28:{defaultClass:"ju367v5f"},30:{defaultClass:"ju367v5g"},32:{defaultClass:"ju367v5h"},34:{defaultClass:"ju367v5i"},36:{defaultClass:"ju367v5j"},40:{defaultClass:"ju367v5k"},44:{defaultClass:"ju367v5l"},48:{defaultClass:"ju367v5m"},54:{defaultClass:"ju367v5n"},60:{defaultClass:"ju367v5o"},200:{defaultClass:"ju367v5p"},full:{defaultClass:"ju367v5q"},max:{defaultClass:"ju367v5r"}}},minWidth:{values:{1:{defaultClass:"ju367v5s"},2:{defaultClass:"ju367v5t"},4:{defaultClass:"ju367v5u"},8:{defaultClass:"ju367v5v"},12:{defaultClass:"ju367v5w"},20:{defaultClass:"ju367v5x"},24:{defaultClass:"ju367v5y"},28:{defaultClass:"ju367v5z"},30:{defaultClass:"ju367v60"},32:{defaultClass:"ju367v61"},34:{defaultClass:"ju367v62"},36:{defaultClass:"ju367v63"},40:{defaultClass:"ju367v64"},44:{defaultClass:"ju367v65"},48:{defaultClass:"ju367v66"},54:{defaultClass:"ju367v67"},60:{defaultClass:"ju367v68"},200:{defaultClass:"ju367v69"},full:{defaultClass:"ju367v6a"},max:{defaultClass:"ju367v6b"}}},overflow:{values:{hidden:{defaultClass:"ju367v6c"}}},paddingBottom:{values:{0:{defaultClass:"ju367v6d"},1:{defaultClass:"ju367v6e"},2:{defaultClass:"ju367v6f"},3:{defaultClass:"ju367v6g"},4:{defaultClass:"ju367v6h"},5:{defaultClass:"ju367v6i"},6:{defaultClass:"ju367v6j"},8:{defaultClass:"ju367v6k"},10:{defaultClass:"ju367v6l"},12:{defaultClass:"ju367v6m"},14:{defaultClass:"ju367v6n"},16:{defaultClass:"ju367v6o"},18:{defaultClass:"ju367v6p"},20:{defaultClass:"ju367v6q"},24:{defaultClass:"ju367v6r"},28:{defaultClass:"ju367v6s"},32:{defaultClass:"ju367v6t"},36:{defaultClass:"ju367v6u"},44:{defaultClass:"ju367v6v"},64:{defaultClass:"ju367v6w"},"-1":{defaultClass:"ju367v6x"}}},paddingLeft:{values:{0:{defaultClass:"ju367v6y"},1:{defaultClass:"ju367v6z"},2:{defaultClass:"ju367v70"},3:{defaultClass:"ju367v71"},4:{defaultClass:"ju367v72"},5:{defaultClass:"ju367v73"},6:{defaultClass:"ju367v74"},8:{defaultClass:"ju367v75"},10:{defaultClass:"ju367v76"},12:{defaultClass:"ju367v77"},14:{defaultClass:"ju367v78"},16:{defaultClass:"ju367v79"},18:{defaultClass:"ju367v7a"},20:{defaultClass:"ju367v7b"},24:{defaultClass:"ju367v7c"},28:{defaultClass:"ju367v7d"},32:{defaultClass:"ju367v7e"},36:{defaultClass:"ju367v7f"},44:{defaultClass:"ju367v7g"},64:{defaultClass:"ju367v7h"},"-1":{defaultClass:"ju367v7i"}}},paddingRight:{values:{0:{defaultClass:"ju367v7j"},1:{defaultClass:"ju367v7k"},2:{defaultClass:"ju367v7l"},3:{defaultClass:"ju367v7m"},4:{defaultClass:"ju367v7n"},5:{defaultClass:"ju367v7o"},6:{defaultClass:"ju367v7p"},8:{defaultClass:"ju367v7q"},10:{defaultClass:"ju367v7r"},12:{defaultClass:"ju367v7s"},14:{defaultClass:"ju367v7t"},16:{defaultClass:"ju367v7u"},18:{defaultClass:"ju367v7v"},20:{defaultClass:"ju367v7w"},24:{defaultClass:"ju367v7x"},28:{defaultClass:"ju367v7y"},32:{defaultClass:"ju367v7z"},36:{defaultClass:"ju367v80"},44:{defaultClass:"ju367v81"},64:{defaultClass:"ju367v82"},"-1":{defaultClass:"ju367v83"}}},paddingTop:{values:{0:{defaultClass:"ju367v84"},1:{defaultClass:"ju367v85"},2:{defaultClass:"ju367v86"},3:{defaultClass:"ju367v87"},4:{defaultClass:"ju367v88"},5:{defaultClass:"ju367v89"},6:{defaultClass:"ju367v8a"},8:{defaultClass:"ju367v8b"},10:{defaultClass:"ju367v8c"},12:{defaultClass:"ju367v8d"},14:{defaultClass:"ju367v8e"},16:{defaultClass:"ju367v8f"},18:{defaultClass:"ju367v8g"},20:{defaultClass:"ju367v8h"},24:{defaultClass:"ju367v8i"},28:{defaultClass:"ju367v8j"},32:{defaultClass:"ju367v8k"},36:{defaultClass:"ju367v8l"},44:{defaultClass:"ju367v8m"},64:{defaultClass:"ju367v8n"},"-1":{defaultClass:"ju367v8o"}}},position:{values:{absolute:{defaultClass:"ju367v8p"},fixed:{defaultClass:"ju367v8q"},relative:{defaultClass:"ju367v8r"}}},right:{values:{0:{defaultClass:"ju367v8s"}}},transition:{values:{default:{defaultClass:"ju367v8t"},transform:{defaultClass:"ju367v8u"}}},userSelect:{values:{none:{defaultClass:"ju367v8v"}}},width:{values:{1:{defaultClass:"ju367v8w"},2:{defaultClass:"ju367v8x"},4:{defaultClass:"ju367v8y"},8:{defaultClass:"ju367v8z"},12:{defaultClass:"ju367v90"},20:{defaultClass:"ju367v91"},24:{defaultClass:"ju367v92"},28:{defaultClass:"ju367v93"},30:{defaultClass:"ju367v94"},32:{defaultClass:"ju367v95"},34:{defaultClass:"ju367v96"},36:{defaultClass:"ju367v97"},40:{defaultClass:"ju367v98"},44:{defaultClass:"ju367v99"},48:{defaultClass:"ju367v9a"},54:{defaultClass:"ju367v9b"},60:{defaultClass:"ju367v9c"},200:{defaultClass:"ju367v9d"},full:{defaultClass:"ju367v9e"},max:{defaultClass:"ju367v9f"}}},backdropFilter:{values:{modalOverlay:{defaultClass:"ju367v9g"}}}}}),Ew={colors:{accentColor:"var(--rk-colors-accentColor)",accentColorForeground:"var(--rk-colors-accentColorForeground)",actionButtonBorder:"var(--rk-colors-actionButtonBorder)",actionButtonBorderMobile:"var(--rk-colors-actionButtonBorderMobile)",actionButtonSecondaryBackground:"var(--rk-colors-actionButtonSecondaryBackground)",closeButton:"var(--rk-colors-closeButton)",closeButtonBackground:"var(--rk-colors-closeButtonBackground)",connectButtonBackground:"var(--rk-colors-connectButtonBackground)",connectButtonBackgroundError:"var(--rk-colors-connectButtonBackgroundError)",connectButtonInnerBackground:"var(--rk-colors-connectButtonInnerBackground)",connectButtonText:"var(--rk-colors-connectButtonText)",connectButtonTextError:"var(--rk-colors-connectButtonTextError)",connectionIndicator:"var(--rk-colors-connectionIndicator)",downloadBottomCardBackground:"var(--rk-colors-downloadBottomCardBackground)",downloadTopCardBackground:"var(--rk-colors-downloadTopCardBackground)",error:"var(--rk-colors-error)",generalBorder:"var(--rk-colors-generalBorder)",generalBorderDim:"var(--rk-colors-generalBorderDim)",menuItemBackground:"var(--rk-colors-menuItemBackground)",modalBackdrop:"var(--rk-colors-modalBackdrop)",modalBackground:"var(--rk-colors-modalBackground)",modalBorder:"var(--rk-colors-modalBorder)",modalText:"var(--rk-colors-modalText)",modalTextDim:"var(--rk-colors-modalTextDim)",modalTextSecondary:"var(--rk-colors-modalTextSecondary)",profileAction:"var(--rk-colors-profileAction)",profileActionHover:"var(--rk-colors-profileActionHover)",profileForeground:"var(--rk-colors-profileForeground)",selectedOptionBorder:"var(--rk-colors-selectedOptionBorder)",standby:"var(--rk-colors-standby)"},fonts:{body:"var(--rk-fonts-body)"},radii:{actionButton:"var(--rk-radii-actionButton)",connectButton:"var(--rk-radii-connectButton)",menuButton:"var(--rk-radii-menuButton)",modal:"var(--rk-radii-modal)",modalMobile:"var(--rk-radii-modalMobile)"},shadows:{connectButton:"var(--rk-shadows-connectButton)",dialog:"var(--rk-shadows-dialog)",profileDetailsAction:"var(--rk-shadows-profileDetailsAction)",selectedOption:"var(--rk-shadows-selectedOption)",selectedWallet:"var(--rk-shadows-selectedWallet)",walletLogo:"var(--rk-shadows-walletLogo)"},blurs:{modalOverlay:"var(--rk-blurs-modalOverlay)"}},YC0={shrink:"_12cbo8i6",shrinkSm:"_12cbo8i7"},XC0="_12cbo8i3 ju367v8r",um0={grow:"_12cbo8i4",growLg:"_12cbo8i5"};function ue({active:u,hover:e}){return[XC0,e&&um0[e],YC0[u]]}var mM=w.createContext(null);function em0(){var u;const{adapter:e}=(u=w.useContext(mM))!=null?u:{};if(!e)throw new Error("No authentication adapter found");return e}function jE(){var u;const e=w.useContext(mM);return(u=e==null?void 0:e.status)!=null?u:null}function UA(){const u=jE(),{isConnected:e}=Bt();return e?u&&(u==="loading"||u==="unauthenticated")?u:"connected":"disconnected"}function WA(){return typeof navigator<"u"&&/android/i.test(navigator.userAgent)}function tm0(){return typeof navigator<"u"&&/iPhone|iPod/.test(navigator.userAgent)}function nm0(){return typeof navigator<"u"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function ms(){return tm0()||nm0()}function we(){return WA()||ms()}var rm0="iekbcc0",im0={a:"iekbcca",blockquote:"iekbcc2",button:"iekbcc9",input:"iekbcc8 iekbcc5 iekbcc4",mark:"iekbcc6",ol:"iekbcc1",q:"iekbcc2",select:"iekbcc7 iekbcc5 iekbcc4",table:"iekbcc3",textarea:"iekbcc5 iekbcc4",ul:"iekbcc1"},am0=({reset:u,...e})=>{if(!u)return NC(e);const t=im0[u],n=NC(e);return VR(rm0,t,n)},R=w.forwardRef(({as:u="div",className:e,testId:t,...n},r)=>{const i={},a={};for(const s in n)NC.properties.has(s)?i[s]=n[s]:a[s]=n[s];const o=am0({reset:typeof u=="string"?u:"div",...i});return w.createElement(u,{className:VR(o,e),...a,"data-testid":t?`rk-${t.replace(/^rk-/,"")}`:void 0,ref:r})});R.displayName="Box";var bM=new Map,rh=new Map;async function gM(u){const e=rh.get(u);if(e)return e;const t=async()=>u().then(async r=>(bM.set(u,r),r)),n=t().catch(r=>t().catch(i=>{rh.delete(u)}));return rh.set(u,n),n}async function gr(...u){return await Promise.all(u.map(e=>typeof e=="function"?gM(e):e))}function om0(){const[,u]=w.useReducer(e=>e+1,0);return u}function qA(u){const e=typeof u=="function"?bM.get(u):void 0,t=om0();return w.useEffect(()=>{typeof u=="function"&&!e&&gM(u).then(t)},[u,e,t]),typeof u=="function"?e:u}function se({alt:u,background:e,borderColor:t,borderRadius:n,boxShadow:r,height:i,src:a,width:o,testId:s}){const f=qA(a),l=f&&/^http/.test(f),[c,d]=w.useReducer(()=>!0,!1);return D.createElement(R,{"aria-label":u,borderRadius:n,boxShadow:r,height:typeof i=="string"?i:void 0,overflow:"hidden",position:"relative",role:"img",style:{background:e,height:typeof i=="number"?i:void 0,width:typeof o=="number"?o:void 0},width:typeof o=="string"?o:void 0,testId:s},D.createElement(R,{...l?{"aria-hidden":!0,as:"img",onLoad:d,src:f}:{backgroundSize:"cover"},height:"full",position:"absolute",style:{touchCallout:"none",transition:"opacity .15s linear",userSelect:"none",...l?{opacity:c?1:0}:{backgroundImage:f?`url(${f})`:void 0,backgroundRepeat:"no-repeat",opacity:f?1:0}},width:"full"}),t?D.createElement(R,{...typeof t=="object"&&"custom"in t?{style:{borderColor:t.custom}}:{borderColor:t},borderRadius:n,borderStyle:"solid",borderWidth:"1",height:"full",position:"relative",width:"full"}):null)}var sm0="_1luule42",fm0="_1luule43",lm0=u=>w.useMemo(()=>`${u}_${Math.round(Math.random()*1e9)}`,[u]),I1=({height:u=21,width:e=21})=>{const t=lm0("spinner");return D.createElement("svg",{className:sm0,fill:"none",height:u,viewBox:"0 0 21 21",width:e,xmlns:"http://www.w3.org/2000/svg"},D.createElement("clipPath",{id:t},D.createElement("path",{d:"M10.5 3C6.35786 3 3 6.35786 3 10.5C3 14.6421 6.35786 18 10.5 18C11.3284 18 12 18.6716 12 19.5C12 20.3284 11.3284 21 10.5 21C4.70101 21 0 16.299 0 10.5C0 4.70101 4.70101 0 10.5 0C16.299 0 21 4.70101 21 10.5C21 11.3284 20.3284 12 19.5 12C18.6716 12 18 11.3284 18 10.5C18 6.35786 14.6421 3 10.5 3Z"})),D.createElement("foreignObject",{clipPath:`url(#${t})`,height:"21",width:"21",x:"0",y:"0"},D.createElement("div",{className:fm0})))},X0=["#FC5C54","#FFD95A","#E95D72","#6A87C8","#5FD0F3","#75C06B","#FFDD86","#5FC6D4","#FF949A","#FF8024","#9BA1A4","#EC66FF","#FF8CBC","#FF9A23","#C5DADB","#A8CE63","#71ABFF","#FFE279","#B6B1B6","#FF6780","#A575FF","#4D82FF","#FFB35A"],pw=[{color:X0[0],emoji:"🌶"},{color:X0[1],emoji:"🤑"},{color:X0[2],emoji:"🐙"},{color:X0[3],emoji:"🫐"},{color:X0[4],emoji:"🐳"},{color:X0[0],emoji:"🤶"},{color:X0[5],emoji:"🌲"},{color:X0[6],emoji:"🌞"},{color:X0[7],emoji:"🐒"},{color:X0[8],emoji:"🐵"},{color:X0[9],emoji:"🦊"},{color:X0[10],emoji:"🐼"},{color:X0[11],emoji:"🦄"},{color:X0[12],emoji:"🐷"},{color:X0[13],emoji:"🐧"},{color:X0[8],emoji:"🦩"},{color:X0[14],emoji:"👽"},{color:X0[0],emoji:"🎈"},{color:X0[8],emoji:"🍉"},{color:X0[1],emoji:"🎉"},{color:X0[15],emoji:"🐲"},{color:X0[16],emoji:"🌎"},{color:X0[17],emoji:"🍊"},{color:X0[18],emoji:"🐭"},{color:X0[19],emoji:"🍣"},{color:X0[1],emoji:"🐥"},{color:X0[20],emoji:"👾"},{color:X0[15],emoji:"🥦"},{color:X0[0],emoji:"👹"},{color:X0[17],emoji:"🙀"},{color:X0[4],emoji:"⛱"},{color:X0[21],emoji:"⛵️"},{color:X0[17],emoji:"🥳"},{color:X0[8],emoji:"🤯"},{color:X0[22],emoji:"🤠"}];function cm0(u){let e=0;if(u.length===0)return e;for(let t=0;t{const[n,r]=w.useState(!1);w.useEffect(()=>{if(e){const o=new Image;o.src=e,o.onload=()=>r(!0)}},[e]);const{color:i,emoji:a}=w.useMemo(()=>dm0(u),[u]);return e?n?D.createElement(R,{backgroundSize:"cover",borderRadius:"full",position:"absolute",style:{backgroundImage:`url(${e})`,backgroundPosition:"center",height:t,width:t}}):D.createElement(R,{alignItems:"center",backgroundSize:"cover",borderRadius:"full",color:"modalText",display:"flex",justifyContent:"center",position:"absolute",style:{height:t,width:t}},D.createElement(I1,null)):D.createElement(R,{alignItems:"center",display:"flex",justifyContent:"center",overflow:"hidden",style:{...!e&&{backgroundColor:i},height:t,width:t}},a)},AM=Em0,yM=w.createContext(AM);function vM({address:u,imageUrl:e,loading:t,size:n}){const r=w.useContext(yM);return D.createElement(R,{"aria-hidden":!0,borderRadius:"full",overflow:"hidden",position:"relative",style:{height:`${n}px`,width:`${n}px`},userSelect:"none"},D.createElement(R,{alignItems:"center",borderRadius:"full",display:"flex",justifyContent:"center",overflow:"hidden",position:"absolute",style:{fontSize:`${Math.round(n*.55)}px`,height:`${n}px`,transform:t?"scale(0.72)":void 0,transition:".25s ease",transitionDelay:t?void 0:".1s",width:`${n}px`,willChange:"transform"},userSelect:"none"},D.createElement(r,{address:u,ensImage:e,size:n})),t&&D.createElement(R,{color:"accentColor",display:"flex",height:"full",position:"absolute",width:"full"},D.createElement(I1,{height:"100%",width:"100%"})))}var hw=()=>D.createElement("svg",{fill:"none",height:"7",width:"14",xmlns:"http://www.w3.org/2000/svg"},D.createElement("path",{d:"M12.75 1.54001L8.51647 5.0038C7.77974 5.60658 6.72026 5.60658 5.98352 5.0038L1.75 1.54001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",xmlns:"http://www.w3.org/2000/svg"})),pm0={label:"اتصال المحفظة"},hm0={title:"ما هو المحفظة؟",description:"تُستخدم المحفظة لإرسال واستلام وتخزين وعرض الأصول الرقمية. إنها أيضاً طريقة جديدة لتسجيل الدخول، دون الحاجة إلى إنشاء حسابات وكلمات مرور جديدة على كل موقع.",digital_asset:{title:"دار لأصولك الرقمية",description:"تُستخدم المحافظ لإرسال واستلام وتخزين وعرض الأصول الرقمية مثل إيثيريوم والـ NFTs."},login:{title:"طريقة جديدة لتسجيل الدخول",description:"بدلاً من إنشاء حسابات وكلمات مرور جديدة على كل موقع، فقط قم بتوصيل محفظتك."},get:{label:"احصل على محفظة"},learn_more:{label:"تعلم المزيد"}},Cm0={label:"تحقق من حسابك",description:"لإنهاء الاتصال، يجب عليك توقيع رسالة في محفظتك للتحقق من أنك صاحب هذا الحساب.",message:{send:"إرسال الرسالة",preparing:"جارٍ تجهيز الرسالة...",cancel:"إلغاء",preparing_error:"خطأ في تجهيز الرسالة، يرجى المحاولة مرة أخرى!"},signature:{waiting:"انتظار التوقيع...",verifying:"جار التحقق من التوقيع...",signing_error:"خطأ في توقيع الرسالة، يرجى المحاولة مرة أخرى!",verifying_error:"خطأ في التحقق من التوقيع، يرجى المحاولة مرة أخرى!",oops_error:"عذرًا، حدث خطأ ما!"}},mm0={label:"اتصل",title:"اتصال بالمحفظة",new_to_ethereum:{description:"جديد في محافظ Ethereum؟",learn_more:{label:"تعلم المزيد"}},learn_more:{label:"أعرف أكثر"},recent:"الأخير",status:{opening:"جار فتح %{wallet}...",not_installed:"%{wallet} غير مثبت",not_available:"%{wallet} غير متاح",confirm:"تأكيد الاتصال في الامتداد"},secondary_action:{get:{description:"لا يوجد لديك %{wallet}؟",label:"احصل"},install:{label:"تثبيت"},retry:{label:"أعد المحاولة"}},walletconnect:{description:{full:"هل تحتاج إلى النافذة الرسمية لـ WalletConnect؟",compact:"هل تحتاج إلى النافذة لـ WalletConnect؟"},open:{label:"افتح"}}},bm0={title:"المسح باستخدام %{wallet}",fallback_title:"المسح باستخدام هاتفك"},gm0={recommended:"موصى به",other:"آخر",popular:"شائع",more:"المزيد",others:"الآخرين"},Am0={title:"احصل على محفظة",action:{label:"احصل"},mobile:{description:"محفظة الموبايل"},extension:{description:"ملحق المتصفح"},mobile_and_extension:{description:"محفظة موبايل وملحق"},mobile_and_desktop:{description:"محفظة الموبايل والكمبيوتر"},looking_for:{title:"ليست هذه هي ما تبحث عنه؟",mobile:{description:"حدد محفظة على الشاشة الرئيسية للبدء باستخدام موفر محفظة مختلف."},desktop:{compact_description:"حدد محفظة على الشاشة الرئيسية للبدء باستخدام موفر محفظة مختلف.",wide_description:"حدد محفظة على اليسار للبدء باستخدام موفر محفظة مختلف."}}},ym0={title:"ابدأ مع %{wallet}",short_title:"احصل على %{wallet}",mobile:{title:"%{wallet} للجوال",description:"استخدم محفظة الموبايل لاستكشاف عالم Ethereum.",download:{label:"احصل على التطبيق"}},extension:{title:"%{wallet} لـ %{browser}",description:"وصول لمحفظتك مباشرة من متصفح الويب المفضل لديك.",download:{label:"أضف إلى %{browser}"}},desktop:{title:"%{wallet} لـ %{platform}",description:"قم بالوصول إلى محفظتك بشكل أصلي من كمبيوترك القوي.",download:{label:"أضف إلى %{platform}"}}},vm0={title:"قم بالتثبيت %{wallet}",description:"استخدم هاتفك للتحميل على iOS أو Android",continue:{label:"استمر"}},Bm0={mobile:{connect:{label:"اتصل"},learn_more:{label:"تعلم المزيد"}},extension:{refresh:{label:"تحديث"},learn_more:{label:"تعلم المزيد"}},desktop:{connect:{label:"اتصل"},learn_more:{label:"تعلم المزيد"}}},Fm0={title:"تبديل الشبكات",wrong_network:"تم اكتشاف شبكة غير صحيحة، قم بالتبديل أو القطع للمتابعة.",confirm:"التأكيد في المحفظة",switching_not_supported:"محفظتك لا تدعم التبديل بين الشبكات من %{appName}. جرب التبديل بين الشبكات من داخل المحفظة بدلاً من ذلك.",switching_not_supported_fallback:"محفظتك لا تدعم تبديل الشبكات من هذا التطبيق. حاول تبديل الشبكات من داخل المحفظة بدلاً من ذلك.",disconnect:"قطع الاتصال",connected:"متصل"},Dm0={disconnect:{label:"قطع الاتصال"},copy_address:{label:"نسخ العنوان",copied:"تم النسخ!"},explorer:{label:"عرض المزيد على المستكشف"},transactions:{description:"%{appName} ستظهر المعاملات هنا...",description_fallback:"سوف تظهر معاملاتك هنا...",recent:{title:"المعاملات الأخيرة"},clear:{label:"مسح الكل"}}},wm0={argent:{qr_code:{step1:{description:"ضع أرجنت على شاشتك الرئيسية للوصول السريع إلى محفظتك.",title:"افتح تطبيق Argent"},step2:{description:"أنشئ محفظة واسم مستخدم، أو استورد محفظة موجودة بالفعل.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك.",title:"اضغط على زر فحص الكود الشريطي"}}},bifrost:{qr_code:{step1:{description:"نوصي بوضع محفظة Bifrost على الشاشة الرئيسية للوصول الأسرع.",title:"افتح تطبيق محفظة Bifrost"},step2:{description:"أنشئ أو استورد محفظة باستخدام عبارة الاستعادة الخاصة بك.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، سيظهر موجه الاتصال لك لتوصيل محفظتك.",title:"اضغط على زر المسح"}}},bitget:{qr_code:{step1:{description:"نوصي بوضع محفظة Bitget على الشاشة الرئيسية للوصول الأسرع.",title:"افتح تطبيق محفظة Bitget"},step2:{description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك موجه اتصال لتوصيل محفظتك.",title:"اضغط على زر الفحص"}},extension:{step1:{description:"نوصي بتثبيت محفظة Bitget على شريط المهام للوصول الأسرع إلى محفظتك.",title:"قم بتثبيت امتداد محفظة Bitget"},step2:{description:"تأكد من نسخ محفظتك احتياطيًا باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"أنشئ محفظة أو استورد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد.",title:"قم بتحديث متصفحك"}}},bitski:{extension:{step1:{description:"نوصي بتثبيت Bitski على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.",title:"قم بتثبيت امتداد Bitski"},step2:{description:"تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد إعداد المحفظة الخاصة بك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"تحديث المتصفح الخاص بك"}}},coin98:{qr_code:{step1:{description:"نوصي بوضع محفظة Coin98 على الشاشة الرئيسية لسرعة الوصول إلى محفظتك.",title:"افتح تطبيق محفظة Coin98"},step2:{description:"يمكنك بسهولة نسخ محفظتك الاحتياطي باستخدام ميزة النسخ الاحتياطي على هاتفك.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك مطالبة بالاتصال لتوصيل محفظتك.",title:"اضغط على زر WalletConnect"}},extension:{step1:{description:"انقر في الجزء العلوي الأيمن من المتصفح وثبت Coin98 Wallet لسهولة الوصول.",title:"قم بتثبيت امتداد Coin98 Wallet"},step2:{description:"أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل.",title:"أنشئ محفظة أو استورد محفظة"},step3:{description:"بمجرد إعداد Coin98 Wallet ، انقر أدناه لتحديث المتصفح وتحميل الامتداد.",title:"تحديث المتصفح الخاص بك"}}},coinbase:{qr_code:{step1:{description:"نوصي بوضع Coinbase Wallet على الشاشة الرئيسية لسهولة الوصول.",title:"افتح تطبيق Coinbase Wallet"},step2:{description:"يمكنك بسهولة النسخ الاحتياطي لمحفظتك باستخدام ميزة النسخ الاحتياطي السحابي.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك مطالبة بالاتصال لتوصيل محفظتك.",title:"اضغط على زر الفحص"}},extension:{step1:{description:"نوصي بتثبيت محفظة Coinbase على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.",title:"تثبيت امتداد محفظة Coinbase"},step2:{description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد المحفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"تحديث المتصفح الخاص بك"}}},core:{qr_code:{step1:{description:"نوصي بوضع Core على الشاشة الرئيسية للوصول السريع إلى محفظتك.",title:"افتح تطبيق Core"},step2:{description:"يمكنك بسهولة النسخ الاحتياطي لمحفظتك باستخدام ميزة النسخ الاحتياطي على هاتفك.",title:"إنشاء أو استيراد المحفظة"},step3:{description:"بعد الفحص، سيظهر لك موجه الاتصال لتوصيل محفظتك.",title:"اضغط على زر WalletConnect"}},extension:{step1:{description:"نوصي بتثبيت Core على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.",title:"قم بتثبيت امتداد Core"},step2:{description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد.",title:"تحديث متصفحك"}}},fox:{qr_code:{step1:{description:"نوصي بوضع FoxWallet على شاشتك الرئيسية للوصول الأسرع.",title:"افتح تطبيق FoxWallet"},step2:{description:"تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء محفظة أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك موجه الاتصال لتتمكن من اتصال محفظتك.",title:"اضغط على زر الفحص"}}},frontier:{qr_code:{step1:{description:"نوصي بوضع Frontier Wallet على شاشتك الرئيسية للوصول الأسرع.",title:"افتح تطبيق Frontier Wallet"},step2:{description:"تأكد من نسخ محفظتك احتياطيا باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك موجه الاتصال لربط محفظتك.",title:"اضغط على زر الفحص"}},extension:{step1:{description:"نوصي بتثبيت محفظة Frontier على شريط المهام للوصول الأسرع إلى محفظتك.",title:"تثبيت امتداد محفظة Frontier"},step2:{description:"تأكد من نسخ محفظتك احتياطيا باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"قم بتحديث المتصفح الخاص بك"}}},im_token:{qr_code:{step1:{title:"افتح تطبيق imToken",description:"ضع تطبيق imToken على الشاشة الرئيسية للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"قم بإنشاء محفظة جديدة أو استيراد واحدة موجودة."},step3:{title:"اضغط على أيقونة الماسح الضوئي في الزاوية العليا اليمنى",description:"اختر الاتصال الجديد، ثم امسح الرمز الشريطي وأكد الموجه للاتصال."}}},metamask:{qr_code:{step1:{title:"افتح تطبيق MetaMask",description:"نوصي بوضع MetaMask على الشاشة الرئيسية لديك للوصول بشكل أسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ الحفاظ على محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، ستظهر لك موجه اتصال لتوصيل محفظتك."}},extension:{step1:{title:"قم بتثبيت امتداد MetaMask",description:"نوصي بتثبيت MetaMask في شريط المهام للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"تحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}}},okx:{qr_code:{step1:{title:"افتح تطبيق محفظة OKX",description:"نوصي بوضع محفظة OKX على الشاشة الرئيسية للوصول الأسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، ستظهر لك مطالبة بالاتصال لتوصيل محفظتك."}},extension:{step1:{title:"قم بتثبيت امتداد محفظة OKX",description:"نوصي بتثبيت محفظة OKX على شريط المهام للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من حفظ نسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"قم بتحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},omni:{qr_code:{step1:{title:"افتح تطبيق Omni",description:"أضف Omni إلى شاشتك الرئيسية للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"إنشاء محفظة جديدة أو استيراد واحدة موجودة."},step3:{title:"اضغط على أيقونة الرمز الاستجابة السريعة وامسحها",description:"اضغط على الرمز QR على الشاشة الرئيسية الخاصة بك، امسح الرمز وأكد الموافقة للاتصال."}}},token_pocket:{qr_code:{step1:{title:"افتح تطبيق TokenPocket",description:"نوصي بوضع TokenPocket على الشاشة الرئيسية للوصول السريع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، ستظهر لك رسالة موجهة للاتصال بمحفظتك."}},extension:{step1:{title:"قم بتثبيت امتداد TokenPocket",description:"نوصي بتثبيت TokenPocket على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"قم بإنشاء محفظة أو استيراد محفظة",description:"تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"قم بتحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},trust:{qr_code:{step1:{title:"افتح تطبيق Trust Wallet",description:"ضع Trust Wallet على الشاشة الرئيسية للوصول السريع إلى محفظتك."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"أنشئ محفظة جديدة أو استورد واحدة موجودة."},step3:{title:"اضغط على WalletConnect في الإعدادات",description:"اختر الاتصال الجديد، ثم امسح الرمز الشريطي QR وأكد الموجه للاتصال."}},extension:{step1:{title:"قم بتثبيت امتداد Trust Wallet",description:"انقر في الجزء العلوي الأيمن من المتصفح وثبت Trust Wallet للوصول بسهولة."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"أنشئ محفظة جديدة أو استورد واحدة موجودة."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد Trust Wallet، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},uniswap:{qr_code:{step1:{title:"افتح تطبيق Uniswap",description:"أضف محفظة Uniswap إلى شاشة الرئيسية للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"قم بإنشاء محفظة جديدة أو استيراد واحدة موجودة."},step3:{title:"اضغط على الأيقونة QR واقرأ الرمز",description:"اضغط على أيقونة QR على الشاشة الرئيسية، قراءة الرمز وتأكيد الرسالة الموجهة للاتصال."}}},zerion:{qr_code:{step1:{title:"افتح تطبيق Zerion",description:"نوصي بوضع Zerion على شاشتك الرئيسية للوصول الأسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من حفظ نسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"اضغط على زر المسح",description:"بعد المسح، سوف يظهر لك نافذة الاتصال لتوصيل محفظتك."}},extension:{step1:{title:"تثبيت امتداد Zerion",description:"نوصي بتثبيت Zerion على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"قم بتحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},rainbow:{qr_code:{step1:{title:"افتح تطبيق Rainbow",description:"نوصي بوضع Rainbow على شاشة البداية للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء محفظة أو استيراد محفظة",description:"يمكنك عمل نسخة احتياطية بسهولة لمحفظتك باستخدام ميزة النسخ الاحتياطي على هاتفك."},step3:{title:"اضغط على الزر الماسح الضوئي",description:"بعد الفحص، سيظهر لك موجه اتصال لربط محفظتك."}}},enkrypt:{extension:{step1:{description:"نوصي بتثبيت محفظة Enkrypt على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.",title:"تثبيت امتداد محفظة Enkrypt"},step2:{description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"أنشئ أو استورد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"حدث المتصفح الخاص بك"}}},frame:{extension:{step1:{description:"نوصي بتعليق Frame على شريط المهام للوصول السريع إلى محفظتك.",title:"ثبت Frame والإضافة المصاحبة"},step2:{description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"أنشئ أو استورد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"حدث المتصفح الخاص بك"}}},one_key:{extension:{step1:{title:"قم بتثبيت امتداد محفظة OneKey",description:"نوصي بتثبيت محفظة OneKey على شريط المهام للوصول السريع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"تحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}}},phantom:{extension:{step1:{title:"قم بتثبيت امتداد Phantom",description:"نوصي بتثبيت Phantom على شريط المهام للوصول الأسهل إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ محفظتك احتياطيًا باستخدام طريقة آمنة. لا تشارك عبارة الاستعادة السرية الخاصة بك مع أي شخص."},step3:{title:"قم بتحديث المتصفح",description:"بمجرد إعداد المحفظة، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},rabby:{extension:{step1:{title:"ثبت امتداد Rabby",description:"نوصي بتثبيت Rabby على شريط المهام للوصول الأسرع إلى محفظتك."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"تأكد من نسخ محفظتك احتياطيًا باستخدام طريقة آمنة. لا تشارك العبارة السرية مع أي شخص."},step3:{title:"قم بتحديث المتصفح",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},safeheron:{extension:{step1:{title:"قم بتثبيت إضافة النواة",description:"نوصي بتثبيت Safeheron على شريط المهام الخاص بك للوصول السريع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ محفظتك بطريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"تحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},taho:{extension:{step1:{title:"تثبيت إضافة Taho",description:"نوصي بتثبيت Taho على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء محفظة أو استيراد محفظة",description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"تحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},talisman:{extension:{step1:{title:"تثبيت إضافة Talisman",description:"نوصي بتثبيت Talisman على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء محفظة Ethereum أو استيرادها",description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارة الاستعادة الخاصة بك مع أي شخص."},step3:{title:"قم بتحديث المستعرض الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المستعرض وتحميل الإضافة."}}},xdefi:{extension:{step1:{title:"قم بتثبيت إضافة XDEFI Wallet",description:"نوصي بتثبيت XDEFI Wallet على شريط المهام للوصول الأسرع إلى محفظتك."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك العبارة السرية الخاصة بك مع أي شخص."},step3:{title:"قم بتحديث المستعرض الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},zeal:{extension:{step1:{title:"قم بتثبيت امتداد Zeal",description:"نوصي بتثبيت Zeal في شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}}},safepal:{extension:{step1:{title:"قم بتثبيت صيغة SafePal Wallet",description:"انقر في أعلى يمين المتصفح وثبت صيغة SafePal Wallet لسهولة الوصول."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظة SafePal، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}},qr_code:{step1:{title:"افتح تطبيق محفظة SafePal",description:"ضع محفظة SafePal على شاشة الرئيسية لسهولة الوصول إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل."},step3:{title:"اضغط على WalletConnect في الإعدادات",description:"اختر الاتصال الجديد، ثم امسح الرمز الشريطي وأكد الموجه للاتصال."}}},desig:{extension:{step1:{title:"قم بتثبيت إضافة Desig",description:"نوصي بتثبيت Desig على شريط المهام الخاص بك للوصول الأسهل إلى محفظتك."},step2:{title:"إنشاء محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}}},subwallet:{extension:{step1:{title:"قم بتثبيت إضافة SubWallet",description:"نوصي بتثبيت SubWallet على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارة الاستعادة الخاصة بك مع أي شخص."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}},qr_code:{step1:{title:"افتح تطبيق SubWallet",description:"نوصي بوضع SubWallet على شاشة الرئيسية الخاصة بك للوصول الأسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك."}}},clv:{extension:{step1:{title:"قم بتثبيت إضافة CLV Wallet",description:"نوصي بتثبيت CLV Wallet على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}},qr_code:{step1:{title:"افتح تطبيق محفظة CLV",description:"نوصي بوضع محفظة CLV على الشاشة الرئيسية للوصول الأسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك."}}},okto:{qr_code:{step1:{title:"افتح تطبيق Okto",description:"أضف Okto إلى الشاشة الرئيسية للوصول السريع"},step2:{title:"أنشئ محفظة MPC",description:"أنشئ حسابًا وقم بإنشاء محفظة"},step3:{title:"اضغط على WalletConnect في الإعدادات",description:"اضغط على أيقونة فحص الشاشة في الجهة العليا اليمنى وأكد الإدخال للاتصال."}}},ledger:{desktop:{step1:{title:"افتح تطبيق Ledger Live",description:"نوصي بوضع Ledger Live على شاشة الرئيسية لديك لسرعة الوصول."},step2:{title:"قم بإعداد Ledger الخاص بك",description:"قم بإعداد Ledger جديد أو قم بالاتصال بواحد موجود ."},step3:{title:"اتصل",description:"بعد المسح، سوف يظهر لك نافذة الاتصال لتوصيل محفظتك."}},qr_code:{step1:{title:"افتح تطبيق Ledger Live",description:"نوصي بوضع Ledger Live على شاشة الرئيسية لديك لسرعة الوصول."},step2:{title:"قم بإعداد Ledger الخاص بك",description:"يمكنك إما المزامنة مع تطبيق سطح المكتب أو توصيل Ledger الخاص بك."},step3:{title:"مسح الرمز",description:"اضغط على WalletConnect ثم انتقل إلى الفحص. بعد المسح، سوف يظهر لك نافذة الاتصال لتوصيل محفظتك."}}}},Cw={connect_wallet:pm0,intro:hm0,sign_in:Cm0,connect:mm0,connect_scan:bm0,connector_group:gm0,get:Am0,get_options:ym0,get_mobile:vm0,get_instructions:Bm0,chains:Fm0,profile:Dm0,wallet_connectors:wm0},xm0={label:"Connect Wallet"},km0={title:"What is a Wallet?",description:"A wallet is used to send, receive, store, and display digital assets. It's also a new way to log in, without needing to create new accounts and passwords on every website.",digital_asset:{title:"A Home for your Digital Assets",description:"Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs."},login:{title:"A New Way to Log In",description:"Instead of creating new accounts and passwords on every website, just connect your wallet."},get:{label:"Get a Wallet"},learn_more:{label:"Learn More"}},_m0={label:"Verify your account",description:"To finish connecting, you must sign a message in your wallet to verify that you are the owner of this account.",message:{send:"Sign message",preparing:"Preparing message...",cancel:"Cancel",preparing_error:"Error preparing message, please retry!"},signature:{waiting:"Waiting for signature...",verifying:"Verifying signature...",signing_error:"Error signing message, please retry!",verifying_error:"Error verifying signature, please retry!",oops_error:"Oops, something went wrong!"}},Sm0={label:"Connect",title:"Connect a Wallet",new_to_ethereum:{description:"New to Ethereum wallets?",learn_more:{label:"Learn More"}},learn_more:{label:"Learn more"},recent:"Recent",status:{opening:"Opening %{wallet}...",connecting:"Connecting",connect_mobile:"Continue in %{wallet}",not_installed:"%{wallet} is not installed",not_available:"%{wallet} is not available",confirm:"Confirm connection in the extension",confirm_mobile:"Accept connection request in the wallet"},secondary_action:{get:{description:"Don't have %{wallet}?",label:"GET"},install:{label:"INSTALL"},retry:{label:"RETRY"}},walletconnect:{description:{full:"Need the official WalletConnect modal?",compact:"Need the WalletConnect modal?"},open:{label:"OPEN"}}},Tm0={title:"Scan with %{wallet}",fallback_title:"Scan with your phone"},Pm0={recommended:"Recommended",other:"Other",popular:"Popular",more:"More",others:"Others"},Im0={title:"Get a Wallet",action:{label:"GET"},mobile:{description:"Mobile Wallet"},extension:{description:"Browser Extension"},mobile_and_extension:{description:"Mobile Wallet and Extension"},mobile_and_desktop:{description:"Mobile and Desktop Wallet"},looking_for:{title:"Not what you're looking for?",mobile:{description:"Select a wallet on the main screen to get started with a different wallet provider."},desktop:{compact_description:"Select a wallet on the main screen to get started with a different wallet provider.",wide_description:"Select a wallet on the left to get started with a different wallet provider."}}},Om0={title:"Get started with %{wallet}",short_title:"Get %{wallet}",mobile:{title:"%{wallet} for Mobile",description:"Use the mobile wallet to explore the world of Ethereum.",download:{label:"Get the app"}},extension:{title:"%{wallet} for %{browser}",description:"Access your wallet right from your favorite web browser.",download:{label:"Add to %{browser}"}},desktop:{title:"%{wallet} for %{platform}",description:"Access your wallet natively from your powerful desktop.",download:{label:"Add to %{platform}"}}},Rm0={title:"Install %{wallet}",description:"Scan with your phone to download on iOS or Android",continue:{label:"Continue"}},Nm0={mobile:{connect:{label:"Connect"},learn_more:{label:"Learn More"}},extension:{refresh:{label:"Refresh"},learn_more:{label:"Learn More"}},desktop:{connect:{label:"Connect"},learn_more:{label:"Learn More"}}},Mm0={title:"Switch Networks",wrong_network:"Wrong network detected, switch or disconnect to continue.",confirm:"Confirm in Wallet",switching_not_supported:"Your wallet does not support switching networks from %{appName}. Try switching networks from within your wallet instead.",switching_not_supported_fallback:"Your wallet does not support switching networks from this app. Try switching networks from within your wallet instead.",disconnect:"Disconnect",connected:"Connected"},jm0={disconnect:{label:"Disconnect"},copy_address:{label:"Copy Address",copied:"Copied!"},explorer:{label:"View more on explorer"},transactions:{description:"%{appName} transactions will appear here...",description_fallback:"Your transactions will appear here...",recent:{title:"Recent Transactions"},clear:{label:"Clear All"}}},zm0={argent:{qr_code:{step1:{description:"Put Argent on your home screen for faster access to your wallet.",title:"Open the Argent app"},step2:{description:"Create a wallet and username, or import an existing wallet.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the Scan QR button"}}},bifrost:{qr_code:{step1:{description:"We recommend putting Bifrost Wallet on your home screen for quicker access.",title:"Open the Bifrost Wallet app"},step2:{description:"Create or import a wallet using your recovery phrase.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}}},bitget:{qr_code:{step1:{description:"We recommend putting Bitget Wallet on your home screen for quicker access.",title:"Open the Bitget Wallet app"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}},extension:{step1:{description:"We recommend pinning Bitget Wallet to your taskbar for quicker access to your wallet.",title:"Install the Bitget Wallet extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},bitski:{extension:{step1:{description:"We recommend pinning Bitski to your taskbar for quicker access to your wallet.",title:"Install the Bitski extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},coin98:{qr_code:{step1:{description:"We recommend putting Coin98 Wallet on your home screen for faster access to your wallet.",title:"Open the Coin98 Wallet app"},step2:{description:"You can easily backup your wallet using our backup feature on your phone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the WalletConnect button"}},extension:{step1:{description:"Click at the top right of your browser and pin Coin98 Wallet for easy access.",title:"Install the Coin98 Wallet extension"},step2:{description:"Create a new wallet or import an existing one.",title:"Create or Import a wallet"},step3:{description:"Once you set up Coin98 Wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},coinbase:{qr_code:{step1:{description:"We recommend putting Coinbase Wallet on your home screen for quicker access.",title:"Open the Coinbase Wallet app"},step2:{description:"You can easily backup your wallet using the cloud backup feature.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}},extension:{step1:{description:"We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.",title:"Install the Coinbase Wallet extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},core:{qr_code:{step1:{description:"We recommend putting Core on your home screen for faster access to your wallet.",title:"Open the Core app"},step2:{description:"You can easily backup your wallet using our backup feature on your phone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the WalletConnect button"}},extension:{step1:{description:"We recommend pinning Core to your taskbar for quicker access to your wallet.",title:"Install the Core extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},fox:{qr_code:{step1:{description:"We recommend putting FoxWallet on your home screen for quicker access.",title:"Open the FoxWallet app"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}}},frontier:{qr_code:{step1:{description:"We recommend putting Frontier Wallet on your home screen for quicker access.",title:"Open the Frontier Wallet app"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}},extension:{step1:{description:"We recommend pinning Frontier Wallet to your taskbar for quicker access to your wallet.",title:"Install the Frontier Wallet extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},im_token:{qr_code:{step1:{title:"Open the imToken app",description:"Put imToken app on your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap Scanner Icon in top right corner",description:"Choose New Connection, then scan the QR code and confirm the prompt to connect."}}},metamask:{qr_code:{step1:{title:"Open the MetaMask app",description:"We recommend putting MetaMask on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}},extension:{step1:{title:"Install the MetaMask extension",description:"We recommend pinning MetaMask to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},okx:{qr_code:{step1:{title:"Open the OKX Wallet app",description:"We recommend putting OKX Wallet on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}},extension:{step1:{title:"Install the OKX Wallet extension",description:"We recommend pinning OKX Wallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},omni:{qr_code:{step1:{title:"Open the Omni app",description:"Add Omni to your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap the QR icon and scan",description:"Tap the QR icon on your home screen, scan the code and confirm the prompt to connect."}}},token_pocket:{qr_code:{step1:{title:"Open the TokenPocket app",description:"We recommend putting TokenPocket on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}},extension:{step1:{title:"Install the TokenPocket extension",description:"We recommend pinning TokenPocket to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},trust:{qr_code:{step1:{title:"Open the Trust Wallet app",description:"Put Trust Wallet on your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap WalletConnect in Settings",description:"Choose New Connection, then scan the QR code and confirm the prompt to connect."}},extension:{step1:{title:"Install the Trust Wallet extension",description:"Click at the top right of your browser and pin Trust Wallet for easy access."},step2:{title:"Create or Import a wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Refresh your browser",description:"Once you set up Trust Wallet, click below to refresh the browser and load up the extension."}}},uniswap:{qr_code:{step1:{title:"Open the Uniswap app",description:"Add Uniswap Wallet to your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap the QR icon and scan",description:"Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."}}},zerion:{qr_code:{step1:{title:"Open the Zerion app",description:"We recommend putting Zerion on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}},extension:{step1:{title:"Install the Zerion extension",description:"We recommend pinning Zerion to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},rainbow:{qr_code:{step1:{title:"Open the Rainbow app",description:"We recommend putting Rainbow on your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"You can easily backup your wallet using our backup feature on your phone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}}},enkrypt:{extension:{step1:{description:"We recommend pinning Enkrypt Wallet to your taskbar for quicker access to your wallet.",title:"Install the Enkrypt Wallet extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},frame:{extension:{step1:{description:"We recommend pinning Frame to your taskbar for quicker access to your wallet.",title:"Install Frame & the companion extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},one_key:{extension:{step1:{title:"Install the OneKey Wallet extension",description:"We recommend pinning OneKey Wallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},phantom:{extension:{step1:{title:"Install the Phantom extension",description:"We recommend pinning Phantom to your taskbar for easier access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},rabby:{extension:{step1:{title:"Install the Rabby extension",description:"We recommend pinning Rabby to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},safeheron:{extension:{step1:{title:"Install the Core extension",description:"We recommend pinning Safeheron to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},taho:{extension:{step1:{title:"Install the Taho extension",description:"We recommend pinning Taho to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},talisman:{extension:{step1:{title:"Install the Talisman extension",description:"We recommend pinning Talisman to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import an Ethereum Wallet",description:"Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},xdefi:{extension:{step1:{title:"Install the XDEFI Wallet extension",description:"We recommend pinning XDEFI Wallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},zeal:{extension:{step1:{title:"Install the Zeal extension",description:"We recommend pinning Zeal to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},safepal:{extension:{step1:{title:"Install the SafePal Wallet extension",description:"Click at the top right of your browser and pin SafePal Wallet for easy access."},step2:{title:"Create or Import a wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Refresh your browser",description:"Once you set up SafePal Wallet, click below to refresh the browser and load up the extension."}},qr_code:{step1:{title:"Open the SafePal Wallet app",description:"Put SafePal Wallet on your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap WalletConnect in Settings",description:"Choose New Connection, then scan the QR code and confirm the prompt to connect."}}},desig:{extension:{step1:{title:"Install the Desig extension",description:"We recommend pinning Desig to your taskbar for easier access to your wallet."},step2:{title:"Create a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},subwallet:{extension:{step1:{title:"Install the SubWallet extension",description:"We recommend pinning SubWallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}},qr_code:{step1:{title:"Open the SubWallet app",description:"We recommend putting SubWallet on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}}},clv:{extension:{step1:{title:"Install the CLV Wallet extension",description:"We recommend pinning CLV Wallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}},qr_code:{step1:{title:"Open the CLV Wallet app",description:"We recommend putting CLV Wallet on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}}},okto:{qr_code:{step1:{title:"Open the Okto app",description:"Add Okto to your home screen for quick access"},step2:{title:"Create an MPC Wallet",description:"Create an account and generate a wallet"},step3:{title:"Tap WalletConnect in Settings",description:"Tap the Scan QR icon at the top right and confirm the prompt to connect."}}},ledger:{desktop:{step1:{title:"Open the Ledger Live app",description:"We recommend putting Ledger Live on your home screen for quicker access."},step2:{title:"Set up your Ledger",description:"Set up a new Ledger or connect to an existing one."},step3:{title:"Connect",description:"A connection prompt will appear for you to connect your wallet."}},qr_code:{step1:{title:"Open the Ledger Live app",description:"We recommend putting Ledger Live on your home screen for quicker access."},step2:{title:"Set up your Ledger",description:"You can either sync with the desktop app or connect your Ledger."},step3:{title:"Scan the code",description:"Tap WalletConnect then Switch to Scanner. After you scan, a connection prompt will appear for you to connect your wallet."}}}},mw={connect_wallet:xm0,intro:km0,sign_in:_m0,connect:Sm0,connect_scan:Tm0,connector_group:Pm0,get:Im0,get_options:Om0,get_mobile:Rm0,get_instructions:Nm0,chains:Mm0,profile:jm0,wallet_connectors:zm0},Lm0={label:"Conectar la billetera"},$m0={title:"¿Qué es una billetera?",description:"Una billetera se usa para enviar, recibir, almacenar y mostrar activos digitales. También es una nueva forma de iniciar sesión, sin necesidad de crear nuevas cuentas y contraseñas en cada sitio web.",digital_asset:{title:"Un hogar para tus Activos Digitales",description:"Las carteras se utilizan para enviar, recibir, almacenar y mostrar activos digitales como Ethereum y NFTs."},login:{title:"Una nueva forma de iniciar sesión",description:"En lugar de crear nuevas cuentas y contraseñas en cada sitio web, simplemente conecta tu cartera."},get:{label:"Obtener una billetera"},learn_more:{label:"Obtener más información"}},Um0={label:"Verifica tu cuenta",description:"Para terminar de conectar, debes firmar un mensaje en tu billetera para verificar que eres el propietario de esta cuenta.",message:{send:"Enviar mensaje",preparing:"Preparando mensaje...",cancel:"Cancelar",preparing_error:"Error al preparar el mensaje, ¡intenta de nuevo!"},signature:{waiting:"Esperando firma...",verifying:"Verificando firma...",signing_error:"Error al firmar el mensaje, ¡intenta de nuevo!",verifying_error:"Error al verificar la firma, ¡intenta de nuevo!",oops_error:"¡Ups! Algo salió mal."}},Wm0={label:"Conectar",title:"Conectar una billetera",new_to_ethereum:{description:"¿Eres nuevo en las billeteras Ethereum?",learn_more:{label:"Obtener más información"}},learn_more:{label:"Obtener más información"},recent:"Reciente",status:{opening:"Abriendo %{wallet}...",not_installed:"%{wallet} no está instalado",not_available:"%{wallet} no está disponible",confirm:"Confirma la conexión en la extensión"},secondary_action:{get:{description:"¿No tienes %{wallet}?",label:"OBTENER"},install:{label:"INSTALAR"},retry:{label:"REINTENTAR"}},walletconnect:{description:{full:"¿Necesitas el modal oficial de WalletConnect?",compact:"¿Necesitas el modal de WalletConnect?"},open:{label:"ABRIR"}}},qm0={title:"Escanea con %{wallet}",fallback_title:"Escanea con tu teléfono"},Hm0={recommended:"Recomendado",other:"Otro",popular:"Popular",more:"Más",others:"Otros"},Gm0={title:"Obtener una billetera",action:{label:"OBTENER"},mobile:{description:"Billetera Móvil"},extension:{description:"Extensión de navegador"},mobile_and_extension:{description:"Billetera móvil y extensión"},mobile_and_desktop:{description:"Billetera Móvil y de Escritorio"},looking_for:{title:"¿No es lo que estás buscando?",mobile:{description:"Seleccione una billetera en la pantalla principal para comenzar con un proveedor de billetera diferente."},desktop:{compact_description:"Seleccione una cartera en la pantalla principal para comenzar con un proveedor de cartera diferente.",wide_description:"Seleccione una cartera a la izquierda para comenzar con un proveedor de cartera diferente."}}},Vm0={title:"Comienza con %{wallet}",short_title:"Obtener %{wallet}",mobile:{title:"%{wallet} para móvil",description:"Use la billetera móvil para explorar el mundo de Ethereum.",download:{label:"Obtener la aplicación"}},extension:{title:"%{wallet} para %{browser}",description:"Acceda a su billetera directamente desde su navegador web favorito.",download:{label:"Añadir a %{browser}"}},desktop:{title:"%{wallet} para %{platform}",description:"Acceda a su billetera de forma nativa desde su potente escritorio.",download:{label:"Añadir a %{platform}"}}},Km0={title:"Instalar %{wallet}",description:"Escanee con su teléfono para descargar en iOS o Android",continue:{label:"Continuar"}},Qm0={mobile:{connect:{label:"Conectar"},learn_more:{label:"Obtener más información"}},extension:{refresh:{label:"Actualizar"},learn_more:{label:"Obtener más información"}},desktop:{connect:{label:"Conectar"},learn_more:{label:"Obtener más información"}}},Jm0={title:"Cambiar redes",wrong_network:"Se detectó la red incorrecta, cambia o desconéctate para continuar.",confirm:"Confirmar en la cartera",switching_not_supported:"Tu cartera no admite cambiar las redes desde %{appName}. Intenta cambiar las redes desde tu cartera.",switching_not_supported_fallback:"Su billetera no admite el cambio de redes desde esta aplicación. Intente cambiar de red desde dentro de su billetera en su lugar.",disconnect:"Desconectar",connected:"Conectado"},Zm0={disconnect:{label:"Desconectar"},copy_address:{label:"Copiar dirección",copied:"¡Copiado!"},explorer:{label:"Ver más en el explorador"},transactions:{description:"%{appName} transacciones aparecerán aquí...",description_fallback:"Tus transacciones aparecerán aquí...",recent:{title:"Transacciones recientes"},clear:{label:"Borrar Todo"}}},Ym0={argent:{qr_code:{step1:{description:"Coloque Argent en su pantalla de inicio para un acceso más rápido a su billetera.",title:"Abra la aplicación Argent"},step2:{description:"Cree una billetera y un nombre de usuario, o importe una billetera existente.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un mensaje de conexión para que conecte su billetera.",title:"Toque el botón Escanear QR"}}},bifrost:{qr_code:{step1:{description:"Recomendamos poner Bifrost Wallet en su pantalla de inicio para un acceso más rápido.",title:"Abra la aplicación Bifrost Wallet"},step2:{description:"Cree o importe una billetera usando su frase de recuperación.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que conecte su billetera.",title:"Toque el botón de escaneo"}}},bitget:{qr_code:{step1:{description:"Recomendamos colocar Bitget Wallet en su pantalla de inicio para un acceso más rápido.",title:"Abra la aplicación Bitget Wallet"},step2:{description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que pueda conectar su billetera.",title:"Toque el botón de escanear"}},extension:{step1:{description:"Recomendamos anclar Bitget Wallet a su barra de tareas para un acceso más rápido a su billetera.",title:"Instale la extensión de la Billetera Bitget"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión.",title:"Refrescar tu navegador"}}},bitski:{extension:{step1:{description:"Recomendamos anclar Bitski a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala la extensión Bitski"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configure su billetera, haga clic abajo para actualizar el navegador y cargar la extensión.",title:"Actualiza tu navegador"}}},coin98:{qr_code:{step1:{description:"Recomendamos poner Coin98 Wallet en la pantalla de inicio para un acceso más rápido a su billetera.",title:"Abra la aplicación Coin98 Wallet"},step2:{description:"Puede respaldar fácilmente su billetera utilizando nuestra función de respaldo en su teléfono.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que conecte su billetera.",title:"Toque el botón WalletConnect"}},extension:{step1:{description:"Haga clic en la parte superior derecha de su navegador y fije Coin98 Wallet para un fácil acceso.",title:"Instale la extensión Coin98 Wallet"},step2:{description:"Crea una nueva billetera o importa una existente.",title:"Crear o Importar una billetera"},step3:{description:"Una vez que configures Coin98 Wallet, haz clic a continuación para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},coinbase:{qr_code:{step1:{description:"Recomendamos poner Coinbase Wallet en tu pantalla de inicio para un acceso más rápido.",title:"Abre la aplicación de la Billetera Coinbase"},step2:{description:"Puedes respaldar tu billetera fácilmente utilizando la función de respaldo en la nube.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera.",title:"Pulsa el botón de escanear"}},extension:{step1:{description:"Te recomendamos anclar la Billetera Coinbase a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala la extensión de la Billetera Coinbase"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configure su billetera, haga clic abajo para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},core:{qr_code:{step1:{description:"Recomendamos poner Core en su pantalla de inicio para un acceso más rápido a su billetera.",title:"Abra la aplicación Core"},step2:{description:"Puedes respaldar fácilmente tu billetera utilizando nuestra función de respaldo en tu teléfono.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera.",title:"Toque el botón WalletConnect"}},extension:{step1:{description:"Recomendamos fijar Core a tu barra de tareas para acceder más rápido a tu billetera.",title:"Instala la extensión Core"},step2:{description:"Asegúrate de hacer una copia de seguridad de tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},fox:{qr_code:{step1:{description:"Recomendamos poner FoxWallet en tu pantalla de inicio para un acceso más rápido.",title:"Abre la aplicación FoxWallet"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá una solicitud de conexión para que conectes tu billetera.",title:"Toca el botón de escanear"}}},frontier:{qr_code:{step1:{description:"Recomendamos poner la Billetera Frontier en tu pantalla principal para un acceso más rápido.",title:"Abre la aplicación de la Billetera Frontier"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un mensaje para que conectes tu billetera.",title:"Haz clic en el botón de escaneo"}},extension:{step1:{description:"Recomendamos anclar la billetera Frontier a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala la extensión de la billetera Frontier"},step2:{description:"Asegúrese de hacer una copia de seguridad de su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configure su billetera, haga clic a continuación para actualizar el navegador y cargar la extensión.",title:"Actualizar tu navegador"}}},im_token:{qr_code:{step1:{title:"Abrir la aplicación imToken",description:"Pon la aplicación imToken en tu pantalla de inicio para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Toca el Icono del Escáner en la esquina superior derecha",description:"Elija Nueva Conexión, luego escanee el código QR y confirme el aviso para conectar."}}},metamask:{qr_code:{step1:{title:"Abre la aplicación MetaMask",description:"Recomendamos colocar MetaMask en tu pantalla de inicio para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Toca el botón de escanear",description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}},extension:{step1:{title:"Instala la extensión MetaMask",description:"Recomendamos anclar MetaMask a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de hacer una copia de seguridad de tu billetera usando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Refresca tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},okx:{qr_code:{step1:{title:"Abre la aplicación OKX Wallet",description:"Recomendamos colocar OKX Wallet en tu pantalla de inicio para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera usando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Toca el botón de escanear",description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}},extension:{step1:{title:"Instala la extensión de Billetera OKX",description:"Recomendamos anclar la Billetera OKX a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera usando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Refresca tu navegador",description:"Una vez que configure su billetera, haga clic abajo para actualizar el navegador y cargar la extensión."}}},omni:{qr_code:{step1:{title:"Abra la aplicación Omni",description:"Agregue Omni a su pantalla de inicio para un acceso más rápido a su billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crear una nueva billetera o importar una existente."},step3:{title:"Toque el icono de QR y escanee",description:"Toca el icono QR en tu pantalla principal, escanea el código y confirma el aviso para conectar."}}},token_pocket:{qr_code:{step1:{title:"Abre la aplicación TokenPocket",description:"Recomendamos colocar TokenPocket en tu pantalla principal para un acceso más rápido."},step2:{title:"Crear o importar una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Toca el botón de escaneo",description:"Después de escanear, aparecerá una solicitud de conexión para que puedas conectar tu billetera."}},extension:{step1:{title:"Instala la extensión TokenPocket",description:"Recomendamos anclar TokenPocket a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para actualizar el navegador y cargar la extensión."}}},trust:{qr_code:{step1:{title:"Abre la aplicación Trust Wallet",description:"Ubica Trust Wallet en tu pantalla de inicio para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Toca WalletConnect en Configuraciones",description:"Elige Nueva Conexión, luego escanea el código QR y confirma el aviso para conectar."}},extension:{step1:{title:"Instala la extensión de Trust Wallet",description:"Haz clic en la parte superior derecha de tu navegador y fija Trust Wallet para un fácil acceso."},step2:{title:"Crea o Importa una billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Refresca tu navegador",description:"Una vez que configures Trust Wallet, haz clic abajo para refrescar el navegador y cargar la extensión."}}},uniswap:{qr_code:{step1:{title:"Abre la aplicación Uniswap",description:"Agrega la billetera Uniswap a tu pantalla de inicio para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Toca el icono QR y escanea",description:"Toca el icono QR en tu pantalla de inicio, escanea el código y confirma el prompt para conectar."}}},zerion:{qr_code:{step1:{title:"Abre la aplicación Zerion",description:"Recomendamos poner Zerion en tu pantalla de inicio para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de hacer una copia de seguridad de tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Toca el botón de escanear",description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}},extension:{step1:{title:"Instala la extensión Zerion",description:"Recomendamos anclar Zerion a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera usando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para actualizar el navegador y cargar la extensión."}}},rainbow:{qr_code:{step1:{title:"Abre la aplicación Rainbow",description:"Recomendamos poner Rainbow en tu pantalla de inicio para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Puedes respaldar fácilmente tu billetera usando nuestra función de respaldo en tu teléfono."},step3:{title:"Toca el botón de escanear",description:"Después de escanear, aparecerá una solicitud de conexión para que conectes tu billetera."}}},enkrypt:{extension:{step1:{description:"Recomendamos anclar la Billetera Enkrypt a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala la extensión de Billetera Enkrypt"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},frame:{extension:{step1:{description:"Recomendamos anclar Frame a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala Frame y la extensión complementaria"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},one_key:{extension:{step1:{title:"Instale la extensión de Billetera OneKey",description:"Recomendamos anclar la Billetera OneKey a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera usando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para actualizar el navegador y cargar la extensión."}}},phantom:{extension:{step1:{title:"Instala la extensión Phantom",description:"Recomendamos fijar Phantom a tu barra de tareas para un acceso más fácil a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera usando un método seguro. Nunca comparta su frase secreta de recuperación con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},rabby:{extension:{step1:{title:"Instala la extensión Rabby",description:"Recomendamos anclar Rabby a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de hacer una copia de seguridad de tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para actualizar el navegador y cargar la extensión."}}},safeheron:{extension:{step1:{title:"Instala la extensión Core",description:"Recomendamos anclar Safeheron a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Refresca tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},taho:{extension:{step1:{title:"Instala la extensión de Taho",description:"Recomendamos anclar Taho a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crea o Importa una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Refresca tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},talisman:{extension:{step1:{title:"Instala la extensión de Talisman",description:"Recomendamos anclar Talisman a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crea o importa una billetera Ethereum",description:"Asegúrate de respaldar tu billetera usando un método seguro. Nunca compartas tu frase de recuperación con nadie."},step3:{title:"Recarga tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},xdefi:{extension:{step1:{title:"Instala la extensión de la billetera XDEFI",description:"Recomendamos anclar XDEFI Wallet a su barra de tareas para un acceso más rápido a su billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Actualice su navegador",description:"Una vez que configure su billetera, haga clic abajo para actualizar el navegador y cargar la extensión."}}},zeal:{extension:{step1:{title:"Instale la extensión Zeal",description:"Recomendamos anclar Zeal a su barra de tareas para un acceso más rápido a su billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Refrescar tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión."}}},safepal:{extension:{step1:{title:"Instale la extensión de la billetera SafePal",description:"Haga clic en la esquina superior derecha de su navegador y ancle SafePal Wallet para un fácil acceso."},step2:{title:"Crear o Importar una billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Refrescar tu navegador",description:"Una vez que configure la Billetera SafePal, haga clic abajo para refrescar el navegador y cargar la extensión."}},qr_code:{step1:{title:"Abra la aplicación Billetera SafePal",description:"Coloque la Billetera SafePal en su pantalla de inicio para un acceso más rápido a su billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Toca WalletConnect en Configuraciones",description:"Elija Nueva Conexión, luego escanee el código QR y confirme el aviso para conectar."}}},desig:{extension:{step1:{title:"Instala la extensión Desig",description:"Recomendamos anclar Desig a tu barra de tareas para acceder más fácilmente a tu cartera."},step2:{title:"Crea una Cartera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Refrescar tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión."}}},subwallet:{extension:{step1:{title:"Instala la extensión SubWallet",description:"Recomendamos anclar SubWallet a tu barra de tareas para acceder a tu cartera más rápidamente."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera usando un método seguro. Nunca compartas tu frase de recuperación con nadie."},step3:{title:"Refrescar tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión."}},qr_code:{step1:{title:"Abre la aplicación SubWallet",description:"Recomendamos colocar SubWallet en tu pantalla principal para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Toque el botón de escaneo",description:"Después de escanear, aparecerá un mensaje de conexión para que conecte su billetera."}}},clv:{extension:{step1:{title:"Instala la extensión CLV Wallet",description:"Recomendamos anclar la billetera CLV a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Refrescar tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión."}},qr_code:{step1:{title:"Abra la aplicación CLV Wallet",description:"Recomendamos colocar la billetera CLV en tu pantalla de inicio para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Toque el botón de escaneo",description:"Después de escanear, aparecerá un mensaje de conexión para que conecte su billetera."}}},okto:{qr_code:{step1:{title:"Abra la aplicación Okto",description:"Agrega Okto a tu pantalla de inicio para un acceso rápido"},step2:{title:"Crea una billetera MPC",description:"Crea una cuenta y genera una billetera"},step3:{title:"Toca WalletConnect en Configuraciones",description:"Toca el icono de Escanear QR en la parte superior derecha y confirma el mensaje para conectar."}}},ledger:{desktop:{step1:{title:"Abra la aplicación Ledger Live",description:"Recomendamos poner Ledger Live en su pantalla de inicio para un acceso más rápido."},step2:{title:"Configure su Ledger",description:"Configure un nuevo Ledger o conéctese a uno existente."},step3:{title:"Conectar",description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}},qr_code:{step1:{title:"Abra la aplicación Ledger Live",description:"Recomendamos poner Ledger Live en su pantalla de inicio para un acceso más rápido."},step2:{title:"Configure su Ledger",description:"Puedes sincronizar con la aplicación de escritorio o conectar tu Ledger."},step3:{title:"Escanea el código",description:"Toca WalletConnect y luego cambia a Scanner. Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}}}},bw={connect_wallet:Lm0,intro:$m0,sign_in:Um0,connect:Wm0,connect_scan:qm0,connector_group:Hm0,get:Gm0,get_options:Vm0,get_mobile:Km0,get_instructions:Qm0,chains:Jm0,profile:Zm0,wallet_connectors:Ym0},Xm0={label:"Connecter le portefeuille"},ub0={title:"Qu'est-ce qu'un portefeuille?",description:"Un portefeuille est utilisé pour envoyer, recevoir, stocker et afficher des actifs numériques. C'est aussi une nouvelle façon de se connecter, sans avoir besoin de créer de nouveaux comptes et mots de passe sur chaque site.",digital_asset:{title:"Un foyer pour vos actifs numériques",description:"Les portefeuilles sont utilisés pour envoyer, recevoir, stocker et afficher des actifs numériques comme Ethereum et les NFTs."},login:{title:"Une nouvelle façon de se connecter",description:"Au lieu de créer de nouveaux comptes et mots de passe sur chaque site Web, connectez simplement votre portefeuille."},get:{label:"Obtenir un portefeuille"},learn_more:{label:"En savoir plus"}},eb0={label:"Vérifiez votre compte",description:"Pour terminer la connexion, vous devez signer un message dans votre portefeuille pour vérifier que vous êtes le propriétaire de ce compte.",message:{send:"Envoyer le message",preparing:"Préparation du message...",cancel:"Annuler",preparing_error:"Erreur lors de la préparation du message, veuillez réessayer!"},signature:{waiting:"En attente de la signature...",verifying:"Vérification de la signature...",signing_error:"Erreur lors de la signature du message, veuillez réessayer!",verifying_error:"Erreur lors de la vérification de la signature, veuillez réessayer!",oops_error:"Oups, quelque chose a mal tourné!"}},tb0={label:"Connecter",title:"Connecter un portefeuille",new_to_ethereum:{description:"Nouveau aux portefeuilles Ethereum?",learn_more:{label:"En savoir plus"}},learn_more:{label:"En savoir plus"},recent:"Récents",status:{opening:"Ouverture %{wallet}...",not_installed:"%{wallet} n'est pas installé",not_available:"%{wallet} n'est pas disponible",confirm:"Confirmez la connexion dans l'extension"},secondary_action:{get:{description:"Vous n'avez pas de %{wallet}?",label:"OBTENIR"},install:{label:"INSTALLER"},retry:{label:"RÉESSAYER"}},walletconnect:{description:{full:"Vous avez besoin du modal officiel de WalletConnect ?",compact:"Besoin du modal de WalletConnect ?"},open:{label:"OUVRIR"}}},nb0={title:"Scannez avec %{wallet}",fallback_title:"Scannez avec votre téléphone"},rb0={recommended:"Recommandé",other:"Autre",popular:"Populaire",more:"Plus",others:"Autres"},ib0={title:"Obtenez un portefeuille",action:{label:"OBTENIR"},mobile:{description:"Portefeuille mobile"},extension:{description:"Extension de navigateur"},mobile_and_extension:{description:"Portefeuille mobile et extension"},mobile_and_desktop:{description:"Portefeuille mobile et de bureau"},looking_for:{title:"Ce n'est pas ce que vous cherchez ?",mobile:{description:"Sélectionnez un portefeuille sur l'écran principal pour commencer avec un autre fournisseur de portefeuille."},desktop:{compact_description:"Sélectionnez un portefeuille sur l'écran principal pour commencer avec un autre fournisseur de portefeuille.",wide_description:"Sélectionnez un portefeuille sur la gauche pour commencer avec un autre fournisseur de portefeuille."}}},ab0={title:"Commencez avec %{wallet}",short_title:"Obtenez %{wallet}",mobile:{title:"%{wallet} pour mobile",description:"Utilisez le portefeuille mobile pour explorer le monde d'Ethereum.",download:{label:"Obtenez l'application"}},extension:{title:"%{wallet} pour %{browser}",description:"Accédez à votre portefeuille directement depuis votre navigateur web préféré.",download:{label:"Ajouter à %{browser}"}},desktop:{title:"%{wallet} pour %{platform}",description:"Accédez à votre portefeuille nativement depuis votre puissant ordinateur de bureau.",download:{label:"Ajouter à %{platform}"}}},ob0={title:"Installer %{wallet}",description:"Scannez avec votre téléphone pour télécharger sur iOS ou Android",continue:{label:"Continuer"}},sb0={mobile:{connect:{label:"Connecter"},learn_more:{label:"En savoir plus"}},extension:{refresh:{label:"Rafraîchir"},learn_more:{label:"En savoir plus"}},desktop:{connect:{label:"Connecter"},learn_more:{label:"En savoir plus"}}},fb0={title:"Changer de Réseaux",wrong_network:"Mauvais réseau détecté, changez ou déconnectez-vous pour continuer.",confirm:"Confirmer dans le portefeuille",switching_not_supported:"Votre portefeuille ne supporte pas le changement de réseaux depuis %{appName}. Essayez de changer de réseau depuis votre portefeuille.",switching_not_supported_fallback:"Votre portefeuille ne prend pas en charge le changement de réseaux à partir de cette application. Essayez de changer de réseau à partir de votre portefeuille à la place.",disconnect:"Déconnecter",connected:"Connecté"},lb0={disconnect:{label:"Déconnecter"},copy_address:{label:"Copier l'adresse",copied:"Copié !"},explorer:{label:"Voir plus sur l'explorateur"},transactions:{description:"%{appName} transactions apparaîtront ici...",description_fallback:"Vos transactions apparaîtront ici...",recent:{title:"Transactions Récentes"},clear:{label:"Tout supprimer"}}},cb0={argent:{qr_code:{step1:{description:"Mettez Argent sur votre écran d'accueil pour un accès plus rapide à votre portefeuille.",title:"Ouvrez l'application Argent"},step2:{description:"Créez un portefeuille et un nom d'utilisateur, ou importez un portefeuille existant.",title:"Créer ou Importer un Portefeuille"},step3:{description:"Après avoir numérisé, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton Scan QR"}}},bifrost:{qr_code:{step1:{description:"Nous vous recommandons de mettre le portefeuille Bifrost sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application Bifrost Wallet"},step2:{description:"Créez ou importez un portefeuille en utilisant votre phrase de récupération.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après votre scan, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}}},bitget:{qr_code:{step1:{description:"Nous vous recommandons de placer Bitget Wallet sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application Bitget Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après le scan, une incitation de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}},extension:{step1:{description:"Nous vous recommandons d'épingler Bitget Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension de portefeuille Bitget"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créez ou Importez un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},bitski:{extension:{step1:{description:"Nous recommandons d'épingler Bitski à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Bitski"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},coin98:{qr_code:{step1:{description:"Nous vous recommandons de placer Coin98 Wallet sur votre écran d'accueil pour un accès plus rapide à votre portefeuille.",title:"Ouvrez l'application Coin98 Wallet"},step2:{description:"Vous pouvez facilement sauvegarder votre portefeuille en utilisant notre fonction de sauvegarde sur votre téléphone.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après que vous ayez scanné, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton WalletConnect"}},extension:{step1:{description:"Cliquez en haut à droite de votre navigateur et épinglez Coin98 Wallet pour un accès facile.",title:"Installez l'extension Coin98 Wallet"},step2:{description:"Créez un nouveau portefeuille ou importez-en un existant.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré Coin98 Wallet, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},coinbase:{qr_code:{step1:{description:"Nous recommandons de placer Coinbase Wallet sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application Coinbase Wallet"},step2:{description:"Vous pouvez facilement sauvegarder votre portefeuille en utilisant la fonction de sauvegarde cloud.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après avoir scanné, une invite de connexion s'affichera pour que vous puissiez connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}},extension:{step1:{description:"Nous recommandons d'épingler Coinbase Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Coinbase Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sûre. Ne partagez jamais votre phrase secrète avec quiconque.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.",title:"Actualisez votre navigateur"}}},core:{qr_code:{step1:{description:"Nous recommandons de placer Core sur votre écran d'accueil pour un accès plus rapide à votre portefeuille.",title:"Ouvrez l'application Core"},step2:{description:"Vous pouvez facilement sauvegarder votre portefeuille en utilisant notre fonction de sauvegarde sur votre téléphone.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après avoir scanné, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton WalletConnect"}},extension:{step1:{description:"Nous recommandons d'épingler Core à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Core"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque.",title:"Créez ou Importer un Portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},fox:{qr_code:{step1:{description:"Nous recommandons de mettre FoxWallet sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application FoxWallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après avoir scanné, une invitation à la connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}}},frontier:{qr_code:{step1:{description:"Nous vous recommandons de placer le portefeuille Frontier sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application Frontier Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après avoir scanné, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}},extension:{step1:{description:"Nous recommandons d'épingler Frontier Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Frontier Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créez ou importez un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},im_token:{qr_code:{step1:{title:"Ouvrez l'application imToken",description:"Placez l'application imToken sur votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou importez un portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant ."},step3:{title:"Appuyez sur l'icône du scanner dans le coin supérieur droit",description:"Choisissez Nouvelle Connexion, puis scannez le code QR et confirmez l'invite pour vous connecter."}}},metamask:{qr_code:{step1:{title:"Ouvrez l'application MetaMask",description:"Nous vous recommandons de mettre MetaMask sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un Portefeuille",description:"Veillez à sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Appuyez sur le bouton de scan",description:"Après avoir scanné, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}},extension:{step1:{title:"Installez l’extension de MetaMask",description:"Nous recommandons d'épingler MetaMask à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},okx:{qr_code:{step1:{title:"Ouvrez l'application OKX Wallet",description:"Nous recommandons de mettre OKX Wallet sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Appuyez sur le bouton de numérisation",description:"Après avoir numérisé, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}},extension:{step1:{title:"Installez l'extension de portefeuille OKX",description:"Nous vous recommandons d'épingler le portefeuille OKX à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}}},omni:{qr_code:{step1:{title:"Ouvrez l'application Omni",description:"Ajoutez Omni à votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant."},step3:{title:"Touchez l'icône QR et scannez",description:"Appuyez sur l'icône QR sur votre écran d'accueil, scannez le code et confirmez l'invite pour vous connecter."}}},token_pocket:{qr_code:{step1:{title:"Ouvrez l'application TokenPocket",description:"Nous vous recommandons de mettre TokenPocket sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créez ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille à l'aide d'une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Appuyez sur le bouton de scan",description:"Après votre scan, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}},extension:{step1:{title:"Installez l'extension TokenPocket",description:"Nous recommandons d'épingler TokenPocket à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},trust:{qr_code:{step1:{title:"Ouvrez l'application Trust Wallet",description:"Placez Trust Wallet sur votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Créer un nouveau portefeuille ou en importer un existant."},step3:{title:"Appuyez sur WalletConnect dans les paramètres",description:"Choisissez Nouvelle Connexion, puis scannez le code QR et confirmez l'invite pour vous connecter."}},extension:{step1:{title:"Installez l'extension Trust Wallet",description:"Cliquez en haut à droite de votre navigateur et épinglez Trust Wallet pour un accès facile."},step2:{title:"Créer ou importer un portefeuille",description:"Créer un nouveau portefeuille ou en importer un existant."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré Trust Wallet, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},uniswap:{qr_code:{step1:{title:"Ouvrez l'application Uniswap",description:"Ajoutez Uniswap Wallet à votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou importez un portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant."},step3:{title:"Tapez sur l'icône QR et scannez",description:"Touchez l'icône QR sur votre écran d'accueil, scannez le code et confirmez l'invite pour vous connecter."}}},zerion:{qr_code:{step1:{title:"Ouvrez l'application Zerion",description:"Nous vous recommandons de mettre Zerion sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne."},step3:{title:"Appuyez sur le bouton de scan",description:"Une fois que vous avez scanné, une invite de connexion apparaîtra pour que vous puissiez connecter votre portefeuille."}},extension:{step1:{title:"Installer l'extension Zerion",description:"Nous recommandons d'épingler Zerion à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou Importez un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},rainbow:{qr_code:{step1:{title:"Ouvre l'application Rainbow",description:"Nous vous recommandons de mettre Rainbow sur votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou Importez un portefeuille",description:"Vous pouvez facilement sauvegarder votre portefeuille en utilisant notre fonction de sauvegarde sur votre téléphone."},step3:{title:"Appuyez sur le bouton de scan",description:"Après avoir scanné, une invite de connexion apparaîtra pour que vous connectiez votre portefeuille."}}},enkrypt:{extension:{step1:{description:"Nous vous recommandons d'épingler Enkrypt Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Enkrypt Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quelqu'un.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l’extension.",title:"Rafraîchissez votre navigateur"}}},frame:{extension:{step1:{description:"Nous vous recommandons d'épingler Frame à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez Frame & l'extension complémentaire"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille à l'aide d'une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},one_key:{extension:{step1:{title:"Installez l'extension OneKey Wallet",description:"Nous vous recommandons d'épingler OneKey Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},phantom:{extension:{step1:{title:"Installez l'extension Phantom",description:"Nous vous recommandons d'épingler Phantom à votre barre des tâches pour un accès plus facile à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase de récupération secrète avec personne."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},rabby:{extension:{step1:{title:"Installez l'extension Rabby",description:"Nous recommandons d'épingler Rabby à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Actualisez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}}},safeheron:{extension:{step1:{title:"Installez l'extension Core",description:"Nous recommandons d'épingler Safeheron à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quelqu'un."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},taho:{extension:{step1:{title:"Installez l'extension Taho",description:"Nous vous recommandons d'épingler Taho à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou Importez un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quelqu'un."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},talisman:{extension:{step1:{title:"Installez l'extension Talisman",description:"Nous vous recommandons d'épingler Talisman à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou importer un portefeuille Ethereum",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase de récupération avec personne."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},xdefi:{extension:{step1:{title:"Installez l'extension du portefeuille XDEFI",description:"Nous vous recommandons d'épingler XDEFI Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},zeal:{extension:{step1:{title:"Installez l'extension Zeal",description:"Nous vous recommandons d'épingler Zeal à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}}},safepal:{extension:{step1:{title:"Installez l'extension SafePal Wallet",description:"Cliquez en haut à droite de votre navigateur et épinglez SafePal Wallet pour un accès facile."},step2:{title:"Créer ou Importer un portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré SafePal Wallet, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}},qr_code:{step1:{title:"Ouvrez l'application SafePal Wallet",description:"Mettez SafePal Wallet sur votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant."},step3:{title:"Appuyez sur WalletConnect dans les paramètres",description:"Choisissez Nouvelle Connexion, puis scannez le code QR et confirmez l'invite pour vous connecter."}}},desig:{extension:{step1:{title:"Installez l'extension Desig",description:"Nous vous recommandons d'épingler Desig à votre barre des tâches pour un accès plus facile à votre portefeuille."},step2:{title:"Créer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}}},subwallet:{extension:{step1:{title:"Installez l'extension SubWallet",description:"Nous vous recommandons d'épingler SubWallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase de récupération avec personne."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}},qr_code:{step1:{title:"Ouvrez l'application SubWallet",description:"Nous vous recommandons de mettre SubWallet sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Appuyez sur le bouton de scan",description:"Après avoir numérisé, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}}},clv:{extension:{step1:{title:"Installez l'extension CLV Wallet",description:"Nous vous recommandons d'épingler CLV Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}},qr_code:{step1:{title:"Ouvrez l'application CLV Wallet",description:"Nous vous recommandons de mettre CLV Wallet sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Appuyez sur le bouton de scan",description:"Après avoir numérisé, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}}},okto:{qr_code:{step1:{title:"Ouvrez l'application Okto",description:"Ajoutez Okto à votre écran d'accueil pour un accès rapide"},step2:{title:"Créer un portefeuille MPC",description:"Créez un compte et générez un portefeuille"},step3:{title:"Appuyez sur WalletConnect dans les paramètres",description:"Touchez l'icône 'Scan QR' en haut à droite et confirmez l'invite pour vous connecter."}}},ledger:{desktop:{step1:{title:"Ouvrez l'application Ledger Live",description:"Nous vous recommandons de mettre Ledger Live sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Configurez votre Ledger",description:"Configurez un nouveau Ledger ou connectez-vous à un existant."},step3:{title:"Connecter",description:"Une fois que vous avez scanné, une invite de connexion apparaîtra pour que vous puissiez connecter votre portefeuille."}},qr_code:{step1:{title:"Ouvrez l'application Ledger Live",description:"Nous vous recommandons de mettre Ledger Live sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Configurez votre Ledger",description:"Vous pouvez soit synchroniser avec l'application de bureau, soit connecter votre Ledger."},step3:{title:"Scannez le code",description:"Appuyez sur WalletConnect puis passez au Scanner. Une fois que vous avez scanné, une invite de connexion apparaîtra pour que vous puissiez connecter votre portefeuille."}}}},gw={connect_wallet:Xm0,intro:ub0,sign_in:eb0,connect:tb0,connect_scan:nb0,connector_group:rb0,get:ib0,get_options:ab0,get_mobile:ob0,get_instructions:sb0,chains:fb0,profile:lb0,wallet_connectors:cb0},db0={label:"वॉलेट को कनेक्ट करें"},Eb0={title:"वॉलेट क्या है?",description:"एक वॉलेट का उपयोग डिजिटल संपत्तियों को भेजने, प्राप्त करने, संग्रहित करने और प्रदर्शित करने के लिए किया जाता है। यह एक नया तरीका भी है लॉग इन करने का, हर वेबसाइट पर नए खाते और पासवर्ड बनाने की जरूरत के बिना।",digital_asset:{title:"अपने डिजिटल संपत्तियों के लिए एक घर",description:"वॉलेट का उपयोग Ethereum और NFTs जैसी डिजिटल संपत्तियों को भेजने, प्राप्त करने, संग्रहित करने और प्रदर्शित करने के लिए किया जाता है."},login:{title:"लॉग इन करने का एक नया तरीका",description:"हर वेबसाइट पर नए खाते और पासवर्ड बनाने की बजाय, बस अपना वॉलेट कनेक्ट करें."},get:{label:"एक वॉलेट प्राप्त करें"},learn_more:{label:"और जानें"}},pb0={label:"अपने खाते की पुष्टि करें",description:"जुड़ने को पूरा करने के लिए, आपको अपने बटुए में एक संदेश पर हस्ताक्षर करना होगा ताकि पुष्टि हो सके कि आप इस खाते के मालिक हैं।",message:{send:"संदेश भेजें",preparing:"संदेश तैयार कर रहा है...",cancel:"रद्द करें",preparing_error:"संदेश तैयार करते समय त्रुटि, कृपया पुनः प्रयास करें!"},signature:{waiting:"हस्ताक्षर का इंतजार कर रहा है...",verifying:"हस्ताक्षर की पुष्टि की जा रही है...",signing_error:"संदेश पर हस्ताक्षर करते समय त्रुटि, कृपया पुनः प्रयास करें!",verifying_error:"हस्ताक्षर की पुष्टि में त्रुटि, कृपया पुनः प्रयास करें!",oops_error:"ओह, कुछ गलत हो गया!"}},hb0={label:"कनेक्ट करें",title:"वॉलेट को कनेक्ट करें",new_to_ethereum:{description:"Ethereum वॉलेट्स में नए हैं?",learn_more:{label:"और जानें"}},learn_more:{label:"और जानें।"},recent:"हाल ही में",status:{opening:"%{wallet}खोल रहा है...",not_installed:"%{wallet} स्थापित नहीं है",not_available:"%{wallet} उपलब्ध नहीं है",confirm:"एक्सटेंशन में कनेक्शन की पुष्टि करें"},secondary_action:{get:{description:"क्या आपके पास %{wallet}नहीं है ?",label:"प्राप्त करें"},install:{label:"स्थापित करें"},retry:{label:"पुनः प्रयास करें"}},walletconnect:{description:{full:"क्या आपको आधिकारिक WalletConnect मोडल की आवश्यकता है?",compact:"क्या आपको WalletConnect मोडल की आवश्यकता है?"},open:{label:"खोलें"}}},Cb0={title:"स्कैन करें विथ %{wallet}",fallback_title:"अपने फोन से स्कैन करें"},mb0={recommended:"अनुशंसित",other:"अन्य",popular:"लोकप्रिय",more:"अधिक",others:"अन्य लोग"},bb0={title:"एक वॉलेट प्राप्त करें",action:{label:"प्राप्त करें"},mobile:{description:"मोबाइल वॉलेट"},extension:{description:"ब्राउज़र एक्सटेंशन"},mobile_and_extension:{description:"मोबाइल वॉलेट और एक्सटेंशन"},mobile_and_desktop:{description:"मोबाइल और डेस्कटॉप वॉलेट"},looking_for:{title:"क्या आपको जो चाहिए वह नहीं मिल रहा है?",mobile:{description:"मुख्य स्क्रीन पर एक बटुआ चुनें ताकि आप एक अलग बटुआ प्रदाता के साथ शुरू कर सकें।"},desktop:{compact_description:"मुख्य स्क्रीन पर एक बटुआ चुनें ताकि आप एक अलग बटुआ प्रदाता के साथ शुरू कर सकें।",wide_description:"बाएं एक बटुआ चुनें ताकि आप एक अलग बटुआ प्रदाता के साथ शुरू कर सकें।"}}},gb0={title:"%{wallet}के साथ शुरू करें",short_title:"%{wallet}प्राप्त करें",mobile:{title:"मोबाइल के लिए %{wallet}",description:"मोबाइल वॉलेट का उपयोग करके Ethereum की दुनिया का अन्वेषण करें।",download:{label:"ऐप प्राप्त करें"}},extension:{title:"%{wallet} के लिए %{browser}",description:"अपने पसंदीदा वेब ब्राउज़र से अपने वॉलेट तक पहुंचें।",download:{label:"करें जोड़ें %{browser}"}},desktop:{title:"%{wallet} के लिए %{platform}",description:"अपने शक्तिशाली डेस्कटॉप से आपके वॉलेट की स्वतंत्रता द्वारा पहुंच।",download:{label:"को जोड़ें %{platform}"}}},Ab0={title:"स्थापित करें %{wallet}",description:"iOS या Android पर डाउनलोड करने के लिए अपने फोन से स्कैन करें",continue:{label:"जारी रखें"}},yb0={mobile:{connect:{label:"जोड़ें"},learn_more:{label:"और जानें"}},extension:{refresh:{label:"ताज़ा करें"},learn_more:{label:"और जानें"}},desktop:{connect:{label:"कनेक्ट करें"},learn_more:{label:"और जानें"}}},vb0={title:"नेटवर्क स्विच करें",wrong_network:"गलत नेटवर्क का पता चला, जारी रखने के लिए स्विच करें या कनेक्ट करें।",confirm:"वॉलेट में पुष्टि करें",switching_not_supported:"आपका वॉलेट नेटवर्क्स को %{appName}से स्विच करना समर्थन नहीं करता . बजाय अपने वॉलेट के भीतर से नेटवर्क स्विच करने का प्रयास करें।",switching_not_supported_fallback:"आपका वॉलेट इस एप से नेटवर्क्स स्विच करने का समर्थन नहीं करता। बजाय उसके, अपना वॉलेट द्वारा नेटवर्क्स स्विच करने की कोशिश करें।",disconnect:"डिकनेक्ट",connected:"कनेक्ट किया गया"},Bb0={disconnect:{label:"डिकनेक्ट"},copy_address:{label:"पता कॉपी करें",copied:"कॉपी कर दिया गया!"},explorer:{label:"एक्सप्लोरर पर अधिक देखें"},transactions:{description:"%{appName} लेन - देन यहां दिखाई देंगे...",description_fallback:"आपके लेन-देन यहां दिखाई देंगे...",recent:{title:"हाल के लेन - देन"},clear:{label:"सभी को हटाएं"}}},Fb0={argent:{qr_code:{step1:{description:"अपने वॉलेट को जल्दी से एक्सेस करने के लिए आपके होम स्क्रीन पर Argent डालें।",title:"Argent ऐप खोलें"},step2:{description:"वॉलेट और उपयोगकर्ता नाम बनाएं, या मौजूदा वॉलेट को आयात करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"जैसे ही आप स्कैन करेंगे, एक कनेक्शन संकेत आपके वॉलेट को कनेक्ट करने के लिए प्रकट होगा।",title:"QR स्कैन बटन को टैप करें"}}},bifrost:{qr_code:{step1:{description:"हम आपको सलाह देते हैं कि Bifrost Wallet को अपने होम स्क्रीन पर लगाएं, ताकि त्वरित एक्सेस को सुनिश्चित किया जा सके।",title:"Bifrost Wallet ऐप को खोलें"},step2:{description:"अपने रिकवरी फ़्रेज़ का उपयोग करके एक वॉलेट बनाएं या इंपोर्ट करें।",title:"वॉलेट बनाएं या इंपोर्ट करें"},step3:{description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत दिखाई देगा।",title:"स्कैन बटन को टैप करें"}}},bitget:{qr_code:{step1:{description:"हम इसे सुझाव देते हैं कि आप अपने होम स्क्रीन पर Bitget वॉलेट को रखें ताकि जल्दी एक्सेस कर सकें।",title:"Bitget वॉलेट एप को खोलें"},step2:{description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने का एक संकेत दिखाई देगा।",title:"स्कैन बटन पर टैप करें"}},extension:{step1:{description:"हम इसे सुझाव देते हैं कि आप Bitget वॉलेट को आपके टास्कबार में पिन करें ताकि आपके वॉलेट तक जल्दी पहुंच सकें।",title:"Bitget Wallet एक्सटेंशन स्थापित करें"},step2:{description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप किसी सुरक्षित तरीके से ले रहे हैं। अपनी गुप्त वाक्यांश को कभी किसी के साथ साझा न करें।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।",title:"अपने ब्राउज़र को ताज़ा करें"}}},bitski:{extension:{step1:{description:"हम आपको अपने वॉलेट तक जल्दी पहुंचने के लिए Bitski को अपने टास्कबार में पिन करने की सलाह देते हैं।",title:"Bitski एक्सटेंशन स्थापित करें"},step2:{description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके से अपने वॉलेट का बैकअप बना रहे हैं। कभी भी किसी के साथ अपने गोपनीय वाक्यांश को साझा न करें।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपना वॉलेट सेट कर लेते हैं, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।",title:"अपने ब्राउज़र को ताज़ा करें"}}},coin98:{qr_code:{step1:{description:"हम आपके वॉलेट तक तेजी से पहुंचने के लिए अपने होम स्क्रीन पर Coin98 वॉलेट रखने की सलाह देते हैं।",title:"Coin98 वॉलेट ऐप को खोलें"},step2:{description:"आप अपने फोन पर हमारे बैकअप फीचर का उपयोग करके आसानी से अपने वॉलेट का बैकअप कर सकते हैं।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन प्रांप्ट दिखाई देगा।",title:"WalletConnect बटन पर टैप करें"}},extension:{step1:{description:"अपने ब्राउज़र के ऊपरी दाएं हिस्से पर क्लिक करें और आसानी से पहुंच के लिए Coin98 वॉलेट को पिन करें।",title:"Coin98 वॉलेट एक्सटेंशन स्थापित करें"},step2:{description:"नया बटुआ बनाएं या मौजूदा को आयात करें।",title:"एक बटुआ बनाएं या आयात करें"},step3:{description:"एक बार जब आप Coin98 वॉलेट सेट करते हैं, तो नीचे क्लिक करके ब्राउजर को ताजा करें और एक्सटेंशन को लोड करें।",title:"अपने ब्राउज़र को ताज़ा करें"}}},coinbase:{qr_code:{step1:{description:"हम आपको सलाह देते हैं कि आपकी मुख्य बिल्ड स्क्रीन पर Coinbase वॉलेट को रखें जिससे आपकी पहुंच तेज हो।",title:"Coinbase वॉलेट ऐप खोलें"},step2:{description:"आप बादल बैकअप सुविधा का उपयोग करके आसानी से अपने वॉलेट का बैकअप ले सकते हैं।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"जैसे ही आप स्कैन करते हैं, आपको अपने वॉलेट से कनेक्ट करने के लिए एक कनेक्शन संकेत दिखाई देगा।",title:"स्कैन बटन को छूना"}},extension:{step1:{description:"हमारा सिफारिश है कि आप अपने वॉलेट तक जल्दी पहुंचने के लिए Coinbase वॉलेट को अपने टास्कबार पर पिन पर रखें।",title:"Coinbase वॉलेट एक्सटेंशन स्थापित करें"},step2:{description:"सुरक्षित विधि का उपयोग करके अपने बटुए का बैकअप लेना सुनिश्चित करें। अपना गुप्त पुनर्प्राप्ति वाक्यांश कभी भी किसी के साथ साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपना वॉलेट सेट अप करते हैं, तो ब्राउज़र को ताजगी देने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें.",title:"अपना ब्राउज़र ताजा करें"}}},core:{qr_code:{step1:{description:"हम आपकी वॉलेट के तेज एक्सेस के लिए Core को आपके होम स्क्रीन पर डालने की सलाह देते हैं.",title:"Core एप खोलें"},step2:{description:"आप आसानी से अपने फ़ोन पर हमारे बैकअप फीचर का उपयोग करके अपना वॉलेट बैकअप कर सकते हैं.",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए आपके लिए कनेक्शन प्राम्प्ट प्रकट होगा.",title:"WalletConnect बटन को छूने के साथ"}},extension:{step1:{description:"हम अपने वॉलेट के लिए तेज एक्सेस के लिए कोर को अपने टास्कबार में पिन करने की सिफारिश करते हैं।",title:"कोर एक्सटेंशन स्थापित करें"},step2:{description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से ले। कभी भी किसी के साथ अपनी गुप्त वाक्यांश साझा न करें।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपने वॉलेट की स्थापना कर लें, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा कर सकें और एक्सटेंशन को लोड कर सकें।",title:"अपने ब्राउज़र को ताज़ा करें"}}},fox:{qr_code:{step1:{description:"हम FoxWallet को अपने होम स्क्रीन पर रखने की सिफारिश करते हैं ताकि त्वरित एक्सेस मिल सके।",title:"FoxWallet ऐप खोलें"},step2:{description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके का उपयोग करके अपने वॉलेट का बैकअप ले रहे हैं। कभी भी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"जब आप स्कैन करेंगे, तो आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत प्रकट होगा।",title:"स्कैन बटन पर टैप करें"}}},frontier:{qr_code:{step1:{description:"हमारी सिफारिश है कि आप अपने होम स्क्रीन पर फ्रंटियर वॉलेट रखें जिससे कि आपको त्वरित पहुंच मिले।",title:"फ्रंटियर वॉलेट ऐप को खोलें"},step2:{description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके का उपयोग करके अपने वॉलेट का बैकअप ले रहे हैं। कभी भी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"जब आप स्कैन करते हैं, तो आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत प्रकट होगा।",title:"स्कैन बटन को टैप करें"}},extension:{step1:{description:"हम आपके वॉलेट की तेजी से पहुंच के लिए Frontier Wallet को अपने टास्कबार में पिन करने की सिफारिश करते हैं।",title:"Frontier Wallet एक्सटेंशन इंस्टॉल करें"},step2:{description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके से अपना वॉलेट बैकअप कर रहे हैं। कभी भी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"वॉलेट सेटअप होने के बाद, ब्राउज़र को रिफ्रेश करने के लिए नीचे क्लिक करें और एक्सटेंशन लोड करें।",title:"अपना ब्राउज़र रिफ्रेश करें"}}},im_token:{qr_code:{step1:{title:"imToken ऐप खोलें",description:"अपने वॉलेट के तेजी से पहुँच के लिए imToken एप्लीकेशन को अपने होम स्क्रीन पर रखें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा एक को आयात करें।"},step3:{title:"ऊपरी दाएं कोने में स्कैनर आइकॉन पर टैप करें",description:"नया कनेक्शन चुनें, फिर QR कोड स्कैन करें और कनेक्ट करने के लिए प्रॉम्प्ट की पुष्टि करें।"}}},metamask:{qr_code:{step1:{title:"MetaMask ऐप को खोलें",description:"हम आपको MetaMask को आपकी होम स्क्रीन पर रखने की सलाह देते हैं, इससे आपको त्वरित पहुँच मिलेगी।"},step2:{title:"एक वॉलेट बनाएं या इम्पोर्ट करें",description:"सुरक्षित विधि का उपयोग करके अपने बटुए का बैकअप लेना सुनिश्चित करें। अपना गुप्त वाक्यांश कभी भी किसी के साथ साझा न करें।"},step3:{title:"स्कैन बटन पर टैप करें",description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन प्रॉम्प्ट दिखाई देगा।"}},extension:{step1:{title:"MetaMask एक्सटेंशन स्थापित करें",description:"हम अपने वॉलेट तक जल्दी से पहुँचने के लिए MetaMask को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेना सुनिश्चित करें। अपनी गुप्त वाक्यांश को किसी के साथ शेयर न करें।"},step3:{title:"अपना ब्राउज़र ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेट अप करते हैं, तो ब्राउजर को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},okx:{qr_code:{step1:{title:"OKX Wallet ऐप खोलें",description:"हम आपको OKX Wallet को अपने होम स्क्रीन पर रखने की सलाह देते हैं, जिससे आप जल्दी से पहुंच सकें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने का यकीन करें। कभी भी किसी के साथ अपने गुप्त वाक्यांश साझा न करें।"},step3:{title:"स्कैन बटन पर टैप करें",description:"जब आप स्कैन करते हैं, तो आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत प्रकट होगा।"}},extension:{step1:{title:"OKX वॉलेट एक्सटेंशन स्थापित करें",description:"हम अपने वॉलेट तक तेज़ी से पहुंचने के लिए आपको OKX वॉलेट को अपने कार्यपट्टी में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने का यकीन करें। कभी भी किसी के साथ अपने गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"जब आप अपना वॉलेट सेट अप कर लेते हैं, तो नीचे क्लिक करके ब्राउज़र को ताजा करें और एक्सटेंशन को लोड करें।"}}},omni:{qr_code:{step1:{title:"Omni ऐप को खोलें",description:"अपने वॉलेट तक अधिक जल्दी पहुंचने के लिए Omni को अपने होम स्क्रीन पर जोड़ें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा एक को आयात करें।"},step3:{title:"QR आइकन पर टैप करें और स्कैन करें",description:"अपने होम स्क्रीन पर QR आइकन पर टैप करें, कोड स्कैन करें और कनेक्ट करने के लिए प्रॉम्प्ट की पुष्टि करें।"}}},token_pocket:{qr_code:{step1:{title:"TokenPocket ऐप को खोलें",description:"हम आपको TokenPocket को अपने होम स्क्रीन पर रखने की सलाह देते हैं ताकि आपको तेज एक्सेस मिल सके।"},step2:{title:"एक वॉलेट बनाएँ या आयात करें",description:"सुरक्षित विधि का उपयोग करके अपने बटुए का बैकअप लेना सुनिश्चित करें। अपना गुप्त वाक्यांश कभी भी किसी के साथ साझा न करें।"},step3:{title:"स्कैन बटन पर टैप करें",description:"एक बार स्कैन करने के बाद, आपके लिए एक कनेक्शन प्रॉम्प्ट प्रकट होगा ताकि आप अपने वॉलेट को कनेक्ट कर सकें।"}},extension:{step1:{title:"TokenPocket एक्सटेंशन स्थापित करें",description:"हम अपने वॉलेट तक त्वरित पहुंच के लिए TokenPocket को अपने taskbar पर pin करने की सिफारिश करते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेते हैं। कभी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपना ब्राउज़र ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताज़ा ब्राउज़र लोड करें और एक्सटेंशन अप करें।"}}},trust:{qr_code:{step1:{title:"Trust Wallet ऐप खोलें",description:"अपने वॉलेट तक तेज़ी से पहुंचने के लिए Trust Wallet को अपने होम स्क्रीन पर रखें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा वॉलेट आयात करें।"},step3:{title:"सेटिंग्स में WalletConnect को टैप करें",description:"नया कनेक्शन चुनें, फिर QR कोड स्कैन करें और प्रम्प्ट की पुष्टि करें।"}},extension:{step1:{title:"Trust Wallet एक्सटेंशन को इंस्टॉल करें",description:"अपने ब्राउज़र के ऊपरी दाएं कोने पर क्लिक करें और Trust Wallet को आसानी से प्रवेश के लिए पिन करें।"},step2:{title:"एक वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा वॉलेट आयात करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार Trust Wallet सेट अप करने के बाद, नीचे क्लिक करें ब्राउज़र को ताज़ा करने और एक्सटेंशन लोड करने के लिए।"}}},uniswap:{qr_code:{step1:{title:"Uniswap ऐप को खोलें",description:"अपने होम स्क्रीन पर Uniswap वॉलेट जोड़ें, इससे आपके वॉलेट तक तेजी से पहुंचने की सुविधा होगी।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा वॉलेट को आयात करें।"},step3:{title:"QR आइकन पर टैप करें और स्कैन करें",description:"अपने होमस्क्रीन पर QR आइकन पर टैप करें, कोड स्कैन करें और प्रम्प्ट को कनेक्ट करने की पुष्टि करें।"}}},zerion:{qr_code:{step1:{title:"Zerion ऐप को खोलें",description:"हम सलाह देते हैं कि आप Zerion को अपने होम स्क्रीन पर रखें, इससे तेजी से एक्सेस करने में आसानी होगी।"},step2:{title:"एक वॉलेट बनाएं या आयात करें",description:"सुरक्षित विधि का उपयोग करके अपने बटुए का बैकअप लेना सुनिश्चित करें। अपना गुप्त वाक्यांश कभी भी किसी के साथ साझा न करें।"},step3:{title:"स्कैन बटन को टैप करें",description:"आप स्कैन करने के बाद, एक कनेक्शन प्रोम्प्ट आपके बटुए को कनेक्ट करने के लिए प्रकट होगा।"}},extension:{step1:{title:"Zerion एक्सटेंशन स्थापित करें",description:"हमारी सिफारिश है कि आप अपने वॉलेट तक जल्दी पहुँचने के लिए Zerion को अपने टास्कबार में पिन करें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप एक सुरक्षित विधि का उपयोग करके अपने वॉलेट का बैकअप ले रहे हैं। अपना गुप्त वाक्य कभी किसी के साथ साझा न करें।"},step3:{title:"अपना ब्राउज़र ताज़ा करें",description:"एक बार जब आप अपने वॉलेट की स्थापना कर लें, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},rainbow:{qr_code:{step1:{title:"Rainbow ऐप को खोलें",description:"हम अपने वॉलेट के तेज एक्सेस के लिए Rainbow को अपने होम स्क्रीन पर रखने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"आप अपने फ़ोन पर हमारे बैकअप फीचर का उपयोग करके अपने वॉलेट का बैकअप आसानी से ले सकते हैं।"},step3:{title:"स्कैन बटन पर टैप करें",description:"जब आप स्कैन करते हैं, तो आपकी वॉलेट से कनेक्ट करने के लिए एक कनेक्शन संकेत दिखाई देगा।"}}},enkrypt:{extension:{step1:{description:"हम अपनी वॉलेट तक तेज़ी से पहुँच के लिए Enkrypt वॉलेट को अपने टास्कबार में पिन करने की सलाह देते हैं।",title:"Enkrypt वॉलेट एक्सटेंशन स्थापित करें"},step2:{description:"सुनिश्चित करें कि आप अपनी वॉलेट का बैकअप एक सुरक्षित तरीके से ले। अपनी गुप्त वाक्यांश को कभी भी किसी के साथ साझा न करें।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपनी वॉलेट सेट कर लें, तो नीचे क्लिक करें ब्राउज़र को ताज़ा करने और एक्सटेंशन लोड करने के लिए।",title:"अपने ब्राउज़र को ताज़ा करें"}}},frame:{extension:{step1:{description:"हम अपनी वॉलेट तक तेज़ी से पहुँच के लिए Frame को अपने टास्कबार में पिन करने की सलाह देते हैं।",title:"Frame और साथी एक्सटेंशन स्थापित करें"},step2:{description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेना सुनिश्चित करें। कभी भी अपनी गुप्त वाक्यांश को किसी के साथ साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपने वॉलेट की सेटअप कर लेते हैं, तो नीचे क्लिक करके ब्राउज़र को ताज़ा करें और एक्सटेंशन को लोड करें।",title:"अपना ब्राउज़र ताज़ा करें"}}},one_key:{extension:{step1:{title:"OneKey Wallet एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट की तेज एक्सेस के लिए OneKey Wallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से ले रहे हैं। अपना गुप्त वाक्यांश किसी के साथ भी साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेट अप कर लेते हैं, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},phantom:{extension:{step1:{title:"फैंटम एक्सटेंशन स्थापित करें",description:"हम आपके वॉलेट के आसान उपयोग के लिए फैंटम को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"एक वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से ले रहे हैं। अपना गुप्त वसूली वाक्यांश किसी के साथ भी साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेट कर लें, तो ब्राउज़र को ताजगी देने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},rabby:{extension:{step1:{title:"Rabby एक्सटेंशन स्थापित करें",description:"हम आपको सलाह देते हैं कि अपने वॉलेट की जल्दी से पहुँच के लिए Rabby को अपने टास्कबार में पिन करें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेते हैं। कभी भी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपना ब्राउज़र ताज़ा करें",description:"जब आप अपना वॉलेट सेट अप कर लेते हैं, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन लोड करने के लिए नीचे क्लिक करें।"}}},safeheron:{extension:{step1:{title:"कोर एक्सटेंशन स्थापित करें",description:"हम आपको सलाह देते हैं कि अपने वॉलेट की जल्दी से पहुँच के लिए Safeheron को अपने टास्कबार में पिन करें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके से अपना वॉलेट बैकअप कर रहे हैं। कभी भी किसी के साथ अपने गुप्त वाक्यांश को साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपने वॉलेट को सेट अप करते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन को लोड करें।"}}},taho:{extension:{step1:{title:"ताहो एक्सटेंशन स्थापित करें",description:"हम आपके वॉलेट तक त्वरित पहुँच के लिए ताहो को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"एक वॉलेट बनाएँ या आयात करें",description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके से अपना वॉलेट बैकअप कर रहे हैं। कभी भी किसी के साथ अपने गुप्त वाक्यांश को साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना बटुआ सेट कर लेते हैं, तो नीचे क्लिक करके ब्राउज़र को ताज़ा करें और एक्सटेंशन को लोड करें।"}}},talisman:{extension:{step1:{title:"तालिसमान एक्सटेंशन स्थापित करें",description:"हम आपके बटुए के त्वरित पहुँच के लिए तालिसमान को अपने टास्कबार में पिन करने की सिफारिश करते हैं।"},step2:{title:"एक ईथेरियम बटुए बनाएं या आयात करें",description:"अपने बटुए का बैकअप एक सुरक्षित तरीके से लेने का ध्यान रखें। कभी भी अपनी वसूली वाक्यांश को किसी के साथ साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना बटुआ सेट कर लेते हैं, तो नीचे क्लिक करके ब्राउज़र को ताज़ा करें और एक्सटेंशन को लोड करें।"}}},xdefi:{extension:{step1:{title:"XDEFI वॉलेट एक्सटेंशन स्थापित करें",description:"हम आपकी वॉलेट की जल्दी से पहुँच के लिए XDEFI Wallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"एक वॉलेट बनाएं या आयात करें",description:"निश्चित रूप से अपने वॉलेट का बैकअप किसी सुरक्षित तरीके से लें। अपनी गोपनीय वाक्यांश को किसी के साथ शेयर ना करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आपने अपनी वॉलेट सेट अप कर ली हो, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},zeal:{extension:{step1:{title:"Zeal एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट तक जल्दी पहुँचने के लिए Zeal को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।"}}},safepal:{extension:{step1:{title:"SafePal Wallet एक्सटेंशन स्थापित करें",description:"अपने ब्राउज़र के शीर्ष दाएं में क्लिक करें और SafePal Wallet को आसानी से पहुंच के लिए पिन करें।"},step2:{title:"एक बटुआ बनाएं या आयात करें",description:"नया बटुआ बनाएं या मौजूदा को आयात करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप SafePal वॉलेट सेट अप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को रिफ्रेश करें और एक्सटेंशन लोड करें।"}},qr_code:{step1:{title:"SafePal वॉलेट ऐप खोलें",description:"अपने वॉलेट तक जल्दी पहुंचने के लिए SafePal वॉलेट को अपनी होम स्क्रीन पर रखें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"नया बटुआ बनाएं या मौजूदा को आयात करें।"},step3:{title:"सेटिंग्स में WalletConnect को टैप करें",description:"नया कनेक्शन चुनें, फिर QR कोड स्कैन करें और कनेक्ट करने के लिए प्रॉम्प्ट की पुष्टि करें।"}}},desig:{extension:{step1:{title:"Desig एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट के लिए आसानी से पहुंच पाने के लिए Desig को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"एक वॉलेट बनाएँ",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।"}}},subwallet:{extension:{step1:{title:"SubWallet एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट तक तेजी से पहुंचने के लिए SubWallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने बटुए का बैकअप एक सुरक्षित तरीके से लेने का ध्यान रखें। कभी भी अपनी वसूली वाक्यांश को किसी के साथ साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।"}},qr_code:{step1:{title:"SubWallet ऐप खोलें",description:"हम आपको तेजी से पहुंचने के लिए SubWallet को अपने होम स्क्रीन पर रखने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"स्कैन बटन को टैप करें",description:"जैसे ही आप स्कैन करेंगे, एक कनेक्शन संकेत आपके वॉलेट को कनेक्ट करने के लिए प्रकट होगा।"}}},clv:{extension:{step1:{title:"CLV Wallet एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट तक तेजी से पहुंचने के लिए CLV Wallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।"}},qr_code:{step1:{title:"CLV वॉलेट ऐप खोलें",description:"हम तीव्र पहुंच के लिए आपके होम स्क्रीन पर CLV वॉलेट रखने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"स्कैन बटन को टैप करें",description:"जैसे ही आप स्कैन करेंगे, एक कनेक्शन संकेत आपके वॉलेट को कनेक्ट करने के लिए प्रकट होगा।"}}},okto:{qr_code:{step1:{title:"Okto ऐप को खोलें",description:"त्वरित पहुंच के लिए अपने होम स्क्रीन पर Okto जोड़ें"},step2:{title:"एक MPC वॉलेट बनाएं",description:"एक खाता बनाएं और वॉलेट उत्पन्न करें"},step3:{title:"सेटिंग्स में WalletConnect को टैप करें",description:"ऊपरी दाएँ में स्कैन QR आइकन को टैप करें और कनेक्ट करने के लिए संकेत दें।"}}},ledger:{desktop:{step1:{title:"लेजर लाइव ऐप खोलें",description:"हम तेज एक्सेस के लिए अपने होम स्क्रीन पर Ledger Live डालने की सिफारिश करते हैं।"},step2:{title:"अपना लेजर सेट करें",description:"एक नया लेजर सेट अप करें या मौजूदा वाले से कनेक्ट करें।"},step3:{title:"कनेक्ट करें",description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन प्रॉम्प्ट दिखाई देगा।"}},qr_code:{step1:{title:"लेजर लाइव ऐप खोलें",description:"हम तेज एक्सेस के लिए अपने होम स्क्रीन पर Ledger Live डालने की सिफारिश करते हैं।"},step2:{title:"अपना लेजर सेट करें",description:"आप डेस्कटॉप ऐप के साथ सिंक कर सकते हैं या अपने Ledger को कनेक्ट कर सकते हैं।"},step3:{title:"कोड स्कैन करें",description:"WalletConnect पर टैप करें फिर स्कैनर पर स्विच करें। जब आप स्कैन करेंगे, तो आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत प्रकट होगा।"}}}},Aw={connect_wallet:db0,intro:Eb0,sign_in:pb0,connect:hb0,connect_scan:Cb0,connector_group:mb0,get:bb0,get_options:gb0,get_mobile:Ab0,get_instructions:yb0,chains:vb0,profile:Bb0,wallet_connectors:Fb0},Db0={label:"Hubungkan Dompet"},wb0={title:"Apa itu Dompet?",description:"Sebuah dompet digunakan untuk mengirim, menerima, menyimpan, dan menampilkan aset digital. Ini juga cara baru untuk masuk, tanpa perlu membuat akun dan kata sandi baru di setiap situs web.",digital_asset:{title:"Sebuah Rumah untuk Aset Digital Anda",description:"Dompet digunakan untuk mengirim, menerima, menyimpan, dan menampilkan aset digital seperti Ethereum dan NFTs."},login:{title:"Cara Baru untuk Masuk",description:"Alih-alih membuat akun dan kata sandi baru di setiap situs web, cukup hubungkan dompet Anda."},get:{label:"Dapatkan Dompet"},learn_more:{label:"Pelajari lebih lanjut"}},xb0={label:"Verifikasi akun Anda",description:"Untuk menyelesaikan koneksi, Anda harus menandatangani sebuah pesan di dompet Anda untuk memastikan bahwa Anda adalah pemilik dari akun ini.",message:{send:"Kirim pesan",preparing:"Mempersiapkan pesan...",cancel:"Batal",preparing_error:"Kesalahan dalam mempersiapkan pesan, silakan coba lagi!"},signature:{waiting:"Menunggu tanda tangan...",verifying:"Memverifikasi tanda tangan...",signing_error:"Kesalahan dalam menandatangani pesan, silakan coba lagi!",verifying_error:"Kesalahan dalam memverifikasi tanda tangan, silakan coba lagi!",oops_error:"Ups, ada yang salah!"}},kb0={label:"Hubungkan",title:"Hubungkan Dompet",new_to_ethereum:{description:"Baru dalam dompet Ethereum?",learn_more:{label:"Pelajari lebih lanjut"}},learn_more:{label:"Pelajari lebih lanjut"},recent:"Terkini",status:{opening:"Membuka %{wallet}...",not_installed:"%{wallet} tidak terpasang",not_available:"%{wallet} tidak tersedia",confirm:"Konfirmasikan koneksi di ekstensi"},secondary_action:{get:{description:"Tidak memiliki %{wallet}?",label:"DAPATKAN"},install:{label:"PASANG"},retry:{label:"COBA LAGI"}},walletconnect:{description:{full:"Perlu modal resmi WalletConnect?",compact:"Perlu modal WalletConnect?"},open:{label:"BUKA"}}},_b0={title:"Pindai dengan %{wallet}",fallback_title:"Pindai dengan ponsel Anda"},Sb0={recommended:"Direkomendasikan",other:"Lainnya",popular:"Populer",more:"Lebih Banyak",others:"Lainnya"},Tb0={title:"Dapatkan Dompet",action:{label:"DAPATKAN"},mobile:{description:"Dompet Mobile"},extension:{description:"Ekstensi Browser"},mobile_and_extension:{description:"Dompet Mobile dan Ekstensi"},mobile_and_desktop:{description:"Dompet Seluler dan Desktop"},looking_for:{title:"Bukan yang Anda cari?",mobile:{description:"Pilih dompet di layar utama untuk memulai dengan penyedia dompet yang berbeda."},desktop:{compact_description:"Pilih dompet di layar utama untuk memulai dengan penyedia dompet yang berbeda.",wide_description:"Pilih dompet di sebelah kiri untuk memulai dengan penyedia dompet yang berbeda."}}},Pb0={title:"Mulai dengan %{wallet}",short_title:"Dapatkan %{wallet}",mobile:{title:"%{wallet} untuk Mobile",description:"Gunakan dompet mobile untuk menjelajahi dunia Ethereum.",download:{label:"Dapatkan aplikasinya"}},extension:{title:"%{wallet} untuk %{browser}",description:"Akses dompet Anda langsung dari browser web favorit Anda.",download:{label:"Tambahkan ke %{browser}"}},desktop:{title:"%{wallet} untuk %{platform}",description:"Akses dompet Anda secara native dari desktop yang kuat Anda.",download:{label:"Tambahkan ke %{platform}"}}},Ib0={title:"Instal %{wallet}",description:"Pindai dengan ponsel Anda untuk mengunduh di iOS atau Android",continue:{label:"Lanjutkan"}},Ob0={mobile:{connect:{label:"Hubungkan"},learn_more:{label:"Pelajari lebih lanjut"}},extension:{refresh:{label:"Segarkan"},learn_more:{label:"Pelajari lebih lanjut"}},desktop:{connect:{label:"Hubungkan"},learn_more:{label:"Pelajari lebih lanjut"}}},Rb0={title:"Alihkan Jaringan",wrong_network:"Jaringan yang salah terdeteksi, alihkan atau diskonek untuk melanjutkan.",confirm:"Konfirmasi di Dompet",switching_not_supported:"Dompet Anda tidak mendukung pengalihan jaringan dari %{appName}. Coba alihkan jaringan dari dalam dompet Anda.",switching_not_supported_fallback:"Wallet Anda tidak mendukung penggantian jaringan dari aplikasi ini. Cobalah ganti jaringan dari dalam wallet Anda.",disconnect:"Putuskan koneksi",connected:"Terkoneksi"},Nb0={disconnect:{label:"Putuskan koneksi"},copy_address:{label:"Salin Alamat",copied:"Tersalin!"},explorer:{label:"Lihat lebih banyak di penjelajah"},transactions:{description:"%{appName} transaksi akan muncul di sini...",description_fallback:"Transaksi Anda akan muncul di sini...",recent:{title:"Transaksi Terbaru"},clear:{label:"Hapus Semua"}}},Mb0={argent:{qr_code:{step1:{description:"Letakkan Argent di layar utama Anda untuk akses lebih cepat ke dompet Anda.",title:"Buka aplikasi Argent"},step2:{description:"Buat dompet dan nama pengguna, atau impor dompet yang ada.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menghubungkan dompet Anda.",title:"Tekan tombol Scan QR"}}},bifrost:{qr_code:{step1:{description:"Kami merekomendasikan untuk menempatkan Bifrost Wallet di layar utama anda untuk akses yang lebih cepat.",title:"Buka aplikasi Bifrost Wallet"},step2:{description:"Buat atau impor sebuah dompet menggunakan frasa pemulihan Anda.",title:"Buat atau Impor sebuah Wallet"},step3:{description:"Setelah Anda memindai, sebuah pesan akan muncul untuk menghubungkan dompet Anda.",title:"Tekan tombol scan"}}},bitget:{qr_code:{step1:{description:"Kami menyarankan untuk meletakkan Bitget Wallet di layar depan Anda untuk akses yang lebih cepat.",title:"Buka aplikasi Bitget Wallet"},step2:{description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda pindai, akan muncul petunjuk untuk menghubungkan wallet Anda.",title:"Tekan tombol pindai"}},extension:{step1:{description:"Kami menyarankan untuk memasang Bitget Wallet ke taskbar Anda untuk akses yang lebih cepat ke wallet Anda.",title:"Instal ekstensi Dompet Bitget"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frasa rahasia Anda kepada siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},bitski:{extension:{step1:{description:"Kami merekomendasikan untuk memasang Bitski ke taskbar Anda untuk akses dompet Anda yang lebih cepat.",title:"Pasang ekstensi Bitski"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},coin98:{qr_code:{step1:{description:"Kami merekomendasikan untuk menaruh Coin98 Wallet di layar utama Anda untuk akses wallet Anda lebih cepat.",title:"Buka aplikasi Coin98 Wallet"},step2:{description:"Anda dapat dengan mudah mencadangkan wallet Anda menggunakan fitur cadangan kami di telepon Anda.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda melakukan pemindaian, akan muncul prompt koneksi untuk Anda menghubungkan wallet Anda.",title:"Ketuk tombol WalletConnect"}},extension:{step1:{description:"Klik di pojok kanan atas browser Anda dan sematkan Coin98 Wallet untuk akses mudah.",title:"Pasang ekstensi Coin98 Wallet"},step2:{description:"Buat dompet baru atau impor yang sudah ada.",title:"Buat atau Impor sebuah dompet"},step3:{description:"Setelah Anda menyiapkan Coin98 Wallet, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},coinbase:{qr_code:{step1:{description:"Kami merekomendasikan memasang Coinbase Wallet di layar utama Anda untuk akses yang lebih cepat.",title:"Buka aplikasi Coinbase Wallet"},step2:{description:"Anda dapat dengan mudah mencadangkan dompet Anda menggunakan fitur cadangan awan.",title:"Buat atau Impor sebuah Dompet"},step3:{description:"Setelah Anda memindai, akan muncul sebuah petunjuk koneksi untuk Anda menyambungkan dompet Anda.",title:"Ketuk tombol pindai"}},extension:{step1:{description:"Kami merekomendasikan untuk menempel Coinbase Wallet ke taskbar Anda untuk akses lebih cepat ke dompet Anda.",title:"Instal ekstensi Coinbase Wallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun.",title:"Buat atau Import Wallet"},step3:{description:"Setelah Anda menyiapkan wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},core:{qr_code:{step1:{description:"Kami merekomendasikan untuk meletakkan Core di layar utama Anda untuk akses lebih cepat ke wallet Anda.",title:"Buka aplikasi Core"},step2:{description:"Anda dapat dengan mudah mencadangkan wallet Anda dengan menggunakan fitur cadangan kami di telepon Anda.",title:"Buat atau Import Wallet"},step3:{description:"Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menyambungkan wallet Anda.",title:"Ketuk tombol WalletConnect"}},extension:{step1:{description:"Kami merekomendasikan untuk menempelkan Core pada taskbar Anda untuk akses ke dompet Anda lebih cepat.",title:"Pasang ekstensi Core"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},fox:{qr_code:{step1:{description:"Kami merekomendasikan untuk menaruh FoxWallet pada layar utama Anda untuk akses lebih cepat.",title:"Buka aplikasi FoxWallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda memindai, prompt koneksi akan muncul untuk Anda hubungkan dompet Anda.",title:"Ketuk tombol pindai"}}},frontier:{qr_code:{step1:{description:"Kami merekomendasikan untuk meletakkan Frontier Wallet di layar awal Anda untuk akses yang lebih cepat.",title:"Buka aplikasi Frontier Wallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda memindai, prompt koneksi akan muncul untuk Anda menghubungkan dompet Anda.",title:"Ketuk tombol pindai"}},extension:{step1:{description:"Kami menyarankan menempelkan Frontier Wallet ke taskbar Anda untuk akses yang lebih cepat ke dompet Anda.",title:"Instal ekstensi Frontier Wallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},im_token:{qr_code:{step1:{title:"Buka aplikasi imToken",description:"Letakkan aplikasi imToken di layar utama Anda untuk akses yang lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Ketuk Ikon Scanner di pojok kanan atas",description:"Pilih Koneksi Baru, lalu pindai kode QR dan konfirmasi petunjuk untuk terhubung."}}},metamask:{qr_code:{step1:{title:"Buka aplikasi MetaMask",description:"Kami merekomendasikan untuk meletakkan MetaMask di layar beranda Anda untuk akses yang lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun."},step3:{title:"Ketuk tombol pindai",description:"Setelah Anda memindai, petunjuk koneksi akan muncul untuk Anda menyambungkan dompet Anda."}},extension:{step1:{title:"Pasang ekstensi MetaMask",description:"Kami menyarankan untuk memasang MetaMask pada taskbar Anda untuk akses wallet lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},okx:{qr_code:{step1:{title:"Buka aplikasi OKX Wallet",description:"Kami menyarankan untuk menaruh OKX Wallet di layar utama Anda untuk akses lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frasa rahasia Anda kepada siapa pun."},step3:{title:"Ketuk tombol scan",description:"Setelah Anda memindai, prompt koneksi akan muncul untuk Anda hubungkan dompet Anda."}},extension:{step1:{title:"Instal ekstensi OKX Wallet",description:"Kami menyarankan untuk menempelkan OKX Wallet ke taskbar Anda untuk akses lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frasa rahasia Anda kepada siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},omni:{qr_code:{step1:{title:"Buka aplikasi Omni",description:"Tambahkan Omni ke layar utama Anda untuk akses yang lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Buat wallet baru atau impor yang sudah ada."},step3:{title:"Ketuk ikon QR dan scan",description:"Ketuk ikon QR di layar utama Anda, pindai kode dan konfirmasi petunjuk untuk terhubung."}}},token_pocket:{qr_code:{step1:{title:"Buka aplikasi TokenPocket",description:"Kami sarankan meletakkan TokenPocket di layar utama Anda untuk akses yang lebih cepat."},step2:{title:"Buat atau impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun."},step3:{title:"Ketuk tombol pindai",description:"Setelah Anda memindai, Indikasi sambungan akan muncul untuk Anda menghubungkan dompet Anda."}},extension:{step1:{title:"Instal ekstensi TokenPocket",description:"Kami merekomendasikan penambatan TokenPocket ke taskbar Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},trust:{qr_code:{step1:{title:"Buka aplikasi Trust Wallet",description:"Pasang Trust Wallet di layar utama Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Ketuk WalletConnect di Pengaturan",description:"Pilih Koneksi Baru, kemudian pindai kode QR dan konfirmasi perintah untuk terhubung."}},extension:{step1:{title:"Instal ekstensi Trust Wallet",description:"Klik di pojok kanan atas browser Anda dan sematkan Trust Wallet untuk akses mudah."},step2:{title:"Buat atau Impor dompet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur Trust Wallet, klik di bawah untuk menyegarkan browser dan memuat ekstensi."}}},uniswap:{qr_code:{step1:{title:"Buka aplikasi Uniswap",description:"Tambahkan Uniswap Wallet ke layar utama Anda untuk akses ke wallet Anda lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Buat wallet baru atau impor yang sudah ada."},step3:{title:"Ketuk ikon QR dan pindai",description:"Ketuk ikon QR di layar utama Anda, pindai kode dan konfirmasi prompt untuk terhubung."}}},zerion:{qr_code:{step1:{title:"Buka aplikasi Zerion",description:"Kami merekomendasikan untuk meletakkan Zerion di layar utama Anda untuk akses lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun."},step3:{title:"Ketuk tombol scan",description:"Setelah Anda scan, muncul prompt koneksi untuk Anda menghubungkan dompet Anda."}},extension:{step1:{title:"Instal ekstensi Zerion",description:"Kami menyarankan untuk menempelkan Zerion ke taskbar Anda untuk akses lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur wallet Anda, klik di bawah untuk menyegarkan browser dan memuat ekstensi."}}},rainbow:{qr_code:{step1:{title:"Buka aplikasi Rainbow",description:"Kami menyarankan menempatkan Rainbow di layar home Anda untuk akses yang lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Anda dapat dengan mudah mencadangkan wallet Anda menggunakan fitur cadangan kami di telepon Anda."},step3:{title:"Tekan tombol scan",description:"Setelah Anda memindai, akan muncul pesan untuk menghubungkan dompet Anda."}}},enkrypt:{extension:{step1:{description:"Kami menyarankan untuk memasang Enkrypt Wallet ke taskbar Anda untuk akses dompet yang lebih cepat.",title:"Instal ekstensi Enkrypt Wallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frase rahasia Anda dengan siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet, klik di bawah ini untuk memuat ulang peramban dan meload ekstensi.",title:"Segarkan browser Anda"}}},frame:{extension:{step1:{description:"Kami menyarankan untuk memasang Frame ke taskbar Anda untuk akses dompet yang lebih cepat.",title:"Instal Frame & ekstensi pendamping"},step2:{description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda menyetel wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},one_key:{extension:{step1:{title:"Instal ekstensi OneKey Wallet",description:"Kami menyarankan untuk menempelkan OneKey Wallet ke taskbar Anda untuk akses wallet yang lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},phantom:{extension:{step1:{title:"Instal ekstensi Phantom",description:"Kami menyarankan untuk mem-pin Phantom ke taskbar Anda untuk akses dompet yang lebih mudah."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},rabby:{extension:{step1:{title:"Instal ekstensi Rabby",description:"Kami merekomendasikan menempelkan Rabby ke taskbar Anda untuk akses lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan wallet Anda dengan metode yang aman. Jangan pernah berbagi frase rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},safeheron:{extension:{step1:{title:"Instal ekstensi Core",description:"Kami merekomendasikan menempelkan Safeheron ke taskbar Anda untuk akses lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan dompet Anda dengan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur dompet Anda, klik di bawah untuk menyegarkan browser dan memuat ekstensi."}}},taho:{extension:{step1:{title:"Instal ekstensi Taho",description:"Kami merekomendasikan pengepinan Taho ke taskbar Anda untuk akses yang lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda dengan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},talisman:{extension:{step1:{title:"Instal ekstensi Talisman",description:"Kami merekomendasikan menempelkan Talisman ke taskbar Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Dompet Ethereum",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frase pemulihan Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},xdefi:{extension:{step1:{title:"Instal ekstensi Dompet XDEFI",description:"Kami merekomendasikan menempelkan XDEFI Wallet ke taskbar Anda untuk akses lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda dengan metode yang aman. Jangan pernah berbagi frase rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},zeal:{extension:{step1:{title:"Instal ekstensi Zeal",description:"Kami merekomendasikan untuk mem-pin Zeal ke taskbar Anda untuk akses wallet lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},safepal:{extension:{step1:{title:"Pasang ekstensi SafePal Wallet",description:"Klik di pojok kanan atas browser Anda dan pin SafePal Wallet untuk akses mudah."},step2:{title:"Buat atau Impor sebuah dompet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan SafePal Wallet, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}},qr_code:{step1:{title:"Buka aplikasi SafePal Wallet",description:"Letakkan SafePal Wallet di layar utama Anda untuk akses yang lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Ketuk WalletConnect di Pengaturan",description:"Pilih Koneksi Baru, lalu pindai kode QR dan konfirmasi petunjuk untuk terhubung."}}},desig:{extension:{step1:{title:"Instal ekstensi Desig",description:"Kami merekomendasikan menempelkan Desig ke taskbar Anda untuk akses dompet Anda lebih mudah."},step2:{title:"Buat Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},subwallet:{extension:{step1:{title:"Instal ekstensi SubWallet",description:"Kami merekomendasikan menempelkan SubWallet ke taskbar Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frase pemulihan Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}},qr_code:{step1:{title:"Buka aplikasi SubWallet",description:"Kami merekomendasikan menaruh SubWallet di layar utama Anda untuk akses lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Tekan tombol scan",description:"Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menghubungkan dompet Anda."}}},clv:{extension:{step1:{title:"Instal ekstensi CLV Wallet",description:"Kami merekomendasikan menempelkan CLV Wallet ke taskbar Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}},qr_code:{step1:{title:"Buka aplikasi CLV Wallet",description:"Kami sarankan untuk menempatkan CLV Wallet di layar utama Anda untuk akses yang lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Tekan tombol scan",description:"Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menghubungkan dompet Anda."}}},okto:{qr_code:{step1:{title:"Buka aplikasi Okto",description:"Tambahkan Okto ke layar utama Anda untuk akses cepat"},step2:{title:"Buat Wallet MPC",description:"Buat akun dan generate wallet"},step3:{title:"Ketuk WalletConnect di Pengaturan",description:"Ketuk ikon Scan QR di pojok kanan atas dan konfirmasi prompt untuk terhubung."}}},ledger:{desktop:{step1:{title:"Buka aplikasi Ledger Live",description:"Kami merekomendasikan menempatkan Ledger Live di layar utama Anda untuk akses lebih cepat."},step2:{title:"Atur Ledger Anda",description:"Atur Ledger baru atau hubungkan ke Ledger yang sudah ada."},step3:{title:"Hubungkan",description:"Setelah Anda scan, muncul prompt koneksi untuk Anda menghubungkan dompet Anda."}},qr_code:{step1:{title:"Buka aplikasi Ledger Live",description:"Kami merekomendasikan menempatkan Ledger Live di layar utama Anda untuk akses lebih cepat."},step2:{title:"Atur Ledger Anda",description:"Anda dapat melakukan sinkronisasi dengan aplikasi desktop atau menghubungkan Ledger Anda."},step3:{title:"Pindai kode",description:"Ketuk WalletConnect lalu Beralih ke Scanner. Setelah Anda scan, muncul prompt koneksi untuk Anda menghubungkan dompet Anda."}}}},yw={connect_wallet:Db0,intro:wb0,sign_in:xb0,connect:kb0,connect_scan:_b0,connector_group:Sb0,get:Tb0,get_options:Pb0,get_mobile:Ib0,get_instructions:Ob0,chains:Rb0,profile:Nb0,wallet_connectors:Mb0},jb0={label:"ウォレットを接続"},zb0={title:"ウォレットとは何ですか?",description:"ウォレットは、デジタルアセットを送信、受信、保存、表示するために使用されます。また、各ウェブサイトで新たなアカウントやパスワードを作成する必要なく、ログインする新しい方法でもあります。",digital_asset:{title:"あなたのデジタル資産のための家",description:"ウォレットは、EthereumやNFTのようなデジタル資産を送信、受信、保存、表示するために使用されます。"},login:{title:"新しいログイン方法",description:"すべてのウェブサイトで新しいアカウントとパスワードを作成する代わりに、ウォレットを接続します。"},get:{label:"ウォレットを取得する"},learn_more:{label:"詳しくはこちら"}},Lb0={label:"アカウントを確認する",description:"接続を完了するには、このアカウントの所有者であることを証明するためにウォレットでメッセージに署名する必要があります。",message:{send:"メッセージを送信",preparing:"メッセージの準備中...",cancel:"キャンセル",preparing_error:"メッセージの準備中にエラーが発生しました、再試行してください!"},signature:{waiting:"署名を待っています...",verifying:"署名を検証中...",signing_error:"メッセージの署名中にエラーが発生しました、再試行してください!",verifying_error:"署名の検証中にエラーが発生しました、再試行してください!",oops_error:"おっと、何かが間違っていました!"}},$b0={label:"接続",title:"ウォレットを接続する",new_to_ethereum:{description:"Ethereumのウォレットが初めてですか?",learn_more:{label:"詳しくはこちら"}},learn_more:{label:"詳しくはこちら"},recent:"最近利用しました",status:{opening:"%{wallet}を開いています...",not_installed:"%{wallet} はインストールされていません",not_available:"%{wallet} は利用できません",confirm:"エクステンションで接続を確認してください"},secondary_action:{get:{description:"%{wallet}がありませんか?",label:"取得"},install:{label:"インストール"},retry:{label:"再試行"}},walletconnect:{description:{full:"公式のWalletConnectモーダルが必要ですか?",compact:"WalletConnectモーダルが必要ですか?"},open:{label:"開く"}}},Ub0={title:"%{wallet}でスキャン",fallback_title:"携帯電話でスキャンしてください"},Wb0={recommended:"おすすめのウォレット",other:"その他",popular:"人気のウォレット",more:"もっと",others:"その他"},qb0={title:"ウォレットを取得",action:{label:"取得"},mobile:{description:"モバイルウォレット"},extension:{description:"ブラウザ拡張"},mobile_and_extension:{description:"モバイルウォレットと拡張機能"},mobile_and_desktop:{description:"モバイルとデスクトップウォレット"},looking_for:{title:"お探しのウォレットがありませんか?",mobile:{description:"メイン画面でウォレットを選択し、異なるウォレットプロバイダーで始めてください。"},desktop:{compact_description:"メイン画面でウォレットを選択し、異なるウォレットプロバイダーで始めてください。",wide_description:"左側のウォレットを選択して、別のウォレットプロバイダーで始めてください。"}}},Hb0={title:"%{wallet}で始める",short_title:"%{wallet}を取得する",mobile:{title:"モバイル用 %{wallet}",description:"モバイルウォレットを使用して、イーサリアムの世界を探索します。",download:{label:"アプリを取得"}},extension:{title:"%{wallet} for %{browser}",description:"お好きなウェブブラウザからウォレットに直接アクセスします。",download:{label:"%{browser}に追加"}},desktop:{title:"%{wallet} for %{platform}",description:"あなたの強力なデスクトップからネイティブにウォレットにアクセスします。",download:{label:"%{platform}に追加する"}}},Gb0={title:"%{wallet}をインストール",description:"iOSまたはAndroidでダウンロードするために電話でスキャン",continue:{label:"続行"}},Vb0={mobile:{connect:{label:"接続"},learn_more:{label:"詳しくはこちら"}},extension:{refresh:{label:"更新"},learn_more:{label:"詳しくはこちら"}},desktop:{connect:{label:"接続"},learn_more:{label:"詳しくはこちら"}}},Kb0={title:"ネットワークを切り替える",wrong_network:"誤ったネットワークが検出されました、続行するには切り替えるか切断してください。",confirm:"ウォレットで確認する",switching_not_supported:"あなたのウォレットは %{appName}からネットワークを切り替えることをサポートしていません。ウォレット内でネットワークを切り替えてみてください。",switching_not_supported_fallback:"あなたのウォレットは、このアプリからネットワークを切り替えることをサポートしていません。代わりにウォレット内からネットワークを切り替えてみてください。",disconnect:"切断する",connected:"接続しました"},Qb0={disconnect:{label:"切断する"},copy_address:{label:"アドレスをコピーする",copied:"コピーしました!"},explorer:{label:"エクスプローラーで詳しく見る"},transactions:{description:"%{appName} トランザクションがここに表示されます...",description_fallback:"あなたのトランザクションはここに表示されます...",recent:{title:"最近のトランザクション"},clear:{label:"すべてクリア"}}},Jb0={argent:{qr_code:{step1:{description:"より速くウォレットにアクセスするために、Argentをホーム画面に置いてください。",title:"Argentアプリを開く"},step2:{description:"ウォレットとユーザーネームを作成するか、既存のウォレットをインポートします。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",title:"「QRをスキャン」ボタンをタップします"}}},bifrost:{qr_code:{step1:{description:"より速くアクセスできるように、Bifrost Walletをホーム画面に置くことをお勧めします。",title:"Bifrost Walletアプリを開きます"},step2:{description:"リカバリーフレーズを使用してウォレットを作成またはインポートします。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",title:"「スキャン」ボタンをタップします"}}},bitget:{qr_code:{step1:{description:"より迅速なアクセスのために、ホーム画面にBitget Walletを配置することをお勧めします。",title:"Bitget Walletアプリを開く"},step2:{description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",title:"スキャンボタンをタップする"}},extension:{step1:{description:"ウォレットへのより迅速なアクセスのためにBitget Walletをタスクバーにピン留めすることをお勧めします。",title:"Bitget Wallet拡張機能をインストールします"},step2:{description:"ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成またはインポートします"},step3:{description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。",title:"ブラウザを更新する"}}},bitski:{extension:{step1:{description:"ウォレットへの素早いアクセスのために、Bitskiをタスクバーにピン留めすることをお勧めします。",title:"Bitskiエクステンションをインストールする"},step2:{description:"ウォレットを安全な方法でバックアップしてください。シークレットフレーズは誰とも共有しないでください。",title:"ウォレットを作成するか、インポートする"},step3:{description:"ウォレットのセットアップが完了したら、以下をクリックしてブラウザを更新し、エクステンションを読み込みます。",title:"ブラウザを更新する"}}},coin98:{qr_code:{step1:{description:"Coin98ウォレットをホーム画面に置くことで、ウォレットへのアクセスが高速化されることをお勧めします。",title:"Coin98ウォレットアプリを開きます"},step2:{description:"電話のバックアップ機能を使用して、ウォレットを簡単にバックアップすることができます。",title:"ウォレットを作成またはインポートする"},step3:{description:"スキャン後、ウォレットへの接続を促すプロンプトが表示されます。",title:"WalletConnectボタンをタップします"}},extension:{step1:{description:"ブラウザの右上をクリックして、Coin98ウォレットをピン留めして簡単にアクセスできるようにします。",title:"Coin98ウォレットの拡張機能をインストールします"},step2:{description:"新しいウォレットを作成するか、既存のものをインポートします。",title:"ウォレットを作成またはインポートする"},step3:{description:"Coin98ウォレットをセットアップしたら、下のリンクをクリックしてブラウザを更新し、拡張機能をロードします。",title:"ブラウザを更新する"}}},coinbase:{qr_code:{step1:{description:"より素早くアクセスできるように、Coinbaseウォレットをホームスクリーンに置くことをお勧めします。",title:"Coinbase Walletアプリを開く"},step2:{description:"クラウドバックアップ機能を使用して、簡単にウォレットをバックアップできます。",title:"ウォレットを作成またはインポートする"},step3:{description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",title:"スキャンボタンをタップする"}},extension:{step1:{description:"タスクバーにCoinbase Walletをピン留めして、ウォレットにより早くアクセスできるように推奨します。",title:"Coinbase Wallet拡張機能をインストールする"},step2:{description:"必ず安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰にも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"ウォレットの設定が完了したら、下のボタンをクリックしてブラウザを更新し、拡張機能をロードします。",title:"ブラウザを更新する"}}},core:{qr_code:{step1:{description:"ウォレットへの迅速なアクセスのため、コアをホーム画面に設定することを推奨します。",title:"Coreアプリを開く"},step2:{description:"電話のバックアップ機能を使って、簡単にウォレットをバックアップできます。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後、ウォレットを接続するようにプロンプトが表示されます。",title:"WalletConnectボタンをタップする"}},extension:{step1:{description:"ウォレットへのより迅速なアクセスのために、タスクバーにCoreをピン留めすることをお勧めします。",title:"Core拡張機能をインストールする"},step2:{description:"セキュアな方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成またはインポートする"},step3:{description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。",title:"ブラウザを更新する"}}},fox:{qr_code:{step1:{description:"より迅速なアクセスのために、ホーム画面にFoxWalletを置くことをお勧めします。",title:"FoxWalletアプリを開く"},step2:{description:"セキュアな方法を使用してウォレットをバックアップすることを確認してください。秘密のフレーズは誰とも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。",title:"スキャンボタンをタップします"}}},frontier:{qr_code:{step1:{description:"Frontierウォレットをホーム画面に置くことで、より早くアクセスできることをお勧めします。",title:"Frontierウォレットアプリを開きます"},step2:{description:"セキュアな方法を使用してウォレットをバックアップすることを確認してください。秘密のフレーズは誰とも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後に、ウォレットの接続を促すメッセージが表示されます。",title:"スキャンボタンをタップします"}},extension:{step1:{description:"より迅速なウォレットへのアクセスを可能にするために、フロンティアウォレットをタスクバーにピン留めすることを推奨します。",title:"フロンティアウォレットの拡張機能をインストールします"},step2:{description:"安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"ウォレットの設定が完了したら、ブラウザを更新して拡張機能を読み込みます。",title:"ブラウザを更新する"}}},im_token:{qr_code:{step1:{title:"imTokenアプリを開く",description:"ウォレットへのアクセスを速くするために、imTokenアプリをホーム画面に置いてください。"},step2:{title:"ウォレットを作成またはインポート",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"右上隅のスキャナーアイコンをタップします",description:"新しい接続を選択し、QRコードをスキャンしてプロンプトを確認し接続します。"}}},metamask:{qr_code:{step1:{title:"MetaMaskアプリを開きます",description:"迅速なアクセスのために、MetaMaskをホーム画面に置くことをお勧めします。"},step2:{title:"ウォレットを作成またはインポートします",description:"必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。"},step3:{title:"スキャンボタンをタップします",description:"スキャンすると、ウォレットを接続するための接続プロンプトが表示されます。"}},extension:{step1:{title:"MetaMaskの拡張機能をインストールします",description:"ウォレットへのより速いアクセスのために、MetaMaskをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"安全な方法を使用してウォレットをバックアップし、秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新",description:"ウォレットを設定した後は、下のリンクをクリックしてブラウザを更新し、エクステンションを読み込んでください。"}}},okx:{qr_code:{step1:{title:"OKX Walletアプリを開く",description:"OKX Walletをホーム画面に配置して、より早くアクセスできるようにすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"セキュアな方法を使ってウォレットをバックアップしてください。秘密フレーズは誰とも共有しないでください。"},step3:{title:"スキャンボタンをタップする",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}},extension:{step1:{title:"OKXウォレット拡張機能をインストールする",description:"ウォレットへの迅速なアクセスのため、OKXウォレットをタスクバーにピン止めすることをお勧めします。"},step2:{title:"ウォレットを作成するか、インポートする",description:"セキュアな方法を使ってウォレットをバックアップしてください。秘密フレーズは誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、下をクリックしてブラウザをリフレッシュし、拡張機能を読み込みます。"}}},omni:{qr_code:{step1:{title:"Omniアプリを開く",description:"Omniをホーム画面に追加して、ウォレットへのアクセスを早めます。"},step2:{title:"ウォレットを作成またはインポート",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"QRアイコンをタップしてスキャン",description:"ホーム画面のQRアイコンをタップし、コードをスキャンし、プロンプトを確認して接続します。"}}},token_pocket:{qr_code:{step1:{title:"TokenPocketアプリを開く",description:"より速いアクセスのために、TokenPocketをホーム画面に置くことをお勧めします。"},step2:{title:"ウォレットを作成またはインポートする",description:"必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。"},step3:{title:"スキャンボタンをタップする",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}},extension:{step1:{title:"TokenPocketエクステンションをインストールする",description:"ウォレットへのより早いアクセスのために、TokenPocketをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットを安全な方法でバックアップすることを確認してください。シークレットフレーズを決して他の人と共有しないでください。"},step3:{title:"ブラウザを更新",description:"ウォレットのセットアップが完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},trust:{qr_code:{step1:{title:"Trust Walletアプリを開く",description:"ウォレットへの高速アクセスのために、Trust Walletをホーム画面に置きます。"},step2:{title:"ウォレットを作成またはインポート",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"設定でWalletConnectをタップします",description:"新しい接続を選択し、QRコードをスキャンして、プロンプトで接続を確認します。"}},extension:{step1:{title:"Trust Wallet拡張機能をインストールします",description:"ブラウザの右上をクリックし、Trust Walletをピン留めして簡単にアクセスできるようにします。"},step2:{title:"ウォレットを作成するかインポートします",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"ブラウザを更新する",description:"Trust Walletの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}}},uniswap:{qr_code:{step1:{title:"Uniswapアプリを開く",description:"Uniswapウォレットをホーム画面に追加して、ウォレットへのアクセスを高速化します。"},step2:{title:"ウォレットを作成またはインポートする",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"QRアイコンをタップしてスキャンする",description:"ホーム画面のQRアイコンをタップし、コードをスキャンしてプロンプトを確認して接続します。"}}},zerion:{qr_code:{step1:{title:"Zerionアプリを開く",description:"より速くアクセスするために、Zerionをホーム画面に置くことをお勧めします。"},step2:{title:"ウォレットを作成するか、インポートする",description:"必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。"},step3:{title:"スキャンボタンを押す",description:"スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。"}},extension:{step1:{title:"Zerion拡張機能をインストールする",description:"ウォレットへの素早いアクセスのため、Zerionをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットをセキュアな方法でバックアップすることを確認してください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットをセットアップしたら、下のボタンをクリックしてブラウザを更新し、拡張機能をロードします。"}}},rainbow:{qr_code:{step1:{title:"Rainbowアプリを開く",description:"ウォレットへの早いアクセスのために、Rainbowをホーム画面に置くことをおすすめします。"},step2:{title:"ウォレットを作成またはインポート",description:"電話のバックアップ機能を使用して、簡単にウォレットをバックアップすることができます。"},step3:{title:"スキャンボタンをタップする",description:"スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。"}}},enkrypt:{extension:{step1:{description:"ウォレットへのアクセスをより早くするため、タスクバーにEnkrypt Walletをピン留めすることを推奨します。",title:"Enkrypt Wallet拡張機能をインストールしてください"},step2:{description:"安全な方法でウォレットのバックアップを必ず取り、秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成するか、インポートする"},step3:{description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。",title:"ブラウザを更新する"}}},frame:{extension:{step1:{description:"ウォレットへのアクセスをより早くするため、タスクバーにFrameをピン留めすることを推奨します。",title:"Frameとその付属の拡張機能をインストール"},step2:{description:"ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成、またはインポート"},step3:{description:"ウォレットの設定が完了したら、下のリンクをクリックしてブラウザを更新し、拡張機能をロードします。",title:"ブラウザを更新"}}},one_key:{extension:{step1:{title:"OneKey Wallet拡張機能をインストール",description:"ウォレットへのアクセスを素早く行うため、OneKey Walletをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成、またはインポート",description:"安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},phantom:{extension:{step1:{title:"Phantom拡張機能をインストールする",description:"ウォレットへの容易なアクセスのため、Phantomをタスクバーにピン留めすることを推奨します。"},step2:{title:"ウォレットを作成またはインポートする",description:"安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、エクステンションを読み込みます。"}}},rabby:{extension:{step1:{title:"Rabbyエクステンションをインストールする",description:"ウォレットへの素早いアクセスのため、タスクバーにRabbyをピン止めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"セキュアな方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新",description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},safeheron:{extension:{step1:{title:"コア拡張機能をインストール",description:"ウォレットへの素早いアクセスのため、タスクバーにSafeheronをピン止めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"確実に安全な方法でウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},taho:{extension:{step1:{title:"Taho拡張機能をインストールする",description:"ウォレットへのより迅速なアクセスのため、Tahoをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成するか、インポートする",description:"確実に安全な方法でウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},talisman:{extension:{step1:{title:"Talisman拡張機能をインストールする",description:"ウォレットへのより早いアクセスのために、Talismanをタスクバーにピン留めすることをお勧めします。"},step2:{title:"Ethereumウォレットを作成するか、インポートする",description:"ウォレットを安全な方法でバックアップしておくことを確認してください。リカバリーフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},xdefi:{extension:{step1:{title:"XDEFI Wallet拡張機能をインストールする",description:"XDEFI Walletをタスクバーにピン留めすることで、ウォレットへのアクセスが速くなることをお勧めします。"},step2:{title:"ウォレットの作成またはインポート",description:"ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードしてください。"}}},zeal:{extension:{step1:{title:"Zeal 拡張機能をインストール",description:"ウォレットに素早くアクセスするために、タスクバーに Zeal をピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}}},safepal:{extension:{step1:{title:"SafePal Wallet拡張機能をインストールする",description:"ブラウザの右上でクリックし、Easy AccessのためにSafePal Walletをピン留めします。"},step2:{title:"ウォレットを作成またはインポートする",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"ブラウザを更新する",description:"SafePal Walletのセットアップが完了したら、以下をクリックしてブラウザをリフレッシュし、エクステンションをロードします。"}},qr_code:{step1:{title:"SafePal Walletアプリを開く",description:"SafePal Walletをホーム画面に置くことで、ウォレットへの素早いアクセスが可能になります。"},step2:{title:"ウォレットを作成またはインポート",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"設定でWalletConnectをタップします",description:"新しい接続を選択し、QRコードをスキャンしてプロンプトを確認し接続します。"}}},desig:{extension:{step1:{title:"Desig拡張機能をインストール",description:"あなたのウォレットへの簡単なアクセスのために、Desigをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}}},subwallet:{extension:{step1:{title:"SubWallet拡張機能をインストール",description:"ウォレットへのより素早いアクセスのため、SubWalletをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットを安全な方法でバックアップしておくことを確認してください。リカバリーフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}},qr_code:{step1:{title:"SubWalletアプリを開く",description:"より迅速なアクセスのために、SubWalletをホーム画面に置くことをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"「スキャン」ボタンをタップします",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}}},clv:{extension:{step1:{title:"CLV Wallet拡張機能をインストール",description:"ウォレットへのより素早いアクセスのため、CLV Walletをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}},qr_code:{step1:{title:"CLV Walletアプリを開く",description:"より迅速なアクセスのために、ホーム画面にCLV Walletを置くことをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"「スキャン」ボタンをタップします",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}}},okto:{qr_code:{step1:{title:"Oktoアプリを開く",description:"素早くアクセスするために、ホーム画面にOktoを追加します"},step2:{title:"MPCウォレットを作成する",description:"アカウントを作成し、ウォレットを生成します"},step3:{title:"設定でWalletConnectをタップします",description:"右上のScan QRアイコンをタップし、接続するためのプロンプトを確認します。"}}},ledger:{desktop:{step1:{title:"Ledger Liveアプリを開く",description:"より速いアクセスのために、ホーム画面にLedger Liveを置くことを推奨します。"},step2:{title:"あなたのLedgerを設定する",description:"新しいLedgerを設定するか、既存のものに接続します。"},step3:{title:"接続",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}},qr_code:{step1:{title:"Ledger Liveアプリを開く",description:"より速いアクセスのために、ホーム画面にLedger Liveを置くことを推奨します。"},step2:{title:"あなたのLedgerを設定する",description:"デスクトップアプリと同期するか、あなたのLedgerに接続することができます。"},step3:{title:"コードをスキャンする",description:"WalletConnectをタップし、スキャナーに切り替えてください。スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}}}},vw={connect_wallet:jb0,intro:zb0,sign_in:Lb0,connect:$b0,connect_scan:Ub0,connector_group:Wb0,get:qb0,get_options:Hb0,get_mobile:Gb0,get_instructions:Vb0,chains:Kb0,profile:Qb0,wallet_connectors:Jb0},Zb0={label:"지갑 연결"},Yb0={title:"지갑이란 무엇인가요?",description:"지갑은 디지털 자산을 보내고, 받고, 저장하고, 표시하는 데 사용됩니다. 또한, 모든 웹 사이트에서 새 계정과 비밀번호를 생성할 필요 없이 로그인하는 새로운 방법입니다.",digital_asset:{title:"당신의 디지털 자산을 위한 집",description:"지갑은 이더리움 및 NFT와 같은 디지털 자산을 보내고, 받고, 저장하고, 표시하는데 사용됩니다."},login:{title:"새로운 로그인 방식",description:"모든 웹사이트에서 새 계정과 비밀번호를 생성하는 대신, 당신의 지갑을 연결하기만 하면 됩니다."},get:{label:"지갑 가져오기"},learn_more:{label:"더 알아보기"}},Xb0={label:"계정을 확인하세요",description:"연결을 완료하려면 이 계정의 소유자임을 확인하기 위해 지갑에 메시지에 서명해야 합니다.",message:{send:"메시지 보내기",preparing:"메시지 준비 중...",cancel:"취소",preparing_error:"메시지 준비 중 오류가 발생했습니다. 다시 시도하세요!"},signature:{waiting:"서명을 기다리는 중...",verifying:"서명 검증 중...",signing_error:"메시지 서명 중 오류가 발생했습니다. 다시 시도하세요!",verifying_error:"서명 검증 중 오류가 발생했습니다. 다시 시도하세요!",oops_error:"앗, 문제가 발생했습니다!"}},ug0={label:"연결",title:"지갑 연결",new_to_ethereum:{description:"이더리움 지갑에 처음 접하시나요?",learn_more:{label:"더 알아보기"}},learn_more:{label:"더 알아보기"},recent:"최근",status:{opening:"%{wallet}열기 ...",not_installed:"%{wallet} 가 설치되어 있지 않습니다",not_available:"%{wallet} 를 사용할 수 없습니다",confirm:"확장기능에서 연결을 확인하세요"},secondary_action:{get:{description:"%{wallet}가 없나요?",label:"GET"},install:{label:"설치"},retry:{label:"다시 시도"}},walletconnect:{description:{full:"공식 WalletConnect 모달이 필요한가요?",compact:"WalletConnect 모달이 필요한가요?"},open:{label:"열기"}}},eg0={title:"%{wallet}로 스캔하기",fallback_title:"휴대폰으로 스캔하기"},tg0={recommended:"추천",other:"기타",popular:"인기",more:"더 보기",others:"다른 사항들"},ng0={title:"월렛 받기",action:{label:"받기"},mobile:{description:"모바일 월렛"},extension:{description:"브라우저 확장 프로그램"},mobile_and_extension:{description:"모바일 지갑 및 확장 프로그램"},mobile_and_desktop:{description:"모바일 및 데스크톱 지갑"},looking_for:{title:"찾고 계신 것이 아닌가요?",mobile:{description:"메인 화면에서 다른 지갑 제공자를 사용하기 위해 지갑을 선택하세요."},desktop:{compact_description:"메인 화면에서 다른 지갑 제공자를 사용하기 위해 지갑을 선택하세요.",wide_description:"왼쪽에서 지갑을 선택하여 다른 지갑 제공자를 사용하기 시작하세요."}}},rg0={title:"%{wallet}로 시작하십시오",short_title:"%{wallet}얻기",mobile:{title:"모바일용 %{wallet}",description:"모바일 지갑으로 이더리움 세계를 탐험하세요.",download:{label:"앱 받기"}},extension:{title:"%{browser}용 %{wallet}",description:"가장 좋아하는 웹 브라우저에서 바로 지갑에 접근하세요.",download:{label:"추가하기 %{browser}"}},desktop:{title:"%{wallet} 용 %{platform}",description:"강력한 데스크톱에서 네이티브로 지갑에 접근하세요.",download:{label:"%{platform}에 추가"}}},ig0={title:"설치하기 %{wallet}",description:"iOS 또는 Android에서 다운로드하기 위해 휴대폰으로 스캔하세요",continue:{label:"계속"}},ag0={mobile:{connect:{label:"연결"},learn_more:{label:"더 알아보기"}},extension:{refresh:{label:"새로고침"},learn_more:{label:"더 알아보기"}},desktop:{connect:{label:"연결"},learn_more:{label:"더 알아보기"}}},og0={title:"네트워크 전환",wrong_network:"잘못된 네트워크를 탐지했습니다, 계속하려면 전환하거나 연결을 해제하세요.",confirm:"지갑에서 승인",switching_not_supported:"지갑에서 %{appName}네트워크를 전환하는 것은 지원되지 않습니다. 대신 지갑 내에서 네트워크를 전환해 보세요.",switching_not_supported_fallback:"당신의 지갑은 이 앱에서 네트워크를 바꾸는 것을 지원하지 않습니다. 대신 지갑 내에서 네트워크를 변경해 보십시오.",disconnect:"연결 해제",connected:"연결됨"},sg0={disconnect:{label:"연결 해제"},copy_address:{label:"주소 복사",copied:"복사됨!"},explorer:{label:"탐색기에서 더 보기"},transactions:{description:"%{appName} 거래가 여기에 나타납니다...",description_fallback:"여기에 트랜잭션이 표시됩니다...",recent:{title:"최근 거래 내역"},clear:{label:"모두 지우기"}}},fg0={argent:{qr_code:{step1:{description:"지갑에 더 빠르게 액세스하려면 Argent를 홈 화면에 놓으십시오.",title:"Argent 앱을 열기"},step2:{description:"지갑과 사용자 이름을 생성하거나 기존의 지갑을 가져옵니다.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다.",title:"QR 코드 스캔 버튼을 누르기"}}},bifrost:{qr_code:{step1:{description:"더 빠른 접근을 위해 홈 화면에 Bifrost Wallet을 놓는 것을 권장합니다.",title:"Bifrost 지갑 앱을 열어주세요"},step2:{description:"복구 문구를 사용하여 지갑을 생성하거나 가져옵니다.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔 후 연결 프롬프트가 나타나고 지갑을 연결할 수 있습니다.",title:"스캔 버튼을 누릅니다"}}},bitget:{qr_code:{step1:{description:"더 빠른 접근을 위해 Bitget 지갑을 홈 화면에 두는 것을 권장합니다.",title:"Bitget 지갑 앱을 열십시오"},step2:{description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔 후, 지갑을 연결하라는 연결 요청 메시지가 나타납니다.",title:"스캔 버튼을 누르십시오"}},extension:{step1:{description:"지갑에 빠르게 액세스하기 위해 Bitget Wallet을 작업 표시줄에 고정하는 것을 권장합니다.",title:"Bitget Wallet 확장 프로그램을 설치하세요"},step2:{description:"지갑을 안전한 방법으로 백업하십시오. 절대로 비밀 문구를 누구와도 공유하지 마십시오.",title:"지갑 생성 또는 가져오기"},step3:{description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요.",title:"브라우저를 새로 고침하세요"}}},bitski:{extension:{step1:{description:"지갑에 더 빠르게 액세스하기 위해 Bitski를 작업 표시줄에 고정하는 것을 권장합니다.",title:"Bitski 확장 기능을 설치합니다"},step2:{description:"안전한 방법을 사용하여 지갑을 백업하십시오. 비밀 문구를 누구와도 공유하지 마십시오.",title:"지갑 만들기 또는 가져오기"},step3:{description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드하세요.",title:"브라우저를 새로고침하세요"}}},coin98:{qr_code:{step1:{description:"지갑에 빠르게 액세스하기 위해 Coin98 Wallet을 홈 화면에 두는 것을 권장합니다.",title:"Coin98 Wallet 앱을 열기"},step2:{description:"휴대폰에서 백업 기능을 이용하여 지갑을 쉽게 백업할 수 있습니다.",title:"지갑 만들기 또는 가져오기"},step3:{description:"스캔한 후 연결 프롬프트가 나타나 지갑을 연결하도록 합니다.",title:"WalletConnect 버튼을 누르십시오"}},extension:{step1:{description:"브라우저 오른쪽 상단을 클릭하고 쉽게 액세스할 수 있도록 Coin98 Wallet을 고정하십시오.",title:"Coin98 Wallet 확장 프로그램을 설치하십시오"},step2:{description:"새로운 지갑을 만들거나 기존의 지갑을 가져옵니다.",title:"지갑을 만들거나 가져옵니다"},step3:{description:"Coin98 Wallet을 설정하면 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하십시오.",title:"브라우저를 새로 고치십시오"}}},coinbase:{qr_code:{step1:{description:"더 빠른 액세스를 위해 Coinbase Wallet을 홈 화면에 두는 것을 권장합니다.",title:"Coinbase Wallet 앱을 엽니다"},step2:{description:"클라우드 백업 기능을 사용하여 지갑을 쉽게 백업할 수 있습니다.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔한 후에 지갑을 연결하라는 연결 프롬프트가 나타납니다.",title:"스캔 버튼을 탭하세요"}},extension:{step1:{description:"지갑에 더 빠르게 접근할 수 있도록 Coinbase Wallet을 작업 표시줄에 고정하는 것을 권장합니다.",title:"Coinbase Wallet 확장 프로그램을 설치하세요"},step2:{description:"안전한 방법을 사용하여 지갑을 백업하십시오. 비밀 문구는 절대로 누구와도 공유하지 마십시오.",title:"지갑 만들기 또는 가져오기"},step3:{description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하십시오.",title:"브라우저 새로 고침"}}},core:{qr_code:{step1:{description:"지갑에 빠르게 액세스할 수 있도록 Core를 홈 화면에 두는 것을 추천드립니다.",title:"Core 앱 열기"},step2:{description:"휴대폰에서 우리의 백업 기능을 이용해 지갑을 쉽게 백업할 수 있습니다.",title:"지갑 만들기 또는 가져오기"},step3:{description:"스캔 한 후에는 지갑을 연결하라는 연결 요청이 표시됩니다.",title:"WalletConnect 버튼을 누르세요"}},extension:{step1:{description:"지갑에 더 빠르게 액세스하기 위해 작업 표시줄에 Core를 고정하는 것을 권장합니다.",title:"Core 확장 프로그램을 설치하십시오"},step2:{description:"안전한 방법을 사용하여 지갑을 백업해야 합니다. 절대로 비밀 문구를 다른 사람과 공유하지 마십시오.",title:"지갑 만들기 또는 가져오기"},step3:{description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하십시오.",title:"브라우저를 새로 고치세요"}}},fox:{qr_code:{step1:{description:"FoxWallet을 홈 화면에 놓는 것을 추천합니다. 이렇게 하면 더 빠르게 접근할 수 있습니다.",title:"FoxWallet 앱을 열어주세요"},step2:{description:"지갑을 안전한 방법으로 백업하십시오. 절대로 비밀 문구를 다른 사람과 공유하지 마십시오.",title:"지갑을 생성하거나 가져오기"},step3:{description:"스캔 후, 지갑을 연결하라는 연결 프롬프트가 표시됩니다.",title:"스캔 버튼을 누르세요"}}},frontier:{qr_code:{step1:{description:"Frontier Wallet을 홈 화면에 놓는 것을 추천합니다. 이렇게 하면 더 빠르게 접근할 수 있습니다.",title:"Frontier Wallet 앱을 열어주세요"},step2:{description:"지갑을 안전한 방법으로 백업해야 합니다. 비밀 구문을 누구와도 공유하지 마세요.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔 후에 지갑을 연결하라는 연결 프롬프트가 표시됩니다.",title:"스캔 버튼을 누르세요"}},extension:{step1:{description:"지갑에 더 빠르게 액세스 할 수 있도록 Frontier Wallet을 작업 표시줄에 고정하는 것을 권장합니다.",title:"Frontier Wallet 확장 기능 설치"},step2:{description:"지갑을 안전한 방법으로 백업해야 합니다. 비밀 구문을 누구와도 공유하지 마세요.",title:"지갑 생성 또는 가져오기"},step3:{description:"지갑을 설정한 후에 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하십시오.",title:"브라우저를 새로 고칩니다"}}},im_token:{qr_code:{step1:{title:"imToken 앱을 연다",description:"당신의 지갑에 더 빠르게 접근하기 위해 imToken 앱을 홈 화면에 둡니다."},step2:{title:"지갑을 만들거나 불러옵니다",description:"새 지갑을 생성하거나 기존의 것을 가져옵니다."},step3:{title:"오른쪽 상단의 스캐너 아이콘을 누릅니다",description:"새 연결을 선택하고 QR 코드를 스캔한 뒤, 연결하려는 프롬프트를 확인합니다."}}},metamask:{qr_code:{step1:{title:"MetaMask 앱을 엽니다",description:"빠른 액세스를 위해 MetaMask를 홈 화면에 두는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"당신의 지갑을 안전한 방법으로 백업하는 것을 잊지 마세요. 절대로 비밀 구절을 공유하지 마세요."},step3:{title:"스캔 버튼을 누릅니다",description:"스캔한 후에 지갑을 연결하라는 연결 프롬프트가 나타납니다."}},extension:{step1:{title:"MetaMask 확장 프로그램을 설치하세요",description:"지갑에 빠르게 접근하기 위해 MetaMask를 작업표시줄에 고정하는 것을 추천합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 결코 비밀 문구를 다른 사람과 공유하지 마세요."},step3:{title:"브라우저를 새로 고치세요",description:"지갑 설정을 마친 후에는 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}}},okx:{qr_code:{step1:{title:"OKX Wallet 앱을 열기",description:"더 빠른 접근을 위해 OKX 지갑을 홈 화면에 두는 것을 추천합니다."},step2:{title:"지갑 만들기 또는 불러오기",description:"안전한 방법으로 지갑을 백업하십시오. 절대 비밀 문구를 다른 사람과 공유하지 마세요."},step3:{title:"스캔 버튼을 탭하세요",description:"스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다."}},extension:{step1:{title:"OKX 지갑 확장 프로그램 설치하기",description:"지갑에 빠르게 접근할 수 있도록 OKX 지갑을 작업 표시줄에 고정하는 것을 추천합니다."},step2:{title:"지갑 만들기 또는 불러오기",description:"당신의 지갑을 안전한 방법으로 백업해야 합니다. 비밀 문구를 절대로 다른 사람과 공유하지 마세요."},step3:{title:"브라우저를 새로 고치세요",description:"지갑을 설정한 후, 브라우저를 새로 고치고 확장 기능을 로드하기 위해 아래를 클릭하세요."}}},omni:{qr_code:{step1:{title:"Omni 앱을 열기",description:"더 빠른 액세스를 위해 Omni를 홈 스크린에 추가하세요."},step2:{title:"지갑 만들기 또는 가져오기",description:"새로운 지갑을 만들거나 기존의 하나를 가져옵니다."},step3:{title:"QR 아이콘을 탭하고 스캔하기",description:"홈 화면의 QR 아이콘을 탭하고, 코드를 스캔하고 프롬프트를 확인하여 연결하세요."}}},token_pocket:{qr_code:{step1:{title:"TokenPocket 앱을 열어주세요",description:"빠른 접근을 위해 홈 화면에 TokenPocket을 추가하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 절대로 누구에게도 비밀 문구를 공유하지 마세요."},step3:{title:"스캔 버튼을 탭하세요",description:"스캔 후에 지갑을 연결하라는 프롬프트가 표시됩니다."}},extension:{step1:{title:"TokenPocket 확장 기능을 설치하십시오",description:"지갑에 빠르게 접근하기 위해 TokenPocket를 작업 표시줄에 고정하는 것을 추천합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 문구를 다른 사람과 공유하지 마세요."},step3:{title:"브라우저 새로 고침",description:"지갑을 설정하면 아래를 클릭하여 브라우저를 새로 고침하고 확장 기능을 로드합니다."}}},trust:{qr_code:{step1:{title:"Trust Wallet 앱을 열기",description:"지갑에 빠르게 접근하기 위해 Trust Wallet을 홈 스크린에 두십시오."},step2:{title:"지갑 생성 또는 가져오기",description:"새로운 지갑을 생성하거나 기존의 것을 가져오십시오."},step3:{title:"설정에서 WalletConnect를 탭하십시오",description:"새 연결을 선택한 다음 QR 코드를 스캔하고, 연결을 확인하는 프롬프트를 확인하십시오."}},extension:{step1:{title:"Trust Wallet 확장 기능을 설치하십시오",description:"브라우저의 오른쪽 상단을 클릭하고 Trust Wallet을 고정하여 쉽게 접근하십시오."},step2:{title:"지갑 생성 또는 가져오기",description:"새로운 지갑을 생성하거나 기존의 것을 가져오십시오."},step3:{title:"브라우저를 새로고침하세요",description:"Trust Wallet을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드합니다."}}},uniswap:{qr_code:{step1:{title:"Uniswap 앱을 엽니다",description:"Uniswap Wallet을 홈 화면에 추가하여 지갑에 더 빠르게 액세스하세요."},step2:{title:"지갑을 만들거나 가져오기",description:"새 지갑을 생성하거나 기존의 것을 가져옵니다."},step3:{title:"QR 아이콘을 누르고 스캔하기",description:"홈화면의 QR 아이콘을 누르고 코드를 스캔하고 프롬프트를 확인하여 연결하세요."}}},zerion:{qr_code:{step1:{title:"Zerion 앱을 엽니다",description:"더 빠른 접근을 위해 Zerion을 홈 화면에 두는 것을 권장합니다."},step2:{title:"지갑 만들기 또는 가져오기",description:"안전한 방법으로 지갑을 백업하십시오. 절대로 비밀 구절을 누군가와 공유하지 마십시오."},step3:{title:"스캔 버튼을 탭하십시오",description:"스캔 후 연결 프롬프트가 나타나 지갑을 연결하십시오."}},extension:{step1:{title:"Zerion 확장 프로그램을 설치하십시오",description:"지갑에 더 빠르게 접근할 수 있도록 Zerion을 작업 표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 비밀 구문을 절대로 다른 사람과 공유하지 마세요."},step3:{title:"브라우저를 새로 고치세요",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}}},rainbow:{qr_code:{step1:{title:"Rainbow 앱 열기",description:"지갑에 더 빠르게 접근하기 위해 홈 화면에 Rainbow를 두는 것을 추천합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"휴대폰에 있는 백업 기능을 사용하여 지갑을 쉽게 백업할 수 있습니다."},step3:{title:"스캔 버튼을 누르세요",description:"스캔 후, 지갑을 연결하라는 연결 프롬프트가 나타납니다."}}},enkrypt:{extension:{step1:{description:"지갑에 더 빠르게 접근하기 위해 작업 표시줄에 Enkrypt Wallet를 고정하는 것을 추천합니다.",title:"Enkrypt Wallet 확장 프로그램을 설치하세요"},step2:{description:"지갑을 안전한 방법으로 백업하십시오. 절대로 비밀 문구를 다른 사람과 공유하지 마십시오.",title:"지갑 생성 또는 가져오기"},step3:{description:"지갑을 설정한 후에는 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드하세요.",title:"브라우저 새로 고침"}}},frame:{extension:{step1:{description:"지갑에 더 빠르게 접근할 수 있도록 Frame을 작업 표시줄에 고정하는 것을 추천합니다.",title:"Frame 및 동반 확장 프로그램 설치"},step2:{description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 다른 사람과 공유하지 마세요.",title:"지갑 생성 또는 가져오기"},step3:{description:"지갑을 설정한 후에는 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드하세요.",title:"브라우저 새로 고침"}}},one_key:{extension:{step1:{title:"OneKey Wallet 확장 프로그램을 설치하세요",description:"지갑에 빠르게 접근할 수 있도록 OneKey Wallet을 작업 표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 불러오기",description:"지갑을 안전한 방법으로 백업하십시오. 절대로 비밀 문구를 다른 사람과 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하십시오",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드하십시오."}}},phantom:{extension:{step1:{title:"Phantom 확장 프로그램을 설치하세요",description:"지갑에 더 쉽게 접근할 수 있도록 Phantom을 작업 표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 불러오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 누구와도 비밀 복구 구문을 공유하지 마십시오."},step3:{title:"브라우저를 새로고침하십시오",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 기능을 로드하십시오."}}},rabby:{extension:{step1:{title:"Rabby 확장 프로그램을 설치하십시오",description:"지갑에 더 빠르게 액세스할 수 있도록 Rabby를 작업표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 만들기 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 누구와도 비밀 구문을 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하십시오",description:"지갑 설정을 완료하면 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드합니다."}}},safeheron:{extension:{step1:{title:"코어 확장 프로그램 설치",description:"지갑에 빠르게 액세스하기 위해 Safeheron을 작업 표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 만들기 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 비밀 문구를 절대 다른 사람과 공유하지 마십시오."},step3:{title:"브라우저 새로 고침",description:"지갑 설정을 완료하면 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드합니다."}}},taho:{extension:{step1:{title:"Taho 확장 프로그램 설치",description:"지갑에 더 빠르게 액세스하기 위해 Taho를 작업 표시줄에 고정하는 것을 추천합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 결코 비밀 문구를 누군가와 공유하지 마십시오."},step3:{title:"브라우저를 새로 고치십시오",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하십시오."}}},talisman:{extension:{step1:{title:"탈리스만 확장 프로그램 설치",description:"지갑에 더 빠르게 접근하기 위해 Talisman을 작업 표시줄에 고정하는 것을 추천합니다."},step2:{title:"이더리움 지갑 생성 또는 가져오기",description:"반드시 안전한 방법을 사용하여 지갑을 백업하십시오. 복구 문구를 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하십시오",description:"지갑을 설정 한 후 아래를 클릭하여 브라우저를 새로 고침하고 확장 기능을 로드하십시오."}}},xdefi:{extension:{step1:{title:"XDEFI 지갑 확장 기능을 설치하십시오",description:"지갑에 빠르게 액세스하기 위해 작업 표시줄에 XDEFI Wallet을 고정하는 것을 권장합니다."},step2:{title:"지갑을 만들거나 가져오기",description:"반드시 안전한 방법을 사용하여 지갑을 백업하십시오. 비밀 문구를 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하십시오",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하십시오."}}},zeal:{extension:{step1:{title:"Zeal 확장 프로그램을 설치하십시오",description:"월렛에 더 빠르게 액세스할 수 있도록 Zeal을 작업 표시 줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하세요",description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}}},safepal:{extension:{step1:{title:"SafePal Wallet 확장 프로그램을 설치하세요",description:"브라우저의 오른쪽 상단에서 클릭하고 SafePal Wallet을 고정하여 쉽게 접근하세요."},step2:{title:"지갑을 만들거나 가져옵니다",description:"새로운 지갑을 만들거나 기존의 지갑을 가져옵니다."},step3:{title:"브라우저를 새로 고침하세요",description:"SafePal Wallet을 설정한 후에는 아래를 클릭하여 브라우저를 새로 고치고 확장 기능을 로드하십시오."}},qr_code:{step1:{title:"SafePal Wallet 앱을 열십시오",description:"월렛에 빠르게 액세스할 수 있도록 SafePal Wallet을 홈 화면에 두십시오."},step2:{title:"지갑 생성 또는 가져오기",description:"새로운 지갑을 만들거나 기존의 지갑을 가져옵니다."},step3:{title:"설정에서 WalletConnect를 탭하십시오",description:"새 연결을 선택하고 QR 코드를 스캔한 뒤, 연결하려는 프롬프트를 확인합니다."}}},desig:{extension:{step1:{title:"Desig 확장 프로그램 설치",description:"당신의 지갑에 더 쉽게 접근하기 위해 작업 표시줄에 Desig을 고정하는 것을 권장합니다."},step2:{title:"지갑 생성",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하세요",description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}}},subwallet:{extension:{step1:{title:"SubWallet 확장 프로그램 설치",description:"당신의 지갑에 더 빠르게 접근하기 위해 작업 표시줄에 SubWallet을 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"반드시 안전한 방법을 사용하여 지갑을 백업하십시오. 복구 문구를 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하세요",description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}},qr_code:{step1:{title:"SubWallet 앱 열기",description:"더 빠른 접근을 위해 SubWallet을 홈 화면에 두는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오."},step3:{title:"스캔 버튼을 누릅니다",description:"스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다."}}},clv:{extension:{step1:{title:"CLV Wallet 확장 프로그램 설치",description:"당신의 지갑에 더 빠르게 접근하기 위해 작업 표시줄에 CLV Wallet을 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하세요",description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}},qr_code:{step1:{title:"CLV Wallet 앱을 엽니다",description:"더 빠른 접근을 위해 CLV Wallet을 홈 화면에 놓는 것이 좋습니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오."},step3:{title:"스캔 버튼을 누릅니다",description:"스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다."}}},okto:{qr_code:{step1:{title:"Okto 앱을 엽니다",description:"빠른 접근을 위해 Okto를 홈 화면에 추가합니다"},step2:{title:"MPC Wallet을 만듭니다",description:"계정을 만들고 지갑을 생성합니다"},step3:{title:"설정에서 WalletConnect를 탭하십시오",description:"오른쪽 상단의 QR 아이콘을 탭하고 연결하려면 알림을 확인합니다."}}},ledger:{desktop:{step1:{title:"Ledger Live 앱을 엽니다",description:"빠른 접근을 위해 Ledger Live를 홈화면에 두는 것을 권장합니다."},step2:{title:"Ledger 설정",description:"새 Ledger를 설정하거나 기존 Ledger에 연결하세요."},step3:{title:"연결",description:"스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다."}},qr_code:{step1:{title:"Ledger Live 앱을 엽니다",description:"빠른 접근을 위해 Ledger Live를 홈화면에 두는 것을 권장합니다."},step2:{title:"Ledger 설정",description:"데스크톱 앱과 동기화하거나 Ledger를 연결할 수 있습니다."},step3:{title:"코드를 스캔하십시오",description:"WalletConnect를 탭하고 스캐너로 전환합니다. 스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다."}}}},Bw={connect_wallet:Zb0,intro:Yb0,sign_in:Xb0,connect:ug0,connect_scan:eg0,connector_group:tg0,get:ng0,get_options:rg0,get_mobile:ig0,get_instructions:ag0,chains:og0,profile:sg0,wallet_connectors:fg0},lg0={label:"Conectar Carteira"},cg0={title:"O que é uma Carteira?",description:"Uma carteira é usada para enviar, receber, armazenar e exibir ativos digitais. Também é uma nova forma de se conectar, sem precisar criar novas contas e senhas em todo site.",digital_asset:{title:"Um lar para seus ativos digitais",description:"Carteiras são usadas para enviar, receber, armazenar e exibir ativos digitais como Ethereum e NFTs."},login:{title:"Uma nova maneira de fazer login",description:"Em vez de criar novas contas e senhas em todos os sites, basta conectar sua carteira."},get:{label:"Obter uma Carteira"},learn_more:{label:"Saiba mais"}},dg0={label:"Verifique sua conta",description:"Para concluir a conexão, você deve assinar uma mensagem em sua carteira para confirmar que você é o proprietário desta conta.",message:{send:"Enviar mensagem",preparing:"Preparando mensagem...",cancel:"Cancelar",preparing_error:"Erro ao preparar a mensagem, tente novamente!"},signature:{waiting:"Aguardando assinatura...",verifying:"Verificando assinatura...",signing_error:"Erro ao assinar a mensagem, tente novamente!",verifying_error:"Erro ao verificar assinatura, tente novamente!",oops_error:"Ops, algo deu errado!"}},Eg0={label:"Conectar",title:"Conectar uma Carteira",new_to_ethereum:{description:"Novo nas carteiras Ethereum?",learn_more:{label:"Saiba mais"}},learn_more:{label:"Saiba mais"},recent:"Recente",status:{opening:"Abrindo %{wallet}...",not_installed:"%{wallet} não está instalado",not_available:"%{wallet} não está disponível",confirm:"Confirme a conexão na extensão"},secondary_action:{get:{description:"Não tem %{wallet}?",label:"OBTER"},install:{label:"INSTALAR"},retry:{label:"TENTAR DE NOVO"}},walletconnect:{description:{full:"Precisa do modal oficial do WalletConnect?",compact:"Precisa do modal WalletConnect?"},open:{label:"ABRIR"}}},pg0={title:"Digitalize com %{wallet}",fallback_title:"Digitalize com o seu telefone"},hg0={recommended:"Recomendado",other:"Outro",popular:"Popular",more:"Mais",others:"Outros"},Cg0={title:"Obter uma Carteira",action:{label:"OBTER"},mobile:{description:"Carteira Móvel"},extension:{description:"Extensão do Navegador"},mobile_and_extension:{description:"Carteira Móvel e Extensão"},mobile_and_desktop:{description:"Carteira para Mobile e Desktop"},looking_for:{title:"Não é o que você está procurando?",mobile:{description:"Selecione uma carteira na tela principal para começar com um provedor de carteira diferente."},desktop:{compact_description:"Selecione uma carteira na tela principal para começar com um provedor de carteira diferente.",wide_description:"Selecione uma carteira à esquerda para começar com um provedor de carteira diferente."}}},mg0={title:"Comece com %{wallet}",short_title:"Obtenha %{wallet}",mobile:{title:"%{wallet} para Móvel",description:"Use a carteira móvel para explorar o mundo do Ethereum.",download:{label:"Baixe o aplicativo"}},extension:{title:"%{wallet} para %{browser}",description:"Acesse sua carteira diretamente do seu navegador web favorito.",download:{label:"Adicionar ao %{browser}"}},desktop:{title:"%{wallet} para %{platform}",description:"Acesse sua carteira nativamente do seu desktop poderoso.",download:{label:"Adicionar ao %{platform}"}}},bg0={title:"Instale %{wallet}",description:"Escaneie com seu celular para baixar no iOS ou Android",continue:{label:"Continuar"}},gg0={mobile:{connect:{label:"Conectar"},learn_more:{label:"Saiba mais"}},extension:{refresh:{label:"Atualizar"},learn_more:{label:"Saiba mais"}},desktop:{connect:{label:"Conectar"},learn_more:{label:"Saiba mais"}}},Ag0={title:"Mudar Redes",wrong_network:"Rede errada detectada, mude ou desconecte para continuar.",confirm:"Confirme na Carteira",switching_not_supported:"Sua carteira não suporta a mudança de redes de %{appName}. Tente mudar de redes dentro da sua carteira.",switching_not_supported_fallback:"Sua carteira não suporta a troca de redes a partir deste aplicativo. Tente trocar de rede dentro de sua carteira.",disconnect:"Desconectar",connected:"Conectado"},yg0={disconnect:{label:"Desconectar"},copy_address:{label:"Copiar Endereço",copied:"Copiado!"},explorer:{label:"Veja mais no explorador"},transactions:{description:"%{appName} transações aparecerão aqui...",description_fallback:"Suas transações aparecerão aqui...",recent:{title:"Transações Recentes"},clear:{label:"Limpar Tudo"}}},vg0={argent:{qr_code:{step1:{description:"Coloque o Argent na tela inicial para um acesso mais rápido à sua carteira.",title:"Abra o aplicativo Argent"},step2:{description:"Crie uma carteira e nome de usuário, ou importe uma carteira existente.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois que você escanear, um prompt de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão Scan QR"}}},bifrost:{qr_code:{step1:{description:"Recomendamos colocar a Bifrost Wallet na sua tela inicial para um acesso mais rápido.",title:"Abra o aplicativo Bifrost Wallet"},step2:{description:"Crie ou importe uma carteira usando sua frase de recuperação.",title:"Criar ou Importar uma Carteira"},step3:{description:"Após você escanear, um prompt de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão de escanear"}}},bitget:{qr_code:{step1:{description:"Recomendamos colocar a Bitget Wallet na sua tela inicial para um acesso mais rápido.",title:"Abra o aplicativo Bitget Wallet"},step2:{description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, um prompt de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão de escaneamento"}},extension:{step1:{description:"Recomendamos fixar a Bitget Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão da Carteira Bitget"},step2:{description:"Certifique-se de fazer o backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},bitski:{extension:{step1:{description:"Recomendamos fixar o Bitski na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão Bitski"},step2:{description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},coin98:{qr_code:{step1:{description:"Recomendamos colocar a Carteira Coin98 na tela inicial para um acesso mais rápido à sua carteira.",title:"Abra o aplicativo Carteira Coin98"},step2:{description:"Você pode facilmente fazer backup de sua carteira usando nosso recurso de backup em seu telefone.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, uma solicitação de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão WalletConnect"}},extension:{step1:{description:"Clique no canto superior direito do seu navegador e fixe a Carteira Coin98 para fácil acesso.",title:"Instale a extensão da Carteira Coin98"},step2:{description:"Crie uma nova carteira ou importe uma existente.",title:"Criar ou Importar uma carteira"},step3:{description:"Depois de configurar a Carteira Coin98, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},coinbase:{qr_code:{step1:{description:"Recomendamos colocar a Carteira Coinbase na tela inicial para um acesso mais rápido.",title:"Abra o aplicativo Coinbase Wallet"},step2:{description:"Você pode fazer backup da sua carteira facilmente usando o recurso de backup na nuvem.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, um prompt de conexão aparecerá para que você conecte sua carteira.",title:"Toque no botão de escanear"}},extension:{step1:{description:"Recomendamos fixar o Coinbase Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão Coinbase Wallet"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},core:{qr_code:{step1:{description:"Recomendamos colocar o Core na tela inicial para um acesso mais rápido à sua carteira.",title:"Abra o aplicativo Core"},step2:{description:"Você pode facilmente salvar sua carteira usando nosso recurso de backup no seu celular.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, um prompt de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão WalletConnect"}},extension:{step1:{description:"Recomendamos fixar o Core na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão Core"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},fox:{qr_code:{step1:{description:"Recomendamos colocar o FoxWallet na tela inicial para um acesso mais rápido.",title:"Abra o aplicativo FoxWallet"},step2:{description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, uma solicitação de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão de escaneamento"}}},frontier:{qr_code:{step1:{description:"Recomendamos colocar o Frontier Wallet na tela inicial para um acesso mais rápido.",title:"Abra o aplicativo Frontier Wallet"},step2:{description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira.",title:"Toque no botão de varredura"}},extension:{step1:{description:"Recomendamos fixar a Carteira Frontier na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão da Carteira Frontier"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},im_token:{qr_code:{step1:{title:"Abra o aplicativo imToken",description:"Coloque o aplicativo imToken na tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque no ícone do Scanner no canto superior direito",description:"Escolha Nova Conexão, em seguida, escaneie o código QR e confirme o prompt para conectar."}}},metamask:{qr_code:{step1:{title:"Abra o aplicativo MetaMask",description:"Recomendamos colocar o MetaMask na tela inicial para um acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão escanear",description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}},extension:{step1:{title:"Instale a extensão MetaMask",description:"Recomendamos fixar o MetaMask na barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize o seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},okx:{qr_code:{step1:{title:"Abra o aplicativo da Carteira OKX",description:"Recomendamos colocar a Carteira OKX na tela inicial para um acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer o backup da sua carteira utilizando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de digitalização",description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}},extension:{step1:{title:"Instale a extensão OKX Wallet",description:"Recomendamos fixar a OKX Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer o backup da sua carteira utilizando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize o seu navegador",description:"Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},omni:{qr_code:{step1:{title:"Abra o aplicativo Omni",description:"Adicione o Omni à sua tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque no ícone do QR e escaneie",description:"Toque no ícone QR na tela inicial, escaneie o código e confirme o prompt para conectar."}}},token_pocket:{qr_code:{step1:{title:"Abra o aplicativo TokenPocket",description:"Recomendamos colocar o TokenPocket na tela inicial para um acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de digitalização",description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}},extension:{step1:{title:"Instale a extensão TokenPocket",description:"Recomendamos fixar o TokenPocket em sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},trust:{qr_code:{step1:{title:"Abra o aplicativo Trust Wallet",description:"Coloque o Trust Wallet na tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque em WalletConnect nas Configurações",description:"Escolha Nova Conexão, depois escaneie o QR code e confirme o prompt para se conectar."}},extension:{step1:{title:"Instale a extensão Trust Wallet",description:"Clique no canto superior direito do seu navegador e marque Trust Wallet para fácil acesso."},step2:{title:"Crie ou Importe uma carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Atualize seu navegador",description:"Depois que configurar a Trust Wallet, clique abaixo para atualizar o navegador e carregar a extensão."}}},uniswap:{qr_code:{step1:{title:"Abra o aplicativo Uniswap",description:"Adicione a Carteira Uniswap à sua tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque no ícone QR e escaneie",description:"Toque no ícone QR na sua tela inicial, escaneie o código e confirme o prompt para conectar."}}},zerion:{qr_code:{step1:{title:"Abra o aplicativo Zerion",description:"Recomendamos colocar o Zerion na sua tela inicial para um acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de digitalização",description:"Depois de digitalizar, um prompt de conexão aparecerá para que você possa conectar sua carteira."}},extension:{step1:{title:"Instale a extensão Zerion",description:"Recomendamos fixar o Zerion na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},rainbow:{qr_code:{step1:{title:"Abra o aplicativo Rainbow",description:"Recomendamos colocar o Rainbow na tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Você pode facilmente fazer backup da sua carteira usando nosso recurso de backup no seu telefone."},step3:{title:"Toque no botão de digitalizar",description:"Depois de escanear, uma solicitação de conexão aparecerá para você conectar sua carteira."}}},enkrypt:{extension:{step1:{description:"Recomendamos fixar a Carteira Enkrypt na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão da Carteira Enkrypt"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize o seu navegador"}}},frame:{extension:{step1:{description:"Recomendamos fixar o Frame na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale o Frame e a extensão complementar"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},one_key:{extension:{step1:{title:"Instale a extensão OneKey Wallet",description:"Recomendamos fixar a OneKey Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},phantom:{extension:{step1:{title:"Instale a extensão Phantom",description:"Recomendamos fixar o Phantom na sua barra de tarefas para facilitar o acesso à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta de recuperação com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},rabby:{extension:{step1:{title:"Instale a extensão Rabby",description:"Recomendamos fixar Rabby na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},safeheron:{extension:{step1:{title:"Instale a extensão Core",description:"Recomendamos fixar Safeheron na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer o backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},taho:{extension:{step1:{title:"Instale a extensão Taho",description:"Recomendamos fixar o Taho na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer o backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},talisman:{extension:{step1:{title:"Instale a extensão Talisman",description:"Recomendamos fixar o Talisman na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Crie ou Importe uma Carteira Ethereum",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase de recuperação com ninguém."},step3:{title:"Atualize o seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},xdefi:{extension:{step1:{title:"Instale a extensão XDEFI Wallet",description:"Recomendamos fixar a Carteira XDEFI na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},zeal:{extension:{step1:{title:"Instale a extensão Zeal",description:"Recomendamos fixar o Zeal na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},safepal:{extension:{step1:{title:"Instale a extensão da Carteira SafePal",description:"Clique no canto superior direito do seu navegador e fixe a Carteira SafePal para fácil acesso."},step2:{title:"Criar ou Importar uma carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Atualize seu navegador",description:"Depois de configurar a Carteira SafePal, clique abaixo para atualizar o navegador e carregar a extensão."}},qr_code:{step1:{title:"Abra o aplicativo Carteira SafePal",description:"Coloque a Carteira SafePal na tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque em WalletConnect nas Configurações",description:"Escolha Nova Conexão, em seguida, escaneie o código QR e confirme o prompt para conectar."}}},desig:{extension:{step1:{title:"Instale a extensão Desig",description:"Recomendamos fixar Desig na sua barra de tarefas para facilitar o acesso à sua carteira."},step2:{title:"Criar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},subwallet:{extension:{step1:{title:"Instale a extensão SubWallet",description:"Recomendamos fixar SubWallet na sua barra de tarefas para acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase de recuperação com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}},qr_code:{step1:{title:"Abra o aplicativo SubWallet",description:"Recomendamos colocar SubWallet na tela inicial para acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de escanear",description:"Depois que você escanear, um prompt de conexão aparecerá para você conectar sua carteira."}}},clv:{extension:{step1:{title:"Instale a extensão CLV Wallet",description:"Recomendamos fixar CLV Wallet na sua barra de tarefas para acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}},qr_code:{step1:{title:"Abra o aplicativo da carteira CLV",description:"Recomendamos colocar a Carteira CLV na tela inicial para acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de escanear",description:"Depois que você escanear, um prompt de conexão aparecerá para você conectar sua carteira."}}},okto:{qr_code:{step1:{title:"Abra o aplicativo Okto",description:"Adicione Okto à sua tela inicial para acesso rápido"},step2:{title:"Crie uma carteira MPC",description:"Crie uma conta e gere uma carteira"},step3:{title:"Toque em WalletConnect nas Configurações",description:"Toque no ícone Scan QR no canto superior direito e confirme o prompt para conectar."}}},ledger:{desktop:{step1:{title:"Abra o aplicativo Ledger Live",description:"Recomendamos colocar o Ledger Live na tela inicial para um acesso mais rápido."},step2:{title:"Configure seu Ledger",description:"Configure um novo Ledger ou conecte-se a um já existente."},step3:{title:"Conectar",description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}},qr_code:{step1:{title:"Abra o aplicativo Ledger Live",description:"Recomendamos colocar o Ledger Live na tela inicial para um acesso mais rápido."},step2:{title:"Configure seu Ledger",description:"Você pode sincronizar com o aplicativo de desktop ou conectar seu Ledger."},step3:{title:"Escanear o código",description:"Toque em WalletConnect e em seguida mude para Scanner. Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}}}},Fw={connect_wallet:lg0,intro:cg0,sign_in:dg0,connect:Eg0,connect_scan:pg0,connector_group:hg0,get:Cg0,get_options:mg0,get_mobile:bg0,get_instructions:gg0,chains:Ag0,profile:yg0,wallet_connectors:vg0},Bg0={label:"Подключить кошелек"},Fg0={title:"Что такое кошелек?",description:"Кошелек используется для отправки, получения, хранения и отображения цифровых активов. Это также новый способ входа в систему, без необходимости создания новых учетных записей и паролей на каждом сайте.",digital_asset:{title:"Дом для ваших цифровых активов",description:"Кошельки используются для отправки, получения, хранения и отображения цифровых активов, таких как Ethereum и NFT."},login:{title:"Новый способ входа в систему",description:"Вместо создания новых аккаунтов и паролей на каждом сайте, просто подключите ваш кошелек."},get:{label:"Получить кошелек"},learn_more:{label:"Узнать больше"}},Dg0={label:"Проверьте ваш аккаунт",description:"Чтобы завершить подключение, вы должны подписать сообщение в вашем кошельке, чтобы подтвердить, что вы являетесь владельцем этого аккаунта.",message:{send:"Отправить сообщение",preparing:"Подготовка сообщения...",cancel:"Отмена",preparing_error:"Ошибка при подготовке сообщения, пожалуйста, попробуйте снова!"},signature:{waiting:"Ожидание подписи...",verifying:"Проверка подписи...",signing_error:"Ошибка при подписании сообщения, пожалуйста, попробуйте снова!",verifying_error:"Ошибка при проверке подписи, пожалуйста, попробуйте снова!",oops_error:"Ой, что-то пошло не так!"}},wg0={label:"Подключить",title:"Подключить кошелек",new_to_ethereum:{description:"Впервые столкнулись с кошельками Ethereum?",learn_more:{label:"Узнать больше"}},learn_more:{label:"Узнать больше"},recent:"Недавние",status:{opening:"Открывается %{wallet}...",not_installed:"%{wallet} не установлен",not_available:"%{wallet} не доступен",confirm:"Подтвердите подключение в расширении"},secondary_action:{get:{description:"У вас нет %{wallet}?",label:"ПОЛУЧИТЬ"},install:{label:"УСТАНОВИТЬ"},retry:{label:"ПОВТОРИТЬ"}},walletconnect:{description:{full:"Нужен официальный модальный окно WalletConnect?",compact:"Нужен модальный окно WalletConnect?"},open:{label:"ОТКРЫТЬ"}}},xg0={title:"Сканировать с помощью %{wallet}",fallback_title:"Сканировать с помощью вашего телефона"},kg0={recommended:"Рекомендуемые",other:"Другие",popular:"Популярные",more:"Больше",others:"Другие"},_g0={title:"Получить кошелек",action:{label:"ПОЛУЧИТЬ"},mobile:{description:"Мобильный кошелек"},extension:{description:"Расширение для браузера"},mobile_and_extension:{description:"Мобильный кошелек и расширение"},mobile_and_desktop:{description:"Мобильный и настольный кошелек"},looking_for:{title:"Не то, что вы ищете?",mobile:{description:"Выберите кошелек на главном экране, чтобы начать работу с другим провайдером кошелька."},desktop:{compact_description:"Выберите кошелек на главном экране, чтобы начать работу с другим провайдером кошелька.",wide_description:"Выберите кошелек слева, чтобы начать работу с другим провайдером кошелька."}}},Sg0={title:"Начните с %{wallet}",short_title:"Получить %{wallet}",mobile:{title:"%{wallet} для мобильных",description:"Используйте мобильный кошелек для исследования мира Ethereum.",download:{label:"Скачать приложение"}},extension:{title:"%{wallet} для %{browser}",description:"Доступ к вашему кошельку прямо из вашего любимого веб-браузера.",download:{label:"Добавить в %{browser}"}},desktop:{title:"%{wallet} для %{platform}",description:"Получите доступ к вашему кошельку нативно со своего мощного рабочего стола.",download:{label:"Добавить в %{platform}"}}},Tg0={title:"Установить %{wallet}",description:"Отсканируйте на своем телефоне для скачивания на iOS или Android",continue:{label:"Продолжить"}},Pg0={mobile:{connect:{label:"Подключить"},learn_more:{label:"Узнать больше"}},extension:{refresh:{label:"Обновить"},learn_more:{label:"Узнать больше"}},desktop:{connect:{label:"Подключить"},learn_more:{label:"Узнать больше"}}},Ig0={title:"Переключить сети",wrong_network:"Обнаружена неверная сеть, переключитесь или отключитесь для продолжения.",confirm:"Подтвердить в кошельке",switching_not_supported:"Ваш кошелек не поддерживает переключение сетей с %{appName}. Попробуйте переключить сети из вашего кошелька.",switching_not_supported_fallback:"Ваш кошелек не поддерживает переключение сетей из этого приложения. Попробуйте переключить сети из вашего кошелька.",disconnect:"Отключить",connected:"Подключено"},Og0={disconnect:{label:"Отключить"},copy_address:{label:"Скопировать адрес",copied:"Скопировано!"},explorer:{label:"Посмотреть больше в эксплорере"},transactions:{description:"%{appName} транзакции появятся здесь...",description_fallback:"Ваши транзакции появятся здесь...",recent:{title:"Недавние транзакции"},clear:{label:"Очистить все"}}},Rg0={argent:{qr_code:{step1:{description:"Добавьте Argent на домашний экран для более быстрого доступа к вашему кошельку.",title:"Откройте приложение Argent"},step2:{description:"Создайте кошелек и имя пользователя или импортируйте существующий кошелек.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение для подключения вашего кошелька.",title:"Нажмите кнопку Сканировать QR"}}},bifrost:{qr_code:{step1:{description:"Мы рекомендуем добавить кошелек Bifrost на ваш начальный экран для более быстрого доступа.",title:"Откройте приложение Bifrost Wallet"},step2:{description:"Создайте или импортируйте кошелек, используя вашу фразу восстановления.",title:"Создать или импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение вашего кошелька.",title:"Нажмите кнопку сканирования"}}},bitget:{qr_code:{step1:{description:"Мы рекомендуем добавить Bitget Wallet на ваш экран для более быстрого доступа.",title:"Откройте приложение Bitget Wallet"},step2:{description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение вашего кошелька.",title:"Нажмите кнопку сканирования"}},extension:{step1:{description:"Мы рекомендуем закрепить Bitget Wallet на панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Bitget Wallet"},step2:{description:"Обязательно сохраните резервную копию вашего кошелька с помощью надёжного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},bitski:{extension:{step1:{description:"Мы рекомендуем прикрепить Bitski к вашей панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Bitski"},step2:{description:"Обязательно сохраните резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать кошелек или Импортировать кошелек"},step3:{description:"После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},coin98:{qr_code:{step1:{description:"Мы рекомендуем добавить Coin98 Wallet на ваш главный экран для более быстрого доступа к вашему кошельку.",title:"Откройте приложение Coin98 Wallet"},step2:{description:"Вы можете легко сделать резервную копию вашего кошелька, используя нашу функцию резервного копирования на вашем телефоне.",title:"Создать или импортировать кошелек"},step3:{description:"После сканирования для вас появится запрос на подключение, чтобы подключить ваш кошелек.",title:"Нажмите кнопку WalletConnect"}},extension:{step1:{description:"Нажмите в верхнем правом углу вашего браузера и закрепите Coin98 Wallet для удобного доступа.",title:"Установите расширение Coin98 Wallet"},step2:{description:"Создайте новый кошелек или импортируйте существующий.",title:"Создайте или импортируйте кошелек"},step3:{description:"После того как вы настроите Кошелек Coin98, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},coinbase:{qr_code:{step1:{description:"Мы рекомендуем добавить Coinbase Wallet на ваш экран начала для более быстрого доступа.",title:"Откройте приложение Coinbase Wallet"},step2:{description:"Вы легко можете сделать резервную копию вашего кошелька, используя функцию облачного резервного копирования.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение для подключения вашего кошелька.",title:"Нажмите кнопку сканирования"}},extension:{step1:{description:"Мы рекомендуем закрепить Coinbase Wallet на вашей панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Coinbase Wallet"},step2:{description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},core:{qr_code:{step1:{description:"Мы рекомендуем добавить Core на ваш экран быстрого доступа для ускоренного доступа к вашему кошельку.",title:"Открыть приложение Core"},step2:{description:"Вы можете легко создать резервную копию вашего кошелька, используя нашу функцию резервного копирования на вашем телефоне.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение, чтобы вы могли подключить ваш кошелек.",title:"Нажмите кнопку WalletConnect"}},extension:{step1:{description:"Мы рекомендуем закрепить Core на панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Core"},step2:{description:"Обязательно создайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь вашей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"Как только вы настроите ваш кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},fox:{qr_code:{step1:{description:"Мы рекомендуем поместить FoxWallet на ваш экран начального экрана для более быстрого доступа.",title:"Откройте приложение FoxWallet"},step2:{description:"Обязательно сделайте резервное копирование вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится приглашение для подключения вашего кошелька.",title:"Нажмите кнопку сканирования"}}},frontier:{qr_code:{step1:{description:"Мы рекомендуем установить Frontier Wallet на экран вашего смартфона для более быстрого доступа.",title:"Откройте приложение Frontier Wallet"},step2:{description:"Обязательно сделайте резервное копирование вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение кошелька.",title:"Нажмите кнопку сканирования"}},extension:{step1:{description:"Мы рекомендуем прикрепить кошелек Frontier к панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение кошелька Frontier"},step2:{description:"Обязательно сделайте резервную копию своего кошелька с использованием надежного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или импортировать кошелек"},step3:{description:"После настройки вашего кошелька нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},im_token:{qr_code:{step1:{title:"Откройте приложение imToken",description:"Поместите приложение imToken на главный экран для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите на иконку сканера в верхнем правом углу",description:"Выберите Новое соединение, затем отсканируйте QR-код и подтвердите запрос на соединение."}}},metamask:{qr_code:{step1:{title:"Откройте приложение MetaMask",description:"Мы рекомендуем поместить MetaMask на главный экран для быстрого доступа."},step2:{title:"Создайте или импортируйте кошелек",description:"Обязательно сохраните копию своего кошелька с помощью надежного метода. Никогда не делитесь своей секретной фразой с кем бы то ни было."},step3:{title:"Нажмите кнопку сканирования",description:"После сканирования появится запрос на соединение вашего кошелька."}},extension:{step1:{title:"Установите расширение MetaMask",description:"Мы рекомендуем закрепить MetaMask на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сохраните резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, щелкните ниже, чтобы обновить браузер и загрузить расширение."}}},okx:{qr_code:{step1:{title:"Откройте приложение кошелька OKX",description:"Мы рекомендуем разместить кошелек OKX на вашем главном экране для более быстрого доступа."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сохраните резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Нажмите на кнопку сканирования",description:"После сканирования появится запрос на подключение вашего кошелька."}},extension:{step1:{title:"Установите расширение кошелька OKX",description:"Мы рекомендуем закрепить OKX Wallet на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать кошелек или импортировать кошелек",description:"Обязательно сохраните резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"Как только вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},omni:{qr_code:{step1:{title:"Откройте приложение Omni",description:"Добавьте Omni на свой домашний экран для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите на иконку QR и отсканируйте",description:"Нажмите на иконку QR на вашем домашнем экране, отсканируйте код и подтвердите подсказку, чтобы подключиться."}}},token_pocket:{qr_code:{step1:{title:"Откройте приложение TokenPocket",description:"Мы рекомендуем разместить TokenPocket на вашем домашнем экране для быстрого доступа."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька при помощи безопасного метода. Никогда не делитесь своим секретным кодом с кем-либо."},step3:{title:"Нажмите на кнопку сканирования",description:"После сканирования появится подсказка о подключении для подключения вашего кошелька."}},extension:{step1:{title:"Установите расширение TokenPocket",description:"Мы рекомендуем закрепить TokenPocket на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},trust:{qr_code:{step1:{title:"Откройте приложение Trust Wallet",description:"Разместите Trust Wallet на вашем домашнем экране для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите WalletConnect в настройках",description:"Выберите Новое соединение, затем сканируйте QR-код и подтвердите запрос на подключение."}},extension:{step1:{title:"Установите расширение Trust Wallet",description:"Кликните в правом верхнем углу вашего браузера и закрепите Trust Wallet для легкого доступа."},step2:{title:"Создайте или импортируйте кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Обновите ваш браузер",description:"После настройки Trust Wallet, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},uniswap:{qr_code:{step1:{title:"Откройте приложение Uniswap",description:"Добавьте кошелек Uniswap на главный экран для быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите на иконку QR и отсканируйте",description:"Нажмите на иконку QR на главном экране, отсканируйте код и подтвердите запрос на подключение."}}},zerion:{qr_code:{step1:{title:"Откройте приложение Zerion",description:"Мы рекомендуем разместить Zerion на главном экране для более быстрого доступа."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Нажмите кнопку сканирования",description:"После сканирования вам будет предложено подключить ваш кошелек."}},extension:{step1:{title:"Установите расширение Zerion",description:"Мы рекомендуем прикрепить Zerion к вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создайте или импортируйте кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делясь своим секретным паролем с кем-либо."},step3:{title:"Обновите ваш браузер",description:"Как только вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},rainbow:{qr_code:{step1:{title:"Откройте приложение Rainbow",description:"Мы рекомендуем поместить Rainbow на ваш экран главного меню для более быстрого доступа к вашему кошельку."},step2:{title:"Создайте или импортируйте кошелек",description:"Вы можете легко сделать резервную копию вашего кошелька с помощью нашей функции резервного копирования на вашем телефоне."},step3:{title:"Нажмите кнопку сканировать",description:"После сканирования появится запрос на подключение вашего кошелька."}}},enkrypt:{extension:{step1:{description:"Мы рекомендуем закрепить Enkrypt Wallet на панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Enkrypt Wallet"},step2:{description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или импортировать кошелек"},step3:{description:"Как только вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},frame:{extension:{step1:{description:"Мы рекомендуем закрепить Frame на панели задач для более быстрого доступа к вашему кошельку.",title:"Установите Frame и дополнительное расширение"},step2:{description:"Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создайте или Импортируйте кошелек"},step3:{description:"После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},one_key:{extension:{step1:{title:"Установите расширение OneKey Wallet",description:"Мы рекомендуем закрепить OneKey Wallet на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создайте или Импортируйте кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки кошелька нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},phantom:{extension:{step1:{title:"Установите расширение Phantom",description:"Мы рекомендуем закрепить Phantom на панели задач для более удобного доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой восстановления с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},rabby:{extension:{step1:{title:"Установите расширение Rabby",description:"Мы рекомендуем закрепить Rabby на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем бы то ни было."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},safeheron:{extension:{step1:{title:"Установите основное расширение",description:"Мы рекомендуем закрепить SafeHeron на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После того, как вы настроите ваш кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},taho:{extension:{step1:{title:"Установите расширение Taho",description:"Мы рекомендуем закрепить Taho на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},talisman:{extension:{step1:{title:"Установите расширение Talisman",description:"Мы рекомендуем закрепить Talisman на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создайте или импортируйте кошелек Ethereum",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь вашей фразой восстановления с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},xdefi:{extension:{step1:{title:"Установите расширение кошелька XDEFI",description:"Мы рекомендуем закрепить XDEFI Wallet на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После того, как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},zeal:{extension:{step1:{title:"Установите расширение Zeal",description:"Мы рекомендуем закрепить Zeal на панели задач для быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},safepal:{extension:{step1:{title:"Установите расширение SafePal Wallet",description:"Кликните в верхнем правом углу вашего браузера и закрепите SafePal Wallet для удобного доступа."},step2:{title:"Создайте или импортируйте кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Обновите ваш браузер",description:"После настройки кошелька SafePal нажмите ниже, чтобы обновить браузер и загрузить расширение."}},qr_code:{step1:{title:"Откройте приложение SafePal Wallet",description:"Разместите SafePal Wallet на главном экране для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите WalletConnect в настройках",description:"Выберите Новое соединение, затем отсканируйте QR-код и подтвердите запрос на соединение."}}},desig:{extension:{step1:{title:"Установите расширение Desig",description:"Мы рекомендуем закрепить Desig на вашей панели задач для более удобного доступа к вашему кошельку."},step2:{title:"Создать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},subwallet:{extension:{step1:{title:"Установите расширение SubWallet",description:"Мы рекомендуем закрепить SubWallet на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь вашей фразой восстановления с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}},qr_code:{step1:{title:"Откройте приложение SubWallet",description:"Мы рекомендуем добавить SubWallet на ваш экран начальной страницы для более быстрого доступа."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Нажмите кнопку сканирования",description:"После сканирования появится запрос на подключение для подключения вашего кошелька."}}},clv:{extension:{step1:{title:"Установите расширение CLV Wallet",description:"Мы рекомендуем закрепить CLV Wallet на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}},qr_code:{step1:{title:"Откройте приложение CLV Wallet",description:"Мы рекомендуем поместить CLV Wallet на ваш экран домой для более быстрого доступа."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Нажмите кнопку сканирования",description:"После сканирования появится запрос на подключение для подключения вашего кошелька."}}},okto:{qr_code:{step1:{title:"Откройте приложение Okto",description:"Добавьте Okto на ваш экран домой для быстрого доступа"},step2:{title:"Создать кошелек MPC",description:"Создайте учетную запись и сгенерируйте кошелек"},step3:{title:"Нажмите WalletConnect в настройках",description:"Коснитесь значка Scan QR в верхнем правом углу и подтвердите запрос на подключение."}}},ledger:{desktop:{step1:{title:"Откройте приложение Ledger Live",description:"Мы рекомендуем поместить Ledger Live на ваш экран домой для более быстрого доступа."},step2:{title:"Настройте ваш Ledger",description:"Настройте новый Ledger или подключитесь к существующему."},step3:{title:"Подключить",description:"После сканирования вам будет предложено подключить ваш кошелек."}},qr_code:{step1:{title:"Откройте приложение Ledger Live",description:"Мы рекомендуем поместить Ledger Live на ваш экран домой для более быстрого доступа."},step2:{title:"Настройте ваш Ledger",description:"Вы можете синхронизировать с настольным приложением или подключить свой Ledger."},step3:{title:"Сканировать код",description:"Нажмите WalletConnect, затем переключитесь на Scanner. После сканирования вам будет предложено подключить ваш кошелек."}}}},Dw={connect_wallet:Bg0,intro:Fg0,sign_in:Dg0,connect:wg0,connect_scan:xg0,connector_group:kg0,get:_g0,get_options:Sg0,get_mobile:Tg0,get_instructions:Pg0,chains:Ig0,profile:Og0,wallet_connectors:Rg0},Ng0={label:"เชื่อมต่อกระเป๋าเงิน"},Mg0={title:"อะไรคือกระเป๋าเงิน?",description:"กระเป๋าเงินใช้ในการส่ง, รับ, เก็บ, และแสดงสินทรัพย์ดิจิทัล มันยังเป็นวิธีใหม่ในการเข้าสู่ระบบ, โดยไม่จำเป็นต้องสร้างบัญชีและรหัสผ่านใหม่ในทุกเว็บไซต์.",digital_asset:{title:"บ้านสำหรับสินทรัพย์ดิจิทัลของคุณ",description:"กระเป๋าเงินถูกใช้เพื่อส่ง, รับ, เก็บ, แสดงสินทรัพย์ดิจิทัล เช่น Ethereum และ NFTs."},login:{title:"วิธีใหม่ในการเข้าสู่ระบบ",description:"แทนที่จะสร้างบัญชีและรหัสผ่านใหม่ในทุกเว็บไซต์, แค่เชื่อมต่อกระเป๋าของคุณ."},get:{label:"รับกระเป๋าเงิน"},learn_more:{label:"เรียนรู้เพิ่มเติม"}},jg0={label:"ยืนยันบัญชีของคุณ",description:"เพื่อการเชื่อมต่อที่สมบูรณ์, คุณต้องลงนามในข้อความในกระเป๋าเงินของคุณเพื่อยืนยันว่าคุณเป็นเจ้าของบัญชีนี้",message:{send:"ส่งข้อความ",preparing:"กำลังเตรียมข้อความ...",cancel:"ยกเลิก",preparing_error:"เกิดข้อผิดพลาดในการเตรียมข้อความ โปรดลองใหม่!"},signature:{waiting:"รอการลงนาม...",verifying:"กำลังตรวจสอบลายเซ็น...",signing_error:"เกิดข้อผิดพลาดในการลงนามในข้อความ โปรดลองใหม่!",verifying_error:"เกิดข้อผิดพลาดในการตรวจสอบลายเซ็น โปรดลองใหม่!",oops_error:"อ๊ะ, เกิดข้อผิดพลาดบางอย่าง!"}},zg0={label:"เชื่อมต่อ",title:"เชื่อมต่อกระเป๋าเงิน",new_to_ethereum:{description:"ใหม่กับกระเป๋า Ethereum หรือไม่?",learn_more:{label:"เรียนรู้เพิ่มเติม"}},learn_more:{label:"เรียนรู้เพิ่มเติม"},recent:"ล่าสุด",status:{opening:"กำลังเปิด %{wallet}...",not_installed:"%{wallet} ไม่ได้ติดตั้ง",not_available:"%{wallet} ไม่สามารถใช้ได้",confirm:"ยืนยันการเชื่อมต่อในส่วนขยาย"},secondary_action:{get:{description:"ไม่มี %{wallet}?",label:"รับ"},install:{label:"ติดตั้ง"},retry:{label:"ลองใหม่"}},walletconnect:{description:{full:"ต้องการ modal อย่างเป็นทางการจาก WalletConnect หรือไม่?",compact:"ต้องการ modal จาก WalletConnect หรือไม่?"},open:{label:"เปิด"}}},Lg0={title:"สแกนด้วย %{wallet}",fallback_title:"สแกนด้วยโทรศัพท์ของคุณ"},$g0={recommended:"แนะนำ",other:"อื่น ๆ",popular:"ยอดนิยม",more:"เพิ่มเติม",others:"อื่น ๆ"},Ug0={title:"รับ Wallet",action:{label:"รับ"},mobile:{description:"Wallet บนมือถือ"},extension:{description:"ส่วนขยายบราวเซอร์"},mobile_and_extension:{description:"กระเป๋าเงินมือถือและส่วนขยาย"},mobile_and_desktop:{description:"กระเป๋าเงินบนมือถือและคอมพิวเตอร์"},looking_for:{title:"ไม่ใช่สิ่งที่คุณกำลังหาหรือไม่?",mobile:{description:"เลือกกระเป๋าเงินบนหน้าจอหลักเพื่อเริ่มต้นใช้งานกับผู้ให้บริการกระเป๋าเงินที่แตกต่างกัน"},desktop:{compact_description:"เลือกกระเป๋าเงินบนหน้าจอหลักเพื่อเริ่มต้นใช้งานกับผู้ให้บริการกระเป๋าเงินที่แตกต่างกัน",wide_description:"เลือกกระเป๋าเงินที่อยู่ทางซ้ายเพื่อเริ่มต้นใช้งานกับผู้ให้บริการกระเป๋าเงินที่แตกต่างกัน"}}},Wg0={title:"เริ่มต้นกับ %{wallet}",short_title:"รับ %{wallet}",mobile:{title:"%{wallet} สำหรับมือถือ",description:"ใช้กระเป๋าระบบมือถือในการสำรวจโลกของ Ethereum.",download:{label:"รับแอป"}},extension:{title:"%{wallet} สำหรับ %{browser}",description:"เข้าถึงกระเป๋าเงินของคุณได้โดยตรงจากบราวเซอร์ที่คุณชื่นชอบ.",download:{label:"เพิ่มไปยัง %{browser}"}},desktop:{title:"%{wallet} สำหรับ %{platform}",description:"เข้าถึงกระเป๋าเงินของคุณโดยตรงจากคอมพิวเตอร์ที่มีประสิทธิภาพของคุณ",download:{label:"เพิ่มไปยัง %{platform}"}}},qg0={title:"ติดตั้ง %{wallet}",description:"สแกนด้วยโทรศัพท์ของคุณเพื่อดาวน์โหลดบน iOS หรือ Android",continue:{label:"ดำเนินการต่อ"}},Hg0={mobile:{connect:{label:"เชื่อมต่อ"},learn_more:{label:"เรียนรู้เพิ่มเติม"}},extension:{refresh:{label:"รีเฟรช"},learn_more:{label:"เรียนรู้เพิ่มเติม"}},desktop:{connect:{label:"เชื่อมต่อ"},learn_more:{label:"เรียนรู้เพิ่มเติม"}}},Gg0={title:"เปลี่ยนเครือข่าย",wrong_network:"ตรวจสอบพบเครือข่ายที่ไม่ถูกต้อง สลับหรือตัดการเชื่อมต่อเพื่อดำเนินการต่อ.",confirm:"ยืนยันใน Wallet",switching_not_supported:"กระเป๋าสตางค์ของคุณไม่สนับสนุนการเปลี่ยนเครือข่ายจาก %{appName}ลองเปลี่ยนเครือข่ายจากภายในกระเป๋าสตางค์ของคุณแทน",switching_not_supported_fallback:"กระเป๋าสตางค์ของคุณไม่สนับสนุนการสลับเครือข่ายจากแอปนี้ ลองสลับเครือข่ายจากภายในกระเป๋าสตางค์ของคุณแทน",disconnect:"ตัดการเชื่อมต่อ",connected:"เชื่อมต่อแล้ว"},Vg0={disconnect:{label:"ตัดการเชื่อมต่อ"},copy_address:{label:"คัดลอกที่อยู่",copied:"คัดลอกแล้ว!"},explorer:{label:"ดูเพิ่มเติมบน explorer"},transactions:{description:"%{appName} รายการจะปรากฎที่นี่...",description_fallback:"การทำธุรกรรมของคุณจะปรากฎที่นี่...",recent:{title:"ธุรกรรมล่าสุด"},clear:{label:"ลบทั้งหมด"}}},Kg0={argent:{qr_code:{step1:{description:"วาง Argent บนหน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น",title:"เปิดแอป Argent"},step2:{description:"สร้างกระเป๋าเงินและชื่อผู้ใช้หรือนำเข้ากระเป๋าเงินที่มีอยู่แล้ว",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"หลังจากคุณสแกน จะปรากฏหน้าต่างเชื่อมต่อให้คุณเชื่อมต่อกระเป๋าเงินของคุณ",title:"แตะที่คุ่มุ่งสแกน QR"}}},bifrost:{qr_code:{step1:{description:"เราขอแนะนำให้คุณวาง Bifrost Wallet บนหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น",title:"เปิดแอพฯ Bifrost Wallet"},step2:{description:"สร้างหรือนำเข้ากระเป๋าเงินด้วย recovery phrase ของคุณ",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"หลังจากที่คุณสแกนแล้วยินยันการเชื่อมต่อกับกระเป๋าเงินของคุณ",title:"แตะปุ่มสแกน"}}},bitget:{qr_code:{step1:{description:"เราขอแนะนำให้วาง Bitget Wallet บนหน้าจอหน้าแรกของคุณเพื่อการเข้าถึงที่รวดเร็วขึ้น.",title:"เปิดแอพ Bitget Wallet"},step2:{description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด.",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"หลังจากที่คุณสแกน จะมีข้อความขอเชื่อมต่อที่จะปรากฏขึ้นให้คุณเชื่อมต่อกระเป๋าสตางค์ของคุณ.",title:"แตะปุ่มสแกน"}},extension:{step1:{description:"เราแนะนำให้คุณปัก Bitget Wallet ไว้บนแถบงานของคุณเพื่อเข้าถึงกระเป๋าสตางค์ได้เร็วขึ้น",title:"ติดตั้งส่วนเสริม Bitget Wallet"},step2:{description:"โปรดแน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับบุคคลใดๆ",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},bitski:{extension:{step1:{description:"เราแนะนำให้ทำปัก Bitski ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินได้โดยไม่ต้องรอ",title:"ติดตั้งส่วนขยาย Bitski"},step2:{description:"ควรสำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยคำลับของคุณให้ใครทราบ",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},coin98:{qr_code:{step1:{description:"เราขอแนะนำให้คุณวาง Coin98 Wallet บนหน้าจอหลักของคุณ เพื่อให้เข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น.",title:"เปิดแอพ Coin98 Wallet"},step2:{description:"คุณสามารถสำรองข้อมูลกระเป๋าเงินของคุณได้ง่ายๆ ด้วยฟีเจอร์สำรองข้อมูลบนโทรศัพท์ของคุณ.",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"หลังจากคุณสแกน จะมีเตือนการเชื่อมต่อที่ปรากฏขึ้นให้คุณเชื่อมต่อกระเป๋าเงินของคุณ.",title:"แตะที่ปุ่ม WalletConnect"}},extension:{step1:{description:"คลิกที่ด้านบนขวาของเบราว์เซอร์ของคุณและปัก Coin98 Wallet ไว้เพื่อให้เข้าถึงได้ง่าย.",title:"ติดตั้งส่วนขยาย Coin98 Wallet"},step2:{description:"สร้างกระเป๋าเงินใหม่หรือนำเข้าที่มีอยู่แล้ว.",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"เมื่อคุณตั้งค่า Coin98 Wallet แล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยายขึ้นมา.",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},coinbase:{qr_code:{step1:{description:"เราแนะนำให้วาง Coinbase Wallet ไว้ที่หน้าจอหลักของคุณเพื่อให้เข้าถึงได้เร็วขึ้น.",title:"เปิดแอป Coinbase Wallet"},step2:{description:"คุณสามารถสำรองข้อมูลกระเป๋าสตางค์ของคุณได้ง่ายๆ โดยใช้ฟีเจอร์การสำรองข้อมูลด้วยคลาวด์",title:"สร้างหรือนำเข้ากระเป๋าสตางค์"},step3:{description:"หลังจากที่คุณสแกนแล้ว จะมีการแสดงขอ้มูลเพื่อให้คุณเชื่อมต่อกระเป๋าสตางค์ของคุณ",title:"แตะที่ปุ่มสแกน"}},extension:{step1:{description:"เราแนะนำให้คุณยัด Coinbase Wallet ไว้ที่แถบงานของคุณเพื่อให้สามารถเข้าถึงกระเป๋าสตางค์ของคุณได้เร็วขึ้น",title:"ติดตั้งส่วนขยาย Coinbase Wallet"},step2:{description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับของคุณให้กับใครเลย",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"เมื่อคุณได้ตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อเรียกดูเบราว์เซอร์ใหม่และโหลดส่วนขยาย",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},core:{qr_code:{step1:{description:"เราแนะนำให้คุณวาง Core ลงสนามหลักเพื่อให้เข้าถึงกระเป๋าเงินได้เร็วขึ้น",title:"เปิดแอปเครื่องมือช่วยอีเกิร์น"},step2:{description:"คุณสามารถสำรองกระเป๋าเงินของคุณได้ง่ายๆ โดยใช้ฟีเจอร์สำรองของเราบนโทรศัพท์ของคุณ",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"หลังจากที่คุณสแกนแล้ว จะมีการแจ้งเตือนเพื่อให้คุณเชื่อมต่อกับกระเป๋าสตางค์ของคุณ",title:"แตะปุ่ม WalletConnect"}},extension:{step1:{description:"เราขอแนะนำให้คุณปัก Core ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าสตางค์ของคุณได้อย่างรวดเร็ว",title:"ติดตั้งส่วนขยาย Core"},step2:{description:"โปรดแน่ใจว่าคุณได้สำรองกระเป๋าสตางค์ของคุณใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"เมื่อคุณตั้งค่ากระเป๋าสตางค์ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},fox:{qr_code:{step1:{description:"เราขอแนะนำให้คุณวาง FoxWallet บนหน้าจอหลักเพื่อให้เข้าถึงได้เร็วขึ้น",title:"เปิดแอป FoxWallet"},step2:{description:"ตรวจสอบที่จะสำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย จงอย่าเปิดเผยประโยคลับลับของคุณให้ผู้อื่นรู้",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"หลังจากที่คุณสแกน จะมีการเชื่อมต่อที่แสดงให้คุณเชื่อมต่อกระเป๋าเงินของคุณ",title:"แตะปุ่มสแกน"}}},frontier:{qr_code:{step1:{description:"เราขอแนะนำให้คุณวาง Frontier Wallet บนหน้าจอหลักเพื่อให้เข้าถึงได้เร็วขึ้น",title:"เปิดแอป Frontier Wallet"},step2:{description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าสตางค์ของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร",title:"สร้างหรือนำเข้ากระเป๋าสตางค์"},step3:{description:"หลังจากที่คุณสแกนแล้ว จะมีการแสดงข้อมูลเพื่อให้คุณเชื่อมต่อกับกระเป๋าสตางค์ของคุณ",title:"แตะปุ่มสแกน"}},extension:{step1:{description:"เราแนะนำให้คุณปักหมุด Frontier Wallet ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าสตางค์ของคุณได้ง่ายขึ้น",title:"ติดตั้งส่วนเสริม Frontier Wallet"},step2:{description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าสตางค์ของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร",title:"สร้างหรือนำเข้ากระเป๋าสตางค์"},step3:{description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},im_token:{qr_code:{step1:{title:"เปิดแอพ imToken",description:"ใส่แอพ imToken ไว้ที่หน้าจอหลักเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น."},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"สร้างกระเป๋าเงินใหม่หรือนำเข้ากระเป๋าเงินที่มีอยู่แล้ว"},step3:{title:"แตะไอคอนสแกนเนอร์ในมุมบนขวา",description:"เลือก New Connection, แล้วสแกน QR code และยืนยันการรับรองสำหรับการเชื่อมต่อ"}}},metamask:{qr_code:{step1:{title:"เปิดแอป MetaMask",description:"เราขอแนะนำให้วาง MetaMask บนหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบว่าได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้กับใคร"},step3:{title:"แตะที่ปุ่มสแกน",description:"หลังจากการสแกน, จะปรากฏข้อความเชื่อมต่อสำหรับคุณเพื่อเชื่อมต่อกับกระเป๋าเงินของคุณ"}},extension:{step1:{title:"ติดตั้งส่วนขยาย MetaMask",description:"เราขอแนะนำให้คุณปัก MetaMask ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้รวดเร็ว"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"อย่างแน่นอนให้สำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์ประโยคลับของคุณกับใครเลย"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},okx:{qr_code:{step1:{title:"เปิดแอพ OKX Wallet",description:"เราแนะนำให้วาง OKX Wallet บนหน้าจอหลักของคุณเพื่อให้เข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"จงแน่ใจว่าคุณได้สำรองข้อมูล wallet ของคุณด้วยวิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณให้คนอื่น"},step3:{title:"แตะปุ่มสแกน",description:"หลังจากคุณสแกน จะมีการแสดงข้อมูลเพื่อให้คุณเชื่อมต่อ wallet ของคุณ"}},extension:{step1:{title:"ติดตั้งส่วนเสริม OKX Wallet",description:"เราแนะนำให้ยึด OKX Wallet ไว้ที่แถบงานของคุณเพื่อให้เข้าถึง wallet ของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"โปรดแน่ใจว่าคุณได้สำรองกระเป๋าสตางค์ของคุณด้วยวิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับของคุณให้ใครทราบ"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าสตางค์ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},omni:{qr_code:{step1:{title:"เปิดแอป Omni",description:"เพิ่ม Omni ไปยังหน้าจอแรกเพื่อเข้าถึงกระเป๋าสตางค์ของคุณได้รวดเร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าสตางค์",description:"สร้างกระเป๋าสตางค์ใหม่หรือนำเข้ากระเป๋าสตางค์ที่มีอยู่"},step3:{title:"แตะที่ไอคอน QR แล้วสแกน",description:"แตะที่ไอคอน QR บนหน้าจอหน้าแรกของคุณ, สแกนรหัสและยืนยันการเตือนเพื่อเชื่อมต่อ."}}},token_pocket:{qr_code:{step1:{title:"เปิดแอป TokenPocket",description:"เราแนะนำให้วาง TokenPocket บนหน้าจอหน้าแรกของคุณเพื่อเข้าถึงได้เร็วขึ้น."},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"ตรวจสอบว่าได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้ผู้อื่นทราบในทางใดทางหนึ่ง."},step3:{title:"แตะปุ่มสแกน",description:"หลังจากที่คุณสแกนแล้ว จะมีการเรียกให้เชื่อมต่อกับกระเป๋าเงินของคุณ"}},extension:{step1:{title:"ติดตั้งส่วนขยาย TokenPocket",description:"เราขอแนะนำให้คุณปัก TokenPocket ไว้ที่แถบงานเพื่อทำให้สามารถเข้าถึงกระเป๋าเงินของคุณได้ง่ายขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณด้วยวิธีที่ปลอดภัย อย่าทำการแชร์ประโยคลับด้วยความลับของคุณกับใคร"},step3:{title:"รีเฟรชบราวเซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชบราวเซอร์และโหลดส่วนขยาย"}}},trust:{qr_code:{step1:{title:"เปิดแอพ Trust Wallet",description:"วาง Trust Wallet ที่หน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้รวดเร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"สร้าง wallet ใหม่หรือนำเข้า wallet ที่มีอยู่แล้ว"},step3:{title:"แตะ WalletConnect ในการตั้งค่า",description:"เลือก New Connection จากนั้นสแกน QR code และยืนยันการแจ้งเตือนเพื่อเชื่อมต่อ"}},extension:{step1:{title:"ติดตั้งส่วนขยาย Trust Wallet",description:"คลิกที่มุมบนขวาของเบราว์เซอร์ของคุณและปัก Trust Wallet เพื่อเข้าถึงได้ง่าย"},step2:{title:"สร้างหรือนำเข้า wallet",description:"สร้าง wallet ใหม่หรือนำเข้า wallet ที่มีอยู่แล้ว"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่า Trust Wallet แล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยายขึ้นมา"}}},uniswap:{qr_code:{step1:{title:"เปิดแอป Uniswap",description:"เพิ่ม Uniswap Wallet ไปยังหน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"สร้างกระเป๋าเงินใหม่หรือนำเข้ากระเป๋าเงินที่มีอยู่แล้ว"},step3:{title:"แตะที่ไอคอน QR และสแกน",description:"แตะที่ไอคอน QR บนหน้าจอหลักของคุณ สแกนรหัสและยืนยันการเชื่อมต่อ"}}},zerion:{qr_code:{step1:{title:"เปิดแอป Zerion",description:"เราแนะนำให้คุณวาง Zerion บนหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ลองทำสำเนาข้อมูล wallet ของคุณไว้ในช่องทางที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้กับผู้อื่น"},step3:{title:"แตะที่ปุ่มสแกน",description:"หลังจากสแกน จะมีหน้าต่างแสดงคำสั่งเชื่อมต่อให้คุณเชื่อมต่อ wallet ของคุณ"}},extension:{step1:{title:"ติดตั้งส่วนขยาย Zerion",description:"เราแนะนำให้คุณติด Zerion บนแถบงานของคุณเพื่อเข้าถึง wallet ของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณโดยวิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับลับของคุณให้ใครทราบครับ"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},rainbow:{qr_code:{step1:{title:"เปิดแอป Rainbow",description:"เราขอแนะนำให้คุณวาง Rainbow อยู่บนหน้าจอหลักของคุณเพื่อรับผิดชอบจากกระเป๋าสตางค์ของคุณอย่างรวดเร็ว"},step2:{title:"สร้างหรือนำเข้ากระเป๋าสตางค์",description:"คุณสามารถสำรองข้อมูลกระเป๋าสตางค์ของคุณได้ง่ายๆ ด้วยฟีเจอร์สำรองข้อมูลบนโทรศัพท์ของคุณ"},step3:{title:"แตะปุ่มสแกน",description:"หลังจากสแกนแล้ว จะแสดงข้อความขอเชื่อมต่อเพื่อให้คุณเชื่อมต่อกระเป๋าสตางค์ของคุณ"}}},enkrypt:{extension:{step1:{description:"เราขอแนะนำให้คุณปัก Enkrypt Wallet ไว้ที่แทบงานของคุณเพื่อให้สามารถเข้าถึงกระเป๋าสตางค์ของคุณได้เร็วขึ้น",title:"ติดตั้งส่วนขยาย Enkrypt Wallet"},step2:{description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองกระเป๋าสตางค์ของคุณโดยใช้วิธีที่ปลอดภัย ห้ามแชร์วลีลับของคุณให้กับใคร",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"เมื่อคุณตั้งค่า wallet ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรช browser และโหลดขึ้น extension",title:"รีเฟรช browser ของคุณ"}}},frame:{extension:{step1:{description:"เราแนะนำให้หมุน Frame ไว้บน taskbar ของคุณเพื่อให้เข้าถึง wallet ได้เร็วขึ้น",title:"ติดตั้ง Frame และ extension ที่เป็นคู่"},step2:{description:"ตรวจสอบว่าได้สำรอง wallet ของคุณโดยใช้วิธีการที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้กับใคร",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"เมื่อคุณตั้งค่า wallet ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรช browser และโหลดขึ้น extension",title:"รีเฟรช browser ของคุณ"}}},one_key:{extension:{step1:{title:"ติดตั้งส่วนเสริม OneKey Wallet",description:"เราแนะนำการปัก OneKey Wallet ไว้บนแทบงานของคุณเพื่อเข้าถึงกระเป๋าเงินได้ง่ายขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"อย่าลืมสำรองกระเป๋าเงินของคุณด้วยวิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}}},phantom:{extension:{step1:{title:"ติดตั้งส่วนเสริม Phantom",description:"เราแนะนำการปัก Phantom ไว้บนแทบงานของคุณเพื่อเข้าถึงกระเป๋าเงินได้ง่ายขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยข้อความลับสำหรับการกู้คืนของคุณกับบุคคลใด ๆ"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินเรียบร้อยแล้ว, คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},rabby:{extension:{step1:{title:"ติดตั้งส่วนขยาย Rabby",description:"เราแนะนำให้คุณปัก Rabby ไว้ที่แถบงานเพื่อให้เข้าถึงกระเป๋าเงินของคุณได้รวดเร็วขึ้น."},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์ข้อความลับของคุณกับบุคคลอื่น"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},safeheron:{extension:{step1:{title:"ติดตั้งส่วนขยาย Core",description:"เราขอแนะนำให้คุณปัก Safeheron ไว้ที่แถบงานเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"อย่าลืมสำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับของคุณให้ผู้อื่นทราบ"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},taho:{extension:{step1:{title:"ติดตั้งส่วนขยาย Taho",description:"เราแนะนำให้คุณปัก Taho ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"โปรดแน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์ประโยคลับคุณกับผู้อื่น"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},talisman:{extension:{step1:{title:"ติดตั้งส่วนขยาย Talisman",description:"เราแนะนำให้คุณปัก Talisman ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน Ethereum",description:"ให้แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีการกู้คืนของคุณให้ใครทราบเด็ดขาด"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},xdefi:{extension:{step1:{title:"ติดตั้งส่วนขยาย XDEFI Wallet",description:"เราแนะนำให้คุณตรา XDEFI Wallet ไว้ที่แถบงานเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"ให้แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้ใครทราบเด็ดขาด"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"หลังจากที่คุณตั้งค่ากระเป๋าสตางค์ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชบราวเซอร์และโหลดส่วนเสริม."}}},zeal:{extension:{step1:{title:"ติดตั้งส่วนขยาย Zeal",description:"เราแนะนำให้ปัก Zeal ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}}},safepal:{extension:{step1:{title:"ติดตั้งส่วนขยาย SafePal Wallet",description:"คลิกที่มุมบนขวาของเบราว์เซอร์ของคุณและปักมุม SafePal Wallet เพื่อที่จะเข้าถึงได้ง่าย"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"สร้างกระเป๋าเงินใหม่หรือนำเข้าที่มีอยู่แล้ว."},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"หลังจากคุณตั้งค่า SafePal Wallet เรียบร้อยแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}},qr_code:{step1:{title:"เปิดแอป SafePal Wallet",description:"วาง SafePal Wallet ที่หน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"สร้างกระเป๋าเงินใหม่หรือนำเข้าที่มีอยู่แล้ว."},step3:{title:"แตะ WalletConnect ในการตั้งค่า",description:"เลือก New Connection, แล้วสแกน QR code และยืนยันการรับรองสำหรับการเชื่อมต่อ"}}},desig:{extension:{step1:{title:"ติดตั้งส่วนขยาย Desig",description:"เราขอแนะนำให้คุณตรึง Desig ไว้ที่แถบงานของคุณเพื่อให้เข้าถึงกระเป๋าเงินของคุณได้ง่ายขึ้น"},step2:{title:"สร้างกระเป๋าเงิน",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}}},subwallet:{extension:{step1:{title:"ติดตั้งส่วนขยาย SubWallet",description:"เราขอแนะนำให้คุณตรึง SubWallet ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ให้แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีการกู้คืนของคุณให้ใครทราบเด็ดขาด"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}},qr_code:{step1:{title:"เปิดแอพ SubWallet",description:"เราขอแนะนำให้วาง SubWallet ไว้ที่หน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"แตะปุ่มสแกน",description:"หลังจากคุณสแกน จะปรากฏหน้าต่างเชื่อมต่อให้คุณเชื่อมต่อกระเป๋าเงินของคุณ"}}},clv:{extension:{step1:{title:"ติดตั้งส่วนขยาย CLV Wallet",description:"เราขอแนะนำให้คุณตรึง CLV Wallet ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}},qr_code:{step1:{title:"เปิดแอพ CLV Wallet",description:"เราแนะนำให้คุณวาง CLV Wallet บนหน้าจอหลักเพื่อให้สามารถเข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"แตะปุ่มสแกน",description:"หลังจากคุณสแกน จะปรากฏหน้าต่างเชื่อมต่อให้คุณเชื่อมต่อกระเป๋าเงินของคุณ"}}},okto:{qr_code:{step1:{title:"เปิดแอพ Okto",description:"เพิ่ม Okto ไปยังหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็ว"},step2:{title:"สร้างกระเป๋าเงิน MPC",description:"สร้างบัญชีและสร้างกระเป๋าเงิน"},step3:{title:"แตะ WalletConnect ในการตั้งค่า",description:"แตะที่ไอคอน Scan QR ที่บริเวณมุมบนขวาและยืนยันข้อความเพื่อเชื่อมต่อ."}}},ledger:{desktop:{step1:{title:"เปิดแอป Ledger Live",description:"เราแนะนำให้คุณวาง Ledger Live บนหน้าจอหลักเพื่อให้สามารถเข้าถึงได้เร็วขึ้น"},step2:{title:"ตั้งค่า Ledger ของคุณ",description:"ตั้งค่า Ledger ใหม่หรือเชื่อมต่อกับ Ledger ที่มีอยู่แล้ว"},step3:{title:"เชื่อมต่อ",description:"หลังจากที่คุณสแกนแล้ว จะมีการเรียกให้เชื่อมต่อกับกระเป๋าเงินของคุณ"}},qr_code:{step1:{title:"เปิดแอป Ledger Live",description:"เราแนะนำให้วาง Ledger Live บนหน้าจอหลักของคุณเพื่อการเข้าถึงที่รวดเร็วขึ้น"},step2:{title:"ตั้งค่า Ledger ของคุณ",description:"คุณสามารถซิงค์กับแอพพลิเคชันบนเดสก์ท็อปหรือเชื่อมต่อ Ledger ของคุณ"},step3:{title:"สแกนรหัส",description:"แตะ WalletConnect แล้วเปลี่ยนไปที่ Scanner. หลังจากที่คุณสแกนแล้ว จะมีการเรียกให้เชื่อมต่อกับกระเป๋าเงินของคุณ"}}}},ww={connect_wallet:Ng0,intro:Mg0,sign_in:jg0,connect:zg0,connect_scan:Lg0,connector_group:$g0,get:Ug0,get_options:Wg0,get_mobile:qg0,get_instructions:Hg0,chains:Gg0,profile:Vg0,wallet_connectors:Kg0},Qg0={label:"Cüzdanı Bağla"},Jg0={title:"Cüzdan nedir?",description:"Bir cüzdan, dijital varlıkları göndermek, almak, saklamak ve görüntülemek için kullanılır. Aynı zamanda her web sitesinde yeni hesaplar ve şifreler oluşturmanıza gerek kalmadan oturum açmanın yeni bir yoludur.",digital_asset:{title:"Dijital Varlıklarınız İçin Bir Ev",description:"Cüzdanlar, Ethereum ve NFT'ler gibi dijital varlıkları göndermek, almak, depolamak ve görüntülemek için kullanılır."},login:{title:"Yeni Bir Giriş Yolu",description:"Her web sitesinde yeni hesap ve parolalar oluşturmak yerine, sadece cüzdanınızı bağlayın."},get:{label:"Bir Cüzdan Edinin"},learn_more:{label:"Daha fazla bilgi edinin"}},Zg0={label:"Hesabınızı doğrulayın",description:"Bağlantıyı tamamlamak için, bu hesabın sahibi olduğunuzu doğrulamak için cüzdanınızdaki bir mesaja imza atmalısınız.",message:{send:"Mesajı gönder",preparing:"Mesaj hazırlanıyor...",cancel:"İptal",preparing_error:"Mesajı hazırlarken hata oluştu, lütfen tekrar deneyin!"},signature:{waiting:"İmza bekleniyor...",verifying:"İmza doğrulanıyor...",signing_error:"Mesajı imzalarken hata oluştu, lütfen tekrar deneyin!",verifying_error:"İmza doğrulanırken hata oluştu, lütfen tekrar deneyin!",oops_error:"Hata, bir şeyler yanlış gitti!"}},Yg0={label:"Bağlan",title:"Bir Cüzdanı Bağla",new_to_ethereum:{description:"Ethereum cüzdanlarına yeni misiniz?",learn_more:{label:"Daha fazla bilgi edinin"}},learn_more:{label:"Daha fazla bilgi edinin"},recent:"Son",status:{opening:"%{wallet}açılıyor...",not_installed:"%{wallet} yüklü değil",not_available:"%{wallet} kullanılabilir değil",confirm:"Bağlantıyı eklentide onaylayın"},secondary_action:{get:{description:"%{wallet}yok mu?",label:"AL"},install:{label:"YÜKLE"},retry:{label:"YENİDEN DENE"}},walletconnect:{description:{full:"Resmi WalletConnect modalına mı ihtiyacınız var?",compact:"WalletConnect modalına mı ihtiyacınız var?"},open:{label:"AÇ"}}},Xg0={title:"%{wallet}ile tarama yapın",fallback_title:"Telefonunuzla tarama yapın"},uA0={recommended:"Tavsiye Edilen",other:"Diğer",popular:"Popüler",more:"Daha Fazla",others:"Diğerleri"},eA0={title:"Bir Cüzdan Edinin",action:{label:"AL"},mobile:{description:"Mobil Cüzdan"},extension:{description:"Tarayıcı Eklentisi"},mobile_and_extension:{description:"Mobil Cüzdan ve Eklenti"},mobile_and_desktop:{description:"Mobil ve Masaüstü Cüzdan"},looking_for:{title:"Aradığınız şey bu değil mi?",mobile:{description:"Ana ekranda başka bir cüzdan sağlayıcısıyla başlamak için bir cüzdan seçin."},desktop:{compact_description:"Ana ekranda başka bir cüzdan sağlayıcısıyla başlamak için bir cüzdan seçin.",wide_description:"Başka bir cüzdan sağlayıcısıyla başlamak için sol tarafta bir cüzdan seçin."}}},tA0={title:"%{wallet}ile başlayın",short_title:"%{wallet}Edinin",mobile:{title:"%{wallet} Mobil İçin",description:"Mobil cüzdanı kullanarak Ethereum dünyasını keşfedin.",download:{label:"Uygulamayı alın"}},extension:{title:"%{wallet} için %{browser}",description:"Cüzdanınıza favori web tarayıcınızdan doğrudan erişin.",download:{label:"%{browser}'e ekle"}},desktop:{title:"%{wallet} için %{platform}",description:"Güçlü masaüstünüzden cüzdanınıza yerel olarak erişin.",download:{label:"%{platform}ekleyin"}}},nA0={title:"%{wallet}'i yükleyin",description:"iOS veya Android'de indirmek için telefonunuzla tarayın",continue:{label:"Devam et"}},rA0={mobile:{connect:{label:"Bağlan"},learn_more:{label:"Daha fazla bilgi edinin"}},extension:{refresh:{label:"Yenile"},learn_more:{label:"Daha fazla bilgi edinin"}},desktop:{connect:{label:"Bağlan"},learn_more:{label:"Daha fazla bilgi edinin"}}},iA0={title:"Ağları Değiştir",wrong_network:"Yanlış ağ algılandı, devam etmek için bağlantıyı kesin veya değiştirin.",confirm:"Cüzdanında Onayla",switching_not_supported:"Cüzdanınız %{appName}. ağları değiştirmeyi desteklemiyor. Bunun yerine cüzdanınızdan ağları değiştirmeyi deneyin.",switching_not_supported_fallback:"Cüzdanınız bu uygulamadan ağları değiştirmeyi desteklemiyor. Bunun yerine cüzdanınızdaki ağları değiştirmeyi deneyin.",disconnect:"Bağlantıyı Kes",connected:"Bağlı"},aA0={disconnect:{label:"Bağlantıyı Kes"},copy_address:{label:"Adresi Kopyala",copied:"Kopyalandı!"},explorer:{label:"Explorer üzerinde daha fazlasını görün"},transactions:{description:"%{appName} işlem burada görünecek...",description_fallback:"İşlemleriniz burada görünecek...",recent:{title:"Son İşlemler"},clear:{label:"Hepsini Temizle"}}},oA0={argent:{qr_code:{step1:{description:"Cüzdanınıza daha hızlı erişim için Argent'i ana ekranınıza koyun.",title:"Argent uygulamasını açın"},step2:{description:"Bir cüzdan ve kullanıcı adı oluşturun veya mevcut bir cüzdanı içe aktarın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Taradıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.",title:"QR tarayıcı düğmesine dokunun"}}},bifrost:{qr_code:{step1:{description:"Daha hızlı erişim için Bifrost Cüzdan'ı ana ekranınıza koymanızı öneririz.",title:"Bifrost Cüzdan uygulamasını açın"},step2:{description:"Kurtarma ifadenizle bir cüzdan oluşturun veya içe aktarın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Tarama işlemi sonrasında, cüzdanınızı bağlamak için bir bağlantı istemi gözükecektir.",title:"Tarayıcı düğmesine dokunun"}}},bitget:{qr_code:{step1:{description:"Daha hızlı erişim için Bitget Cüzdanınızı ana ekranınıza koymanızı öneririz.",title:"Bitget Cüzdan uygulamasını açın"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Tarama yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.",title:"Tarama düğmesine dokunun"}},extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Bitget Cüzdanını görev çubuğunuza sabitlemenizi öneririz.",title:"Bitget Cüzdan eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklemekten emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin.",title:"Tarayıcınızı yenileyin"}}},bitski:{extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Bitski'yi görev çubuğunuza sabitlemenizi öneririz.",title:"Bitski eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi kimseyle paylaşmayın.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},coin98:{qr_code:{step1:{description:"Cüzdanınıza daha hızlı erişim için Coin98 Cüzdanınızı ana ekranınıza koymanızı öneririz.",title:"Coin98 Cüzdan uygulamasını açın"},step2:{description:"Telefonunuzdaki yedekleme özelliğimizi kullanarak cüzdanınızı kolayca yedekleyebilirsiniz.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Tarama işlemi yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.",title:"CüzdanBağlantısı düğmesine dokunun"}},extension:{step1:{description:"Tarayıcınızın sağ üst köşesinde tıklayın ve Coin98 Cüzdanınızı kolay erişim için sabitleyin.",title:"Coin98 Cüzdan eklentisini yükleyin"},step2:{description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın.",title:"Bir cüzdan oluşturun veya içe aktarın"},step3:{description:"Coin98 Cüzdan'ı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},coinbase:{qr_code:{step1:{description:"Coinbase Cüzdan'ı ana ekranınıza koymanızı öneririz, böylece daha hızlı erişim sağlanır.",title:"Coinbase Wallet uygulamasını açın"},step2:{description:"Cüzdanınızı bulut yedekleme özelliğini kullanarak kolayca yedekleyebilirsiniz.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Tarama yaptıktan sonra, cüzdanınızı bağlamanız için bir bağlantı istemi belirecektir.",title:"Tarama düğmesine dokunun"}},extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Coinbase Wallet'ı görev çubuğunuza sabitlemenizi öneririz.",title:"Coinbase Wallet uzantısını yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli ifadenizi asla başkalarıyla paylaşmayın.",title:"Cüzdan Oluştur veya İçe Aktar"},step3:{description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},core:{qr_code:{step1:{description:"Cüzdanınıza daha hızlı erişim için Core'u ana ekranınıza koymanızı öneririz.",title:"Core uygulamasını açın"},step2:{description:"Cüzdanınızın yedeğini telefonunuzda bulunan yedekleme özelliğimizi kullanarak kolayca alabilirsiniz.",title:"Cüzdan Oluştur veya İçe Aktar"},step3:{description:"Tarama yaptıktan sonra, cüzdanınızı bağlamak üzere bir bağlantı istemi görünecektir.",title:"WalletConnect düğmesine dokunun"}},extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Core'u görev çubuğunuza sabitlemenizi öneririz.",title:"Core eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye dikkat edin. Gizli ifadenizi asla kimseyle paylaşmayın.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayarak tarayıcıyı yenileyin ve eklentiyi yükleyin.",title:"Tarayıcınızı yenileyin"}}},fox:{qr_code:{step1:{description:"Daha hızlı erişim için FoxWallet'ı ana ekranınıza koymanızı öneririz.",title:"FoxWallet uygulamasını açın"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi asla kimseyle paylaşmayın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Tarama yaptıktan sonra cüzdanınızı bağlamanız için bir bağlantı istemi belirecektir.",title:"Tarama düğmesine dokunun"}}},frontier:{qr_code:{step1:{description:"Daha hızlı erişim için Frontier Cüzdanını ana ekranınıza koymanızı öneririz.",title:"Frontier Cüzdan uygulamasını açın"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi asla kimseyle paylaşmayın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Taramadan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.",title:"Tarama düğmesine dokunun"}},extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Frontier Cüzdanını görev çubuğunuza sabitlemenizi öneririz.",title:"Frontier Cüzdan eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemeye ve eklentiyi yüklemeye başlamak için aşağıya tıklayın.",title:"Tarayıcınızı Yenileyin"}}},im_token:{qr_code:{step1:{title:"imToken uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için imToken uygulamasını ana ekranınıza koyun."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Yeni bir cüzdan oluşturun veya mevcut bir cüzdanı içe aktarın."},step3:{title:"Sağ üst köşede Tarayıcı Simgesine dokunun",description:"Yeni Bağlantı'yı seçin, ardından QR kodunu tarayın ve bağlantıyı onaylamak için istemi onaylayın."}}},metamask:{qr_code:{step1:{title:"MetaMask uygulamasını açın",description:"Daha hızlı erişim için MetaMask'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli kurtarma ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarama düğmesine dokunun",description:"Taramayı yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}},extension:{step1:{title:"MetaMask eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için MetaMask'i görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı Yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},okx:{qr_code:{step1:{title:"OKX Wallet uygulamasını açın",description:"Daha hızlı erişim için OKX Wallet'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli cümlenizi asla kimseyle paylaşmayın."},step3:{title:"Tarama düğmesine dokunun",description:"Tarama yaptıktan sonra, cüzdanınızı bağlama istemi görünecektir."}},extension:{step1:{title:"OKX Cüzdan eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için OKX Cüzdan'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli cümlenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},omni:{qr_code:{step1:{title:"Omni uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için Omni'yi ana ekranınıza ekleyin."},step2:{title:"Bir Cüzdan Oluşturun ya da İçe Aktarın",description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın."},step3:{title:"QR simgesine dokunun ve tarayın",description:"Ana ekranınızdaki QR simgesine dokunun, kodu tarayın ve bağlanmak için istemi onaylayın."}}},token_pocket:{qr_code:{step1:{title:"TokenPocket uygulamasını açın",description:"Daha hızlı erişim için TokenPocket'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya Cüzdanı İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarama düğmesine dokunun",description:"Taramayı yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}},extension:{step1:{title:"TokenPocket eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için TokenPocket'i görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli cümlenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemekte ve eklentiyi yüklemek için aşağıya tıklayın."}}},trust:{qr_code:{step1:{title:"Trust Wallet uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için Trust Wallet'ı ana ekranınıza koyun."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Yeni bir cüzdan oluşturun veya mevcut bir tane içe aktarın."},step3:{title:"Ayarlar'da WalletConnect'e dokunun",description:"Yeni Bağlantı'yı seçin, ardından QR kodunu tarayın ve bağlanmak için istemi onaylayın."}},extension:{step1:{title:"Trust Wallet eklentisini yükleyin",description:"Tarayıcınızın sağ üst köşesine tıklayın ve kolay erişim için Trust Wallet'i sabitleyin."},step2:{title:"Bir cüzdan oluşturun veya içe aktarın",description:"Yeni bir cüzdan oluşturun veya mevcut bir tane içe aktarın."},step3:{title:"Tarayıcınızı yenileyin",description:"Trust Wallet'ı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},uniswap:{qr_code:{step1:{title:"Uniswap uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için Uniswap Cüzdanınızı ana ekranınıza ekleyin."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın."},step3:{title:"QR ikonuna dokunun ve tarama yapın",description:"Ana ekranınızdaki QR simgesine dokunun, kodu tarayın ve bağlanmayı onaylamak için istemi kabul edin."}}},zerion:{qr_code:{step1:{title:"Zerion uygulamasını açın",description:"Daha hızlı erişim için Zerion'un ana ekranınıza konumlandırmanızı öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarama düğmesine basın",description:"Taramadan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}},extension:{step1:{title:"Zerion eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Zerion'u görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklemeye emin olun. Gizli ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},rainbow:{qr_code:{step1:{title:"Rainbow uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için Rainbow'u ana ekranınıza koymanızı öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Telefonunuzdaki yedekleme özelliğimizi kullanarak cüzdanınızı kolayca yedekleyebilirsiniz."},step3:{title:"Tarama düğmesine dokunun",description:"Tarama yaptıktan sonra, cüzdanınızı bağlamanız için bir bağlantı istemi belirecektir."}}},enkrypt:{extension:{step1:{description:"Cüzdanınıza daha hızlı erişim sağlamak için Enkrypt Cüzdan'ı görev çubuğunuza sabitlemenizi öneririz.",title:"Enkrypt Cüzdan eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},frame:{extension:{step1:{description:"Cüzdanınıza daha hızlı erişim sağlamak için Frame'ı görev çubuğunuza sabitlemenizi öneririz.",title:"Frame ve eşlik eden uzantıyı yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi asla başkasıyla paylaşmayın.",title:"Cüzdan Oluştur veya İçe Aktar"},step3:{description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve uzantıyı yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},one_key:{extension:{step1:{title:"OneKey Wallet uzantısını yükleyin",description:"Cüzdanınıza daha hızlı erişim için OneKey Wallet'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},phantom:{extension:{step1:{title:"Phantom eklentisini yükleyin",description:"Cüzdanınıza daha kolay erişim sağlamak için Phantom'u görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli kurtarma ifadenizi kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},rabby:{extension:{step1:{title:"Rabby eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Rabby'yi görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıdaki düğmeye tıklayın."}}},safeheron:{extension:{step1:{title:"Core eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Safeheron'u görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},taho:{extension:{step1:{title:"Taho uzantısını yükleyin",description:"Cüzdanınıza daha hızlı erişim için Taho'yu görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},talisman:{extension:{step1:{title:"Talisman eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Talisman'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Ethereum Cüzdanı Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Kurtarma ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},xdefi:{extension:{step1:{title:"XDEFI Cüzdan eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için XDEFI Wallet'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},zeal:{extension:{step1:{title:"Zeal eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Zeal'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin."}}},safepal:{extension:{step1:{title:"SafePal Wallet eklentisini yükleyin",description:"Tarayıcınızın sağ üst köşesine tıklayın ve kolay erişim için SafePal Wallet'ı sabitleyin."},step2:{title:"Bir cüzdan oluşturun veya içe aktarın",description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın."},step3:{title:"Tarayıcınızı yenileyin",description:"SafePal Cüzdan'ı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}},qr_code:{step1:{title:"SafePal Cüzdan uygulamasını açın",description:"SafePal Cüzdan'ı ana ekranınıza koyun, cüzdanınıza daha hızlı erişim için."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın."},step3:{title:"Ayarlar'da WalletConnect'e dokunun",description:"Yeni Bağlantı'yı seçin, ardından QR kodunu tarayın ve bağlantıyı onaylamak için istemi onaylayın."}}},desig:{extension:{step1:{title:"Desig eklentisini yükleyin",description:"Cüzdanınıza daha kolay erişim sağlamak için Desig'i görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin."}}},subwallet:{extension:{step1:{title:"SubWallet eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için SubWallet'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Kurtarma ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin."}},qr_code:{step1:{title:"SubWallet uygulamasını açın",description:"Daha hızlı erişim için SubWallet'ı ana ekranınıza koymenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcı düğmesine dokunun",description:"Taradıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir."}}},clv:{extension:{step1:{title:"CLV Cüzdanı eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için CLV Cüzdanını görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin."}},qr_code:{step1:{title:"CLV Cüzdan uygulamasını açın",description:"Daha hızlı erişim için CLV Cüzdanını ana ekranınıza koymanızı öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcı düğmesine dokunun",description:"Taradıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir."}}},okto:{qr_code:{step1:{title:"Okto uygulamasını açın",description:"Hızlı erişim için Okto'yu ana ekranınıza ekleyin"},step2:{title:"MPC Cüzdanı oluşturun",description:"Bir hesap oluşturun ve bir cüzdan oluşturun"},step3:{title:"Ayarlar'da WalletConnect'e dokunun",description:"Sağ üstteki Tarama QR simgesine dokunun ve bağlanmak için istemi onaylayın."}}},ledger:{desktop:{step1:{title:"Ledger Live uygulamasını açın",description:"Daha hızlı erişim için Ledger Live'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Ledger'ınızı kurun",description:"Yeni bir Ledger kurun veya mevcut birine bağlanın."},step3:{title:"Bağlan",description:"Cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}},qr_code:{step1:{title:"Ledger Live uygulamasını açın",description:"Daha hızlı erişim için Ledger Live'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Ledger'ınızı kurun",description:"Masaüstü uygulama ile senkronize olabilir veya Ledger'ınızı bağlayabilirsiniz."},step3:{title:"Kodu tarayın",description:"WalletConnect'e dokunun ve ardından Tarayıcı'ya geçin. Taramadan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}}}},xw={connect_wallet:Qg0,intro:Jg0,sign_in:Zg0,connect:Yg0,connect_scan:Xg0,connector_group:uA0,get:eA0,get_options:tA0,get_mobile:nA0,get_instructions:rA0,chains:iA0,profile:aA0,wallet_connectors:oA0},sA0={label:"连接钱包"},fA0={title:"什么是钱包?",description:"钱包用于发送、接收、存储和显示数字资产。它也是一种新型的登录方式,无需在每个网站上创建新账户和密码。",digital_asset:{title:"您的数字资产之家",description:"钱包用于发送、接收、存储和显示像以太坊和NFT这样的数字资产。"},login:{title:"一种新的登录方式",description:"而不是在每个网站上创建新的账户和密码,只需连接您的钱包。"},get:{label:"获取钱包"},learn_more:{label:"了解更多"}},lA0={label:"验证您的账户",description:"为了完成连接,您必须在钱包中签署一条消息,以验证您是此账户的所有者。",message:{send:"发送消息",preparing:"准备消息中...",cancel:"取消",preparing_error:"准备消息时出错,请重试!"},signature:{waiting:"等待签名...",verifying:"正在验证签名...",signing_error:"签署消息时出错,请重试!",verifying_error:"验证签名时出错,请重试!",oops_error:"哎呀,出了点问题!"}},cA0={label:"连接",title:"连接钱包",new_to_ethereum:{description:"对以太坊钱包不熟悉?",learn_more:{label:"了解更多"}},learn_more:{label:"了解更多"},recent:"近期",status:{opening:"正在打开 %{wallet}...",not_installed:"%{wallet} 尚未安装",not_available:"%{wallet} 不可用",confirm:"在扩展中确认连接"},secondary_action:{get:{description:"没有 %{wallet}吗?",label:"获取"},install:{label:"安装"},retry:{label:"重试"}},walletconnect:{description:{full:"需要官方的 WalletConnect 弹窗吗?",compact:"需要 WalletConnect 弹窗吗?"},open:{label:"打开"}}},dA0={title:"使用 %{wallet}扫描",fallback_title:"使用您的手机扫描"},EA0={recommended:"推荐",other:"其他",popular:"流行",more:"更多",others:"其他的"},pA0={title:"获取一个钱包",action:{label:"获取"},mobile:{description:"移动钱包"},extension:{description:"浏览器扩展"},mobile_and_extension:{description:"移动钱包和扩展"},mobile_and_desktop:{description:"移动和桌面钱包"},looking_for:{title:"不是你要找的吗?",mobile:{description:"在主屏幕上选择一个钱包,以开始使用不同的钱包提供商。"},desktop:{compact_description:"在主屏幕上选择一个钱包,以开始使用不同的钱包提供商。",wide_description:"在左侧选择一个钱包,以开始使用不同的钱包提供商。"}}},hA0={title:"开始使用 %{wallet}",short_title:"获取 %{wallet}",mobile:{title:"%{wallet} 用于移动",description:"使用移动钱包探索以太坊的世界。",download:{label:"获取应用"}},extension:{title:"%{wallet} 为 %{browser}",description:"从您最喜欢的网络浏览器直接访问您的钱包。",download:{label:"添加到 %{browser}"}},desktop:{title:"%{wallet} 对于 %{platform}",description:"从您强大的桌面原生访问您的钱包。",download:{label:"添加到 %{platform}"}}},CA0={title:"安装 %{wallet}",description:"用手机扫描下载 iOS 或 Android",continue:{label:"继续"}},mA0={mobile:{connect:{label:"连接"},learn_more:{label:"了解更多"}},extension:{refresh:{label:"刷新"},learn_more:{label:"了解更多"}},desktop:{connect:{label:"连接"},learn_more:{label:"了解更多"}}},bA0={title:"切换网络",wrong_network:"检测到错误的网络,请切换或断开连接以继续。",confirm:"在钱包中确认",switching_not_supported:"您的钱包不支持从 %{appName}切换网络。请尝试从您的钱包内部切换网络。",switching_not_supported_fallback:"您的钱包不支持从此应用切换网络。尝试从您的钱包内切换网络。",disconnect:"断开连接",connected:"已连接"},gA0={disconnect:{label:"断开连接"},copy_address:{label:"复制地址",copied:"已复制!"},explorer:{label:"在浏览器上查看更多"},transactions:{description:"%{appName} 交易将会出现在这里...",description_fallback:"您的交易将会出现在这里...",recent:{title:"最近交易"},clear:{label:"清除全部"}}},AA0={argent:{qr_code:{step1:{description:"将 Argent 放到您的主屏幕上,以便更快地访问您的钱包。",title:"打开 Argent 应用"},step2:{description:"创建钱包和用户名,或导入现有钱包。",title:"创建或导入钱包"},step3:{description:"在您扫描后,将出现连接提示,供您连接您的钱包。",title:"点击扫描二维码按钮"}}},bifrost:{qr_code:{step1:{description:"我们建议将Bifrost Wallet放在您的主屏幕上,以便更快地访问。",title:"打开 Bifrost Wallet 应用"},step2:{description:"使用恢复短语创建或导入钱包。",title:"创建或导入钱包"},step3:{description:"在您扫描后,将出现连接提示,供您连接您的钱包。",title:"点击扫描按钮"}}},bitget:{qr_code:{step1:{description:"我们建议您将Bitget钱包添加到主屏幕,以便更快地访问。",title:"打开Bitget钱包应用程序"},step2:{description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现一个连接提示,供您连接您的钱包。",title:"点击扫描按钮"}},extension:{step1:{description:"我们建议您将Bitget钱包固定在任务栏,以便更快地访问您的钱包。",title:"安装Bitget Wallet扩展"},step2:{description:"确保使用安全的方式备份您的钱包。绝不与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置钱包后,点击下方刷新浏览器并加载扩展。",title:"刷新您的浏览器"}}},bitski:{extension:{step1:{description:"我们建议您将Bitski固定在任务栏上,以便更快地访问您的钱包。",title:"安装Bitski扩展"},step2:{description:"请确保用安全的方法备份您的钱包。绝不与任何人共享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置完您的钱包后,点击下方以刷新浏览器并加载扩展程序。",title:"刷新您的浏览器"}}},coin98:{qr_code:{step1:{description:"我们建议将Coin98钱包放在您的主屏幕上,以便更快地访问您的钱包。",title:"打开Coin98钱包应用程序"},step2:{description:"您可以使用我们的手机上的备份功能轻松备份您的钱包。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现一个连接提示,让您连接您的钱包。",title:"点击WalletConnect按钮"}},extension:{step1:{description:"点击浏览器右上角并固定Coin98钱包,以便轻松访问。",title:"安装Coin98钱包扩展"},step2:{description:"创建新钱包或导入现有钱包。",title:"创建或导入钱包。"},step3:{description:"设置完成Coin98 钱包后,单击下方以刷新浏览器并加载扩展程序。",title:"刷新您的浏览器"}}},coinbase:{qr_code:{step1:{description:"我们建议您把Coinbase钱包放到主屏幕上,以便更快地访问。",title:"打开Coinbase钱包应用"},step2:{description:"您可以轻松地使用云备份功能备份您的钱包。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现连接提示,供您连接您的钱包。",title:"点击扫描按钮"}},extension:{step1:{description:"我们建议您将Coinbase钱包固定在任务栏上,以便更快地访问您的钱包。",title:"安装Coinbase钱包扩展"},step2:{description:"务必使用安全的方法备份您的钱包。永远不要与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置好钱包后,点击下方以刷新浏览器并加载扩展。",title:"刷新您的浏览器"}}},core:{qr_code:{step1:{description:"我们建议您将Core添加到主屏幕,以便更快地访问您的钱包。",title:"打开Core应用程序"},step2:{description:"您可以使用我们的手机备份功能轻松备份您的钱包。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现连接提示,让您连接您的钱包。",title:"点击WalletConnect按钮"}},extension:{step1:{description:"我们建议将 Core 固定到任务栏,以便更快地访问您的钱包。",title:"安装 Core 扩展"},step2:{description:"一定要使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置好钱包后,点击下方以刷新浏览器并加载扩展。",title:"刷新你的浏览器"}}},fox:{qr_code:{step1:{description:"我们建议您将 FoxWallet 放到主屏幕上,以便更快的访问。",title:"打开 FoxWallet 应用"},step2:{description:"确保使用安全的方法备份您的钱包。永远不要与任何人共享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现连接提示,让您连接您的钱包。",title:"点击扫描按钮"}}},frontier:{qr_code:{step1:{description:"我们建议将 Frontier 钱包放在您的主屏幕上,以便更快地访问。",title:"打开 Frontier 钱包应用"},step2:{description:"确保使用安全的方法备份您的钱包。永远不要与任何人共享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现连接提示,让您连接您的钱包。",title:"点击扫描按钮"}},extension:{step1:{description:"我们建议您将Frontier钱包固定到任务栏,以便更快地访问您的钱包。",title:"安装Frontier钱包扩展"},step2:{description:"确保使用安全的方法备份您的钱包。永远不要与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置完成钱包后,点击下方刷新浏览器并加载扩展。",title:"刷新你的浏览器"}}},im_token:{qr_code:{step1:{title:"打开imToken应用",description:"将imToken应用放在您的主屏幕上,以更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"创建新钱包或导入已有的钱包。"},step3:{title:"点击右上角的扫描图标",description:"选择新连接,然后扫描二维码并确认提示以进行连接。"}}},metamask:{qr_code:{step1:{title:"打开 MetaMask 应用",description:"我们建议将 MetaMask 放在您的主屏幕上,以便更快地访问。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。永远不要与任何人分享你的秘密短语。"},step3:{title:"点击扫描按钮",description:"扫描后,将出现连接提示,以便你连接你的钱包。"}},extension:{step1:{title:"安装 MetaMask 扩展",description:"我们建议将MetaMask固定在您的任务栏上,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"请务必使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"一旦您设置好您的钱包,点击下面刷新浏览器并加载扩展。"}}},okx:{qr_code:{step1:{title:"打开OKX钱包应用程序",description:"我们建议将OKX钱包放在您的主屏幕上,以便更快地访问。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。千万不要与任何人分享您的秘密短语。"},step3:{title:"点击扫描按钮",description:"扫描后,将出现一个连接提示,让您连接您的钱包。"}},extension:{step1:{title:"安装 OKX 钱包扩展",description:"我们建议将 OKX 钱包固定到您的任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。千万不要与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"一旦你设置好你的钱包,点击下方刷新浏览器并加载扩展。"}}},omni:{qr_code:{step1:{title:"打开Omni应用",description:"将Omni添加到你的主屏幕,以便更快地访问你的钱包。"},step2:{title:"创建或导入钱包",description:"创建新的钱包或导入现有的钱包。"},step3:{title:"点击QR图标并扫描",description:"点击首页的二维码图标,扫描代码并确认提示以连接。"}}},token_pocket:{qr_code:{step1:{title:"打开TokenPocket应用",description:"我们建议将TokenPocket放在您的主屏幕上以便更快的访问。"},step2:{title:"创建或导入钱包",description:"一定要使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"点击扫描按钮",description:"扫描后,将出现连接提示,供您连接钱包。"}},extension:{step1:{title:"安装TokenPocket扩展",description:"我们建议将TokenPocket固定到任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入一个钱包",description:"一定要使用安全的方法备份您的钱包。绝对不要与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下面刷新浏览器并加载扩展。"}}},trust:{qr_code:{step1:{title:"打开Trust Wallet应用",description:"将Trust Wallet放在主屏幕上,以便更快地访问您的钱包。"},step2:{title:"创建或导入一个钱包",description:"创建新的钱包或导入现有的钱包。"},step3:{title:"在设置中点击WalletConnect",description:"选择新的连接,然后扫描二维码并确认提示以进行连接。"}},extension:{step1:{title:"安装Trust Wallet扩展程序",description:"在浏览器的右上角点击并固定Trust Wallet以便于访问。"},step2:{title:"创建或导入钱包",description:"创建新的钱包或导入现有的钱包。"},step3:{title:"刷新您的浏览器",description:"设置Trust Wallet后,点击下面以刷新浏览器并加载扩展程序。"}}},uniswap:{qr_code:{step1:{title:"打开Uniswap应用",description:"将Uniswap钱包添加到您的主屏幕,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"创建新钱包或导入现有钱包。"},step3:{title:"点击QR图标并扫描",description:"在您的主屏幕上点击QR图标,扫描代码并确认提示以进行连接。"}}},zerion:{qr_code:{step1:{title:"打开Zerion应用",description:"我们建议将Zerion放在您的主屏幕上以便更快地访问。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方式备份你的钱包。绝对不要与任何人分享你的私人密语。"},step3:{title:"点击扫描按钮",description:"你扫描后,会出现一个连接提示让你连接你的钱包。"}},extension:{step1:{title:"安装 Zerion 扩展",description:"我们建议将 Zerion 固定在你的任务栏以便更快访问你的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份你的钱包。永远不要与任何人分享你的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置您的钱包后,点击下面以刷新浏览器并加载扩展程序。"}}},rainbow:{qr_code:{step1:{title:"打开 Rainbow 应用",description:"我们建议将 Rainbow 放在您的主屏幕上,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"您可以使用我们的备份功能在您的手机上轻松备份你的钱包。"},step3:{title:"点击扫描按钮",description:"扫描后,将出现连接提示,让您连接您的钱包。"}}},enkrypt:{extension:{step1:{description:"我们建议将Enkrypt Wallet固定到任务栏,以便更快地访问您的钱包。",title:"安装Enkrypt Wallet扩展"},step2:{description:"请确保使用安全方法备份您的钱包。永远不要与任何人分享您的秘密短语。",title:"创建钱包或导入钱包"},step3:{description:"设置钱包后,点击下面刷新浏览器并加载扩展。",title:"刷新您的浏览器"}}},frame:{extension:{step1:{description:"我们建议将Frame固定到任务栏,以便更快地访问您的钱包。",title:"安装Frame及其配套扩展"},step2:{description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置钱包后,点击下方以刷新浏览器并加载扩展。",title:"刷新你的浏览器"}}},one_key:{extension:{step1:{title:"安装OneKey Wallet扩展",description:"我们建议将OneKey Wallet固定到任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},phantom:{extension:{step1:{title:"安装 Phantom 扩展程序",description:"我们建议将 Phantom 固定到您的任务栏,以便更容易访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密恢复短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},rabby:{extension:{step1:{title:"安装 Rabby 扩展程序",description:"我们建议将 Rabby 固定在您的任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"一定要使用安全的方法备份您的钱包。切勿与任何人分享您的密钥短语。"},step3:{title:"刷新您的浏览器",description:"一旦您设置好您的钱包,点击以下以刷新浏览器并加载扩展程序。"}}},safeheron:{extension:{step1:{title:"安装 Core 扩展",description:"我们建议将 Safeheron 固定在您的任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},taho:{extension:{step1:{title:"安装Taho扩展程序",description:"我们建议将Taho固定在您的任务栏上,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},talisman:{extension:{step1:{title:"安装 Talisman 扩展程序",description:"我们建议将 Talisman 固定在任务栏上,以便更快地访问您的钱包。"},step2:{title:"创建或导入以太坊钱包",description:"确保使用安全的方法备份您的钱包。永远不要与任何人分享您的恢复短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},xdefi:{extension:{step1:{title:"安装 XDEFI 钱包扩展程序",description:"我们建议将XDEFI钱包固定到您的任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。永远不要与任何人共享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"一旦你设置好你的钱包,点击下面刷新浏览器和加载扩展。"}}},zeal:{extension:{step1:{title:"安装Zeal扩展程序",description:"我们建议将Zeal固定在您的任务栏上,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置钱包后,点击下方刷新浏览器并加载扩展。"}}},safepal:{extension:{step1:{title:"安装SafePal Wallet扩展程序",description:"点击浏览器右上角并固定SafePal Wallet以便于快速访问。"},step2:{title:"创建或导入钱包。",description:"创建新钱包或导入现有钱包。"},step3:{title:"刷新您的浏览器",description:"一旦设置了SafePal钱包,点击下方刷新浏览器并加载扩展程序。"}},qr_code:{step1:{title:"打开SafePal钱包应用程序",description:"将SafePal钱包放在主屏幕上以更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"创建新钱包或导入现有钱包。"},step3:{title:"在设置中点击WalletConnect",description:"选择新连接,然后扫描二维码并确认提示以进行连接。"}}},desig:{extension:{step1:{title:"安装 Desig 扩展",description:"我们建议将 Desig 固定到任务栏,以便更轻松地访问您的钱包。"},step2:{title:"创建一个钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置钱包后,点击下方刷新浏览器并加载扩展。"}}},subwallet:{extension:{step1:{title:"安装 SubWallet 扩展",description:"我们建议将 SubWallet 固定到任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。永远不要与任何人分享您的恢复短语。"},step3:{title:"刷新您的浏览器",description:"设置钱包后,点击下方刷新浏览器并加载扩展。"}},qr_code:{step1:{title:"打开 SubWallet 应用",description:"我们建议将 SubWallet 放置在主屏幕上,以便更快地访问。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"点击扫描按钮",description:"在您扫描后,将出现连接提示,供您连接您的钱包。"}}},clv:{extension:{step1:{title:"安装 CLV Wallet 扩展",description:"我们建议将 CLV Wallet 固定到任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置钱包后,点击下方刷新浏览器并加载扩展。"}},qr_code:{step1:{title:"打开 CLV 钱包应用",description:"我们建议将 CLV 钱包添加到您的主屏幕,以便更快地访问。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"点击扫描按钮",description:"在您扫描后,将出现连接提示,供您连接您的钱包。"}}},okto:{qr_code:{step1:{title:"打开 Okto 应用",description:"将 Okto 添加到您的主屏幕以便快速访问"},step2:{title:"创建一个 MPC 钱包",description:"创建一个账户并生成一个钱包"},step3:{title:"在设置中点击WalletConnect",description:"点击右上角的扫描二维码图标,并确认提示以连接。"}}},ledger:{desktop:{step1:{title:"打开Ledger Live应用",description:"我们建议将Ledger Live放在您的主屏幕上,以便更快地访问。"},step2:{title:"设置您的Ledger",description:"设置一个新的Ledger或连接到一个现有的。"},step3:{title:"连接",description:"你扫描后,会出现一个连接提示让你连接你的钱包。"}},qr_code:{step1:{title:"打开Ledger Live应用",description:"我们建议将Ledger Live放在您的主屏幕上,以便更快地访问。"},step2:{title:"设置您的Ledger",description:"您可以同步桌面应用程式,或连接您的Ledger。"},step3:{title:"扫描代码",description:"点击 WalletConnect 然后切换到扫描器。你扫描后,会出现一个连接提示让你连接你的钱包。"}}}},kw={connect_wallet:sA0,intro:fA0,sign_in:lA0,connect:cA0,connect_scan:dA0,connector_group:EA0,get:pA0,get_options:hA0,get_mobile:CA0,get_instructions:mA0,chains:bA0,profile:gA0,wallet_connectors:AA0},To=new KR.I18n({ar:Cw,"ar-AR":Cw,en:mw,"en-US":mw,es:bw,"es-419":bw,fr:gw,"fr-FR":gw,hi:Aw,"hi-IN":Aw,id:yw,"id-ID":yw,ja:vw,"ja-JP":vw,ko:Bw,"ko-KR":Bw,pt:Fw,"pt-BR":Fw,ru:Dw,"ru-RU":Dw,th:ww,"th-TH":ww,tr:xw,"tr-TR":xw,zh:kw,"zh-CN":kw});To.defaultLocale="en-US";To.locale="en-US";To.enableFallback=!0;var yA0=()=>{var u;if(typeof window<"u"&&typeof navigator<"u"){if((u=navigator.languages)!=null&&u.length)return navigator.languages[0];if(navigator.language)return navigator.language}},le=w.createContext(To),vA0=({children:u,locale:e})=>{const t=w.useMemo(()=>yA0(),[]),n=w.useMemo(()=>(e?To.locale=e:!e&&t&&(To.locale=t),To),[e,t]);return D.createElement(le.Provider,{value:n},u)};function HA(u){return u!=null}var _w={iconBackground:"#96bedc",iconUrl:async()=>(await q0(()=>import("./arbitrum-LYDBJZP3-KuelVeRo.js"),__vite__mapDeps([]))).default},Sw={iconBackground:"#e84141",iconUrl:async()=>(await q0(()=>import("./avalanche-TFPKP544-t-P1D_4h.js"),__vite__mapDeps([]))).default},Tw={iconBackground:"#0052ff",iconUrl:async()=>(await q0(()=>import("./base-3MIUIYGA-O1y3e2Yh.js"),__vite__mapDeps([]))).default},Pw={iconBackground:"#ebac0e",iconUrl:async()=>(await q0(()=>import("./bsc-S2GSW6VX-hwC4eOfE.js"),__vite__mapDeps([]))).default},Iw={iconBackground:"#002D74",iconUrl:async()=>(await q0(()=>import("./cronos-DQKKIEX7-hjhPqvrD.js"),__vite__mapDeps([]))).default},Bi={iconBackground:"#484c50",iconUrl:async()=>(await q0(()=>import("./ethereum-4FY57XJF-hWY7Q1hZ.js"),__vite__mapDeps([]))).default},BA0={iconBackground:"#f9f7ec",iconUrl:async()=>(await q0(()=>import("./hardhat-ARRFHFKB-h5iXIbmF.js"),__vite__mapDeps([]))).default},ih={iconBackground:"#ff5a57",iconUrl:async()=>(await q0(()=>import("./optimism-UUP5Y7TB-KDutc3G3.js"),__vite__mapDeps([]))).default},Ow={iconBackground:"#9f71ec",iconUrl:async()=>(await q0(()=>import("./polygon-Z4QITDL7-zNmkxoMh.js"),__vite__mapDeps([]))).default},Rw={iconBackground:"#f9f7ec",iconUrl:async()=>(await q0(()=>import("./xdc-5UHQ25DW-5b24iEUg.js"),__vite__mapDeps([]))).default},Nw={iconBackground:"#f9f7ec",iconUrl:async()=>(await q0(()=>import("./zkSync-XRUC4ZHO-NNXylIR-.js"),__vite__mapDeps([]))).default},Mw={iconBackground:"#000000",iconUrl:async()=>(await q0(()=>import("./zora-KVO7WIOK-R166txMv.js"),__vite__mapDeps([]))).default},FA0={arbitrum:{chainId:42161,name:"Arbitrum",..._w},arbitrumGoerli:{chainId:421613,..._w},avalanche:{chainId:43114,...Sw},avalancheFuji:{chainId:43113,...Sw},base:{chainId:8453,name:"Base",...Tw},baseGoerli:{chainId:84531,...Tw},bsc:{chainId:56,name:"BSC",...Pw},bscTestnet:{chainId:97,...Pw},cronos:{chainId:25,...Iw},cronosTestnet:{chainId:338,...Iw},goerli:{chainId:5,...Bi},hardhat:{chainId:31337,...BA0},holesky:{chainId:17e3,...Bi},kovan:{chainId:42,...Bi},localhost:{chainId:1337,...Bi},mainnet:{chainId:1,name:"Ethereum",...Bi},optimism:{chainId:10,name:"Optimism",...ih},optimismGoerli:{chainId:420,...ih},optimismKovan:{chainId:69,...ih},polygon:{chainId:137,name:"Polygon",...Ow},polygonMumbai:{chainId:80001,...Ow},rinkeby:{chainId:4,...Bi},ropsten:{chainId:3,...Bi},sepolia:{chainId:11155111,...Bi},xdc:{chainId:50,name:"XinFin",...Rw},xdcTestnet:{chainId:51,...Rw},zkSync:{chainId:324,name:"zkSync",...Nw},zkSyncTestnet:{chainId:280,...Nw},zora:{chainId:7777777,name:"Zora",...Mw},zoraTestnet:{chainId:999,...Mw}},DA0=Object.fromEntries(Object.values(FA0).filter(HA).map(({chainId:u,...e})=>[u,e])),wA0=u=>u.map(e=>{var t,n,r,i;const a=(t=DA0[e.id])!=null?t:{};return{...e,name:(n=a.name)!=null?n:e.name,iconUrl:(r=e.iconUrl)!=null?r:a.iconUrl,iconBackground:(i=e.iconBackground)!=null?i:a.iconBackground}}),GA=w.createContext({chains:[]});function xA0({chains:u,children:e,initialChain:t}){return D.createElement(GA.Provider,{value:w.useMemo(()=>({chains:wA0(u),initialChainId:typeof t=="number"?t:t==null?void 0:t.id}),[u,t])},e)}var Wc=()=>w.useContext(GA).chains,kA0=()=>w.useContext(GA).initialChainId,_A0=()=>{const u=Wc();return w.useMemo(()=>{const e={};return u.forEach(t=>{e[t.id]=t}),e},[u])},SA0=()=>{const[u,e]=w.useReducer(()=>!0,!1);return w.useEffect(e,[e]),u};function BM(){const u=TR.id,e=cE(),t=Array.isArray(e.chains)?e.chains:[],n=t==null?void 0:t.some(r=>(r==null?void 0:r.id)===u);return{chainId:u,enabled:n}}function FM(u){const{chainId:e,enabled:t}=BM(),{data:n}=bi0({chainId:e,enabled:t,name:u});return n}function DM(u){const{chainId:e,enabled:t}=BM(),{data:n}=yi0({address:u,chainId:e,enabled:t});return n}function VA(){var u;const{chain:e}=Sa();return(u=e==null?void 0:e.id)!=null?u:null}var wM="rk-transactions";function TA0(u){try{const e=u?JSON.parse(u):{};return typeof e=="object"?e:{}}catch{return{}}}function jw(){return TA0(typeof localStorage<"u"?localStorage.getItem(wM):null)}var PA0=/^0x([A-Fa-f0-9]{64})$/;function IA0(u){const e=[];return PA0.test(u.hash)||e.push("Invalid transaction hash"),typeof u.description!="string"&&e.push("Transaction must have a description"),typeof u.confirmations<"u"&&(!Number.isInteger(u.confirmations)||u.confirmations<1)&&e.push("Transaction confirmations must be a positiver integer"),e}function OA0({provider:u}){let e=jw(),t=u;const n=new Set,r=new Map;function i(h){t=h}function a(h,g){var b,m;return(m=(b=e[h])==null?void 0:b[g])!=null?m:[]}function o(h,g,b){const m=IA0(b);if(m.length>0)throw new Error(["Unable to add transaction",...m].join(` +`));c(h,g,A=>[{...b,status:"pending"},...A.filter(({hash:y})=>y!==b.hash)])}function s(h,g){c(h,g,()=>[])}function f(h,g,b,m){c(h,g,A=>A.map(y=>y.hash===b?{...y,status:m}:y))}async function l(h,g){await Promise.all(a(h,g).filter(b=>b.status==="pending").map(async b=>{const{confirmations:m,hash:A}=b,y=r.get(A);if(y)return await y;const B=t.waitForTransactionReceipt({confirmations:m,hash:A}).then(({status:v})=>{r.delete(A),v!==void 0&&f(h,g,A,v===0||v==="reverted"?"failed":"confirmed")});return r.set(A,B),await B}))}function c(h,g,b){var m,A;e=jw(),e[h]=(m=e[h])!=null?m:{};let y=0;const B=10,v=b((A=e[h][g])!=null?A:[]).filter(({status:C})=>C==="pending"?!0:y++<=B);e[h][g]=v.length>0?v:void 0,d(),E(),l(h,g)}function d(){localStorage.setItem(wM,JSON.stringify(e))}function E(){n.forEach(h=>h())}function p(h){return n.add(h),()=>{n.delete(h)}}return{addTransaction:o,clearTransactions:s,getTransactions:a,onChange:p,setProvider:i,waitForPendingTransactions:l}}var ah,xM=w.createContext(null);function RA0({children:u}){const e=cE(),{address:t}=Bt(),n=VA(),[r]=w.useState(()=>ah??(ah=OA0({provider:e})));return w.useEffect(()=>{r.setProvider(e)},[r,e]),w.useEffect(()=>{t&&n&&r.waitForPendingTransactions(t,n)},[r,t,n]),D.createElement(xM.Provider,{value:r},u)}function kM(){const u=w.useContext(xM);if(!u)throw new Error("Transaction hooks must be used within RainbowKitProvider");return u}function _M(){const u=kM(),{address:e}=Bt(),t=VA(),[n,r]=w.useState(()=>u&&e&&t?u.getTransactions(e,t):[]);return w.useEffect(()=>{if(u&&e&&t)return r(u.getTransactions(e,t)),u.onChange(()=>{r(u.getTransactions(e,t))})},[u,e,t]),n}var zw=u=>typeof u=="function"?u():u;function NA0(u,{extends:e}={}){const t={...fw(Ew,zw(u))};if(!e)return t;const n=fw(Ew,zw(e));return Object.fromEntries(Object.entries(t).filter(([i,a])=>a!==n[i]))}function Lw(u,e={}){return Object.entries(NA0(u,e)).map(([t,n])=>`${t}:${n.replace(/[:;{}]/g,"")};`).join("")}var SM={appName:void 0,disclaimer:void 0,learnMoreUrl:"https://learn.rainbow.me/understanding-web3?utm_source=rainbowkit&utm_campaign=learnmore"},L3=w.createContext(SM),TM=w.createContext(!1),PM=()=>{const[u,e]=w.useState({height:void 0,width:void 0});return w.useEffect(()=>{function t(){e({height:window.innerHeight,width:window.innerWidth})}return window.addEventListener("resize",t),t(),()=>window.removeEventListener("resize",t)},[]),u},qc=w.createContext({connector:null,setConnector:()=>{}});function MA0({children:u}){const[e,t]=w.useState(null);return D.createElement(qc.Provider,{value:w.useMemo(()=>({connector:e,setConnector:t}),[e])},u)}var Hc={COMPACT:"compact",WIDE:"wide"},zE=w.createContext(Hc.WIDE);function jA0({children:u,modalSize:e}){const{width:t}=PM(),n=t&&t{LA0({version:"1.3.0"})},[]);w.useEffect(()=>{u()},[u])}function UA0(u){const e=[];for(const t of u)e.push(...t);return e}function WA0(u,e){const t={};return u.forEach(n=>{const r=e(n);r&&(t[r]=n)}),t}function QA(){return typeof navigator<"u"&&/Version\/([0-9._]+).*Safari/.test(navigator.userAgent)}function qA0(){return typeof document<"u"&&getComputedStyle(document.body).getPropertyValue("--arc-palette-focus")!==""}function JA(){var u;if(typeof navigator>"u")return"Browser";const e=navigator.userAgent.toLowerCase();return(u=navigator.brave)!=null&&u.isBrave?"Brave":e.indexOf("edg/")>-1?"Edge":e.indexOf("op")>-1?"Opera":qA0()?"Arc":e.indexOf("chrome")>-1?"Chrome":e.indexOf("firefox")>-1?"Firefox":QA()?"Safari":"Browser"}var HA0=aC0.UAParser(),{os:ZA}=HA0;function GA0(){return ZA.name==="Windows"}function VA0(){return ZA.name==="Mac OS"}function KA0(){return["Ubuntu","Mint","Fedora","Debian","Arch","Linux"].includes(ZA.name)}function YA(){return GA0()?"Windows":VA0()?"macOS":KA0()?"Linux":"Desktop"}var QA0=u=>{var e,t,n,r,i,a,o,s,f,l,c,d;const E=JA();return(d={Arc:(e=u==null?void 0:u.downloadUrls)==null?void 0:e.chrome,Brave:(t=u==null?void 0:u.downloadUrls)==null?void 0:t.chrome,Chrome:(n=u==null?void 0:u.downloadUrls)==null?void 0:n.chrome,Edge:((r=u==null?void 0:u.downloadUrls)==null?void 0:r.edge)||((i=u==null?void 0:u.downloadUrls)==null?void 0:i.chrome),Firefox:(a=u==null?void 0:u.downloadUrls)==null?void 0:a.firefox,Opera:((o=u==null?void 0:u.downloadUrls)==null?void 0:o.opera)||((s=u==null?void 0:u.downloadUrls)==null?void 0:s.chrome),Safari:(f=u==null?void 0:u.downloadUrls)==null?void 0:f.safari,Browser:(l=u==null?void 0:u.downloadUrls)==null?void 0:l.browserExtension}[E])!=null?d:(c=u==null?void 0:u.downloadUrls)==null?void 0:c.browserExtension},JA0=u=>{var e,t,n,r;return(r=ms()?(e=u==null?void 0:u.downloadUrls)==null?void 0:e.ios:(t=u==null?void 0:u.downloadUrls)==null?void 0:t.android)!=null?r:(n=u==null?void 0:u.downloadUrls)==null?void 0:n.mobile},ZA0=u=>{var e,t,n,r,i,a;const o=YA();return(a={Windows:(e=u==null?void 0:u.downloadUrls)==null?void 0:e.windows,macOS:(t=u==null?void 0:u.downloadUrls)==null?void 0:t.macos,Linux:(n=u==null?void 0:u.downloadUrls)==null?void 0:n.linux,Desktop:(r=u==null?void 0:u.downloadUrls)==null?void 0:r.desktop}[o])!=null?a:(i=u==null?void 0:u.downloadUrls)==null?void 0:i.desktop},IM="rk-recent";function YA0(u){try{const e=u?JSON.parse(u):[];return Array.isArray(e)?e:[]}catch{return[]}}function OM(){return typeof localStorage<"u"?YA0(localStorage.getItem(IM)):[]}function XA0(u){return[...new Set(u)]}function uy0(u){const e=XA0([u,...OM()]);localStorage.setItem(IM,JSON.stringify(e))}function LE(){const u=Wc(),e=kA0(),{connectAsync:t,connectors:n}=ni0(),r=n;async function i(E,p){var h,g,b;const m=await p.getChainId(),A=await t({chainId:(b=e??((h=u.find(({id:y})=>y===m))==null?void 0:h.id))!=null?b:(g=u[0])==null?void 0:g.id,connector:p});return A&&uy0(E),A}async function a(E,p){try{return await i(E,p)}catch(h){if(!(h.name==="UserRejectedRequestError"||h.message==="Connection request reset. Please try again."))throw h}}const o=UA0(r.map(E=>{var p;return(p=E._wallets)!=null?p:[]})).sort((E,p)=>E.index-p.index),s=WA0(o,E=>E.id),f=3,l=OM().map(E=>s[E]).filter(HA).slice(0,f),c=[...l,...o.filter(E=>!l.includes(E))],d=[];return c.forEach(E=>{var p;if(!E)return;const h=l.includes(E);d.push({...E,connect:()=>E.connector.showQrModal?a(E.id,E.connector):i(E.id,E.connector),desktopDownloadUrl:ZA0(E),extensionDownloadUrl:QA0(E),groupName:E.groupName,mobileDownloadUrl:JA0(E),onConnecting:g=>E.connector.on("message",({type:b})=>b==="connecting"?g():void 0),ready:((p=E.installed)!=null?p:!0)&&E.connector.ready,recent:h,showWalletConnectModal:E.walletConnectModalConnector?()=>a(E.id,E.walletConnectModalConnector):void 0})}),d}var RM=async()=>(await q0(()=>import("./assets-26YY4GVD-VbicoLcw.js"),__vite__mapDeps([]))).default,ey0=()=>gr(RM),ty0=()=>D.createElement(se,{background:"#d0d5de",borderRadius:"10",height:"48",src:RM,width:"48"}),NM=async()=>(await q0(()=>import("./login-ZSMM5UYL-SM24YM7m.js"),__vite__mapDeps([]))).default,ny0=()=>gr(NM),ry0=()=>D.createElement(se,{background:"#d0d5de",borderRadius:"10",height:"48",src:NM,width:"48"}),I0=D.forwardRef(({as:u="div",children:e,className:t,color:n,display:r,font:i="body",id:a,size:o="16",style:s,tabIndex:f,textAlign:l="inherit",weight:c="regular",testId:d},E)=>D.createElement(R,{as:u,className:t,color:n,display:r,fontFamily:i,fontSize:o,fontWeight:c,id:a,ref:E,style:s,tabIndex:f,textAlign:l,testId:d},e));I0.displayName="Text";var iy0={large:{fontSize:"16",paddingX:"24",paddingY:"10"},medium:{fontSize:"14",height:"28",paddingX:"12",paddingY:"4"},small:{fontSize:"14",paddingX:"10",paddingY:"5"}};function ut({disabled:u=!1,href:e,label:t,onClick:n,rel:r="noreferrer noopener",size:i="medium",target:a="_blank",testId:o,type:s="primary"}){const f=s==="primary",l=i!=="large",c=we(),d=u?"actionButtonSecondaryBackground":f?"accentColor":l?"actionButtonSecondaryBackground":null,{fontSize:E,height:p,paddingX:h,paddingY:g}=iy0[i],b=!c||!l;return D.createElement(R,{...e?u?{}:{as:"a",href:e,rel:r,target:a}:{as:"button",type:"button"},onClick:u?void 0:n,...b?{borderColor:c&&!l&&!f?"actionButtonBorderMobile":"actionButtonBorder",borderStyle:"solid",borderWidth:"1"}:{},borderRadius:"actionButton",className:!u&&ue({active:"shrinkSm",hover:"grow"}),display:"block",paddingX:h,paddingY:g,style:{willChange:"transform"},testId:o,textAlign:"center",transition:"transform",...d?{background:d}:{},...p?{height:p}:{}},D.createElement(I0,{color:u?"modalTextSecondary":f?"accentColorForeground":"accentColor",size:E,weight:"bold"},t))}var ay0=()=>we()?D.createElement("svg",{"aria-hidden":!0,fill:"none",height:"11.5",viewBox:"0 0 11.5 11.5",width:"11.5",xmlns:"http://www.w3.org/2000/svg"},D.createElement("path",{d:"M2.13388 0.366117C1.64573 -0.122039 0.854272 -0.122039 0.366117 0.366117C-0.122039 0.854272 -0.122039 1.64573 0.366117 2.13388L3.98223 5.75L0.366117 9.36612C-0.122039 9.85427 -0.122039 10.6457 0.366117 11.1339C0.854272 11.622 1.64573 11.622 2.13388 11.1339L5.75 7.51777L9.36612 11.1339C9.85427 11.622 10.6457 11.622 11.1339 11.1339C11.622 10.6457 11.622 9.85427 11.1339 9.36612L7.51777 5.75L11.1339 2.13388C11.622 1.64573 11.622 0.854272 11.1339 0.366117C10.6457 -0.122039 9.85427 -0.122039 9.36612 0.366117L5.75 3.98223L2.13388 0.366117Z",fill:"currentColor"})):D.createElement("svg",{"aria-hidden":!0,fill:"none",height:"10",viewBox:"0 0 10 10",width:"10",xmlns:"http://www.w3.org/2000/svg"},D.createElement("path",{d:"M1.70711 0.292893C1.31658 -0.0976311 0.683417 -0.0976311 0.292893 0.292893C-0.0976311 0.683417 -0.0976311 1.31658 0.292893 1.70711L3.58579 5L0.292893 8.29289C-0.0976311 8.68342 -0.0976311 9.31658 0.292893 9.70711C0.683417 10.0976 1.31658 10.0976 1.70711 9.70711L5 6.41421L8.29289 9.70711C8.68342 10.0976 9.31658 10.0976 9.70711 9.70711C10.0976 9.31658 10.0976 8.68342 9.70711 8.29289L6.41421 5L9.70711 1.70711C10.0976 1.31658 10.0976 0.683417 9.70711 0.292893C9.31658 -0.0976311 8.68342 -0.0976311 8.29289 0.292893L5 3.58579L1.70711 0.292893Z",fill:"currentColor"})),Qo=({"aria-label":u="Close",onClose:e})=>{const t=we();return D.createElement(R,{alignItems:"center","aria-label":u,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:t?"0":"1",className:ue({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:t?"30":"28",justifyContent:"center",onClick:e,style:{willChange:"transform"},transition:"default",type:"button",width:t?"30":"28"},D.createElement(ay0,null))},MM=async()=>(await q0(()=>import("./sign-FZVB2CS6-wZQBK821.js"),__vite__mapDeps([]))).default;function oy0({onClose:u}){const e=w.useContext(le),[{status:t,...n},r]=D.useState({status:"idle"}),i=em0(),a=w.useCallback(async()=>{try{const E=await i.getNonce();r(p=>({...p,nonce:E}))}catch{r(E=>({...E,errorMessage:e.t("sign_in.message.preparing_error"),status:"idle"}))}},[i]),o=w.useRef(!1);D.useEffect(()=>{o.current||(o.current=!0,a())},[a]);const s=we(),{address:f}=Bt(),{chain:l}=Sa(),{signMessageAsync:c}=si0(),d=async()=>{try{const E=l==null?void 0:l.id,{nonce:p}=n;if(!f||!E||!p)return;r(b=>({...b,errorMessage:void 0,status:"signing"}));const h=i.createMessage({address:f,chainId:E,nonce:p});let g;try{g=await c({message:i.getMessageBody({message:h})})}catch(b){return b instanceof Xu?r(m=>({...m,status:"idle"})):r(m=>({...m,errorMessage:e.t("sign_in.signature.signing_error"),status:"idle"}))}r(b=>({...b,status:"verifying"}));try{if(await i.verify({message:h,signature:g}))return;throw new Error}catch{return r(b=>({...b,errorMessage:e.t("sign_in.signature.verifying_error"),status:"idle"}))}}catch{r({errorMessage:e.t("sign_in.signature.oops_error"),status:"idle"})}};return D.createElement(R,{position:"relative"},D.createElement(R,{display:"flex",paddingRight:"16",paddingTop:"16",position:"absolute",right:"0"},D.createElement(Qo,{onClose:u})),D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:s?"32":"24",padding:"24",paddingX:"18",style:{paddingTop:s?"60px":"36px"}},D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:s?"6":"4",style:{maxWidth:s?320:280}},D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:s?"32":"16"},D.createElement(se,{height:40,src:MM,width:40}),D.createElement(I0,{color:"modalText",size:s?"20":"18",textAlign:"center",weight:"heavy"},e.t("sign_in.label"))),D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:s?"16":"12"},D.createElement(I0,{color:"modalTextSecondary",size:s?"16":"14",textAlign:"center"},e.t("sign_in.description")),t==="idle"&&n.errorMessage?D.createElement(I0,{color:"error",size:s?"16":"14",textAlign:"center",weight:"bold"},n.errorMessage):null)),D.createElement(R,{alignItems:s?void 0:"center",display:"flex",flexDirection:"column",gap:"8",width:"full"},D.createElement(ut,{disabled:!n.nonce||t==="signing"||t==="verifying",label:n.nonce?t==="signing"?e.t("sign_in.signature.waiting"):t==="verifying"?e.t("sign_in.signature.verifying"):e.t("sign_in.message.send"):e.t("sign_in.message.preparing"),onClick:d,size:s?"large":"medium",testId:"auth-message-button"}),s?D.createElement(ut,{label:"Cancel",onClick:u,size:"large",type:"secondary"}):D.createElement(R,{as:"button",borderRadius:"full",className:ue({active:"shrink",hover:"grow"}),display:"block",onClick:u,paddingX:"10",paddingY:"5",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},D.createElement(I0,{color:"closeButton",size:s?"16":"14",weight:"bold"},e.t("sign_in.message.cancel"))))))}function sy0(){const u=Wc(),e=LE(),t=jE()==="unauthenticated",n=w.useCallback(()=>{gr(...e.map(r=>r.iconUrl),...u.map(r=>r.iconUrl).filter(HA)),we()||(ey0(),ny0()),t&&gr(MM)},[e,u,t]);w.useEffect(()=>{n()},[n])}var jM="WALLETCONNECT_DEEPLINK_CHOICE";function fy0({mobileUri:u,name:e}){localStorage.setItem(jM,JSON.stringify({href:u.split("?")[0],name:e}))}function ly0(){localStorage.removeItem(jM)}var zM=w.createContext(void 0),MC="data-rk",LM=u=>({[MC]:u||""}),cy0=u=>{if(u&&!/^[a-zA-Z0-9_]+$/.test(u))throw new Error(`Invalid ID: ${u}`);return u?`[${MC}="${u}"]`:`[${MC}]`},dy0=()=>{const u=w.useContext(zM);return LM(u)},Ey0=TP();function py0({appInfo:u,avatar:e,chains:t,children:n,coolMode:r=!1,id:i,initialChain:a,locale:o,modalSize:s=Hc.WIDE,showRecentTransactions:f=!1,theme:l=Ey0}){if(sy0(),$A0(),Bt({onDisconnect:ly0}),typeof l=="function")throw new Error('A theme function was provided to the "theme" prop instead of a theme object. You must execute this function to get the resulting theme object.');const c=cy0(i),d={...SM,...u},E=e??AM;return D.createElement(xA0,{chains:t,initialChain:a},D.createElement(MA0,null,D.createElement(vA0,{locale:o},D.createElement(TM.Provider,{value:r},D.createElement(jA0,{modalSize:s},D.createElement(KA.Provider,{value:f},D.createElement(RA0,null,D.createElement(yM.Provider,{value:E},D.createElement(L3.Provider,{value:d},D.createElement(zM.Provider,{value:i},D.createElement(xv0,null,l?D.createElement("div",{...LM(i)},D.createElement("style",{dangerouslySetInnerHTML:{__html:[`${c}{${Lw("lightMode"in l?l.lightMode:l)}}`,"darkMode"in l?`@media(prefers-color-scheme:dark){${c}{${Lw(l.darkMode,{extends:l.lightMode})}}}`:null].join("")}}),n):n)))))))))))}var hy0="_9pm4ki5 ju367va ju367v15 ju367v8r",Cy0="_9pm4ki3 ju367v9g ju367vb2 ju367va ju367v2q ju367v8q",$w=(u,e)=>{const t=u.querySelectorAll("button:not(:disabled), a[href]");t.length!==0&&t[e==="end"?t.length-1:0].focus()};function my0(u){const e=w.useRef(null);return w.useEffect(()=>{const t=document.activeElement;return()=>{var n;(n=t.focus)==null||n.call(t)}},[]),w.useEffect(()=>{if(e.current){const t=e.current.querySelector("[data-auto-focus]");t?t.focus():e.current.focus()}},[e]),D.createElement(D.Fragment,null,D.createElement("div",{onFocus:w.useCallback(()=>e.current&&$w(e.current,"end"),[]),tabIndex:0}),D.createElement("div",{ref:e,style:{outline:"none"},tabIndex:-1,...u}),D.createElement("div",{onFocus:w.useCallback(()=>e.current&&$w(e.current,"start"),[]),tabIndex:0}))}var by0=u=>u.stopPropagation();function Y2({children:u,onClose:e,open:t,titleId:n}){w.useEffect(()=>{const f=l=>t&&l.key==="Escape"&&e();return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[t,e]);const[r,i]=w.useState(!0);w.useEffect(()=>{i(getComputedStyle(window.document.body).overflow!=="hidden")},[]);const a=w.useCallback(()=>e(),[e]),o=dy0(),s=we();return D.createElement(D.Fragment,null,t?E3.createPortal(D.createElement(rC0,{enabled:r},D.createElement(R,{...o},D.createElement(R,{...o,alignItems:s?"flex-end":"center","aria-labelledby":n,"aria-modal":!0,className:Cy0,onClick:a,position:"fixed",role:"dialog"},D.createElement(my0,{className:hy0,onClick:by0,role:"document"},u)))),document.body):null)}var gy0="_1ckjpok7",Ay0="_1ckjpok1 ju367vb5 ju367vdq ju367vp ju367vt ju367vv ju367vek ju367va ju367v15 ju367v6c ju367v8r",yy0="_1ckjpok4 _1ckjpok1 ju367vb5 ju367vdq ju367vp ju367vt ju367vv ju367vek ju367va ju367v15 ju367v6c ju367v8r",vy0="_1ckjpok6 ju367vq",By0="_1ckjpok3 _1ckjpok1 ju367vb5 ju367vdq ju367vp ju367vt ju367vv ju367vek ju367va ju367v15 ju367v6c ju367v8r",Fy0="_1ckjpok2 _1ckjpok1 ju367vb5 ju367vdq ju367vp ju367vt ju367vv ju367vek ju367va ju367v15 ju367v6c ju367v8r";function X2({bottomSheetOnMobile:u=!1,children:e,marginTop:t,padding:n="16",paddingBottom:r,wide:i=!1}){const a=we(),s=w.useContext(zE)===Hc.COMPACT;return D.createElement(R,{marginTop:t},D.createElement(R,{className:[i?a?Fy0:s?yy0:By0:Ay0,a?vy0:null,a&&u?gy0:null].join(" ")},D.createElement(R,{padding:n,paddingBottom:r??n},e)))}var Uw=["k","m","b","t"];function H6(u,e=1){return u.toString().replace(new RegExp(`(.+\\.\\d{${e}})\\d+`),"$1").replace(/(\.[1-9]*)0+$/,"$1").replace(/\.$/,"")}function $M(u){if(u<1)return H6(u,3);if(u<10**2)return H6(u,2);if(u<10**4)return new Intl.NumberFormat().format(parseFloat(H6(u,1)));const e=10**1;let t=String(u);for(let n=Uw.length-1;n>=0;n--){const r=10**((n+1)*3);if(r<=u){u=u*e/r/e,t=H6(u,1)+Uw[n];break}}return t}function UM(u){return u.length<8?u:`${u.substring(0,4)}…${u.substring(u.length-4)}`}function WM(u){const e=u.split("."),t=e.pop();return e.join(".").length>24?`${e.join(".").substring(0,24)}...`:`${e.join(".")}.${t}`}var Dy0=()=>D.createElement("svg",{fill:"none",height:"13",viewBox:"0 0 13 13",width:"13",xmlns:"http://www.w3.org/2000/svg"},D.createElement("path",{d:"M4.94568 12.2646C5.41052 12.2646 5.77283 12.0869 6.01892 11.7109L12.39 1.96973C12.5677 1.69629 12.6429 1.44336 12.6429 1.2041C12.6429 0.561523 12.1644 0.0966797 11.5082 0.0966797C11.057 0.0966797 10.7767 0.260742 10.5033 0.691406L4.9115 9.50977L2.07458 5.98926C1.82166 5.68848 1.54822 5.55176 1.16541 5.55176C0.502319 5.55176 0.0238037 6.02344 0.0238037 6.66602C0.0238037 6.95312 0.112671 7.20605 0.358765 7.48633L3.88611 11.7588C4.18005 12.1074 4.50818 12.2646 4.94568 12.2646Z",fill:"currentColor"})),wy0=()=>D.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 17 16",width:"17",xmlns:"http://www.w3.org/2000/svg"},D.createElement("path",{d:"M3.04236 12.3027H4.18396V13.3008C4.18396 14.8525 5.03845 15.7002 6.59705 15.7002H13.6244C15.183 15.7002 16.0375 14.8525 16.0375 13.3008V6.24609C16.0375 4.69434 15.183 3.84668 13.6244 3.84668H12.4828V2.8418C12.4828 1.29688 11.6283 0.442383 10.0697 0.442383H3.04236C1.48376 0.442383 0.629272 1.29004 0.629272 2.8418V9.90332C0.629272 11.4551 1.48376 12.3027 3.04236 12.3027ZM3.23376 10.5391C2.68689 10.5391 2.39294 10.2656 2.39294 9.68457V3.06055C2.39294 2.47949 2.68689 2.21289 3.23376 2.21289H9.8783C10.4252 2.21289 10.7191 2.47949 10.7191 3.06055V3.84668H6.59705C5.03845 3.84668 4.18396 4.69434 4.18396 6.24609V10.5391H3.23376ZM6.78845 13.9365C6.24158 13.9365 5.94763 13.6699 5.94763 13.0889V6.45801C5.94763 5.87695 6.24158 5.61035 6.78845 5.61035H13.433C13.9799 5.61035 14.2738 5.87695 14.2738 6.45801V13.0889C14.2738 13.6699 13.9799 13.9365 13.433 13.9365H6.78845Z",fill:"currentColor"})),xy0=()=>D.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 18 16",width:"18",xmlns:"http://www.w3.org/2000/svg"},D.createElement("path",{d:"M2.67834 15.5908H9.99963C11.5514 15.5908 12.399 14.7432 12.399 13.1777V10.2656H10.6354V12.9863C10.6354 13.5332 10.3688 13.8271 9.78772 13.8271H2.89026C2.3092 13.8271 2.0426 13.5332 2.0426 12.9863V3.15625C2.0426 2.60254 2.3092 2.30859 2.89026 2.30859H9.78772C10.3688 2.30859 10.6354 2.60254 10.6354 3.15625V5.89746H12.399V2.95801C12.399 1.39941 11.5514 0.544922 9.99963 0.544922H2.67834C1.12659 0.544922 0.278931 1.39941 0.278931 2.95801V13.1777C0.278931 14.7432 1.12659 15.5908 2.67834 15.5908ZM7.43616 8.85059H14.0875L15.0924 8.78906L14.566 9.14453L13.6842 9.96484C13.5406 10.1016 13.4586 10.2861 13.4586 10.4844C13.4586 10.8398 13.7321 11.168 14.1217 11.168C14.3199 11.168 14.4635 11.0928 14.6002 10.9561L16.7809 8.68652C16.986 8.48145 17.0543 8.27637 17.0543 8.06445C17.0543 7.85254 16.986 7.64746 16.7809 7.43555L14.6002 5.17285C14.4635 5.03613 14.3199 4.9541 14.1217 4.9541C13.7321 4.9541 13.4586 5.27539 13.4586 5.6377C13.4586 5.83594 13.5406 6.02734 13.6842 6.15723L14.566 6.98438L15.0924 7.33984L14.0875 7.27148H7.43616C7.01917 7.27148 6.65686 7.62012 6.65686 8.06445C6.65686 8.50195 7.01917 8.85059 7.43616 8.85059Z",fill:"currentColor"}));function ky0(){const u=kM(),{address:e}=Bt(),t=VA();return w.useCallback(()=>{if(!e||!t)throw new Error("No address or chain ID found");u.clearTransactions(e,t)},[u,e,t])}var qM=u=>{var e,t;return(t=(e=u==null?void 0:u.blockExplorers)==null?void 0:e.default)==null?void 0:t.url},HM=()=>D.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},D.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM12.7158 12.1416C13.2432 12.1416 13.5684 11.7549 13.5684 11.1836V7.19336C13.5684 6.44629 13.1377 6.05957 12.417 6.05957H8.40918C7.8291 6.05957 7.45117 6.38477 7.45117 6.91211C7.45117 7.43945 7.8291 7.77344 8.40918 7.77344H9.69238L10.7207 7.63281L9.53418 8.67871L6.73047 11.4912C6.53711 11.6758 6.41406 11.9395 6.41406 12.2031C6.41406 12.7832 6.85352 13.1699 7.39844 13.1699C7.68848 13.1699 7.92578 13.0732 8.1543 12.8623L10.9316 10.0762L11.9775 8.89844L11.8545 9.98828V11.1836C11.8545 11.7725 12.1885 12.1416 12.7158 12.1416Z",fill:"currentColor"})),_y0=()=>D.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},D.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM7.29297 13.3018C7.58301 13.3018 7.81152 13.2139 7.99609 13.0205L10 11.0166L12.0127 13.0205C12.1973 13.2051 12.4258 13.3018 12.707 13.3018C13.2432 13.3018 13.6562 12.8887 13.6562 12.3525C13.6562 12.0977 13.5508 11.8691 13.3662 11.6934L11.3535 9.67188L13.375 7.6416C13.5596 7.44824 13.6562 7.22852 13.6562 6.98242C13.6562 6.44629 13.2432 6.0332 12.7158 6.0332C12.4346 6.0332 12.2148 6.12109 12.0215 6.31445L10 8.32715L7.9873 6.32324C7.80273 6.12988 7.58301 6.04199 7.29297 6.04199C6.76562 6.04199 6.35254 6.45508 6.35254 6.99121C6.35254 7.2373 6.44922 7.46582 6.63379 7.6416L8.65527 9.67188L6.63379 11.6934C6.44922 11.8691 6.35254 12.1064 6.35254 12.3525C6.35254 12.8887 6.76562 13.3018 7.29297 13.3018Z",fill:"currentColor"})),Sy0=()=>D.createElement("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},D.createElement("path",{d:"M10 19.4443C15.0977 19.4443 19.2812 15.252 19.2812 10.1543C19.2812 5.06543 15.0889 0.873047 10 0.873047C4.90234 0.873047 0.71875 5.06543 0.71875 10.1543C0.71875 15.252 4.91113 19.4443 10 19.4443ZM10 17.1328C6.1416 17.1328 3.03906 14.0215 3.03906 10.1543C3.03906 6.2959 6.13281 3.18457 10 3.18457C13.8584 3.18457 16.9697 6.2959 16.9697 10.1543C16.9785 14.0215 13.8672 17.1328 10 17.1328ZM9.07715 14.3379C9.4375 14.3379 9.7627 14.1533 9.97363 13.8369L13.7441 8.00977C13.8848 7.79883 13.9814 7.5791 13.9814 7.36816C13.9814 6.84961 13.5244 6.48926 13.0322 6.48926C12.707 6.48926 12.4258 6.66504 12.2148 7.0166L9.05957 12.0967L7.5918 10.2949C7.37207 10.0225 7.13477 9.9082 6.84473 9.9082C6.33496 9.9082 5.92188 10.3125 5.92188 10.8223C5.92188 11.0684 6.00098 11.2793 6.18555 11.5078L8.1543 13.8545C8.40918 14.1709 8.70801 14.3379 9.07715 14.3379Z",fill:"currentColor"})),Ty0=u=>{switch(u){case"pending":return I1;case"confirmed":return Sy0;case"failed":return _y0;default:return I1}};function Py0({tx:u}){const e=we(),t=Ty0(u.status),n=u.status==="failed"?"error":"accentColor",{chain:r}=Sa(),i=u.status==="confirmed"?"Confirmed":u.status==="failed"?"Failed":"Pending",a=qM(r);return D.createElement(D.Fragment,null,D.createElement(R,{...a?{as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:ue({active:"shrink"}),href:`${a}/tx/${u.hash}`,rel:"noreferrer noopener",target:"_blank",transition:"default"}:{},color:"modalText",display:"flex",flexDirection:"row",justifyContent:"space-between",padding:"8",width:"full"},D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:e?"16":"14"},D.createElement(R,{color:n},D.createElement(t,null)),D.createElement(R,{display:"flex",flexDirection:"column",gap:e?"3":"1"},D.createElement(R,null,D.createElement(I0,{color:"modalText",font:"body",size:e?"16":"14",weight:"bold"},u==null?void 0:u.description)),D.createElement(R,null,D.createElement(I0,{color:u.status==="pending"?"modalTextSecondary":n,font:"body",size:"14",weight:e?"medium":"regular"},i)))),a&&D.createElement(R,{alignItems:"center",color:"modalTextDim",display:"flex"},D.createElement(HM,null))))}var Iy0=3;function Oy0({address:u}){const e=_M(),t=ky0(),{chain:n}=Sa(),r=qM(n),i=e.slice(0,Iy0),a=i.length>0,o=we(),{appName:s}=w.useContext(L3),f=w.useContext(le);return D.createElement(D.Fragment,null,D.createElement(R,{display:"flex",flexDirection:"column",gap:"10",paddingBottom:"2",paddingTop:"16",paddingX:o?"8":"18"},a&&D.createElement(R,{paddingBottom:o?"4":"0",paddingTop:"8",paddingX:o?"12":"6"},D.createElement(R,{display:"flex",justifyContent:"space-between"},D.createElement(I0,{color:"modalTextSecondary",size:o?"16":"14",weight:"semibold"},f.t("profile.transactions.recent.title")),D.createElement(R,{style:{marginBottom:-6,marginLeft:-10,marginRight:-10,marginTop:-6}},D.createElement(R,{as:"button",background:{hover:"profileForeground"},borderRadius:"actionButton",className:ue({active:"shrink"}),onClick:t,paddingX:o?"8":"12",paddingY:o?"4":"5",transition:"default",type:"button"},D.createElement(I0,{color:"modalTextSecondary",size:o?"16":"14",weight:"semibold"},f.t("profile.transactions.clear.label")))))),D.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},a?i.map(l=>D.createElement(Py0,{key:l.hash,tx:l})):D.createElement(D.Fragment,null,D.createElement(R,{padding:o?"12":"8"},D.createElement(I0,{color:"modalTextDim",size:o?"16":"14",weight:o?"medium":"bold"},s?f.t("profile.transactions.description",{appName:s}):f.t("profile.transactions.description_fallback"))),o&&D.createElement(R,{background:"generalBorderDim",height:"1",marginX:"12",marginY:"8"})))),r&&D.createElement(R,{paddingBottom:"18",paddingX:o?"8":"18"},D.createElement(R,{alignItems:"center",as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:ue({active:"shrink"}),color:"modalTextDim",display:"flex",flexDirection:"row",href:`${r}/address/${u}`,justifyContent:"space-between",paddingX:"8",paddingY:"12",rel:"noreferrer noopener",style:{willChange:"transform"},target:"_blank",transition:"default",width:"full",...o?{paddingLeft:"12"}:{}},D.createElement(I0,{color:"modalText",font:"body",size:o?"16":"14",weight:o?"semibold":"bold"},f.t("profile.explorer.label")),D.createElement(HM,null))))}function Ww({action:u,icon:e,label:t,testId:n,url:r}){const i=we();return D.createElement(R,{...r?{as:"a",href:r,rel:"noreferrer noopener",target:"_blank"}:{as:"button",type:"button"},background:{base:"profileAction",...i?{}:{hover:"profileActionHover"}},borderRadius:"menuButton",boxShadow:"profileDetailsAction",className:ue({active:"shrinkSm",hover:i?void 0:"grow"}),display:"flex",onClick:u,padding:i?"6":"8",style:{willChange:"transform"},testId:n,transition:"default",width:"full"},D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"1",justifyContent:"center",paddingTop:"2",width:"full"},D.createElement(R,{color:"modalText",height:"max"},e),D.createElement(R,null,D.createElement(I0,{color:"modalText",size:i?"12":"13",weight:"semibold"},t))))}function Ry0({address:u,balanceData:e,ensAvatar:t,ensName:n,onClose:r,onDisconnect:i}){const a=w.useContext(KA),[o,s]=w.useState(!1),f=w.useContext(le),l=w.useCallback(()=>{u&&(navigator.clipboard.writeText(u),s(!0))},[u]);if(w.useEffect(()=>{if(o){const g=setTimeout(()=>{s(!1)},1500);return()=>clearTimeout(g)}},[o]),!u)return null;const c=n?WM(n):UM(u),d=e==null?void 0:e.formatted,E=d?$M(parseFloat(d)):void 0,p="rk_profile_title",h=we();return D.createElement(D.Fragment,null,D.createElement(R,{display:"flex",flexDirection:"column"},D.createElement(R,{background:"profileForeground",padding:"16"},D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:h?"16":"12",justifyContent:"center",margin:"8",style:{textAlign:"center"}},D.createElement(R,{style:{position:"absolute",right:16,top:16,willChange:"transform"}},D.createElement(Qo,{onClose:r}))," ",D.createElement(R,{marginTop:h?"24":"0"},D.createElement(vM,{address:u,imageUrl:t,size:h?82:74})),D.createElement(R,{display:"flex",flexDirection:"column",gap:h?"4":"0",textAlign:"center"},D.createElement(R,{textAlign:"center"},D.createElement(I0,{as:"h1",color:"modalText",id:p,size:h?"20":"18",weight:"heavy"},c)),e&&D.createElement(R,{textAlign:"center"},D.createElement(I0,{as:"h1",color:"modalTextSecondary",id:p,size:h?"16":"14",weight:"semibold"},E," ",e.symbol)))),D.createElement(R,{display:"flex",flexDirection:"row",gap:"8",margin:"2",marginTop:"16"},D.createElement(Ww,{action:l,icon:o?D.createElement(Dy0,null):D.createElement(wy0,null),label:o?f.t("profile.copy_address.copied"):f.t("profile.copy_address.label")}),D.createElement(Ww,{action:i,icon:D.createElement(xy0,null),label:f.t("profile.disconnect.label"),testId:"disconnect-button"}))),a&&D.createElement(D.Fragment,null,D.createElement(R,{background:"generalBorder",height:"1",marginTop:"-1"}),D.createElement(R,null,D.createElement(Oy0,{address:u})))))}function Ny0({onClose:u,open:e}){const{address:t}=Bt(),{data:n}=HR({address:t}),r=DM(t),i=FM(r),{disconnect:a}=gA();if(!t)return null;const o="rk_account_modal_title";return D.createElement(D.Fragment,null,t&&D.createElement(Y2,{onClose:u,open:e,titleId:o},D.createElement(X2,{bottomSheetOnMobile:!0,padding:"0"},D.createElement(Ry0,{address:t,balanceData:n,ensAvatar:i,ensName:r,onClose:u,onDisconnect:a}))))}var My0=({size:u})=>D.createElement("svg",{fill:"none",height:u,viewBox:"0 0 28 28",width:u,xmlns:"http://www.w3.org/2000/svg"},D.createElement("path",{d:"M6.742 22.195h8.367c1.774 0 2.743-.968 2.743-2.758V16.11h-2.016v3.11c0 .625-.305.96-.969.96H6.984c-.664 0-.968-.335-.968-.96V7.984c0-.632.304-.968.968-.968h7.883c.664 0 .969.336.969.968v3.133h2.016v-3.36c0-1.78-.97-2.757-2.743-2.757H6.742C4.97 5 4 5.977 4 7.758v11.68c0 1.789.969 2.757 2.742 2.757Zm5.438-7.703h7.601l1.149-.07-.602.406-1.008.938a.816.816 0 0 0-.258.593c0 .407.313.782.758.782.227 0 .39-.086.547-.243l2.492-2.593c.235-.235.313-.47.313-.711 0-.242-.078-.477-.313-.719l-2.492-2.586c-.156-.156-.32-.25-.547-.25-.445 0-.758.367-.758.781 0 .227.094.446.258.594l1.008.945.602.407-1.149-.079H12.18a.904.904 0 0 0 0 1.805Z",fill:"currentColor"})),jy0="v9horb0",jC=D.forwardRef(({children:u,currentlySelected:e=!1,onClick:t,testId:n,...r},i)=>{const a=we();return D.createElement(R,{as:"button",borderRadius:"menuButton",disabled:e,display:"flex",onClick:t,ref:i,testId:n,type:"button"},D.createElement(R,{borderRadius:"menuButton",className:[a?jy0:void 0,!e&&ue({active:"shrink"})],padding:a?"8":"6",transition:"default",width:"full",...e?{background:"accentColor",borderColor:"selectedOptionBorder",borderStyle:"solid",borderWidth:"1",boxShadow:"selectedOption",color:"accentColorForeground"}:{background:{hover:"menuItemBackground"},color:"modalText",transition:"default"},...r},u))});jC.displayName="MenuButton";var zy0="_18dqw9x0",Ly0="_18dqw9x1";function $y0({onClose:u,open:e}){var t;const{chain:n}=Sa(),{chains:r,pendingChainId:i,reset:a,switchNetwork:o}=ci0({onSettled:()=>{a(),u()}}),s=w.useContext(le),{disconnect:f}=gA(),l="rk_chain_modal_title",c=we(),d=(t=n==null?void 0:n.unsupported)!=null?t:!1,E=c?"36":"28",{appName:p}=w.useContext(L3),h=Wc();return!n||!(n!=null&&n.id)?null:D.createElement(Y2,{onClose:u,open:e,titleId:l},D.createElement(X2,{bottomSheetOnMobile:!0,paddingBottom:"0"},D.createElement(R,{display:"flex",flexDirection:"column",gap:"14"},D.createElement(R,{display:"flex",flexDirection:"row",justifyContent:"space-between"},c&&D.createElement(R,{width:"30"}),D.createElement(R,{paddingBottom:"0",paddingLeft:"8",paddingTop:"4"},D.createElement(I0,{as:"h1",color:"modalText",id:l,size:c?"20":"18",weight:"heavy"},s.t("chains.title"))),D.createElement(Qo,{onClose:u})),d&&D.createElement(R,{marginX:"8",textAlign:c?"center":"left"},D.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},s.t("chains.wrong_network"))),D.createElement(R,{className:c?Ly0:zy0,display:"flex",flexDirection:"column",gap:"4",padding:"2",paddingBottom:"16"},o?h.map(({iconBackground:g,iconUrl:b,id:m,name:A},y)=>{const B=r.find(F=>F.id===m);if(!B)return null;const v=B.id===(n==null?void 0:n.id),C=!v&&B.id===i;return D.createElement(w.Fragment,{key:B.id},D.createElement(jC,{currentlySelected:v,onClick:v?void 0:()=>o(B.id),testId:`chain-option-${B.id}`},D.createElement(R,{fontFamily:"body",fontSize:"16",fontWeight:"bold"},D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:E},b&&D.createElement(R,{height:"full",marginRight:"8"},D.createElement(se,{alt:A??B.name,background:g,borderRadius:"full",height:E,src:b,width:E,testId:`chain-option-${B.id}-icon`})),D.createElement("div",null,A??B.name)),v&&D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},D.createElement(I0,{color:"accentColorForeground",size:"14",weight:"medium"},s.t("chains.connected")),D.createElement(R,{background:"connectionIndicator",borderColor:"selectedOptionBorder",borderRadius:"full",borderStyle:"solid",borderWidth:"1",height:"8",marginLeft:"8",width:"8"})),C&&D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},D.createElement(I0,{color:"modalText",size:"14",weight:"medium"},s.t("chains.confirm")),D.createElement(R,{background:"standby",borderRadius:"full",height:"8",marginLeft:"8",width:"8"}))))),c&&yf(),testId:"chain-option-disconnect"},D.createElement(R,{color:"error",fontFamily:"body",fontSize:"16",fontWeight:"bold"},D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:E},D.createElement(R,{alignItems:"center",color:"error",height:E,justifyContent:"center",marginRight:"8"},D.createElement(My0,{size:Number(E)})),D.createElement("div",null,s.t("chains.disconnect")))))))))))}function Uy0(u,e){const t={};return u.forEach(n=>{const r=e(n);r&&(t[r]||(t[r]=[]),t[r].push(n))}),t}var Wy0="rk-latest-id";function qy0(u){localStorage.setItem(Wy0,u)}var XA=({children:u,href:e})=>D.createElement(R,{as:"a",color:"accentColor",href:e,rel:"noreferrer",target:"_blank"},u),uy=({children:u})=>D.createElement(I0,{color:"modalTextSecondary",size:"12",weight:"medium"},u);function qw({compactModeEnabled:u=!1,getWallet:e}){const{disclaimer:t,learnMoreUrl:n}=w.useContext(L3),r=w.useContext(le);return D.createElement(D.Fragment,null,D.createElement(R,{alignItems:"center",color:"accentColor",display:"flex",flexDirection:"column",height:"full",justifyContent:"space-around"},D.createElement(R,{marginBottom:"10"},!u&&D.createElement(I0,{color:"modalText",size:"18",weight:"heavy"},r.t("intro.title"))),D.createElement(R,{display:"flex",flexDirection:"column",gap:"32",justifyContent:"center",marginY:"20",style:{maxWidth:312}},D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},D.createElement(R,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},D.createElement(ty0,null)),D.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},D.createElement(I0,{color:"modalText",size:"14",weight:"bold"},r.t("intro.digital_asset.title")),D.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},r.t("intro.digital_asset.description")))),D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},D.createElement(R,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},D.createElement(ry0,null)),D.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},D.createElement(I0,{color:"modalText",size:"14",weight:"bold"},r.t("intro.login.title")),D.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},r.t("intro.login.description"))))),D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",margin:"10"},D.createElement(ut,{label:r.t("intro.get.label"),onClick:e}),D.createElement(R,{as:"a",className:ue({active:"shrink",hover:"grow"}),display:"block",href:n,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},D.createElement(I0,{color:"accentColor",size:"14",weight:"bold"},r.t("intro.learn_more.label")))),t&&!u&&D.createElement(R,{marginBottom:"8",marginTop:"12",textAlign:"center"},D.createElement(t,{Link:XA,Text:uy}))))}var GM=()=>D.createElement("svg",{fill:"none",height:"17",viewBox:"0 0 11 17",width:"11",xmlns:"http://www.w3.org/2000/svg"},D.createElement("path",{d:"M0.99707 8.6543C0.99707 9.08496 1.15527 9.44531 1.51562 9.79688L8.16016 16.3096C8.43262 16.5732 8.74902 16.7051 9.13574 16.7051C9.90918 16.7051 10.5508 16.0811 10.5508 15.3076C10.5508 14.9121 10.3838 14.5605 10.0938 14.2705L4.30176 8.64551L10.0938 3.0293C10.3838 2.74805 10.5508 2.3877 10.5508 2.00098C10.5508 1.23633 9.90918 0.603516 9.13574 0.603516C8.74902 0.603516 8.43262 0.735352 8.16016 0.999023L1.51562 7.51172C1.15527 7.85449 1.00586 8.21484 0.99707 8.6543Z",fill:"currentColor"})),Hy0=()=>D.createElement("svg",{fill:"none",height:"12",viewBox:"0 0 8 12",width:"8",xmlns:"http://www.w3.org/2000/svg"},D.createElement("path",{d:"M3.64258 7.99609C4.19336 7.99609 4.5625 7.73828 4.68555 7.24609C4.69141 7.21094 4.70312 7.16406 4.70898 7.13477C4.80859 6.60742 5.05469 6.35547 6.04492 5.76367C7.14648 5.10156 7.67969 4.3457 7.67969 3.24414C7.67969 1.39844 6.17383 0.255859 3.95898 0.255859C2.32422 0.255859 1.05859 0.894531 0.548828 1.86719C0.396484 2.14844 0.320312 2.44727 0.320312 2.74023C0.314453 3.37305 0.742188 3.79492 1.42188 3.79492C1.91406 3.79492 2.33594 3.54883 2.53516 3.11523C2.78711 2.47656 3.23242 2.21289 3.83594 2.21289C4.55664 2.21289 5.10742 2.65234 5.10742 3.29102C5.10742 3.9707 4.7793 4.29883 3.81836 4.87891C3.02148 5.36523 2.50586 5.92773 2.50586 6.76562V6.90039C2.50586 7.55664 2.96289 7.99609 3.64258 7.99609ZM3.67188 11.4473C4.42773 11.4473 5.04297 10.8672 5.04297 10.1406C5.04297 9.41406 4.42773 8.83984 3.67188 8.83984C2.91602 8.83984 2.30664 9.41406 2.30664 10.1406C2.30664 10.8672 2.91602 11.4473 3.67188 11.4473Z",fill:"currentColor"})),Gy0=({"aria-label":u="Info",onClick:e})=>{const t=we();return D.createElement(R,{alignItems:"center","aria-label":u,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:t?"0":"1",className:ue({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:t?"30":"28",justifyContent:"center",onClick:e,style:{willChange:"transform"},transition:"default",type:"button",width:t?"30":"28"},D.createElement(Hy0,null))},VM=u=>{const e=w.useRef(null),t=w.useContext(TM),n=qA(u);return w.useEffect(()=>{if(t&&e.current&&n)return Ky0(e.current,n)},[t,n]),e},Vy0=()=>{const u="_rk_coolMode",e=document.getElementById(u);if(e)return e;const t=document.createElement("div");return t.setAttribute("id",u),t.setAttribute("style",["overflow:hidden","position:fixed","height:100%","top:0","left:0","right:0","bottom:0","pointer-events:none","z-index:2147483647"].join(";")),document.body.appendChild(t),t},Hw=0;function Ky0(u,e){Hw++;const t=[15,20,25,35,45],n=35;let r=[],i=!1,a=0,o=0;const s=Vy0();function f(){const y=t[Math.floor(Math.random()*t.length)],B=Math.random()*10,v=Math.random()*25,C=Math.random()*360,F=Math.random()*35*(Math.random()<=.5?-1:1),S=o-y/2,x=a-y/2,$=Math.random()<=.5?-1:1,X=document.createElement("div");X.innerHTML=``,X.setAttribute("style",["position:absolute","will-change:transform",`top:${S}px`,`left:${x}px`,`transform:rotate(${C}deg)`].join(";")),s.appendChild(X),r.push({direction:$,element:X,left:x,size:y,speedHorz:B,speedUp:v,spinSpeed:F,spinVal:C,top:S})}function l(){r.forEach(y=>{y.left=y.left-y.speedHorz*y.direction,y.top=y.top-y.speedUp,y.speedUp=Math.min(y.size,y.speedUp-1),y.spinVal=y.spinVal+y.spinSpeed,y.top>=Math.max(window.innerHeight,document.body.clientHeight)+y.size&&(r=r.filter(B=>B!==y),y.element.remove()),y.element.setAttribute("style",["position:absolute","will-change:transform",`top:${y.top}px`,`left:${y.left}px`,`transform:rotate(${y.spinVal}deg)`].join(";"))})}let c;function d(){i&&r.length{var B,v;"touches"in y?(a=(B=y.touches)==null?void 0:B[0].clientX,o=(v=y.touches)==null?void 0:v[0].clientY):(a=y.clientX,o=y.clientY)},m=y=>{b(y),i=!0},A=()=>{i=!1};return u.addEventListener(g,b,{passive:!1}),u.addEventListener(p,m),u.addEventListener(h,A),u.addEventListener("mouseleave",A),()=>{u.removeEventListener(g,b),u.removeEventListener(p,m),u.removeEventListener(h,A),u.removeEventListener("mouseleave",A);const y=setInterval(()=>{c&&r.length===0&&(cancelAnimationFrame(c),clearInterval(y),--Hw===0&&s.remove())},500)}}var Qy0="g5kl0l0",KM=({as:u="button",currentlySelected:e=!1,iconBackground:t,iconUrl:n,name:r,onClick:i,ready:a,recent:o,testId:s,...f})=>{const l=VM(n),[c,d]=w.useState(!1),E=w.useContext(le);return D.createElement(R,{display:"flex",flexDirection:"column",onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),ref:l},D.createElement(R,{as:u,borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:e?void 0:[Qy0,ue({active:"shrink"})],disabled:e,onClick:i,padding:"5",style:{willChange:"transform"},testId:s,transition:"default",width:"full",...e?{background:"accentColor",borderColor:"selectedOptionBorder",boxShadow:"selectedWallet"}:{background:{hover:"menuItemBackground"}},...f},D.createElement(R,{color:e?"accentColorForeground":"modalText",disabled:!a,fontFamily:"body",fontSize:"16",fontWeight:"bold",transition:"default"},D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"12"},D.createElement(se,{background:t,...c?{}:{borderColor:"actionButtonBorder"},borderRadius:"6",height:"28",src:n,width:"28"}),D.createElement(R,null,D.createElement(R,{style:{marginTop:o?-2:void 0}},r),o&&D.createElement(I0,{color:e?"accentColorForeground":"accentColor",size:"12",style:{lineHeight:1,marginTop:-1},weight:"medium"},E.t("connect.recent")))))))};KM.displayName="ModalSelection";var oh=(u,e=1)=>{let t=u.replace("#","");t.length===3&&(t=`${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`);const n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),i=parseInt(t.substring(4,6),16);return e>1&&e<=100&&(e=e/100),`rgba(${n},${r},${i},${e})`},Jy0=u=>u?[oh(u,.2),oh(u,.14),oh(u,.1)]:null,Zy0=u=>/^#([0-9a-f]{3}){1,2}$/i.test(u),QM=async()=>(await q0(()=>import("./connect-XNDTNVUH-hhMIOxrc.js"),__vite__mapDeps([]))).default,Yy0=()=>gr(QM),Xy0=()=>D.createElement(se,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:QM,width:"48"}),JM=async()=>(await q0(()=>import("./create-PAJXJDV3-km5bd1se.js"),__vite__mapDeps([]))).default,ZM=()=>gr(JM),uv0=()=>D.createElement(se,{background:"#e3a5e8",borderColor:"generalBorder",borderRadius:"10",height:"48",src:JM,width:"48"}),YM=async()=>(await q0(()=>import("./refresh-5KGGHTJP-85I9TqPb.js"),__vite__mapDeps([]))).default,ev0=()=>gr(YM),tv0=()=>D.createElement(se,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:YM,width:"48"}),XM=async()=>(await q0(()=>import("./scan-HZBLXLM4-CuMFQji0.js"),__vite__mapDeps([]))).default,uj=()=>gr(XM),nv0=()=>D.createElement(se,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:XM,width:"48"}),rv0="_1vwt0cg0",iv0="_1vwt0cg2 ju367v7a ju367v7v",av0="_1vwt0cg3",ov0="_1vwt0cg4",sv0=(u,e)=>{const t=Array.prototype.slice.call($c.create(u,{errorCorrectionLevel:e}).modules.data,0),n=Math.sqrt(t.length);return t.reduce((r,i,a)=>(a%n===0?r.push([i]):r[r.length-1].push(i))&&r,[])};function ej({ecl:u="M",logoBackground:e,logoMargin:t=10,logoSize:n=50,logoUrl:r,size:i=200,uri:a}){const o="20",s=i-parseInt(o,10)*2,f=w.useMemo(()=>{const d=[],E=sv0(a,u),p=s/E.length;[{x:0,y:0},{x:1,y:0},{x:0,y:1}].forEach(({x:A,y})=>{const B=(E.length-7)*p*A,v=(E.length-7)*p*y;for(let C=0;C<3;C++)d.push(D.createElement("rect",{fill:C%2!==0?"white":"black",height:p*(7-C*2),key:`${C}-${A}-${y}`,rx:(C-2)*-5+(C===0?2:0),ry:(C-2)*-5+(C===0?2:0),width:p*(7-C*2),x:B+p*C,y:v+p*C}))});const g=Math.floor((n+25)/p),b=E.length/2-g/2,m=E.length/2+g/2-1;return E.forEach((A,y)=>{A.forEach((B,v)=>{E[y][v]&&(y<7&&v<7||y>E.length-8&&v<7||y<7&&v>E.length-8||y>b&&yb&&v{switch(JA()){case"Arc":return(await q0(()=>import("./Arc-QDJFTGH2-x-TIuu8Z.js"),__vite__mapDeps([]))).default;case"Brave":return(await q0(()=>import("./Brave-YATE5BIM-9tj-VFqu.js"),__vite__mapDeps([]))).default;case"Chrome":return(await q0(()=>import("./Chrome-LGF33C3S-wsO3nrZt.js"),__vite__mapDeps([]))).default;case"Edge":return(await q0(()=>import("./Edge-K2JEGI5S--gxTpD72.js"),__vite__mapDeps([]))).default;case"Firefox":return(await q0(()=>import("./Firefox-NP5SYEK5-7iuNDPna.js"),__vite__mapDeps([]))).default;case"Opera":return(await q0(()=>import("./Opera-KV54PXPA-OCnboboB.js"),__vite__mapDeps([]))).default;case"Safari":return(await q0(()=>import("./Safari-2QIYKJ4P-DqnkdcRR.js"),__vite__mapDeps([]))).default;default:return(await q0(()=>import("./Browser-HN7O5MN7-tT69d9rj.js"),__vite__mapDeps([]))).default}},fv0=()=>gr(tj),nj=async()=>{switch(YA()){case"Windows":return(await q0(()=>import("./Windows-R3CKAIUV-UAjuZCQz.js"),__vite__mapDeps([]))).default;case"macOS":return(await q0(()=>import("./Macos-2KTZ2XLP-xHqsL0QY.js"),__vite__mapDeps([]))).default;case"Linux":return(await q0(()=>import("./Linux-NS2LQPT4-bLbGf4OB.js"),__vite__mapDeps([]))).default;default:return(await q0(()=>import("./Linux-NS2LQPT4-bLbGf4OB.js"),__vite__mapDeps([]))).default}},lv0=()=>gr(nj);function cv0({getWalletDownload:u,compactModeEnabled:e}){const n=LE().splice(0,5),r=w.useContext(le);return D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginTop:"18",width:"full"},D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"28",height:"full",width:"full"},n==null?void 0:n.filter(i=>{var a;return i.extensionDownloadUrl||i.desktopDownloadUrl||i.qrCode&&((a=i.downloadUrls)==null?void 0:a.qrCode)}).map(i=>{const{downloadUrls:a,iconBackground:o,iconUrl:s,id:f,name:l,qrCode:c}=i,d=(a==null?void 0:a.qrCode)&&c,E=!!i.extensionDownloadUrl,p=(a==null?void 0:a.qrCode)&&E,h=(a==null?void 0:a.qrCode)&&!!i.desktopDownloadUrl;return D.createElement(R,{alignItems:"center",display:"flex",gap:"16",justifyContent:"space-between",key:i.id,width:"full"},D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},D.createElement(se,{background:o,borderColor:"actionButtonBorder",borderRadius:"10",height:"48",src:s,width:"48"}),D.createElement(R,{display:"flex",flexDirection:"column",gap:"2"},D.createElement(I0,{color:"modalText",size:"14",weight:"bold"},l),D.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},p?r.t("get.mobile_and_extension.description"):h?r.t("get.mobile_and_desktop.description"):d?r.t("get.mobile.description"):E?r.t("get.extension.description"):null))),D.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},D.createElement(ut,{label:r.t("get.action.label"),onClick:()=>u(f),type:"secondary"})))})),D.createElement(R,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"column",gap:"8",justifyContent:"space-between",marginBottom:"4",paddingY:"8",style:{maxWidth:275,textAlign:"center"}},D.createElement(I0,{color:"modalText",size:"14",weight:"bold"},r.t("get.looking_for.title")),D.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},e?r.t("get.looking_for.desktop.compact_description"):r.t("get.looking_for.desktop.wide_description"))))}var sh="44";function dv0({changeWalletStep:u,compactModeEnabled:e,connectionError:t,onClose:n,qrCodeUri:r,reconnect:i,wallet:a}){var o;const{downloadUrls:s,iconBackground:f,iconUrl:l,name:c,qrCode:d,ready:E,showWalletConnectModal:p}=a,h=(o=a.desktop)==null?void 0:o.getUri,g=QA(),b=w.useContext(le),m=!!a.extensionDownloadUrl,A=(s==null?void 0:s.qrCode)&&m,y=(s==null?void 0:s.qrCode)&&!!a.desktopDownloadUrl,B=d&&r,v=p?{description:e?b.t("connect.walletconnect.description.compact"):b.t("connect.walletconnect.description.full"),label:b.t("connect.walletconnect.open.label"),onClick:()=>{n(),p()}}:B?{description:b.t("connect.secondary_action.get.description",{wallet:c}),label:b.t("connect.secondary_action.get.label"),onClick:()=>u(A||y?"DOWNLOAD_OPTIONS":"DOWNLOAD")}:null,{width:C}=PM(),F=C&&C<768;return w.useEffect(()=>{fv0(),lv0()},[]),D.createElement(R,{display:"flex",flexDirection:"column",height:"full",width:"full"},B?D.createElement(R,{alignItems:"center",display:"flex",height:"full",justifyContent:"center"},D.createElement(ej,{logoBackground:f,logoSize:e?60:72,logoUrl:l,size:e?318:F?Math.max(280,Math.min(C-308,382)):382,uri:r})):D.createElement(R,{alignItems:"center",display:"flex",justifyContent:"center",style:{flexGrow:1}},D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8"},D.createElement(R,{borderRadius:"10",height:sh,overflow:"hidden"},D.createElement(se,{height:sh,src:l,width:sh})),D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"4",paddingX:"32",style:{textAlign:"center"}},D.createElement(I0,{color:"modalText",size:"18",weight:"bold"},E?b.t("connect.status.opening",{wallet:c}):m?b.t("connect.status.not_installed",{wallet:c}):b.t("connect.status.not_available",{wallet:c})),!E&&m?D.createElement(R,{paddingTop:"20"},D.createElement(ut,{href:a.extensionDownloadUrl,label:b.t("connect.secondary_action.install.label"),type:"secondary"})):null,E&&!B&&D.createElement(D.Fragment,null,D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},D.createElement(I0,{color:"modalTextSecondary",size:"14",textAlign:"center",weight:"medium"},b.t("connect.status.confirm"))),D.createElement(R,{alignItems:"center",color:"modalText",display:"flex",flexDirection:"row",height:"32",marginTop:"8"},t?D.createElement(ut,{label:b.t("connect.secondary_action.retry.label"),onClick:h?async()=>{const S=await h();window.open(S,g?"_blank":"_self")}:()=>{i(a)}}):D.createElement(R,{color:"modalTextSecondary"},D.createElement(I1,null))))))),D.createElement(R,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"28",justifyContent:"space-between",marginTop:"12"},E&&v&&D.createElement(D.Fragment,null,D.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},v.description),D.createElement(ut,{label:v.label,onClick:v.onClick,type:"secondary"}))))}var fh=({actionLabel:u,description:e,iconAccent:t,iconBackground:n,iconUrl:r,isCompact:i,onAction:a,title:o,url:s,variant:f})=>{const l=f==="browser",c=!l&&t&&Jy0(t);return D.createElement(R,{alignItems:"center",borderRadius:"13",display:"flex",justifyContent:"center",overflow:"hidden",paddingX:i?"18":"44",position:"relative",style:{flex:1,isolation:"isolate"},width:"full"},D.createElement(R,{borderColor:"actionButtonBorder",borderRadius:"13",borderStyle:"solid",borderWidth:"1",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0",zIndex:1}}),l&&D.createElement(R,{background:"downloadTopCardBackground",height:"full",position:"absolute",style:{zIndex:0},width:"full"},D.createElement(R,{display:"flex",flexDirection:"row",justifyContent:"space-between",style:{bottom:"0",filter:"blur(20px)",left:"0",position:"absolute",right:"0",top:"0",transform:"translate3d(0, 0, 0)"}},D.createElement(R,{style:{filter:"blur(100px)",marginLeft:-27,marginTop:-20,opacity:.6,transform:"translate3d(0, 0, 0)"}},D.createElement(se,{borderRadius:"full",height:"200",src:r,width:"200"})),D.createElement(R,{style:{filter:"blur(100px)",marginRight:0,marginTop:105,opacity:.6,overflow:"auto",transform:"translate3d(0, 0, 0)"}},D.createElement(se,{borderRadius:"full",height:"200",src:r,width:"200"})))),!l&&c&&D.createElement(R,{background:"downloadBottomCardBackground",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0"}},D.createElement(R,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${c[0]} 0%, ${c[1]} 25%, rgba(0,0,0,0) 100%)`,height:564,left:-215,top:-197,transform:"translate3d(0, 0, 0)",width:564}}),D.createElement(R,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${c[2]} 0%, rgba(0, 0, 0, 0) 100%)`,height:564,left:-1,top:-76,transform:"translate3d(0, 0, 0)",width:564}})),D.createElement(R,{alignItems:"flex-start",display:"flex",flexDirection:"row",gap:"24",height:"max",justifyContent:"center",style:{zIndex:1}},D.createElement(R,null,D.createElement(se,{height:"60",src:r,width:"60",...n?{background:n,borderColor:"generalBorder",borderRadius:"10"}:null})),D.createElement(R,{display:"flex",flexDirection:"column",gap:"4",style:{flex:1},width:"full"},D.createElement(I0,{color:"modalText",size:"14",weight:"bold"},o),D.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},e),D.createElement(R,{marginTop:"14",width:"max"},D.createElement(ut,{href:s,label:u,onClick:a,size:"medium"})))))};function Ev0({changeWalletStep:u,wallet:e}){const t=JA(),n=YA(),i=w.useContext(zE)==="compact",{desktop:a,desktopDownloadUrl:o,extension:s,extensionDownloadUrl:f,mobileDownloadUrl:l}=e,c=w.useContext(le);return w.useEffect(()=>{ZM(),uj(),ev0(),Yy0()},[]),D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",marginBottom:"8",marginTop:"4",width:"full"},D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8",height:"full",justifyContent:"center",width:"full"},f&&D.createElement(fh,{actionLabel:c.t("get_options.extension.download.label",{browser:t}),description:c.t("get_options.extension.description"),iconUrl:tj,isCompact:i,onAction:()=>u(s!=null&&s.instructions?"INSTRUCTIONS_EXTENSION":"CONNECT"),title:c.t("get_options.extension.title",{wallet:e.name,browser:t}),url:f,variant:"browser"}),o&&D.createElement(fh,{actionLabel:c.t("get_options.desktop.download.label",{platform:n}),description:c.t("get_options.desktop.description"),iconUrl:nj,isCompact:i,onAction:()=>u(a!=null&&a.instructions?"INSTRUCTIONS_DESKTOP":"CONNECT"),title:c.t("get_options.desktop.title",{wallet:e.name,platform:n}),url:o,variant:"desktop"}),l&&D.createElement(fh,{actionLabel:c.t("get_options.mobile.download.label",{wallet:e.name}),description:c.t("get_options.mobile.description"),iconAccent:e.iconAccent,iconBackground:e.iconBackground,iconUrl:e.iconUrl,isCompact:i,onAction:()=>{u("DOWNLOAD")},title:c.t("get_options.mobile.title",{wallet:e.name}),variant:"app"})))}function pv0({changeWalletStep:u,wallet:e}){const{downloadUrls:t,qrCode:n}=e,r=w.useContext(le);return w.useEffect(()=>{ZM(),uj()},[]),D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",width:"full"},D.createElement(R,{style:{maxWidth:220,textAlign:"center"}},D.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"semibold"},r.t("get_mobile.description"))),D.createElement(R,{height:"full"},t!=null&&t.qrCode?D.createElement(ej,{logoSize:0,size:268,uri:t.qrCode}):null),D.createElement(R,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"34",justifyContent:"space-between",marginBottom:"12",paddingY:"8"},D.createElement(ut,{label:r.t("get_mobile.continue.label"),onClick:()=>u(n!=null&&n.instructions?"INSTRUCTIONS_MOBILE":"CONNECT")})))}var X4={connect:()=>D.createElement(Xy0,null),create:()=>D.createElement(uv0,null),install:u=>D.createElement(se,{background:u.iconBackground,borderColor:"generalBorder",borderRadius:"10",height:"48",src:u.iconUrl,width:"48"}),refresh:()=>D.createElement(tv0,null),scan:()=>D.createElement(nv0,null)};function hv0({connectWallet:u,wallet:e}){var t,n,r,i;const a=w.useContext(le);return D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},D.createElement(R,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(n=(t=e==null?void 0:e.qrCode)==null?void 0:t.instructions)==null?void 0:n.steps.map((o,s)=>{var f;return D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:s},D.createElement(R,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(f=X4[o.step])==null?void 0:f.call(X4,e)),D.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},D.createElement(I0,{color:"modalText",size:"14",weight:"bold"},a.t(o.title)),D.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},a.t(o.description))))})),D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},D.createElement(ut,{label:a.t("get_instructions.mobile.connect.label"),onClick:()=>u(e)}),D.createElement(R,{as:"a",className:ue({active:"shrink",hover:"grow"}),display:"block",href:(i=(r=e==null?void 0:e.qrCode)==null?void 0:r.instructions)==null?void 0:i.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},D.createElement(I0,{color:"accentColor",size:"14",weight:"bold"},a.t("get_instructions.mobile.learn_more.label")))))}function Cv0({wallet:u}){var e,t,n,r;const i=w.useContext(le);return D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},D.createElement(R,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(t=(e=u==null?void 0:u.extension)==null?void 0:e.instructions)==null?void 0:t.steps.map((a,o)=>{var s;return D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:o},D.createElement(R,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(s=X4[a.step])==null?void 0:s.call(X4,u)),D.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},D.createElement(I0,{color:"modalText",size:"14",weight:"bold"},i.t(a.title)),D.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},i.t(a.description))))})),D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},D.createElement(ut,{label:i.t("get_instructions.extension.refresh.label"),onClick:window.location.reload.bind(window.location)}),D.createElement(R,{as:"a",className:ue({active:"shrink",hover:"grow"}),display:"block",href:(r=(n=u==null?void 0:u.extension)==null?void 0:n.instructions)==null?void 0:r.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},D.createElement(I0,{color:"accentColor",size:"14",weight:"bold"},i.t("get_instructions.extension.learn_more.label")))))}function mv0({connectWallet:u,wallet:e}){var t,n,r,i;const a=w.useContext(le);return D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},D.createElement(R,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(n=(t=e==null?void 0:e.desktop)==null?void 0:t.instructions)==null?void 0:n.steps.map((o,s)=>{var f;return D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:s},D.createElement(R,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(f=X4[o.step])==null?void 0:f.call(X4,e)),D.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},D.createElement(I0,{color:"modalText",size:"14",weight:"bold"},a.t(o.title)),D.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},a.t(o.description))))})),D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},D.createElement(ut,{label:a.t("get_instructions.desktop.connect.label"),onClick:()=>u(e)}),D.createElement(R,{as:"a",className:ue({active:"shrink",hover:"grow"}),display:"block",href:(i=(r=e==null?void 0:e.desktop)==null?void 0:r.instructions)==null?void 0:i.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},D.createElement(I0,{color:"accentColor",size:"14",weight:"bold"},a.t("get_instructions.desktop.learn_more.label")))))}function bv0({onClose:u}){const e="rk_connect_title",t=QA(),[n,r]=w.useState(),[i,a]=w.useState(),[o,s]=w.useState(),f=!!(i!=null&&i.qrCode)&&o,[l,c]=w.useState(!1),E=w.useContext(zE)===Hc.COMPACT,{disclaimer:p}=w.useContext(L3),h=w.useContext(le),g=w.useRef(!1),{connector:b}=w.useContext(qc),m=LE().filter(U=>U.ready||!!U.extensionDownloadUrl).sort((U,i0)=>U.groupIndex-i0.groupIndex),A=Uy0(m,U=>U.groupName),y=["Recommended","Other","Popular","More","Others"];w.useEffect(()=>{b&&!g.current&&(S("CONNECT"),v(b),g.current=!0)},[b]);const B=U=>{var i0,s0,o0;if(c(!1),U.ready){(s0=(i0=U==null?void 0:U.connect)==null?void 0:i0.call(U))==null||s0.catch(()=>{c(!0)});const K=(o0=U.desktop)==null?void 0:o0.getUri;K&&setTimeout(async()=>{const b0=await K();window.open(b0,t?"_blank":"_self")},0)}},v=U=>{var i0;if(qy0(U.id),B(U),r(U.id),U.ready){let s0=!1;(i0=U==null?void 0:U.onConnecting)==null||i0.call(U,async()=>{var o0,K;if(s0)return;s0=!0;const b0=m.find(B0=>U.id===B0.id),A0=await((o0=b0==null?void 0:b0.qrCode)==null?void 0:o0.getUri());s(A0),setTimeout(()=>{a(b0),S("CONNECT")},A0?0:50);const _0=await(b0==null?void 0:b0.connector.getProvider()),w0=(K=_0==null?void 0:_0.signer)==null?void 0:K.connection;if(w0!=null&&w0.on&&(w0!=null&&w0.off)){const B0=()=>{_(),v(U)},_=()=>{w0.off("close",B0),w0.off("open",_)};w0.on("close",B0),w0.on("open",_)}})}else a(U),S(U!=null&&U.extensionDownloadUrl?"DOWNLOAD_OPTIONS":"CONNECT")},C=U=>{var i0;r(U);const s0=m.find(A0=>U===A0.id),o0=(i0=s0==null?void 0:s0.downloadUrls)==null?void 0:i0.qrCode,K=!!(s0!=null&&s0.desktopDownloadUrl),b0=!!(s0!=null&&s0.extensionDownloadUrl);a(s0),S(o0&&(b0||K)?"DOWNLOAD_OPTIONS":o0?"DOWNLOAD":K?"INSTRUCTIONS_DESKTOP":"INSTRUCTIONS_EXTENSION")},F=()=>{r(void 0),a(void 0),s(void 0)},S=(U,i0=!1)=>{i0&&U==="GET"&&x==="GET"?F():!i0&&U==="GET"?$("GET"):!i0&&U==="CONNECT"&&$("CONNECT"),Q(U)},[x,$]=w.useState("NONE"),[X,Q]=w.useState("NONE");let Z=null,I=null,O=null,W;w.useEffect(()=>{c(!1)},[X,i]);const q=!!(!!(i!=null&&i.extensionDownloadUrl)&&(i!=null&&i.mobileDownloadUrl));switch(X){case"NONE":Z=D.createElement(qw,{getWallet:()=>S("GET")});break;case"LEARN_COMPACT":Z=D.createElement(qw,{compactModeEnabled:E,getWallet:()=>S("GET")}),I=h.t("intro.title"),O="NONE";break;case"GET":Z=D.createElement(cv0,{getWalletDownload:C,compactModeEnabled:E}),I=h.t("get.title"),O=E?"LEARN_COMPACT":"NONE";break;case"CONNECT":Z=i&&D.createElement(dv0,{changeWalletStep:S,compactModeEnabled:E,connectionError:l,onClose:u,qrCodeUri:o,reconnect:B,wallet:i}),I=f&&(i.name==="WalletConnect"?h.t("connect_scan.fallback_title"):h.t("connect_scan.title",{wallet:i.name})),O=E?b?null:"NONE":null,W=E?b?()=>{}:F:()=>{};break;case"DOWNLOAD_OPTIONS":Z=i&&D.createElement(Ev0,{changeWalletStep:S,wallet:i}),I=i&&h.t("get_options.short_title",{wallet:i.name}),O=b?"CONNECT":q?x:null;break;case"DOWNLOAD":Z=i&&D.createElement(pv0,{changeWalletStep:S,wallet:i}),I=i&&h.t("get_mobile.title",{wallet:i.name}),O=q?"DOWNLOAD_OPTIONS":x;break;case"INSTRUCTIONS_MOBILE":Z=i&&D.createElement(hv0,{connectWallet:v,wallet:i}),I=i&&h.t("get_options.title",{wallet:E&&i.shortName||i.name}),O="DOWNLOAD";break;case"INSTRUCTIONS_EXTENSION":Z=i&&D.createElement(Cv0,{wallet:i}),I=i&&h.t("get_options.title",{wallet:E&&i.shortName||i.name}),O="DOWNLOAD_OPTIONS";break;case"INSTRUCTIONS_DESKTOP":Z=i&&D.createElement(mv0,{connectWallet:v,wallet:i}),I=i&&h.t("get_options.title",{wallet:E&&i.shortName||i.name}),O="DOWNLOAD_OPTIONS";break}return D.createElement(R,{display:"flex",flexDirection:"row",style:{maxHeight:E?468:504}},(E?X==="NONE":!0)&&D.createElement(R,{className:E?ov0:av0,display:"flex",flexDirection:"column",marginTop:"16"},D.createElement(R,{display:"flex",justifyContent:"space-between"},E&&p&&D.createElement(R,{marginLeft:"16",width:"28"},D.createElement(Gy0,{onClick:()=>S("LEARN_COMPACT")})),E&&!p&&D.createElement(R,{marginLeft:"16",width:"28"}),D.createElement(R,{marginLeft:E?"0":"6",paddingBottom:"8",paddingTop:"2",paddingX:"18"},D.createElement(I0,{as:"h1",color:"modalText",id:e,size:"18",weight:"heavy",testId:"connect-header-label"},h.t("connect.title"))),E&&D.createElement(R,{marginRight:"16"},D.createElement(Qo,{onClose:u}))),D.createElement(R,{className:iv0,paddingBottom:"18"},Object.entries(A).map(([U,i0],s0)=>i0.length>0&&D.createElement(w.Fragment,{key:s0},U?D.createElement(R,{marginBottom:"8",marginTop:"16",marginX:"6"},D.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"bold"},y.includes(U)?h.t(`connector_group.${U.toLowerCase()}`):U)):null,D.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},i0.map(o0=>D.createElement(KM,{currentlySelected:o0.id===n,iconBackground:o0.iconBackground,iconUrl:o0.iconUrl,key:o0.id,name:o0.name,onClick:()=>v(o0),ready:o0.ready,recent:o0.recent,testId:`wallet-option-${o0.id}`})))))),E&&D.createElement(D.Fragment,null,D.createElement(R,{background:"generalBorder",height:"1",marginTop:"-1"}),p?D.createElement(R,{paddingX:"24",paddingY:"16",textAlign:"center"},D.createElement(p,{Link:XA,Text:uy})):D.createElement(R,{alignItems:"center",display:"flex",justifyContent:"space-between",paddingX:"24",paddingY:"16"},D.createElement(R,{paddingY:"4"},D.createElement(I0,{color:"modalTextSecondary",size:"14",weight:"medium"},h.t("connect.new_to_ethereum.description"))),D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",justifyContent:"center"},D.createElement(R,{className:ue({active:"shrink",hover:"grow"}),cursor:"pointer",onClick:()=>S("LEARN_COMPACT"),paddingY:"4",style:{willChange:"transform"},transition:"default"},D.createElement(I0,{color:"accentColor",size:"14",weight:"bold"},h.t("connect.new_to_ethereum.learn_more.label"))))))),(E?X!=="NONE":!0)&&D.createElement(D.Fragment,null,!E&&D.createElement(R,{background:"generalBorder",minWidth:"1",width:"1"}),D.createElement(R,{display:"flex",flexDirection:"column",margin:"16",style:{flexGrow:1}},D.createElement(R,{alignItems:"center",display:"flex",justifyContent:"space-between",marginBottom:"12"},D.createElement(R,{width:"28"},O&&D.createElement(R,{as:"button",className:ue({active:"shrinkSm",hover:"growLg"}),color:"accentColor",onClick:()=>{O&&S(O,!0),W==null||W()},paddingX:"8",paddingY:"4",style:{boxSizing:"content-box",height:17,willChange:"transform"},transition:"default",type:"button"},D.createElement(GM,null))),D.createElement(R,{display:"flex",justifyContent:"center",style:{flexGrow:1}},I&&D.createElement(I0,{color:"modalText",size:"18",textAlign:"center",weight:"heavy"},I)),D.createElement(Qo,{onClose:u})),D.createElement(R,{display:"flex",flexDirection:"column",style:{minHeight:E?396:432}},D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"6",height:"full",justifyContent:"center",marginX:"8"},Z)))))}var gv0="_1am14412",Av0="_1am14410",yv0="_1am14413",vv0=({wallet:u})=>D.createElement("svg",{className:yv0,viewBox:"0 0 86 86",width:"86",height:"86"},D.createElement("rect",{x:"3",y:"3",width:80,height:80,rx:20,ry:20,strokeDasharray:`${160/3} ${2*160/3}`,strokeDashoffset:160,className:gv0,style:{stroke:(u==null?void 0:u.iconAccent)||"#0D3887"}}));function rj({onClose:u,wallet:e,connecting:t}){const{connect:n,connector:r,iconBackground:i,iconUrl:a,id:o,mobile:s,name:f,onConnecting:l,ready:c,shortName:d}=e,E=s==null?void 0:s.getUri,p=VM(a),h=w.useRef(!1),g=w.useContext(le),b=w.useCallback(async()=>{var m;o==="walletConnect"&&(u==null||u()),(m=n==null?void 0:n())==null||m.catch(()=>{});let A=!1;l==null||l(async()=>{if(!A&&(A=!0,E)){const y=await E();if((r.id==="walletConnect"||r.id==="walletConnectLegacy")&&fy0({mobileUri:y,name:f}),y.startsWith("http")){const B=document.createElement("a");B.href=y,B.target="_blank",B.rel="noreferrer noopener",B.click()}else window.location.href=y}})},[r,n,E,l,u,f,o]);return w.useEffect(()=>{t&&!h.current&&(b(),h.current=!0)},[t]),D.createElement(R,{as:"button",color:c?"modalText":"modalTextSecondary",disabled:!c,fontFamily:"body",key:o,onClick:b,ref:p,style:{overflow:"visible",textAlign:"center"},testId:`wallet-option-${o}`,type:"button",width:"full"},D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},D.createElement(R,{display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"8",paddingTop:"10",position:"relative"},t?D.createElement(vv0,{wallet:e}):null,D.createElement(se,{background:i,borderRadius:"13",boxShadow:"walletLogo",height:"60",src:a,width:"60"})),t?null:D.createElement(R,{display:"flex",flexDirection:"column",textAlign:"center"},D.createElement(I0,{as:"h2",color:e.ready?"modalText":"modalTextSecondary",size:"13",weight:"medium"},D.createElement(R,{as:"span",position:"relative"},d??f,!e.ready&&" (unsupported)")),e.recent&&D.createElement(I0,{color:"accentColor",size:"12",weight:"medium"},g.t("connect.recent")))))}function Bv0({onClose:u}){var e;const t="rk_connect_title",n=LE(),{disclaimer:r,learnMoreUrl:i}=w.useContext(L3);let a=null,o=null,s=!1,f=null;const[l,c]=w.useState("CONNECT"),d=w.useContext(le),E=ms();switch(l){case"CONNECT":{a=d.t("connect.title"),s=!0,o=D.createElement(R,null,D.createElement(R,{background:"profileForeground",className:Av0,display:"flex",paddingBottom:"20",paddingTop:"6"},D.createElement(R,{display:"flex",style:{margin:"0 auto"}},n.filter(p=>p.ready).map(p=>D.createElement(R,{key:p.id,paddingX:"20"},D.createElement(R,{width:"60"},D.createElement(rj,{onClose:u,wallet:p})))))),D.createElement(R,{background:"generalBorder",height:"1",marginBottom:"32",marginTop:"-1"}),D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"32",paddingX:"32",style:{textAlign:"center"}},D.createElement(R,{display:"flex",flexDirection:"column",gap:"8",textAlign:"center"},D.createElement(I0,{color:"modalText",size:"16",weight:"bold"},d.t("intro.title")),D.createElement(I0,{color:"modalTextSecondary",size:"16"},d.t("intro.description")))),D.createElement(R,{paddingTop:"32",paddingX:"20"},D.createElement(R,{display:"flex",gap:"14",justifyContent:"center"},D.createElement(ut,{label:d.t("intro.get.label"),onClick:()=>c("GET"),size:"large",type:"secondary"}),D.createElement(ut,{href:i,label:d.t("intro.learn_more.label"),size:"large",type:"secondary"}))),r&&D.createElement(R,{marginTop:"28",marginX:"32",textAlign:"center"},D.createElement(r,{Link:XA,Text:uy})));break}case"GET":{a=d.t("get.title"),f="CONNECT";const p=(e=n==null?void 0:n.filter(h=>{var g,b,m;return((g=h.downloadUrls)==null?void 0:g.ios)||((b=h.downloadUrls)==null?void 0:b.android)||((m=h.downloadUrls)==null?void 0:m.mobile)}))==null?void 0:e.splice(0,3);o=D.createElement(R,null,D.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginBottom:"36",marginTop:"5",paddingTop:"12",width:"full"},p.map((h,g)=>{const{downloadUrls:b,iconBackground:m,iconUrl:A,name:y}=h;return!(b!=null&&b.ios)&&!(b!=null&&b.android)&&!(b!=null&&b.mobile)?null:D.createElement(R,{display:"flex",gap:"16",key:h.id,paddingX:"20",width:"full"},D.createElement(R,{style:{minHeight:48,minWidth:48}},D.createElement(se,{background:m,borderColor:"generalBorder",borderRadius:"10",height:"48",src:A,width:"48"})),D.createElement(R,{display:"flex",flexDirection:"column",width:"full"},D.createElement(R,{alignItems:"center",display:"flex",height:"48"},D.createElement(R,{width:"full"},D.createElement(I0,{color:"modalText",size:"18",weight:"bold"},y)),D.createElement(ut,{href:(E?b==null?void 0:b.ios:b==null?void 0:b.android)||(b==null?void 0:b.mobile),label:d.t("get.action.label"),size:"small",type:"secondary"})),gc(f),padding:"16",style:{height:17,willChange:"transform"},transition:"default",type:"button"},D.createElement(GM,null))),D.createElement(R,{marginTop:"4",textAlign:"center",width:"full"},D.createElement(I0,{as:"h1",color:"modalText",id:t,size:"20",weight:"bold"},a)),D.createElement(R,{alignItems:"center",display:"flex",height:"32",paddingRight:"14",position:"absolute",right:"0"},D.createElement(R,{style:{marginBottom:-20,marginTop:-20}},D.createElement(Qo,{onClose:u}))))),D.createElement(R,{display:"flex",flexDirection:"column"},o))}var Fv0=({onClose:u})=>{const{connector:e}=w.useContext(qc),t=w.useContext(le),n=(e==null?void 0:e.name)||"";return D.createElement(R,null,D.createElement(R,{display:"flex",paddingBottom:"32",justifyContent:"center",alignItems:"center",background:"profileForeground",flexDirection:"column"},D.createElement(R,{width:"full",display:"flex",justifyContent:"flex-end",marginTop:"18",marginRight:"24"},D.createElement(Qo,{onClose:u})),D.createElement(R,{width:"60"},D.createElement(rj,{onClose:u,wallet:e,connecting:!0})),D.createElement(R,{marginTop:"20"},D.createElement(I0,{textAlign:"center",color:"modalText",size:"18",weight:"semibold"},t.t("connect.status.connect_mobile",{wallet:n}))),D.createElement(R,{maxWidth:"full",marginTop:"8"},D.createElement(I0,{textAlign:"center",color:"modalText",size:"16",weight:"medium"},t.t("connect.status.confirm_mobile",{wallet:n})))))};function Dv0({onClose:u}){const{connector:e}=w.useContext(qc);return we()?e?D.createElement(Fv0,{onClose:u}):D.createElement(Bv0,{onClose:u}):D.createElement(bv0,{onClose:u})}function wv0({onClose:u,open:e}){const t="rk_connect_title",n=UA(),{disconnect:r}=gA(),{isConnecting:i}=Bt(),a=D.useCallback(()=>{u(),r()},[u,r]),o=D.useCallback(()=>{i&&r(),u()},[u,r,i]);return n==="disconnected"?D.createElement(Y2,{onClose:o,open:e,titleId:t},D.createElement(X2,{bottomSheetOnMobile:!0,padding:"0",wide:!0},D.createElement(Dv0,{onClose:o}))):n==="unauthenticated"?D.createElement(Y2,{onClose:a,open:e,titleId:t},D.createElement(X2,{bottomSheetOnMobile:!0,padding:"0"},D.createElement(oy0,{onClose:a}))):null}function lh(){const[u,e]=w.useState(!1);return{closeModal:w.useCallback(()=>e(!1),[]),isModalOpen:u,openModal:w.useCallback(()=>e(!0),[])}}var Gc=w.createContext({accountModalOpen:!1,chainModalOpen:!1,connectModalOpen:!1});function xv0({children:u}){const{closeModal:e,isModalOpen:t,openModal:n}=lh(),{closeModal:r,isModalOpen:i,openModal:a}=lh(),{closeModal:o,isModalOpen:s,openModal:f}=lh(),l=UA(),{chain:c}=Sa(),d=!(c!=null&&c.unsupported);function E({keepConnectModalOpen:h=!1}={}){h||e(),r(),o()}const p=jE()==="unauthenticated";return Bt({onConnect:()=>E({keepConnectModalOpen:p}),onDisconnect:()=>E()}),D.createElement(Gc.Provider,{value:w.useMemo(()=>({accountModalOpen:i,chainModalOpen:s,connectModalOpen:t,openAccountModal:d&&l==="connected"?a:void 0,openChainModal:l==="connected"?f:void 0,openConnectModal:l==="disconnected"||l==="unauthenticated"?n:void 0}),[l,d,i,s,t,a,f,n])},u,D.createElement(wv0,{onClose:e,open:t}),D.createElement(Ny0,{onClose:r,open:i}),D.createElement($y0,{onClose:o,open:s}))}function kv0(){const{accountModalOpen:u,chainModalOpen:e,connectModalOpen:t}=w.useContext(Gc);return{accountModalOpen:u,chainModalOpen:e,connectModalOpen:t}}function _v0(){const{accountModalOpen:u,openAccountModal:e}=w.useContext(Gc);return{accountModalOpen:u,openAccountModal:e}}function Sv0(){const{chainModalOpen:u,openChainModal:e}=w.useContext(Gc);return{chainModalOpen:u,openChainModal:e}}function Tv0(){const{connectModalOpen:u,openConnectModal:e}=w.useContext(Gc);return{connectModalOpen:u,openConnectModal:e}}var ch=()=>{};function ey({children:u}){var e,t,n,r;const i=SA0(),{address:a}=Bt(),o=DM(a),s=FM(o),{data:f}=HR({address:a}),{chain:l}=Sa(),c=_A0(),d=(e=jE())!=null?e:void 0,E=l?c[l.id]:void 0,p=(t=E==null?void 0:E.name)!=null?t:void 0,h=(n=E==null?void 0:E.iconUrl)!=null?n:void 0,g=(r=E==null?void 0:E.iconBackground)!=null?r:void 0,b=qA(h),m=w.useContext(KA),A=_M().some(({status:$})=>$==="pending")&&m,y=f?`${$M(parseFloat(f.formatted))} ${f.symbol}`:void 0,{openConnectModal:B}=Tv0(),{openChainModal:v}=Sv0(),{openAccountModal:C}=_v0(),{accountModalOpen:F,chainModalOpen:S,connectModalOpen:x}=kv0();return D.createElement(D.Fragment,null,u({account:a?{address:a,balanceDecimals:f==null?void 0:f.decimals,balanceFormatted:f==null?void 0:f.formatted,balanceSymbol:f==null?void 0:f.symbol,displayBalance:y,displayName:o?WM(o):UM(a),ensAvatar:s??void 0,ensName:o??void 0,hasPendingTransactions:A}:void 0,accountModalOpen:F,authenticationStatus:d,chain:l?{hasIcon:!!h,iconBackground:g,iconUrl:b,id:l.id,name:p??l.name,unsupported:l.unsupported}:void 0,chainModalOpen:S,connectModalOpen:x,mounted:i,openAccountModal:C??ch,openChainModal:v??ch,openConnectModal:B??ch}))}ey.displayName="ConnectButton.Custom";var Fl={accountStatus:"full",chainStatus:{largeScreen:"full",smallScreen:"icon"},label:"Connect Wallet",showBalance:{largeScreen:!0,smallScreen:!1}};function ty({accountStatus:u=Fl.accountStatus,chainStatus:e=Fl.chainStatus,label:t=Fl.label,showBalance:n=Fl.showBalance}){const r=Wc(),i=UA(),a=w.useContext(le);return D.createElement(ey,null,({account:o,chain:s,mounted:f,openAccountModal:l,openChainModal:c,openConnectModal:d})=>{var E,p,h;const g=f&&i!=="loading",b=(E=s==null?void 0:s.unsupported)!=null?E:!1;return D.createElement(R,{display:"flex",gap:"12",...!g&&{"aria-hidden":!0,style:{opacity:0,pointerEvents:"none",userSelect:"none"}}},g&&o&&i==="connected"?D.createElement(D.Fragment,null,s&&(r.length>1||b)&&D.createElement(R,{alignItems:"center","aria-label":"Chain Selector",as:"button",background:b?"connectButtonBackgroundError":"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:ue({active:"shrink",hover:"grow"}),color:b?"connectButtonTextError":"connectButtonText",display:Ps(e,m=>m==="none"?"none":"flex"),fontFamily:"body",fontWeight:"bold",gap:"6",key:b?"unsupported":"supported",onClick:c,paddingX:"10",paddingY:"8",testId:b?"wrong-network-button":"chain-button",transition:"default",type:"button"},b?D.createElement(R,{alignItems:"center",display:"flex",height:"24",paddingX:"4"},"Wrong network"):D.createElement(R,{alignItems:"center",display:"flex",gap:"6"},s.hasIcon?D.createElement(R,{display:Ps(e,m=>m==="full"||m==="icon"?"block":"none"),height:"24",width:"24"},D.createElement(se,{alt:(p=s.name)!=null?p:"Chain icon",background:s.iconBackground,borderRadius:"full",height:"24",src:s.iconUrl,width:"24"})):null,D.createElement(R,{display:Ps(e,m=>m==="icon"&&!s.iconUrl||m==="full"||m==="name"?"block":"none")},(h=s.name)!=null?h:s.id)),D.createElement(hw,null)),!b&&D.createElement(R,{alignItems:"center",as:"button",background:"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:ue({active:"shrink",hover:"grow"}),color:"connectButtonText",display:"flex",fontFamily:"body",fontWeight:"bold",onClick:l,testId:"account-button",transition:"default",type:"button"},o.displayBalance&&D.createElement(R,{display:Ps(n,m=>m?"block":"none"),padding:"8",paddingLeft:"12"},o.displayBalance),D.createElement(R,{background:ZC0(n)[we()?"smallScreen":"largeScreen"]?"connectButtonInnerBackground":"connectButtonBackground",borderColor:"connectButtonBackground",borderRadius:"connectButton",borderStyle:"solid",borderWidth:"2",color:"connectButtonText",fontFamily:"body",fontWeight:"bold",paddingX:"8",paddingY:"6",transition:"default"},D.createElement(R,{alignItems:"center",display:"flex",gap:"6",height:"24"},D.createElement(R,{display:Ps(u,m=>m==="full"||m==="avatar"?"block":"none")},D.createElement(vM,{address:o.address,imageUrl:o.ensAvatar,loading:o.hasPendingTransactions,size:24})),D.createElement(R,{alignItems:"center",display:"flex",gap:"6"},D.createElement(R,{display:Ps(u,m=>m==="full"||m==="address"?"block":"none")},o.displayName),D.createElement(hw,null)))))):D.createElement(R,{as:"button",background:"accentColor",borderRadius:"connectButton",boxShadow:"connectButton",className:ue({active:"shrink",hover:"grow"}),color:"accentColorForeground",fontFamily:"body",fontWeight:"bold",height:"40",key:"connect",onClick:d,paddingX:"14",testId:"connect-button",transition:"default",type:"button"},f&&t==="Connect Wallet"?a.t("connect_wallet.label"):t))})}ty.__defaultProps=Fl;ty.Custom=ey;var ny={},$E={},Q0={},ij={};(function(u){Object.defineProperty(u,"__esModule",{value:!0});function e(o,s){var f=o>>>16&65535,l=o&65535,c=s>>>16&65535,d=s&65535;return l*d+(f*d+l*c<<16>>>0)|0}u.mul=Math.imul||e;function t(o,s){return o+s|0}u.add=t;function n(o,s){return o-s|0}u.sub=n;function r(o,s){return o<>>32-s}u.rotl=r;function i(o,s){return o<<32-s|o>>>s}u.rotr=i;function a(o){return typeof o=="number"&&isFinite(o)&&Math.floor(o)===o}u.isInteger=Number.isInteger||a,u.MAX_SAFE_INTEGER=9007199254740991,u.isSafeInteger=function(o){return u.isInteger(o)&&o>=-u.MAX_SAFE_INTEGER&&o<=u.MAX_SAFE_INTEGER}})(ij);Object.defineProperty(Q0,"__esModule",{value:!0});var aj=ij;function Pv0(u,e){return e===void 0&&(e=0),(u[e+0]<<8|u[e+1])<<16>>16}Q0.readInt16BE=Pv0;function Iv0(u,e){return e===void 0&&(e=0),(u[e+0]<<8|u[e+1])>>>0}Q0.readUint16BE=Iv0;function Ov0(u,e){return e===void 0&&(e=0),(u[e+1]<<8|u[e])<<16>>16}Q0.readInt16LE=Ov0;function Rv0(u,e){return e===void 0&&(e=0),(u[e+1]<<8|u[e])>>>0}Q0.readUint16LE=Rv0;function oj(u,e,t){return e===void 0&&(e=new Uint8Array(2)),t===void 0&&(t=0),e[t+0]=u>>>8,e[t+1]=u>>>0,e}Q0.writeUint16BE=oj;Q0.writeInt16BE=oj;function sj(u,e,t){return e===void 0&&(e=new Uint8Array(2)),t===void 0&&(t=0),e[t+0]=u>>>0,e[t+1]=u>>>8,e}Q0.writeUint16LE=sj;Q0.writeInt16LE=sj;function zC(u,e){return e===void 0&&(e=0),u[e]<<24|u[e+1]<<16|u[e+2]<<8|u[e+3]}Q0.readInt32BE=zC;function LC(u,e){return e===void 0&&(e=0),(u[e]<<24|u[e+1]<<16|u[e+2]<<8|u[e+3])>>>0}Q0.readUint32BE=LC;function $C(u,e){return e===void 0&&(e=0),u[e+3]<<24|u[e+2]<<16|u[e+1]<<8|u[e]}Q0.readInt32LE=$C;function UC(u,e){return e===void 0&&(e=0),(u[e+3]<<24|u[e+2]<<16|u[e+1]<<8|u[e])>>>0}Q0.readUint32LE=UC;function u9(u,e,t){return e===void 0&&(e=new Uint8Array(4)),t===void 0&&(t=0),e[t+0]=u>>>24,e[t+1]=u>>>16,e[t+2]=u>>>8,e[t+3]=u>>>0,e}Q0.writeUint32BE=u9;Q0.writeInt32BE=u9;function e9(u,e,t){return e===void 0&&(e=new Uint8Array(4)),t===void 0&&(t=0),e[t+0]=u>>>0,e[t+1]=u>>>8,e[t+2]=u>>>16,e[t+3]=u>>>24,e}Q0.writeUint32LE=e9;Q0.writeInt32LE=e9;function Nv0(u,e){e===void 0&&(e=0);var t=zC(u,e),n=zC(u,e+4);return t*4294967296+n-(n>>31)*4294967296}Q0.readInt64BE=Nv0;function Mv0(u,e){e===void 0&&(e=0);var t=LC(u,e),n=LC(u,e+4);return t*4294967296+n}Q0.readUint64BE=Mv0;function jv0(u,e){e===void 0&&(e=0);var t=$C(u,e),n=$C(u,e+4);return n*4294967296+t-(t>>31)*4294967296}Q0.readInt64LE=jv0;function zv0(u,e){e===void 0&&(e=0);var t=UC(u,e),n=UC(u,e+4);return n*4294967296+t}Q0.readUint64LE=zv0;function fj(u,e,t){return e===void 0&&(e=new Uint8Array(8)),t===void 0&&(t=0),u9(u/4294967296>>>0,e,t),u9(u>>>0,e,t+4),e}Q0.writeUint64BE=fj;Q0.writeInt64BE=fj;function lj(u,e,t){return e===void 0&&(e=new Uint8Array(8)),t===void 0&&(t=0),e9(u>>>0,e,t),e9(u/4294967296>>>0,e,t+4),e}Q0.writeUint64LE=lj;Q0.writeInt64LE=lj;function Lv0(u,e,t){if(t===void 0&&(t=0),u%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(u/8>e.length-t)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,r=1,i=u/8+t-1;i>=t;i--)n+=e[i]*r,r*=256;return n}Q0.readUintBE=Lv0;function $v0(u,e,t){if(t===void 0&&(t=0),u%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(u/8>e.length-t)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,r=1,i=t;i=n;i--)t[i]=e/r&255,r*=256;return t}Q0.writeUintBE=Uv0;function Wv0(u,e,t,n){if(t===void 0&&(t=new Uint8Array(u/8)),n===void 0&&(n=0),u%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!aj.isSafeInteger(e))throw new Error("writeUintLE value must be an integer");for(var r=1,i=n;i>>16|I<<16,$=$+I|0,C^=$,C=C>>>20|C<<12,y=y+F|0,O^=y,O=O>>>16|O<<16,X=X+O|0,F^=X,F=F>>>20|F<<12,B=B+S|0,W^=B,W=W>>>16|W<<16,Q=Q+W|0,S^=Q,S=S>>>20|S<<12,v=v+x|0,L^=v,L=L>>>16|L<<16,Z=Z+L|0,x^=Z,x=x>>>20|x<<12,B=B+S|0,W^=B,W=W>>>24|W<<8,Q=Q+W|0,S^=Q,S=S>>>25|S<<7,v=v+x|0,L^=v,L=L>>>24|L<<8,Z=Z+L|0,x^=Z,x=x>>>25|x<<7,y=y+F|0,O^=y,O=O>>>24|O<<8,X=X+O|0,F^=X,F=F>>>25|F<<7,A=A+C|0,I^=A,I=I>>>24|I<<8,$=$+I|0,C^=$,C=C>>>25|C<<7,A=A+F|0,L^=A,L=L>>>16|L<<16,Q=Q+L|0,F^=Q,F=F>>>20|F<<12,y=y+S|0,I^=y,I=I>>>16|I<<16,Z=Z+I|0,S^=Z,S=S>>>20|S<<12,B=B+x|0,O^=B,O=O>>>16|O<<16,$=$+O|0,x^=$,x=x>>>20|x<<12,v=v+C|0,W^=v,W=W>>>16|W<<16,X=X+W|0,C^=X,C=C>>>20|C<<12,B=B+x|0,O^=B,O=O>>>24|O<<8,$=$+O|0,x^=$,x=x>>>25|x<<7,v=v+C|0,W^=v,W=W>>>24|W<<8,X=X+W|0,C^=X,C=C>>>25|C<<7,y=y+S|0,I^=y,I=I>>>24|I<<8,Z=Z+I|0,S^=Z,S=S>>>25|S<<7,A=A+F|0,L^=A,L=L>>>24|L<<8,Q=Q+L|0,F^=Q,F=F>>>25|F<<7;Se.writeUint32LE(A+n|0,u,0),Se.writeUint32LE(y+r|0,u,4),Se.writeUint32LE(B+i|0,u,8),Se.writeUint32LE(v+a|0,u,12),Se.writeUint32LE(C+o|0,u,16),Se.writeUint32LE(F+s|0,u,20),Se.writeUint32LE(S+f|0,u,24),Se.writeUint32LE(x+l|0,u,28),Se.writeUint32LE($+c|0,u,32),Se.writeUint32LE(X+d|0,u,36),Se.writeUint32LE(Q+E|0,u,40),Se.writeUint32LE(Z+p|0,u,44),Se.writeUint32LE(I+h|0,u,48),Se.writeUint32LE(O+g|0,u,52),Se.writeUint32LE(W+b|0,u,56),Se.writeUint32LE(L+m|0,u,60)}function cj(u,e,t,n,r){if(r===void 0&&(r=0),u.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(n.length>>=8,e++;if(n>0)throw new Error("ChaCha: counter overflow")}var dj={},Ia={};Object.defineProperty(Ia,"__esModule",{value:!0});function nB0(u,e,t){return~(u-1)&e|u-1&t}Ia.select=nB0;function rB0(u,e){return(u|0)-(e|0)-1>>>31&1}Ia.lessOrEqual=rB0;function Ej(u,e){if(u.length!==e.length)return 0;for(var t=0,n=0;n>>8}Ia.compare=Ej;function iB0(u,e){return u.length===0||e.length===0?!1:Ej(u,e)!==0}Ia.equal=iB0;(function(u){Object.defineProperty(u,"__esModule",{value:!0});var e=Ia,t=Kn;u.DIGEST_LENGTH=16;var n=function(){function a(o){this.digestLength=u.DIGEST_LENGTH,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,this._finished=!1;var s=o[0]|o[1]<<8;this._r[0]=s&8191;var f=o[2]|o[3]<<8;this._r[1]=(s>>>13|f<<3)&8191;var l=o[4]|o[5]<<8;this._r[2]=(f>>>10|l<<6)&7939;var c=o[6]|o[7]<<8;this._r[3]=(l>>>7|c<<9)&8191;var d=o[8]|o[9]<<8;this._r[4]=(c>>>4|d<<12)&255,this._r[5]=d>>>1&8190;var E=o[10]|o[11]<<8;this._r[6]=(d>>>14|E<<2)&8191;var p=o[12]|o[13]<<8;this._r[7]=(E>>>11|p<<5)&8065;var h=o[14]|o[15]<<8;this._r[8]=(p>>>8|h<<8)&8191,this._r[9]=h>>>5&127,this._pad[0]=o[16]|o[17]<<8,this._pad[1]=o[18]|o[19]<<8,this._pad[2]=o[20]|o[21]<<8,this._pad[3]=o[22]|o[23]<<8,this._pad[4]=o[24]|o[25]<<8,this._pad[5]=o[26]|o[27]<<8,this._pad[6]=o[28]|o[29]<<8,this._pad[7]=o[30]|o[31]<<8}return a.prototype._blocks=function(o,s,f){for(var l=this._fin?0:2048,c=this._h[0],d=this._h[1],E=this._h[2],p=this._h[3],h=this._h[4],g=this._h[5],b=this._h[6],m=this._h[7],A=this._h[8],y=this._h[9],B=this._r[0],v=this._r[1],C=this._r[2],F=this._r[3],S=this._r[4],x=this._r[5],$=this._r[6],X=this._r[7],Q=this._r[8],Z=this._r[9];f>=16;){var I=o[s+0]|o[s+1]<<8;c+=I&8191;var O=o[s+2]|o[s+3]<<8;d+=(I>>>13|O<<3)&8191;var W=o[s+4]|o[s+5]<<8;E+=(O>>>10|W<<6)&8191;var L=o[s+6]|o[s+7]<<8;p+=(W>>>7|L<<9)&8191;var q=o[s+8]|o[s+9]<<8;h+=(L>>>4|q<<12)&8191,g+=q>>>1&8191;var U=o[s+10]|o[s+11]<<8;b+=(q>>>14|U<<2)&8191;var i0=o[s+12]|o[s+13]<<8;m+=(U>>>11|i0<<5)&8191;var s0=o[s+14]|o[s+15]<<8;A+=(i0>>>8|s0<<8)&8191,y+=s0>>>5|l;var o0=0,K=o0;K+=c*B,K+=d*(5*Z),K+=E*(5*Q),K+=p*(5*X),K+=h*(5*$),o0=K>>>13,K&=8191,K+=g*(5*x),K+=b*(5*S),K+=m*(5*F),K+=A*(5*C),K+=y*(5*v),o0+=K>>>13,K&=8191;var b0=o0;b0+=c*v,b0+=d*B,b0+=E*(5*Z),b0+=p*(5*Q),b0+=h*(5*X),o0=b0>>>13,b0&=8191,b0+=g*(5*$),b0+=b*(5*x),b0+=m*(5*S),b0+=A*(5*F),b0+=y*(5*C),o0+=b0>>>13,b0&=8191;var A0=o0;A0+=c*C,A0+=d*v,A0+=E*B,A0+=p*(5*Z),A0+=h*(5*Q),o0=A0>>>13,A0&=8191,A0+=g*(5*X),A0+=b*(5*$),A0+=m*(5*x),A0+=A*(5*S),A0+=y*(5*F),o0+=A0>>>13,A0&=8191;var _0=o0;_0+=c*F,_0+=d*C,_0+=E*v,_0+=p*B,_0+=h*(5*Z),o0=_0>>>13,_0&=8191,_0+=g*(5*Q),_0+=b*(5*X),_0+=m*(5*$),_0+=A*(5*x),_0+=y*(5*S),o0+=_0>>>13,_0&=8191;var w0=o0;w0+=c*S,w0+=d*F,w0+=E*C,w0+=p*v,w0+=h*B,o0=w0>>>13,w0&=8191,w0+=g*(5*Z),w0+=b*(5*Q),w0+=m*(5*X),w0+=A*(5*$),w0+=y*(5*x),o0+=w0>>>13,w0&=8191;var B0=o0;B0+=c*x,B0+=d*S,B0+=E*F,B0+=p*C,B0+=h*v,o0=B0>>>13,B0&=8191,B0+=g*B,B0+=b*(5*Z),B0+=m*(5*Q),B0+=A*(5*X),B0+=y*(5*$),o0+=B0>>>13,B0&=8191;var _=o0;_+=c*$,_+=d*x,_+=E*S,_+=p*F,_+=h*C,o0=_>>>13,_&=8191,_+=g*v,_+=b*B,_+=m*(5*Z),_+=A*(5*Q),_+=y*(5*X),o0+=_>>>13,_&=8191;var T=o0;T+=c*X,T+=d*$,T+=E*x,T+=p*S,T+=h*F,o0=T>>>13,T&=8191,T+=g*C,T+=b*v,T+=m*B,T+=A*(5*Z),T+=y*(5*Q),o0+=T>>>13,T&=8191;var P=o0;P+=c*Q,P+=d*X,P+=E*$,P+=p*x,P+=h*S,o0=P>>>13,P&=8191,P+=g*F,P+=b*C,P+=m*v,P+=A*B,P+=y*(5*Z),o0+=P>>>13,P&=8191;var j=o0;j+=c*Z,j+=d*Q,j+=E*X,j+=p*$,j+=h*x,o0=j>>>13,j&=8191,j+=g*S,j+=b*F,j+=m*C,j+=A*v,j+=y*B,o0+=j>>>13,j&=8191,o0=(o0<<2)+o0|0,o0=o0+K|0,K=o0&8191,o0=o0>>>13,b0+=o0,c=K,d=b0,E=A0,p=_0,h=w0,g=B0,b=_,m=T,A=P,y=j,s+=16,f-=16}this._h[0]=c,this._h[1]=d,this._h[2]=E,this._h[3]=p,this._h[4]=h,this._h[5]=g,this._h[6]=b,this._h[7]=m,this._h[8]=A,this._h[9]=y},a.prototype.finish=function(o,s){s===void 0&&(s=0);var f=new Uint16Array(10),l,c,d,E;if(this._leftover){for(E=this._leftover,this._buffer[E++]=1;E<16;E++)this._buffer[E]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(l=this._h[1]>>>13,this._h[1]&=8191,E=2;E<10;E++)this._h[E]+=l,l=this._h[E]>>>13,this._h[E]&=8191;for(this._h[0]+=l*5,l=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=l,l=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=l,f[0]=this._h[0]+5,l=f[0]>>>13,f[0]&=8191,E=1;E<10;E++)f[E]=this._h[E]+l,l=f[E]>>>13,f[E]&=8191;for(f[9]-=8192,c=(l^1)-1,E=0;E<10;E++)f[E]&=c;for(c=~c,E=0;E<10;E++)this._h[E]=this._h[E]&c|f[E];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,d=this._h[0]+this._pad[0],this._h[0]=d&65535,E=1;E<8;E++)d=(this._h[E]+this._pad[E]|0)+(d>>>16)|0,this._h[E]=d&65535;return o[s+0]=this._h[0]>>>0,o[s+1]=this._h[0]>>>8,o[s+2]=this._h[1]>>>0,o[s+3]=this._h[1]>>>8,o[s+4]=this._h[2]>>>0,o[s+5]=this._h[2]>>>8,o[s+6]=this._h[3]>>>0,o[s+7]=this._h[3]>>>8,o[s+8]=this._h[4]>>>0,o[s+9]=this._h[4]>>>8,o[s+10]=this._h[5]>>>0,o[s+11]=this._h[5]>>>8,o[s+12]=this._h[6]>>>0,o[s+13]=this._h[6]>>>8,o[s+14]=this._h[7]>>>0,o[s+15]=this._h[7]>>>8,this._finished=!0,this},a.prototype.update=function(o){var s=0,f=o.length,l;if(this._leftover){l=16-this._leftover,l>f&&(l=f);for(var c=0;c=16&&(l=f-f%16,this._blocks(o,s,l),s+=l,f-=l),f){for(var c=0;c16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var E=new Uint8Array(16);E.set(f,E.length-f.length);var p=new Uint8Array(32);e.stream(this._key,E,p,4);var h=l.length+this.tagLength,g;if(d){if(d.length!==h)throw new Error("ChaCha20Poly1305: incorrect destination length");g=d}else g=new Uint8Array(h);return e.streamXOR(this._key,E,l,g,4),this._authenticate(g.subarray(g.length-this.tagLength,g.length),p,g.subarray(0,g.length-this.tagLength),c),n.wipe(E),g},s.prototype.open=function(f,l,c,d){if(f.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(l.length0&&E.update(a.subarray(d.length%16))),E.update(c),c.length%16>0&&E.update(a.subarray(c.length%16));var p=new Uint8Array(8);d&&r.writeUint64LE(d.length,p),E.update(p),r.writeUint64LE(c.length,p),E.update(p);for(var h=E.digest(),g=0;gthis.blockSize?this._inner.update(t).finish(n).clean():n.set(t);for(var r=0;r1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},u.prototype.expand=function(e){for(var t=new Uint8Array(e),n=0;n256)throw new Error("randomString charset is too long");let d="";const E=l.length,p=256-256%E;for(;f>0;){const h=r(Math.ceil(f*256/p),c);for(let g=0;g0;g++){const b=h[g];b0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=s[l++],f--;this._bufferLength===this.blockSize&&(i(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(f>=this.blockSize&&(l=i(this._temp,this._state,s,l,f),f%=this.blockSize);f>0;)this._buffer[this._bufferLength++]=s[l++],f--;return this},o.prototype.finish=function(s){if(!this._finished){var f=this._bytesHashed,l=this._bufferLength,c=f/536870912|0,d=f<<3,E=f%64<56?64:128;this._buffer[l]=128;for(var p=l+1;p0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},o.prototype.restoreState=function(s){return this._state.set(s.state),this._bufferLength=s.bufferLength,s.buffer&&this._buffer.set(s.buffer),this._bytesHashed=s.bytesHashed,this._finished=!1,this},o.prototype.cleanSavedState=function(s){t.wipe(s.state),s.buffer&&t.wipe(s.buffer),s.bufferLength=0,s.bytesHashed=0},o}();u.SHA256=n;var r=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function i(o,s,f,l,c){for(;c>=64;){for(var d=s[0],E=s[1],p=s[2],h=s[3],g=s[4],b=s[5],m=s[6],A=s[7],y=0;y<16;y++){var B=l+y*4;o[y]=e.readUint32BE(f,B)}for(var y=16;y<64;y++){var v=o[y-2],C=(v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10;v=o[y-15];var F=(v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3;o[y]=(C+o[y-7]|0)+(F+o[y-16]|0)}for(var y=0;y<64;y++){var C=(((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&b^~g&m)|0)+(A+(r[y]+o[y]|0)|0)|0,F=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&E^d&p^E&p)|0;A=m,m=b,b=g,g=h+C|0,h=p,p=E,E=d,d=C+F|0}s[0]+=d,s[1]+=E,s[2]+=p,s[3]+=h,s[4]+=g,s[5]+=b,s[6]+=m,s[7]+=A,l+=64,c-=64}return l}function a(o){var s=new n;s.update(o);var f=s.digest();return s.clean(),f}u.hash=a})(GE);var iy={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.sharedKey=u.generateKeyPair=u.generateKeyPairFromSeed=u.scalarMultBase=u.scalarMult=u.SHARED_KEY_LENGTH=u.SECRET_KEY_LENGTH=u.PUBLIC_KEY_LENGTH=void 0;const e=UE,t=Kn;u.PUBLIC_KEY_LENGTH=32,u.SECRET_KEY_LENGTH=32,u.SHARED_KEY_LENGTH=32;function n(y){const B=new Float64Array(16);if(y)for(let v=0;v>16&1),v[x-1]&=65535;v[15]=C[15]-32767-(v[14]>>16&1);const S=v[15]>>16&1;v[14]&=65535,o(C,v,1-S)}for(let F=0;F<16;F++)y[2*F]=C[F]&255,y[2*F+1]=C[F]>>8}function f(y,B){for(let v=0;v<16;v++)y[v]=B[2*v]+(B[2*v+1]<<8);y[15]&=32767}function l(y,B,v){for(let C=0;C<16;C++)y[C]=B[C]+v[C]}function c(y,B,v){for(let C=0;C<16;C++)y[C]=B[C]-v[C]}function d(y,B,v){let C,F,S=0,x=0,$=0,X=0,Q=0,Z=0,I=0,O=0,W=0,L=0,q=0,U=0,i0=0,s0=0,o0=0,K=0,b0=0,A0=0,_0=0,w0=0,B0=0,_=0,T=0,P=0,j=0,z=0,G=0,t0=0,H=0,J=0,u0=0,Y=v[0],n0=v[1],p0=v[2],C0=v[3],y0=v[4],g0=v[5],F0=v[6],c0=v[7],d0=v[8],m0=v[9],G0=v[10],N0=v[11],x0=v[12],V0=v[13],D0=v[14],R0=v[15];C=B[0],S+=C*Y,x+=C*n0,$+=C*p0,X+=C*C0,Q+=C*y0,Z+=C*g0,I+=C*F0,O+=C*c0,W+=C*d0,L+=C*m0,q+=C*G0,U+=C*N0,i0+=C*x0,s0+=C*V0,o0+=C*D0,K+=C*R0,C=B[1],x+=C*Y,$+=C*n0,X+=C*p0,Q+=C*C0,Z+=C*y0,I+=C*g0,O+=C*F0,W+=C*c0,L+=C*d0,q+=C*m0,U+=C*G0,i0+=C*N0,s0+=C*x0,o0+=C*V0,K+=C*D0,b0+=C*R0,C=B[2],$+=C*Y,X+=C*n0,Q+=C*p0,Z+=C*C0,I+=C*y0,O+=C*g0,W+=C*F0,L+=C*c0,q+=C*d0,U+=C*m0,i0+=C*G0,s0+=C*N0,o0+=C*x0,K+=C*V0,b0+=C*D0,A0+=C*R0,C=B[3],X+=C*Y,Q+=C*n0,Z+=C*p0,I+=C*C0,O+=C*y0,W+=C*g0,L+=C*F0,q+=C*c0,U+=C*d0,i0+=C*m0,s0+=C*G0,o0+=C*N0,K+=C*x0,b0+=C*V0,A0+=C*D0,_0+=C*R0,C=B[4],Q+=C*Y,Z+=C*n0,I+=C*p0,O+=C*C0,W+=C*y0,L+=C*g0,q+=C*F0,U+=C*c0,i0+=C*d0,s0+=C*m0,o0+=C*G0,K+=C*N0,b0+=C*x0,A0+=C*V0,_0+=C*D0,w0+=C*R0,C=B[5],Z+=C*Y,I+=C*n0,O+=C*p0,W+=C*C0,L+=C*y0,q+=C*g0,U+=C*F0,i0+=C*c0,s0+=C*d0,o0+=C*m0,K+=C*G0,b0+=C*N0,A0+=C*x0,_0+=C*V0,w0+=C*D0,B0+=C*R0,C=B[6],I+=C*Y,O+=C*n0,W+=C*p0,L+=C*C0,q+=C*y0,U+=C*g0,i0+=C*F0,s0+=C*c0,o0+=C*d0,K+=C*m0,b0+=C*G0,A0+=C*N0,_0+=C*x0,w0+=C*V0,B0+=C*D0,_+=C*R0,C=B[7],O+=C*Y,W+=C*n0,L+=C*p0,q+=C*C0,U+=C*y0,i0+=C*g0,s0+=C*F0,o0+=C*c0,K+=C*d0,b0+=C*m0,A0+=C*G0,_0+=C*N0,w0+=C*x0,B0+=C*V0,_+=C*D0,T+=C*R0,C=B[8],W+=C*Y,L+=C*n0,q+=C*p0,U+=C*C0,i0+=C*y0,s0+=C*g0,o0+=C*F0,K+=C*c0,b0+=C*d0,A0+=C*m0,_0+=C*G0,w0+=C*N0,B0+=C*x0,_+=C*V0,T+=C*D0,P+=C*R0,C=B[9],L+=C*Y,q+=C*n0,U+=C*p0,i0+=C*C0,s0+=C*y0,o0+=C*g0,K+=C*F0,b0+=C*c0,A0+=C*d0,_0+=C*m0,w0+=C*G0,B0+=C*N0,_+=C*x0,T+=C*V0,P+=C*D0,j+=C*R0,C=B[10],q+=C*Y,U+=C*n0,i0+=C*p0,s0+=C*C0,o0+=C*y0,K+=C*g0,b0+=C*F0,A0+=C*c0,_0+=C*d0,w0+=C*m0,B0+=C*G0,_+=C*N0,T+=C*x0,P+=C*V0,j+=C*D0,z+=C*R0,C=B[11],U+=C*Y,i0+=C*n0,s0+=C*p0,o0+=C*C0,K+=C*y0,b0+=C*g0,A0+=C*F0,_0+=C*c0,w0+=C*d0,B0+=C*m0,_+=C*G0,T+=C*N0,P+=C*x0,j+=C*V0,z+=C*D0,G+=C*R0,C=B[12],i0+=C*Y,s0+=C*n0,o0+=C*p0,K+=C*C0,b0+=C*y0,A0+=C*g0,_0+=C*F0,w0+=C*c0,B0+=C*d0,_+=C*m0,T+=C*G0,P+=C*N0,j+=C*x0,z+=C*V0,G+=C*D0,t0+=C*R0,C=B[13],s0+=C*Y,o0+=C*n0,K+=C*p0,b0+=C*C0,A0+=C*y0,_0+=C*g0,w0+=C*F0,B0+=C*c0,_+=C*d0,T+=C*m0,P+=C*G0,j+=C*N0,z+=C*x0,G+=C*V0,t0+=C*D0,H+=C*R0,C=B[14],o0+=C*Y,K+=C*n0,b0+=C*p0,A0+=C*C0,_0+=C*y0,w0+=C*g0,B0+=C*F0,_+=C*c0,T+=C*d0,P+=C*m0,j+=C*G0,z+=C*N0,G+=C*x0,t0+=C*V0,H+=C*D0,J+=C*R0,C=B[15],K+=C*Y,b0+=C*n0,A0+=C*p0,_0+=C*C0,w0+=C*y0,B0+=C*g0,_+=C*F0,T+=C*c0,P+=C*d0,j+=C*m0,z+=C*G0,G+=C*N0,t0+=C*x0,H+=C*V0,J+=C*D0,u0+=C*R0,S+=38*b0,x+=38*A0,$+=38*_0,X+=38*w0,Q+=38*B0,Z+=38*_,I+=38*T,O+=38*P,W+=38*j,L+=38*z,q+=38*G,U+=38*t0,i0+=38*H,s0+=38*J,o0+=38*u0,F=1,C=S+F+65535,F=Math.floor(C/65536),S=C-F*65536,C=x+F+65535,F=Math.floor(C/65536),x=C-F*65536,C=$+F+65535,F=Math.floor(C/65536),$=C-F*65536,C=X+F+65535,F=Math.floor(C/65536),X=C-F*65536,C=Q+F+65535,F=Math.floor(C/65536),Q=C-F*65536,C=Z+F+65535,F=Math.floor(C/65536),Z=C-F*65536,C=I+F+65535,F=Math.floor(C/65536),I=C-F*65536,C=O+F+65535,F=Math.floor(C/65536),O=C-F*65536,C=W+F+65535,F=Math.floor(C/65536),W=C-F*65536,C=L+F+65535,F=Math.floor(C/65536),L=C-F*65536,C=q+F+65535,F=Math.floor(C/65536),q=C-F*65536,C=U+F+65535,F=Math.floor(C/65536),U=C-F*65536,C=i0+F+65535,F=Math.floor(C/65536),i0=C-F*65536,C=s0+F+65535,F=Math.floor(C/65536),s0=C-F*65536,C=o0+F+65535,F=Math.floor(C/65536),o0=C-F*65536,C=K+F+65535,F=Math.floor(C/65536),K=C-F*65536,S+=F-1+37*(F-1),F=1,C=S+F+65535,F=Math.floor(C/65536),S=C-F*65536,C=x+F+65535,F=Math.floor(C/65536),x=C-F*65536,C=$+F+65535,F=Math.floor(C/65536),$=C-F*65536,C=X+F+65535,F=Math.floor(C/65536),X=C-F*65536,C=Q+F+65535,F=Math.floor(C/65536),Q=C-F*65536,C=Z+F+65535,F=Math.floor(C/65536),Z=C-F*65536,C=I+F+65535,F=Math.floor(C/65536),I=C-F*65536,C=O+F+65535,F=Math.floor(C/65536),O=C-F*65536,C=W+F+65535,F=Math.floor(C/65536),W=C-F*65536,C=L+F+65535,F=Math.floor(C/65536),L=C-F*65536,C=q+F+65535,F=Math.floor(C/65536),q=C-F*65536,C=U+F+65535,F=Math.floor(C/65536),U=C-F*65536,C=i0+F+65535,F=Math.floor(C/65536),i0=C-F*65536,C=s0+F+65535,F=Math.floor(C/65536),s0=C-F*65536,C=o0+F+65535,F=Math.floor(C/65536),o0=C-F*65536,C=K+F+65535,F=Math.floor(C/65536),K=C-F*65536,S+=F-1+37*(F-1),y[0]=S,y[1]=x,y[2]=$,y[3]=X,y[4]=Q,y[5]=Z,y[6]=I,y[7]=O,y[8]=W,y[9]=L,y[10]=q,y[11]=U,y[12]=i0,y[13]=s0,y[14]=o0,y[15]=K}function E(y,B){d(y,B,B)}function p(y,B){const v=n();for(let C=0;C<16;C++)v[C]=B[C];for(let C=253;C>=0;C--)E(v,v),C!==2&&C!==4&&d(v,v,B);for(let C=0;C<16;C++)y[C]=v[C]}function h(y,B){const v=new Uint8Array(32),C=new Float64Array(80),F=n(),S=n(),x=n(),$=n(),X=n(),Q=n();for(let W=0;W<31;W++)v[W]=y[W];v[31]=y[31]&127|64,v[0]&=248,f(C,B);for(let W=0;W<16;W++)S[W]=C[W];F[0]=$[0]=1;for(let W=254;W>=0;--W){const L=v[W>>>3]>>>(W&7)&1;o(F,S,L),o(x,$,L),l(X,F,x),c(F,F,x),l(x,S,$),c(S,S,$),E($,X),E(Q,F),d(F,x,F),d(x,S,X),l(X,F,x),c(F,F,x),E(S,F),c(x,$,Q),d(F,x,i),l(F,F,$),d(x,x,F),d(F,$,Q),d($,S,C),E(S,X),o(F,S,L),o(x,$,L)}for(let W=0;W<16;W++)C[W+16]=F[W],C[W+32]=x[W],C[W+48]=S[W],C[W+64]=$[W];const Z=C.subarray(32),I=C.subarray(16);p(Z,Z),d(I,I,Z);const O=new Uint8Array(32);return s(O,I),O}u.scalarMult=h;function g(y){return h(y,r)}u.scalarMultBase=g;function b(y){if(y.length!==u.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${u.SECRET_KEY_LENGTH} bytes`);const B=new Uint8Array(y);return{publicKey:g(B),secretKey:B}}u.generateKeyPairFromSeed=b;function m(y){const B=(0,e.randomBytes)(32,y),v=b(B);return(0,t.wipe)(B),v}u.generateKeyPair=m;function A(y,B,v=!1){if(y.length!==u.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(B.length!==u.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const C=h(y,B);if(v){let F=0;for(let S=0;Sr+i.length,0));const t=Cj(e);let n=0;for(const r of u)t.set(r,n),n+=r.length;return ay(t)}function vB0(u,e){if(u.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,y=new Uint8Array(A);b!==m;){for(var B=p[b],v=0,C=A-1;(B!==0||v>>0,y[C]=B%o>>>0,B=B/o>>>0;if(B!==0)throw new Error("Non-zero carry");g=v,b++}for(var F=A-g;F!==A&&y[F]===0;)F++;for(var S=s.repeat(h);F>>0,A=new Uint8Array(m);p[h];){var y=t[p.charCodeAt(h)];if(y===255)return;for(var B=0,v=m-1;(y!==0||B>>0,A[v]=y%256>>>0,y=y/256>>>0;if(y!==0)throw new Error("Non-zero carry");b=B,h++}if(p[h]!==" "){for(var C=m-b;C!==m&&A[C]===0;)C++;for(var F=new Uint8Array(g+(m-C)),S=g;C!==m;)F[S++]=A[C++];return F}}}function E(p){var h=d(p);if(h)return h;throw new Error(`Non-${e} character`)}return{encode:c,decodeUnsafe:d,decode:E}}var BB0=vB0,FB0=BB0;const DB0=u=>{if(u instanceof Uint8Array&&u.constructor.name==="Uint8Array")return u;if(u instanceof ArrayBuffer)return new Uint8Array(u);if(ArrayBuffer.isView(u))return new Uint8Array(u.buffer,u.byteOffset,u.byteLength);throw new Error("Unknown type, must be binary type")},wB0=u=>new TextEncoder().encode(u),xB0=u=>new TextDecoder().decode(u);class kB0{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class _B0{constructor(e,t,n){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return mj(this,e)}}class SB0{constructor(e){this.decoders=e}or(e){return mj(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const mj=(u,e)=>new SB0({...u.decoders||{[u.prefix]:u},...e.decoders||{[e.prefix]:e}});class TB0{constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new kB0(e,t,n),this.decoder=new _B0(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const VE=({name:u,prefix:e,encode:t,decode:n})=>new TB0(u,e,t,n),Kc=({prefix:u,name:e,alphabet:t})=>{const{encode:n,decode:r}=FB0(t,e);return VE({prefix:u,name:e,encode:n,decode:i=>DB0(r(i))})},PB0=(u,e,t,n)=>{const r={};for(let l=0;l=8&&(o-=8,a[f++]=255&s>>o)}if(o>=t||255&s<<8-o)throw new SyntaxError("Unexpected end of data");return a},IB0=(u,e,t)=>{const n=e[e.length-1]==="=",r=(1<t;)a-=t,i+=e[r&o>>a];if(a&&(i+=e[r&o<VE({prefix:e,name:u,encode(r){return IB0(r,n,t)},decode(r){return PB0(r,n,t,u)}}),OB0=VE({prefix:"\0",name:"identity",encode:u=>xB0(u),decode:u=>wB0(u)}),RB0=Object.freeze(Object.defineProperty({__proto__:null,identity:OB0},Symbol.toStringTag,{value:"Module"})),NB0=xe({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),MB0=Object.freeze(Object.defineProperty({__proto__:null,base2:NB0},Symbol.toStringTag,{value:"Module"})),jB0=xe({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),zB0=Object.freeze(Object.defineProperty({__proto__:null,base8:jB0},Symbol.toStringTag,{value:"Module"})),LB0=Kc({prefix:"9",name:"base10",alphabet:"0123456789"}),$B0=Object.freeze(Object.defineProperty({__proto__:null,base10:LB0},Symbol.toStringTag,{value:"Module"})),UB0=xe({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),WB0=xe({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),qB0=Object.freeze(Object.defineProperty({__proto__:null,base16:UB0,base16upper:WB0},Symbol.toStringTag,{value:"Module"})),HB0=xe({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),GB0=xe({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),VB0=xe({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),KB0=xe({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),QB0=xe({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),JB0=xe({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),ZB0=xe({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),YB0=xe({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),XB0=xe({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),uF0=Object.freeze(Object.defineProperty({__proto__:null,base32:HB0,base32hex:QB0,base32hexpad:ZB0,base32hexpadupper:YB0,base32hexupper:JB0,base32pad:VB0,base32padupper:KB0,base32upper:GB0,base32z:XB0},Symbol.toStringTag,{value:"Module"})),eF0=Kc({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),tF0=Kc({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),nF0=Object.freeze(Object.defineProperty({__proto__:null,base36:eF0,base36upper:tF0},Symbol.toStringTag,{value:"Module"})),rF0=Kc({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),iF0=Kc({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),aF0=Object.freeze(Object.defineProperty({__proto__:null,base58btc:rF0,base58flickr:iF0},Symbol.toStringTag,{value:"Module"})),oF0=xe({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),sF0=xe({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),fF0=xe({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),lF0=xe({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),cF0=Object.freeze(Object.defineProperty({__proto__:null,base64:oF0,base64pad:sF0,base64url:fF0,base64urlpad:lF0},Symbol.toStringTag,{value:"Module"})),bj=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),dF0=bj.reduce((u,e,t)=>(u[t]=e,u),[]),EF0=bj.reduce((u,e,t)=>(u[e.codePointAt(0)]=t,u),[]);function pF0(u){return u.reduce((e,t)=>(e+=dF0[t],e),"")}function hF0(u){const e=[];for(const t of u){const n=EF0[t.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(n)}return new Uint8Array(e)}const CF0=VE({prefix:"🚀",name:"base256emoji",encode:pF0,decode:hF0}),mF0=Object.freeze(Object.defineProperty({__proto__:null,base256emoji:CF0},Symbol.toStringTag,{value:"Module"}));new TextEncoder;new TextDecoder;const Jw={...RB0,...MB0,...zB0,...$B0,...qB0,...uF0,...nF0,...aF0,...cF0,...mF0};function gj(u,e,t,n){return{name:u,prefix:e,encoder:{name:u,prefix:e,encode:t},decoder:{decode:n}}}const Zw=gj("utf8","u",u=>"u"+new TextDecoder("utf8").decode(u),u=>new TextEncoder().encode(u.substring(1))),dh=gj("ascii","a",u=>{let e="a";for(let t=0;t{u=u.substring(1);const e=Cj(u.length);for(let t=0;t"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new vF0:typeof navigator<"u"?ex(navigator.userAgent):_F0()}function xF0(u){return u!==""&&DF0.reduce(function(e,t){var n=t[0],r=t[1];if(e)return e;var i=r.exec(u);return!!i&&[n,i]},!1)}function ex(u){var e=xF0(u);if(!e)return null;var t=e[0],n=e[1];if(t==="searchbot")return new yF0;var r=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);r?r.length=0;o--)(a=u[o])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}function OF0(u,e){return function(t,n){e(t,n,u)}}function RF0(u,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(u,e)}function NF0(u,e,t,n){function r(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function o(l){try{f(n.next(l))}catch(c){a(c)}}function s(l){try{f(n.throw(l))}catch(c){a(c)}}function f(l){l.done?i(l.value):r(l.value).then(o,s)}f((n=n.apply(u,e||[])).next())})}function MF0(u,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(f){return function(l){return s([f,l])}}function s(f){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,r&&(i=f[0]&2?r.return:f[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,f[1])).done)return i;switch(r=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,r=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]=u.length&&(u=void 0),{value:u&&u[n++],done:!u}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function yj(u,e){var t=typeof Symbol=="function"&&u[Symbol.iterator];if(!t)return u;var n=t.call(u),r,i=[],a;try{for(;(e===void 0||e-- >0)&&!(r=n.next()).done;)i.push(r.value)}catch(o){a={error:o}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i}function LF0(){for(var u=[],e=0;e1||o(d,E)})})}function o(d,E){try{s(n[d](E))}catch(p){c(i[0][3],p)}}function s(d){d.value instanceof I1?Promise.resolve(d.value.v).then(f,l):c(i[0][2],d)}function f(d){o("next",d)}function l(d){o("throw",d)}function c(d,E){d(E),i.shift(),i.length&&o(i[0][0],i[0][1])}}function WF0(u){var e,t;return e={},n("next"),n("throw",function(r){throw r}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(r,i){e[r]=u[r]?function(a){return(t=!t)?{value:I1(u[r](a)),done:r==="return"}:i?i(a):a}:i}}function qF0(u){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=u[Symbol.asyncIterator],t;return e?e.call(u):(u=typeof HC=="function"?HC(u):u[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=u[i]&&function(a){return new Promise(function(o,s){a=u[i](a),r(o,s,a.done,a.value)})}}function r(i,a,o,s){Promise.resolve(s).then(function(f){i({value:f,done:o})},a)}}function HF0(u,e){return Object.defineProperty?Object.defineProperty(u,"raw",{value:e}):u.raw=e,u}function GF0(u){if(u&&u.__esModule)return u;var e={};if(u!=null)for(var t in u)Object.hasOwnProperty.call(u,t)&&(e[t]=u[t]);return e.default=u,e}function VF0(u){return u&&u.__esModule?u:{default:u}}function KF0(u,e){if(!e.has(u))throw new TypeError("attempted to get private field on non-instance");return e.get(u)}function QF0(u,e,t){if(!e.has(u))throw new TypeError("attempted to set private field on non-instance");return e.set(u,t),t}const JF0=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return qC},__asyncDelegator:WF0,__asyncGenerator:UF0,__asyncValues:qF0,__await:I1,__awaiter:NF0,__classPrivateFieldGet:KF0,__classPrivateFieldSet:QF0,__createBinding:jF0,__decorate:IF0,__exportStar:zF0,__extends:TF0,__generator:MF0,__importDefault:VF0,__importStar:GF0,__makeTemplateObject:HF0,__metadata:RF0,__param:OF0,__read:yj,__rest:PF0,__spread:LF0,__spreadArrays:$F0,__values:HC},Symbol.toStringTag,{value:"Module"})),VE=T9(JF0);var dh={},ll={},ex;function ZF0(){if(ex)return ll;ex=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.delay=void 0;function u(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}return ll.delay=u,ll}var Ia={},Eh={},Oa={},tx;function YF0(){return tx||(tx=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.ONE_THOUSAND=Oa.ONE_HUNDRED=void 0,Oa.ONE_HUNDRED=100,Oa.ONE_THOUSAND=1e3),Oa}var ph={},nx;function XF0(){return nx||(nx=1,function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.ONE_YEAR=u.FOUR_WEEKS=u.THREE_WEEKS=u.TWO_WEEKS=u.ONE_WEEK=u.THIRTY_DAYS=u.SEVEN_DAYS=u.FIVE_DAYS=u.THREE_DAYS=u.ONE_DAY=u.TWENTY_FOUR_HOURS=u.TWELVE_HOURS=u.SIX_HOURS=u.THREE_HOURS=u.ONE_HOUR=u.SIXTY_MINUTES=u.THIRTY_MINUTES=u.TEN_MINUTES=u.FIVE_MINUTES=u.ONE_MINUTE=u.SIXTY_SECONDS=u.THIRTY_SECONDS=u.TEN_SECONDS=u.FIVE_SECONDS=u.ONE_SECOND=void 0,u.ONE_SECOND=1,u.FIVE_SECONDS=5,u.TEN_SECONDS=10,u.THIRTY_SECONDS=30,u.SIXTY_SECONDS=60,u.ONE_MINUTE=u.SIXTY_SECONDS,u.FIVE_MINUTES=u.ONE_MINUTE*5,u.TEN_MINUTES=u.ONE_MINUTE*10,u.THIRTY_MINUTES=u.ONE_MINUTE*30,u.SIXTY_MINUTES=u.ONE_MINUTE*60,u.ONE_HOUR=u.SIXTY_MINUTES,u.THREE_HOURS=u.ONE_HOUR*3,u.SIX_HOURS=u.ONE_HOUR*6,u.TWELVE_HOURS=u.ONE_HOUR*12,u.TWENTY_FOUR_HOURS=u.ONE_HOUR*24,u.ONE_DAY=u.TWENTY_FOUR_HOURS,u.THREE_DAYS=u.ONE_DAY*3,u.FIVE_DAYS=u.ONE_DAY*5,u.SEVEN_DAYS=u.ONE_DAY*7,u.THIRTY_DAYS=u.ONE_DAY*30,u.ONE_WEEK=u.SEVEN_DAYS,u.TWO_WEEKS=u.ONE_WEEK*2,u.THREE_WEEKS=u.ONE_WEEK*3,u.FOUR_WEEKS=u.ONE_WEEK*4,u.ONE_YEAR=u.ONE_DAY*365}(ph)),ph}var rx;function vj(){return rx||(rx=1,function(u){Object.defineProperty(u,"__esModule",{value:!0});const e=VE;e.__exportStar(YF0(),u),e.__exportStar(XF0(),u)}(Eh)),Eh}var ix;function uD0(){if(ix)return Ia;ix=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.fromMiliseconds=Ia.toMiliseconds=void 0;const u=vj();function e(n){return n*u.ONE_THOUSAND}Ia.toMiliseconds=e;function t(n){return Math.floor(n/u.ONE_THOUSAND)}return Ia.fromMiliseconds=t,Ia}var ax;function eD0(){return ax||(ax=1,function(u){Object.defineProperty(u,"__esModule",{value:!0});const e=VE;e.__exportStar(ZF0(),u),e.__exportStar(uD0(),u)}(dh)),dh}var Is={},ox;function tD0(){if(ox)return Is;ox=1,Object.defineProperty(Is,"__esModule",{value:!0}),Is.Watch=void 0;class u{constructor(){this.timestamps=new Map}start(t){if(this.timestamps.has(t))throw new Error(`Watch already started for label: ${t}`);this.timestamps.set(t,{started:Date.now()})}stop(t){const n=this.get(t);if(typeof n.elapsed<"u")throw new Error(`Watch already stopped for label: ${t}`);const r=Date.now()-n.started;this.timestamps.set(t,{started:n.started,elapsed:r})}get(t){const n=this.timestamps.get(t);if(typeof n>"u")throw new Error(`No timestamp found for label: ${t}`);return n}elapsed(t){const n=this.get(t);return n.elapsed||Date.now()-n.started}}return Is.Watch=u,Is.default=u,Is}var hh={},cl={},sx;function nD0(){if(sx)return cl;sx=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.IWatch=void 0;class u{}return cl.IWatch=u,cl}var fx;function rD0(){return fx||(fx=1,function(u){Object.defineProperty(u,"__esModule",{value:!0}),VE.__exportStar(nD0(),u)}(hh)),hh}(function(u){Object.defineProperty(u,"__esModule",{value:!0});const e=VE;e.__exportStar(eD0(),u),e.__exportStar(tD0(),u),e.__exportStar(rD0(),u),e.__exportStar(vj(),u)})(To);var vu={};Object.defineProperty(vu,"__esModule",{value:!0});var iD0=vu.getLocalStorage=vD0=vu.getLocalStorageOrThrow=AD0=vu.getCrypto=bD0=vu.getCryptoOrThrow=Fj=vu.getLocation=hD0=vu.getLocationOrThrow=ay=vu.getNavigator=dD0=vu.getNavigatorOrThrow=Bj=vu.getDocument=fD0=vu.getDocumentOrThrow=oD0=vu.getFromWindowOrThrow=aD0=vu.getFromWindow=void 0;function bs(u){let e;return typeof window<"u"&&typeof window[u]<"u"&&(e=window[u]),e}var aD0=vu.getFromWindow=bs;function $3(u){const e=bs(u);if(!e)throw new Error(`${u} is not defined in Window`);return e}var oD0=vu.getFromWindowOrThrow=$3;function sD0(){return $3("document")}var fD0=vu.getDocumentOrThrow=sD0;function lD0(){return bs("document")}var Bj=vu.getDocument=lD0;function cD0(){return $3("navigator")}var dD0=vu.getNavigatorOrThrow=cD0;function ED0(){return bs("navigator")}var ay=vu.getNavigator=ED0;function pD0(){return $3("location")}var hD0=vu.getLocationOrThrow=pD0;function CD0(){return bs("location")}var Fj=vu.getLocation=CD0;function mD0(){return $3("crypto")}var bD0=vu.getCryptoOrThrow=mD0;function gD0(){return bs("crypto")}var AD0=vu.getCrypto=gD0;function yD0(){return $3("localStorage")}var vD0=vu.getLocalStorageOrThrow=yD0;function BD0(){return bs("localStorage")}iD0=vu.getLocalStorage=BD0;var oy={};Object.defineProperty(oy,"__esModule",{value:!0});var Dj=oy.getWindowMetadata=void 0;const lx=vu;function FD0(){let u,e;try{u=lx.getDocumentOrThrow(),e=lx.getLocationOrThrow()}catch{return null}function t(){const c=u.getElementsByTagName("link"),d=[];for(let E=0;E-1){const g=p.getAttribute("href");if(g)if(g.toLowerCase().indexOf("https:")===-1&&g.toLowerCase().indexOf("http:")===-1&&g.indexOf("//")!==0){let b=e.protocol+"//"+e.host;if(g.indexOf("/")===0)b+=g;else{const m=e.pathname.split("/");m.pop();const A=m.join("/");b+=A+"/"+g}d.push(b)}else if(g.indexOf("//")===0){const b=e.protocol+g;d.push(b)}else d.push(g)}}return d}function n(...c){const d=u.getElementsByTagName("meta");for(let E=0;Ep.getAttribute(g)).filter(g=>g?c.includes(g):!1);if(h.length&&h){const g=p.getAttribute("content");if(g)return g}}return""}function r(){let c=n("name","og:site_name","og:title","twitter:title");return c||(c=u.title),c}function i(){return n("description","og:description","twitter:description","keywords")}const a=r(),o=i(),s=e.origin,f=t();return{description:o,url:s,icons:f,name:a}}Dj=oy.getWindowMetadata=FD0;var O1={},DD0=u=>encodeURIComponent(u).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),wj="%[a-f0-9]{2}",cx=new RegExp("("+wj+")|([^%]+?)","gi"),dx=new RegExp("("+wj+")+","gi");function GC(u,e){try{return[decodeURIComponent(u.join(""))]}catch{}if(u.length===1)return u;e=e||1;var t=u.slice(0,e),n=u.slice(e);return Array.prototype.concat.call([],GC(t),GC(n))}function wD0(u){try{return decodeURIComponent(u)}catch{for(var e=u.match(cx)||[],t=1;t{if(!(typeof u=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e==="")return[u];const t=u.indexOf(e);return t===-1?[u]:[u.slice(0,t),u.slice(t+e.length)]},SD0=function(u,e){for(var t={},n=Object.keys(u),r=Array.isArray(e),i=0;im==null,a=Symbol("encodeFragmentIdentifier");function o(m){switch(m.arrayFormat){case"index":return A=>(y,B)=>{const v=y.length;return B===void 0||m.skipNull&&B===null||m.skipEmptyString&&B===""?y:B===null?[...y,[l(A,m),"[",v,"]"].join("")]:[...y,[l(A,m),"[",l(v,m),"]=",l(B,m)].join("")]};case"bracket":return A=>(y,B)=>B===void 0||m.skipNull&&B===null||m.skipEmptyString&&B===""?y:B===null?[...y,[l(A,m),"[]"].join("")]:[...y,[l(A,m),"[]=",l(B,m)].join("")];case"colon-list-separator":return A=>(y,B)=>B===void 0||m.skipNull&&B===null||m.skipEmptyString&&B===""?y:B===null?[...y,[l(A,m),":list="].join("")]:[...y,[l(A,m),":list=",l(B,m)].join("")];case"comma":case"separator":case"bracket-separator":{const A=m.arrayFormat==="bracket-separator"?"[]=":"=";return y=>(B,v)=>v===void 0||m.skipNull&&v===null||m.skipEmptyString&&v===""?B:(v=v===null?"":v,B.length===0?[[l(y,m),A,l(v,m)].join("")]:[[B,l(v,m)].join(m.arrayFormatSeparator)])}default:return A=>(y,B)=>B===void 0||m.skipNull&&B===null||m.skipEmptyString&&B===""?y:B===null?[...y,l(A,m)]:[...y,[l(A,m),"=",l(B,m)].join("")]}}function s(m){let A;switch(m.arrayFormat){case"index":return(y,B,v)=>{if(A=/\[(\d*)\]$/.exec(y),y=y.replace(/\[\d*\]$/,""),!A){v[y]=B;return}v[y]===void 0&&(v[y]={}),v[y][A[1]]=B};case"bracket":return(y,B,v)=>{if(A=/(\[\])$/.exec(y),y=y.replace(/\[\]$/,""),!A){v[y]=B;return}if(v[y]===void 0){v[y]=[B];return}v[y]=[].concat(v[y],B)};case"colon-list-separator":return(y,B,v)=>{if(A=/(:list)$/.exec(y),y=y.replace(/:list$/,""),!A){v[y]=B;return}if(v[y]===void 0){v[y]=[B];return}v[y]=[].concat(v[y],B)};case"comma":case"separator":return(y,B,v)=>{const C=typeof B=="string"&&B.includes(m.arrayFormatSeparator),D=typeof B=="string"&&!C&&c(B,m).includes(m.arrayFormatSeparator);B=D?c(B,m):B;const S=C||D?B.split(m.arrayFormatSeparator).map(x=>c(x,m)):B===null?B:c(B,m);v[y]=S};case"bracket-separator":return(y,B,v)=>{const C=/(\[\])$/.test(y);if(y=y.replace(/\[\]$/,""),!C){v[y]=B&&c(B,m);return}const D=B===null?[]:B.split(m.arrayFormatSeparator).map(S=>c(S,m));if(v[y]===void 0){v[y]=D;return}v[y]=[].concat(v[y],D)};default:return(y,B,v)=>{if(v[y]===void 0){v[y]=B;return}v[y]=[].concat(v[y],B)}}}function f(m){if(typeof m!="string"||m.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function l(m,A){return A.encode?A.strict?e(m):encodeURIComponent(m):m}function c(m,A){return A.decode?t(m):m}function d(m){return Array.isArray(m)?m.sort():typeof m=="object"?d(Object.keys(m)).sort((A,y)=>Number(A)-Number(y)).map(A=>m[A]):m}function E(m){const A=m.indexOf("#");return A!==-1&&(m=m.slice(0,A)),m}function p(m){let A="";const y=m.indexOf("#");return y!==-1&&(A=m.slice(y)),A}function h(m){m=E(m);const A=m.indexOf("?");return A===-1?"":m.slice(A+1)}function g(m,A){return A.parseNumbers&&!Number.isNaN(Number(m))&&typeof m=="string"&&m.trim()!==""?m=Number(m):A.parseBooleans&&m!==null&&(m.toLowerCase()==="true"||m.toLowerCase()==="false")&&(m=m.toLowerCase()==="true"),m}function b(m,A){A=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},A),f(A.arrayFormatSeparator);const y=s(A),B=Object.create(null);if(typeof m!="string"||(m=m.trim().replace(/^[?#&]/,""),!m))return B;for(const v of m.split("&")){if(v==="")continue;let[C,D]=n(A.decode?v.replace(/\+/g," "):v,"=");D=D===void 0?null:["comma","separator","bracket-separator"].includes(A.arrayFormat)?D:c(D,A),y(c(C,A),D,B)}for(const v of Object.keys(B)){const C=B[v];if(typeof C=="object"&&C!==null)for(const D of Object.keys(C))C[D]=g(C[D],A);else B[v]=g(C,A)}return A.sort===!1?B:(A.sort===!0?Object.keys(B).sort():Object.keys(B).sort(A.sort)).reduce((v,C)=>{const D=B[C];return D&&typeof D=="object"&&!Array.isArray(D)?v[C]=d(D):v[C]=D,v},Object.create(null))}u.extract=h,u.parse=b,u.stringify=(m,A)=>{if(!m)return"";A=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},A),f(A.arrayFormatSeparator);const y=D=>A.skipNull&&i(m[D])||A.skipEmptyString&&m[D]==="",B=o(A),v={};for(const D of Object.keys(m))y(D)||(v[D]=m[D]);const C=Object.keys(v);return A.sort!==!1&&C.sort(A.sort),C.map(D=>{const S=m[D];return S===void 0?"":S===null?l(D,A):Array.isArray(S)?S.length===0&&A.arrayFormat==="bracket-separator"?l(D,A)+"[]":S.reduce(B(D),[]).join("&"):l(D,A)+"="+l(S,A)}).filter(D=>D.length>0).join("&")},u.parseUrl=(m,A)=>{A=Object.assign({decode:!0},A);const[y,B]=n(m,"#");return Object.assign({url:y.split("?")[0]||"",query:b(h(m),A)},A&&A.parseFragmentIdentifier&&B?{fragmentIdentifier:c(B,A)}:{})},u.stringifyUrl=(m,A)=>{A=Object.assign({encode:!0,strict:!0,[a]:!0},A);const y=E(m.url).split("?")[0]||"",B=u.extract(m.url),v=u.parse(B,{sort:!1}),C=Object.assign(v,m.query);let D=u.stringify(C,A);D&&(D=`?${D}`);let S=p(m.url);return m.fragmentIdentifier&&(S=`#${A[a]?l(m.fragmentIdentifier,A):m.fragmentIdentifier}`),`${y}${D}${S}`},u.pick=(m,A,y)=>{y=Object.assign({parseFragmentIdentifier:!0,[a]:!1},y);const{url:B,query:v,fragmentIdentifier:C}=u.parseUrl(m,y);return u.stringifyUrl({url:B,query:r(v,A),fragmentIdentifier:C},y)},u.exclude=(m,A,y)=>{const B=Array.isArray(A)?v=>!A.includes(v):(v,C)=>!A(v,C);return u.pick(m,B,y)}})(O1);const TD0={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}},PD0=":";function JM0(u){const[e,t]=u.split(PD0);return{namespace:e,reference:t}}function ZM0(u,e=[]){const t=[];return Object.keys(u).forEach(n=>{if(e.length&&!e.includes(n))return;const r=u[n];t.push(...r.accounts)}),t}function xj(u,e){return u.includes(":")?[u]:e.chains||[]}const kj="base10",mt="base16",VC="base64pad",sy="utf8",_j=0,Kc=1,ID0=0,Ex=1,KC=12,fy=32;function YM0(){const u=ry.generateKeyPair();return{privateKey:qn(u.secretKey,mt),publicKey:qn(u.publicKey,mt)}}function XM0(){const u=$E.randomBytes(fy);return qn(u,mt)}function uj0(u,e){const t=ry.sharedKey(Mn(u,mt),Mn(e,mt),!0),n=new cB0(HE.SHA256,t).expand(fy);return qn(n,mt)}function ej0(u){const e=HE.hash(Mn(u,mt));return qn(e,mt)}function tj0(u){const e=HE.hash(Mn(u,sy));return qn(e,mt)}function OD0(u){return Mn(`${u}`,kj)}function KE(u){return Number(qn(u,kj))}function nj0(u){const e=OD0(typeof u.type<"u"?u.type:_j);if(KE(e)===Kc&&typeof u.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const t=typeof u.senderPublicKey<"u"?Mn(u.senderPublicKey,mt):void 0,n=typeof u.iv<"u"?Mn(u.iv,mt):$E.randomBytes(KC),r=new ty.ChaCha20Poly1305(Mn(u.symKey,mt)).seal(n,Mn(u.message,sy));return RD0({type:e,sealed:r,iv:n,senderPublicKey:t})}function rj0(u){const e=new ty.ChaCha20Poly1305(Mn(u.symKey,mt)),{sealed:t,iv:n}=Sj(u.encoded),r=e.open(n,t);if(r===null)throw new Error("Failed to decrypt");return qn(r,sy)}function RD0(u){if(KE(u.type)===Kc){if(typeof u.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return qn(Kw([u.type,u.senderPublicKey,u.iv,u.sealed]),VC)}return qn(Kw([u.type,u.iv,u.sealed]),VC)}function Sj(u){const e=Mn(u,VC),t=e.slice(ID0,Ex),n=Ex;if(KE(t)===Kc){const o=n+fy,s=o+KC,f=e.slice(n,o),l=e.slice(o,s),c=e.slice(s);return{type:t,sealed:c,iv:l,senderPublicKey:f}}const r=n+KC,i=e.slice(n,r),a=e.slice(r);return{type:t,sealed:a,iv:i}}function ij0(u,e){const t=Sj(u);return ND0({type:KE(t.type),senderPublicKey:typeof t.senderPublicKey<"u"?qn(t.senderPublicKey,mt):void 0,receiverPublicKey:e==null?void 0:e.receiverPublicKey})}function ND0(u){const e=(u==null?void 0:u.type)||_j;if(e===Kc){if(typeof(u==null?void 0:u.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(u==null?void 0:u.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:e,senderPublicKey:u==null?void 0:u.senderPublicKey,receiverPublicKey:u==null?void 0:u.receiverPublicKey}}function aj0(u){return u.type===Kc&&typeof u.senderPublicKey=="string"&&typeof u.receiverPublicKey=="string"}var MD0=Object.defineProperty,px=Object.getOwnPropertySymbols,jD0=Object.prototype.hasOwnProperty,zD0=Object.prototype.propertyIsEnumerable,hx=(u,e,t)=>e in u?MD0(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Cx=(u,e)=>{for(var t in e||(e={}))jD0.call(e,t)&&hx(u,t,e[t]);if(px)for(var t of px(e))zD0.call(e,t)&&hx(u,t,e[t]);return u};const LD0="ReactNative",Mt={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},$D0="js";function Tj(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function QE(){return!Bj()&&!!ay()&&navigator.product===LD0}function ly(){return!Tj()&&!!ay()}function Qc(){return QE()?Mt.reactNative:Tj()?Mt.node:ly()?Mt.browser:Mt.unknown}function UD0(u,e){let t=O1.parse(u);return t=Cx(Cx({},t),e),u=O1.stringify(t),u}function oj0(){return Dj()||{name:"",description:"",url:"",icons:[""]}}function WD0(){if(Qc()===Mt.reactNative&&typeof global<"u"&&typeof(global==null?void 0:global.Platform)<"u"){const{OS:t,Version:n}=global.Platform;return[t,n].join("-")}const u=wF0();if(u===null)return"unknown";const e=u.os?u.os.replace(" ","").toLowerCase():"unknown";return u.type==="browser"?[e,u.name,u.version].join("-"):[e,u.version].join("-")}function qD0(){var u;const e=Qc();return e===Mt.browser?[e,((u=Fj())==null?void 0:u.host)||"unknown"].join(":"):e}function HD0(u,e,t){const n=WD0(),r=qD0();return[[u,e].join("-"),[$D0,t].join("-"),n,r].join("/")}function sj0({protocol:u,version:e,relayUrl:t,sdkVersion:n,auth:r,projectId:i,useOnCloseEvent:a}){const o=t.split("?"),s=HD0(u,e,n),f={auth:r,ua:s,projectId:i,useOnCloseEvent:a||void 0},l=UD0(o[1]||"",f);return o[0]+"?"+l}function to(u,e){return u.filter(t=>e.includes(t)).length===u.length}function fj0(u){return Object.fromEntries(u.entries())}function lj0(u){return new Map(Object.entries(u))}function cj0(u=To.FIVE_MINUTES,e){const t=To.toMiliseconds(u||To.FIVE_MINUTES);let n,r,i;return{resolve:a=>{i&&n&&(clearTimeout(i),n(a))},reject:a=>{i&&r&&(clearTimeout(i),r(a))},done:()=>new Promise((a,o)=>{i=setTimeout(()=>{o(new Error(e))},t),n=a,r=o})}}function dj0(u,e,t){return new Promise(async(n,r)=>{const i=setTimeout(()=>r(new Error(t)),e);try{const a=await u;n(a)}catch(a){r(a)}clearTimeout(i)})}function Pj(u,e){if(typeof e=="string"&&e.startsWith(`${u}:`))return e;if(u.toLowerCase()==="topic"){if(typeof e!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${e}`}else if(u.toLowerCase()==="id"){if(typeof e!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${e}`}throw new Error(`Unknown expirer target type: ${u}`)}function Ej0(u){return Pj("topic",u)}function pj0(u){return Pj("id",u)}function hj0(u){const[e,t]=u.split(":"),n={id:void 0,topic:void 0};if(e==="topic"&&typeof t=="string")n.topic=t;else if(e==="id"&&Number.isInteger(Number(t)))n.id=Number(t);else throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${t}`);return n}function Cj0(u,e){return To.fromMiliseconds((e||Date.now())+To.toMiliseconds(u))}function mj0(u){return Date.now()>=To.toMiliseconds(u)}function bj0(u,e){return`${u}${e?`:${e}`:""}`}function Ch(u=[],e=[]){return[...new Set([...u,...e])]}async function gj0({id:u,topic:e,wcDeepLink:t}){try{if(!t)return;const n=typeof t=="string"?JSON.parse(t):t;let r=n==null?void 0:n.href;if(typeof r!="string")return;r.endsWith("/")&&(r=r.slice(0,-1));const i=`${r}/wc?requestId=${u}&sessionTopic=${e}`,a=Qc();a===Mt.browser?i.startsWith("https://")?window.open(i,"_blank","noreferrer noopener"):window.open(i,"_self","noreferrer noopener"):a===Mt.reactNative&&typeof(global==null?void 0:global.Linking)<"u"&&await global.Linking.openURL(i)}catch(n){console.error(n)}}const GD0="irn";function Aj0(u){return(u==null?void 0:u.relay)||{protocol:GD0}}function yj0(u){const e=TD0[u];if(typeof e>"u")throw new Error(`Relay Protocol not supported: ${u}`);return e}var VD0=Object.defineProperty,mx=Object.getOwnPropertySymbols,KD0=Object.prototype.hasOwnProperty,QD0=Object.prototype.propertyIsEnumerable,bx=(u,e,t)=>e in u?VD0(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,JD0=(u,e)=>{for(var t in e||(e={}))KD0.call(e,t)&&bx(u,t,e[t]);if(mx)for(var t of mx(e))QD0.call(e,t)&&bx(u,t,e[t]);return u};function ZD0(u,e="-"){const t={},n="relay"+e;return Object.keys(u).forEach(r=>{if(r.startsWith(n)){const i=r.replace(n,""),a=u[r];t[i]=a}}),t}function vj0(u){const e=u.indexOf(":"),t=u.indexOf("?")!==-1?u.indexOf("?"):void 0,n=u.substring(0,e),r=u.substring(e+1,t).split("@"),i=typeof t<"u"?u.substring(t):"",a=O1.parse(i);return{protocol:n,topic:YD0(r[0]),version:parseInt(r[1],10),symKey:a.symKey,relay:ZD0(a)}}function YD0(u){return u.startsWith("//")?u.substring(2):u}function XD0(u,e="-"){const t="relay",n={};return Object.keys(u).forEach(r=>{const i=t+e+r;u[r]&&(n[i]=u[r])}),n}function Bj0(u){return`${u.protocol}:${u.topic}@${u.version}?`+O1.stringify(JD0({symKey:u.symKey},XD0(u.relay)))}var uw0=Object.defineProperty,ew0=Object.defineProperties,tw0=Object.getOwnPropertyDescriptors,gx=Object.getOwnPropertySymbols,nw0=Object.prototype.hasOwnProperty,rw0=Object.prototype.propertyIsEnumerable,Ax=(u,e,t)=>e in u?uw0(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,iw0=(u,e)=>{for(var t in e||(e={}))nw0.call(e,t)&&Ax(u,t,e[t]);if(gx)for(var t of gx(e))rw0.call(e,t)&&Ax(u,t,e[t]);return u},aw0=(u,e)=>ew0(u,tw0(e));function U3(u){const e=[];return u.forEach(t=>{const[n,r]=t.split(":");e.push(`${n}:${r}`)}),e}function ow0(u){const e=[];return Object.values(u).forEach(t=>{e.push(...U3(t.accounts))}),e}function sw0(u,e){const t=[];return Object.values(u).forEach(n=>{U3(n.accounts).includes(e)&&t.push(...n.methods)}),t}function fw0(u,e){const t=[];return Object.values(u).forEach(n=>{U3(n.accounts).includes(e)&&t.push(...n.events)}),t}function Fj0(u,e){const t=gw0(u,e);if(t)throw new Error(t.message);const n={};for(const[r,i]of Object.entries(u))n[r]={methods:i.methods,events:i.events,chains:i.accounts.map(a=>`${a.split(":")[0]}:${a.split(":")[1]}`)};return n}function Ij(u){return u.includes(":")}function lw0(u){return Ij(u)?u.split(":")[0]:u}function Oj(u){var e,t,n;const r={};if(!cy(u))return r;for(const[i,a]of Object.entries(u)){const o=Ij(i)?[i]:a.chains,s=a.methods||[],f=a.events||[],l=lw0(i);r[l]=aw0(iw0({},r[l]),{chains:Ch(o,(e=r[l])==null?void 0:e.chains),methods:Ch(s,(t=r[l])==null?void 0:t.methods),events:Ch(f,(n=r[l])==null?void 0:n.events)})}return r}const cw0={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},dw0={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function Ri(u,e){const{message:t,code:n}=dw0[u];return{message:e?`${t} ${e}`:t,code:n}}function u3(u,e){const{message:t,code:n}=cw0[u];return{message:e?`${t} ${e}`:t,code:n}}function JE(u,e){return Array.isArray(u)?typeof e<"u"&&u.length?u.every(e):!0:!1}function cy(u){return Object.getPrototypeOf(u)===Object.prototype&&Object.keys(u).length}function Po(u){return typeof u>"u"}function vn(u,e){return e&&Po(u)?!0:typeof u=="string"&&!!u.trim().length}function dy(u,e){return e&&Po(u)?!0:typeof u=="number"&&!isNaN(u)}function Dj0(u,e){const{requiredNamespaces:t}=e,n=Object.keys(u.namespaces),r=Object.keys(t);let i=!0;return to(r,n)?(n.forEach(a=>{const{accounts:o,methods:s,events:f}=u.namespaces[a],l=U3(o),c=t[a];(!to(xj(a,c),l)||!to(c.methods,s)||!to(c.events,f))&&(i=!1)}),i):!1}function e9(u){return vn(u,!1)&&u.includes(":")?u.split(":").length===2:!1}function Ew0(u){if(vn(u,!1)&&u.includes(":")){const e=u.split(":");if(e.length===3){const t=e[0]+":"+e[1];return!!e[2]&&e9(t)}}return!1}function wj0(u){if(vn(u,!1))try{return typeof new URL(u)<"u"}catch{return!1}return!1}function xj0(u){var e;return(e=u==null?void 0:u.proposer)==null?void 0:e.publicKey}function kj0(u){return u==null?void 0:u.topic}function _j0(u,e){let t=null;return vn(u==null?void 0:u.publicKey,!1)||(t=Ri("MISSING_OR_INVALID",`${e} controller public key should be a string`)),t}function yx(u){let e=!0;return JE(u)?u.length&&(e=u.every(t=>vn(t,!1))):e=!1,e}function pw0(u,e,t){let n=null;return JE(e)&&e.length?e.forEach(r=>{n||e9(r)||(n=u3("UNSUPPORTED_CHAINS",`${t}, chain ${r} should be a string and conform to "namespace:chainId" format`))}):e9(u)||(n=u3("UNSUPPORTED_CHAINS",`${t}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),n}function hw0(u,e,t){let n=null;return Object.entries(u).forEach(([r,i])=>{if(n)return;const a=pw0(r,xj(r,i),`${e} ${t}`);a&&(n=a)}),n}function Cw0(u,e){let t=null;return JE(u)?u.forEach(n=>{t||Ew0(n)||(t=u3("UNSUPPORTED_ACCOUNTS",`${e}, account ${n} should be a string and conform to "namespace:chainId:address" format`))}):t=u3("UNSUPPORTED_ACCOUNTS",`${e}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),t}function mw0(u,e){let t=null;return Object.values(u).forEach(n=>{if(t)return;const r=Cw0(n==null?void 0:n.accounts,`${e} namespace`);r&&(t=r)}),t}function bw0(u,e){let t=null;return yx(u==null?void 0:u.methods)?yx(u==null?void 0:u.events)||(t=u3("UNSUPPORTED_EVENTS",`${e}, events should be an array of strings or empty array for no events`)):t=u3("UNSUPPORTED_METHODS",`${e}, methods should be an array of strings or empty array for no methods`),t}function Rj(u,e){let t=null;return Object.values(u).forEach(n=>{if(t)return;const r=bw0(n,`${e}, namespace`);r&&(t=r)}),t}function Sj0(u,e,t){let n=null;if(u&&cy(u)){const r=Rj(u,e);r&&(n=r);const i=hw0(u,e,t);i&&(n=i)}else n=Ri("MISSING_OR_INVALID",`${e}, ${t} should be an object with data`);return n}function gw0(u,e){let t=null;if(u&&cy(u)){const n=Rj(u,e);n&&(t=n);const r=mw0(u,e);r&&(t=r)}else t=Ri("MISSING_OR_INVALID",`${e}, namespaces should be an object with data`);return t}function Aw0(u){return vn(u.protocol,!0)}function Tj0(u,e){let t=!1;return e&&!u?t=!0:u&&JE(u)&&u.length&&u.forEach(n=>{t=Aw0(n)}),t}function Pj0(u){return typeof u=="number"}function Ij0(u){return typeof u<"u"&&typeof u!==null}function Oj0(u){return!(!u||typeof u!="object"||!u.code||!dy(u.code,!1)||!u.message||!vn(u.message,!1))}function Rj0(u){return!(Po(u)||!vn(u.method,!1))}function Nj0(u){return!(Po(u)||Po(u.result)&&Po(u.error)||!dy(u.id,!1)||!vn(u.jsonrpc,!1))}function Mj0(u){return!(Po(u)||!vn(u.name,!1))}function jj0(u,e){return!(!e9(e)||!ow0(u).includes(e))}function zj0(u,e,t){return vn(t,!1)?sw0(u,e).includes(t):!1}function Lj0(u,e,t){return vn(t,!1)?fw0(u,e).includes(t):!1}function $j0(u,e,t){let n=null;const r=yw0(u),i=vw0(e),a=Object.keys(r),o=Object.keys(i),s=vx(Object.keys(u)),f=vx(Object.keys(e)),l=s.filter(c=>!f.includes(c));return l.length&&(n=Ri("NON_CONFORMING_NAMESPACES",`${t} namespaces keys don't satisfy requiredNamespaces. +***************************************************************************** */var qC=function(u,e){return qC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])},qC(u,e)};function TF0(u,e){qC(u,e);function t(){this.constructor=u}u.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var HC=function(){return HC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;o--)(a=u[o])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}function OF0(u,e){return function(t,n){e(t,n,u)}}function RF0(u,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(u,e)}function NF0(u,e,t,n){function r(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function o(l){try{f(n.next(l))}catch(c){a(c)}}function s(l){try{f(n.throw(l))}catch(c){a(c)}}function f(l){l.done?i(l.value):r(l.value).then(o,s)}f((n=n.apply(u,e||[])).next())})}function MF0(u,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(f){return function(l){return s([f,l])}}function s(f){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,r&&(i=f[0]&2?r.return:f[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,f[1])).done)return i;switch(r=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,r=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]=u.length&&(u=void 0),{value:u&&u[n++],done:!u}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function yj(u,e){var t=typeof Symbol=="function"&&u[Symbol.iterator];if(!t)return u;var n=t.call(u),r,i=[],a;try{for(;(e===void 0||e-- >0)&&!(r=n.next()).done;)i.push(r.value)}catch(o){a={error:o}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i}function LF0(){for(var u=[],e=0;e1||o(d,E)})})}function o(d,E){try{s(n[d](E))}catch(p){c(i[0][3],p)}}function s(d){d.value instanceof O1?Promise.resolve(d.value.v).then(f,l):c(i[0][2],d)}function f(d){o("next",d)}function l(d){o("throw",d)}function c(d,E){d(E),i.shift(),i.length&&o(i[0][0],i[0][1])}}function WF0(u){var e,t;return e={},n("next"),n("throw",function(r){throw r}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(r,i){e[r]=u[r]?function(a){return(t=!t)?{value:O1(u[r](a)),done:r==="return"}:i?i(a):a}:i}}function qF0(u){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=u[Symbol.asyncIterator],t;return e?e.call(u):(u=typeof GC=="function"?GC(u):u[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=u[i]&&function(a){return new Promise(function(o,s){a=u[i](a),r(o,s,a.done,a.value)})}}function r(i,a,o,s){Promise.resolve(s).then(function(f){i({value:f,done:o})},a)}}function HF0(u,e){return Object.defineProperty?Object.defineProperty(u,"raw",{value:e}):u.raw=e,u}function GF0(u){if(u&&u.__esModule)return u;var e={};if(u!=null)for(var t in u)Object.hasOwnProperty.call(u,t)&&(e[t]=u[t]);return e.default=u,e}function VF0(u){return u&&u.__esModule?u:{default:u}}function KF0(u,e){if(!e.has(u))throw new TypeError("attempted to get private field on non-instance");return e.get(u)}function QF0(u,e,t){if(!e.has(u))throw new TypeError("attempted to set private field on non-instance");return e.set(u,t),t}const JF0=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return HC},__asyncDelegator:WF0,__asyncGenerator:UF0,__asyncValues:qF0,__await:O1,__awaiter:NF0,__classPrivateFieldGet:KF0,__classPrivateFieldSet:QF0,__createBinding:jF0,__decorate:IF0,__exportStar:zF0,__extends:TF0,__generator:MF0,__importDefault:VF0,__importStar:GF0,__makeTemplateObject:HF0,__metadata:RF0,__param:OF0,__read:yj,__rest:PF0,__spread:LF0,__spreadArrays:$F0,__values:GC},Symbol.toStringTag,{value:"Module"})),KE=P9(JF0);var Eh={},ll={},tx;function ZF0(){if(tx)return ll;tx=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.delay=void 0;function u(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}return ll.delay=u,ll}var Ra={},ph={},Na={},nx;function YF0(){return nx||(nx=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.ONE_THOUSAND=Na.ONE_HUNDRED=void 0,Na.ONE_HUNDRED=100,Na.ONE_THOUSAND=1e3),Na}var hh={},rx;function XF0(){return rx||(rx=1,function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.ONE_YEAR=u.FOUR_WEEKS=u.THREE_WEEKS=u.TWO_WEEKS=u.ONE_WEEK=u.THIRTY_DAYS=u.SEVEN_DAYS=u.FIVE_DAYS=u.THREE_DAYS=u.ONE_DAY=u.TWENTY_FOUR_HOURS=u.TWELVE_HOURS=u.SIX_HOURS=u.THREE_HOURS=u.ONE_HOUR=u.SIXTY_MINUTES=u.THIRTY_MINUTES=u.TEN_MINUTES=u.FIVE_MINUTES=u.ONE_MINUTE=u.SIXTY_SECONDS=u.THIRTY_SECONDS=u.TEN_SECONDS=u.FIVE_SECONDS=u.ONE_SECOND=void 0,u.ONE_SECOND=1,u.FIVE_SECONDS=5,u.TEN_SECONDS=10,u.THIRTY_SECONDS=30,u.SIXTY_SECONDS=60,u.ONE_MINUTE=u.SIXTY_SECONDS,u.FIVE_MINUTES=u.ONE_MINUTE*5,u.TEN_MINUTES=u.ONE_MINUTE*10,u.THIRTY_MINUTES=u.ONE_MINUTE*30,u.SIXTY_MINUTES=u.ONE_MINUTE*60,u.ONE_HOUR=u.SIXTY_MINUTES,u.THREE_HOURS=u.ONE_HOUR*3,u.SIX_HOURS=u.ONE_HOUR*6,u.TWELVE_HOURS=u.ONE_HOUR*12,u.TWENTY_FOUR_HOURS=u.ONE_HOUR*24,u.ONE_DAY=u.TWENTY_FOUR_HOURS,u.THREE_DAYS=u.ONE_DAY*3,u.FIVE_DAYS=u.ONE_DAY*5,u.SEVEN_DAYS=u.ONE_DAY*7,u.THIRTY_DAYS=u.ONE_DAY*30,u.ONE_WEEK=u.SEVEN_DAYS,u.TWO_WEEKS=u.ONE_WEEK*2,u.THREE_WEEKS=u.ONE_WEEK*3,u.FOUR_WEEKS=u.ONE_WEEK*4,u.ONE_YEAR=u.ONE_DAY*365}(hh)),hh}var ix;function vj(){return ix||(ix=1,function(u){Object.defineProperty(u,"__esModule",{value:!0});const e=KE;e.__exportStar(YF0(),u),e.__exportStar(XF0(),u)}(ph)),ph}var ax;function uD0(){if(ax)return Ra;ax=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.fromMiliseconds=Ra.toMiliseconds=void 0;const u=vj();function e(n){return n*u.ONE_THOUSAND}Ra.toMiliseconds=e;function t(n){return Math.floor(n/u.ONE_THOUSAND)}return Ra.fromMiliseconds=t,Ra}var ox;function eD0(){return ox||(ox=1,function(u){Object.defineProperty(u,"__esModule",{value:!0});const e=KE;e.__exportStar(ZF0(),u),e.__exportStar(uD0(),u)}(Eh)),Eh}var Is={},sx;function tD0(){if(sx)return Is;sx=1,Object.defineProperty(Is,"__esModule",{value:!0}),Is.Watch=void 0;class u{constructor(){this.timestamps=new Map}start(t){if(this.timestamps.has(t))throw new Error(`Watch already started for label: ${t}`);this.timestamps.set(t,{started:Date.now()})}stop(t){const n=this.get(t);if(typeof n.elapsed<"u")throw new Error(`Watch already stopped for label: ${t}`);const r=Date.now()-n.started;this.timestamps.set(t,{started:n.started,elapsed:r})}get(t){const n=this.timestamps.get(t);if(typeof n>"u")throw new Error(`No timestamp found for label: ${t}`);return n}elapsed(t){const n=this.get(t);return n.elapsed||Date.now()-n.started}}return Is.Watch=u,Is.default=u,Is}var Ch={},cl={},fx;function nD0(){if(fx)return cl;fx=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.IWatch=void 0;class u{}return cl.IWatch=u,cl}var lx;function rD0(){return lx||(lx=1,function(u){Object.defineProperty(u,"__esModule",{value:!0}),KE.__exportStar(nD0(),u)}(Ch)),Ch}(function(u){Object.defineProperty(u,"__esModule",{value:!0});const e=KE;e.__exportStar(eD0(),u),e.__exportStar(tD0(),u),e.__exportStar(rD0(),u),e.__exportStar(vj(),u)})(Po);var vu={};Object.defineProperty(vu,"__esModule",{value:!0});var iD0=vu.getLocalStorage=vD0=vu.getLocalStorageOrThrow=AD0=vu.getCrypto=bD0=vu.getCryptoOrThrow=Fj=vu.getLocation=hD0=vu.getLocationOrThrow=oy=vu.getNavigator=dD0=vu.getNavigatorOrThrow=Bj=vu.getDocument=fD0=vu.getDocumentOrThrow=oD0=vu.getFromWindowOrThrow=aD0=vu.getFromWindow=void 0;function bs(u){let e;return typeof window<"u"&&typeof window[u]<"u"&&(e=window[u]),e}var aD0=vu.getFromWindow=bs;function $3(u){const e=bs(u);if(!e)throw new Error(`${u} is not defined in Window`);return e}var oD0=vu.getFromWindowOrThrow=$3;function sD0(){return $3("document")}var fD0=vu.getDocumentOrThrow=sD0;function lD0(){return bs("document")}var Bj=vu.getDocument=lD0;function cD0(){return $3("navigator")}var dD0=vu.getNavigatorOrThrow=cD0;function ED0(){return bs("navigator")}var oy=vu.getNavigator=ED0;function pD0(){return $3("location")}var hD0=vu.getLocationOrThrow=pD0;function CD0(){return bs("location")}var Fj=vu.getLocation=CD0;function mD0(){return $3("crypto")}var bD0=vu.getCryptoOrThrow=mD0;function gD0(){return bs("crypto")}var AD0=vu.getCrypto=gD0;function yD0(){return $3("localStorage")}var vD0=vu.getLocalStorageOrThrow=yD0;function BD0(){return bs("localStorage")}iD0=vu.getLocalStorage=BD0;var sy={};Object.defineProperty(sy,"__esModule",{value:!0});var Dj=sy.getWindowMetadata=void 0;const cx=vu;function FD0(){let u,e;try{u=cx.getDocumentOrThrow(),e=cx.getLocationOrThrow()}catch{return null}function t(){const c=u.getElementsByTagName("link"),d=[];for(let E=0;E-1){const g=p.getAttribute("href");if(g)if(g.toLowerCase().indexOf("https:")===-1&&g.toLowerCase().indexOf("http:")===-1&&g.indexOf("//")!==0){let b=e.protocol+"//"+e.host;if(g.indexOf("/")===0)b+=g;else{const m=e.pathname.split("/");m.pop();const A=m.join("/");b+=A+"/"+g}d.push(b)}else if(g.indexOf("//")===0){const b=e.protocol+g;d.push(b)}else d.push(g)}}return d}function n(...c){const d=u.getElementsByTagName("meta");for(let E=0;Ep.getAttribute(g)).filter(g=>g?c.includes(g):!1);if(h.length&&h){const g=p.getAttribute("content");if(g)return g}}return""}function r(){let c=n("name","og:site_name","og:title","twitter:title");return c||(c=u.title),c}function i(){return n("description","og:description","twitter:description","keywords")}const a=r(),o=i(),s=e.origin,f=t();return{description:o,url:s,icons:f,name:a}}Dj=sy.getWindowMetadata=FD0;var R1={},DD0=u=>encodeURIComponent(u).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),wj="%[a-f0-9]{2}",dx=new RegExp("("+wj+")|([^%]+?)","gi"),Ex=new RegExp("("+wj+")+","gi");function VC(u,e){try{return[decodeURIComponent(u.join(""))]}catch{}if(u.length===1)return u;e=e||1;var t=u.slice(0,e),n=u.slice(e);return Array.prototype.concat.call([],VC(t),VC(n))}function wD0(u){try{return decodeURIComponent(u)}catch{for(var e=u.match(dx)||[],t=1;t{if(!(typeof u=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e==="")return[u];const t=u.indexOf(e);return t===-1?[u]:[u.slice(0,t),u.slice(t+e.length)]},SD0=function(u,e){for(var t={},n=Object.keys(u),r=Array.isArray(e),i=0;im==null,a=Symbol("encodeFragmentIdentifier");function o(m){switch(m.arrayFormat){case"index":return A=>(y,B)=>{const v=y.length;return B===void 0||m.skipNull&&B===null||m.skipEmptyString&&B===""?y:B===null?[...y,[l(A,m),"[",v,"]"].join("")]:[...y,[l(A,m),"[",l(v,m),"]=",l(B,m)].join("")]};case"bracket":return A=>(y,B)=>B===void 0||m.skipNull&&B===null||m.skipEmptyString&&B===""?y:B===null?[...y,[l(A,m),"[]"].join("")]:[...y,[l(A,m),"[]=",l(B,m)].join("")];case"colon-list-separator":return A=>(y,B)=>B===void 0||m.skipNull&&B===null||m.skipEmptyString&&B===""?y:B===null?[...y,[l(A,m),":list="].join("")]:[...y,[l(A,m),":list=",l(B,m)].join("")];case"comma":case"separator":case"bracket-separator":{const A=m.arrayFormat==="bracket-separator"?"[]=":"=";return y=>(B,v)=>v===void 0||m.skipNull&&v===null||m.skipEmptyString&&v===""?B:(v=v===null?"":v,B.length===0?[[l(y,m),A,l(v,m)].join("")]:[[B,l(v,m)].join(m.arrayFormatSeparator)])}default:return A=>(y,B)=>B===void 0||m.skipNull&&B===null||m.skipEmptyString&&B===""?y:B===null?[...y,l(A,m)]:[...y,[l(A,m),"=",l(B,m)].join("")]}}function s(m){let A;switch(m.arrayFormat){case"index":return(y,B,v)=>{if(A=/\[(\d*)\]$/.exec(y),y=y.replace(/\[\d*\]$/,""),!A){v[y]=B;return}v[y]===void 0&&(v[y]={}),v[y][A[1]]=B};case"bracket":return(y,B,v)=>{if(A=/(\[\])$/.exec(y),y=y.replace(/\[\]$/,""),!A){v[y]=B;return}if(v[y]===void 0){v[y]=[B];return}v[y]=[].concat(v[y],B)};case"colon-list-separator":return(y,B,v)=>{if(A=/(:list)$/.exec(y),y=y.replace(/:list$/,""),!A){v[y]=B;return}if(v[y]===void 0){v[y]=[B];return}v[y]=[].concat(v[y],B)};case"comma":case"separator":return(y,B,v)=>{const C=typeof B=="string"&&B.includes(m.arrayFormatSeparator),F=typeof B=="string"&&!C&&c(B,m).includes(m.arrayFormatSeparator);B=F?c(B,m):B;const S=C||F?B.split(m.arrayFormatSeparator).map(x=>c(x,m)):B===null?B:c(B,m);v[y]=S};case"bracket-separator":return(y,B,v)=>{const C=/(\[\])$/.test(y);if(y=y.replace(/\[\]$/,""),!C){v[y]=B&&c(B,m);return}const F=B===null?[]:B.split(m.arrayFormatSeparator).map(S=>c(S,m));if(v[y]===void 0){v[y]=F;return}v[y]=[].concat(v[y],F)};default:return(y,B,v)=>{if(v[y]===void 0){v[y]=B;return}v[y]=[].concat(v[y],B)}}}function f(m){if(typeof m!="string"||m.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function l(m,A){return A.encode?A.strict?e(m):encodeURIComponent(m):m}function c(m,A){return A.decode?t(m):m}function d(m){return Array.isArray(m)?m.sort():typeof m=="object"?d(Object.keys(m)).sort((A,y)=>Number(A)-Number(y)).map(A=>m[A]):m}function E(m){const A=m.indexOf("#");return A!==-1&&(m=m.slice(0,A)),m}function p(m){let A="";const y=m.indexOf("#");return y!==-1&&(A=m.slice(y)),A}function h(m){m=E(m);const A=m.indexOf("?");return A===-1?"":m.slice(A+1)}function g(m,A){return A.parseNumbers&&!Number.isNaN(Number(m))&&typeof m=="string"&&m.trim()!==""?m=Number(m):A.parseBooleans&&m!==null&&(m.toLowerCase()==="true"||m.toLowerCase()==="false")&&(m=m.toLowerCase()==="true"),m}function b(m,A){A=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},A),f(A.arrayFormatSeparator);const y=s(A),B=Object.create(null);if(typeof m!="string"||(m=m.trim().replace(/^[?#&]/,""),!m))return B;for(const v of m.split("&")){if(v==="")continue;let[C,F]=n(A.decode?v.replace(/\+/g," "):v,"=");F=F===void 0?null:["comma","separator","bracket-separator"].includes(A.arrayFormat)?F:c(F,A),y(c(C,A),F,B)}for(const v of Object.keys(B)){const C=B[v];if(typeof C=="object"&&C!==null)for(const F of Object.keys(C))C[F]=g(C[F],A);else B[v]=g(C,A)}return A.sort===!1?B:(A.sort===!0?Object.keys(B).sort():Object.keys(B).sort(A.sort)).reduce((v,C)=>{const F=B[C];return F&&typeof F=="object"&&!Array.isArray(F)?v[C]=d(F):v[C]=F,v},Object.create(null))}u.extract=h,u.parse=b,u.stringify=(m,A)=>{if(!m)return"";A=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},A),f(A.arrayFormatSeparator);const y=F=>A.skipNull&&i(m[F])||A.skipEmptyString&&m[F]==="",B=o(A),v={};for(const F of Object.keys(m))y(F)||(v[F]=m[F]);const C=Object.keys(v);return A.sort!==!1&&C.sort(A.sort),C.map(F=>{const S=m[F];return S===void 0?"":S===null?l(F,A):Array.isArray(S)?S.length===0&&A.arrayFormat==="bracket-separator"?l(F,A)+"[]":S.reduce(B(F),[]).join("&"):l(F,A)+"="+l(S,A)}).filter(F=>F.length>0).join("&")},u.parseUrl=(m,A)=>{A=Object.assign({decode:!0},A);const[y,B]=n(m,"#");return Object.assign({url:y.split("?")[0]||"",query:b(h(m),A)},A&&A.parseFragmentIdentifier&&B?{fragmentIdentifier:c(B,A)}:{})},u.stringifyUrl=(m,A)=>{A=Object.assign({encode:!0,strict:!0,[a]:!0},A);const y=E(m.url).split("?")[0]||"",B=u.extract(m.url),v=u.parse(B,{sort:!1}),C=Object.assign(v,m.query);let F=u.stringify(C,A);F&&(F=`?${F}`);let S=p(m.url);return m.fragmentIdentifier&&(S=`#${A[a]?l(m.fragmentIdentifier,A):m.fragmentIdentifier}`),`${y}${F}${S}`},u.pick=(m,A,y)=>{y=Object.assign({parseFragmentIdentifier:!0,[a]:!1},y);const{url:B,query:v,fragmentIdentifier:C}=u.parseUrl(m,y);return u.stringifyUrl({url:B,query:r(v,A),fragmentIdentifier:C},y)},u.exclude=(m,A,y)=>{const B=Array.isArray(A)?v=>!A.includes(v):(v,C)=>!A(v,C);return u.pick(m,B,y)}})(R1);const TD0={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}},PD0=":";function JM0(u){const[e,t]=u.split(PD0);return{namespace:e,reference:t}}function ZM0(u,e=[]){const t=[];return Object.keys(u).forEach(n=>{if(e.length&&!e.includes(n))return;const r=u[n];t.push(...r.accounts)}),t}function xj(u,e){return u.includes(":")?[u]:e.chains||[]}const kj="base10",mt="base16",KC="base64pad",fy="utf8",_j=0,Qc=1,ID0=0,px=1,QC=12,ly=32;function YM0(){const u=iy.generateKeyPair();return{privateKey:qn(u.secretKey,mt),publicKey:qn(u.publicKey,mt)}}function XM0(){const u=UE.randomBytes(ly);return qn(u,mt)}function uj0(u,e){const t=iy.sharedKey(Mn(u,mt),Mn(e,mt),!0),n=new cB0(GE.SHA256,t).expand(ly);return qn(n,mt)}function ej0(u){const e=GE.hash(Mn(u,mt));return qn(e,mt)}function tj0(u){const e=GE.hash(Mn(u,fy));return qn(e,mt)}function OD0(u){return Mn(`${u}`,kj)}function QE(u){return Number(qn(u,kj))}function nj0(u){const e=OD0(typeof u.type<"u"?u.type:_j);if(QE(e)===Qc&&typeof u.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const t=typeof u.senderPublicKey<"u"?Mn(u.senderPublicKey,mt):void 0,n=typeof u.iv<"u"?Mn(u.iv,mt):UE.randomBytes(QC),r=new ny.ChaCha20Poly1305(Mn(u.symKey,mt)).seal(n,Mn(u.message,fy));return RD0({type:e,sealed:r,iv:n,senderPublicKey:t})}function rj0(u){const e=new ny.ChaCha20Poly1305(Mn(u.symKey,mt)),{sealed:t,iv:n}=Sj(u.encoded),r=e.open(n,t);if(r===null)throw new Error("Failed to decrypt");return qn(r,fy)}function RD0(u){if(QE(u.type)===Qc){if(typeof u.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return qn(Qw([u.type,u.senderPublicKey,u.iv,u.sealed]),KC)}return qn(Qw([u.type,u.iv,u.sealed]),KC)}function Sj(u){const e=Mn(u,KC),t=e.slice(ID0,px),n=px;if(QE(t)===Qc){const o=n+ly,s=o+QC,f=e.slice(n,o),l=e.slice(o,s),c=e.slice(s);return{type:t,sealed:c,iv:l,senderPublicKey:f}}const r=n+QC,i=e.slice(n,r),a=e.slice(r);return{type:t,sealed:a,iv:i}}function ij0(u,e){const t=Sj(u);return ND0({type:QE(t.type),senderPublicKey:typeof t.senderPublicKey<"u"?qn(t.senderPublicKey,mt):void 0,receiverPublicKey:e==null?void 0:e.receiverPublicKey})}function ND0(u){const e=(u==null?void 0:u.type)||_j;if(e===Qc){if(typeof(u==null?void 0:u.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(u==null?void 0:u.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:e,senderPublicKey:u==null?void 0:u.senderPublicKey,receiverPublicKey:u==null?void 0:u.receiverPublicKey}}function aj0(u){return u.type===Qc&&typeof u.senderPublicKey=="string"&&typeof u.receiverPublicKey=="string"}var MD0=Object.defineProperty,hx=Object.getOwnPropertySymbols,jD0=Object.prototype.hasOwnProperty,zD0=Object.prototype.propertyIsEnumerable,Cx=(u,e,t)=>e in u?MD0(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,mx=(u,e)=>{for(var t in e||(e={}))jD0.call(e,t)&&Cx(u,t,e[t]);if(hx)for(var t of hx(e))zD0.call(e,t)&&Cx(u,t,e[t]);return u};const LD0="ReactNative",Mt={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},$D0="js";function Tj(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function JE(){return!Bj()&&!!oy()&&navigator.product===LD0}function cy(){return!Tj()&&!!oy()}function Jc(){return JE()?Mt.reactNative:Tj()?Mt.node:cy()?Mt.browser:Mt.unknown}function UD0(u,e){let t=R1.parse(u);return t=mx(mx({},t),e),u=R1.stringify(t),u}function oj0(){return Dj()||{name:"",description:"",url:"",icons:[""]}}function WD0(){if(Jc()===Mt.reactNative&&typeof global<"u"&&typeof(global==null?void 0:global.Platform)<"u"){const{OS:t,Version:n}=global.Platform;return[t,n].join("-")}const u=wF0();if(u===null)return"unknown";const e=u.os?u.os.replace(" ","").toLowerCase():"unknown";return u.type==="browser"?[e,u.name,u.version].join("-"):[e,u.version].join("-")}function qD0(){var u;const e=Jc();return e===Mt.browser?[e,((u=Fj())==null?void 0:u.host)||"unknown"].join(":"):e}function HD0(u,e,t){const n=WD0(),r=qD0();return[[u,e].join("-"),[$D0,t].join("-"),n,r].join("/")}function sj0({protocol:u,version:e,relayUrl:t,sdkVersion:n,auth:r,projectId:i,useOnCloseEvent:a}){const o=t.split("?"),s=HD0(u,e,n),f={auth:r,ua:s,projectId:i,useOnCloseEvent:a||void 0},l=UD0(o[1]||"",f);return o[0]+"?"+l}function no(u,e){return u.filter(t=>e.includes(t)).length===u.length}function fj0(u){return Object.fromEntries(u.entries())}function lj0(u){return new Map(Object.entries(u))}function cj0(u=Po.FIVE_MINUTES,e){const t=Po.toMiliseconds(u||Po.FIVE_MINUTES);let n,r,i;return{resolve:a=>{i&&n&&(clearTimeout(i),n(a))},reject:a=>{i&&r&&(clearTimeout(i),r(a))},done:()=>new Promise((a,o)=>{i=setTimeout(()=>{o(new Error(e))},t),n=a,r=o})}}function dj0(u,e,t){return new Promise(async(n,r)=>{const i=setTimeout(()=>r(new Error(t)),e);try{const a=await u;n(a)}catch(a){r(a)}clearTimeout(i)})}function Pj(u,e){if(typeof e=="string"&&e.startsWith(`${u}:`))return e;if(u.toLowerCase()==="topic"){if(typeof e!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${e}`}else if(u.toLowerCase()==="id"){if(typeof e!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${e}`}throw new Error(`Unknown expirer target type: ${u}`)}function Ej0(u){return Pj("topic",u)}function pj0(u){return Pj("id",u)}function hj0(u){const[e,t]=u.split(":"),n={id:void 0,topic:void 0};if(e==="topic"&&typeof t=="string")n.topic=t;else if(e==="id"&&Number.isInteger(Number(t)))n.id=Number(t);else throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${t}`);return n}function Cj0(u,e){return Po.fromMiliseconds((e||Date.now())+Po.toMiliseconds(u))}function mj0(u){return Date.now()>=Po.toMiliseconds(u)}function bj0(u,e){return`${u}${e?`:${e}`:""}`}function mh(u=[],e=[]){return[...new Set([...u,...e])]}async function gj0({id:u,topic:e,wcDeepLink:t}){try{if(!t)return;const n=typeof t=="string"?JSON.parse(t):t;let r=n==null?void 0:n.href;if(typeof r!="string")return;r.endsWith("/")&&(r=r.slice(0,-1));const i=`${r}/wc?requestId=${u}&sessionTopic=${e}`,a=Jc();a===Mt.browser?i.startsWith("https://")?window.open(i,"_blank","noreferrer noopener"):window.open(i,"_self","noreferrer noopener"):a===Mt.reactNative&&typeof(global==null?void 0:global.Linking)<"u"&&await global.Linking.openURL(i)}catch(n){console.error(n)}}const GD0="irn";function Aj0(u){return(u==null?void 0:u.relay)||{protocol:GD0}}function yj0(u){const e=TD0[u];if(typeof e>"u")throw new Error(`Relay Protocol not supported: ${u}`);return e}var VD0=Object.defineProperty,bx=Object.getOwnPropertySymbols,KD0=Object.prototype.hasOwnProperty,QD0=Object.prototype.propertyIsEnumerable,gx=(u,e,t)=>e in u?VD0(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,JD0=(u,e)=>{for(var t in e||(e={}))KD0.call(e,t)&&gx(u,t,e[t]);if(bx)for(var t of bx(e))QD0.call(e,t)&&gx(u,t,e[t]);return u};function ZD0(u,e="-"){const t={},n="relay"+e;return Object.keys(u).forEach(r=>{if(r.startsWith(n)){const i=r.replace(n,""),a=u[r];t[i]=a}}),t}function vj0(u){const e=u.indexOf(":"),t=u.indexOf("?")!==-1?u.indexOf("?"):void 0,n=u.substring(0,e),r=u.substring(e+1,t).split("@"),i=typeof t<"u"?u.substring(t):"",a=R1.parse(i);return{protocol:n,topic:YD0(r[0]),version:parseInt(r[1],10),symKey:a.symKey,relay:ZD0(a)}}function YD0(u){return u.startsWith("//")?u.substring(2):u}function XD0(u,e="-"){const t="relay",n={};return Object.keys(u).forEach(r=>{const i=t+e+r;u[r]&&(n[i]=u[r])}),n}function Bj0(u){return`${u.protocol}:${u.topic}@${u.version}?`+R1.stringify(JD0({symKey:u.symKey},XD0(u.relay)))}var uw0=Object.defineProperty,ew0=Object.defineProperties,tw0=Object.getOwnPropertyDescriptors,Ax=Object.getOwnPropertySymbols,nw0=Object.prototype.hasOwnProperty,rw0=Object.prototype.propertyIsEnumerable,yx=(u,e,t)=>e in u?uw0(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,iw0=(u,e)=>{for(var t in e||(e={}))nw0.call(e,t)&&yx(u,t,e[t]);if(Ax)for(var t of Ax(e))rw0.call(e,t)&&yx(u,t,e[t]);return u},aw0=(u,e)=>ew0(u,tw0(e));function U3(u){const e=[];return u.forEach(t=>{const[n,r]=t.split(":");e.push(`${n}:${r}`)}),e}function ow0(u){const e=[];return Object.values(u).forEach(t=>{e.push(...U3(t.accounts))}),e}function sw0(u,e){const t=[];return Object.values(u).forEach(n=>{U3(n.accounts).includes(e)&&t.push(...n.methods)}),t}function fw0(u,e){const t=[];return Object.values(u).forEach(n=>{U3(n.accounts).includes(e)&&t.push(...n.events)}),t}function Fj0(u,e){const t=gw0(u,e);if(t)throw new Error(t.message);const n={};for(const[r,i]of Object.entries(u))n[r]={methods:i.methods,events:i.events,chains:i.accounts.map(a=>`${a.split(":")[0]}:${a.split(":")[1]}`)};return n}function Ij(u){return u.includes(":")}function lw0(u){return Ij(u)?u.split(":")[0]:u}function Oj(u){var e,t,n;const r={};if(!dy(u))return r;for(const[i,a]of Object.entries(u)){const o=Ij(i)?[i]:a.chains,s=a.methods||[],f=a.events||[],l=lw0(i);r[l]=aw0(iw0({},r[l]),{chains:mh(o,(e=r[l])==null?void 0:e.chains),methods:mh(s,(t=r[l])==null?void 0:t.methods),events:mh(f,(n=r[l])==null?void 0:n.events)})}return r}const cw0={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},dw0={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function Ni(u,e){const{message:t,code:n}=dw0[u];return{message:e?`${t} ${e}`:t,code:n}}function u3(u,e){const{message:t,code:n}=cw0[u];return{message:e?`${t} ${e}`:t,code:n}}function ZE(u,e){return Array.isArray(u)?typeof e<"u"&&u.length?u.every(e):!0:!1}function dy(u){return Object.getPrototypeOf(u)===Object.prototype&&Object.keys(u).length}function Io(u){return typeof u>"u"}function vn(u,e){return e&&Io(u)?!0:typeof u=="string"&&!!u.trim().length}function Ey(u,e){return e&&Io(u)?!0:typeof u=="number"&&!isNaN(u)}function Dj0(u,e){const{requiredNamespaces:t}=e,n=Object.keys(u.namespaces),r=Object.keys(t);let i=!0;return no(r,n)?(n.forEach(a=>{const{accounts:o,methods:s,events:f}=u.namespaces[a],l=U3(o),c=t[a];(!no(xj(a,c),l)||!no(c.methods,s)||!no(c.events,f))&&(i=!1)}),i):!1}function t9(u){return vn(u,!1)&&u.includes(":")?u.split(":").length===2:!1}function Ew0(u){if(vn(u,!1)&&u.includes(":")){const e=u.split(":");if(e.length===3){const t=e[0]+":"+e[1];return!!e[2]&&t9(t)}}return!1}function wj0(u){if(vn(u,!1))try{return typeof new URL(u)<"u"}catch{return!1}return!1}function xj0(u){var e;return(e=u==null?void 0:u.proposer)==null?void 0:e.publicKey}function kj0(u){return u==null?void 0:u.topic}function _j0(u,e){let t=null;return vn(u==null?void 0:u.publicKey,!1)||(t=Ni("MISSING_OR_INVALID",`${e} controller public key should be a string`)),t}function vx(u){let e=!0;return ZE(u)?u.length&&(e=u.every(t=>vn(t,!1))):e=!1,e}function pw0(u,e,t){let n=null;return ZE(e)&&e.length?e.forEach(r=>{n||t9(r)||(n=u3("UNSUPPORTED_CHAINS",`${t}, chain ${r} should be a string and conform to "namespace:chainId" format`))}):t9(u)||(n=u3("UNSUPPORTED_CHAINS",`${t}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),n}function hw0(u,e,t){let n=null;return Object.entries(u).forEach(([r,i])=>{if(n)return;const a=pw0(r,xj(r,i),`${e} ${t}`);a&&(n=a)}),n}function Cw0(u,e){let t=null;return ZE(u)?u.forEach(n=>{t||Ew0(n)||(t=u3("UNSUPPORTED_ACCOUNTS",`${e}, account ${n} should be a string and conform to "namespace:chainId:address" format`))}):t=u3("UNSUPPORTED_ACCOUNTS",`${e}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),t}function mw0(u,e){let t=null;return Object.values(u).forEach(n=>{if(t)return;const r=Cw0(n==null?void 0:n.accounts,`${e} namespace`);r&&(t=r)}),t}function bw0(u,e){let t=null;return vx(u==null?void 0:u.methods)?vx(u==null?void 0:u.events)||(t=u3("UNSUPPORTED_EVENTS",`${e}, events should be an array of strings or empty array for no events`)):t=u3("UNSUPPORTED_METHODS",`${e}, methods should be an array of strings or empty array for no methods`),t}function Rj(u,e){let t=null;return Object.values(u).forEach(n=>{if(t)return;const r=bw0(n,`${e}, namespace`);r&&(t=r)}),t}function Sj0(u,e,t){let n=null;if(u&&dy(u)){const r=Rj(u,e);r&&(n=r);const i=hw0(u,e,t);i&&(n=i)}else n=Ni("MISSING_OR_INVALID",`${e}, ${t} should be an object with data`);return n}function gw0(u,e){let t=null;if(u&&dy(u)){const n=Rj(u,e);n&&(t=n);const r=mw0(u,e);r&&(t=r)}else t=Ni("MISSING_OR_INVALID",`${e}, namespaces should be an object with data`);return t}function Aw0(u){return vn(u.protocol,!0)}function Tj0(u,e){let t=!1;return e&&!u?t=!0:u&&ZE(u)&&u.length&&u.forEach(n=>{t=Aw0(n)}),t}function Pj0(u){return typeof u=="number"}function Ij0(u){return typeof u<"u"&&typeof u!==null}function Oj0(u){return!(!u||typeof u!="object"||!u.code||!Ey(u.code,!1)||!u.message||!vn(u.message,!1))}function Rj0(u){return!(Io(u)||!vn(u.method,!1))}function Nj0(u){return!(Io(u)||Io(u.result)&&Io(u.error)||!Ey(u.id,!1)||!vn(u.jsonrpc,!1))}function Mj0(u){return!(Io(u)||!vn(u.name,!1))}function jj0(u,e){return!(!t9(e)||!ow0(u).includes(e))}function zj0(u,e,t){return vn(t,!1)?sw0(u,e).includes(t):!1}function Lj0(u,e,t){return vn(t,!1)?fw0(u,e).includes(t):!1}function $j0(u,e,t){let n=null;const r=yw0(u),i=vw0(e),a=Object.keys(r),o=Object.keys(i),s=Bx(Object.keys(u)),f=Bx(Object.keys(e)),l=s.filter(c=>!f.includes(c));return l.length&&(n=Ni("NON_CONFORMING_NAMESPACES",`${t} namespaces keys don't satisfy requiredNamespaces. Required: ${l.toString()} - Received: ${Object.keys(e).toString()}`)),to(a,o)||(n=Ri("NON_CONFORMING_NAMESPACES",`${t} namespaces chains don't satisfy required namespaces. + Received: ${Object.keys(e).toString()}`)),no(a,o)||(n=Ni("NON_CONFORMING_NAMESPACES",`${t} namespaces chains don't satisfy required namespaces. Required: ${a.toString()} - Approved: ${o.toString()}`)),Object.keys(e).forEach(c=>{if(!c.includes(":")||n)return;const d=U3(e[c].accounts);d.includes(c)||(n=Ri("NON_CONFORMING_NAMESPACES",`${t} namespaces accounts don't satisfy namespace accounts for ${c} + Approved: ${o.toString()}`)),Object.keys(e).forEach(c=>{if(!c.includes(":")||n)return;const d=U3(e[c].accounts);d.includes(c)||(n=Ni("NON_CONFORMING_NAMESPACES",`${t} namespaces accounts don't satisfy namespace accounts for ${c} Required: ${c} - Approved: ${d.toString()}`))}),a.forEach(c=>{n||(to(r[c].methods,i[c].methods)?to(r[c].events,i[c].events)||(n=Ri("NON_CONFORMING_NAMESPACES",`${t} namespaces events don't satisfy namespace events for ${c}`)):n=Ri("NON_CONFORMING_NAMESPACES",`${t} namespaces methods don't satisfy namespace methods for ${c}`))}),n}function yw0(u){const e={};return Object.keys(u).forEach(t=>{var n;t.includes(":")?e[t]=u[t]:(n=u[t].chains)==null||n.forEach(r=>{e[r]={methods:u[t].methods,events:u[t].events}})}),e}function vx(u){return[...new Set(u.map(e=>e.includes(":")?e.split(":")[0]:e))]}function vw0(u){const e={};return Object.keys(u).forEach(t=>{if(t.includes(":"))e[t]=u[t];else{const n=U3(u[t].accounts);n==null||n.forEach(r=>{e[r]={accounts:u[t].accounts.filter(i=>i.includes(`${r}:`)),methods:u[t].methods,events:u[t].events}})}}),e}function Uj0(u,e){return dy(u,!1)&&u<=e.max&&u>=e.min}function Wj0(){const u=Qc();return new Promise(e=>{switch(u){case Mt.browser:e(Bw0());break;case Mt.reactNative:e(Fw0());break;case Mt.node:e(Dw0());break;default:e(!0)}})}function Bw0(){return ly()&&(navigator==null?void 0:navigator.onLine)}async function Fw0(){if(QE()&&typeof global<"u"&&global!=null&&global.NetInfo){const u=await(global==null?void 0:global.NetInfo.fetch());return u==null?void 0:u.isConnected}return!0}function Dw0(){return!0}function qj0(u){switch(Qc()){case Mt.browser:ww0(u);break;case Mt.reactNative:xw0(u);break}}function ww0(u){!QE()&&ly()&&(window.addEventListener("online",()=>u(!0)),window.addEventListener("offline",()=>u(!1)))}function xw0(u){QE()&&typeof global<"u"&&global!=null&&global.NetInfo&&(global==null||global.NetInfo.addEventListener(e=>u(e==null?void 0:e.isConnected)))}const mh={};class Hj0{static get(e){return mh[e]}static set(e,t){mh[e]=t}static delete(e){delete mh[e]}}var Nj="eip155",kw0="store",Mj="requestedChains",QC="wallet_addEthereumChain",Pu,Ql,F5,JC,Ey,jj,D5,ZC,YC,zj,t9,py,Us,Dl,n9,hy,r9,Cy,i9,my,Lj=class extends Tc{constructor(u){super({...u,options:{isNewChainsStale:!0,...u.options}}),re(this,F5),re(this,Ey),re(this,D5),re(this,YC),re(this,t9),re(this,Us),re(this,n9),re(this,r9),re(this,i9),this.id="walletConnect",this.name="WalletConnect",this.ready=!0,re(this,Pu,void 0),re(this,Ql,void 0),this.onAccountsChanged=e=>{e.length===0?this.emit("disconnect"):this.emit("change",{account:ju(e[0])})},this.onChainChanged=e=>{const t=Number(e),n=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:n}})},this.onDisconnect=()=>{te(this,Us,Dl).call(this,[]),this.emit("disconnect")},this.onDisplayUri=e=>{this.emit("message",{type:"display_uri",data:e})},this.onConnect=()=>{this.emit("connect",{})},te(this,F5,JC).call(this)}async connect({chainId:u,pairingTopic:e}={}){var t,n,r,i,a;try{let o=u;if(!o){const p=(t=this.storage)==null?void 0:t.getItem(kw0),h=(i=(r=(n=p==null?void 0:p.state)==null?void 0:n.data)==null?void 0:r.chain)==null?void 0:i.id;h&&!this.isChainUnsupported(h)?o=h:o=(a=this.chains[0])==null?void 0:a.id}if(!o)throw new Error("No chains found on connector.");const s=await this.getProvider();te(this,YC,zj).call(this);const f=te(this,D5,ZC).call(this);if(s.session&&f&&await s.disconnect(),!s.session||f){const p=this.chains.filter(h=>h.id!==o).map(h=>h.id);this.emit("message",{type:"connecting"}),await s.connect({pairingTopic:e,chains:[o],optionalChains:p.length?p:void 0}),te(this,Us,Dl).call(this,this.chains.map(({id:h})=>h))}const l=await s.enable(),c=ju(l[0]),d=await this.getChainId(),E=this.isChainUnsupported(d);return{account:c,chain:{id:d,unsupported:E}}}catch(o){throw/user rejected/i.test(o==null?void 0:o.message)?new Xu(o):o}}async disconnect(){const u=await this.getProvider();try{await u.disconnect()}catch(e){if(!/No matching key/i.test(e.message))throw e}finally{te(this,t9,py).call(this),te(this,Us,Dl).call(this,[])}}async getAccount(){const{accounts:u}=await this.getProvider();return ju(u[0])}async getChainId(){const{chainId:u}=await this.getProvider();return u}async getProvider({chainId:u}={}){return J0(this,Pu)||await te(this,F5,JC).call(this),u&&await this.switchChain(u),J0(this,Pu)}async getWalletClient({chainId:u}={}){const[e,t]=await Promise.all([this.getProvider({chainId:u}),this.getAccount()]),n=this.chains.find(r=>r.id===u);if(!e)throw new Error("provider is required.");return w3({account:t,chain:n,transport:F3(e)})}async isAuthorized(){try{const[u,e]=await Promise.all([this.getAccount(),this.getProvider()]),t=te(this,D5,ZC).call(this);if(!u)return!1;if(t&&e.session){try{await e.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(u){var t,n;const e=this.chains.find(r=>r.id===u);if(!e)throw new Wn(new Error("chain not found on connector."));try{const r=await this.getProvider(),i=te(this,r9,Cy).call(this),a=te(this,i9,my).call(this);if(!i.includes(u)&&a.includes(QC)){await r.request({method:QC,params:[{chainId:O0(e.id),blockExplorerUrls:[(n=(t=e.blockExplorers)==null?void 0:t.default)==null?void 0:n.url],chainName:e.name,nativeCurrency:e.nativeCurrency,rpcUrls:[...e.rpcUrls.default.http]}]});const s=te(this,n9,hy).call(this);s.push(u),te(this,Us,Dl).call(this,s)}return await r.request({method:"wallet_switchEthereumChain",params:[{chainId:O0(u)}]}),e}catch(r){const i=typeof r=="string"?r:r==null?void 0:r.message;throw/user rejected request/i.test(i)?new Xu(r):new Wn(r)}}};Pu=new WeakMap;Ql=new WeakMap;F5=new WeakSet;JC=async function(){return!J0(this,Ql)&&typeof window<"u"&&ii(this,Ql,te(this,Ey,jj).call(this)),J0(this,Ql)};Ey=new WeakSet;jj=async function(){const{EthereumProvider:u,OPTIONAL_EVENTS:e,OPTIONAL_METHODS:t}=await q0(()=>import("./index.es-BWNWcA4u.js"),__vite__mapDeps([0,1])),[n,...r]=this.chains.map(({id:i})=>i);if(n){const{projectId:i,showQrModal:a=!0,qrModalOptions:o,metadata:s,relayUrl:f}=this.options;ii(this,Pu,await u.init({showQrModal:a,qrModalOptions:o,projectId:i,optionalMethods:t,optionalEvents:e,chains:[n],optionalChains:r.length?r:void 0,rpcMap:Object.fromEntries(this.chains.map(l=>[l.id,l.rpcUrls.default.http[0]])),metadata:s,relayUrl:f}))}};D5=new WeakSet;ZC=function(){if(te(this,i9,my).call(this).includes(QC)||!this.options.isNewChainsStale)return!1;const e=te(this,n9,hy).call(this),t=this.chains.map(({id:r})=>r),n=te(this,r9,Cy).call(this);return n.length&&!n.some(r=>t.includes(r))?!1:!t.every(r=>e.includes(r))};YC=new WeakSet;zj=function(){J0(this,Pu)&&(te(this,t9,py).call(this),J0(this,Pu).on("accountsChanged",this.onAccountsChanged),J0(this,Pu).on("chainChanged",this.onChainChanged),J0(this,Pu).on("disconnect",this.onDisconnect),J0(this,Pu).on("session_delete",this.onDisconnect),J0(this,Pu).on("display_uri",this.onDisplayUri),J0(this,Pu).on("connect",this.onConnect))};t9=new WeakSet;py=function(){J0(this,Pu)&&(J0(this,Pu).removeListener("accountsChanged",this.onAccountsChanged),J0(this,Pu).removeListener("chainChanged",this.onChainChanged),J0(this,Pu).removeListener("disconnect",this.onDisconnect),J0(this,Pu).removeListener("session_delete",this.onDisconnect),J0(this,Pu).removeListener("display_uri",this.onDisplayUri),J0(this,Pu).removeListener("connect",this.onConnect))};Us=new WeakSet;Dl=function(u){var e;(e=this.storage)==null||e.setItem(Mj,u)};n9=new WeakSet;hy=function(){var u;return((u=this.storage)==null?void 0:u.getItem(Mj))??[]};r9=new WeakSet;Cy=function(){var n,r,i;if(!J0(this,Pu))return[];const u=(n=J0(this,Pu).session)==null?void 0:n.namespaces;return u?((i=(r=Oj(u)[Nj])==null?void 0:r.chains)==null?void 0:i.map(a=>parseInt(a.split(":")[1]||"")))??[]:[]};i9=new WeakSet;my=function(){var n,r;if(!J0(this,Pu))return[];const u=(n=J0(this,Pu).session)==null?void 0:n.namespaces;return u?((r=Oj(u)[Nj])==null?void 0:r.methods)??[]:[]};var wl,Ws,_w0=class extends Tc{constructor({chains:u,options:e}){super({chains:u,options:{reloadOnDisconnect:!1,...e}}),this.id="coinbaseWallet",this.name="Coinbase Wallet",this.ready=!0,re(this,wl,void 0),re(this,Ws,void 0),this.onAccountsChanged=t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:ju(t[0])})},this.onChainChanged=t=>{const n=Ko(t),r=this.isChainUnsupported(n);this.emit("change",{chain:{id:n,unsupported:r}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect({chainId:u}={}){try{const e=await this.getProvider();e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect),this.emit("message",{type:"connecting"});const t=await e.enable(),n=ju(t[0]);let r=await this.getChainId(),i=this.isChainUnsupported(r);return u&&r!==u&&(r=(await this.switchChain(u)).id,i=this.isChainUnsupported(r)),{account:n,chain:{id:r,unsupported:i}}}catch(e){throw/(user closed modal|accounts received is empty)/i.test(e.message)?new Xu(e):e}}async disconnect(){if(!J0(this,Ws))return;const u=await this.getProvider();u.removeListener("accountsChanged",this.onAccountsChanged),u.removeListener("chainChanged",this.onChainChanged),u.removeListener("disconnect",this.onDisconnect),u.disconnect(),u.close()}async getAccount(){const e=await(await this.getProvider()).request({method:"eth_accounts"});return ju(e[0])}async getChainId(){const u=await this.getProvider();return Ko(u.chainId)}async getProvider(){var u;if(!J0(this,Ws)){let e=(await q0(()=>import("./index-N7ZJmHWm.js").then(a=>a.i),__vite__mapDeps([2,3]))).default;typeof e!="function"&&typeof e.default=="function"&&(e=e.default),ii(this,wl,new e(this.options));const t=(u=J0(this,wl).walletExtension)==null?void 0:u.getChainId(),n=this.chains.find(a=>this.options.chainId?a.id===this.options.chainId:a.id===t)||this.chains[0],r=this.options.chainId||(n==null?void 0:n.id),i=this.options.jsonRpcUrl||(n==null?void 0:n.rpcUrls.default.http[0]);ii(this,Ws,J0(this,wl).makeWeb3Provider(i,r))}return J0(this,Ws)}async getWalletClient({chainId:u}={}){const[e,t]=await Promise.all([this.getProvider(),this.getAccount()]),n=this.chains.find(r=>r.id===u);if(!e)throw new Error("provider is required.");return w3({account:t,chain:n,transport:F3(e)})}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(u){var n;const e=await this.getProvider(),t=O0(u);try{return await e.request({method:"wallet_switchEthereumChain",params:[{chainId:t}]}),this.chains.find(r=>r.id===u)??{id:u,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(r){const i=this.chains.find(a=>a.id===u);if(!i)throw new PR({chainId:u,connectorId:this.id});if(r.code===4902)try{return await e.request({method:"wallet_addEthereumChain",params:[{chainId:t,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:[((n=i.rpcUrls.public)==null?void 0:n.http[0])??""],blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(a){throw new Xu(a)}throw new Wn(r)}}async watchAsset({address:u,decimals:e=18,image:t,symbol:n}){return(await this.getProvider()).request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:u,decimals:e,image:t,symbol:n}}})}};wl=new WeakMap;Ws=new WeakMap;var w5,Sw0=class extends K4{constructor({chains:u,options:e}={}){const t={name:"MetaMask",shimDisconnect:!0,getProvider(){function n(i){if(i!=null&&i.isMetaMask&&!(i.isBraveWallet&&!i._events&&!i._state)&&!i.isApexWallet&&!i.isAvalanche&&!i.isBitKeep&&!i.isBlockWallet&&!i.isCoin98&&!i.isFordefi&&!i.isMathWallet&&!(i.isOkxWallet||i.isOKExWallet)&&!(i.isOneInchIOSWallet||i.isOneInchAndroidWallet)&&!i.isOpera&&!i.isPortal&&!i.isRabby&&!i.isDefiant&&!i.isTokenPocket&&!i.isTokenary&&!i.isZeal&&!i.isZerion)return i}if(typeof window>"u")return;const r=window.ethereum;return r!=null&&r.providers?r.providers.find(n):n(r)},...e};super({chains:u,options:t}),this.id="metaMask",this.shimDisconnectKey=`${this.id}.shimDisconnect`,re(this,w5,void 0),ii(this,w5,t.UNSTABLE_shimOnConnectSelectAccount)}async connect({chainId:u}={}){var e,t,n,r;try{const i=await this.getProvider();if(!i)throw new ft;i.on&&(i.on("accountsChanged",this.onAccountsChanged),i.on("chainChanged",this.onChainChanged),i.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let a=null;if(J0(this,w5)&&((e=this.options)!=null&&e.shimDisconnect)&&!((t=this.storage)!=null&&t.getItem(this.shimDisconnectKey))&&(a=await this.getAccount().catch(()=>null),!!a))try{await i.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}),a=await this.getAccount()}catch(l){if(this.isUserRejectedRequestError(l))throw new Xu(l);if(l.code===new ni(l).code)throw l}if(!a){const f=await i.request({method:"eth_requestAccounts"});a=ju(f[0])}let o=await this.getChainId(),s=this.isChainUnsupported(o);return u&&o!==u&&(o=(await this.switchChain(u)).id,s=this.isChainUnsupported(o)),(n=this.options)!=null&&n.shimDisconnect&&((r=this.storage)==null||r.setItem(this.shimDisconnectKey,!0)),{account:a,chain:{id:o,unsupported:s},provider:i}}catch(i){throw this.isUserRejectedRequestError(i)?new Xu(i):i.code===-32002?new ni(i):i}}};w5=new WeakMap;var Tw0=/(imtoken|metamask|rainbow|trust wallet|uniswap wallet|ledger)/i,qa,XC,$j,Pw0=class extends Tc{constructor(){super(...arguments),re(this,XC),this.id="walletConnectLegacy",this.name="WalletConnectLegacy",this.ready=!0,re(this,qa,void 0),this.onAccountsChanged=u=>{u.length===0?this.emit("disconnect"):this.emit("change",{account:ju(u[0])})},this.onChainChanged=u=>{const e=Ko(u),t=this.isChainUnsupported(e);this.emit("change",{chain:{id:e,unsupported:t}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect({chainId:u}={}){var e,t,n,r,i,a;try{let o=u;if(!o){const p=(e=this.storage)==null?void 0:e.getItem("store"),h=(r=(n=(t=p==null?void 0:p.state)==null?void 0:t.data)==null?void 0:n.chain)==null?void 0:r.id;h&&!this.isChainUnsupported(h)&&(o=h)}const s=await this.getProvider({chainId:o,create:!0});s.on("accountsChanged",this.onAccountsChanged),s.on("chainChanged",this.onChainChanged),s.on("disconnect",this.onDisconnect),setTimeout(()=>this.emit("message",{type:"connecting"}),0);const f=await s.enable(),l=ju(f[0]),c=await this.getChainId(),d=this.isChainUnsupported(c),E=((a=(i=s.connector)==null?void 0:i.peerMeta)==null?void 0:a.name)??"";return Tw0.test(E)&&(this.switchChain=te(this,XC,$j)),{account:l,chain:{id:c,unsupported:d}}}catch(o){throw/user closed modal/i.test(o.message)?new Xu(o):o}}async disconnect(){const u=await this.getProvider();await u.disconnect(),u.removeListener("accountsChanged",this.onAccountsChanged),u.removeListener("chainChanged",this.onChainChanged),u.removeListener("disconnect",this.onDisconnect),typeof localStorage<"u"&&localStorage.removeItem("walletconnect")}async getAccount(){const e=(await this.getProvider()).accounts;return ju(e[0])}async getChainId(){const u=await this.getProvider();return Ko(u.chainId)}async getProvider({chainId:u,create:e}={}){var t,n;if(!J0(this,qa)||u||e){const r=(t=this.options)!=null&&t.infuraId?{}:this.chains.reduce((a,o)=>({...a,[o.id]:o.rpcUrls.default.http[0]}),{}),i=(await q0(()=>import("./index-wvsXXRnL.js"),__vite__mapDeps([4,1,5,3]))).default;ii(this,qa,new i({...this.options,chainId:u,rpc:{...r,...(n=this.options)==null?void 0:n.rpc}})),J0(this,qa).http=await J0(this,qa).setHttpProvider(u)}return J0(this,qa)}async getWalletClient({chainId:u}={}){const[e,t]=await Promise.all([this.getProvider({chainId:u}),this.getAccount()]),n=this.chains.find(r=>r.id===u);if(!e)throw new Error("provider is required.");return w3({account:t,chain:n,transport:F3(e)})}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}};qa=new WeakMap;XC=new WeakSet;$j=async function(u){const e=await this.getProvider(),t=O0(u);try{return await Promise.race([e.request({method:"wallet_switchEthereumChain",params:[{chainId:t}]}),new Promise(n=>this.on("change",({chain:r})=>{(r==null?void 0:r.id)===u&&n(u)}))]),this.chains.find(n=>n.id===u)??{id:u,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(n){const r=typeof n=="string"?n:n==null?void 0:n.message;throw/user rejected request/i.test(r)?new Xu(n):new Wn(n)}};var Uj={},ZE={},by={exports:{}},Sf=typeof Reflect=="object"?Reflect:null,Bx=Sf&&typeof Sf.apply=="function"?Sf.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},x5;Sf&&typeof Sf.ownKeys=="function"?x5=Sf.ownKeys:Object.getOwnPropertySymbols?x5=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:x5=function(e){return Object.getOwnPropertyNames(e)};function Iw0(u){console&&console.warn&&console.warn(u)}var Wj=Number.isNaN||function(e){return e!==e};function Au(){Au.init.call(this)}by.exports=Au;by.exports.once=Mw0;Au.EventEmitter=Au;Au.prototype._events=void 0;Au.prototype._eventsCount=0;Au.prototype._maxListeners=void 0;var Fx=10;function YE(u){if(typeof u!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof u)}Object.defineProperty(Au,"defaultMaxListeners",{enumerable:!0,get:function(){return Fx},set:function(u){if(typeof u!="number"||u<0||Wj(u))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+u+".");Fx=u}});Au.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Au.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Wj(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function qj(u){return u._maxListeners===void 0?Au.defaultMaxListeners:u._maxListeners}Au.prototype.getMaxListeners=function(){return qj(this)};Au.prototype.emit=function(e){for(var t=[],n=1;n0&&(a=t[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var s=i[e];if(s===void 0)return!1;if(typeof s=="function")Bx(s,this,t);else for(var f=s.length,l=Qj(s,f),n=0;n0&&a.length>r&&!a.warned){a.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=u,o.type=e,o.count=a.length,Iw0(o)}return u}Au.prototype.addListener=function(e,t){return Hj(this,e,t,!1)};Au.prototype.on=Au.prototype.addListener;Au.prototype.prependListener=function(e,t){return Hj(this,e,t,!0)};function Ow0(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Gj(u,e,t){var n={fired:!1,wrapFn:void 0,target:u,type:e,listener:t},r=Ow0.bind(n);return r.listener=t,n.wrapFn=r,r}Au.prototype.once=function(e,t){return YE(t),this.on(e,Gj(this,e,t)),this};Au.prototype.prependOnceListener=function(e,t){return YE(t),this.prependListener(e,Gj(this,e,t)),this};Au.prototype.removeListener=function(e,t){var n,r,i,a,o;if(YE(t),r=this._events,r===void 0)return this;if(n=r[e],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():Rw0(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit("removeListener",e,o||t)}return this};Au.prototype.off=Au.prototype.removeListener;Au.prototype.removeAllListeners=function(e){var t,n,r;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r=0;r--)this.removeListener(e,t[r]);return this};function Vj(u,e,t){var n=u._events;if(n===void 0)return[];var r=n[e];return r===void 0?[]:typeof r=="function"?t?[r.listener||r]:[r]:t?Nw0(r):Qj(r,r.length)}Au.prototype.listeners=function(e){return Vj(this,e,!0)};Au.prototype.rawListeners=function(e){return Vj(this,e,!1)};Au.listenerCount=function(u,e){return typeof u.listenerCount=="function"?u.listenerCount(e):Kj.call(u,e)};Au.prototype.listenerCount=Kj;function Kj(u){var e=this._events;if(e!==void 0){var t=e[u];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Au.prototype.eventNames=function(){return this._eventsCount>0?x5(this._events):[]};function Qj(u,e){for(var t=new Array(e),n=0;n(s&&(s.hash=n[0]),s));case"eth_getTransactionReceipt":{let s=n[0];try{s=(await this.sdk.txs.getBySafeTxHash(s)).txHash||s}catch{}return this.sdk.eth.getTransactionReceipt([s]).then(f=>(f&&(f.transactionHash=n[0]),f))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(n[0]);case"eth_call":return this.sdk.eth.call([n[0],n[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([n[0]]);case"eth_gasPrice":return this.sdk.eth.getGasPrice();case"wallet_getPermissions":return this.sdk.wallet.getPermissions();case"wallet_requestPermissions":return this.sdk.wallet.requestPermissions(n[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([n[0]]);default:throw Error(`"${e.method}" not implemented`)}}send(e,t){e||t("Undefined request"),this.request(e).then(n=>t(null,{jsonrpc:"2.0",id:e.id,result:n})).catch(n=>t(n,null))}}ZE.SafeAppProvider=$w0;(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.SafeAppProvider=void 0;var e=ZE;Object.defineProperty(u,"SafeAppProvider",{enumerable:!0,get:function(){return e.SafeAppProvider}})})(Uj);var Yj={},a9={},Xj={},Jc={},Zc={};const Uw0="@safe-global/safe-apps-sdk",Ww0="8.1.0",qw0="SDK developed to integrate third-party apps with Safe app.",Hw0="dist/src/index.js",Gw0="dist/src/index.d.ts",Vw0=["dist/**/*","src/**/*","CHANGELOG.md","README.md"],Kw0=!1,Qw0=["Safe","sdk","apps"],Jw0={test:"jest","format-dist":`sed -i '' 's/"files":/"_files":/' dist/package.json`,build:"yarn rimraf dist && tsc && yarn format-dist"},Zw0="Safe (https://safe.global)",Yw0="MIT",Xw0={"@safe-global/safe-gateway-typescript-sdk":"^3.5.3",viem:"^1.0.0"},ux0={type:"git",url:"git+https://github.com/safe-global/safe-apps-sdk.git"},ex0={url:"https://github.com/safe-global/safe-apps-sdk/issues"},tx0="https://github.com/safe-global/safe-apps-sdk#readme",nx0={access:"public"},rx0={name:Uw0,version:Ww0,description:qw0,main:Hw0,typings:Gw0,_files:Vw0,sideEffects:Kw0,keywords:Qw0,scripts:Jw0,author:Zw0,license:Yw0,dependencies:Xw0,repository:ux0,bugs:ex0,homepage:tx0,publishConfig:nx0};var ix0=P0&&P0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Zc,"__esModule",{value:!0});Zc.getSDKVersion=void 0;const ax0=ix0(rx0),ox0=()=>ax0.default.version.split("-")[0];Zc.getSDKVersion=ox0;var up={};Object.defineProperty(up,"__esModule",{value:!0});up.generateRequestId=void 0;const sx0=u=>u.toString(16).padStart(2,"0"),fx0=u=>{const e=new Uint8Array((u||40)/2);return window.crypto.getRandomValues(e),Array.from(e,sx0).join("")},lx0=()=>typeof window<"u"?fx0(10):new Date().getTime().toString(36);up.generateRequestId=lx0;Object.defineProperty(Jc,"__esModule",{value:!0});Jc.MessageFormatter=void 0;const cx0=Zc,dx0=up;class ep{}Jc.MessageFormatter=ep;ep.makeRequest=(u,e)=>({id:(0,dx0.generateRequestId)(),method:u,params:e,env:{sdkVersion:(0,cx0.getSDKVersion)()}});ep.makeResponse=(u,e,t)=>({id:u,success:!0,version:t,data:e});ep.makeErrorResponse=(u,e,t)=>({id:u,success:!1,error:e,version:t});var gs={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.RestrictedMethods=u.Methods=void 0,function(e){e.sendTransactions="sendTransactions",e.rpcCall="rpcCall",e.getChainInfo="getChainInfo",e.getSafeInfo="getSafeInfo",e.getTxBySafeTxHash="getTxBySafeTxHash",e.getSafeBalances="getSafeBalances",e.signMessage="signMessage",e.signTypedMessage="signTypedMessage",e.getEnvironmentInfo="getEnvironmentInfo",e.getOffChainSignature="getOffChainSignature",e.requestAddressBook="requestAddressBook",e.wallet_getPermissions="wallet_getPermissions",e.wallet_requestPermissions="wallet_requestPermissions"}(u.Methods||(u.Methods={})),function(e){e.requestAddressBook="requestAddressBook"}(u.RestrictedMethods||(u.RestrictedMethods={}))})(gs);(function(u){var e=P0&&P0.__createBinding||(Object.create?function(i,a,o,s){s===void 0&&(s=o);var f=Object.getOwnPropertyDescriptor(a,o);(!f||("get"in f?!a.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return a[o]}}),Object.defineProperty(i,s,f)}:function(i,a,o,s){s===void 0&&(s=o),i[s]=a[o]}),t=P0&&P0.__exportStar||function(i,a){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(a,o)&&e(a,i,o)};Object.defineProperty(u,"__esModule",{value:!0});const n=Jc;class r{constructor(a=null,o=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:s,data:f,source:l})=>{const c=!f,d=!this.isServer&&l===window.parent,p=(typeof f.version<"u"&&parseInt(f.version.split(".")[0]))>=1;let h=!0;return Array.isArray(this.allowedOrigins)&&(h=this.allowedOrigins.find(g=>g.test(s))!==void 0),!c&&d&&p&&h},this.logIncomingMessage=s=>{console.info(`Safe Apps SDK v1: A message was received from origin ${s.origin}. `,s.data)},this.onParentMessage=s=>{this.isValidMessage(s)&&(this.debugMode&&this.logIncomingMessage(s),this.handleIncomingMessage(s.data))},this.handleIncomingMessage=s=>{const{id:f}=s,l=this.callbacks.get(f);l&&(l(s),this.callbacks.delete(f))},this.send=(s,f)=>{const l=n.MessageFormatter.makeRequest(s,f);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(l,"*"),new Promise((c,d)=>{this.callbacks.set(l.id,E=>{if(!E.success){d(new Error(E.error));return}c(E)})})},this.allowedOrigins=a,this.debugMode=o,this.isServer||window.addEventListener("message",this.onParentMessage)}}u.default=r,t(gs,u)})(Xj);var tp={},np={},rp={};Object.defineProperty(rp,"__esModule",{value:!0});rp.isObjectEIP712TypedData=void 0;const Ex0=u=>typeof u=="object"&&u!=null&&"domain"in u&&"types"in u&&"message"in u;rp.isObjectEIP712TypedData=Ex0;var uz={};Object.defineProperty(uz,"__esModule",{value:!0});var ez={},tz={},la={},dr={},gy=P0&&P0.__awaiter||function(u,e,t,n){function r(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function o(l){try{f(n.next(l))}catch(c){a(c)}}function s(l){try{f(n.throw(l))}catch(c){a(c)}}function f(l){l.done?i(l.value):r(l.value).then(o,s)}f((n=n.apply(u,e||[])).next())})};Object.defineProperty(dr,"__esModule",{value:!0});dr.deleteData=dr.fetchData=dr.stringifyQuery=dr.insertParams=void 0;const px0=u=>typeof u=="object"&&u!==null&&"code"in u&&"message"in u;function hx0(u,e,t){return u.replace(new RegExp(`\\{${e}\\}`,"g"),t)}function Cx0(u,e){return e?Object.keys(e).reduce((t,n)=>hx0(t,n,String(e[n])),u):u}dr.insertParams=Cx0;function mx0(u){if(!u)return"";const e=new URLSearchParams;Object.keys(u).forEach(n=>{u[n]!=null&&e.append(n,String(u[n]))});const t=e.toString();return t?`?${t}`:""}dr.stringifyQuery=mx0;function nz(u){return gy(this,void 0,void 0,function*(){let e;try{e=yield u.json()}catch{if(u.headers&&u.headers.get("content-length")!=="0")throw new Error(`Invalid response content: ${u.statusText}`)}if(!u.ok){const t=px0(e)?`${e.code}: ${e.message}`:u.statusText;throw new Error(t)}return e})}function bx0(u,e){return gy(this,void 0,void 0,function*(){let t;e!=null&&(t={method:"POST",body:typeof e=="string"?e:JSON.stringify(e),headers:{"Content-Type":"application/json"}});const n=yield fetch(u,t);return nz(n)})}dr.fetchData=bx0;function gx0(u){return gy(this,void 0,void 0,function*(){const t=yield fetch(u,{method:"DELETE"});return nz(t)})}dr.deleteData=gx0;Object.defineProperty(la,"__esModule",{value:!0});la.deleteEndpoint=la.getEndpoint=la.postEndpoint=void 0;const e3=dr;function Ay(u,e,t,n){const r=(0,e3.insertParams)(e,t),i=(0,e3.stringifyQuery)(n);return`${u}${r}${i}`}function Ax0(u,e,t){const n=Ay(u,e,t==null?void 0:t.path,t==null?void 0:t.query);return(0,e3.fetchData)(n,t==null?void 0:t.body)}la.postEndpoint=Ax0;function yx0(u,e,t,n){if(n)return(0,e3.fetchData)(n);const r=Ay(u,e,t==null?void 0:t.path,t==null?void 0:t.query);return(0,e3.fetchData)(r)}la.getEndpoint=yx0;function vx0(u,e,t){const n=Ay(u,e,t==null?void 0:t.path);return(0,e3.deleteData)(n)}la.deleteEndpoint=vx0;var ip={};Object.defineProperty(ip,"__esModule",{value:!0});ip.DEFAULT_BASE_URL=void 0;ip.DEFAULT_BASE_URL="https://safe-client.safe.global";var rz={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.ImplementationVersionState=void 0,function(e){e.UP_TO_DATE="UP_TO_DATE",e.OUTDATED="OUTDATED",e.UNKNOWN="UNKNOWN"}(u.ImplementationVersionState||(u.ImplementationVersionState={}))})(rz);var iz={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.SafeAppSocialPlatforms=u.SafeAppFeatures=u.SafeAppAccessPolicyTypes=void 0,function(e){e.NoRestrictions="NO_RESTRICTIONS",e.DomainAllowlist="DOMAIN_ALLOWLIST"}(u.SafeAppAccessPolicyTypes||(u.SafeAppAccessPolicyTypes={})),function(e){e.BATCHED_TRANSACTIONS="BATCHED_TRANSACTIONS"}(u.SafeAppFeatures||(u.SafeAppFeatures={})),function(e){e.TWITTER="TWITTER",e.GITHUB="GITHUB",e.DISCORD="DISCORD"}(u.SafeAppSocialPlatforms||(u.SafeAppSocialPlatforms={}))})(iz);var az={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.LabelValue=u.DetailedExecutionInfoType=u.TransactionListItemType=u.ConflictType=u.TransactionInfoType=u.SettingsInfoType=u.TransactionTokenType=u.TransferDirection=u.TransactionStatus=u.Operation=void 0,function(e){e[e.CALL=0]="CALL",e[e.DELEGATE=1]="DELEGATE"}(u.Operation||(u.Operation={})),function(e){e.AWAITING_CONFIRMATIONS="AWAITING_CONFIRMATIONS",e.AWAITING_EXECUTION="AWAITING_EXECUTION",e.CANCELLED="CANCELLED",e.FAILED="FAILED",e.SUCCESS="SUCCESS"}(u.TransactionStatus||(u.TransactionStatus={})),function(e){e.INCOMING="INCOMING",e.OUTGOING="OUTGOING",e.UNKNOWN="UNKNOWN"}(u.TransferDirection||(u.TransferDirection={})),function(e){e.ERC20="ERC20",e.ERC721="ERC721",e.NATIVE_COIN="NATIVE_COIN"}(u.TransactionTokenType||(u.TransactionTokenType={})),function(e){e.SET_FALLBACK_HANDLER="SET_FALLBACK_HANDLER",e.ADD_OWNER="ADD_OWNER",e.REMOVE_OWNER="REMOVE_OWNER",e.SWAP_OWNER="SWAP_OWNER",e.CHANGE_THRESHOLD="CHANGE_THRESHOLD",e.CHANGE_IMPLEMENTATION="CHANGE_IMPLEMENTATION",e.ENABLE_MODULE="ENABLE_MODULE",e.DISABLE_MODULE="DISABLE_MODULE",e.SET_GUARD="SET_GUARD",e.DELETE_GUARD="DELETE_GUARD"}(u.SettingsInfoType||(u.SettingsInfoType={})),function(e){e.TRANSFER="Transfer",e.SETTINGS_CHANGE="SettingsChange",e.CUSTOM="Custom",e.CREATION="Creation"}(u.TransactionInfoType||(u.TransactionInfoType={})),function(e){e.NONE="None",e.HAS_NEXT="HasNext",e.END="End"}(u.ConflictType||(u.ConflictType={})),function(e){e.TRANSACTION="TRANSACTION",e.LABEL="LABEL",e.CONFLICT_HEADER="CONFLICT_HEADER",e.DATE_LABEL="DATE_LABEL"}(u.TransactionListItemType||(u.TransactionListItemType={})),function(e){e.MULTISIG="MULTISIG",e.MODULE="MODULE"}(u.DetailedExecutionInfoType||(u.DetailedExecutionInfoType={})),function(e){e.Queued="Queued",e.Next="Next"}(u.LabelValue||(u.LabelValue={}))})(az);var oz={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.FEATURES=u.GAS_PRICE_TYPE=u.RPC_AUTHENTICATION=void 0,function(e){e.API_KEY_PATH="API_KEY_PATH",e.NO_AUTHENTICATION="NO_AUTHENTICATION",e.UNKNOWN="UNKNOWN"}(u.RPC_AUTHENTICATION||(u.RPC_AUTHENTICATION={})),function(e){e.ORACLE="ORACLE",e.FIXED="FIXED",e.FIXED_1559="FIXED1559",e.UNKNOWN="UNKNOWN"}(u.GAS_PRICE_TYPE||(u.GAS_PRICE_TYPE={})),function(e){e.ERC721="ERC721",e.SAFE_APPS="SAFE_APPS",e.CONTRACT_INTERACTION="CONTRACT_INTERACTION",e.DOMAIN_LOOKUP="DOMAIN_LOOKUP",e.SPENDING_LIMIT="SPENDING_LIMIT",e.EIP1559="EIP1559",e.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL",e.TX_SIMULATION="TX_SIMULATION",e.EIP1271="EIP1271"}(u.FEATURES||(u.FEATURES={}))})(oz);var sz={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.TokenType=void 0,function(e){e.ERC20="ERC20",e.ERC721="ERC721",e.NATIVE_TOKEN="NATIVE_TOKEN"}(u.TokenType||(u.TokenType={}))})(sz);var fz={};Object.defineProperty(fz,"__esModule",{value:!0});var lz={};Object.defineProperty(lz,"__esModule",{value:!0});var cz={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.SafeMessageStatus=u.SafeMessageListItemType=void 0,function(e){e.DATE_LABEL="DATE_LABEL",e.MESSAGE="MESSAGE"}(u.SafeMessageListItemType||(u.SafeMessageListItemType={})),function(e){e.NEEDS_CONFIRMATION="NEEDS_CONFIRMATION",e.CONFIRMED="CONFIRMED"}(u.SafeMessageStatus||(u.SafeMessageStatus={}))})(cz);var dz={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.DeviceType=void 0,function(e){e.ANDROID="ANDROID",e.IOS="IOS",e.WEB="WEB"}(u.DeviceType||(u.DeviceType={}))})(dz);(function(u){var e=P0&&P0.__createBinding||(Object.create?function(q,U,i0,s0){s0===void 0&&(s0=i0);var o0=Object.getOwnPropertyDescriptor(U,i0);(!o0||("get"in o0?!U.__esModule:o0.writable||o0.configurable))&&(o0={enumerable:!0,get:function(){return U[i0]}}),Object.defineProperty(q,s0,o0)}:function(q,U,i0,s0){s0===void 0&&(s0=i0),q[s0]=U[i0]}),t=P0&&P0.__exportStar||function(q,U){for(var i0 in q)i0!=="default"&&!Object.prototype.hasOwnProperty.call(U,i0)&&e(U,q,i0)};Object.defineProperty(u,"__esModule",{value:!0}),u.unregisterDevice=u.unregisterSafe=u.registerDevice=u.getDelegates=u.confirmSafeMessage=u.proposeSafeMessage=u.getSafeMessage=u.getSafeMessages=u.getDecodedData=u.getMasterCopies=u.getSafeApps=u.getChainConfig=u.getChainsConfig=u.proposeTransaction=u.getNonces=u.postSafeGasEstimation=u.getTransactionDetails=u.getTransactionQueue=u.getTransactionHistory=u.getCollectiblesPage=u.getCollectibles=u.getOwnedSafes=u.getFiatCurrencies=u.getBalances=u.getMultisigTransactions=u.getModuleTransactions=u.getIncomingTransfers=u.getSafeInfo=u.setBaseUrl=void 0;const n=la,r=ip;t(rz,u),t(iz,u),t(az,u),t(oz,u),t(sz,u),t(fz,u),t(lz,u),t(cz,u),t(dz,u);let i=r.DEFAULT_BASE_URL;const a=q=>{i=q};u.setBaseUrl=a;function o(q,U){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}",{path:{chainId:q,address:U}})}u.getSafeInfo=o;function s(q,U,i0,s0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}/incoming-transfers/",{path:{chainId:q,address:U},query:i0},s0)}u.getIncomingTransfers=s;function f(q,U,i0,s0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}/module-transactions/",{path:{chainId:q,address:U},query:i0},s0)}u.getModuleTransactions=f;function l(q,U,i0,s0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}/multisig-transactions/",{path:{chainId:q,address:U},query:i0},s0)}u.getMultisigTransactions=l;function c(q,U,i0="usd",s0={}){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}/balances/{currency}",{path:{chainId:q,address:U,currency:i0},query:s0})}u.getBalances=c;function d(){return(0,n.getEndpoint)(i,"/v1/balances/supported-fiat-codes")}u.getFiatCurrencies=d;function E(q,U){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/owners/{address}/safes",{path:{chainId:q,address:U}})}u.getOwnedSafes=E;function p(q,U,i0={}){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:q,address:U},query:i0})}u.getCollectibles=p;function h(q,U,i0={},s0){return(0,n.getEndpoint)(i,"/v2/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:q,address:U},query:i0},s0)}u.getCollectiblesPage=h;function g(q,U,i0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{safe_address}/transactions/history",{path:{chainId:q,safe_address:U},query:{}},i0)}u.getTransactionHistory=g;function b(q,U,i0,s0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{safe_address}/transactions/queued",{path:{chainId:q,safe_address:U},query:{trusted:s0}},i0)}u.getTransactionQueue=b;function m(q,U){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/transactions/{transactionId}",{path:{chainId:q,transactionId:U}})}u.getTransactionDetails=m;function A(q,U,i0){return(0,n.postEndpoint)(i,"/v2/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations",{path:{chainId:q,safe_address:U},body:i0})}u.postSafeGasEstimation=A;function y(q,U){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{safe_address}/nonces",{path:{chainId:q,safe_address:U}})}u.getNonces=y;function B(q,U,i0){return(0,n.postEndpoint)(i,"/v1/chains/{chainId}/transactions/{safe_address}/propose",{path:{chainId:q,safe_address:U},body:i0})}u.proposeTransaction=B;function v(q){return(0,n.getEndpoint)(i,"/v1/chains",{query:q})}u.getChainsConfig=v;function C(q){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}",{path:{chainId:q}})}u.getChainConfig=C;function D(q,U={}){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safe-apps",{path:{chainId:q},query:U})}u.getSafeApps=D;function S(q){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/about/master-copies",{path:{chainId:q}})}u.getMasterCopies=S;function x(q,U,i0){return(0,n.postEndpoint)(i,"/v1/chains/{chainId}/data-decoder",{path:{chainId:q},body:{data:U,to:i0}})}u.getDecodedData=x;function L(q,U,i0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:q,safe_address:U},query:{}},i0)}u.getSafeMessages=L;function Y(q,U){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/messages/{message_hash}",{path:{chainId:q,message_hash:U}})}u.getSafeMessage=Y;function G(q,U,i0){return(0,n.postEndpoint)(i,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:q,safe_address:U},body:i0})}u.proposeSafeMessage=G;function X(q,U,i0){return(0,n.postEndpoint)(i,"/v1/chains/{chainId}/messages/{message_hash}/signatures",{path:{chainId:q,message_hash:U},body:i0})}u.confirmSafeMessage=X;function I(q,U={}){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/delegates",{path:{chainId:q},query:U})}u.getDelegates=I;function O(q){return(0,n.postEndpoint)(i,"/v1/register/notifications",{body:q})}u.registerDevice=O;function W(q,U,i0){return(0,n.deleteEndpoint)(i,"/v1/chains/{chainId}/notifications/devices/{uuid}/safes/{safe_address}",{path:{chainId:q,safe_address:U,uuid:i0}})}u.unregisterSafe=W;function $(q,U){return(0,n.deleteEndpoint)(i,"/v1/chains/{chainId}/notifications/devices/{uuid}",{path:{chainId:q,uuid:U}})}u.unregisterDevice=$})(tz);(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.TransferDirection=u.TransactionStatus=u.TokenType=u.Operation=void 0;var e=tz;Object.defineProperty(u,"Operation",{enumerable:!0,get:function(){return e.Operation}}),Object.defineProperty(u,"TokenType",{enumerable:!0,get:function(){return e.TokenType}}),Object.defineProperty(u,"TransactionStatus",{enumerable:!0,get:function(){return e.TransactionStatus}}),Object.defineProperty(u,"TransferDirection",{enumerable:!0,get:function(){return e.TransferDirection}})})(ez);var Ez={};Object.defineProperty(Ez,"__esModule",{value:!0});(function(u){var e=P0&&P0.__createBinding||(Object.create?function(n,r,i,a){a===void 0&&(a=i);var o=Object.getOwnPropertyDescriptor(r,i);(!o||("get"in o?!r.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return r[i]}}),Object.defineProperty(n,a,o)}:function(n,r,i,a){a===void 0&&(a=i),n[a]=r[i]}),t=P0&&P0.__exportStar||function(n,r){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&e(r,n,i)};Object.defineProperty(u,"__esModule",{value:!0}),t(rp,u),t(uz,u),t(ez,u),t(Ez,u)})(np);Object.defineProperty(tp,"__esModule",{value:!0});tp.TXs=void 0;const G6=gs,Bx0=np;class Fx0{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(G6.Methods.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const t={message:e};return(await this.communicator.send(G6.Methods.signMessage,t)).data}async signTypedMessage(e){if(!(0,Bx0.isObjectEIP712TypedData)(e))throw new Error("Invalid typed data");return(await this.communicator.send(G6.Methods.signTypedMessage,{typedData:e})).data}async send({txs:e,params:t}){if(!e||!e.length)throw new Error("No transactions were passed");const n={txs:e,params:t};return(await this.communicator.send(G6.Methods.sendTransactions,n)).data}}tp.TXs=Fx0;var ap={},Yc={};Object.defineProperty(Yc,"__esModule",{value:!0});Yc.RPC_CALLS=void 0;Yc.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"};Object.defineProperty(ap,"__esModule",{value:!0});ap.Eth=void 0;const Dt=Yc,Dx0=gs,wr={defaultBlockParam:(u="latest")=>u,returnFullTxObjectParam:(u=!1)=>u,blockNumberToHex:u=>Number.isInteger(u)?`0x${u.toString(16)}`:u};class wx0{constructor(e){this.communicator=e,this.call=this.buildRequest({call:Dt.RPC_CALLS.eth_call,formatters:[null,wr.defaultBlockParam]}),this.getBalance=this.buildRequest({call:Dt.RPC_CALLS.eth_getBalance,formatters:[null,wr.defaultBlockParam]}),this.getCode=this.buildRequest({call:Dt.RPC_CALLS.eth_getCode,formatters:[null,wr.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:Dt.RPC_CALLS.eth_getStorageAt,formatters:[null,wr.blockNumberToHex,wr.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:Dt.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:Dt.RPC_CALLS.eth_getBlockByHash,formatters:[null,wr.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:Dt.RPC_CALLS.eth_getBlockByNumber,formatters:[wr.blockNumberToHex,wr.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:Dt.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:Dt.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:Dt.RPC_CALLS.eth_getTransactionCount,formatters:[null,wr.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:Dt.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=t=>this.buildRequest({call:Dt.RPC_CALLS.eth_estimateGas})([t]),this.setSafeSettings=this.buildRequest({call:Dt.RPC_CALLS.safe_setSettings})}buildRequest(e){const{call:t,formatters:n}=e;return async r=>{n&&Array.isArray(r)&&n.forEach((o,s)=>{o&&(r[s]=o(r[s]))});const i={call:t,params:r||[]};return(await this.communicator.send(Dx0.Methods.rpcCall,i)).data}}}ap.Eth=wx0;var op={};const xx0=T9(Sn0);var t3={};Object.defineProperty(t3,"__esModule",{value:!0});t3.MAGIC_VALUE_BYTES=t3.MAGIC_VALUE=void 0;const kx0="0x1626ba7e";t3.MAGIC_VALUE=kx0;const _x0="0x20c13b0b";t3.MAGIC_VALUE_BYTES=_x0;var yy={},Xc={},Jo={};Object.defineProperty(Jo,"__esModule",{value:!0});Jo.PermissionsError=Jo.PERMISSIONS_REQUEST_REJECTED=void 0;Jo.PERMISSIONS_REQUEST_REJECTED=4001;class vy extends Error{constructor(e,t,n){super(e),this.code=t,this.data=n,Object.setPrototypeOf(this,vy.prototype)}}Jo.PermissionsError=vy;Object.defineProperty(Xc,"__esModule",{value:!0});Xc.Wallet=void 0;const bh=gs,V6=Jo;class Sx0{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(bh.Methods.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new V6.PermissionsError("Permissions request is invalid",V6.PERMISSIONS_REQUEST_REJECTED);try{return(await this.communicator.send(bh.Methods.wallet_requestPermissions,e)).data}catch{throw new V6.PermissionsError("Permissions rejected",V6.PERMISSIONS_REQUEST_REJECTED)}}isPermissionRequestValid(e){return e.every(t=>typeof t=="object"?Object.keys(t).every(n=>!!Object.values(bh.RestrictedMethods).includes(n)):!1)}}Xc.Wallet=Sx0;Object.defineProperty(yy,"__esModule",{value:!0});const Tx0=Xc,Dx=Jo,wx=(u,e)=>e.some(t=>t.parentCapability===u),Px0=()=>(u,e,t)=>{const n=t.value;return t.value=async function(){const r=new Tx0.Wallet(this.communicator);let i=await r.getPermissions();if(wx(e,i)||(i=await r.requestPermissions([{[e]:{}}])),!wx(e,i))throw new Dx.PermissionsError("Permissions rejected",Dx.PERMISSIONS_REQUEST_REJECTED);return n.apply(this)},t};yy.default=Px0;var Ix0=P0&&P0.__decorate||function(u,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i},Ox0=P0&&P0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(op,"__esModule",{value:!0});op.Safe=void 0;const K6=xx0,xx=t3,Fi=gs,kx=Yc,Rx0=np,Nx0=Ox0(yy);class pz{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(Fi.Methods.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(Fi.Methods.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(Fi.Methods.getSafeBalances,{currency:e})).data}async check1271Signature(e,t="0x"){const n=await this.getInfo(),r=(0,K6.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,t]}),i={call:kx.RPC_CALLS.eth_call,params:[{to:n.safeAddress,data:r},"latest"]};try{return(await this.communicator.send(Fi.Methods.rpcCall,i)).data.slice(0,10).toLowerCase()===xx.MAGIC_VALUE}catch{return!1}}async check1271SignatureBytes(e,t="0x"){const n=await this.getInfo(),r=(0,K6.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,t]}),i={call:kx.RPC_CALLS.eth_call,params:[{to:n.safeAddress,data:r},"latest"]};try{return(await this.communicator.send(Fi.Methods.rpcCall,i)).data.slice(0,10).toLowerCase()===xx.MAGIC_VALUE_BYTES}catch{return!1}}calculateMessageHash(e){return(0,K6.hashMessage)(e)}calculateTypedMessageHash(e){const t=typeof e.domain.chainId=="object"?e.domain.chainId.toNumber():Number(e.domain.chainId);let n=e.primaryType;if(!n){const r=Object.values(e.types),i=Object.keys(e.types).filter(a=>r.every(o=>o.every(({type:s})=>s.replace("[","").replace("]","")!==a)));if(i.length===0||i.length>1)throw new Error("Please specify primaryType");n=i[0]}return(0,K6.hashTypedData)({message:e.message,domain:Object.assign(Object.assign({},e.domain),{chainId:t,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt}),types:e.types,primaryType:n})}async getOffChainSignature(e){return(await this.communicator.send(Fi.Methods.getOffChainSignature,e)).data}async isMessageSigned(e,t="0x"){let n;if(typeof e=="string"&&(n=async()=>{const r=this.calculateMessageHash(e);return await this.isMessageHashSigned(r,t)}),(0,Rx0.isObjectEIP712TypedData)(e)&&(n=async()=>{const r=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(r,t)}),n)return await n();throw new Error("Invalid message type")}async isMessageHashSigned(e,t="0x"){const n=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const r of n)if(await r(e,t))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(Fi.Methods.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(Fi.Methods.requestAddressBook,void 0)).data}}Ix0([(0,Nx0.default)()],pz.prototype,"requestAddressBook",null);op.Safe=pz;var Mx0=P0&&P0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(a9,"__esModule",{value:!0});const jx0=Mx0(Xj),zx0=tp,Lx0=ap,$x0=op,Ux0=Xc;let Wx0=class{constructor(e={}){const{allowedDomains:t=null,debug:n=!1}=e;this.communicator=new jx0.default(t,n),this.eth=new Lx0.Eth(this.communicator),this.txs=new zx0.TXs(this.communicator),this.safe=new $x0.Safe(this.communicator),this.wallet=new Ux0.Wallet(this.communicator)}};a9.default=Wx0;(function(u){var e=P0&&P0.__createBinding||(Object.create?function(a,o,s,f){f===void 0&&(f=s);var l=Object.getOwnPropertyDescriptor(o,s);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(a,f,l)}:function(a,o,s,f){f===void 0&&(f=s),a[f]=o[s]}),t=P0&&P0.__exportStar||function(a,o){for(var s in a)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&e(o,a,s)},n=P0&&P0.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(u,"__esModule",{value:!0}),u.getSDKVersion=void 0;const r=n(a9);u.default=r.default,t(a9,u),t(np,u),t(gs,u),t(Jc,u);var i=Zc;Object.defineProperty(u,"getSDKVersion",{enumerable:!0,get:function(){return i.getSDKVersion}})})(Yj);const Q6=f3(Yj);var xl,kl,qx0=class extends Tc{constructor({chains:u,options:e}){const t={shimDisconnect:!1,...e};super({chains:u,options:t}),this.id="safe",this.name="Safe",this.ready=!(typeof window>"u")&&(window==null?void 0:window.parent)!==window,re(this,xl,void 0),re(this,kl,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`;let n=Q6;typeof Q6!="function"&&typeof Q6.default=="function"&&(n=Q6.default),ii(this,kl,new n(t))}async connect(){var n;const u=await this.getProvider();if(!u)throw new ft;u.on&&(u.on("accountsChanged",this.onAccountsChanged),u.on("chainChanged",this.onChainChanged),u.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});const e=await this.getAccount(),t=await this.getChainId();return this.options.shimDisconnect&&((n=this.storage)==null||n.setItem(this.shimDisconnectKey,!0)),{account:e,chain:{id:t,unsupported:this.isChainUnsupported(t)}}}async disconnect(){var e;const u=await this.getProvider();u!=null&&u.removeListener&&(u.removeListener("accountsChanged",this.onAccountsChanged),u.removeListener("chainChanged",this.onChainChanged),u.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&((e=this.storage)==null||e.removeItem(this.shimDisconnectKey)))}async getAccount(){const u=await this.getProvider();if(!u)throw new ft;const e=await u.request({method:"eth_accounts"});return ju(e[0])}async getChainId(){const u=await this.getProvider();if(!u)throw new ft;return Ko(u.chainId)}async getProvider(){if(!J0(this,xl)){const u=await J0(this,kl).safe.getInfo();if(!u)throw new Error("Could not load Safe information");ii(this,xl,new Uj.SafeAppProvider(u,J0(this,kl)))}return J0(this,xl)}async getWalletClient({chainId:u}={}){const e=await this.getProvider(),t=await this.getAccount(),n=this.chains.find(r=>r.id===u);if(!e)throw new Error("provider is required.");return w3({account:t,chain:n,transport:F3(e)})}async isAuthorized(){var u;try{return this.options.shimDisconnect&&!((u=this.storage)!=null&&u.getItem(this.shimDisconnectKey))?!1:!!await this.getAccount()}catch{return!1}}onAccountsChanged(u){}onChainChanged(u){}onDisconnect(){this.emit("disconnect")}};xl=new WeakMap;kl=new WeakMap;function Hx0(u){return Object.fromEntries(Object.entries(u).filter(([e,t])=>t!==void 0))}function Gx0(u){return"groupName"in u[0]?_x(u):_x([{groupName:"",wallets:u}])()}var _x=u=>()=>{let e=-1;const t=[],n=[],r=[],i=[];return u.forEach(({groupName:o,wallets:s},f)=>{s.forEach(l=>{if(e++,l!=null&&l.iconAccent&&!Zy0(l==null?void 0:l.iconAccent))throw new Error(`Property \`iconAccent\` is not a hex value for wallet: ${l.name}`);const c={...l,groupIndex:f,groupName:o,index:e};typeof l.hidden=="function"?r.push(c):n.push(c)})}),[...n,...r].forEach(({createConnector:o,groupIndex:s,groupName:f,hidden:l,index:c,...d})=>{if(typeof l=="function"&&l({wallets:[...i.map(({connector:m,id:A,installed:y,name:B})=>({connector:m,id:A,installed:y,name:B}))]}))return;const{connector:E,...p}=Hx0(o());let h;if(d.id==="walletConnect"&&p.qrCode&&!we()){const{chains:b,options:m}=E;h=new Lj({chains:b,options:{...m,showQrModal:!0}}),t.push(h)}const g={connector:E,groupIndex:s,groupName:f,index:c,walletConnectModalConnector:h,...d,...p};i.push(g),t.includes(E)||(t.push(E),E._wallets=[]),E._wallets.push(g)}),t},Vx0=({chains:u,...e})=>{var t;return{id:"brave",name:"Brave Wallet",iconUrl:async()=>(await q0(()=>import("./braveWallet-BTBH4MDN-rhLwbrvd.js"),__vite__mapDeps([]))).default,iconBackground:"#fff",installed:typeof window<"u"&&((t=window.ethereum)==null?void 0:t.isBraveWallet)===!0,downloadUrls:{},createConnector:()=>({connector:new K4({chains:u,options:e})})}};function hz(u){if(typeof window>"u"||typeof window.ethereum>"u")return;const e=window.ethereum.providers;return e?e.find(t=>t[u]):window.ethereum[u]?window.ethereum:void 0}function Cz(u){return!!hz(u)}function Kx0(u){if(typeof window>"u"||typeof window.ethereum>"u")return;const e=window.ethereum.providers,t=hz(u);return t||(typeof e<"u"&&e.length>0?e[0]:window.ethereum)}function Qx0({chains:u,flag:e,options:t}){return new K4({chains:u,options:{getProvider:()=>Kx0(e),...t}})}var Jx0=({appName:u,chains:e,...t})=>{const n=Cz("isCoinbaseWallet");return{id:"coinbase",name:"Coinbase Wallet",shortName:"Coinbase",iconUrl:async()=>(await q0(()=>import("./coinbaseWallet-2OUR5TUP-lljav0iR.js"),__vite__mapDeps([]))).default,iconAccent:"#2c5ff6",iconBackground:"#2c5ff6",installed:n||void 0,downloadUrls:{android:"https://play.google.com/store/apps/details?id=org.toshi",ios:"https://apps.apple.com/us/app/coinbase-wallet-store-crypto/id1278383455",mobile:"https://coinbase.com/wallet/downloads",qrCode:"https://coinbase-wallet.onelink.me/q5Sx/fdb9b250",chrome:"https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",browserExtension:"https://coinbase.com/wallet"},createConnector:()=>{const r=ms(),i=new _w0({chains:e,options:{appName:u,headlessMode:!0,...t}});return{connector:i,...r?{}:{qrCode:{getUri:async()=>(await i.getProvider()).qrUrl,instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-mobile",steps:[{description:"wallet_connectors.coinbase.qr_code.step1.description",step:"install",title:"wallet_connectors.coinbase.qr_code.step1.title"},{description:"wallet_connectors.coinbase.qr_code.step2.description",step:"create",title:"wallet_connectors.coinbase.qr_code.step2.title"},{description:"wallet_connectors.coinbase.qr_code.step3.description",step:"scan",title:"wallet_connectors.coinbase.qr_code.step3.title"}]}},extension:{instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-extension",steps:[{description:"wallet_connectors.coinbase.extension.step1.description",step:"install",title:"wallet_connectors.coinbase.extension.step1.title"},{description:"wallet_connectors.coinbase.extension.step2.description",step:"create",title:"wallet_connectors.coinbase.extension.step2.title"},{description:"wallet_connectors.coinbase.extension.step3.description",step:"refresh",title:"wallet_connectors.coinbase.extension.step3.title"}]}}}}}}},Zx0=({chains:u,...e})=>({id:"injected",name:"Browser Wallet",iconUrl:async()=>(await q0(()=>import("./injectedWallet-EUKDEAIU-nRYX44n1.js"),__vite__mapDeps([]))).default,iconBackground:"#fff",hidden:({wallets:t})=>t.some(n=>n.installed&&n.name===n.connector.name&&(n.connector instanceof K4||n.id==="coinbase")),createConnector:()=>({connector:new K4({chains:u,options:e})})});async function By(u,e){const t=await u.getProvider();return e==="2"?new Promise(n=>t.once("display_uri",n)):t.connector.uri}var mz=new Map;function Yx0(u,e){const t=u==="1"?new Pw0(e):new Lj(e);return mz.set(JSON.stringify(e),t),t}function o9({chains:u,options:e={},projectId:t,version:n="2"}){const r="21fef48091f12692cad574a6f7753643";if(n==="2"){if(!t||t==="")throw new Error("No projectId found. Every dApp must now provide a WalletConnect Cloud projectId to enable WalletConnect v2 https://www.rainbowkit.com/docs/installation#configure");(t==="YOUR_PROJECT_ID"||t===r)&&console.warn("Invalid projectId. Please create a unique WalletConnect Cloud projectId for your dApp https://www.rainbowkit.com/docs/installation#configure")}const i={chains:u,options:n==="1"?{qrcode:!1,...e}:{projectId:t==="YOUR_PROJECT_ID"?r:t,showQrModal:!1,...e}},a=JSON.stringify(i),o=mz.get(a);return o??Yx0(n,i)}function Sx(u){return!(!(u!=null&&u.isMetaMask)||u.isBraveWallet&&!u._events&&!u._state||u.isApexWallet||u.isAvalanche||u.isBackpack||u.isBifrost||u.isBitKeep||u.isBitski||u.isBlockWallet||u.isCoinbaseWallet||u.isDawn||u.isEnkrypt||u.isExodus||u.isFrame||u.isFrontier||u.isGamestop||u.isHyperPay||u.isImToken||u.isKuCoinWallet||u.isMathWallet||u.isOkxWallet||u.isOKExWallet||u.isOneInchIOSWallet||u.isOneInchAndroidWallet||u.isOpera||u.isPhantom||u.isPortal||u.isRabby||u.isRainbow||u.isStatus||u.isTalisman||u.isTally||u.isTokenPocket||u.isTokenary||u.isTrust||u.isTrustWallet||u.isXDEFI||u.isZeal||u.isZerion)}var Xx0=({chains:u,projectId:e,walletConnectOptions:t,walletConnectVersion:n="2",...r})=>{var i,a;const o=typeof window<"u"&&((i=window.ethereum)==null?void 0:i.providers),s=typeof window<"u"&&typeof window.ethereum<"u"&&(((a=window.ethereum.providers)==null?void 0:a.some(Sx))||window.ethereum.isMetaMask),f=!s;return{id:"metaMask",name:"MetaMask",iconUrl:async()=>(await q0(()=>import("./metaMaskWallet-ORHUNQRP-B-MG5eKR.js"),__vite__mapDeps([]))).default,iconAccent:"#f6851a",iconBackground:"#fff",installed:f?void 0:s,downloadUrls:{android:"https://play.google.com/store/apps/details?id=io.metamask",ios:"https://apps.apple.com/us/app/metamask/id1438144202",mobile:"https://metamask.io/download",qrCode:"https://metamask.io/download",chrome:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",edge:"https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",firefox:"https://addons.mozilla.org/firefox/addon/ether-metamask",opera:"https://addons.opera.com/extensions/details/metamask-10",browserExtension:"https://metamask.io/download"},createConnector:()=>{const l=f?o9({projectId:e,chains:u,version:n,options:t}):new Sw0({chains:u,options:{getProvider:()=>o?o.find(Sx):typeof window<"u"?window.ethereum:void 0,...r}}),c=async()=>{const d=await By(l,n);return UA()?d:ms()?`metamask://wc?uri=${encodeURIComponent(d)}`:`https://metamask.app.link/wc?uri=${encodeURIComponent(d)}`};return{connector:l,mobile:{getUri:f?c:void 0},qrCode:f?{getUri:c,instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.qr_code.step1.description",step:"install",title:"wallet_connectors.metamask.qr_code.step1.title"},{description:"wallet_connectors.metamask.qr_code.step2.description",step:"create",title:"wallet_connectors.metamask.qr_code.step2.title"},{description:"wallet_connectors.metamask.qr_code.step3.description",step:"refresh",title:"wallet_connectors.metamask.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.extension.step1.description",step:"install",title:"wallet_connectors.metamask.extension.step1.title"},{description:"wallet_connectors.metamask.extension.step2.description",step:"create",title:"wallet_connectors.metamask.extension.step2.title"},{description:"wallet_connectors.metamask.extension.step3.description",step:"refresh",title:"wallet_connectors.metamask.extension.step3.title"}]}}}}}},uk0=({chains:u,projectId:e,walletConnectOptions:t,walletConnectVersion:n="2",...r})=>{const i=Cz("isRainbow"),a=!i;return{id:"rainbow",name:"Rainbow",iconUrl:async()=>(await q0(()=>import("./rainbowWallet-GGU64QEI-aO3VF4UJ.js"),__vite__mapDeps([]))).default,iconBackground:"#0c2f78",installed:a?void 0:i,downloadUrls:{android:"https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",ios:"https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",mobile:"https://rainbow.download?utm_source=rainbowkit",qrCode:"https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",browserExtension:"https://rainbow.me/extension?utm_source=rainbowkit"},createConnector:()=>{const o=a?o9({projectId:e,chains:u,version:n,options:t}):Qx0({flag:"isRainbow",chains:u,options:r}),s=async()=>{const f=await By(o,n);return UA()?f:ms()?`rainbow://wc?uri=${encodeURIComponent(f)}&connector=rainbowkit`:`https://rnbwapp.com/wc?uri=${encodeURIComponent(f)}&connector=rainbowkit`};return{connector:o,mobile:{getUri:a?s:void 0},qrCode:a?{getUri:s,instructions:{learnMoreUrl:"https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",steps:[{description:"wallet_connectors.rainbow.qr_code.step1.description",step:"install",title:"wallet_connectors.rainbow.qr_code.step1.title"},{description:"wallet_connectors.rainbow.qr_code.step2.description",step:"create",title:"wallet_connectors.rainbow.qr_code.step2.title"},{description:"wallet_connectors.rainbow.qr_code.step3.description",step:"scan",title:"wallet_connectors.rainbow.qr_code.step3.title"}]}}:void 0}}}},ek0=({chains:u,...e})=>({id:"safe",name:"Safe",iconAccent:"#12ff80",iconBackground:"#fff",iconUrl:async()=>(await q0(()=>import("./safeWallet-DFMLSLCR-0HldBjhm.js"),__vite__mapDeps([]))).default,installed:!(typeof window>"u")&&(window==null?void 0:window.parent)!==window,downloadUrls:{},createConnector:()=>({connector:new qx0({chains:u,options:e})})}),tk0=({chains:u,options:e,projectId:t,version:n="2"})=>({id:"walletConnect",name:"WalletConnect",iconUrl:async()=>(await q0(()=>import("./walletConnectWallet-D6ZADJM7-hbivFVny.js"),__vite__mapDeps([]))).default,iconBackground:"#3b99fc",createConnector:()=>{const r=ms(),i=o9(n==="1"?{version:"1",chains:u,options:{qrcode:r,...e}}:{version:"2",chains:u,projectId:t,options:{showQrModal:r,...e}}),a=async()=>By(i,n);return{connector:i,...r?{}:{mobile:{getUri:a},qrCode:{getUri:a}}}}}),nk0=({appName:u,chains:e,projectId:t})=>{const n=[{groupName:"Popular",wallets:[Zx0({chains:e}),ek0({chains:e}),uk0({chains:e,projectId:t}),Jx0({appName:u,chains:e}),Xx0({chains:e,projectId:t}),tk0({chains:e,projectId:t}),Vx0({chains:e})]}];return{connectors:Gx0(n),wallets:n}};function rk0(u){return fu("MuiSvgIcon",u)}Eu("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ik0=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ak0=u=>{const{color:e,fontSize:t,classes:n}=u,r={root:["root",e!=="inherit"&&`color${K0(e)}`,`fontSize${K0(t)}`]};return du(r,rk0,n)},ok0=$0("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,t.color!=="inherit"&&e[`color${K0(t.color)}`],e[`fontSize${K0(t.fontSize)}`]]}})(({theme:u,ownerState:e})=>{var t,n,r,i,a,o,s,f,l,c,d,E,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=u.transitions)==null||(n=t.create)==null?void 0:n.call(t,"fill",{duration:(r=u.transitions)==null||(r=r.duration)==null?void 0:r.shorter}),fontSize:{inherit:"inherit",small:((i=u.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((o=u.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,24))||"1.5rem",large:((f=u.typography)==null||(l=f.pxToRem)==null?void 0:l.call(f,35))||"2.1875rem"}[e.fontSize],color:(c=(d=(u.vars||u).palette)==null||(d=d[e.color])==null?void 0:d.main)!=null?c:{action:(E=(u.vars||u).palette)==null||(E=E.action)==null?void 0:E.active,disabled:(p=(u.vars||u).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[e.color]}}),bz=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:o="svg",fontSize:s="medium",htmlColor:f,inheritViewBox:l=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,E=L0(n,ik0),p=w.isValidElement(r)&&r.type==="svg",h=N({},n,{color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p}),g={};l||(g.viewBox=d);const b=ak0(h);return K.jsxs(ok0,N({as:o,className:H0(b.root,i),focusable:"false",color:f,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:t},g,E,p&&r.props,{ownerState:h,children:[p?r.props.children:r,c?K.jsx("title",{children:c}):null]}))});bz.muiName="SvgIcon";const Tx=bz;function gz(u,e){function t(n,r){return K.jsx(Tx,N({"data-testid":`${e}Icon`,ref:r},n,{children:u}))}return t.muiName=Tx.muiName,w.memo(w.forwardRef(t))}var yu={};/** + Approved: ${d.toString()}`))}),a.forEach(c=>{n||(no(r[c].methods,i[c].methods)?no(r[c].events,i[c].events)||(n=Ni("NON_CONFORMING_NAMESPACES",`${t} namespaces events don't satisfy namespace events for ${c}`)):n=Ni("NON_CONFORMING_NAMESPACES",`${t} namespaces methods don't satisfy namespace methods for ${c}`))}),n}function yw0(u){const e={};return Object.keys(u).forEach(t=>{var n;t.includes(":")?e[t]=u[t]:(n=u[t].chains)==null||n.forEach(r=>{e[r]={methods:u[t].methods,events:u[t].events}})}),e}function Bx(u){return[...new Set(u.map(e=>e.includes(":")?e.split(":")[0]:e))]}function vw0(u){const e={};return Object.keys(u).forEach(t=>{if(t.includes(":"))e[t]=u[t];else{const n=U3(u[t].accounts);n==null||n.forEach(r=>{e[r]={accounts:u[t].accounts.filter(i=>i.includes(`${r}:`)),methods:u[t].methods,events:u[t].events}})}}),e}function Uj0(u,e){return Ey(u,!1)&&u<=e.max&&u>=e.min}function Wj0(){const u=Jc();return new Promise(e=>{switch(u){case Mt.browser:e(Bw0());break;case Mt.reactNative:e(Fw0());break;case Mt.node:e(Dw0());break;default:e(!0)}})}function Bw0(){return cy()&&(navigator==null?void 0:navigator.onLine)}async function Fw0(){if(JE()&&typeof global<"u"&&global!=null&&global.NetInfo){const u=await(global==null?void 0:global.NetInfo.fetch());return u==null?void 0:u.isConnected}return!0}function Dw0(){return!0}function qj0(u){switch(Jc()){case Mt.browser:ww0(u);break;case Mt.reactNative:xw0(u);break}}function ww0(u){!JE()&&cy()&&(window.addEventListener("online",()=>u(!0)),window.addEventListener("offline",()=>u(!1)))}function xw0(u){JE()&&typeof global<"u"&&global!=null&&global.NetInfo&&(global==null||global.NetInfo.addEventListener(e=>u(e==null?void 0:e.isConnected)))}const bh={};class Hj0{static get(e){return bh[e]}static set(e,t){bh[e]=t}static delete(e){delete bh[e]}}var Nj="eip155",kw0="store",Mj="requestedChains",JC="wallet_addEthereumChain",Pu,Ql,D5,ZC,py,jj,w5,YC,XC,zj,n9,hy,Us,Dl,r9,Cy,i9,my,a9,by,Lj=class extends Pc{constructor(u){super({...u,options:{isNewChainsStale:!0,...u.options}}),re(this,D5),re(this,py),re(this,w5),re(this,XC),re(this,n9),re(this,Us),re(this,r9),re(this,i9),re(this,a9),this.id="walletConnect",this.name="WalletConnect",this.ready=!0,re(this,Pu,void 0),re(this,Ql,void 0),this.onAccountsChanged=e=>{e.length===0?this.emit("disconnect"):this.emit("change",{account:ju(e[0])})},this.onChainChanged=e=>{const t=Number(e),n=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:n}})},this.onDisconnect=()=>{te(this,Us,Dl).call(this,[]),this.emit("disconnect")},this.onDisplayUri=e=>{this.emit("message",{type:"display_uri",data:e})},this.onConnect=()=>{this.emit("connect",{})},te(this,D5,ZC).call(this)}async connect({chainId:u,pairingTopic:e}={}){var t,n,r,i,a;try{let o=u;if(!o){const p=(t=this.storage)==null?void 0:t.getItem(kw0),h=(i=(r=(n=p==null?void 0:p.state)==null?void 0:n.data)==null?void 0:r.chain)==null?void 0:i.id;h&&!this.isChainUnsupported(h)?o=h:o=(a=this.chains[0])==null?void 0:a.id}if(!o)throw new Error("No chains found on connector.");const s=await this.getProvider();te(this,XC,zj).call(this);const f=te(this,w5,YC).call(this);if(s.session&&f&&await s.disconnect(),!s.session||f){const p=this.chains.filter(h=>h.id!==o).map(h=>h.id);this.emit("message",{type:"connecting"}),await s.connect({pairingTopic:e,chains:[o],optionalChains:p.length?p:void 0}),te(this,Us,Dl).call(this,this.chains.map(({id:h})=>h))}const l=await s.enable(),c=ju(l[0]),d=await this.getChainId(),E=this.isChainUnsupported(d);return{account:c,chain:{id:d,unsupported:E}}}catch(o){throw/user rejected/i.test(o==null?void 0:o.message)?new Xu(o):o}}async disconnect(){const u=await this.getProvider();try{await u.disconnect()}catch(e){if(!/No matching key/i.test(e.message))throw e}finally{te(this,n9,hy).call(this),te(this,Us,Dl).call(this,[])}}async getAccount(){const{accounts:u}=await this.getProvider();return ju(u[0])}async getChainId(){const{chainId:u}=await this.getProvider();return u}async getProvider({chainId:u}={}){return J0(this,Pu)||await te(this,D5,ZC).call(this),u&&await this.switchChain(u),J0(this,Pu)}async getWalletClient({chainId:u}={}){const[e,t]=await Promise.all([this.getProvider({chainId:u}),this.getAccount()]),n=this.chains.find(r=>r.id===u);if(!e)throw new Error("provider is required.");return w3({account:t,chain:n,transport:F3(e)})}async isAuthorized(){try{const[u,e]=await Promise.all([this.getAccount(),this.getProvider()]),t=te(this,w5,YC).call(this);if(!u)return!1;if(t&&e.session){try{await e.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(u){var t,n;const e=this.chains.find(r=>r.id===u);if(!e)throw new Wn(new Error("chain not found on connector."));try{const r=await this.getProvider(),i=te(this,i9,my).call(this),a=te(this,a9,by).call(this);if(!i.includes(u)&&a.includes(JC)){await r.request({method:JC,params:[{chainId:O0(e.id),blockExplorerUrls:[(n=(t=e.blockExplorers)==null?void 0:t.default)==null?void 0:n.url],chainName:e.name,nativeCurrency:e.nativeCurrency,rpcUrls:[...e.rpcUrls.default.http]}]});const s=te(this,r9,Cy).call(this);s.push(u),te(this,Us,Dl).call(this,s)}return await r.request({method:"wallet_switchEthereumChain",params:[{chainId:O0(u)}]}),e}catch(r){const i=typeof r=="string"?r:r==null?void 0:r.message;throw/user rejected request/i.test(i)?new Xu(r):new Wn(r)}}};Pu=new WeakMap;Ql=new WeakMap;D5=new WeakSet;ZC=async function(){return!J0(this,Ql)&&typeof window<"u"&&ii(this,Ql,te(this,py,jj).call(this)),J0(this,Ql)};py=new WeakSet;jj=async function(){const{EthereumProvider:u,OPTIONAL_EVENTS:e,OPTIONAL_METHODS:t}=await q0(()=>import("./index.es-s_QArDCI.js"),__vite__mapDeps([0,1])),[n,...r]=this.chains.map(({id:i})=>i);if(n){const{projectId:i,showQrModal:a=!0,qrModalOptions:o,metadata:s,relayUrl:f}=this.options;ii(this,Pu,await u.init({showQrModal:a,qrModalOptions:o,projectId:i,optionalMethods:t,optionalEvents:e,chains:[n],optionalChains:r.length?r:void 0,rpcMap:Object.fromEntries(this.chains.map(l=>[l.id,l.rpcUrls.default.http[0]])),metadata:s,relayUrl:f}))}};w5=new WeakSet;YC=function(){if(te(this,a9,by).call(this).includes(JC)||!this.options.isNewChainsStale)return!1;const e=te(this,r9,Cy).call(this),t=this.chains.map(({id:r})=>r),n=te(this,i9,my).call(this);return n.length&&!n.some(r=>t.includes(r))?!1:!t.every(r=>e.includes(r))};XC=new WeakSet;zj=function(){J0(this,Pu)&&(te(this,n9,hy).call(this),J0(this,Pu).on("accountsChanged",this.onAccountsChanged),J0(this,Pu).on("chainChanged",this.onChainChanged),J0(this,Pu).on("disconnect",this.onDisconnect),J0(this,Pu).on("session_delete",this.onDisconnect),J0(this,Pu).on("display_uri",this.onDisplayUri),J0(this,Pu).on("connect",this.onConnect))};n9=new WeakSet;hy=function(){J0(this,Pu)&&(J0(this,Pu).removeListener("accountsChanged",this.onAccountsChanged),J0(this,Pu).removeListener("chainChanged",this.onChainChanged),J0(this,Pu).removeListener("disconnect",this.onDisconnect),J0(this,Pu).removeListener("session_delete",this.onDisconnect),J0(this,Pu).removeListener("display_uri",this.onDisplayUri),J0(this,Pu).removeListener("connect",this.onConnect))};Us=new WeakSet;Dl=function(u){var e;(e=this.storage)==null||e.setItem(Mj,u)};r9=new WeakSet;Cy=function(){var u;return((u=this.storage)==null?void 0:u.getItem(Mj))??[]};i9=new WeakSet;my=function(){var n,r,i;if(!J0(this,Pu))return[];const u=(n=J0(this,Pu).session)==null?void 0:n.namespaces;return u?((i=(r=Oj(u)[Nj])==null?void 0:r.chains)==null?void 0:i.map(a=>parseInt(a.split(":")[1]||"")))??[]:[]};a9=new WeakSet;by=function(){var n,r;if(!J0(this,Pu))return[];const u=(n=J0(this,Pu).session)==null?void 0:n.namespaces;return u?((r=Oj(u)[Nj])==null?void 0:r.methods)??[]:[]};var wl,Ws,_w0=class extends Pc{constructor({chains:u,options:e}){super({chains:u,options:{reloadOnDisconnect:!1,...e}}),this.id="coinbaseWallet",this.name="Coinbase Wallet",this.ready=!0,re(this,wl,void 0),re(this,Ws,void 0),this.onAccountsChanged=t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:ju(t[0])})},this.onChainChanged=t=>{const n=Ko(t),r=this.isChainUnsupported(n);this.emit("change",{chain:{id:n,unsupported:r}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect({chainId:u}={}){try{const e=await this.getProvider();e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect),this.emit("message",{type:"connecting"});const t=await e.enable(),n=ju(t[0]);let r=await this.getChainId(),i=this.isChainUnsupported(r);return u&&r!==u&&(r=(await this.switchChain(u)).id,i=this.isChainUnsupported(r)),{account:n,chain:{id:r,unsupported:i}}}catch(e){throw/(user closed modal|accounts received is empty)/i.test(e.message)?new Xu(e):e}}async disconnect(){if(!J0(this,Ws))return;const u=await this.getProvider();u.removeListener("accountsChanged",this.onAccountsChanged),u.removeListener("chainChanged",this.onChainChanged),u.removeListener("disconnect",this.onDisconnect),u.disconnect(),u.close()}async getAccount(){const e=await(await this.getProvider()).request({method:"eth_accounts"});return ju(e[0])}async getChainId(){const u=await this.getProvider();return Ko(u.chainId)}async getProvider(){var u;if(!J0(this,Ws)){let e=(await q0(()=>import("./index-djCT1zJ2.js").then(a=>a.i),__vite__mapDeps([2,3]))).default;typeof e!="function"&&typeof e.default=="function"&&(e=e.default),ii(this,wl,new e(this.options));const t=(u=J0(this,wl).walletExtension)==null?void 0:u.getChainId(),n=this.chains.find(a=>this.options.chainId?a.id===this.options.chainId:a.id===t)||this.chains[0],r=this.options.chainId||(n==null?void 0:n.id),i=this.options.jsonRpcUrl||(n==null?void 0:n.rpcUrls.default.http[0]);ii(this,Ws,J0(this,wl).makeWeb3Provider(i,r))}return J0(this,Ws)}async getWalletClient({chainId:u}={}){const[e,t]=await Promise.all([this.getProvider(),this.getAccount()]),n=this.chains.find(r=>r.id===u);if(!e)throw new Error("provider is required.");return w3({account:t,chain:n,transport:F3(e)})}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(u){var n;const e=await this.getProvider(),t=O0(u);try{return await e.request({method:"wallet_switchEthereumChain",params:[{chainId:t}]}),this.chains.find(r=>r.id===u)??{id:u,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(r){const i=this.chains.find(a=>a.id===u);if(!i)throw new PR({chainId:u,connectorId:this.id});if(r.code===4902)try{return await e.request({method:"wallet_addEthereumChain",params:[{chainId:t,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:[((n=i.rpcUrls.public)==null?void 0:n.http[0])??""],blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(a){throw new Xu(a)}throw new Wn(r)}}async watchAsset({address:u,decimals:e=18,image:t,symbol:n}){return(await this.getProvider()).request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:u,decimals:e,image:t,symbol:n}}})}};wl=new WeakMap;Ws=new WeakMap;var x5,Sw0=class extends K4{constructor({chains:u,options:e}={}){const t={name:"MetaMask",shimDisconnect:!0,getProvider(){function n(i){if(i!=null&&i.isMetaMask&&!(i.isBraveWallet&&!i._events&&!i._state)&&!i.isApexWallet&&!i.isAvalanche&&!i.isBitKeep&&!i.isBlockWallet&&!i.isCoin98&&!i.isFordefi&&!i.isMathWallet&&!(i.isOkxWallet||i.isOKExWallet)&&!(i.isOneInchIOSWallet||i.isOneInchAndroidWallet)&&!i.isOpera&&!i.isPortal&&!i.isRabby&&!i.isDefiant&&!i.isTokenPocket&&!i.isTokenary&&!i.isZeal&&!i.isZerion)return i}if(typeof window>"u")return;const r=window.ethereum;return r!=null&&r.providers?r.providers.find(n):n(r)},...e};super({chains:u,options:t}),this.id="metaMask",this.shimDisconnectKey=`${this.id}.shimDisconnect`,re(this,x5,void 0),ii(this,x5,t.UNSTABLE_shimOnConnectSelectAccount)}async connect({chainId:u}={}){var e,t,n,r;try{const i=await this.getProvider();if(!i)throw new ft;i.on&&(i.on("accountsChanged",this.onAccountsChanged),i.on("chainChanged",this.onChainChanged),i.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let a=null;if(J0(this,x5)&&((e=this.options)!=null&&e.shimDisconnect)&&!((t=this.storage)!=null&&t.getItem(this.shimDisconnectKey))&&(a=await this.getAccount().catch(()=>null),!!a))try{await i.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}),a=await this.getAccount()}catch(l){if(this.isUserRejectedRequestError(l))throw new Xu(l);if(l.code===new ni(l).code)throw l}if(!a){const f=await i.request({method:"eth_requestAccounts"});a=ju(f[0])}let o=await this.getChainId(),s=this.isChainUnsupported(o);return u&&o!==u&&(o=(await this.switchChain(u)).id,s=this.isChainUnsupported(o)),(n=this.options)!=null&&n.shimDisconnect&&((r=this.storage)==null||r.setItem(this.shimDisconnectKey,!0)),{account:a,chain:{id:o,unsupported:s},provider:i}}catch(i){throw this.isUserRejectedRequestError(i)?new Xu(i):i.code===-32002?new ni(i):i}}};x5=new WeakMap;var Tw0=/(imtoken|metamask|rainbow|trust wallet|uniswap wallet|ledger)/i,Ha,um,$j,Pw0=class extends Pc{constructor(){super(...arguments),re(this,um),this.id="walletConnectLegacy",this.name="WalletConnectLegacy",this.ready=!0,re(this,Ha,void 0),this.onAccountsChanged=u=>{u.length===0?this.emit("disconnect"):this.emit("change",{account:ju(u[0])})},this.onChainChanged=u=>{const e=Ko(u),t=this.isChainUnsupported(e);this.emit("change",{chain:{id:e,unsupported:t}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect({chainId:u}={}){var e,t,n,r,i,a;try{let o=u;if(!o){const p=(e=this.storage)==null?void 0:e.getItem("store"),h=(r=(n=(t=p==null?void 0:p.state)==null?void 0:t.data)==null?void 0:n.chain)==null?void 0:r.id;h&&!this.isChainUnsupported(h)&&(o=h)}const s=await this.getProvider({chainId:o,create:!0});s.on("accountsChanged",this.onAccountsChanged),s.on("chainChanged",this.onChainChanged),s.on("disconnect",this.onDisconnect),setTimeout(()=>this.emit("message",{type:"connecting"}),0);const f=await s.enable(),l=ju(f[0]),c=await this.getChainId(),d=this.isChainUnsupported(c),E=((a=(i=s.connector)==null?void 0:i.peerMeta)==null?void 0:a.name)??"";return Tw0.test(E)&&(this.switchChain=te(this,um,$j)),{account:l,chain:{id:c,unsupported:d}}}catch(o){throw/user closed modal/i.test(o.message)?new Xu(o):o}}async disconnect(){const u=await this.getProvider();await u.disconnect(),u.removeListener("accountsChanged",this.onAccountsChanged),u.removeListener("chainChanged",this.onChainChanged),u.removeListener("disconnect",this.onDisconnect),typeof localStorage<"u"&&localStorage.removeItem("walletconnect")}async getAccount(){const e=(await this.getProvider()).accounts;return ju(e[0])}async getChainId(){const u=await this.getProvider();return Ko(u.chainId)}async getProvider({chainId:u,create:e}={}){var t,n;if(!J0(this,Ha)||u||e){const r=(t=this.options)!=null&&t.infuraId?{}:this.chains.reduce((a,o)=>({...a,[o.id]:o.rpcUrls.default.http[0]}),{}),i=(await q0(()=>import("./index-ItcG9P7Q.js"),__vite__mapDeps([4,1,5,3]))).default;ii(this,Ha,new i({...this.options,chainId:u,rpc:{...r,...(n=this.options)==null?void 0:n.rpc}})),J0(this,Ha).http=await J0(this,Ha).setHttpProvider(u)}return J0(this,Ha)}async getWalletClient({chainId:u}={}){const[e,t]=await Promise.all([this.getProvider({chainId:u}),this.getAccount()]),n=this.chains.find(r=>r.id===u);if(!e)throw new Error("provider is required.");return w3({account:t,chain:n,transport:F3(e)})}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}};Ha=new WeakMap;um=new WeakSet;$j=async function(u){const e=await this.getProvider(),t=O0(u);try{return await Promise.race([e.request({method:"wallet_switchEthereumChain",params:[{chainId:t}]}),new Promise(n=>this.on("change",({chain:r})=>{(r==null?void 0:r.id)===u&&n(u)}))]),this.chains.find(n=>n.id===u)??{id:u,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(n){const r=typeof n=="string"?n:n==null?void 0:n.message;throw/user rejected request/i.test(r)?new Xu(n):new Wn(n)}};var Uj={},YE={},gy={exports:{}},Sf=typeof Reflect=="object"?Reflect:null,Fx=Sf&&typeof Sf.apply=="function"?Sf.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},k5;Sf&&typeof Sf.ownKeys=="function"?k5=Sf.ownKeys:Object.getOwnPropertySymbols?k5=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:k5=function(e){return Object.getOwnPropertyNames(e)};function Iw0(u){console&&console.warn&&console.warn(u)}var Wj=Number.isNaN||function(e){return e!==e};function Au(){Au.init.call(this)}gy.exports=Au;gy.exports.once=Mw0;Au.EventEmitter=Au;Au.prototype._events=void 0;Au.prototype._eventsCount=0;Au.prototype._maxListeners=void 0;var Dx=10;function XE(u){if(typeof u!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof u)}Object.defineProperty(Au,"defaultMaxListeners",{enumerable:!0,get:function(){return Dx},set:function(u){if(typeof u!="number"||u<0||Wj(u))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+u+".");Dx=u}});Au.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Au.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Wj(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function qj(u){return u._maxListeners===void 0?Au.defaultMaxListeners:u._maxListeners}Au.prototype.getMaxListeners=function(){return qj(this)};Au.prototype.emit=function(e){for(var t=[],n=1;n0&&(a=t[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var s=i[e];if(s===void 0)return!1;if(typeof s=="function")Fx(s,this,t);else for(var f=s.length,l=Qj(s,f),n=0;n0&&a.length>r&&!a.warned){a.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=u,o.type=e,o.count=a.length,Iw0(o)}return u}Au.prototype.addListener=function(e,t){return Hj(this,e,t,!1)};Au.prototype.on=Au.prototype.addListener;Au.prototype.prependListener=function(e,t){return Hj(this,e,t,!0)};function Ow0(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Gj(u,e,t){var n={fired:!1,wrapFn:void 0,target:u,type:e,listener:t},r=Ow0.bind(n);return r.listener=t,n.wrapFn=r,r}Au.prototype.once=function(e,t){return XE(t),this.on(e,Gj(this,e,t)),this};Au.prototype.prependOnceListener=function(e,t){return XE(t),this.prependListener(e,Gj(this,e,t)),this};Au.prototype.removeListener=function(e,t){var n,r,i,a,o;if(XE(t),r=this._events,r===void 0)return this;if(n=r[e],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():Rw0(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit("removeListener",e,o||t)}return this};Au.prototype.off=Au.prototype.removeListener;Au.prototype.removeAllListeners=function(e){var t,n,r;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r=0;r--)this.removeListener(e,t[r]);return this};function Vj(u,e,t){var n=u._events;if(n===void 0)return[];var r=n[e];return r===void 0?[]:typeof r=="function"?t?[r.listener||r]:[r]:t?Nw0(r):Qj(r,r.length)}Au.prototype.listeners=function(e){return Vj(this,e,!0)};Au.prototype.rawListeners=function(e){return Vj(this,e,!1)};Au.listenerCount=function(u,e){return typeof u.listenerCount=="function"?u.listenerCount(e):Kj.call(u,e)};Au.prototype.listenerCount=Kj;function Kj(u){var e=this._events;if(e!==void 0){var t=e[u];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Au.prototype.eventNames=function(){return this._eventsCount>0?k5(this._events):[]};function Qj(u,e){for(var t=new Array(e),n=0;n(s&&(s.hash=n[0]),s));case"eth_getTransactionReceipt":{let s=n[0];try{s=(await this.sdk.txs.getBySafeTxHash(s)).txHash||s}catch{}return this.sdk.eth.getTransactionReceipt([s]).then(f=>(f&&(f.transactionHash=n[0]),f))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(n[0]);case"eth_call":return this.sdk.eth.call([n[0],n[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([n[0]]);case"eth_gasPrice":return this.sdk.eth.getGasPrice();case"wallet_getPermissions":return this.sdk.wallet.getPermissions();case"wallet_requestPermissions":return this.sdk.wallet.requestPermissions(n[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([n[0]]);default:throw Error(`"${e.method}" not implemented`)}}send(e,t){e||t("Undefined request"),this.request(e).then(n=>t(null,{jsonrpc:"2.0",id:e.id,result:n})).catch(n=>t(n,null))}}YE.SafeAppProvider=$w0;(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.SafeAppProvider=void 0;var e=YE;Object.defineProperty(u,"SafeAppProvider",{enumerable:!0,get:function(){return e.SafeAppProvider}})})(Uj);var Yj={},o9={},Xj={},Zc={},Yc={};const Uw0="@safe-global/safe-apps-sdk",Ww0="8.1.0",qw0="SDK developed to integrate third-party apps with Safe app.",Hw0="dist/src/index.js",Gw0="dist/src/index.d.ts",Vw0=["dist/**/*","src/**/*","CHANGELOG.md","README.md"],Kw0=!1,Qw0=["Safe","sdk","apps"],Jw0={test:"jest","format-dist":`sed -i '' 's/"files":/"_files":/' dist/package.json`,build:"yarn rimraf dist && tsc && yarn format-dist"},Zw0="Safe (https://safe.global)",Yw0="MIT",Xw0={"@safe-global/safe-gateway-typescript-sdk":"^3.5.3",viem:"^1.0.0"},ux0={type:"git",url:"git+https://github.com/safe-global/safe-apps-sdk.git"},ex0={url:"https://github.com/safe-global/safe-apps-sdk/issues"},tx0="https://github.com/safe-global/safe-apps-sdk#readme",nx0={access:"public"},rx0={name:Uw0,version:Ww0,description:qw0,main:Hw0,typings:Gw0,_files:Vw0,sideEffects:Kw0,keywords:Qw0,scripts:Jw0,author:Zw0,license:Yw0,dependencies:Xw0,repository:ux0,bugs:ex0,homepage:tx0,publishConfig:nx0};var ix0=P0&&P0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Yc,"__esModule",{value:!0});Yc.getSDKVersion=void 0;const ax0=ix0(rx0),ox0=()=>ax0.default.version.split("-")[0];Yc.getSDKVersion=ox0;var ep={};Object.defineProperty(ep,"__esModule",{value:!0});ep.generateRequestId=void 0;const sx0=u=>u.toString(16).padStart(2,"0"),fx0=u=>{const e=new Uint8Array((u||40)/2);return window.crypto.getRandomValues(e),Array.from(e,sx0).join("")},lx0=()=>typeof window<"u"?fx0(10):new Date().getTime().toString(36);ep.generateRequestId=lx0;Object.defineProperty(Zc,"__esModule",{value:!0});Zc.MessageFormatter=void 0;const cx0=Yc,dx0=ep;class tp{}Zc.MessageFormatter=tp;tp.makeRequest=(u,e)=>({id:(0,dx0.generateRequestId)(),method:u,params:e,env:{sdkVersion:(0,cx0.getSDKVersion)()}});tp.makeResponse=(u,e,t)=>({id:u,success:!0,version:t,data:e});tp.makeErrorResponse=(u,e,t)=>({id:u,success:!1,error:e,version:t});var gs={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.RestrictedMethods=u.Methods=void 0,function(e){e.sendTransactions="sendTransactions",e.rpcCall="rpcCall",e.getChainInfo="getChainInfo",e.getSafeInfo="getSafeInfo",e.getTxBySafeTxHash="getTxBySafeTxHash",e.getSafeBalances="getSafeBalances",e.signMessage="signMessage",e.signTypedMessage="signTypedMessage",e.getEnvironmentInfo="getEnvironmentInfo",e.getOffChainSignature="getOffChainSignature",e.requestAddressBook="requestAddressBook",e.wallet_getPermissions="wallet_getPermissions",e.wallet_requestPermissions="wallet_requestPermissions"}(u.Methods||(u.Methods={})),function(e){e.requestAddressBook="requestAddressBook"}(u.RestrictedMethods||(u.RestrictedMethods={}))})(gs);(function(u){var e=P0&&P0.__createBinding||(Object.create?function(i,a,o,s){s===void 0&&(s=o);var f=Object.getOwnPropertyDescriptor(a,o);(!f||("get"in f?!a.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return a[o]}}),Object.defineProperty(i,s,f)}:function(i,a,o,s){s===void 0&&(s=o),i[s]=a[o]}),t=P0&&P0.__exportStar||function(i,a){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(a,o)&&e(a,i,o)};Object.defineProperty(u,"__esModule",{value:!0});const n=Zc;class r{constructor(a=null,o=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:s,data:f,source:l})=>{const c=!f,d=!this.isServer&&l===window.parent,p=(typeof f.version<"u"&&parseInt(f.version.split(".")[0]))>=1;let h=!0;return Array.isArray(this.allowedOrigins)&&(h=this.allowedOrigins.find(g=>g.test(s))!==void 0),!c&&d&&p&&h},this.logIncomingMessage=s=>{console.info(`Safe Apps SDK v1: A message was received from origin ${s.origin}. `,s.data)},this.onParentMessage=s=>{this.isValidMessage(s)&&(this.debugMode&&this.logIncomingMessage(s),this.handleIncomingMessage(s.data))},this.handleIncomingMessage=s=>{const{id:f}=s,l=this.callbacks.get(f);l&&(l(s),this.callbacks.delete(f))},this.send=(s,f)=>{const l=n.MessageFormatter.makeRequest(s,f);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(l,"*"),new Promise((c,d)=>{this.callbacks.set(l.id,E=>{if(!E.success){d(new Error(E.error));return}c(E)})})},this.allowedOrigins=a,this.debugMode=o,this.isServer||window.addEventListener("message",this.onParentMessage)}}u.default=r,t(gs,u)})(Xj);var np={},rp={},ip={};Object.defineProperty(ip,"__esModule",{value:!0});ip.isObjectEIP712TypedData=void 0;const Ex0=u=>typeof u=="object"&&u!=null&&"domain"in u&&"types"in u&&"message"in u;ip.isObjectEIP712TypedData=Ex0;var uz={};Object.defineProperty(uz,"__esModule",{value:!0});var ez={},tz={},ca={},dr={},Ay=P0&&P0.__awaiter||function(u,e,t,n){function r(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function o(l){try{f(n.next(l))}catch(c){a(c)}}function s(l){try{f(n.throw(l))}catch(c){a(c)}}function f(l){l.done?i(l.value):r(l.value).then(o,s)}f((n=n.apply(u,e||[])).next())})};Object.defineProperty(dr,"__esModule",{value:!0});dr.deleteData=dr.fetchData=dr.stringifyQuery=dr.insertParams=void 0;const px0=u=>typeof u=="object"&&u!==null&&"code"in u&&"message"in u;function hx0(u,e,t){return u.replace(new RegExp(`\\{${e}\\}`,"g"),t)}function Cx0(u,e){return e?Object.keys(e).reduce((t,n)=>hx0(t,n,String(e[n])),u):u}dr.insertParams=Cx0;function mx0(u){if(!u)return"";const e=new URLSearchParams;Object.keys(u).forEach(n=>{u[n]!=null&&e.append(n,String(u[n]))});const t=e.toString();return t?`?${t}`:""}dr.stringifyQuery=mx0;function nz(u){return Ay(this,void 0,void 0,function*(){let e;try{e=yield u.json()}catch{if(u.headers&&u.headers.get("content-length")!=="0")throw new Error(`Invalid response content: ${u.statusText}`)}if(!u.ok){const t=px0(e)?`${e.code}: ${e.message}`:u.statusText;throw new Error(t)}return e})}function bx0(u,e){return Ay(this,void 0,void 0,function*(){let t;e!=null&&(t={method:"POST",body:typeof e=="string"?e:JSON.stringify(e),headers:{"Content-Type":"application/json"}});const n=yield fetch(u,t);return nz(n)})}dr.fetchData=bx0;function gx0(u){return Ay(this,void 0,void 0,function*(){const t=yield fetch(u,{method:"DELETE"});return nz(t)})}dr.deleteData=gx0;Object.defineProperty(ca,"__esModule",{value:!0});ca.deleteEndpoint=ca.getEndpoint=ca.postEndpoint=void 0;const e3=dr;function yy(u,e,t,n){const r=(0,e3.insertParams)(e,t),i=(0,e3.stringifyQuery)(n);return`${u}${r}${i}`}function Ax0(u,e,t){const n=yy(u,e,t==null?void 0:t.path,t==null?void 0:t.query);return(0,e3.fetchData)(n,t==null?void 0:t.body)}ca.postEndpoint=Ax0;function yx0(u,e,t,n){if(n)return(0,e3.fetchData)(n);const r=yy(u,e,t==null?void 0:t.path,t==null?void 0:t.query);return(0,e3.fetchData)(r)}ca.getEndpoint=yx0;function vx0(u,e,t){const n=yy(u,e,t==null?void 0:t.path);return(0,e3.deleteData)(n)}ca.deleteEndpoint=vx0;var ap={};Object.defineProperty(ap,"__esModule",{value:!0});ap.DEFAULT_BASE_URL=void 0;ap.DEFAULT_BASE_URL="https://safe-client.safe.global";var rz={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.ImplementationVersionState=void 0,function(e){e.UP_TO_DATE="UP_TO_DATE",e.OUTDATED="OUTDATED",e.UNKNOWN="UNKNOWN"}(u.ImplementationVersionState||(u.ImplementationVersionState={}))})(rz);var iz={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.SafeAppSocialPlatforms=u.SafeAppFeatures=u.SafeAppAccessPolicyTypes=void 0,function(e){e.NoRestrictions="NO_RESTRICTIONS",e.DomainAllowlist="DOMAIN_ALLOWLIST"}(u.SafeAppAccessPolicyTypes||(u.SafeAppAccessPolicyTypes={})),function(e){e.BATCHED_TRANSACTIONS="BATCHED_TRANSACTIONS"}(u.SafeAppFeatures||(u.SafeAppFeatures={})),function(e){e.TWITTER="TWITTER",e.GITHUB="GITHUB",e.DISCORD="DISCORD"}(u.SafeAppSocialPlatforms||(u.SafeAppSocialPlatforms={}))})(iz);var az={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.LabelValue=u.DetailedExecutionInfoType=u.TransactionListItemType=u.ConflictType=u.TransactionInfoType=u.SettingsInfoType=u.TransactionTokenType=u.TransferDirection=u.TransactionStatus=u.Operation=void 0,function(e){e[e.CALL=0]="CALL",e[e.DELEGATE=1]="DELEGATE"}(u.Operation||(u.Operation={})),function(e){e.AWAITING_CONFIRMATIONS="AWAITING_CONFIRMATIONS",e.AWAITING_EXECUTION="AWAITING_EXECUTION",e.CANCELLED="CANCELLED",e.FAILED="FAILED",e.SUCCESS="SUCCESS"}(u.TransactionStatus||(u.TransactionStatus={})),function(e){e.INCOMING="INCOMING",e.OUTGOING="OUTGOING",e.UNKNOWN="UNKNOWN"}(u.TransferDirection||(u.TransferDirection={})),function(e){e.ERC20="ERC20",e.ERC721="ERC721",e.NATIVE_COIN="NATIVE_COIN"}(u.TransactionTokenType||(u.TransactionTokenType={})),function(e){e.SET_FALLBACK_HANDLER="SET_FALLBACK_HANDLER",e.ADD_OWNER="ADD_OWNER",e.REMOVE_OWNER="REMOVE_OWNER",e.SWAP_OWNER="SWAP_OWNER",e.CHANGE_THRESHOLD="CHANGE_THRESHOLD",e.CHANGE_IMPLEMENTATION="CHANGE_IMPLEMENTATION",e.ENABLE_MODULE="ENABLE_MODULE",e.DISABLE_MODULE="DISABLE_MODULE",e.SET_GUARD="SET_GUARD",e.DELETE_GUARD="DELETE_GUARD"}(u.SettingsInfoType||(u.SettingsInfoType={})),function(e){e.TRANSFER="Transfer",e.SETTINGS_CHANGE="SettingsChange",e.CUSTOM="Custom",e.CREATION="Creation"}(u.TransactionInfoType||(u.TransactionInfoType={})),function(e){e.NONE="None",e.HAS_NEXT="HasNext",e.END="End"}(u.ConflictType||(u.ConflictType={})),function(e){e.TRANSACTION="TRANSACTION",e.LABEL="LABEL",e.CONFLICT_HEADER="CONFLICT_HEADER",e.DATE_LABEL="DATE_LABEL"}(u.TransactionListItemType||(u.TransactionListItemType={})),function(e){e.MULTISIG="MULTISIG",e.MODULE="MODULE"}(u.DetailedExecutionInfoType||(u.DetailedExecutionInfoType={})),function(e){e.Queued="Queued",e.Next="Next"}(u.LabelValue||(u.LabelValue={}))})(az);var oz={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.FEATURES=u.GAS_PRICE_TYPE=u.RPC_AUTHENTICATION=void 0,function(e){e.API_KEY_PATH="API_KEY_PATH",e.NO_AUTHENTICATION="NO_AUTHENTICATION",e.UNKNOWN="UNKNOWN"}(u.RPC_AUTHENTICATION||(u.RPC_AUTHENTICATION={})),function(e){e.ORACLE="ORACLE",e.FIXED="FIXED",e.FIXED_1559="FIXED1559",e.UNKNOWN="UNKNOWN"}(u.GAS_PRICE_TYPE||(u.GAS_PRICE_TYPE={})),function(e){e.ERC721="ERC721",e.SAFE_APPS="SAFE_APPS",e.CONTRACT_INTERACTION="CONTRACT_INTERACTION",e.DOMAIN_LOOKUP="DOMAIN_LOOKUP",e.SPENDING_LIMIT="SPENDING_LIMIT",e.EIP1559="EIP1559",e.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL",e.TX_SIMULATION="TX_SIMULATION",e.EIP1271="EIP1271"}(u.FEATURES||(u.FEATURES={}))})(oz);var sz={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.TokenType=void 0,function(e){e.ERC20="ERC20",e.ERC721="ERC721",e.NATIVE_TOKEN="NATIVE_TOKEN"}(u.TokenType||(u.TokenType={}))})(sz);var fz={};Object.defineProperty(fz,"__esModule",{value:!0});var lz={};Object.defineProperty(lz,"__esModule",{value:!0});var cz={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.SafeMessageStatus=u.SafeMessageListItemType=void 0,function(e){e.DATE_LABEL="DATE_LABEL",e.MESSAGE="MESSAGE"}(u.SafeMessageListItemType||(u.SafeMessageListItemType={})),function(e){e.NEEDS_CONFIRMATION="NEEDS_CONFIRMATION",e.CONFIRMED="CONFIRMED"}(u.SafeMessageStatus||(u.SafeMessageStatus={}))})(cz);var dz={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.DeviceType=void 0,function(e){e.ANDROID="ANDROID",e.IOS="IOS",e.WEB="WEB"}(u.DeviceType||(u.DeviceType={}))})(dz);(function(u){var e=P0&&P0.__createBinding||(Object.create?function(q,U,i0,s0){s0===void 0&&(s0=i0);var o0=Object.getOwnPropertyDescriptor(U,i0);(!o0||("get"in o0?!U.__esModule:o0.writable||o0.configurable))&&(o0={enumerable:!0,get:function(){return U[i0]}}),Object.defineProperty(q,s0,o0)}:function(q,U,i0,s0){s0===void 0&&(s0=i0),q[s0]=U[i0]}),t=P0&&P0.__exportStar||function(q,U){for(var i0 in q)i0!=="default"&&!Object.prototype.hasOwnProperty.call(U,i0)&&e(U,q,i0)};Object.defineProperty(u,"__esModule",{value:!0}),u.unregisterDevice=u.unregisterSafe=u.registerDevice=u.getDelegates=u.confirmSafeMessage=u.proposeSafeMessage=u.getSafeMessage=u.getSafeMessages=u.getDecodedData=u.getMasterCopies=u.getSafeApps=u.getChainConfig=u.getChainsConfig=u.proposeTransaction=u.getNonces=u.postSafeGasEstimation=u.getTransactionDetails=u.getTransactionQueue=u.getTransactionHistory=u.getCollectiblesPage=u.getCollectibles=u.getOwnedSafes=u.getFiatCurrencies=u.getBalances=u.getMultisigTransactions=u.getModuleTransactions=u.getIncomingTransfers=u.getSafeInfo=u.setBaseUrl=void 0;const n=ca,r=ap;t(rz,u),t(iz,u),t(az,u),t(oz,u),t(sz,u),t(fz,u),t(lz,u),t(cz,u),t(dz,u);let i=r.DEFAULT_BASE_URL;const a=q=>{i=q};u.setBaseUrl=a;function o(q,U){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}",{path:{chainId:q,address:U}})}u.getSafeInfo=o;function s(q,U,i0,s0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}/incoming-transfers/",{path:{chainId:q,address:U},query:i0},s0)}u.getIncomingTransfers=s;function f(q,U,i0,s0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}/module-transactions/",{path:{chainId:q,address:U},query:i0},s0)}u.getModuleTransactions=f;function l(q,U,i0,s0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}/multisig-transactions/",{path:{chainId:q,address:U},query:i0},s0)}u.getMultisigTransactions=l;function c(q,U,i0="usd",s0={}){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}/balances/{currency}",{path:{chainId:q,address:U,currency:i0},query:s0})}u.getBalances=c;function d(){return(0,n.getEndpoint)(i,"/v1/balances/supported-fiat-codes")}u.getFiatCurrencies=d;function E(q,U){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/owners/{address}/safes",{path:{chainId:q,address:U}})}u.getOwnedSafes=E;function p(q,U,i0={}){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:q,address:U},query:i0})}u.getCollectibles=p;function h(q,U,i0={},s0){return(0,n.getEndpoint)(i,"/v2/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:q,address:U},query:i0},s0)}u.getCollectiblesPage=h;function g(q,U,i0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{safe_address}/transactions/history",{path:{chainId:q,safe_address:U},query:{}},i0)}u.getTransactionHistory=g;function b(q,U,i0,s0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{safe_address}/transactions/queued",{path:{chainId:q,safe_address:U},query:{trusted:s0}},i0)}u.getTransactionQueue=b;function m(q,U){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/transactions/{transactionId}",{path:{chainId:q,transactionId:U}})}u.getTransactionDetails=m;function A(q,U,i0){return(0,n.postEndpoint)(i,"/v2/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations",{path:{chainId:q,safe_address:U},body:i0})}u.postSafeGasEstimation=A;function y(q,U){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{safe_address}/nonces",{path:{chainId:q,safe_address:U}})}u.getNonces=y;function B(q,U,i0){return(0,n.postEndpoint)(i,"/v1/chains/{chainId}/transactions/{safe_address}/propose",{path:{chainId:q,safe_address:U},body:i0})}u.proposeTransaction=B;function v(q){return(0,n.getEndpoint)(i,"/v1/chains",{query:q})}u.getChainsConfig=v;function C(q){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}",{path:{chainId:q}})}u.getChainConfig=C;function F(q,U={}){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safe-apps",{path:{chainId:q},query:U})}u.getSafeApps=F;function S(q){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/about/master-copies",{path:{chainId:q}})}u.getMasterCopies=S;function x(q,U,i0){return(0,n.postEndpoint)(i,"/v1/chains/{chainId}/data-decoder",{path:{chainId:q},body:{data:U,to:i0}})}u.getDecodedData=x;function $(q,U,i0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:q,safe_address:U},query:{}},i0)}u.getSafeMessages=$;function X(q,U){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/messages/{message_hash}",{path:{chainId:q,message_hash:U}})}u.getSafeMessage=X;function Q(q,U,i0){return(0,n.postEndpoint)(i,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:q,safe_address:U},body:i0})}u.proposeSafeMessage=Q;function Z(q,U,i0){return(0,n.postEndpoint)(i,"/v1/chains/{chainId}/messages/{message_hash}/signatures",{path:{chainId:q,message_hash:U},body:i0})}u.confirmSafeMessage=Z;function I(q,U={}){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/delegates",{path:{chainId:q},query:U})}u.getDelegates=I;function O(q){return(0,n.postEndpoint)(i,"/v1/register/notifications",{body:q})}u.registerDevice=O;function W(q,U,i0){return(0,n.deleteEndpoint)(i,"/v1/chains/{chainId}/notifications/devices/{uuid}/safes/{safe_address}",{path:{chainId:q,safe_address:U,uuid:i0}})}u.unregisterSafe=W;function L(q,U){return(0,n.deleteEndpoint)(i,"/v1/chains/{chainId}/notifications/devices/{uuid}",{path:{chainId:q,uuid:U}})}u.unregisterDevice=L})(tz);(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.TransferDirection=u.TransactionStatus=u.TokenType=u.Operation=void 0;var e=tz;Object.defineProperty(u,"Operation",{enumerable:!0,get:function(){return e.Operation}}),Object.defineProperty(u,"TokenType",{enumerable:!0,get:function(){return e.TokenType}}),Object.defineProperty(u,"TransactionStatus",{enumerable:!0,get:function(){return e.TransactionStatus}}),Object.defineProperty(u,"TransferDirection",{enumerable:!0,get:function(){return e.TransferDirection}})})(ez);var Ez={};Object.defineProperty(Ez,"__esModule",{value:!0});(function(u){var e=P0&&P0.__createBinding||(Object.create?function(n,r,i,a){a===void 0&&(a=i);var o=Object.getOwnPropertyDescriptor(r,i);(!o||("get"in o?!r.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return r[i]}}),Object.defineProperty(n,a,o)}:function(n,r,i,a){a===void 0&&(a=i),n[a]=r[i]}),t=P0&&P0.__exportStar||function(n,r){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&e(r,n,i)};Object.defineProperty(u,"__esModule",{value:!0}),t(ip,u),t(uz,u),t(ez,u),t(Ez,u)})(rp);Object.defineProperty(np,"__esModule",{value:!0});np.TXs=void 0;const V6=gs,Bx0=rp;class Fx0{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(V6.Methods.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const t={message:e};return(await this.communicator.send(V6.Methods.signMessage,t)).data}async signTypedMessage(e){if(!(0,Bx0.isObjectEIP712TypedData)(e))throw new Error("Invalid typed data");return(await this.communicator.send(V6.Methods.signTypedMessage,{typedData:e})).data}async send({txs:e,params:t}){if(!e||!e.length)throw new Error("No transactions were passed");const n={txs:e,params:t};return(await this.communicator.send(V6.Methods.sendTransactions,n)).data}}np.TXs=Fx0;var op={},Xc={};Object.defineProperty(Xc,"__esModule",{value:!0});Xc.RPC_CALLS=void 0;Xc.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"};Object.defineProperty(op,"__esModule",{value:!0});op.Eth=void 0;const Dt=Xc,Dx0=gs,wr={defaultBlockParam:(u="latest")=>u,returnFullTxObjectParam:(u=!1)=>u,blockNumberToHex:u=>Number.isInteger(u)?`0x${u.toString(16)}`:u};class wx0{constructor(e){this.communicator=e,this.call=this.buildRequest({call:Dt.RPC_CALLS.eth_call,formatters:[null,wr.defaultBlockParam]}),this.getBalance=this.buildRequest({call:Dt.RPC_CALLS.eth_getBalance,formatters:[null,wr.defaultBlockParam]}),this.getCode=this.buildRequest({call:Dt.RPC_CALLS.eth_getCode,formatters:[null,wr.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:Dt.RPC_CALLS.eth_getStorageAt,formatters:[null,wr.blockNumberToHex,wr.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:Dt.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:Dt.RPC_CALLS.eth_getBlockByHash,formatters:[null,wr.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:Dt.RPC_CALLS.eth_getBlockByNumber,formatters:[wr.blockNumberToHex,wr.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:Dt.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:Dt.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:Dt.RPC_CALLS.eth_getTransactionCount,formatters:[null,wr.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:Dt.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=t=>this.buildRequest({call:Dt.RPC_CALLS.eth_estimateGas})([t]),this.setSafeSettings=this.buildRequest({call:Dt.RPC_CALLS.safe_setSettings})}buildRequest(e){const{call:t,formatters:n}=e;return async r=>{n&&Array.isArray(r)&&n.forEach((o,s)=>{o&&(r[s]=o(r[s]))});const i={call:t,params:r||[]};return(await this.communicator.send(Dx0.Methods.rpcCall,i)).data}}}op.Eth=wx0;var sp={};const xx0=P9(Sn0);var t3={};Object.defineProperty(t3,"__esModule",{value:!0});t3.MAGIC_VALUE_BYTES=t3.MAGIC_VALUE=void 0;const kx0="0x1626ba7e";t3.MAGIC_VALUE=kx0;const _x0="0x20c13b0b";t3.MAGIC_VALUE_BYTES=_x0;var vy={},u6={},Jo={};Object.defineProperty(Jo,"__esModule",{value:!0});Jo.PermissionsError=Jo.PERMISSIONS_REQUEST_REJECTED=void 0;Jo.PERMISSIONS_REQUEST_REJECTED=4001;class By extends Error{constructor(e,t,n){super(e),this.code=t,this.data=n,Object.setPrototypeOf(this,By.prototype)}}Jo.PermissionsError=By;Object.defineProperty(u6,"__esModule",{value:!0});u6.Wallet=void 0;const gh=gs,K6=Jo;class Sx0{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(gh.Methods.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new K6.PermissionsError("Permissions request is invalid",K6.PERMISSIONS_REQUEST_REJECTED);try{return(await this.communicator.send(gh.Methods.wallet_requestPermissions,e)).data}catch{throw new K6.PermissionsError("Permissions rejected",K6.PERMISSIONS_REQUEST_REJECTED)}}isPermissionRequestValid(e){return e.every(t=>typeof t=="object"?Object.keys(t).every(n=>!!Object.values(gh.RestrictedMethods).includes(n)):!1)}}u6.Wallet=Sx0;Object.defineProperty(vy,"__esModule",{value:!0});const Tx0=u6,wx=Jo,xx=(u,e)=>e.some(t=>t.parentCapability===u),Px0=()=>(u,e,t)=>{const n=t.value;return t.value=async function(){const r=new Tx0.Wallet(this.communicator);let i=await r.getPermissions();if(xx(e,i)||(i=await r.requestPermissions([{[e]:{}}])),!xx(e,i))throw new wx.PermissionsError("Permissions rejected",wx.PERMISSIONS_REQUEST_REJECTED);return n.apply(this)},t};vy.default=Px0;var Ix0=P0&&P0.__decorate||function(u,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i},Ox0=P0&&P0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(sp,"__esModule",{value:!0});sp.Safe=void 0;const Q6=xx0,kx=t3,Fi=gs,_x=Xc,Rx0=rp,Nx0=Ox0(vy);class pz{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(Fi.Methods.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(Fi.Methods.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(Fi.Methods.getSafeBalances,{currency:e})).data}async check1271Signature(e,t="0x"){const n=await this.getInfo(),r=(0,Q6.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,t]}),i={call:_x.RPC_CALLS.eth_call,params:[{to:n.safeAddress,data:r},"latest"]};try{return(await this.communicator.send(Fi.Methods.rpcCall,i)).data.slice(0,10).toLowerCase()===kx.MAGIC_VALUE}catch{return!1}}async check1271SignatureBytes(e,t="0x"){const n=await this.getInfo(),r=(0,Q6.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,t]}),i={call:_x.RPC_CALLS.eth_call,params:[{to:n.safeAddress,data:r},"latest"]};try{return(await this.communicator.send(Fi.Methods.rpcCall,i)).data.slice(0,10).toLowerCase()===kx.MAGIC_VALUE_BYTES}catch{return!1}}calculateMessageHash(e){return(0,Q6.hashMessage)(e)}calculateTypedMessageHash(e){const t=typeof e.domain.chainId=="object"?e.domain.chainId.toNumber():Number(e.domain.chainId);let n=e.primaryType;if(!n){const r=Object.values(e.types),i=Object.keys(e.types).filter(a=>r.every(o=>o.every(({type:s})=>s.replace("[","").replace("]","")!==a)));if(i.length===0||i.length>1)throw new Error("Please specify primaryType");n=i[0]}return(0,Q6.hashTypedData)({message:e.message,domain:Object.assign(Object.assign({},e.domain),{chainId:t,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt}),types:e.types,primaryType:n})}async getOffChainSignature(e){return(await this.communicator.send(Fi.Methods.getOffChainSignature,e)).data}async isMessageSigned(e,t="0x"){let n;if(typeof e=="string"&&(n=async()=>{const r=this.calculateMessageHash(e);return await this.isMessageHashSigned(r,t)}),(0,Rx0.isObjectEIP712TypedData)(e)&&(n=async()=>{const r=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(r,t)}),n)return await n();throw new Error("Invalid message type")}async isMessageHashSigned(e,t="0x"){const n=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const r of n)if(await r(e,t))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(Fi.Methods.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(Fi.Methods.requestAddressBook,void 0)).data}}Ix0([(0,Nx0.default)()],pz.prototype,"requestAddressBook",null);sp.Safe=pz;var Mx0=P0&&P0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(o9,"__esModule",{value:!0});const jx0=Mx0(Xj),zx0=np,Lx0=op,$x0=sp,Ux0=u6;let Wx0=class{constructor(e={}){const{allowedDomains:t=null,debug:n=!1}=e;this.communicator=new jx0.default(t,n),this.eth=new Lx0.Eth(this.communicator),this.txs=new zx0.TXs(this.communicator),this.safe=new $x0.Safe(this.communicator),this.wallet=new Ux0.Wallet(this.communicator)}};o9.default=Wx0;(function(u){var e=P0&&P0.__createBinding||(Object.create?function(a,o,s,f){f===void 0&&(f=s);var l=Object.getOwnPropertyDescriptor(o,s);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(a,f,l)}:function(a,o,s,f){f===void 0&&(f=s),a[f]=o[s]}),t=P0&&P0.__exportStar||function(a,o){for(var s in a)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&e(o,a,s)},n=P0&&P0.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(u,"__esModule",{value:!0}),u.getSDKVersion=void 0;const r=n(o9);u.default=r.default,t(o9,u),t(rp,u),t(gs,u),t(Zc,u);var i=Yc;Object.defineProperty(u,"getSDKVersion",{enumerable:!0,get:function(){return i.getSDKVersion}})})(Yj);const J6=f3(Yj);var xl,kl,qx0=class extends Pc{constructor({chains:u,options:e}){const t={shimDisconnect:!1,...e};super({chains:u,options:t}),this.id="safe",this.name="Safe",this.ready=!(typeof window>"u")&&(window==null?void 0:window.parent)!==window,re(this,xl,void 0),re(this,kl,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`;let n=J6;typeof J6!="function"&&typeof J6.default=="function"&&(n=J6.default),ii(this,kl,new n(t))}async connect(){var n;const u=await this.getProvider();if(!u)throw new ft;u.on&&(u.on("accountsChanged",this.onAccountsChanged),u.on("chainChanged",this.onChainChanged),u.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});const e=await this.getAccount(),t=await this.getChainId();return this.options.shimDisconnect&&((n=this.storage)==null||n.setItem(this.shimDisconnectKey,!0)),{account:e,chain:{id:t,unsupported:this.isChainUnsupported(t)}}}async disconnect(){var e;const u=await this.getProvider();u!=null&&u.removeListener&&(u.removeListener("accountsChanged",this.onAccountsChanged),u.removeListener("chainChanged",this.onChainChanged),u.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&((e=this.storage)==null||e.removeItem(this.shimDisconnectKey)))}async getAccount(){const u=await this.getProvider();if(!u)throw new ft;const e=await u.request({method:"eth_accounts"});return ju(e[0])}async getChainId(){const u=await this.getProvider();if(!u)throw new ft;return Ko(u.chainId)}async getProvider(){if(!J0(this,xl)){const u=await J0(this,kl).safe.getInfo();if(!u)throw new Error("Could not load Safe information");ii(this,xl,new Uj.SafeAppProvider(u,J0(this,kl)))}return J0(this,xl)}async getWalletClient({chainId:u}={}){const e=await this.getProvider(),t=await this.getAccount(),n=this.chains.find(r=>r.id===u);if(!e)throw new Error("provider is required.");return w3({account:t,chain:n,transport:F3(e)})}async isAuthorized(){var u;try{return this.options.shimDisconnect&&!((u=this.storage)!=null&&u.getItem(this.shimDisconnectKey))?!1:!!await this.getAccount()}catch{return!1}}onAccountsChanged(u){}onChainChanged(u){}onDisconnect(){this.emit("disconnect")}};xl=new WeakMap;kl=new WeakMap;function Hx0(u){return Object.fromEntries(Object.entries(u).filter(([e,t])=>t!==void 0))}function Gx0(u){return"groupName"in u[0]?Sx(u):Sx([{groupName:"",wallets:u}])()}var Sx=u=>()=>{let e=-1;const t=[],n=[],r=[],i=[];return u.forEach(({groupName:o,wallets:s},f)=>{s.forEach(l=>{if(e++,l!=null&&l.iconAccent&&!Zy0(l==null?void 0:l.iconAccent))throw new Error(`Property \`iconAccent\` is not a hex value for wallet: ${l.name}`);const c={...l,groupIndex:f,groupName:o,index:e};typeof l.hidden=="function"?r.push(c):n.push(c)})}),[...n,...r].forEach(({createConnector:o,groupIndex:s,groupName:f,hidden:l,index:c,...d})=>{if(typeof l=="function"&&l({wallets:[...i.map(({connector:m,id:A,installed:y,name:B})=>({connector:m,id:A,installed:y,name:B}))]}))return;const{connector:E,...p}=Hx0(o());let h;if(d.id==="walletConnect"&&p.qrCode&&!we()){const{chains:b,options:m}=E;h=new Lj({chains:b,options:{...m,showQrModal:!0}}),t.push(h)}const g={connector:E,groupIndex:s,groupName:f,index:c,walletConnectModalConnector:h,...d,...p};i.push(g),t.includes(E)||(t.push(E),E._wallets=[]),E._wallets.push(g)}),t},Vx0=({chains:u,...e})=>{var t;return{id:"brave",name:"Brave Wallet",iconUrl:async()=>(await q0(()=>import("./braveWallet-BTBH4MDN-rhLwbrvd.js"),__vite__mapDeps([]))).default,iconBackground:"#fff",installed:typeof window<"u"&&((t=window.ethereum)==null?void 0:t.isBraveWallet)===!0,downloadUrls:{},createConnector:()=>({connector:new K4({chains:u,options:e})})}};function hz(u){if(typeof window>"u"||typeof window.ethereum>"u")return;const e=window.ethereum.providers;return e?e.find(t=>t[u]):window.ethereum[u]?window.ethereum:void 0}function Cz(u){return!!hz(u)}function Kx0(u){if(typeof window>"u"||typeof window.ethereum>"u")return;const e=window.ethereum.providers,t=hz(u);return t||(typeof e<"u"&&e.length>0?e[0]:window.ethereum)}function Qx0({chains:u,flag:e,options:t}){return new K4({chains:u,options:{getProvider:()=>Kx0(e),...t}})}var Jx0=({appName:u,chains:e,...t})=>{const n=Cz("isCoinbaseWallet");return{id:"coinbase",name:"Coinbase Wallet",shortName:"Coinbase",iconUrl:async()=>(await q0(()=>import("./coinbaseWallet-2OUR5TUP-lljav0iR.js"),__vite__mapDeps([]))).default,iconAccent:"#2c5ff6",iconBackground:"#2c5ff6",installed:n||void 0,downloadUrls:{android:"https://play.google.com/store/apps/details?id=org.toshi",ios:"https://apps.apple.com/us/app/coinbase-wallet-store-crypto/id1278383455",mobile:"https://coinbase.com/wallet/downloads",qrCode:"https://coinbase-wallet.onelink.me/q5Sx/fdb9b250",chrome:"https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",browserExtension:"https://coinbase.com/wallet"},createConnector:()=>{const r=ms(),i=new _w0({chains:e,options:{appName:u,headlessMode:!0,...t}});return{connector:i,...r?{}:{qrCode:{getUri:async()=>(await i.getProvider()).qrUrl,instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-mobile",steps:[{description:"wallet_connectors.coinbase.qr_code.step1.description",step:"install",title:"wallet_connectors.coinbase.qr_code.step1.title"},{description:"wallet_connectors.coinbase.qr_code.step2.description",step:"create",title:"wallet_connectors.coinbase.qr_code.step2.title"},{description:"wallet_connectors.coinbase.qr_code.step3.description",step:"scan",title:"wallet_connectors.coinbase.qr_code.step3.title"}]}},extension:{instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-extension",steps:[{description:"wallet_connectors.coinbase.extension.step1.description",step:"install",title:"wallet_connectors.coinbase.extension.step1.title"},{description:"wallet_connectors.coinbase.extension.step2.description",step:"create",title:"wallet_connectors.coinbase.extension.step2.title"},{description:"wallet_connectors.coinbase.extension.step3.description",step:"refresh",title:"wallet_connectors.coinbase.extension.step3.title"}]}}}}}}},Zx0=({chains:u,...e})=>({id:"injected",name:"Browser Wallet",iconUrl:async()=>(await q0(()=>import("./injectedWallet-EUKDEAIU-nRYX44n1.js"),__vite__mapDeps([]))).default,iconBackground:"#fff",hidden:({wallets:t})=>t.some(n=>n.installed&&n.name===n.connector.name&&(n.connector instanceof K4||n.id==="coinbase")),createConnector:()=>({connector:new K4({chains:u,options:e})})});async function Fy(u,e){const t=await u.getProvider();return e==="2"?new Promise(n=>t.once("display_uri",n)):t.connector.uri}var mz=new Map;function Yx0(u,e){const t=u==="1"?new Pw0(e):new Lj(e);return mz.set(JSON.stringify(e),t),t}function s9({chains:u,options:e={},projectId:t,version:n="2"}){const r="21fef48091f12692cad574a6f7753643";if(n==="2"){if(!t||t==="")throw new Error("No projectId found. Every dApp must now provide a WalletConnect Cloud projectId to enable WalletConnect v2 https://www.rainbowkit.com/docs/installation#configure");(t==="YOUR_PROJECT_ID"||t===r)&&console.warn("Invalid projectId. Please create a unique WalletConnect Cloud projectId for your dApp https://www.rainbowkit.com/docs/installation#configure")}const i={chains:u,options:n==="1"?{qrcode:!1,...e}:{projectId:t==="YOUR_PROJECT_ID"?r:t,showQrModal:!1,...e}},a=JSON.stringify(i),o=mz.get(a);return o??Yx0(n,i)}function Tx(u){return!(!(u!=null&&u.isMetaMask)||u.isBraveWallet&&!u._events&&!u._state||u.isApexWallet||u.isAvalanche||u.isBackpack||u.isBifrost||u.isBitKeep||u.isBitski||u.isBlockWallet||u.isCoinbaseWallet||u.isDawn||u.isEnkrypt||u.isExodus||u.isFrame||u.isFrontier||u.isGamestop||u.isHyperPay||u.isImToken||u.isKuCoinWallet||u.isMathWallet||u.isOkxWallet||u.isOKExWallet||u.isOneInchIOSWallet||u.isOneInchAndroidWallet||u.isOpera||u.isPhantom||u.isPortal||u.isRabby||u.isRainbow||u.isStatus||u.isTalisman||u.isTally||u.isTokenPocket||u.isTokenary||u.isTrust||u.isTrustWallet||u.isXDEFI||u.isZeal||u.isZerion)}var Xx0=({chains:u,projectId:e,walletConnectOptions:t,walletConnectVersion:n="2",...r})=>{var i,a;const o=typeof window<"u"&&((i=window.ethereum)==null?void 0:i.providers),s=typeof window<"u"&&typeof window.ethereum<"u"&&(((a=window.ethereum.providers)==null?void 0:a.some(Tx))||window.ethereum.isMetaMask),f=!s;return{id:"metaMask",name:"MetaMask",iconUrl:async()=>(await q0(()=>import("./metaMaskWallet-ORHUNQRP-B-MG5eKR.js"),__vite__mapDeps([]))).default,iconAccent:"#f6851a",iconBackground:"#fff",installed:f?void 0:s,downloadUrls:{android:"https://play.google.com/store/apps/details?id=io.metamask",ios:"https://apps.apple.com/us/app/metamask/id1438144202",mobile:"https://metamask.io/download",qrCode:"https://metamask.io/download",chrome:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",edge:"https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",firefox:"https://addons.mozilla.org/firefox/addon/ether-metamask",opera:"https://addons.opera.com/extensions/details/metamask-10",browserExtension:"https://metamask.io/download"},createConnector:()=>{const l=f?s9({projectId:e,chains:u,version:n,options:t}):new Sw0({chains:u,options:{getProvider:()=>o?o.find(Tx):typeof window<"u"?window.ethereum:void 0,...r}}),c=async()=>{const d=await Fy(l,n);return WA()?d:ms()?`metamask://wc?uri=${encodeURIComponent(d)}`:`https://metamask.app.link/wc?uri=${encodeURIComponent(d)}`};return{connector:l,mobile:{getUri:f?c:void 0},qrCode:f?{getUri:c,instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.qr_code.step1.description",step:"install",title:"wallet_connectors.metamask.qr_code.step1.title"},{description:"wallet_connectors.metamask.qr_code.step2.description",step:"create",title:"wallet_connectors.metamask.qr_code.step2.title"},{description:"wallet_connectors.metamask.qr_code.step3.description",step:"refresh",title:"wallet_connectors.metamask.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.extension.step1.description",step:"install",title:"wallet_connectors.metamask.extension.step1.title"},{description:"wallet_connectors.metamask.extension.step2.description",step:"create",title:"wallet_connectors.metamask.extension.step2.title"},{description:"wallet_connectors.metamask.extension.step3.description",step:"refresh",title:"wallet_connectors.metamask.extension.step3.title"}]}}}}}},uk0=({chains:u,projectId:e,walletConnectOptions:t,walletConnectVersion:n="2",...r})=>{const i=Cz("isRainbow"),a=!i;return{id:"rainbow",name:"Rainbow",iconUrl:async()=>(await q0(()=>import("./rainbowWallet-GGU64QEI-aO3VF4UJ.js"),__vite__mapDeps([]))).default,iconBackground:"#0c2f78",installed:a?void 0:i,downloadUrls:{android:"https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",ios:"https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",mobile:"https://rainbow.download?utm_source=rainbowkit",qrCode:"https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",browserExtension:"https://rainbow.me/extension?utm_source=rainbowkit"},createConnector:()=>{const o=a?s9({projectId:e,chains:u,version:n,options:t}):Qx0({flag:"isRainbow",chains:u,options:r}),s=async()=>{const f=await Fy(o,n);return WA()?f:ms()?`rainbow://wc?uri=${encodeURIComponent(f)}&connector=rainbowkit`:`https://rnbwapp.com/wc?uri=${encodeURIComponent(f)}&connector=rainbowkit`};return{connector:o,mobile:{getUri:a?s:void 0},qrCode:a?{getUri:s,instructions:{learnMoreUrl:"https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",steps:[{description:"wallet_connectors.rainbow.qr_code.step1.description",step:"install",title:"wallet_connectors.rainbow.qr_code.step1.title"},{description:"wallet_connectors.rainbow.qr_code.step2.description",step:"create",title:"wallet_connectors.rainbow.qr_code.step2.title"},{description:"wallet_connectors.rainbow.qr_code.step3.description",step:"scan",title:"wallet_connectors.rainbow.qr_code.step3.title"}]}}:void 0}}}},ek0=({chains:u,...e})=>({id:"safe",name:"Safe",iconAccent:"#12ff80",iconBackground:"#fff",iconUrl:async()=>(await q0(()=>import("./safeWallet-DFMLSLCR-0HldBjhm.js"),__vite__mapDeps([]))).default,installed:!(typeof window>"u")&&(window==null?void 0:window.parent)!==window,downloadUrls:{},createConnector:()=>({connector:new qx0({chains:u,options:e})})}),tk0=({chains:u,options:e,projectId:t,version:n="2"})=>({id:"walletConnect",name:"WalletConnect",iconUrl:async()=>(await q0(()=>import("./walletConnectWallet-D6ZADJM7-hbivFVny.js"),__vite__mapDeps([]))).default,iconBackground:"#3b99fc",createConnector:()=>{const r=ms(),i=s9(n==="1"?{version:"1",chains:u,options:{qrcode:r,...e}}:{version:"2",chains:u,projectId:t,options:{showQrModal:r,...e}}),a=async()=>Fy(i,n);return{connector:i,...r?{}:{mobile:{getUri:a},qrCode:{getUri:a}}}}}),nk0=({appName:u,chains:e,projectId:t})=>{const n=[{groupName:"Popular",wallets:[Zx0({chains:e}),ek0({chains:e}),uk0({chains:e,projectId:t}),Jx0({appName:u,chains:e}),Xx0({chains:e,projectId:t}),tk0({chains:e,projectId:t}),Vx0({chains:e})]}];return{connectors:Gx0(n),wallets:n}};function rk0(u){return fu("MuiSvgIcon",u)}Eu("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ik0=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ak0=u=>{const{color:e,fontSize:t,classes:n}=u,r={root:["root",e!=="inherit"&&`color${K0(e)}`,`fontSize${K0(t)}`]};return du(r,rk0,n)},ok0=$0("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,t.color!=="inherit"&&e[`color${K0(t.color)}`],e[`fontSize${K0(t.fontSize)}`]]}})(({theme:u,ownerState:e})=>{var t,n,r,i,a,o,s,f,l,c,d,E,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=u.transitions)==null||(n=t.create)==null?void 0:n.call(t,"fill",{duration:(r=u.transitions)==null||(r=r.duration)==null?void 0:r.shorter}),fontSize:{inherit:"inherit",small:((i=u.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((o=u.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,24))||"1.5rem",large:((f=u.typography)==null||(l=f.pxToRem)==null?void 0:l.call(f,35))||"2.1875rem"}[e.fontSize],color:(c=(d=(u.vars||u).palette)==null||(d=d[e.color])==null?void 0:d.main)!=null?c:{action:(E=(u.vars||u).palette)==null||(E=E.action)==null?void 0:E.active,disabled:(p=(u.vars||u).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[e.color]}}),bz=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:o="svg",fontSize:s="medium",htmlColor:f,inheritViewBox:l=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,E=L0(n,ik0),p=w.isValidElement(r)&&r.type==="svg",h=N({},n,{color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p}),g={};l||(g.viewBox=d);const b=ak0(h);return V.jsxs(ok0,N({as:o,className:H0(b.root,i),focusable:"false",color:f,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:t},g,E,p&&r.props,{ownerState:h,children:[p?r.props.children:r,c?V.jsx("title",{children:c}):null]}))});bz.muiName="SvgIcon";const Px=bz;function gz(u,e){function t(n,r){return V.jsx(Px,N({"data-testid":`${e}Icon`,ref:r},n,{children:u}))}return t.muiName=Px.muiName,w.memo(w.forwardRef(t))}var yu={};/** * @license React * react-is.production.min.js * @@ -275,15 +275,15 @@ PERFORMANCE OF THIS SOFTWARE. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Fy=Symbol.for("react.element"),Dy=Symbol.for("react.portal"),sp=Symbol.for("react.fragment"),fp=Symbol.for("react.strict_mode"),lp=Symbol.for("react.profiler"),cp=Symbol.for("react.provider"),dp=Symbol.for("react.context"),sk0=Symbol.for("react.server_context"),Ep=Symbol.for("react.forward_ref"),pp=Symbol.for("react.suspense"),hp=Symbol.for("react.suspense_list"),Cp=Symbol.for("react.memo"),mp=Symbol.for("react.lazy"),fk0=Symbol.for("react.offscreen"),Az;Az=Symbol.for("react.module.reference");function Bn(u){if(typeof u=="object"&&u!==null){var e=u.$$typeof;switch(e){case Fy:switch(u=u.type,u){case sp:case lp:case fp:case pp:case hp:return u;default:switch(u=u&&u.$$typeof,u){case sk0:case dp:case Ep:case mp:case Cp:case cp:return u;default:return e}}case Dy:return e}}}yu.ContextConsumer=dp;yu.ContextProvider=cp;yu.Element=Fy;yu.ForwardRef=Ep;yu.Fragment=sp;yu.Lazy=mp;yu.Memo=Cp;yu.Portal=Dy;yu.Profiler=lp;yu.StrictMode=fp;yu.Suspense=pp;yu.SuspenseList=hp;yu.isAsyncMode=function(){return!1};yu.isConcurrentMode=function(){return!1};yu.isContextConsumer=function(u){return Bn(u)===dp};yu.isContextProvider=function(u){return Bn(u)===cp};yu.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===Fy};yu.isForwardRef=function(u){return Bn(u)===Ep};yu.isFragment=function(u){return Bn(u)===sp};yu.isLazy=function(u){return Bn(u)===mp};yu.isMemo=function(u){return Bn(u)===Cp};yu.isPortal=function(u){return Bn(u)===Dy};yu.isProfiler=function(u){return Bn(u)===lp};yu.isStrictMode=function(u){return Bn(u)===fp};yu.isSuspense=function(u){return Bn(u)===pp};yu.isSuspenseList=function(u){return Bn(u)===hp};yu.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===sp||u===lp||u===fp||u===pp||u===hp||u===fk0||typeof u=="object"&&u!==null&&(u.$$typeof===mp||u.$$typeof===Cp||u.$$typeof===cp||u.$$typeof===dp||u.$$typeof===Ep||u.$$typeof===Az||u.getModuleId!==void 0)};yu.typeOf=Bn;const yz=u=>u.scrollTop;function s9(u,e){var t,n;const{timeout:r,easing:i,style:a={}}=u;return{duration:(t=a.transitionDuration)!=null?t:typeof r=="number"?r:r[e.mode]||0,easing:(n=a.transitionTimingFunction)!=null?n:typeof i=="object"?i[e.mode]:i,delay:a.transitionDelay}}function lk0(u){return fu("MuiTypography",u)}Eu("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ck0=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],dk0=u=>{const{align:e,gutterBottom:t,noWrap:n,paragraph:r,variant:i,classes:a}=u,o={root:["root",i,u.align!=="inherit"&&`align${K0(e)}`,t&&"gutterBottom",n&&"noWrap",r&&"paragraph"]};return du(o,lk0,a)},Ek0=$0("span",{name:"MuiTypography",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,t.variant&&e[t.variant],t.align!=="inherit"&&e[`align${K0(t.align)}`],t.noWrap&&e.noWrap,t.gutterBottom&&e.gutterBottom,t.paragraph&&e.paragraph]}})(({theme:u,ownerState:e})=>N({margin:0},e.variant==="inherit"&&{font:"inherit"},e.variant!=="inherit"&&u.typography[e.variant],e.align!=="inherit"&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16})),Px={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},pk0={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},hk0=u=>pk0[u]||u,Ck0=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiTypography"}),r=hk0(n.color),i=vd(N({},n,{color:r})),{align:a="inherit",className:o,component:s,gutterBottom:f=!1,noWrap:l=!1,paragraph:c=!1,variant:d="body1",variantMapping:E=Px}=i,p=L0(i,ck0),h=N({},i,{align:a,color:r,className:o,component:s,gutterBottom:f,noWrap:l,paragraph:c,variant:d,variantMapping:E}),g=s||(c?"p":E[d]||Px[d])||"span",b=dk0(h);return K.jsx(Ek0,N({as:g,ref:t,ownerState:h,className:H0(b.root,o)},p))}),Jt=Ck0;function f9(u){return typeof u=="string"}function mk0(u,e,t){return u===void 0||f9(u)?e:N({},e,{ownerState:N({},e.ownerState,t)})}const bk0={disableDefaultClasses:!1},gk0=w.createContext(bk0);function Ak0(u){const{disableDefaultClasses:e}=w.useContext(gk0);return t=>e?"":u(t)}function l9(u,e=[]){if(u===void 0)return{};const t={};return Object.keys(u).filter(n=>n.match(/^on[A-Z]/)&&typeof u[n]=="function"&&!e.includes(n)).forEach(n=>{t[n]=u[n]}),t}function yk0(u,e,t){return typeof u=="function"?u(e,t):u}function Ix(u){if(u===void 0)return{};const e={};return Object.keys(u).filter(t=>!(t.match(/^on[A-Z]/)&&typeof u[t]=="function")).forEach(t=>{e[t]=u[t]}),e}function vk0(u){const{getSlotProps:e,additionalProps:t,externalSlotProps:n,externalForwardedProps:r,className:i}=u;if(!e){const E=H0(t==null?void 0:t.className,i,r==null?void 0:r.className,n==null?void 0:n.className),p=N({},t==null?void 0:t.style,r==null?void 0:r.style,n==null?void 0:n.style),h=N({},t,r,n);return E.length>0&&(h.className=E),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:void 0}}const a=l9(N({},r,n)),o=Ix(n),s=Ix(r),f=e(a),l=H0(f==null?void 0:f.className,t==null?void 0:t.className,i,r==null?void 0:r.className,n==null?void 0:n.className),c=N({},f==null?void 0:f.style,t==null?void 0:t.style,r==null?void 0:r.style,n==null?void 0:n.style),d=N({},f,t,s,o);return l.length>0&&(d.className=l),Object.keys(c).length>0&&(d.style=c),{props:d,internalRef:f.ref}}const Bk0=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Zo(u){var e;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1}=u,a=L0(u,Bk0),o=i?{}:yk0(n,r),{props:s,internalRef:f}=vk0(N({},a,{externalSlotProps:o})),l=et(f,o==null?void 0:o.ref,(e=u.additionalProps)==null?void 0:e.ref);return mk0(t,N({},s,{ref:l}),r)}function Fk0(u){return fu("MuiButton",u)}Eu("MuiButton",["root","active","disabled","focusVisible"]);function Dk0(u={}){const{disabled:e=!1,focusableWhenDisabled:t,href:n,rootRef:r,tabIndex:i,to:a,type:o}=u,s=w.useRef(),[f,l]=w.useState(!1),{isFocusVisibleRef:c,onFocus:d,onBlur:E,ref:p}=VT(),[h,g]=w.useState(!1);e&&!t&&h&&g(!1),w.useEffect(()=>{c.current=h},[h,c]);const[b,m]=w.useState(""),A=I=>O=>{var W;h&&O.preventDefault(),(W=I.onMouseLeave)==null||W.call(I,O)},y=I=>O=>{var W;E(O),c.current===!1&&g(!1),(W=I.onBlur)==null||W.call(I,O)},B=I=>O=>{var W;if(s.current||(s.current=O.currentTarget),d(O),c.current===!0){var $;g(!0),($=I.onFocusVisible)==null||$.call(I,O)}(W=I.onFocus)==null||W.call(I,O)},v=()=>{const I=s.current;return b==="BUTTON"||b==="INPUT"&&["button","submit","reset"].includes(I==null?void 0:I.type)||b==="A"&&(I==null?void 0:I.href)},C=I=>O=>{if(!e){var W;(W=I.onClick)==null||W.call(I,O)}},D=I=>O=>{var W;e||(l(!0),document.addEventListener("mouseup",()=>{l(!1)},{once:!0})),(W=I.onMouseDown)==null||W.call(I,O)},S=I=>O=>{var W;if((W=I.onKeyDown)==null||W.call(I,O),!O.defaultMuiPrevented&&(O.target===O.currentTarget&&!v()&&O.key===" "&&O.preventDefault(),O.target===O.currentTarget&&O.key===" "&&!e&&l(!0),O.target===O.currentTarget&&!v()&&O.key==="Enter"&&!e)){var $;($=I.onClick)==null||$.call(I,O),O.preventDefault()}},x=I=>O=>{var W;if(O.target===O.currentTarget&&l(!1),(W=I.onKeyUp)==null||W.call(I,O),O.target===O.currentTarget&&!v()&&!e&&O.key===" "&&!O.defaultMuiPrevented){var $;($=I.onClick)==null||$.call(I,O)}},L=w.useCallback(I=>{var O;m((O=I==null?void 0:I.tagName)!=null?O:"")},[]),Y=et(L,r,p,s),G={};return i!==void 0&&(G.tabIndex=i),b==="BUTTON"?(G.type=o??"button",t?G["aria-disabled"]=e:G.disabled=e):b!==""&&(!n&&!a&&(G.role="button",G.tabIndex=i??0),e&&(G["aria-disabled"]=e,G.tabIndex=t?i??0:-1)),{getRootProps:(I={})=>{const O=N({},l9(u),l9(I)),W=N({type:o},O,G,I,{onBlur:y(O),onClick:C(O),onFocus:B(O),onKeyDown:S(O),onKeyUp:x(O),onMouseDown:D(O),onMouseLeave:A(O),ref:Y});return delete W.onFocusVisible,W},focusVisible:h,setFocusVisible:g,active:f,rootRef:Y}}const wk0=["action","children","disabled","focusableWhenDisabled","onFocusVisible","slotProps","slots"],xk0=u=>{const{active:e,disabled:t,focusVisible:n}=u;return du({root:["root",t&&"disabled",n&&"focusVisible",e&&"active"]},Ak0(Fk0))},kk0=w.forwardRef(function(e,t){var n;const{action:r,children:i,focusableWhenDisabled:a=!1,slotProps:o={},slots:s={}}=e,f=L0(e,wk0),l=w.useRef(),{active:c,focusVisible:d,setFocusVisible:E,getRootProps:p}=Dk0(N({},e,{focusableWhenDisabled:a}));w.useImperativeHandle(r,()=>({focusVisible:()=>{E(!0),l.current.focus()}}),[E]);const h=N({},e,{active:c,focusableWhenDisabled:a,focusVisible:d}),g=xk0(h),b=f.href||f.to?"a":"button",m=(n=s.root)!=null?n:b,A=Zo({elementType:m,getSlotProps:p,externalForwardedProps:f,externalSlotProps:o.root,additionalProps:{ref:t},ownerState:h,className:g.root});return K.jsx(m,N({},A,{children:i}))}),_k0=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Sk0(u){const e=parseInt(u.getAttribute("tabindex")||"",10);return Number.isNaN(e)?u.contentEditable==="true"||(u.nodeName==="AUDIO"||u.nodeName==="VIDEO"||u.nodeName==="DETAILS")&&u.getAttribute("tabindex")===null?0:u.tabIndex:e}function Tk0(u){if(u.tagName!=="INPUT"||u.type!=="radio"||!u.name)return!1;const e=n=>u.ownerDocument.querySelector(`input[type="radio"]${n}`);let t=e(`[name="${u.name}"]:checked`);return t||(t=e(`[name="${u.name}"]`)),t!==u}function Pk0(u){return!(u.disabled||u.tagName==="INPUT"&&u.type==="hidden"||Tk0(u))}function Ik0(u){const e=[],t=[];return Array.from(u.querySelectorAll(_k0)).forEach((n,r)=>{const i=Sk0(n);i===-1||!Pk0(n)||(i===0?e.push(n):t.push({documentOrder:r,tabIndex:i,node:n}))}),t.sort((n,r)=>n.tabIndex===r.tabIndex?n.documentOrder-r.documentOrder:n.tabIndex-r.tabIndex).map(n=>n.node).concat(e)}function Ok0(){return!0}function Rk0(u){const{children:e,disableAutoFocus:t=!1,disableEnforceFocus:n=!1,disableRestoreFocus:r=!1,getTabbable:i=Ik0,isEnabled:a=Ok0,open:o}=u,s=w.useRef(!1),f=w.useRef(null),l=w.useRef(null),c=w.useRef(null),d=w.useRef(null),E=w.useRef(!1),p=w.useRef(null),h=et(e.ref,p),g=w.useRef(null);w.useEffect(()=>{!o||!p.current||(E.current=!t)},[t,o]),w.useEffect(()=>{if(!o||!p.current)return;const A=Lt(p.current);return p.current.contains(A.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),E.current&&p.current.focus()),()=>{r||(c.current&&c.current.focus&&(s.current=!0,c.current.focus()),c.current=null)}},[o]),w.useEffect(()=>{if(!o||!p.current)return;const A=Lt(p.current),y=C=>{g.current=C,!(n||!a()||C.key!=="Tab")&&A.activeElement===p.current&&C.shiftKey&&(s.current=!0,l.current&&l.current.focus())},B=()=>{const C=p.current;if(C===null)return;if(!A.hasFocus()||!a()||s.current){s.current=!1;return}if(C.contains(A.activeElement)||n&&A.activeElement!==f.current&&A.activeElement!==l.current)return;if(A.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!E.current)return;let D=[];if((A.activeElement===f.current||A.activeElement===l.current)&&(D=i(p.current)),D.length>0){var S,x;const L=!!((S=g.current)!=null&&S.shiftKey&&((x=g.current)==null?void 0:x.key)==="Tab"),Y=D[0],G=D[D.length-1];typeof Y!="string"&&typeof G!="string"&&(L?G.focus():Y.focus())}else C.focus()};A.addEventListener("focusin",B),A.addEventListener("keydown",y,!0);const v=setInterval(()=>{A.activeElement&&A.activeElement.tagName==="BODY"&&B()},50);return()=>{clearInterval(v),A.removeEventListener("focusin",B),A.removeEventListener("keydown",y,!0)}},[t,n,r,a,o,i]);const b=A=>{c.current===null&&(c.current=A.relatedTarget),E.current=!0,d.current=A.target;const y=e.props.onFocus;y&&y(A)},m=A=>{c.current===null&&(c.current=A.relatedTarget),E.current=!0};return K.jsxs(w.Fragment,{children:[K.jsx("div",{tabIndex:o?0:-1,onFocus:m,ref:f,"data-testid":"sentinelStart"}),w.cloneElement(e,{ref:h,onFocus:b}),K.jsx("div",{tabIndex:o?0:-1,onFocus:m,ref:l,"data-testid":"sentinelEnd"})]})}function Nk0(u){return typeof u=="function"?u():u}const Mk0=w.forwardRef(function(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[a,o]=w.useState(null),s=et(w.isValidElement(n)?n.ref:null,t);if($o(()=>{i||o(Nk0(r)||document.body)},[r,i]),$o(()=>{if(a&&!i)return M7(t,a),()=>{M7(t,null)}},[t,a,i]),i){if(w.isValidElement(n)){const f={ref:s};return w.cloneElement(n,f)}return K.jsx(w.Fragment,{children:n})}return K.jsx(w.Fragment,{children:a&&E3.createPortal(n,a)})});function jk0(u){const e=Lt(u);return e.body===u?Lo(u).innerWidth>e.documentElement.clientWidth:u.scrollHeight>u.clientHeight}function Jl(u,e){e?u.setAttribute("aria-hidden","true"):u.removeAttribute("aria-hidden")}function Ox(u){return parseInt(Lo(u).getComputedStyle(u).paddingRight,10)||0}function zk0(u){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(u.tagName)!==-1,n=u.tagName==="INPUT"&&u.getAttribute("type")==="hidden";return t||n}function Rx(u,e,t,n,r){const i=[e,t,...n];[].forEach.call(u.children,a=>{const o=i.indexOf(a)===-1,s=!zk0(a);o&&s&&Jl(a,r)})}function gh(u,e){let t=-1;return u.some((n,r)=>e(n)?(t=r,!0):!1),t}function Lk0(u,e){const t=[],n=u.container;if(!e.disableScrollLock){if(jk0(n)){const a=KT(Lt(n));t.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Ox(n)+a}px`;const o=Lt(n).querySelectorAll(".mui-fixed");[].forEach.call(o,s=>{t.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${Ox(s)+a}px`})}let i;if(n.parentNode instanceof DocumentFragment)i=Lt(n).body;else{const a=n.parentElement,o=Lo(n);i=(a==null?void 0:a.nodeName)==="HTML"&&o.getComputedStyle(a).overflowY==="scroll"?a:n}t.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{t.forEach(({value:i,el:a,property:o})=>{i?a.style.setProperty(o,i):a.style.removeProperty(o)})}}function $k0(u){const e=[];return[].forEach.call(u.children,t=>{t.getAttribute("aria-hidden")==="true"&&e.push(t)}),e}class Uk0{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Jl(e.modalRef,!1);const r=$k0(t);Rx(t,e.mount,e.modalRef,r,!0);const i=gh(this.containers,a=>a.container===t);return i!==-1?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=gh(this.containers,i=>i.modals.indexOf(e)!==-1),r=this.containers[n];r.restore||(r.restore=Lk0(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const r=gh(this.containers,a=>a.modals.indexOf(e)!==-1),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&Jl(e.modalRef,t),Rx(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Jl(a.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}function Wk0(u){return typeof u=="function"?u():u}function qk0(u){return u?u.props.hasOwnProperty("in"):!1}const Hk0=new Uk0;function Gk0(u){const{container:e,disableEscapeKeyDown:t=!1,disableScrollLock:n=!1,manager:r=Hk0,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:f,open:l,rootRef:c}=u,d=w.useRef({}),E=w.useRef(null),p=w.useRef(null),h=et(p,c),[g,b]=w.useState(!l),m=qk0(s);let A=!0;(u["aria-hidden"]==="false"||u["aria-hidden"]===!1)&&(A=!1);const y=()=>Lt(E.current),B=()=>(d.current.modalRef=p.current,d.current.mount=E.current,d.current),v=()=>{r.mount(B(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},C=of(()=>{const O=Wk0(e)||y().body;r.add(B(),O),p.current&&v()}),D=w.useCallback(()=>r.isTopModal(B()),[r]),S=of(O=>{E.current=O,O&&(l&&D()?v():p.current&&Jl(p.current,A))}),x=w.useCallback(()=>{r.remove(B(),A)},[A,r]);w.useEffect(()=>()=>{x()},[x]),w.useEffect(()=>{l?C():(!m||!i)&&x()},[l,x,m,i,C]);const L=O=>W=>{var $;($=O.onKeyDown)==null||$.call(O,W),!(W.key!=="Escape"||W.which===229||!D())&&(t||(W.stopPropagation(),f&&f(W,"escapeKeyDown")))},Y=O=>W=>{var $;($=O.onClick)==null||$.call(O,W),W.target===W.currentTarget&&f&&f(W,"backdropClick")};return{getRootProps:(O={})=>{const W=l9(u);delete W.onTransitionEnter,delete W.onTransitionExited;const $=N({},W,O);return N({role:"presentation"},$,{onKeyDown:L($),ref:h})},getBackdropProps:(O={})=>{const W=O;return N({"aria-hidden":!0},W,{onClick:Y(W),open:l})},getTransitionProps:()=>{const O=()=>{b(!1),a&&a()},W=()=>{b(!0),o&&o(),i&&x()};return{onEnter:RB(O,s==null?void 0:s.props.onEnter),onExited:RB(W,s==null?void 0:s.props.onExited)}},rootRef:h,portalRef:S,isTopModal:D,exited:g,hasTransition:m}}const Vk0=["onChange","maxRows","minRows","style","value"];function J6(u){return parseInt(u,10)||0}const Kk0={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Nx(u){return u==null||Object.keys(u).length===0||u.outerHeightStyle===0&&!u.overflow}const Qk0=w.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:i=1,style:a,value:o}=e,s=L0(e,Vk0),{current:f}=w.useRef(o!=null),l=w.useRef(null),c=et(t,l),d=w.useRef(null),E=w.useRef(0),[p,h]=w.useState({outerHeightStyle:0}),g=w.useCallback(()=>{const y=l.current,v=Lo(y).getComputedStyle(y);if(v.width==="0px")return{outerHeightStyle:0};const C=d.current;C.style.width=v.width,C.value=y.value||e.placeholder||"x",C.value.slice(-1)===` -`&&(C.value+=" ");const D=v.boxSizing,S=J6(v.paddingBottom)+J6(v.paddingTop),x=J6(v.borderBottomWidth)+J6(v.borderTopWidth),L=C.scrollHeight;C.value="x";const Y=C.scrollHeight;let G=L;i&&(G=Math.max(Number(i)*Y,G)),r&&(G=Math.min(Number(r)*Y,G)),G=Math.max(G,Y);const X=G+(D==="border-box"?S+x:0),I=Math.abs(G-L)<=1;return{outerHeightStyle:X,overflow:I}},[r,i,e.placeholder]),b=(y,B)=>{const{outerHeightStyle:v,overflow:C}=B;return E.current<20&&(v>0&&Math.abs((y.outerHeightStyle||0)-v)>1||y.overflow!==C)?(E.current+=1,{overflow:C,outerHeightStyle:v}):y},m=w.useCallback(()=>{const y=g();Nx(y)||h(B=>b(B,y))},[g]);$o(()=>{const y=()=>{const L=g();Nx(L)||E3.flushSync(()=>{h(Y=>b(Y,L))})},B=()=>{E.current=0,y()};let v;const C=GT(B),D=l.current,S=Lo(D);S.addEventListener("resize",C);let x;return typeof ResizeObserver<"u"&&(x=new ResizeObserver(B),x.observe(D)),()=>{C.clear(),cancelAnimationFrame(v),S.removeEventListener("resize",C),x&&x.disconnect()}},[g]),$o(()=>{m()}),w.useEffect(()=>{E.current=0},[o]);const A=y=>{E.current=0,f||m(),n&&n(y)};return K.jsxs(w.Fragment,{children:[K.jsx("textarea",N({value:o,onChange:A,ref:c,rows:i,style:N({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},a)},s)),K.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:N({},Kk0.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function W3({props:u,states:e,muiFormControl:t}){return e.reduce((n,r)=>(n[r]=u[r],t&&typeof u[r]>"u"&&(n[r]=t[r]),n),{})}const Jk0=w.createContext(void 0),wy=Jk0;function q3(){return w.useContext(wy)}function vz(u){return K.jsx(RV,N({},u,{defaultTheme:Fd,themeId:qo}))}function Mx(u){return u!=null&&!(Array.isArray(u)&&u.length===0)}function c9(u,e=!1){return u&&(Mx(u.value)&&u.value!==""||e&&Mx(u.defaultValue)&&u.defaultValue!=="")}function Zk0(u){return u.startAdornment}function Yk0(u){return fu("MuiInputBase",u)}const Xk0=Eu("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),n3=Xk0,u_0=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],bp=(u,e)=>{const{ownerState:t}=u;return[e.root,t.formControl&&e.formControl,t.startAdornment&&e.adornedStart,t.endAdornment&&e.adornedEnd,t.error&&e.error,t.size==="small"&&e.sizeSmall,t.multiline&&e.multiline,t.color&&e[`color${K0(t.color)}`],t.fullWidth&&e.fullWidth,t.hiddenLabel&&e.hiddenLabel]},gp=(u,e)=>{const{ownerState:t}=u;return[e.input,t.size==="small"&&e.inputSizeSmall,t.multiline&&e.inputMultiline,t.type==="search"&&e.inputTypeSearch,t.startAdornment&&e.inputAdornedStart,t.endAdornment&&e.inputAdornedEnd,t.hiddenLabel&&e.inputHiddenLabel]},e_0=u=>{const{classes:e,color:t,disabled:n,error:r,endAdornment:i,focused:a,formControl:o,fullWidth:s,hiddenLabel:f,multiline:l,readOnly:c,size:d,startAdornment:E,type:p}=u,h={root:["root",`color${K0(t)}`,n&&"disabled",r&&"error",s&&"fullWidth",a&&"focused",o&&"formControl",d&&d!=="medium"&&`size${K0(d)}`,l&&"multiline",E&&"adornedStart",i&&"adornedEnd",f&&"hiddenLabel",c&&"readOnly"],input:["input",n&&"disabled",p==="search"&&"inputTypeSearch",l&&"inputMultiline",d==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",E&&"inputAdornedStart",i&&"inputAdornedEnd",c&&"readOnly"]};return du(h,Yk0,e)},Ap=$0("div",{name:"MuiInputBase",slot:"Root",overridesResolver:bp})(({theme:u,ownerState:e})=>N({},u.typography.body1,{color:(u.vars||u).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${n3.disabled}`]:{color:(u.vars||u).palette.text.disabled,cursor:"default"}},e.multiline&&N({padding:"4px 0 5px"},e.size==="small"&&{paddingTop:1}),e.fullWidth&&{width:"100%"})),yp=$0("input",{name:"MuiInputBase",slot:"Input",overridesResolver:gp})(({theme:u,ownerState:e})=>{const t=u.palette.mode==="light",n=N({color:"currentColor"},u.vars?{opacity:u.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},{transition:u.transitions.create("opacity",{duration:u.transitions.duration.shorter})}),r={opacity:"0 !important"},i=u.vars?{opacity:u.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return N({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${n3.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${n3.disabled}`]:{opacity:1,WebkitTextFillColor:(u.vars||u).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},e.size==="small"&&{paddingTop:1},e.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},e.type==="search"&&{MozAppearance:"textfield"})}),t_0=K.jsx(vz,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),n_0=w.forwardRef(function(e,t){var n;const r=pu({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:o,className:s,components:f={},componentsProps:l={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:E,endAdornment:p,fullWidth:h=!1,id:g,inputComponent:b="input",inputProps:m={},inputRef:A,maxRows:y,minRows:B,multiline:v=!1,name:C,onBlur:D,onChange:S,onClick:x,onFocus:L,onKeyDown:Y,onKeyUp:G,placeholder:X,readOnly:I,renderSuffix:O,rows:W,slotProps:$={},slots:q={},startAdornment:U,type:i0="text",value:s0}=r,o0=L0(r,u_0),Q=m.value!=null?m.value:s0,{current:b0}=w.useRef(Q!=null),A0=w.useRef(),_0=w.useCallback(d0=>{},[]),w0=et(A0,A,m.ref,_0),[B0,_]=w.useState(!1),T=q3(),P=W3({props:r,muiFormControl:T,states:["color","disabled","error","hiddenLabel","size","required","filled"]});P.focused=T?T.focused:B0,w.useEffect(()=>{!T&&d&&B0&&(_(!1),D&&D())},[T,d,B0,D]);const j=T&&T.onFilled,z=T&&T.onEmpty,V=w.useCallback(d0=>{c9(d0)?j&&j():z&&z()},[j,z]);$o(()=>{b0&&V({value:Q})},[Q,V,b0]);const t0=d0=>{if(P.disabled){d0.stopPropagation();return}L&&L(d0),m.onFocus&&m.onFocus(d0),T&&T.onFocus?T.onFocus(d0):_(!0)},H=d0=>{D&&D(d0),m.onBlur&&m.onBlur(d0),T&&T.onBlur?T.onBlur(d0):_(!1)},J=(d0,...m0)=>{if(!b0){const G0=d0.target||A0.current;if(G0==null)throw new Error(pa(1));V({value:G0.value})}m.onChange&&m.onChange(d0,...m0),S&&S(d0,...m0)};w.useEffect(()=>{V(A0.current)},[]);const u0=d0=>{A0.current&&d0.currentTarget===d0.target&&A0.current.focus(),x&&x(d0)};let Z=b,n0=m;v&&Z==="input"&&(W?n0=N({type:void 0,minRows:W,maxRows:W},n0):n0=N({type:void 0,maxRows:y,minRows:B},n0),Z=Qk0);const p0=d0=>{V(d0.animationName==="mui-auto-fill-cancel"?A0.current:{value:"x"})};w.useEffect(()=>{T&&T.setAdornedStart(!!U)},[T,U]);const C0=N({},r,{color:P.color||"primary",disabled:P.disabled,endAdornment:p,error:P.error,focused:P.focused,formControl:T,fullWidth:h,hiddenLabel:P.hiddenLabel,multiline:v,size:P.size,startAdornment:U,type:i0}),y0=e_0(C0),g0=q.root||f.Root||Ap,F0=$.root||l.root||{},c0=q.input||f.Input||yp;return n0=N({},n0,(n=$.input)!=null?n:l.input),K.jsxs(w.Fragment,{children:[!E&&t_0,K.jsxs(g0,N({},F0,!f9(g0)&&{ownerState:N({},C0,F0.ownerState)},{ref:t,onClick:u0},o0,{className:H0(y0.root,F0.className,s,I&&"MuiInputBase-readOnly"),children:[U,K.jsx(wy.Provider,{value:null,children:K.jsx(c0,N({ownerState:C0,"aria-invalid":P.error,"aria-describedby":i,autoComplete:a,autoFocus:o,defaultValue:c,disabled:P.disabled,id:g,onAnimationStart:p0,name:C,placeholder:X,readOnly:I,required:P.required,rows:W,value:Q,onKeyDown:Y,onKeyUp:G,type:i0},n0,!f9(c0)&&{as:Z,ownerState:N({},C0,n0.ownerState)},{ref:w0,className:H0(y0.input,n0.className,I&&"MuiInputBase-readOnly"),onBlur:H,onChange:J,onFocus:t0}))}),p,O?O(N({},P,{startAdornment:U})):null]}))]})}),xy=n_0;function r_0(u){return fu("MuiInput",u)}const i_0=N({},n3,Eu("MuiInput",["root","underline","input"])),dl=i_0;function a_0(u){return fu("MuiOutlinedInput",u)}const o_0=N({},n3,Eu("MuiOutlinedInput",["root","notchedOutline","input"])),Di=o_0;function s_0(u){return fu("MuiFilledInput",u)}const f_0=N({},n3,Eu("MuiFilledInput",["root","underline","input"])),Ra=f_0,l_0=gz(K.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),c_0=gz(K.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function d_0(u){return fu("MuiAvatar",u)}Eu("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const E_0=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],p_0=u=>{const{classes:e,variant:t,colorDefault:n}=u;return du({root:["root",t,n&&"colorDefault"],img:["img"],fallback:["fallback"]},d_0,e)},h_0=$0("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[t.variant],t.colorDefault&&e.colorDefault]}})(({theme:u,ownerState:e})=>N({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:u.typography.fontFamily,fontSize:u.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},e.variant==="rounded"&&{borderRadius:(u.vars||u).shape.borderRadius},e.variant==="square"&&{borderRadius:0},e.colorDefault&&N({color:(u.vars||u).palette.background.default},u.vars?{backgroundColor:u.vars.palette.Avatar.defaultBg}:{backgroundColor:u.palette.mode==="light"?u.palette.grey[400]:u.palette.grey[600]}))),C_0=$0("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(u,e)=>e.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),m_0=$0(c_0,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(u,e)=>e.fallback})({width:"75%",height:"75%"});function b_0({crossOrigin:u,referrerPolicy:e,src:t,srcSet:n}){const[r,i]=w.useState(!1);return w.useEffect(()=>{if(!t&&!n)return;i(!1);let a=!0;const o=new Image;return o.onload=()=>{a&&i("loaded")},o.onerror=()=>{a&&i("error")},o.crossOrigin=u,o.referrerPolicy=e,o.src=t,n&&(o.srcset=n),()=>{a=!1}},[u,e,t,n]),r}const g_0=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiAvatar"}),{alt:r,children:i,className:a,component:o="div",imgProps:s,sizes:f,src:l,srcSet:c,variant:d="circular"}=n,E=L0(n,E_0);let p=null;const h=b_0(N({},s,{src:l,srcSet:c})),g=l||c,b=g&&h!=="error",m=N({},n,{colorDefault:!b,component:o,variant:d}),A=p_0(m);return b?p=K.jsx(C_0,N({alt:r,srcSet:c,src:l,sizes:f,ownerState:m,className:A.img},s)):i!=null?p=i:g&&r?p=r[0]:p=K.jsx(m_0,{ownerState:m,className:A.fallback}),K.jsx(h_0,N({as:o,ownerState:m,className:H0(A.root,a),ref:t},E,{children:p}))}),A_0=g_0,y_0=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],v_0={entering:{opacity:1},entered:{opacity:1}},B_0=w.forwardRef(function(e,t){const n=wd(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:f,onEnter:l,onEntered:c,onEntering:d,onExit:E,onExited:p,onExiting:h,style:g,timeout:b=r,TransitionComponent:m=xP}=e,A=L0(e,y_0),y=w.useRef(null),B=et(y,o.ref,t),v=X=>I=>{if(X){const O=y.current;I===void 0?X(O):X(O,I)}},C=v(d),D=v((X,I)=>{yz(X);const O=s9({style:g,timeout:b,easing:s},{mode:"enter"});X.style.webkitTransition=n.transitions.create("opacity",O),X.style.transition=n.transitions.create("opacity",O),l&&l(X,I)}),S=v(c),x=v(h),L=v(X=>{const I=s9({style:g,timeout:b,easing:s},{mode:"exit"});X.style.webkitTransition=n.transitions.create("opacity",I),X.style.transition=n.transitions.create("opacity",I),E&&E(X)}),Y=v(p),G=X=>{i&&i(y.current,X)};return K.jsx(m,N({appear:a,in:f,nodeRef:y,onEnter:D,onEntered:S,onEntering:C,onExit:L,onExited:Y,onExiting:x,addEndListener:G,timeout:b},A,{children:(X,I)=>w.cloneElement(o,N({style:N({opacity:0,visibility:X==="exited"&&!f?"hidden":void 0},v_0[X],g,o.props.style),ref:B},I))}))}),F_0=B_0;function D_0(u){return fu("MuiBackdrop",u)}Eu("MuiBackdrop",["root","invisible"]);const w_0=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],x_0=u=>{const{classes:e,invisible:t}=u;return du({root:["root",t&&"invisible"]},D_0,e)},k_0=$0("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,t.invisible&&e.invisible]}})(({ownerState:u})=>N({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},u.invisible&&{backgroundColor:"transparent"})),__0=w.forwardRef(function(e,t){var n,r,i;const a=pu({props:e,name:"MuiBackdrop"}),{children:o,className:s,component:f="div",components:l={},componentsProps:c={},invisible:d=!1,open:E,slotProps:p={},slots:h={},TransitionComponent:g=F_0,transitionDuration:b}=a,m=L0(a,w_0),A=N({},a,{component:f,invisible:d}),y=x_0(A),B=(n=p.root)!=null?n:c.root;return K.jsx(g,N({in:E,timeout:b},m,{children:K.jsx(k_0,N({"aria-hidden":!0},B,{as:(r=(i=h.root)!=null?i:l.Root)!=null?r:f,className:H0(y.root,s,B==null?void 0:B.className),ownerState:N({},A,B==null?void 0:B.ownerState),classes:y,ref:t,children:o}))}))}),S_0=__0;function T_0(u){return fu("MuiCard",u)}Eu("MuiCard",["root"]);const P_0=["className","raised"],I_0=u=>{const{classes:e}=u;return du({root:["root"]},T_0,e)},O_0=$0(Yb,{name:"MuiCard",slot:"Root",overridesResolver:(u,e)=>e.root})(()=>({overflow:"hidden"})),R_0=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiCard"}),{className:r,raised:i=!1}=n,a=L0(n,P_0),o=N({},n,{raised:i}),s=I_0(o);return K.jsx(O_0,N({className:H0(s.root,r),elevation:i?8:void 0,ref:t,ownerState:o},a))}),ky=R_0;function N_0(u){return fu("MuiCardContent",u)}Eu("MuiCardContent",["root"]);const M_0=["className","component"],j_0=u=>{const{classes:e}=u;return du({root:["root"]},N_0,e)},z_0=$0("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(u,e)=>e.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),L_0=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiCardContent"}),{className:r,component:i="div"}=n,a=L0(n,M_0),o=N({},n,{component:i}),s=j_0(o);return K.jsx(z_0,N({as:i,className:H0(s.root,r),ownerState:o,ref:t},a))}),Bz=L_0,$_0=(u,e)=>N({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},e&&!u.vars&&{colorScheme:u.palette.mode}),U_0=u=>N({color:(u.vars||u).palette.text.primary},u.typography.body1,{backgroundColor:(u.vars||u).palette.background.default,"@media print":{backgroundColor:(u.vars||u).palette.common.white}}),W_0=(u,e=!1)=>{var t;const n={};e&&u.colorSchemes&&Object.entries(u.colorSchemes).forEach(([a,o])=>{var s;n[u.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(s=o.palette)==null?void 0:s.mode}});let r=N({html:$_0(u,e),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:u.typography.fontWeightBold},body:N({margin:0},U_0(u),{"&::backdrop":{backgroundColor:(u.vars||u).palette.background.default}})},n);const i=(t=u.components)==null||(t=t.MuiCssBaseline)==null?void 0:t.styleOverrides;return i&&(r=[r,i]),r};function q_0(u){const e=pu({props:u,name:"MuiCssBaseline"}),{children:t,enableColorScheme:n=!1}=e;return K.jsxs(w.Fragment,{children:[K.jsx(vz,{styles:r=>W_0(r,n)}),t]})}function H_0(u){return fu("MuiModal",u)}Eu("MuiModal",["root","hidden","backdrop"]);const G_0=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],V_0=u=>{const{open:e,exited:t,classes:n}=u;return du({root:["root",!e&&t&&"hidden"],backdrop:["backdrop"]},H_0,n)},K_0=$0("div",{name:"MuiModal",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,!t.open&&t.exited&&e.hidden]}})(({theme:u,ownerState:e})=>N({position:"fixed",zIndex:(u.vars||u).zIndex.modal,right:0,bottom:0,top:0,left:0},!e.open&&e.exited&&{visibility:"hidden"})),Q_0=$0(S_0,{name:"MuiModal",slot:"Backdrop",overridesResolver:(u,e)=>e.backdrop})({zIndex:-1}),J_0=w.forwardRef(function(e,t){var n,r,i,a,o,s;const f=pu({name:"MuiModal",props:e}),{BackdropComponent:l=Q_0,BackdropProps:c,className:d,closeAfterTransition:E=!1,children:p,container:h,component:g,components:b={},componentsProps:m={},disableAutoFocus:A=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:B=!1,disablePortal:v=!1,disableRestoreFocus:C=!1,disableScrollLock:D=!1,hideBackdrop:S=!1,keepMounted:x=!1,onBackdropClick:L,open:Y,slotProps:G,slots:X}=f,I=L0(f,G_0),O=N({},f,{closeAfterTransition:E,disableAutoFocus:A,disableEnforceFocus:y,disableEscapeKeyDown:B,disablePortal:v,disableRestoreFocus:C,disableScrollLock:D,hideBackdrop:S,keepMounted:x}),{getRootProps:W,getBackdropProps:$,getTransitionProps:q,portalRef:U,isTopModal:i0,exited:s0,hasTransition:o0}=Gk0(N({},O,{rootRef:t})),Q=N({},O,{exited:s0}),b0=V_0(Q),A0={};if(p.props.tabIndex===void 0&&(A0.tabIndex="-1"),o0){const{onEnter:j,onExited:z}=q();A0.onEnter=j,A0.onExited=z}const _0=(n=(r=X==null?void 0:X.root)!=null?r:b.Root)!=null?n:K_0,w0=(i=(a=X==null?void 0:X.backdrop)!=null?a:b.Backdrop)!=null?i:l,B0=(o=G==null?void 0:G.root)!=null?o:m.root,_=(s=G==null?void 0:G.backdrop)!=null?s:m.backdrop,T=Zo({elementType:_0,externalSlotProps:B0,externalForwardedProps:I,getSlotProps:W,additionalProps:{ref:t,as:g},ownerState:Q,className:H0(d,B0==null?void 0:B0.className,b0==null?void 0:b0.root,!Q.open&&Q.exited&&(b0==null?void 0:b0.hidden))}),P=Zo({elementType:w0,externalSlotProps:_,additionalProps:c,getSlotProps:j=>$(N({},j,{onClick:z=>{L&&L(z),j!=null&&j.onClick&&j.onClick(z)}})),className:H0(_==null?void 0:_.className,c==null?void 0:c.className,b0==null?void 0:b0.backdrop),ownerState:Q});return!x&&!Y&&(!o0||s0)?null:K.jsx(Mk0,{ref:U,container:h,disablePortal:v,children:K.jsxs(_0,N({},T,{children:[!S&&l?K.jsx(w0,N({},P)):null,K.jsx(Rk0,{disableEnforceFocus:y,disableAutoFocus:A,disableRestoreFocus:C,isEnabled:i0,open:Y,children:w.cloneElement(p,A0)})]}))})}),Z_0=J_0,Y_0=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],X_0=u=>{const{classes:e,disableUnderline:t}=u,r=du({root:["root",!t&&"underline"],input:["input"]},s_0,e);return N({},e,r)},uS0=$0(Ap,{shouldForwardProp:u=>Vn(u)||u==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[...bp(u,e),!t.disableUnderline&&e.underline]}})(({theme:u,ownerState:e})=>{var t;const n=u.palette.mode==="light",r=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return N({position:"relative",backgroundColor:u.vars?u.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(u.vars||u).shape.borderRadius,borderTopRightRadius:(u.vars||u).shape.borderRadius,transition:u.transitions.create("background-color",{duration:u.transitions.duration.shorter,easing:u.transitions.easing.easeOut}),"&:hover":{backgroundColor:u.vars?u.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:u.vars?u.vars.palette.FilledInput.bg:i}},[`&.${Ra.focused}`]:{backgroundColor:u.vars?u.vars.palette.FilledInput.bg:i},[`&.${Ra.disabled}`]:{backgroundColor:u.vars?u.vars.palette.FilledInput.disabledBg:o}},!e.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(t=(u.vars||u).palette[e.color||"primary"])==null?void 0:t.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:u.transitions.create("transform",{duration:u.transitions.duration.shorter,easing:u.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ra.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ra.error}`]:{"&:before, &:after":{borderBottomColor:(u.vars||u).palette.error.main}},"&:before":{borderBottom:`1px solid ${u.vars?`rgba(${u.vars.palette.common.onBackgroundChannel} / ${u.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:u.transitions.create("border-bottom-color",{duration:u.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ra.disabled}, .${Ra.error}):before`]:{borderBottom:`1px solid ${(u.vars||u).palette.text.primary}`},[`&.${Ra.disabled}:before`]:{borderBottomStyle:"dotted"}},e.startAdornment&&{paddingLeft:12},e.endAdornment&&{paddingRight:12},e.multiline&&N({padding:"25px 12px 8px"},e.size==="small"&&{paddingTop:21,paddingBottom:4},e.hiddenLabel&&{paddingTop:16,paddingBottom:17},e.hiddenLabel&&e.size==="small"&&{paddingTop:8,paddingBottom:9}))}),eS0=$0(yp,{name:"MuiFilledInput",slot:"Input",overridesResolver:gp})(({theme:u,ownerState:e})=>N({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!u.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:u.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:u.palette.mode==="light"?null:"#fff",caretColor:u.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},u.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[u.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},e.size==="small"&&{paddingTop:21,paddingBottom:4},e.hiddenLabel&&{paddingTop:16,paddingBottom:17},e.startAdornment&&{paddingLeft:0},e.endAdornment&&{paddingRight:0},e.hiddenLabel&&e.size==="small"&&{paddingTop:8,paddingBottom:9},e.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Fz=w.forwardRef(function(e,t){var n,r,i,a;const o=pu({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:f,fullWidth:l=!1,inputComponent:c="input",multiline:d=!1,slotProps:E,slots:p={},type:h="text"}=o,g=L0(o,Y_0),b=N({},o,{fullWidth:l,inputComponent:c,multiline:d,type:h}),m=X_0(o),A={root:{ownerState:b},input:{ownerState:b}},y=E??f?ze(A,E??f):A,B=(n=(r=p.root)!=null?r:s.Root)!=null?n:uS0,v=(i=(a=p.input)!=null?a:s.Input)!=null?i:eS0;return K.jsx(xy,N({slots:{root:B,input:v},componentsProps:y,fullWidth:l,inputComponent:c,multiline:d,ref:t,type:h},g,{classes:m}))});Fz.muiName="Input";const Dz=Fz;function tS0(u){return fu("MuiFormControl",u)}Eu("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const nS0=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],rS0=u=>{const{classes:e,margin:t,fullWidth:n}=u,r={root:["root",t!=="none"&&`margin${K0(t)}`,n&&"fullWidth"]};return du(r,tS0,e)},iS0=$0("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:u},e)=>N({},e.root,e[`margin${K0(u.margin)}`],u.fullWidth&&e.fullWidth)})(({ownerState:u})=>N({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},u.margin==="normal"&&{marginTop:16,marginBottom:8},u.margin==="dense"&&{marginTop:8,marginBottom:4},u.fullWidth&&{width:"100%"})),aS0=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiFormControl"}),{children:r,className:i,color:a="primary",component:o="div",disabled:s=!1,error:f=!1,focused:l,fullWidth:c=!1,hiddenLabel:d=!1,margin:E="none",required:p=!1,size:h="medium",variant:g="outlined"}=n,b=L0(n,nS0),m=N({},n,{color:a,component:o,disabled:s,error:f,fullWidth:c,hiddenLabel:d,margin:E,required:p,size:h,variant:g}),A=rS0(m),[y,B]=w.useState(()=>{let G=!1;return r&&w.Children.forEach(r,X=>{if(!m8(X,["Input","Select"]))return;const I=m8(X,["Select"])?X.props.input:X;I&&Zk0(I.props)&&(G=!0)}),G}),[v,C]=w.useState(()=>{let G=!1;return r&&w.Children.forEach(r,X=>{m8(X,["Input","Select"])&&(c9(X.props,!0)||c9(X.props.inputProps,!0))&&(G=!0)}),G}),[D,S]=w.useState(!1);s&&D&&S(!1);const x=l!==void 0&&!s?l:D;let L;const Y=w.useMemo(()=>({adornedStart:y,setAdornedStart:B,color:a,disabled:s,error:f,filled:v,focused:x,fullWidth:c,hiddenLabel:d,size:h,onBlur:()=>{S(!1)},onEmpty:()=>{C(!1)},onFilled:()=>{C(!0)},onFocus:()=>{S(!0)},registerEffect:L,required:p,variant:g}),[y,a,s,f,v,x,c,d,L,p,h,g]);return K.jsx(wy.Provider,{value:Y,children:K.jsx(iS0,N({as:o,ownerState:m,className:H0(A.root,i),ref:t},b,{children:r}))})}),oS0=aS0,sS0=DP({createStyledComponent:$0("div",{name:"MuiStack",slot:"Root",overridesResolver:(u,e)=>e.root}),useThemeProps:u=>pu({props:u,name:"MuiStack"})}),Na=sS0;function fS0(u){return fu("MuiFormHelperText",u)}const lS0=Eu("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),jx=lS0;var zx;const cS0=["children","className","component","disabled","error","filled","focused","margin","required","variant"],dS0=u=>{const{classes:e,contained:t,size:n,disabled:r,error:i,filled:a,focused:o,required:s}=u,f={root:["root",r&&"disabled",i&&"error",n&&`size${K0(n)}`,t&&"contained",o&&"focused",a&&"filled",s&&"required"]};return du(f,fS0,e)},ES0=$0("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,t.size&&e[`size${K0(t.size)}`],t.contained&&e.contained,t.filled&&e.filled]}})(({theme:u,ownerState:e})=>N({color:(u.vars||u).palette.text.secondary},u.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${jx.disabled}`]:{color:(u.vars||u).palette.text.disabled},[`&.${jx.error}`]:{color:(u.vars||u).palette.error.main}},e.size==="small"&&{marginTop:4},e.contained&&{marginLeft:14,marginRight:14})),pS0=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiFormHelperText"}),{children:r,className:i,component:a="p"}=n,o=L0(n,cS0),s=q3(),f=W3({props:n,muiFormControl:s,states:["variant","size","disabled","error","filled","focused","required"]}),l=N({},n,{component:a,contained:f.variant==="filled"||f.variant==="outlined",variant:f.variant,size:f.size,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),c=dS0(l);return K.jsx(ES0,N({as:a,ownerState:l,className:H0(c.root,i),ref:t},o,{children:r===" "?zx||(zx=K.jsx("span",{className:"notranslate",children:"​"})):r}))}),hS0=pS0;function CS0(u){return fu("MuiFormLabel",u)}const mS0=Eu("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Zl=mS0,bS0=["children","className","color","component","disabled","error","filled","focused","required"],gS0=u=>{const{classes:e,color:t,focused:n,disabled:r,error:i,filled:a,required:o}=u,s={root:["root",`color${K0(t)}`,r&&"disabled",i&&"error",a&&"filled",n&&"focused",o&&"required"],asterisk:["asterisk",i&&"error"]};return du(s,CS0,e)},AS0=$0("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:u},e)=>N({},e.root,u.color==="secondary"&&e.colorSecondary,u.filled&&e.filled)})(({theme:u,ownerState:e})=>N({color:(u.vars||u).palette.text.secondary},u.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Zl.focused}`]:{color:(u.vars||u).palette[e.color].main},[`&.${Zl.disabled}`]:{color:(u.vars||u).palette.text.disabled},[`&.${Zl.error}`]:{color:(u.vars||u).palette.error.main}})),yS0=$0("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(u,e)=>e.asterisk})(({theme:u})=>({[`&.${Zl.error}`]:{color:(u.vars||u).palette.error.main}})),vS0=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiFormLabel"}),{children:r,className:i,component:a="label"}=n,o=L0(n,bS0),s=q3(),f=W3({props:n,muiFormControl:s,states:["color","required","focused","disabled","error","filled"]}),l=N({},n,{color:f.color||"primary",component:a,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),c=gS0(l);return K.jsxs(AS0,N({as:a,ownerState:l,className:H0(c.root,i),ref:t},o,{children:[r,f.required&&K.jsxs(yS0,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))}),BS0=vS0,FS0=w.createContext(),Lx=FS0;function DS0(u){return fu("MuiGrid",u)}const wS0=[0,1,2,3,4,5,6,7,8,9,10],xS0=["column-reverse","column","row-reverse","row"],kS0=["nowrap","wrap-reverse","wrap"],El=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],_S0=Eu("MuiGrid",["root","container","item","zeroMinWidth",...wS0.map(u=>`spacing-xs-${u}`),...xS0.map(u=>`direction-xs-${u}`),...kS0.map(u=>`wrap-xs-${u}`),...El.map(u=>`grid-xs-${u}`),...El.map(u=>`grid-sm-${u}`),...El.map(u=>`grid-md-${u}`),...El.map(u=>`grid-lg-${u}`),...El.map(u=>`grid-xl-${u}`)]),R1=_S0,SS0=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Tf(u){const e=parseFloat(u);return`${e}${String(u).replace(String(e),"")||"px"}`}function TS0({theme:u,ownerState:e}){let t;return u.breakpoints.keys.reduce((n,r)=>{let i={};if(e[r]&&(t=e[r]),!t)return n;if(t===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(t==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=_o({values:e.columns,breakpoints:u.breakpoints.values}),o=typeof a=="object"?a[r]:a;if(o==null)return n;const s=`${Math.round(t/o*1e8)/1e6}%`;let f={};if(e.container&&e.item&&e.columnSpacing!==0){const l=u.spacing(e.columnSpacing);if(l!=="0px"){const c=`calc(${s} + ${Tf(l)})`;f={flexBasis:c,maxWidth:c}}}i=N({flexBasis:s,flexGrow:0,maxWidth:s},f)}return u.breakpoints.values[r]===0?Object.assign(n,i):n[u.breakpoints.up(r)]=i,n},{})}function PS0({theme:u,ownerState:e}){const t=_o({values:e.direction,breakpoints:u.breakpoints.values});return gt({theme:u},t,n=>{const r={flexDirection:n};return n.indexOf("column")===0&&(r[`& > .${R1.item}`]={maxWidth:"none"}),r})}function wz({breakpoints:u,values:e}){let t="";Object.keys(e).forEach(r=>{t===""&&e[r]!==0&&(t=r)});const n=Object.keys(u).sort((r,i)=>u[r]-u[i]);return n.slice(0,n.indexOf(t))}function IS0({theme:u,ownerState:e}){const{container:t,rowSpacing:n}=e;let r={};if(t&&n!==0){const i=_o({values:n,breakpoints:u.breakpoints.values});let a;typeof i=="object"&&(a=wz({breakpoints:u.breakpoints.values,values:i})),r=gt({theme:u},i,(o,s)=>{var f;const l=u.spacing(o);return l!=="0px"?{marginTop:`-${Tf(l)}`,[`& > .${R1.item}`]:{paddingTop:Tf(l)}}:(f=a)!=null&&f.includes(s)?{}:{marginTop:0,[`& > .${R1.item}`]:{paddingTop:0}}})}return r}function OS0({theme:u,ownerState:e}){const{container:t,columnSpacing:n}=e;let r={};if(t&&n!==0){const i=_o({values:n,breakpoints:u.breakpoints.values});let a;typeof i=="object"&&(a=wz({breakpoints:u.breakpoints.values,values:i})),r=gt({theme:u},i,(o,s)=>{var f;const l=u.spacing(o);return l!=="0px"?{width:`calc(100% + ${Tf(l)})`,marginLeft:`-${Tf(l)}`,[`& > .${R1.item}`]:{paddingLeft:Tf(l)}}:(f=a)!=null&&f.includes(s)?{}:{width:"100%",marginLeft:0,[`& > .${R1.item}`]:{paddingLeft:0}}})}return r}function RS0(u,e,t={}){if(!u||u<=0)return[];if(typeof u=="string"&&!Number.isNaN(Number(u))||typeof u=="number")return[t[`spacing-xs-${String(u)}`]];const n=[];return e.forEach(r=>{const i=u[r];Number(i)>0&&n.push(t[`spacing-${r}-${String(i)}`])}),n}const NS0=$0("div",{name:"MuiGrid",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u,{container:n,direction:r,item:i,spacing:a,wrap:o,zeroMinWidth:s,breakpoints:f}=t;let l=[];n&&(l=RS0(a,f,e));const c=[];return f.forEach(d=>{const E=t[d];E&&c.push(e[`grid-${d}-${String(E)}`])}),[e.root,n&&e.container,i&&e.item,s&&e.zeroMinWidth,...l,r!=="row"&&e[`direction-xs-${String(r)}`],o!=="wrap"&&e[`wrap-xs-${String(o)}`],...c]}})(({ownerState:u})=>N({boxSizing:"border-box"},u.container&&{display:"flex",flexWrap:"wrap",width:"100%"},u.item&&{margin:0},u.zeroMinWidth&&{minWidth:0},u.wrap!=="wrap"&&{flexWrap:u.wrap}),PS0,IS0,OS0,TS0);function MS0(u,e){if(!u||u<=0)return[];if(typeof u=="string"&&!Number.isNaN(Number(u))||typeof u=="number")return[`spacing-xs-${String(u)}`];const t=[];return e.forEach(n=>{const r=u[n];if(Number(r)>0){const i=`spacing-${n}-${String(r)}`;t.push(i)}}),t}const jS0=u=>{const{classes:e,container:t,direction:n,item:r,spacing:i,wrap:a,zeroMinWidth:o,breakpoints:s}=u;let f=[];t&&(f=MS0(i,s));const l=[];s.forEach(d=>{const E=u[d];E&&l.push(`grid-${d}-${String(E)}`)});const c={root:["root",t&&"container",r&&"item",o&&"zeroMinWidth",...f,n!=="row"&&`direction-xs-${String(n)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...l]};return du(c,DS0,e)},zS0=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiGrid"}),{breakpoints:r}=wd(),i=vd(n),{className:a,columns:o,columnSpacing:s,component:f="div",container:l=!1,direction:c="row",item:d=!1,rowSpacing:E,spacing:p=0,wrap:h="wrap",zeroMinWidth:g=!1}=i,b=L0(i,SS0),m=E||p,A=s||p,y=w.useContext(Lx),B=l?o||12:y,v={},C=N({},b);r.keys.forEach(x=>{b[x]!=null&&(v[x]=b[x],delete C[x])});const D=N({},i,{columns:B,container:l,direction:c,item:d,rowSpacing:m,columnSpacing:A,wrap:h,zeroMinWidth:g,spacing:p},v,{breakpoints:r.keys}),S=jS0(D);return K.jsx(Lx.Provider,{value:B,children:K.jsx(NS0,N({ownerState:D,className:H0(S.root,a),as:f,ref:t},C))})}),r3=zS0,LS0=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function um(u){return`scale(${u}, ${u**2})`}const $S0={entering:{opacity:1,transform:um(1)},entered:{opacity:1,transform:"none"}},Ah=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),xz=w.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:i,easing:a,in:o,onEnter:s,onEntered:f,onEntering:l,onExit:c,onExited:d,onExiting:E,style:p,timeout:h="auto",TransitionComponent:g=xP}=e,b=L0(e,LS0),m=w.useRef(),A=w.useRef(),y=wd(),B=w.useRef(null),v=et(B,i.ref,t),C=I=>O=>{if(I){const W=B.current;O===void 0?I(W):I(W,O)}},D=C(l),S=C((I,O)=>{yz(I);const{duration:W,delay:$,easing:q}=s9({style:p,timeout:h,easing:a},{mode:"enter"});let U;h==="auto"?(U=y.transitions.getAutoHeightDuration(I.clientHeight),A.current=U):U=W,I.style.transition=[y.transitions.create("opacity",{duration:U,delay:$}),y.transitions.create("transform",{duration:Ah?U:U*.666,delay:$,easing:q})].join(","),s&&s(I,O)}),x=C(f),L=C(E),Y=C(I=>{const{duration:O,delay:W,easing:$}=s9({style:p,timeout:h,easing:a},{mode:"exit"});let q;h==="auto"?(q=y.transitions.getAutoHeightDuration(I.clientHeight),A.current=q):q=O,I.style.transition=[y.transitions.create("opacity",{duration:q,delay:W}),y.transitions.create("transform",{duration:Ah?q:q*.666,delay:Ah?W:W||q*.333,easing:$})].join(","),I.style.opacity=0,I.style.transform=um(.75),c&&c(I)}),G=C(d),X=I=>{h==="auto"&&(m.current=setTimeout(I,A.current||0)),n&&n(B.current,I)};return w.useEffect(()=>()=>{clearTimeout(m.current)},[]),K.jsx(g,N({appear:r,in:o,nodeRef:B,onEnter:S,onEntered:x,onEntering:D,onExit:Y,onExited:G,onExiting:L,addEndListener:X,timeout:h==="auto"?null:h},b,{children:(I,O)=>w.cloneElement(i,N({style:N({opacity:0,transform:um(.75),visibility:I==="exited"&&!o?"hidden":void 0},$S0[I],p,i.props.style),ref:v},O))}))});xz.muiSupportAuto=!0;const US0=xz,WS0=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],qS0=u=>{const{classes:e,disableUnderline:t}=u,r=du({root:["root",!t&&"underline"],input:["input"]},r_0,e);return N({},e,r)},HS0=$0(Ap,{shouldForwardProp:u=>Vn(u)||u==="classes",name:"MuiInput",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[...bp(u,e),!t.disableUnderline&&e.underline]}})(({theme:u,ownerState:e})=>{let n=u.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return u.vars&&(n=`rgba(${u.vars.palette.common.onBackgroundChannel} / ${u.vars.opacity.inputUnderline})`),N({position:"relative"},e.formControl&&{"label + &":{marginTop:16}},!e.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(u.vars||u).palette[e.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:u.transitions.create("transform",{duration:u.transitions.duration.shorter,easing:u.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${dl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${dl.error}`]:{"&:before, &:after":{borderBottomColor:(u.vars||u).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:u.transitions.create("border-bottom-color",{duration:u.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${dl.disabled}, .${dl.error}):before`]:{borderBottom:`2px solid ${(u.vars||u).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${dl.disabled}:before`]:{borderBottomStyle:"dotted"}})}),GS0=$0(yp,{name:"MuiInput",slot:"Input",overridesResolver:gp})({}),kz=w.forwardRef(function(e,t){var n,r,i,a;const o=pu({props:e,name:"MuiInput"}),{disableUnderline:s,components:f={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:E=!1,slotProps:p,slots:h={},type:g="text"}=o,b=L0(o,WS0),m=qS0(o),y={root:{ownerState:{disableUnderline:s}}},B=p??l?ze(p??l,y):y,v=(n=(r=h.root)!=null?r:f.Root)!=null?n:HS0,C=(i=(a=h.input)!=null?a:f.Input)!=null?i:GS0;return K.jsx(xy,N({slots:{root:v,input:C},slotProps:B,fullWidth:c,inputComponent:d,multiline:E,ref:t,type:g},b,{classes:m}))});kz.muiName="Input";const _z=kz;function VS0(u){return fu("MuiInputLabel",u)}Eu("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const KS0=["disableAnimation","margin","shrink","variant","className"],QS0=u=>{const{classes:e,formControl:t,size:n,shrink:r,disableAnimation:i,variant:a,required:o}=u,s={root:["root",t&&"formControl",!i&&"animated",r&&"shrink",n&&n!=="normal"&&`size${K0(n)}`,a],asterisk:[o&&"asterisk"]},f=du(s,VS0,e);return N({},e,f)},JS0=$0(BS0,{shouldForwardProp:u=>Vn(u)||u==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[{[`& .${Zl.asterisk}`]:e.asterisk},e.root,t.formControl&&e.formControl,t.size==="small"&&e.sizeSmall,t.shrink&&e.shrink,!t.disableAnimation&&e.animated,t.focused&&e.focused,e[t.variant]]}})(({theme:u,ownerState:e})=>N({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},e.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},e.size==="small"&&{transform:"translate(0, 17px) scale(1)"},e.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!e.disableAnimation&&{transition:u.transitions.create(["color","transform","max-width"],{duration:u.transitions.duration.shorter,easing:u.transitions.easing.easeOut})},e.variant==="filled"&&N({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},e.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},e.shrink&&N({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},e.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),e.variant==="outlined"&&N({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},e.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},e.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}),e.variant==="standard"&&{"&:not(label) + div":{marginTop:16}})),ZS0=w.forwardRef(function(e,t){const n=pu({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:i,className:a}=n,o=L0(n,KS0),s=q3();let f=i;typeof f>"u"&&s&&(f=s.filled||s.focused||s.adornedStart);const l=W3({props:n,muiFormControl:s,states:["size","variant","required","focused"]}),c=N({},n,{disableAnimation:r,formControl:s,shrink:f,size:l.size,variant:l.variant,required:l.required,focused:l.focused}),d=QS0(c);return K.jsx(JS0,N({"data-shrink":f,ownerState:c,ref:t,className:H0(d.root,a)},o,{classes:d}))}),YS0=ZS0,XS0=w.createContext({}),uT0=XS0;function eT0(u){return fu("MuiList",u)}Eu("MuiList",["root","padding","dense","subheader"]);const tT0=["children","className","component","dense","disablePadding","subheader"],nT0=u=>{const{classes:e,disablePadding:t,dense:n,subheader:r}=u;return du({root:["root",!t&&"padding",n&&"dense",r&&"subheader"]},eT0,e)},rT0=$0("ul",{name:"MuiList",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,!t.disablePadding&&e.padding,t.dense&&e.dense,t.subheader&&e.subheader]}})(({ownerState:u})=>N({listStyle:"none",margin:0,padding:0,position:"relative"},!u.disablePadding&&{paddingTop:8,paddingBottom:8},u.subheader&&{paddingTop:0})),iT0=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiList"}),{children:r,className:i,component:a="ul",dense:o=!1,disablePadding:s=!1,subheader:f}=n,l=L0(n,tT0),c=w.useMemo(()=>({dense:o}),[o]),d=N({},n,{component:a,dense:o,disablePadding:s}),E=nT0(d);return K.jsx(uT0.Provider,{value:c,children:K.jsxs(rT0,N({as:a,className:H0(E.root,i),ref:t,ownerState:d},l,{children:[f,r]}))})}),aT0=iT0,oT0=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function yh(u,e,t){return u===e?u.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t?null:u.firstChild}function $x(u,e,t){return u===e?t?u.firstChild:u.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t?null:u.lastChild}function Sz(u,e){if(e===void 0)return!0;let t=u.innerText;return t===void 0&&(t=u.textContent),t=t.trim().toLowerCase(),t.length===0?!1:e.repeating?t[0]===e.keys[0]:t.indexOf(e.keys.join(""))===0}function pl(u,e,t,n,r,i){let a=!1,o=r(u,e,e?t:!1);for(;o;){if(o===u.firstChild){if(a)return!1;a=!0}const s=n?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!Sz(o,i)||s)o=r(u,o,t);else return o.focus(),!0}return!1}const sT0=w.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:f=!1,onKeyDown:l,variant:c="selectedMenu"}=e,d=L0(e,oT0),E=w.useRef(null),p=w.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});$o(()=>{r&&E.current.focus()},[r]),w.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(A,y)=>{const B=!E.current.style.width;if(A.clientHeight{const y=E.current,B=A.key,v=Lt(y).activeElement;if(B==="ArrowDown")A.preventDefault(),pl(y,v,f,s,yh);else if(B==="ArrowUp")A.preventDefault(),pl(y,v,f,s,$x);else if(B==="Home")A.preventDefault(),pl(y,null,f,s,yh);else if(B==="End")A.preventDefault(),pl(y,null,f,s,$x);else if(B.length===1){const C=p.current,D=B.toLowerCase(),S=performance.now();C.keys.length>0&&(S-C.lastTime>500?(C.keys=[],C.repeating=!0,C.previousKeyMatched=!0):C.repeating&&D!==C.keys[0]&&(C.repeating=!1)),C.lastTime=S,C.keys.push(D);const x=v&&!C.repeating&&Sz(v,C);C.previousKeyMatched&&(x||pl(y,v,!1,s,yh,C))?A.preventDefault():C.previousKeyMatched=!1}l&&l(A)},g=et(E,t);let b=-1;w.Children.forEach(a,(A,y)=>{if(!w.isValidElement(A)){b===y&&(b+=1,b>=a.length&&(b=-1));return}A.props.disabled||(c==="selectedMenu"&&A.props.selected||b===-1)&&(b=y),b===y&&(A.props.disabled||A.props.muiSkipListHighlight||A.type.muiSkipListHighlight)&&(b+=1,b>=a.length&&(b=-1))});const m=w.Children.map(a,(A,y)=>{if(y===b){const B={};return i&&(B.autoFocus=!0),A.props.tabIndex===void 0&&c==="selectedMenu"&&(B.tabIndex=0),w.cloneElement(A,B)}return A});return K.jsx(aT0,N({role:"menu",ref:g,className:o,onKeyDown:h,tabIndex:r?0:-1},d,{children:m}))}),fT0=sT0;function lT0(u){return fu("MuiPopover",u)}Eu("MuiPopover",["root","paper"]);const cT0=["onEntering"],dT0=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ET0=["slotProps"];function Ux(u,e){let t=0;return typeof e=="number"?t=e:e==="center"?t=u.height/2:e==="bottom"&&(t=u.height),t}function Wx(u,e){let t=0;return typeof e=="number"?t=e:e==="center"?t=u.width/2:e==="right"&&(t=u.width),t}function qx(u){return[u.horizontal,u.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function vh(u){return typeof u=="function"?u():u}const pT0=u=>{const{classes:e}=u;return du({root:["root"],paper:["paper"]},lT0,e)},hT0=$0(Z_0,{name:"MuiPopover",slot:"Root",overridesResolver:(u,e)=>e.root})({}),Tz=$0(Yb,{name:"MuiPopover",slot:"Paper",overridesResolver:(u,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),CT0=w.forwardRef(function(e,t){var n,r,i;const a=pu({props:e,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:f={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:d,className:E,container:p,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:m={},slots:A,slotProps:y,transformOrigin:B={vertical:"top",horizontal:"left"},TransitionComponent:v=US0,transitionDuration:C="auto",TransitionProps:{onEntering:D}={},disableScrollLock:S=!1}=a,x=L0(a.TransitionProps,cT0),L=L0(a,dT0),Y=(n=y==null?void 0:y.paper)!=null?n:m,G=w.useRef(),X=et(G,Y.ref),I=N({},a,{anchorOrigin:f,anchorReference:c,elevation:h,marginThreshold:g,externalPaperSlotProps:Y,transformOrigin:B,TransitionComponent:v,transitionDuration:C,TransitionProps:x}),O=pT0(I),W=w.useCallback(()=>{if(c==="anchorPosition")return l;const j=vh(s),V=(j&&j.nodeType===1?j:Lt(G.current).body).getBoundingClientRect();return{top:V.top+Ux(V,f.vertical),left:V.left+Wx(V,f.horizontal)}},[s,f.horizontal,f.vertical,l,c]),$=w.useCallback(j=>({vertical:Ux(j,B.vertical),horizontal:Wx(j,B.horizontal)}),[B.horizontal,B.vertical]),q=w.useCallback(j=>{const z={width:j.offsetWidth,height:j.offsetHeight},V=$(z);if(c==="none")return{top:null,left:null,transformOrigin:qx(V)};const t0=W();let H=t0.top-V.vertical,J=t0.left-V.horizontal;const u0=H+z.height,Z=J+z.width,n0=Lo(vh(s)),p0=n0.innerHeight-g,C0=n0.innerWidth-g;if(g!==null&&Hp0){const y0=u0-p0;H-=y0,V.vertical+=y0}if(g!==null&&JC0){const y0=Z-C0;J-=y0,V.horizontal+=y0}return{top:`${Math.round(H)}px`,left:`${Math.round(J)}px`,transformOrigin:qx(V)}},[s,c,W,$,g]),[U,i0]=w.useState(b),s0=w.useCallback(()=>{const j=G.current;if(!j)return;const z=q(j);z.top!==null&&(j.style.top=z.top),z.left!==null&&(j.style.left=z.left),j.style.transformOrigin=z.transformOrigin,i0(!0)},[q]);w.useEffect(()=>(S&&window.addEventListener("scroll",s0),()=>window.removeEventListener("scroll",s0)),[s,S,s0]);const o0=(j,z)=>{D&&D(j,z),s0()},Q=()=>{i0(!1)};w.useEffect(()=>{b&&s0()}),w.useImperativeHandle(o,()=>b?{updatePosition:()=>{s0()}}:null,[b,s0]),w.useEffect(()=>{if(!b)return;const j=GT(()=>{s0()}),z=Lo(s);return z.addEventListener("resize",j),()=>{j.clear(),z.removeEventListener("resize",j)}},[s,b,s0]);let b0=C;C==="auto"&&!v.muiSupportAuto&&(b0=void 0);const A0=p||(s?Lt(vh(s)).body:void 0),_0=(r=A==null?void 0:A.root)!=null?r:hT0,w0=(i=A==null?void 0:A.paper)!=null?i:Tz,B0=Zo({elementType:w0,externalSlotProps:N({},Y,{style:U?Y.style:N({},Y.style,{opacity:0})}),additionalProps:{elevation:h,ref:X},ownerState:I,className:H0(O.paper,Y==null?void 0:Y.className)}),_=Zo({elementType:_0,externalSlotProps:(y==null?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:A0,open:b},ownerState:I,className:H0(O.root,E)}),{slotProps:T}=_,P=L0(_,ET0);return K.jsx(_0,N({},P,!f9(_0)&&{slotProps:T,disableScrollLock:S},{children:K.jsx(v,N({appear:!0,in:b,onEntering:o0,onExited:Q,timeout:b0},x,{children:K.jsx(w0,N({},B0,{children:d}))}))}))}),mT0=CT0;function bT0(u){return fu("MuiMenu",u)}Eu("MuiMenu",["root","paper","list"]);const gT0=["onEntering"],AT0=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],yT0={vertical:"top",horizontal:"right"},vT0={vertical:"top",horizontal:"left"},BT0=u=>{const{classes:e}=u;return du({root:["root"],paper:["paper"],list:["list"]},bT0,e)},FT0=$0(mT0,{shouldForwardProp:u=>Vn(u)||u==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(u,e)=>e.root})({}),DT0=$0(Tz,{name:"MuiMenu",slot:"Paper",overridesResolver:(u,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),wT0=$0(fT0,{name:"MuiMenu",slot:"List",overridesResolver:(u,e)=>e.list})({outline:0}),xT0=w.forwardRef(function(e,t){var n,r;const i=pu({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:o,className:s,disableAutoFocusItem:f=!1,MenuListProps:l={},onClose:c,open:d,PaperProps:E={},PopoverClasses:p,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:m={},slotProps:A={}}=i,y=L0(i.TransitionProps,gT0),B=L0(i,AT0),v=wd(),C=v.direction==="rtl",D=N({},i,{autoFocus:a,disableAutoFocusItem:f,MenuListProps:l,onEntering:g,PaperProps:E,transitionDuration:h,TransitionProps:y,variant:b}),S=BT0(D),x=a&&!f&&d,L=w.useRef(null),Y=(q,U)=>{L.current&&L.current.adjustStyleForScrollbar(q,v),g&&g(q,U)},G=q=>{q.key==="Tab"&&(q.preventDefault(),c&&c(q,"tabKeyDown"))};let X=-1;w.Children.map(o,(q,U)=>{w.isValidElement(q)&&(q.props.disabled||(b==="selectedMenu"&&q.props.selected||X===-1)&&(X=U))});const I=(n=m.paper)!=null?n:DT0,O=(r=A.paper)!=null?r:E,W=Zo({elementType:m.root,externalSlotProps:A.root,ownerState:D,className:[S.root,s]}),$=Zo({elementType:I,externalSlotProps:O,ownerState:D,className:S.paper});return K.jsx(FT0,N({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?yT0:vT0,slots:{paper:I,root:m.root},slotProps:{root:W,paper:$},open:d,ref:t,transitionDuration:h,TransitionProps:N({onEntering:Y},y),ownerState:D},B,{classes:p,children:K.jsx(wT0,N({onKeyDown:G,actions:L,autoFocus:a&&(X===-1||f),autoFocusItem:x,variant:b},l,{className:H0(S.list,l.className),children:o}))}))}),kT0=xT0;function _T0(u){return fu("MuiNativeSelect",u)}const ST0=Eu("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),_y=ST0,TT0=["className","disabled","error","IconComponent","inputRef","variant"],PT0=u=>{const{classes:e,variant:t,disabled:n,multiple:r,open:i,error:a}=u,o={select:["select",t,n&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${K0(t)}`,i&&"iconOpen",n&&"disabled"]};return du(o,_T0,e)},Pz=({ownerState:u,theme:e})=>N({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":N({},e.vars?{backgroundColor:`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:e.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${_y.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},u.variant==="filled"&&{"&&&":{paddingRight:32}},u.variant==="outlined"&&{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}),IT0=$0("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Vn,overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.select,e[t.variant],t.error&&e.error,{[`&.${_y.multiple}`]:e.multiple}]}})(Pz),Iz=({ownerState:u,theme:e})=>N({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${_y.disabled}`]:{color:(e.vars||e).palette.action.disabled}},u.open&&{transform:"rotate(180deg)"},u.variant==="filled"&&{right:7},u.variant==="outlined"&&{right:7}),OT0=$0("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.icon,t.variant&&e[`icon${K0(t.variant)}`],t.open&&e.iconOpen]}})(Iz),RT0=w.forwardRef(function(e,t){const{className:n,disabled:r,error:i,IconComponent:a,inputRef:o,variant:s="standard"}=e,f=L0(e,TT0),l=N({},e,{disabled:r,variant:s,error:i}),c=PT0(l);return K.jsxs(w.Fragment,{children:[K.jsx(IT0,N({ownerState:l,className:H0(c.select,n),disabled:r,ref:o||t},f)),e.multiple?null:K.jsx(OT0,{as:a,ownerState:l,className:c.icon})]})}),NT0=RT0;var Hx;const MT0=["children","classes","className","label","notched"],jT0=$0("fieldset",{shouldForwardProp:Vn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),zT0=$0("legend",{shouldForwardProp:Vn})(({ownerState:u,theme:e})=>N({float:"unset",width:"auto",overflow:"hidden"},!u.withLabel&&{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},u.withLabel&&N({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},u.notched&&{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})})));function LT0(u){const{className:e,label:t,notched:n}=u,r=L0(u,MT0),i=t!=null&&t!=="",a=N({},u,{notched:n,withLabel:i});return K.jsx(jT0,N({"aria-hidden":!0,className:e,ownerState:a},r,{children:K.jsx(zT0,{ownerState:a,children:i?K.jsx("span",{children:t}):Hx||(Hx=K.jsx("span",{className:"notranslate",children:"​"}))})}))}const $T0=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],UT0=u=>{const{classes:e}=u,n=du({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},a_0,e);return N({},e,n)},WT0=$0(Ap,{shouldForwardProp:u=>Vn(u)||u==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:bp})(({theme:u,ownerState:e})=>{const t=u.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return N({position:"relative",borderRadius:(u.vars||u).shape.borderRadius,[`&:hover .${Di.notchedOutline}`]:{borderColor:(u.vars||u).palette.text.primary},"@media (hover: none)":{[`&:hover .${Di.notchedOutline}`]:{borderColor:u.vars?`rgba(${u.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Di.focused} .${Di.notchedOutline}`]:{borderColor:(u.vars||u).palette[e.color].main,borderWidth:2},[`&.${Di.error} .${Di.notchedOutline}`]:{borderColor:(u.vars||u).palette.error.main},[`&.${Di.disabled} .${Di.notchedOutline}`]:{borderColor:(u.vars||u).palette.action.disabled}},e.startAdornment&&{paddingLeft:14},e.endAdornment&&{paddingRight:14},e.multiline&&N({padding:"16.5px 14px"},e.size==="small"&&{padding:"8.5px 14px"}))}),qT0=$0(LT0,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(u,e)=>e.notchedOutline})(({theme:u})=>{const e=u.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:u.vars?`rgba(${u.vars.palette.common.onBackgroundChannel} / 0.23)`:e}}),HT0=$0(yp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:gp})(({theme:u,ownerState:e})=>N({padding:"16.5px 14px"},!u.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:u.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:u.palette.mode==="light"?null:"#fff",caretColor:u.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},u.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[u.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},e.size==="small"&&{padding:"8.5px 14px"},e.multiline&&{padding:0},e.startAdornment&&{paddingLeft:0},e.endAdornment&&{paddingRight:0})),Oz=w.forwardRef(function(e,t){var n,r,i,a,o;const s=pu({props:e,name:"MuiOutlinedInput"}),{components:f={},fullWidth:l=!1,inputComponent:c="input",label:d,multiline:E=!1,notched:p,slots:h={},type:g="text"}=s,b=L0(s,$T0),m=UT0(s),A=q3(),y=W3({props:s,muiFormControl:A,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),B=N({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:A,fullWidth:l,hiddenLabel:y.hiddenLabel,multiline:E,size:y.size,type:g}),v=(n=(r=h.root)!=null?r:f.Root)!=null?n:WT0,C=(i=(a=h.input)!=null?a:f.Input)!=null?i:HT0;return K.jsx(xy,N({slots:{root:v,input:C},renderSuffix:D=>K.jsx(qT0,{ownerState:B,className:m.notchedOutline,label:d!=null&&d!==""&&y.required?o||(o=K.jsxs(w.Fragment,{children:[d," ","*"]})):d,notched:typeof p<"u"?p:!!(D.startAdornment||D.filled||D.focused)}),fullWidth:l,inputComponent:c,multiline:E,ref:t,type:g},b,{classes:N({},m,{notchedOutline:null})}))});Oz.muiName="Input";const Rz=Oz;function GT0(u){return fu("MuiSelect",u)}const VT0=Eu("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),hl=VT0;var Gx;const KT0=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],QT0=$0("div",{name:"MuiSelect",slot:"Select",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[{[`&.${hl.select}`]:e.select},{[`&.${hl.select}`]:e[t.variant]},{[`&.${hl.error}`]:e.error},{[`&.${hl.multiple}`]:e.multiple}]}})(Pz,{[`&.${hl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),JT0=$0("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.icon,t.variant&&e[`icon${K0(t.variant)}`],t.open&&e.iconOpen]}})(Iz),ZT0=$0("input",{shouldForwardProp:u=>iQ(u)&&u!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(u,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Vx(u,e){return typeof e=="object"&&e!==null?u===e:String(u)===String(e)}function YT0(u){return u==null||typeof u=="string"&&!u.trim()}const XT0=u=>{const{classes:e,variant:t,disabled:n,multiple:r,open:i,error:a}=u,o={select:["select",t,n&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${K0(t)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return du(o,GT0,e)},uP0=w.forwardRef(function(e,t){var n;const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:o,children:s,className:f,defaultOpen:l,defaultValue:c,disabled:d,displayEmpty:E,error:p=!1,IconComponent:h,inputRef:g,labelId:b,MenuProps:m={},multiple:A,name:y,onBlur:B,onChange:v,onClose:C,onFocus:D,onOpen:S,open:x,readOnly:L,renderValue:Y,SelectDisplayProps:G={},tabIndex:X,value:I,variant:O="standard"}=e,W=L0(e,KT0),[$,q]=jB({controlled:I,default:c,name:"Select"}),[U,i0]=jB({controlled:x,default:l,name:"Select"}),s0=w.useRef(null),o0=w.useRef(null),[Q,b0]=w.useState(null),{current:A0}=w.useRef(x!=null),[_0,w0]=w.useState(),B0=et(t,g),_=w.useCallback(D0=>{o0.current=D0,D0&&b0(D0)},[]),T=Q==null?void 0:Q.parentNode;w.useImperativeHandle(B0,()=>({focus:()=>{o0.current.focus()},node:s0.current,value:$}),[$]),w.useEffect(()=>{l&&U&&Q&&!A0&&(w0(o?null:T.clientWidth),o0.current.focus())},[Q,o]),w.useEffect(()=>{a&&o0.current.focus()},[a]),w.useEffect(()=>{if(!b)return;const D0=Lt(o0.current).getElementById(b);if(D0){const R0=()=>{getSelection().isCollapsed&&o0.current.focus()};return D0.addEventListener("click",R0),()=>{D0.removeEventListener("click",R0)}}},[b]);const P=(D0,R0)=>{D0?S&&S(R0):C&&C(R0),A0||(w0(o?null:T.clientWidth),i0(D0))},j=D0=>{D0.button===0&&(D0.preventDefault(),o0.current.focus(),P(!0,D0))},z=D0=>{P(!1,D0)},V=w.Children.toArray(s),t0=D0=>{const R0=V.find(nu=>nu.props.value===D0.target.value);R0!==void 0&&(q(R0.props.value),v&&v(D0,R0))},H=D0=>R0=>{let nu;if(R0.currentTarget.hasAttribute("tabindex")){if(A){nu=Array.isArray($)?$.slice():[];const hu=$.indexOf(D0.props.value);hu===-1?nu.push(D0.props.value):nu.splice(hu,1)}else nu=D0.props.value;if(D0.props.onClick&&D0.props.onClick(R0),$!==nu&&(q(nu),v)){const hu=R0.nativeEvent||R0,rv=new hu.constructor(hu.type,hu);Object.defineProperty(rv,"target",{writable:!0,value:{value:nu,name:y}}),v(rv,D0)}A||P(!1,R0)}},J=D0=>{L||[" ","ArrowUp","ArrowDown","Enter"].indexOf(D0.key)!==-1&&(D0.preventDefault(),P(!0,D0))},u0=Q!==null&&U,Z=D0=>{!u0&&B&&(Object.defineProperty(D0,"target",{writable:!0,value:{value:$,name:y}}),B(D0))};delete W["aria-invalid"];let n0,p0;const C0=[];let y0=!1;(c9({value:$})||E)&&(Y?n0=Y($):y0=!0);const g0=V.map(D0=>{if(!w.isValidElement(D0))return null;let R0;if(A){if(!Array.isArray($))throw new Error(pa(2));R0=$.some(nu=>Vx(nu,D0.props.value)),R0&&y0&&C0.push(D0.props.children)}else R0=Vx($,D0.props.value),R0&&y0&&(p0=D0.props.children);return w.cloneElement(D0,{"aria-selected":R0?"true":"false",onClick:H(D0),onKeyUp:nu=>{nu.key===" "&&nu.preventDefault(),D0.props.onKeyUp&&D0.props.onKeyUp(nu)},role:"option",selected:R0,value:void 0,"data-value":D0.props.value})});y0&&(A?C0.length===0?n0=null:n0=C0.reduce((D0,R0,nu)=>(D0.push(R0),nu{const{classes:e}=u;return e},Sy={name:"MuiSelect",overridesResolver:(u,e)=>e.root,shouldForwardProp:u=>Vn(u)&&u!=="variant",slot:"Root"},iP0=$0(_z,Sy)(""),aP0=$0(Rz,Sy)(""),oP0=$0(Dz,Sy)(""),Nz=w.forwardRef(function(e,t){const n=pu({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:i,classes:a={},className:o,defaultOpen:s=!1,displayEmpty:f=!1,IconComponent:l=l_0,id:c,input:d,inputProps:E,label:p,labelId:h,MenuProps:g,multiple:b=!1,native:m=!1,onClose:A,onOpen:y,open:B,renderValue:v,SelectDisplayProps:C,variant:D="outlined"}=n,S=L0(n,tP0),x=m?NT0:eP0,L=q3(),Y=W3({props:n,muiFormControl:L,states:["variant","error"]}),G=Y.variant||D,X=N({},n,{variant:G,classes:a}),I=rP0(X),O=L0(I,nP0),W=d||{standard:K.jsx(iP0,{ownerState:X}),outlined:K.jsx(aP0,{label:p,ownerState:X}),filled:K.jsx(oP0,{ownerState:X})}[G],$=et(t,W.ref);return K.jsx(w.Fragment,{children:w.cloneElement(W,N({inputComponent:x,inputProps:N({children:i,error:Y.error,IconComponent:l,variant:G,type:void 0,multiple:b},m?{id:c}:{autoWidth:r,defaultOpen:s,displayEmpty:f,labelId:h,MenuProps:g,onClose:A,onOpen:y,open:B,renderValue:v,SelectDisplayProps:N({id:c},C)},E,{classes:E?ze(O,E.classes):O},d?d.props.inputProps:{})},b&&m&&G==="outlined"?{notched:!0}:{},{ref:$,className:H0(W.props.className,o,I.root)},!d&&{variant:G},S))})});Nz.muiName="Select";const sP0=Nz;function fP0(u){return fu("MuiTextField",u)}Eu("MuiTextField",["root"]);const lP0=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],cP0={standard:_z,filled:Dz,outlined:Rz},dP0=u=>{const{classes:e}=u;return du({root:["root"]},fP0,e)},EP0=$0(oS0,{name:"MuiTextField",slot:"Root",overridesResolver:(u,e)=>e.root})({}),pP0=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:o,color:s="primary",defaultValue:f,disabled:l=!1,error:c=!1,FormHelperTextProps:d,fullWidth:E=!1,helperText:p,id:h,InputLabelProps:g,inputProps:b,InputProps:m,inputRef:A,label:y,maxRows:B,minRows:v,multiline:C=!1,name:D,onBlur:S,onChange:x,onFocus:L,placeholder:Y,required:G=!1,rows:X,select:I=!1,SelectProps:O,type:W,value:$,variant:q="outlined"}=n,U=L0(n,lP0),i0=N({},n,{autoFocus:i,color:s,disabled:l,error:c,fullWidth:E,multiline:C,required:G,select:I,variant:q}),s0=dP0(i0),o0={};q==="outlined"&&(g&&typeof g.shrink<"u"&&(o0.notched=g.shrink),o0.label=y),I&&((!O||!O.native)&&(o0.id=void 0),o0["aria-describedby"]=void 0);const Q=j7(h),b0=p&&Q?`${Q}-helper-text`:void 0,A0=y&&Q?`${Q}-label`:void 0,_0=cP0[q],w0=K.jsx(_0,N({"aria-describedby":b0,autoComplete:r,autoFocus:i,defaultValue:f,fullWidth:E,multiline:C,name:D,rows:X,maxRows:B,minRows:v,type:W,value:$,id:Q,inputRef:A,onBlur:S,onChange:x,onFocus:L,placeholder:Y,inputProps:b},o0,m));return K.jsxs(EP0,N({className:H0(s0.root,o),disabled:l,error:c,fullWidth:E,ref:t,required:G,color:s,variant:q,ownerState:i0},U,{children:[y!=null&&y!==""&&K.jsx(YS0,N({htmlFor:Q,id:A0},g,{children:y})),I?K.jsx(sP0,N({"aria-describedby":b0,id:Q,labelId:A0,value:$,input:w0},O,{children:a})):w0,p&&K.jsx(hS0,N({id:b0},d,{children:p}))]}))}),Bh=pP0,hP0=["MarketPlace","Factory"];function CP0(){const u=Pb(),e=Bt(),t=()=>{e.isConnected&&u("/real-token/Profile/"+e.address)},n=r=>{console.log("Redirect to page: ",r),r=="MarketPlace"?u("/real-token/Explore"):r=="Factory"&&u("/real-token/Mint")};return w.useEffect(()=>{},[]),K.jsx(nJ,{position:"static",style:{background:"linear-gradient(269.67deg, #CCE1FA -10.61%, #C6EEEA 113.26%)"},children:K.jsx(cJ,{maxWidth:"xl",children:K.jsxs(fJ,{disableGutters:!0,children:[K.jsx("img",{src:bJ,width:40}),K.jsx(_P,{sx:{flexGrow:1,display:{xs:"none",md:"flex"}},children:hP0.map(r=>K.jsx(Ho,{onClick:()=>n(r),sx:{my:2,color:"#352D50",display:"block"},children:r},r))}),K.jsxs(BK,{sx:{flexGrow:0},direction:"row",children:[K.jsx(ey,{chainStatus:"full",accountStatus:{smallScreen:"avatar",largeScreen:"address"}}),e.isConnected&&K.jsx("div",{onClick:t,children:K.jsx(A_0,{})})]})]})})})}function mP0(u){return K.jsx(ky,{onClick:u.onClick,className:"nft-card",children:K.jsxs(Bz,{children:[K.jsx("img",{src:u.NFT.img,width:200,height:275}),K.jsx("h4",{children:u.NFT.name}),K.jsxs("p",{children:[u.NFT.price," ",u.NFT.price_token]}),K.jsx(Ho,{variant:"contained",color:"primary",children:"Buy Now"})]})})}const bP0="hh-sol-artifact-1",gP0="MarketPlace",AP0="contracts/MarketPlace.sol",yP0=[{inputs:[{internalType:"address",name:"_fractionalizedNFT",type:"address"},{internalType:"address",name:"_matic",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{inputs:[],name:"ReentrancyGuardReentrantCall",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"seller",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"price",type:"uint256"}],name:"TokenListed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"TokenRemovedFromSale",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"TokenSold",type:"event"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"buyToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"}],name:"listTokenForSale",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"removeTokenFromSale",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"}],vP0="0x60806040523480156200001157600080fd5b50604051620019853803806200198583398181016040528101906200003791906200027e565b33600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000ad5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000a49190620002d6565b60405180910390fd5b620000be816200015060201b60201c565b506001808190555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050620002f3565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002468262000219565b9050919050565b620002588162000239565b81146200026457600080fd5b50565b60008151905062000278816200024d565b92915050565b6000806040838503121562000298576200029762000214565b5b6000620002a88582860162000267565b9250506020620002bb8582860162000267565b9150509250929050565b620002d08162000239565b82525050565b6000602082019050620002ed6000830184620002c5565b92915050565b61168280620003036000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80635fe287b914610067578063715018a6146100835780637273cc021461008d5780638da5cb5b146100a9578063e8cdea11146100c7578063f2fde38b146100e3575b600080fd5b610081600480360381019061007c9190610e39565b6100ff565b005b61008b61059b565b005b6100a760048036038101906100a29190610ea8565b6105af565b005b6100b1610875565b6040516100be9190610f3c565b60405180910390f35b6100e160048036038101906100dc9190610f57565b61089e565b005b6100fd60048036038101906100f89190610fb0565b6109d9565b005b610107610a5f565b6000821161014a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101419061103a565b60405180910390fd5b600060046000858152602001908152602001600020905082816002015410156101a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161019f906110cc565b60405180910390fd5b60008382600301546101ba919061111b565b905080600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016102189190610f3c565b602060405180830381865afa158015610235573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102599190611172565b101561029a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610291906111eb565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd338460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b815260040161031d9392919061121a565b6020604051808303816000875af115801561033c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103609190611289565b61039f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161039690611302565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663605105f08360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16338888886040518663ffffffff1660e01b81526004016104269594939291906113a1565b600060405180830381600087803b15801561044057600080fd5b505af1158015610454573d6000803e3d6000fd5b505050508382600201600082825461046c91906113fb565b925050819055503373ffffffffffffffffffffffffffffffffffffffff168260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16867f3d5eb834b5d6cadc063c171c3f25f60bca8ea892ba9db25342278927d0af9556876040516104f5919061142f565b60405180910390a4600082600201540361058c5760046000868152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905560038201600090555050847fccd0b7af52bf5f08ec6781299e66283301e612d1ca1ffceab3579a6364073c3060405160405180910390a25b5050610596610aa5565b505050565b6105a3610aae565b6105ad6000610b35565b565b6105b7610a5f565b600082116105fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105f19061103a565b60405180910390fd5b6000811161063d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063490611496565b60405180910390fd5b61064683610bf9565b610685576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067c90611502565b60405180910390fd5b81600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632fecd4bb33866040518363ffffffff1660e01b81526004016106e3929190611522565b602060405180830381865afa158015610700573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107249190611172565b1015610765576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075c90611597565b60405180910390fd5b60405180608001604052803373ffffffffffffffffffffffffffffffffffffffff168152602001848152602001838152602001828152506004600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020155606082015181600301559050503373ffffffffffffffffffffffffffffffffffffffff16837f2428821d20d9a8080d99a3d335d478f0546d90a0376be12c52a6d600f15586bf84846040516108609291906115b7565b60405180910390a3610870610aa5565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6108a6610a5f565b803373ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461094b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109429061162c565b60405180910390fd5b60046000838152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905560038201600090555050817fccd0b7af52bf5f08ec6781299e66283301e612d1ca1ffceab3579a6364073c3060405160405180910390a2506109d6610aa5565b50565b6109e1610aae565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a535760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610a4a9190610f3c565b60405180910390fd5b610a5c81610b35565b50565b600260015403610a9b576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b60018081905550565b610ab6610ca1565b73ffffffffffffffffffffffffffffffffffffffff16610ad4610875565b73ffffffffffffffffffffffffffffffffffffffff1614610b3357610af7610ca1565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610b2a9190610f3c565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b8152600401610c58929190611522565b602060405180830381865afa158015610c75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c999190611172565b119050919050565b600033905090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b610cd081610cbd565b8114610cdb57600080fd5b50565b600081359050610ced81610cc7565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610d4682610cfd565b810181811067ffffffffffffffff82111715610d6557610d64610d0e565b5b80604052505050565b6000610d78610ca9565b9050610d848282610d3d565b919050565b600067ffffffffffffffff821115610da457610da3610d0e565b5b610dad82610cfd565b9050602081019050919050565b82818337600083830152505050565b6000610ddc610dd784610d89565b610d6e565b905082815260208101848484011115610df857610df7610cf8565b5b610e03848285610dba565b509392505050565b600082601f830112610e2057610e1f610cf3565b5b8135610e30848260208601610dc9565b91505092915050565b600080600060608486031215610e5257610e51610cb3565b5b6000610e6086828701610cde565b9350506020610e7186828701610cde565b925050604084013567ffffffffffffffff811115610e9257610e91610cb8565b5b610e9e86828701610e0b565b9150509250925092565b600080600060608486031215610ec157610ec0610cb3565b5b6000610ecf86828701610cde565b9350506020610ee086828701610cde565b9250506040610ef186828701610cde565b9150509250925092565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610f2682610efb565b9050919050565b610f3681610f1b565b82525050565b6000602082019050610f516000830184610f2d565b92915050565b600060208284031215610f6d57610f6c610cb3565b5b6000610f7b84828501610cde565b91505092915050565b610f8d81610f1b565b8114610f9857600080fd5b50565b600081359050610faa81610f84565b92915050565b600060208284031215610fc657610fc5610cb3565b5b6000610fd484828501610f9b565b91505092915050565b600082825260208201905092915050565b7f416d6f756e74206d7573742062652067726561746572207468616e207a65726f600082015250565b6000611024602083610fdd565b915061102f82610fee565b602082019050919050565b6000602082019050818103600083015261105381611017565b9050919050565b7f4e6f7420656e6f75676820746f6b656e7320617661696c61626c6520666f722060008201527f73616c6500000000000000000000000000000000000000000000000000000000602082015250565b60006110b6602483610fdd565b91506110c18261105a565b604082019050919050565b600060208201905081810360008301526110e5816110a9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061112682610cbd565b915061113183610cbd565b925082820261113f81610cbd565b91508282048414831517611156576111556110ec565b5b5092915050565b60008151905061116c81610cc7565b92915050565b60006020828403121561118857611187610cb3565b5b60006111968482850161115d565b91505092915050565b7f496e73756666696369656e742062757965722062616c616e6365000000000000600082015250565b60006111d5601a83610fdd565b91506111e08261119f565b602082019050919050565b60006020820190508181036000830152611204816111c8565b9050919050565b61121481610cbd565b82525050565b600060608201905061122f6000830186610f2d565b61123c6020830185610f2d565b611249604083018461120b565b949350505050565b60008115159050919050565b61126681611251565b811461127157600080fd5b50565b6000815190506112838161125d565b92915050565b60006020828403121561129f5761129e610cb3565b5b60006112ad84828501611274565b91505092915050565b7f546f6b656e207472616e73666572206661696c65640000000000000000000000600082015250565b60006112ec601583610fdd565b91506112f7826112b6565b602082019050919050565b6000602082019050818103600083015261131b816112df565b9050919050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561135c578082015181840152602081019050611341565b60008484015250505050565b600061137382611322565b61137d818561132d565b935061138d81856020860161133e565b61139681610cfd565b840191505092915050565b600060a0820190506113b66000830188610f2d565b6113c36020830187610f2d565b6113d0604083018661120b565b6113dd606083018561120b565b81810360808301526113ef8184611368565b90509695505050505050565b600061140682610cbd565b915061141183610cbd565b9250828203905081811115611429576114286110ec565b5b92915050565b6000602082019050611444600083018461120b565b92915050565b7f5072696365206d7573742062652067726561746572207468616e207a65726f00600082015250565b6000611480601f83610fdd565b915061148b8261144a565b602082019050919050565b600060208201905081810360008301526114af81611473565b9050919050565b7f546f6b656e206d757374206265206672616374696f6e616c697a656400000000600082015250565b60006114ec601c83610fdd565b91506114f7826114b6565b602082019050919050565b6000602082019050818103600083015261151b816114df565b9050919050565b60006040820190506115376000830185610f2d565b611544602083018461120b565b9392505050565b7f496e73756666696369656e74206f776e65727368697000000000000000000000600082015250565b6000611581601683610fdd565b915061158c8261154b565b602082019050919050565b600060208201905081810360008301526115b081611574565b9050919050565b60006040820190506115cc600083018561120b565b6115d9602083018461120b565b9392505050565b7f4e6f74207468652073656c6c6572000000000000000000000000000000000000600082015250565b6000611616600e83610fdd565b9150611621826115e0565b602082019050919050565b6000602082019050818103600083015261164581611609565b905091905056fea2646970667358221220e0d551932168471afc5b6ed8e4b59120e6bb5ca1f4256467b601e7cb9a24436164736f6c63430008140033",BP0="0x608060405234801561001057600080fd5b50600436106100625760003560e01c80635fe287b914610067578063715018a6146100835780637273cc021461008d5780638da5cb5b146100a9578063e8cdea11146100c7578063f2fde38b146100e3575b600080fd5b610081600480360381019061007c9190610e39565b6100ff565b005b61008b61059b565b005b6100a760048036038101906100a29190610ea8565b6105af565b005b6100b1610875565b6040516100be9190610f3c565b60405180910390f35b6100e160048036038101906100dc9190610f57565b61089e565b005b6100fd60048036038101906100f89190610fb0565b6109d9565b005b610107610a5f565b6000821161014a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101419061103a565b60405180910390fd5b600060046000858152602001908152602001600020905082816002015410156101a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161019f906110cc565b60405180910390fd5b60008382600301546101ba919061111b565b905080600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016102189190610f3c565b602060405180830381865afa158015610235573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102599190611172565b101561029a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610291906111eb565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd338460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b815260040161031d9392919061121a565b6020604051808303816000875af115801561033c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103609190611289565b61039f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161039690611302565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663605105f08360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16338888886040518663ffffffff1660e01b81526004016104269594939291906113a1565b600060405180830381600087803b15801561044057600080fd5b505af1158015610454573d6000803e3d6000fd5b505050508382600201600082825461046c91906113fb565b925050819055503373ffffffffffffffffffffffffffffffffffffffff168260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16867f3d5eb834b5d6cadc063c171c3f25f60bca8ea892ba9db25342278927d0af9556876040516104f5919061142f565b60405180910390a4600082600201540361058c5760046000868152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905560038201600090555050847fccd0b7af52bf5f08ec6781299e66283301e612d1ca1ffceab3579a6364073c3060405160405180910390a25b5050610596610aa5565b505050565b6105a3610aae565b6105ad6000610b35565b565b6105b7610a5f565b600082116105fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105f19061103a565b60405180910390fd5b6000811161063d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063490611496565b60405180910390fd5b61064683610bf9565b610685576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067c90611502565b60405180910390fd5b81600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632fecd4bb33866040518363ffffffff1660e01b81526004016106e3929190611522565b602060405180830381865afa158015610700573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107249190611172565b1015610765576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075c90611597565b60405180910390fd5b60405180608001604052803373ffffffffffffffffffffffffffffffffffffffff168152602001848152602001838152602001828152506004600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020155606082015181600301559050503373ffffffffffffffffffffffffffffffffffffffff16837f2428821d20d9a8080d99a3d335d478f0546d90a0376be12c52a6d600f15586bf84846040516108609291906115b7565b60405180910390a3610870610aa5565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6108a6610a5f565b803373ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461094b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109429061162c565b60405180910390fd5b60046000838152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905560038201600090555050817fccd0b7af52bf5f08ec6781299e66283301e612d1ca1ffceab3579a6364073c3060405160405180910390a2506109d6610aa5565b50565b6109e1610aae565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a535760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610a4a9190610f3c565b60405180910390fd5b610a5c81610b35565b50565b600260015403610a9b576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b60018081905550565b610ab6610ca1565b73ffffffffffffffffffffffffffffffffffffffff16610ad4610875565b73ffffffffffffffffffffffffffffffffffffffff1614610b3357610af7610ca1565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610b2a9190610f3c565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b8152600401610c58929190611522565b602060405180830381865afa158015610c75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c999190611172565b119050919050565b600033905090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b610cd081610cbd565b8114610cdb57600080fd5b50565b600081359050610ced81610cc7565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610d4682610cfd565b810181811067ffffffffffffffff82111715610d6557610d64610d0e565b5b80604052505050565b6000610d78610ca9565b9050610d848282610d3d565b919050565b600067ffffffffffffffff821115610da457610da3610d0e565b5b610dad82610cfd565b9050602081019050919050565b82818337600083830152505050565b6000610ddc610dd784610d89565b610d6e565b905082815260208101848484011115610df857610df7610cf8565b5b610e03848285610dba565b509392505050565b600082601f830112610e2057610e1f610cf3565b5b8135610e30848260208601610dc9565b91505092915050565b600080600060608486031215610e5257610e51610cb3565b5b6000610e6086828701610cde565b9350506020610e7186828701610cde565b925050604084013567ffffffffffffffff811115610e9257610e91610cb8565b5b610e9e86828701610e0b565b9150509250925092565b600080600060608486031215610ec157610ec0610cb3565b5b6000610ecf86828701610cde565b9350506020610ee086828701610cde565b9250506040610ef186828701610cde565b9150509250925092565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610f2682610efb565b9050919050565b610f3681610f1b565b82525050565b6000602082019050610f516000830184610f2d565b92915050565b600060208284031215610f6d57610f6c610cb3565b5b6000610f7b84828501610cde565b91505092915050565b610f8d81610f1b565b8114610f9857600080fd5b50565b600081359050610faa81610f84565b92915050565b600060208284031215610fc657610fc5610cb3565b5b6000610fd484828501610f9b565b91505092915050565b600082825260208201905092915050565b7f416d6f756e74206d7573742062652067726561746572207468616e207a65726f600082015250565b6000611024602083610fdd565b915061102f82610fee565b602082019050919050565b6000602082019050818103600083015261105381611017565b9050919050565b7f4e6f7420656e6f75676820746f6b656e7320617661696c61626c6520666f722060008201527f73616c6500000000000000000000000000000000000000000000000000000000602082015250565b60006110b6602483610fdd565b91506110c18261105a565b604082019050919050565b600060208201905081810360008301526110e5816110a9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061112682610cbd565b915061113183610cbd565b925082820261113f81610cbd565b91508282048414831517611156576111556110ec565b5b5092915050565b60008151905061116c81610cc7565b92915050565b60006020828403121561118857611187610cb3565b5b60006111968482850161115d565b91505092915050565b7f496e73756666696369656e742062757965722062616c616e6365000000000000600082015250565b60006111d5601a83610fdd565b91506111e08261119f565b602082019050919050565b60006020820190508181036000830152611204816111c8565b9050919050565b61121481610cbd565b82525050565b600060608201905061122f6000830186610f2d565b61123c6020830185610f2d565b611249604083018461120b565b949350505050565b60008115159050919050565b61126681611251565b811461127157600080fd5b50565b6000815190506112838161125d565b92915050565b60006020828403121561129f5761129e610cb3565b5b60006112ad84828501611274565b91505092915050565b7f546f6b656e207472616e73666572206661696c65640000000000000000000000600082015250565b60006112ec601583610fdd565b91506112f7826112b6565b602082019050919050565b6000602082019050818103600083015261131b816112df565b9050919050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561135c578082015181840152602081019050611341565b60008484015250505050565b600061137382611322565b61137d818561132d565b935061138d81856020860161133e565b61139681610cfd565b840191505092915050565b600060a0820190506113b66000830188610f2d565b6113c36020830187610f2d565b6113d0604083018661120b565b6113dd606083018561120b565b81810360808301526113ef8184611368565b90509695505050505050565b600061140682610cbd565b915061141183610cbd565b9250828203905081811115611429576114286110ec565b5b92915050565b6000602082019050611444600083018461120b565b92915050565b7f5072696365206d7573742062652067726561746572207468616e207a65726f00600082015250565b6000611480601f83610fdd565b915061148b8261144a565b602082019050919050565b600060208201905081810360008301526114af81611473565b9050919050565b7f546f6b656e206d757374206265206672616374696f6e616c697a656400000000600082015250565b60006114ec601c83610fdd565b91506114f7826114b6565b602082019050919050565b6000602082019050818103600083015261151b816114df565b9050919050565b60006040820190506115376000830185610f2d565b611544602083018461120b565b9392505050565b7f496e73756666696369656e74206f776e65727368697000000000000000000000600082015250565b6000611581601683610fdd565b915061158c8261154b565b602082019050919050565b600060208201905081810360008301526115b081611574565b9050919050565b60006040820190506115cc600083018561120b565b6115d9602083018461120b565b9392505050565b7f4e6f74207468652073656c6c6572000000000000000000000000000000000000600082015250565b6000611616600e83610fdd565b9150611621826115e0565b602082019050919050565b6000602082019050818103600083015261164581611609565b905091905056fea2646970667358221220e0d551932168471afc5b6ed8e4b59120e6bb5ca1f4256467b601e7cb9a24436164736f6c63430008140033",FP0={},DP0={},em={_format:bP0,contractName:gP0,sourceName:AP0,abi:yP0,bytecode:vP0,deployedBytecode:BP0,linkReferences:FP0,deployedLinkReferences:DP0},Va="0xcD1F709E4F10839BDaE763E49eFf4858a2D30C9c",Ty="0x36D12972E7f888B6C2984D2fbe6F9EAb317Efe39",wP0="0xF373be196cc08599Bf3aC9033fC3E46426237FFE",xP0="0x3902145173758fA0859f51d917b27F7bFA17E62d",kP0="6.9.0";function _P0(u,e,t){const n=e.split("|").map(i=>i.trim());for(let i=0;iPromise.resolve(u[n])))).reduce((n,r,i)=>(n[e[i]]=r,n),{})}function U0(u,e,t){for(let n in e){let r=e[n];const i=t?t[n]:null;i&&_P0(r,i,n),Object.defineProperty(u,n,{enumerable:!0,value:r,writable:!1})}}function Ef(u){if(u==null)return"null";if(Array.isArray(u))return"[ "+u.map(Ef).join(", ")+" ]";if(u instanceof Uint8Array){const e="0123456789abcdef";let t="0x";for(let n=0;n>4],t+=e[u[n]&15];return t}if(typeof u=="object"&&typeof u.toJSON=="function")return Ef(u.toJSON());switch(typeof u){case"boolean":case"symbol":return u.toString();case"bigint":return BigInt(u).toString();case"number":return u.toString();case"string":return JSON.stringify(u);case"object":{const e=Object.keys(u);return e.sort(),"{ "+e.map(t=>`${Ef(t)}: ${Ef(u[t])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function ln(u,e){return u&&u.code===e}function Py(u){return ln(u,"CALL_EXCEPTION")}function ne(u,e,t){let n=u;{const i=[];if(t){if("message"in t||"code"in t||"name"in t)throw new Error(`value will overwrite populated values: ${Ef(t)}`);for(const a in t){if(a==="shortMessage")continue;const o=t[a];i.push(a+"="+Ef(o))}}i.push(`code=${e}`),i.push(`version=${kP0}`),i.length&&(u+=" ("+i.join(", ")+")")}let r;switch(e){case"INVALID_ARGUMENT":r=new TypeError(u);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":r=new RangeError(u);break;default:r=new Error(u)}return U0(r,{code:e}),t&&Object.assign(r,t),r.shortMessage==null&&U0(r,{shortMessage:n}),r}function E0(u,e,t,n){if(!u)throw ne(e,t,n)}function e0(u,e,t,n){E0(u,e,"INVALID_ARGUMENT",{argument:t,value:n})}function Mz(u,e,t){t==null&&(t=""),t&&(t=": "+t),E0(u>=e,"missing arguemnt"+t,"MISSING_ARGUMENT",{count:u,expectedCount:e}),E0(u<=e,"too many arguemnts"+t,"UNEXPECTED_ARGUMENT",{count:u,expectedCount:e})}const SP0=["NFD","NFC","NFKD","NFKC"].reduce((u,e)=>{try{if("test".normalize(e)!=="test")throw new Error("bad");if(e==="NFD"&&"é".normalize("NFD")!=="é")throw new Error("broken");u.push(e)}catch{}return u},[]);function TP0(u){E0(SP0.indexOf(u)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:u}})}function vp(u,e,t){if(t==null&&(t=""),u!==e){let n=t,r="new";t&&(n+=".",r+=" "+t),E0(!1,`private constructor; use ${n}from* methods`,"UNSUPPORTED_OPERATION",{operation:r})}}function jz(u,e,t){if(u instanceof Uint8Array)return t?new Uint8Array(u):u;if(typeof u=="string"&&u.match(/^0x([0-9a-f][0-9a-f])*$/i)){const n=new Uint8Array((u.length-2)/2);let r=2;for(let i=0;i>4]+Kx[r&15]}return t}function fe(u){return"0x"+u.map(e=>M0(e).substring(2)).join("")}function Pf(u){return Nu(u,!0)?(u.length-2)/2:cu(u).length}function Wu(u,e,t){const n=cu(u);return t!=null&&t>n.length&&E0(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:n,length:n.length,offset:t}),M0(n.slice(e??0,t??n.length))}function zz(u,e,t){const n=cu(u);E0(e>=n.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(n),length:e,offset:e+1});const r=new Uint8Array(e);return r.fill(0),t?r.set(n,e-n.length):r.set(n,0),M0(r)}function Yo(u,e){return zz(u,e,!0)}function IP0(u,e){return zz(u,e,!1)}const Bp=BigInt(0),Nn=BigInt(1),pf=9007199254740991;function OP0(u,e){const t=Fp(u,"value"),n=BigInt(Z0(e,"width"));if(E0(t>>n===Bp,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:u}),t>>n-Nn){const r=(Nn<=-pf&&u<=pf,"overflow",e||"value",u),BigInt(u);case"string":try{if(u==="")throw new Error("empty string");return u[0]==="-"&&u[1]!=="-"?-BigInt(u.substring(1)):BigInt(u)}catch(t){e0(!1,`invalid BigNumberish string: ${t.message}`,e||"value",u)}}e0(!1,"invalid BigNumberish value",e||"value",u)}function Fp(u,e){const t=j0(u,e);return E0(t>=Bp,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:u}),t}const Qx="0123456789abcdef";function Iy(u){if(u instanceof Uint8Array){let e="0x0";for(const t of u)e+=Qx[t>>4],e+=Qx[t&15];return BigInt(e)}return j0(u)}function Z0(u,e){switch(typeof u){case"bigint":return e0(u>=-pf&&u<=pf,"overflow",e||"value",u),Number(u);case"number":return e0(Number.isInteger(u),"underflow",e||"value",u),e0(u>=-pf&&u<=pf,"overflow",e||"value",u),u;case"string":try{if(u==="")throw new Error("empty string");return Z0(BigInt(u),e)}catch(t){e0(!1,`invalid numeric string: ${t.message}`,e||"value",u)}}e0(!1,"invalid numeric value",e||"value",u)}function RP0(u){return Z0(Iy(u))}function ya(u,e){let n=Fp(u,"value").toString(16);if(e==null)n.length%2&&(n="0"+n);else{const r=Z0(e,"width");for(E0(r*2>=n.length,`value exceeds width (${r} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:u});n.length>6===2;a++)i++;return i}return u==="OVERRUN"?t.length-e-1:0}function $P0(u,e,t,n,r){return u==="OVERLONG"?(e0(typeof r=="number","invalid bad code point for replacement","badCodepoint",r),n.push(r),0):(n.push(65533),Uz(u,e,t))}const UP0=Object.freeze({error:LP0,ignore:Uz,replace:$P0});function WP0(u,e){e==null&&(e=UP0.error);const t=cu(u,"bytes"),n=[];let r=0;for(;r>7)){n.push(i);continue}let a=null,o=null;if((i&224)===192)a=1,o=127;else if((i&240)===224)a=2,o=2047;else if((i&248)===240)a=3,o=65535;else{(i&192)===128?r+=e("UNEXPECTED_CONTINUE",r-1,t,n):r+=e("BAD_PREFIX",r-1,t,n);continue}if(r-1+a>=t.length){r+=e("OVERRUN",r-1,t,n);continue}let s=i&(1<<8-a-1)-1;for(let f=0;f1114111){r+=e("OUT_OF_RANGE",r-1-a,t,n,s);continue}if(s>=55296&&s<=57343){r+=e("UTF16_SURROGATE",r-1-a,t,n,s);continue}if(s<=o){r+=e("OVERLONG",r-1-a,t,n,s);continue}n.push(s)}}return n}function Jr(u,e){e!=null&&(TP0(e),u=u.normalize(e));let t=[];for(let n=0;n>6|192),t.push(r&63|128);else if((r&64512)==55296){n++;const i=u.charCodeAt(n);e0(n>18|240),t.push(a>>12&63|128),t.push(a>>6&63|128),t.push(a&63|128)}else t.push(r>>12|224),t.push(r>>6&63|128),t.push(r&63|128)}return new Uint8Array(t)}function qP0(u){return u.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function Oy(u,e){return qP0(WP0(u,e))}function Wz(u){async function e(t,n){const r=t.url.split(":")[0].toLowerCase();E0(r==="http"||r==="https",`unsupported protocol ${r}`,"UNSUPPORTED_OPERATION",{info:{protocol:r},operation:"request"}),E0(r==="https"||!t.credentials||t.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let i;if(n){const c=new AbortController;i=c.signal,n.addListener(()=>{c.abort()})}const a={method:t.method,headers:new Headers(Array.from(t)),body:t.body||void 0,signal:i},o=await fetch(t.url,a),s={};o.headers.forEach((c,d)=>{s[d.toLowerCase()]=c});const f=await o.arrayBuffer(),l=f==null?null:new Uint8Array(f);return{statusCode:o.status,statusMessage:o.statusText,headers:s,body:l}}return e}const HP0=12,GP0=250;let Zx=Wz();const VP0=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),KP0=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let Fh=!1;async function qz(u,e){try{const t=u.match(VP0);if(!t)throw new Error("invalid data");return new ca(200,"OK",{"content-type":t[1]||"text/plain"},t[2]?jP0(t[3]):JP0(t[3]))}catch{return new ca(599,"BAD REQUEST (invalid data: URI)",{},null,new ai(u))}}function Hz(u){async function e(t,n){try{const r=t.match(KP0);if(!r)throw new Error("invalid link");return new ai(`${u}${r[2]}`)}catch{return new ca(599,"BAD REQUEST (invalid IPFS URI)",{},null,new ai(t))}}return e}const Z6={data:qz,ipfs:Hz("https://gateway.ipfs.io/ipfs/")},Gz=new WeakMap;var io,Ni;class QP0{constructor(e){a0(this,io,void 0);a0(this,Ni,void 0);M(this,io,[]),M(this,Ni,!1),Gz.set(e,()=>{if(!k(this,Ni)){M(this,Ni,!0);for(const t of k(this,io))setTimeout(()=>{t()},0);M(this,io,[])}})}addListener(e){E0(!k(this,Ni),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),k(this,io).push(e)}get cancelled(){return k(this,Ni)}checkSignal(){E0(!this.cancelled,"cancelled","CANCELLED",{})}}io=new WeakMap,Ni=new WeakMap;function Y6(u){if(u==null)throw new Error("missing signal; should not happen");return u.checkSignal(),u}var Rf,Nf,kn,Pr,Mf,jf,ce,kt,Ir,ao,oo,so,ur,Or,Mi,fo,Sl;const B9=class B9{constructor(e){a0(this,fo);a0(this,Rf,void 0);a0(this,Nf,void 0);a0(this,kn,void 0);a0(this,Pr,void 0);a0(this,Mf,void 0);a0(this,jf,void 0);a0(this,ce,void 0);a0(this,kt,void 0);a0(this,Ir,void 0);a0(this,ao,void 0);a0(this,oo,void 0);a0(this,so,void 0);a0(this,ur,void 0);a0(this,Or,void 0);a0(this,Mi,void 0);M(this,jf,String(e)),M(this,Rf,!1),M(this,Nf,!0),M(this,kn,{}),M(this,Pr,""),M(this,Mf,3e5),M(this,Or,{slotInterval:GP0,maxAttempts:HP0}),M(this,Mi,null)}get url(){return k(this,jf)}set url(e){M(this,jf,String(e))}get body(){return k(this,ce)==null?null:new Uint8Array(k(this,ce))}set body(e){if(e==null)M(this,ce,void 0),M(this,kt,void 0);else if(typeof e=="string")M(this,ce,Jr(e)),M(this,kt,"text/plain");else if(e instanceof Uint8Array)M(this,ce,e),M(this,kt,"application/octet-stream");else if(typeof e=="object")M(this,ce,Jr(JSON.stringify(e))),M(this,kt,"application/json");else throw new Error("invalid body")}hasBody(){return k(this,ce)!=null}get method(){return k(this,Pr)?k(this,Pr):this.hasBody()?"POST":"GET"}set method(e){e==null&&(e=""),M(this,Pr,String(e).toUpperCase())}get headers(){const e=Object.assign({},k(this,kn));return k(this,Ir)&&(e.authorization=`Basic ${zP0(Jr(k(this,Ir)))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),e["content-type"]==null&&k(this,kt)&&(e["content-type"]=k(this,kt)),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,t){k(this,kn)[String(e).toLowerCase()]=String(t)}clearHeaders(){M(this,kn,{})}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let n=0;return{next:()=>{if(n=0,"timeout must be non-zero","timeout",e),M(this,Mf,e)}get preflightFunc(){return k(this,ao)||null}set preflightFunc(e){M(this,ao,e)}get processFunc(){return k(this,oo)||null}set processFunc(e){M(this,oo,e)}get retryFunc(){return k(this,so)||null}set retryFunc(e){M(this,so,e)}get getUrlFunc(){return k(this,Mi)||Zx}set getUrlFunc(e){M(this,Mi,e)}toString(){return``}setThrottleParams(e){e.slotInterval!=null&&(k(this,Or).slotInterval=e.slotInterval),e.maxAttempts!=null&&(k(this,Or).maxAttempts=e.maxAttempts)}send(){return E0(k(this,ur)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),M(this,ur,new QP0(this)),k0(this,fo,Sl).call(this,0,Yx()+this.timeout,0,this,new ca(0,"",{},null,this))}cancel(){E0(k(this,ur)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=Gz.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const t=this.url.split(":")[0].toLowerCase(),n=e.split(":")[0].toLowerCase();E0(this.method==="GET"&&(t!=="https"||n!=="http")&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const r=new B9(e);return r.method="GET",r.allowGzip=this.allowGzip,r.timeout=this.timeout,M(r,kn,Object.assign({},k(this,kn))),k(this,ce)&&M(r,ce,new Uint8Array(k(this,ce))),M(r,kt,k(this,kt)),r}clone(){const e=new B9(this.url);return M(e,Pr,k(this,Pr)),k(this,ce)&&M(e,ce,k(this,ce)),M(e,kt,k(this,kt)),M(e,kn,Object.assign({},k(this,kn))),M(e,Ir,k(this,Ir)),this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),M(e,ao,k(this,ao)),M(e,oo,k(this,oo)),M(e,so,k(this,so)),M(e,Mi,k(this,Mi)),e}static lockConfig(){Fh=!0}static getGateway(e){return Z6[e.toLowerCase()]||null}static registerGateway(e,t){if(e=e.toLowerCase(),e==="http"||e==="https")throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(Fh)throw new Error("gateways locked");Z6[e]=t}static registerGetUrl(e){if(Fh)throw new Error("gateways locked");Zx=e}static createGetUrlFunc(e){return Wz()}static createDataGateway(){return qz}static createIpfsGatewayFunc(e){return Hz(e)}};Rf=new WeakMap,Nf=new WeakMap,kn=new WeakMap,Pr=new WeakMap,Mf=new WeakMap,jf=new WeakMap,ce=new WeakMap,kt=new WeakMap,Ir=new WeakMap,ao=new WeakMap,oo=new WeakMap,so=new WeakMap,ur=new WeakMap,Or=new WeakMap,Mi=new WeakMap,fo=new WeakSet,Sl=async function(e,t,n,r,i){var l,c,d;if(e>=k(this,Or).maxAttempts)return i.makeServerError("exceeded maximum retry limit");E0(Yx()<=t,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:r}),n>0&&await ZP0(n);let a=this.clone();const o=(a.url.split(":")[0]||"").toLowerCase();if(o in Z6){const E=await Z6[o](a.url,Y6(k(r,ur)));if(E instanceof ca){let p=E;if(this.processFunc){Y6(k(r,ur));try{p=await this.processFunc(a,p)}catch(h){(h.throttle==null||typeof h.stall!="number")&&p.makeServerError("error in post-processing function",h).assertOk()}}return p}a=E}this.preflightFunc&&(a=await this.preflightFunc(a));const s=await this.getUrlFunc(a,Y6(k(r,ur)));let f=new ca(s.statusCode,s.statusMessage,s.headers,s.body,r);if(f.statusCode===301||f.statusCode===302){try{const E=f.headers.location||"";return k0(l=a.redirect(E),fo,Sl).call(l,e+1,t,0,r,f)}catch{}return f}else if(f.statusCode===429&&(this.retryFunc==null||await this.retryFunc(a,f,e))){const E=f.headers["retry-after"];let p=k(this,Or).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return typeof E=="string"&&E.match(/^[1-9][0-9]*$/)&&(p=parseInt(E)),k0(c=a.clone(),fo,Sl).call(c,e+1,t,p,r,f)}if(this.processFunc){Y6(k(r,ur));try{f=await this.processFunc(a,f)}catch(E){(E.throttle==null||typeof E.stall!="number")&&f.makeServerError("error in post-processing function",E).assertOk();let p=k(this,Or).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return E.stall>=0&&(p=E.stall),k0(d=a.clone(),fo,Sl).call(d,e+1,t,p,r,f)}}return f};let ai=B9;var G1,V1,K1,_n,zf,lo;const ev=class ev{constructor(e,t,n,r,i){a0(this,G1,void 0);a0(this,V1,void 0);a0(this,K1,void 0);a0(this,_n,void 0);a0(this,zf,void 0);a0(this,lo,void 0);M(this,G1,e),M(this,V1,t),M(this,K1,Object.keys(n).reduce((a,o)=>(a[o.toLowerCase()]=String(n[o]),a),{})),M(this,_n,r==null?null:new Uint8Array(r)),M(this,zf,i||null),M(this,lo,{message:""})}toString(){return``}get statusCode(){return k(this,G1)}get statusMessage(){return k(this,V1)}get headers(){return Object.assign({},k(this,K1))}get body(){return k(this,_n)==null?null:new Uint8Array(k(this,_n))}get bodyText(){try{return k(this,_n)==null?"":Oy(k(this,_n))}catch{E0(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch{E0(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let n=0;return{next:()=>{if(n=0,"invalid stall timeout","stall",t);const n=new Error(e||"throttling requests");throw U0(n,{stall:t,throttle:!0}),n}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return k(this,_n)!=null}get request(){return k(this,zf)}ok(){return k(this,lo).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:t}=k(this,lo);e===""&&(e=`server response ${this.statusCode} ${this.statusMessage}`),E0(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:t})}};G1=new WeakMap,V1=new WeakMap,K1=new WeakMap,_n=new WeakMap,zf=new WeakMap,lo=new WeakMap;let ca=ev;function Yx(){return new Date().getTime()}function JP0(u){return Jr(u.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))}function ZP0(u){return new Promise(e=>setTimeout(e,u))}function YP0(u){let e=u.toString(16);for(;e.length<2;)e="0"+e;return"0x"+e}function Xx(u,e,t){let n=0;for(let r=0;r{E0(n<=u.length,"data short segment too short","BUFFER_OVERRUN",{buffer:u,length:u.length,offset:n})};if(u[e]>=248){const n=u[e]-247;t(e+1+n);const r=Xx(u,e+1,n);return t(e+1+n+r),uk(u,e,e+1+n,n+r)}else if(u[e]>=192){const n=u[e]-192;return t(e+1+n),uk(u,e,e+1,n)}else if(u[e]>=184){const n=u[e]-183;t(e+1+n);const r=Xx(u,e+1,n);t(e+1+n+r);const i=M0(u.slice(e+1+n,e+1+n+r));return{consumed:1+n+r,result:i}}else if(u[e]>=128){const n=u[e]-128;t(e+1+n);const r=M0(u.slice(e+1,e+1+n));return{consumed:1+n,result:r}}return{consumed:1,result:YP0(u[e])}}function Ry(u){const e=cu(u,"data"),t=Vz(e,0);return e0(t.consumed===e.length,"unexpected junk after rlp payload","data",u),t.result}function ek(u){const e=[];for(;u;)e.unshift(u&255),u>>=8;return e}function Kz(u){if(Array.isArray(u)){let n=[];if(u.forEach(function(i){n=n.concat(Kz(i))}),n.length<=55)return n.unshift(192+n.length),n;const r=ek(n.length);return r.unshift(247+r.length),r.concat(n)}const e=Array.prototype.slice.call(cu(u,"object"));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const t=ek(e.length);return t.unshift(183+t.length),t.concat(e)}const tk="0123456789abcdef";function N1(u){let e="0x";for(const t of Kz(u))e+=tk[t>>4],e+=tk[t&15];return e}const Ve=32,tm=new Uint8Array(Ve),XP0=["then"],X6={};function Cl(u,e){const t=new Error(`deferred error during ABI decoding triggered accessing ${u}`);throw t.error=e,t}var ji;const u1=class u1 extends Array{constructor(...t){const n=t[0];let r=t[1],i=(t[2]||[]).slice(),a=!0;n!==X6&&(r=t,i=[],a=!1);super(r.length);a0(this,ji,void 0);r.forEach((s,f)=>{this[f]=s});const o=i.reduce((s,f)=>(typeof f=="string"&&s.set(f,(s.get(f)||0)+1),s),new Map);if(M(this,ji,Object.freeze(r.map((s,f)=>{const l=i[f];return l!=null&&o.get(l)===1?l:null}))),!!a)return Object.freeze(this),new Proxy(this,{get:(s,f,l)=>{if(typeof f=="string"){if(f.match(/^[0-9]+$/)){const d=Z0(f,"%index");if(d<0||d>=this.length)throw new RangeError("out of result range");const E=s[d];return E instanceof Error&&Cl(`index ${d}`,E),E}if(XP0.indexOf(f)>=0)return Reflect.get(s,f,l);const c=s[f];if(c instanceof Function)return function(...d){return c.apply(this===l?s:this,d)};if(!(f in s))return s.getValue.apply(this===l?s:this,[f])}return Reflect.get(s,f,l)}})}toArray(){const t=[];return this.forEach((n,r)=>{n instanceof Error&&Cl(`index ${r}`,n),t.push(n)}),t}toObject(){return k(this,ji).reduce((t,n,r)=>(E0(n!=null,"value at index ${ index } unnamed","UNSUPPORTED_OPERATION",{operation:"toObject()"}),n in t||(t[n]=this.getValue(n)),t),{})}slice(t,n){t==null&&(t=0),t<0&&(t+=this.length,t<0&&(t=0)),n==null&&(n=this.length),n<0&&(n+=this.length,n<0&&(n=0)),n>this.length&&(n=this.length);const r=[],i=[];for(let a=t;a{k(this,Rr)[e]=nk(t)}}}Rr=new WeakMap,co=new WeakMap,Lf=new WeakSet,k5=function(e){return k(this,Rr).push(e),M(this,co,k(this,co)+e.length),e.length};var _t,Zt,F9,Qz;const tv=class tv{constructor(e,t){a0(this,F9);r0(this,"allowLoose");a0(this,_t,void 0);a0(this,Zt,void 0);U0(this,{allowLoose:!!t}),M(this,_t,dt(e)),M(this,Zt,0)}get data(){return M0(k(this,_t))}get dataLength(){return k(this,_t).length}get consumed(){return k(this,Zt)}get bytes(){return new Uint8Array(k(this,_t))}subReader(e){return new tv(k(this,_t).slice(k(this,Zt)+e),this.allowLoose)}readBytes(e,t){let n=k0(this,F9,Qz).call(this,0,e,!!t);return M(this,Zt,k(this,Zt)+n.length),n.slice(0,e)}readValue(){return Iy(this.readBytes(Ve))}readIndex(){return RP0(this.readBytes(Ve))}};_t=new WeakMap,Zt=new WeakMap,F9=new WeakSet,Qz=function(e,t,n){let r=Math.ceil(t/Ve)*Ve;return k(this,Zt)+r>k(this,_t).length&&(this.allowLoose&&n&&k(this,Zt)+t<=k(this,_t).length?r=t:E0(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:dt(k(this,_t)),length:k(this,_t).length,offset:k(this,Zt)+r})),k(this,_t).slice(k(this,Zt),k(this,Zt)+r)};let rm=tv,Jz=!1;const Zz=function(u){return ZI(u)};let Yz=Zz;function Ou(u){const e=cu(u,"data");return M0(Yz(e))}Ou._=Zz;Ou.lock=function(){Jz=!0};Ou.register=function(u){if(Jz)throw new TypeError("keccak256 is locked");Yz=u};Object.freeze(Ou);const im="0x0000000000000000000000000000000000000000",rk="0x0000000000000000000000000000000000000000000000000000000000000000",ik=BigInt(0),ak=BigInt(1),ok=BigInt(2),sk=BigInt(27),fk=BigInt(28),u5=BigInt(35),Os={};function lk(u){return Yo(jt(u),32)}var $f,Uf,Wf,Eo;const wn=class wn{constructor(e,t,n,r){a0(this,$f,void 0);a0(this,Uf,void 0);a0(this,Wf,void 0);a0(this,Eo,void 0);vp(e,Os,"Signature"),M(this,$f,t),M(this,Uf,n),M(this,Wf,r),M(this,Eo,null)}get r(){return k(this,$f)}set r(e){e0(Pf(e)===32,"invalid r","value",e),M(this,$f,M0(e))}get s(){return k(this,Uf)}set s(e){e0(Pf(e)===32,"invalid s","value",e);const t=M0(e);e0(parseInt(t.substring(0,3))<8,"non-canonical s","value",t),M(this,Uf,t)}get v(){return k(this,Wf)}set v(e){const t=Z0(e,"value");e0(t===27||t===28,"invalid v","v",e),M(this,Wf,t)}get networkV(){return k(this,Eo)}get legacyChainId(){const e=this.networkV;return e==null?null:wn.getChainId(e)}get yParity(){return this.v===27?0:1}get yParityAndS(){const e=cu(this.s);return this.yParity&&(e[0]|=128),M0(e)}get compactSerialized(){return fe([this.r,this.yParityAndS])}get serialized(){return fe([this.r,this.s,this.yParity?"0x1c":"0x1b"])}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const e=new wn(Os,this.r,this.s,this.v);return this.networkV&&M(e,Eo,this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:e!=null?e.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(e){const t=j0(e,"v");return t==sk||t==fk?ik:(e0(t>=u5,"invalid EIP-155 v","v",e),(t-u5)/ok)}static getChainIdV(e,t){return j0(e)*ok+BigInt(35+t-27)}static getNormalizedV(e){const t=j0(e);return t===ik||t===sk?27:t===ak||t===fk?28:(e0(t>=u5,"invalid v","v",e),t&ak?27:28)}static from(e){function t(f,l){e0(f,l,"signature",e)}if(e==null)return new wn(Os,rk,rk,27);if(typeof e=="string"){const f=cu(e,"signature");if(f.length===64){const l=M0(f.slice(0,32)),c=f.slice(32,64),d=c[0]&128?28:27;return c[0]&=127,new wn(Os,l,M0(c),d)}if(f.length===65){const l=M0(f.slice(0,32)),c=f.slice(32,64);t((c[0]&128)===0,"non-canonical s");const d=wn.getNormalizedV(f[64]);return new wn(Os,l,M0(c),d)}t(!1,"invalid raw signature length")}if(e instanceof wn)return e.clone();const n=e.r;t(n!=null,"missing r");const r=lk(n),i=function(f,l){if(f!=null)return lk(f);if(l!=null){t(Nu(l,32),"invalid yParityAndS");const c=cu(l);return c[0]&=127,M0(c)}t(!1,"missing s")}(e.s,e.yParityAndS);t((cu(i)[0]&128)==0,"non-canonical s");const{networkV:a,v:o}=function(f,l,c){if(f!=null){const d=j0(f);return{networkV:d>=u5?d:void 0,v:wn.getNormalizedV(d)}}if(l!=null)return t(Nu(l,32),"invalid yParityAndS"),{v:cu(l)[0]&128?28:27};if(c!=null){switch(Z0(c,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}t(!1,"invalid yParity")}t(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),s=new wn(Os,r,i,o);return a&&M(s,Eo,a),t(e.yParity==null||Z0(e.yParity,"sig.yParity")===s.yParity,"yParity mismatch"),t(e.yParityAndS==null||e.yParityAndS===s.yParityAndS,"yParityAndS mismatch"),s}};$f=new WeakMap,Uf=new WeakMap,Wf=new WeakMap,Eo=new WeakMap;let Hn=wn;var Nr;const Ka=class Ka{constructor(e){a0(this,Nr,void 0);e0(Pf(e)===32,"invalid private key","privateKey","[REDACTED]"),M(this,Nr,M0(e))}get privateKey(){return k(this,Nr)}get publicKey(){return Ka.computePublicKey(k(this,Nr))}get compressedPublicKey(){return Ka.computePublicKey(k(this,Nr),!0)}sign(e){e0(Pf(e)===32,"invalid digest length","digest",e);const t=Ne.sign(dt(e),dt(k(this,Nr)),{lowS:!0});return Hn.from({r:ya(t.r,32),s:ya(t.s,32),v:t.recovery?28:27})}computeSharedSecret(e){const t=Ka.computePublicKey(e);return M0(Ne.getSharedSecret(dt(k(this,Nr)),cu(t),!1))}static computePublicKey(e,t){let n=cu(e,"key");if(n.length===32){const i=Ne.getPublicKey(n,!!t);return M0(i)}if(n.length===64){const i=new Uint8Array(65);i[0]=4,i.set(n,1),n=i}const r=Ne.ProjectivePoint.fromHex(n);return M0(r.toRawBytes(t))}static recoverPublicKey(e,t){e0(Pf(e)===32,"invalid digest length","digest",e);const n=Hn.from(t);let r=Ne.Signature.fromCompact(dt(fe([n.r,n.s])));r=r.addRecoveryBit(n.yParity);const i=r.recoverPublicKey(dt(e));return e0(i!=null,"invalid signautre for digest","signature",t),"0x"+i.toHex(!1)}static addPoints(e,t,n){const r=Ne.ProjectivePoint.fromHex(Ka.computePublicKey(e).substring(2)),i=Ne.ProjectivePoint.fromHex(Ka.computePublicKey(t).substring(2));return"0x"+r.add(i).toHex(!!n)}};Nr=new WeakMap;let M1=Ka;const uI0=BigInt(0),eI0=BigInt(36);function ck(u){u=u.toLowerCase();const e=u.substring(2).split(""),t=new Uint8Array(40);for(let r=0;r<40;r++)t[r]=e[r].charCodeAt(0);const n=cu(Ou(t));for(let r=0;r<40;r+=2)n[r>>1]>>4>=8&&(e[r]=e[r].toUpperCase()),(n[r>>1]&15)>=8&&(e[r+1]=e[r+1].toUpperCase());return"0x"+e.join("")}const Ny={};for(let u=0;u<10;u++)Ny[String(u)]=String(u);for(let u=0;u<26;u++)Ny[String.fromCharCode(65+u)]=String(10+u);const dk=15;function tI0(u){u=u.toUpperCase(),u=u.substring(4)+u.substring(0,2)+"00";let e=u.split("").map(n=>Ny[n]).join("");for(;e.length>=dk;){let n=e.substring(0,dk);e=parseInt(n,10)%97+e.substring(n.length)}let t=String(98-parseInt(e,10)%97);for(;t.length<2;)t="0"+t;return t}const nI0=function(){const u={};for(let e=0;e<36;e++){const t="0123456789abcdefghijklmnopqrstuvwxyz"[e];u[t]=BigInt(e)}return u}();function rI0(u){u=u.toLowerCase();let e=uI0;for(let t=0;te.format()).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return k(this,po)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return k(this,po)===!0?-1:k(this,po)===!1?this.value.length:null}static from(e,t){return new _r(kr,e,t)}static uint8(e){return S0(e,8)}static uint16(e){return S0(e,16)}static uint24(e){return S0(e,24)}static uint32(e){return S0(e,32)}static uint40(e){return S0(e,40)}static uint48(e){return S0(e,48)}static uint56(e){return S0(e,56)}static uint64(e){return S0(e,64)}static uint72(e){return S0(e,72)}static uint80(e){return S0(e,80)}static uint88(e){return S0(e,88)}static uint96(e){return S0(e,96)}static uint104(e){return S0(e,104)}static uint112(e){return S0(e,112)}static uint120(e){return S0(e,120)}static uint128(e){return S0(e,128)}static uint136(e){return S0(e,136)}static uint144(e){return S0(e,144)}static uint152(e){return S0(e,152)}static uint160(e){return S0(e,160)}static uint168(e){return S0(e,168)}static uint176(e){return S0(e,176)}static uint184(e){return S0(e,184)}static uint192(e){return S0(e,192)}static uint200(e){return S0(e,200)}static uint208(e){return S0(e,208)}static uint216(e){return S0(e,216)}static uint224(e){return S0(e,224)}static uint232(e){return S0(e,232)}static uint240(e){return S0(e,240)}static uint248(e){return S0(e,248)}static uint256(e){return S0(e,256)}static uint(e){return S0(e,256)}static int8(e){return S0(e,-8)}static int16(e){return S0(e,-16)}static int24(e){return S0(e,-24)}static int32(e){return S0(e,-32)}static int40(e){return S0(e,-40)}static int48(e){return S0(e,-48)}static int56(e){return S0(e,-56)}static int64(e){return S0(e,-64)}static int72(e){return S0(e,-72)}static int80(e){return S0(e,-80)}static int88(e){return S0(e,-88)}static int96(e){return S0(e,-96)}static int104(e){return S0(e,-104)}static int112(e){return S0(e,-112)}static int120(e){return S0(e,-120)}static int128(e){return S0(e,-128)}static int136(e){return S0(e,-136)}static int144(e){return S0(e,-144)}static int152(e){return S0(e,-152)}static int160(e){return S0(e,-160)}static int168(e){return S0(e,-168)}static int176(e){return S0(e,-176)}static int184(e){return S0(e,-184)}static int192(e){return S0(e,-192)}static int200(e){return S0(e,-200)}static int208(e){return S0(e,-208)}static int216(e){return S0(e,-216)}static int224(e){return S0(e,-224)}static int232(e){return S0(e,-232)}static int240(e){return S0(e,-240)}static int248(e){return S0(e,-248)}static int256(e){return S0(e,-256)}static int(e){return S0(e,-256)}static bytes1(e){return iu(e,1)}static bytes2(e){return iu(e,2)}static bytes3(e){return iu(e,3)}static bytes4(e){return iu(e,4)}static bytes5(e){return iu(e,5)}static bytes6(e){return iu(e,6)}static bytes7(e){return iu(e,7)}static bytes8(e){return iu(e,8)}static bytes9(e){return iu(e,9)}static bytes10(e){return iu(e,10)}static bytes11(e){return iu(e,11)}static bytes12(e){return iu(e,12)}static bytes13(e){return iu(e,13)}static bytes14(e){return iu(e,14)}static bytes15(e){return iu(e,15)}static bytes16(e){return iu(e,16)}static bytes17(e){return iu(e,17)}static bytes18(e){return iu(e,18)}static bytes19(e){return iu(e,19)}static bytes20(e){return iu(e,20)}static bytes21(e){return iu(e,21)}static bytes22(e){return iu(e,22)}static bytes23(e){return iu(e,23)}static bytes24(e){return iu(e,24)}static bytes25(e){return iu(e,25)}static bytes26(e){return iu(e,26)}static bytes27(e){return iu(e,27)}static bytes28(e){return iu(e,28)}static bytes29(e){return iu(e,29)}static bytes30(e){return iu(e,30)}static bytes31(e){return iu(e,31)}static bytes32(e){return iu(e,32)}static address(e){return new _r(kr,"address",e)}static bool(e){return new _r(kr,"bool",!!e)}static bytes(e){return new _r(kr,"bytes",e)}static string(e){return new _r(kr,"string",e)}static array(e,t){throw new Error("not implemented yet")}static tuple(e,t){throw new Error("not implemented yet")}static overrides(e){return new _r(kr,"overrides",Object.assign({},e))}static isTyped(e){return e&&typeof e=="object"&&"_typedSymbol"in e&&e._typedSymbol===Ek}static dereference(e,t){if(_r.isTyped(e)){if(e.type!==t)throw new Error(`invalid type: expecetd ${t}, got ${e.type}`);return e.value}return e}};po=new WeakMap;let Le=_r;class aI0 extends bi{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){let n=Le.dereference(t,"string");try{n=su(n)}catch(r){return this._throwError(r.message,t)}return e.writeValue(n)}decode(e){return su(ya(e.readValue(),20))}}class oI0 extends bi{constructor(t){super(t.name,t.type,"_",t.dynamic);r0(this,"coder");this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,n){return this.coder.encode(t,n)}decode(t){return this.coder.decode(t)}}function uL(u,e,t){let n=[];if(Array.isArray(t))n=t;else if(t&&typeof t=="object"){let s={};n=e.map(f=>{const l=f.localName;return E0(l,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:f},value:t}),E0(!s[l],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:f},value:t}),s[l]=!0,t[l]})}else e0(!1,"invalid tuple value","tuple",t);e0(e.length===n.length,"types/value length mismatch","tuple",t);let r=new nm,i=new nm,a=[];e.forEach((s,f)=>{let l=n[f];if(s.dynamic){let c=i.length;s.encode(i,l);let d=r.writeUpdatableValue();a.push(E=>{d(E+c)})}else s.encode(r,l)}),a.forEach(s=>{s(r.length)});let o=u.appendWriter(r);return o+=u.appendWriter(i),o}function eL(u,e){let t=[],n=[],r=u.subReader(0);return e.forEach(i=>{let a=null;if(i.dynamic){let o=u.readIndex(),s=r.subReader(o);try{a=i.decode(s)}catch(f){if(ln(f,"BUFFER_OVERRUN"))throw f;a=f,a.baseType=i.name,a.name=i.localName,a.type=i.type}}else try{a=i.decode(u)}catch(o){if(ln(o,"BUFFER_OVERRUN"))throw o;a=o,a.baseType=i.name,a.name=i.localName,a.type=i.type}if(a==null)throw new Error("investigate");t.push(a),n.push(i.localName||null)}),d9.fromItems(t,n)}class sI0 extends bi{constructor(t,n,r){const i=t.type+"["+(n>=0?n:"")+"]",a=n===-1||t.dynamic;super("array",i,r,a);r0(this,"coder");r0(this,"length");U0(this,{coder:t,length:n})}defaultValue(){const t=this.coder.defaultValue(),n=[];for(let r=0;ra||r<-(a+hI0))&&this._throwError("value out-of-bounds",n),r=Lz(r,8*Ve)}else(r_l(i,this.size*8))&&this._throwError("value out-of-bounds",n);return t.writeValue(r)}decode(t){let n=_l(t.readValue(),this.size*8);return this.signed&&(n=OP0(n,this.size*8)),n}}class bI0 extends tL{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,Jr(Le.dereference(t,"string")))}decode(e){return Oy(super.decode(e))}}class e5 extends bi{constructor(t,n){let r=!1;const i=[];t.forEach(o=>{o.dynamic&&(r=!0),i.push(o.type)});const a="tuple("+i.join(",")+")";super("tuple",a,n,r);r0(this,"coders");U0(this,{coders:Object.freeze(t.slice())})}defaultValue(){const t=[];this.coders.forEach(r=>{t.push(r.defaultValue())});const n=this.coders.reduce((r,i)=>{const a=i.localName;return a&&(r[a]||(r[a]=0),r[a]++),r},{});return this.coders.forEach((r,i)=>{let a=r.localName;!a||n[a]!==1||(a==="length"&&(a="_length"),t[a]==null&&(t[a]=t[i]))}),Object.freeze(t)}encode(t,n){const r=Le.dereference(n,"tuple");return uL(t,this.coders,r)}decode(t){return eL(t,this.coders)}}function va(u){return Ou(Jr(u))}var gI0="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const pk=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),hk=4;function AI0(u){let e=0;function t(){return u[e++]<<8|u[e++]}let n=t(),r=1,i=[0,1];for(let B=1;B>--s&1}const c=31,d=2**c,E=d>>>1,p=E>>1,h=d-1;let g=0;for(let B=0;B1;){let x=v+C>>>1;B>>1|l(),D=D<<1^E,S=(S^E)<<1|E|1;m=D,A=1+S-D}let y=n-4;return b.map(B=>{switch(B-y){case 3:return y+65792+(u[o++]<<16|u[o++]<<8|u[o++]);case 2:return y+256+(u[o++]<<8|u[o++]);case 1:return y+u[o++];default:return B-1}})}function yI0(u){let e=0;return()=>u[e++]}function nL(u){return yI0(AI0(vI0(u)))}function vI0(u){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((r,i)=>e[r.charCodeAt(0)]=i);let t=u.length,n=new Uint8Array(6*t>>3);for(let r=0,i=0,a=0,o=0;r=8&&(n[i++]=o>>(a-=8));return n}function BI0(u){return u&1?~u>>1:u>>1}function FI0(u,e){let t=Array(u);for(let n=0,r=0;n{let e=j1(u);if(e.length)return e})}function iL(u){let e=[];for(;;){let t=u();if(t==0)break;e.push(DI0(t,u))}for(;;){let t=u()-1;if(t<0)break;e.push(wI0(t,u))}return e.flat()}function z1(u){let e=[];for(;;){let t=u(e.length);if(!t)break;e.push(t)}return e}function aL(u,e,t){let n=Array(u).fill().map(()=>[]);for(let r=0;rn[a].push(i));return n}function DI0(u,e){let t=1+e(),n=e(),r=z1(e);return aL(r.length,1+u,e).flatMap((a,o)=>{let[s,...f]=a;return Array(r[o]).fill().map((l,c)=>{let d=c*n;return[s+c*t,f.map(E=>E+d)]})})}function wI0(u,e){let t=1+e();return aL(t,1+u,e).map(r=>[r[0],r.slice(1)])}function xI0(u){let e=[],t=j1(u);return r(n([]),[]),e;function n(i){let a=u(),o=z1(()=>{let s=j1(u).map(f=>t[f]);if(s.length)return n(s)});return{S:a,B:o,Q:i}}function r({S:i,B:a},o,s){if(!(i&4&&s===o[o.length-1])){i&2&&(s=o[o.length-1]),i&1&&e.push(o);for(let f of a)for(let l of f.Q)r(f,[...o,l],s)}}}function kI0(u){return u.toString(16).toUpperCase().padStart(2,"0")}function oL(u){return`{${kI0(u)}}`}function _I0(u){let e=[];for(let t=0,n=u.length;t>24&255}function lL(u){return u&16777215}let am,Ck,om,_5;function MI0(){let u=nL(TI0);am=new Map(rL(u).flatMap((e,t)=>e.map(n=>[n,t+1<<24]))),Ck=new Set(j1(u)),om=new Map,_5=new Map;for(let[e,t]of iL(u)){if(!Ck.has(e)&&t.length==2){let[n,r]=t,i=_5.get(n);i||(i=new Map,_5.set(n,i)),i.set(r,e)}om.set(e,t.reverse())}}function cL(u){return u>=L1&&u=E9&&u=p9&&eh9&&e0&&r(h9+f)}else{let a=om.get(i);a?t.push(...a):r(i)}if(!t.length)break;i=t.pop()}if(n&&e.length>1){let i=Tl(e[0]);for(let a=1;a0&&r>=a)a==0?(e.push(n,...t),t.length=0,n=o):t.push(o),r=a;else{let s=jI0(n,o);s>=0?n=s:r==0&&a==0?(e.push(n),n=o):(t.push(o),r=a)}}return n>=0&&e.push(n,...t),e}function EL(u){return dL(u).map(lL)}function LI0(u){return zI0(dL(u))}const mk=45,pL=".",hL=65039,CL=1,Cf=u=>Array.from(u);function $1(u,e){return u.P.has(e)||u.Q.has(e)}class $I0 extends Array{get is_emoji(){return!0}}let sm,mL,no,fm,bL,If,wh,qs,gL,bk,lm;function My(){if(sm)return;let u=nL(gI0);const e=()=>j1(u),t=()=>new Set(e());sm=new Map(iL(u)),mL=t(),no=e(),fm=new Set(e().map(l=>no[l])),no=new Set(no),bL=t(),t();let n=rL(u),r=u();const i=()=>new Set(e().flatMap(l=>n[l]).concat(e()));If=z1(l=>{let c=z1(u).map(d=>d+96);if(c.length){let d=l>=r;c[0]-=32,c=i3(c),d&&(c=`Restricted[${c}]`);let E=i(),p=i(),h=!u();return{N:c,P:E,Q:p,M:h,R:d}}}),wh=t(),qs=new Map;let a=e().concat(Cf(wh)).sort((l,c)=>l-c);a.forEach((l,c)=>{let d=u(),E=a[c]=d?a[c-d]:{V:[],M:new Map};E.V.push(l),wh.has(l)||qs.set(l,E)});for(let{V:l,M:c}of new Set(qs.values())){let d=[];for(let p of l){let h=If.filter(b=>$1(b,p)),g=d.find(({G:b})=>h.some(m=>b.has(m)));g||(g={G:new Set,V:[]},d.push(g)),g.V.push(p),h.forEach(b=>g.G.add(b))}let E=d.flatMap(p=>Cf(p.G));for(let{G:p,V:h}of d){let g=new Set(E.filter(b=>!p.has(b)));for(let b of h)c.set(b,g)}}let o=new Set,s=new Set;const f=l=>o.has(l)?s.add(l):o.add(l);for(let l of If){for(let c of l.P)f(c);for(let c of l.Q)f(c)}for(let l of o)!qs.has(l)&&!s.has(l)&&qs.set(l,CL);gL=new Set(Cf(o).concat(Cf(EL(o)))),bk=xI0(u).map(l=>$I0.from(l)).sort(SI0),lm=new Map;for(let l of bk){let c=[lm];for(let d of l){let E=c.map(p=>{let h=p.get(d);return h||(h=new Map,p.set(d,h)),h});d===hL?c.push(...E):c=E}for(let d of c)d.V=l}}function jy(u){return(AL(u)?"":`${zy(Dp([u]))} `)+oL(u)}function zy(u){return`"${u}"‎`}function UI0(u){if(u.length>=4&&u[2]==mk&&u[3]==mk)throw new Error(`invalid label extension: "${i3(u.slice(0,4))}"`)}function WI0(u){for(let t=u.lastIndexOf(95);t>0;)if(u[--t]!==95)throw new Error("underscore allowed only at start")}function qI0(u){let e=u[0],t=pk.get(e);if(t)throw Yl(`leading ${t}`);let n=u.length,r=-1;for(let i=1;i{let i=_I0(r),a={input:i,offset:n};n+=i.length+1;try{let o=a.tokens=YI0(i,e,t),s=o.length,f;if(!s)throw new Error("empty label");let l=a.output=o.flat();if(WI0(l),!(a.emoji=s>1||o[0].is_emoji)&&l.every(d=>d<128))UI0(l),f="ASCII";else{let d=o.flatMap(E=>E.is_emoji?[]:E);if(!d.length)f="Emoji";else{if(no.has(l[0]))throw Yl("leading combining mark");for(let h=1;ha.has(o)):Cf(a),!t.length)return}else n.push(r)}if(t){for(let r of t)if(n.every(i=>$1(r,i)))throw new Error(`whole-script confusable: ${u.N}/${r.N}`)}}function QI0(u){let e=If;for(let t of u){let n=e.filter(r=>$1(r,t));if(!n.length)throw If.some(r=>$1(r,t))?vL(e[0],t):yL(t);if(e=n,n.length==1)break}return e}function JI0(u){return u.map(({input:e,error:t,output:n})=>{if(t){let r=t.message;throw new Error(u.length==1?r:`Invalid label ${zy(Dp(e))}: ${r}`)}return i3(n)}).join(pL)}function yL(u){return new Error(`disallowed character: ${jy(u)}`)}function vL(u,e){let t=jy(e),n=If.find(r=>r.P.has(e));return n&&(t=`${n.N} ${t}`),new Error(`illegal mixture: ${u.N} + ${t}`)}function Yl(u){return new Error(`illegal placement: ${u}`)}function ZI0(u,e){for(let t of e)if(!$1(u,t))throw vL(u,t);if(u.M){let t=EL(e);for(let n=1,r=t.length;nhk)throw new Error(`excessive non-spacing marks: ${zy(Dp(t.slice(n-1,i)))} (${i-n}/${hk})`);n=i}}}function YI0(u,e,t){let n=[],r=[];for(u=u.slice().reverse();u.length;){let i=uO0(u);if(i)r.length&&(n.push(e(r)),r=[]),n.push(t(i));else{let a=u.pop();if(gL.has(a))r.push(a);else{let o=sm.get(a);if(o)r.push(...o);else if(!mL.has(a))throw yL(a)}}}return r.length&&n.push(e(r)),n}function XI0(u){return u.filter(e=>e!=hL)}function uO0(u,e){let t=lm,n,r=u.length;for(;r&&(t=t.get(u[--r]),!!t);){let{V:i}=t;i&&(n=i,e&&e.push(...u.slice(r).reverse()),u.length=r)}return n}const BL=new Uint8Array(32);BL.fill(0);function gk(u){return e0(u.length!==0,"invalid ENS name; empty component","comp",u),u}function FL(u){const e=Jr(eO0(u)),t=[];if(u.length===0)return t;let n=0;for(let r=0;r{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+"00"}function xh(u,e){return{address:su(u),storageKeys:e.map((t,n)=>(e0(Nu(t,32),"invalid slot",`storageKeys[${n}]`,t),t.toLowerCase()))}}function As(u){if(Array.isArray(u))return u.map((t,n)=>Array.isArray(t)?(e0(t.length===2,"invalid slot set",`value[${n}]`,t),xh(t[0],t[1])):(e0(t!=null&&typeof t=="object","invalid address-slot set","value",u),xh(t.address,t.storageKeys)));e0(u!=null&&typeof u=="object","invalid access list","value",u);const e=Object.keys(u).map(t=>{const n=u[t].reduce((r,i)=>(r[i]=!0,r),{});return xh(t,Object.keys(n).sort())});return e.sort((t,n)=>t.address.localeCompare(n.address)),e}function nO0(u){let e;return typeof u=="string"?e=M1.computePublicKey(u,!1):e=u.publicKey,su(Ou("0x"+e.substring(4)).substring(26))}function rO0(u,e){return nO0(M1.recoverPublicKey(u,e))}const lt=BigInt(0),iO0=BigInt(2),aO0=BigInt(27),oO0=BigInt(28),sO0=BigInt(35),fO0=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Ly(u){return u==="0x"?null:su(u)}function DL(u,e){try{return As(u)}catch(t){e0(!1,t.message,e,u)}}function wp(u,e){return u==="0x"?0:Z0(u,e)}function He(u,e){if(u==="0x")return lt;const t=j0(u,e);return e0(t<=fO0,"value exceeds uint size",e,t),t}function ve(u,e){const t=j0(u,"value"),n=jt(t);return e0(n.length<=32,"value too large",`tx.${e}`,t),n}function wL(u){return As(u).map(e=>[e.address,e.storageKeys])}function lO0(u){const e=Ry(u);e0(Array.isArray(e)&&(e.length===9||e.length===6),"invalid field count for legacy transaction","data",u);const t={type:0,nonce:wp(e[0],"nonce"),gasPrice:He(e[1],"gasPrice"),gasLimit:He(e[2],"gasLimit"),to:Ly(e[3]),value:He(e[4],"value"),data:M0(e[5]),chainId:lt};if(e.length===6)return t;const n=He(e[6],"v"),r=He(e[7],"r"),i=He(e[8],"s");if(r===lt&&i===lt)t.chainId=n;else{let a=(n-sO0)/iO0;a=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),E0(!t||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),E0(this.type!==0||!n,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const r=[];return this.type!=null?r.push(this.type):t?r.push(2):e?(r.push(1),n||r.push(0)):n?(r.push(1),r.push(2)):(r.push(0),r.push(1),r.push(2)),r.sort(),r}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}clone(){return Ti.from(this)}toJSON(){const e=t=>t==null?null:t.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(e==null)return new Ti;if(typeof e=="string"){const n=cu(e);if(n[0]>=127)return Ti.from(lO0(n));switch(n[0]){case 1:return Ti.from(dO0(n));case 2:return Ti.from(cO0(n))}E0(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const t=new Ti;return e.type!=null&&(t.type=e.type),e.to!=null&&(t.to=e.to),e.nonce!=null&&(t.nonce=e.nonce),e.gasLimit!=null&&(t.gasLimit=e.gasLimit),e.gasPrice!=null&&(t.gasPrice=e.gasPrice),e.maxPriorityFeePerGas!=null&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas),e.maxFeePerGas!=null&&(t.maxFeePerGas=e.maxFeePerGas),e.data!=null&&(t.data=e.data),e.value!=null&&(t.value=e.value),e.chainId!=null&&(t.chainId=e.chainId),e.signature!=null&&(t.signature=Hn.from(e.signature)),e.accessList!=null&&(t.accessList=e.accessList),e.hash!=null&&(e0(t.isSigned(),"unsigned transaction cannot define hash","tx",e),e0(t.hash===e.hash,"hash mismatch","tx",e)),e.from!=null&&(e0(t.isSigned(),"unsigned transaction cannot define from","tx",e),e0(t.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),t}};Mr=new WeakMap,qf=new WeakMap,Hf=new WeakMap,Gf=new WeakMap,Vf=new WeakMap,Kf=new WeakMap,Qf=new WeakMap,Jf=new WeakMap,Zf=new WeakMap,Yf=new WeakMap,Xf=new WeakMap,u4=new WeakMap;let m9=Ti;const kL=new Uint8Array(32);kL.fill(0);const EO0=BigInt(-1),_L=BigInt(0),SL=BigInt(1),pO0=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function hO0(u){const e=cu(u),t=e.length%32;return t?fe([e,kL.slice(t)]):M0(e)}const CO0=ya(SL,32),mO0=ya(_L,32),Bk={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},kh=["name","version","chainId","verifyingContract","salt"];function Fk(u){return function(e){return e0(typeof e=="string",`invalid domain value for ${JSON.stringify(u)}`,`domain.${u}`,e),e}}const bO0={name:Fk("name"),version:Fk("version"),chainId:function(u){const e=j0(u,"domain.chainId");return e0(e>=0,"invalid chain ID","domain.chainId",u),Number.isSafeInteger(e)?Number(e):hf(e)},verifyingContract:function(u){try{return su(u).toLowerCase()}catch{}e0(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",u)},salt:function(u){const e=cu(u,"domain.salt");return e0(e.length===32,'invalid domain value "salt"',"domain.salt",u),M0(e)}};function _h(u){{const e=u.match(/^(u?)int(\d*)$/);if(e){const t=e[1]==="",n=parseInt(e[2]||"256");e0(n%8===0&&n!==0&&n<=256&&(e[2]==null||e[2]===String(n)),"invalid numeric width","type",u);const r=_l(pO0,t?n-1:n),i=t?(r+SL)*EO0:_L;return function(a){const o=j0(a,"value");return e0(o>=i&&o<=r,`value out-of-bounds for ${u}`,"value",o),ya(t?Lz(o,256):o,32)}}}{const e=u.match(/^bytes(\d+)$/);if(e){const t=parseInt(e[1]);return e0(t!==0&&t<=32&&e[1]===String(t),"invalid bytes width","type",u),function(n){const r=cu(n);return e0(r.length===t,`invalid length for ${u}`,"value",n),hO0(n)}}}switch(u){case"address":return function(e){return Yo(su(e),32)};case"bool":return function(e){return e?CO0:mO0};case"bytes":return function(e){return Ou(e)};case"string":return function(e){return va(e)}}return null}function Dk(u,e){return`${u}(${e.map(({name:t,type:n})=>n+" "+t).join(",")})`}var Q1,jr,e4,D9,TL;const Kt=class Kt{constructor(e){a0(this,D9);r0(this,"primaryType");a0(this,Q1,void 0);a0(this,jr,void 0);a0(this,e4,void 0);M(this,Q1,JSON.stringify(e)),M(this,jr,new Map),M(this,e4,new Map);const t=new Map,n=new Map,r=new Map;Object.keys(e).forEach(o=>{t.set(o,new Set),n.set(o,[]),r.set(o,new Set)});for(const o in e){const s=new Set;for(const f of e[o]){e0(!s.has(f.name),`duplicate variable name ${JSON.stringify(f.name)} in ${JSON.stringify(o)}`,"types",e),s.add(f.name);const l=f.type.match(/^([^\x5b]*)(\x5b|$)/)[1]||null;e0(l!==o,`circular type reference to ${JSON.stringify(l)}`,"types",e),!_h(l)&&(e0(n.has(l),`unknown type ${JSON.stringify(l)}`,"types",e),n.get(l).push(o),t.get(o).add(l))}}const i=Array.from(n.keys()).filter(o=>n.get(o).length===0);e0(i.length!==0,"missing primary type","types",e),e0(i.length===1,`ambiguous primary types or unused types: ${i.map(o=>JSON.stringify(o)).join(", ")}`,"types",e),U0(this,{primaryType:i[0]});function a(o,s){e0(!s.has(o),`circular type reference to ${JSON.stringify(o)}`,"types",e),s.add(o);for(const f of t.get(o))if(n.has(f)){a(f,s);for(const l of s)r.get(l).add(f)}s.delete(o)}a(this.primaryType,new Set);for(const[o,s]of r){const f=Array.from(s);f.sort(),k(this,jr).set(o,Dk(o,e[o])+f.map(l=>Dk(l,e[l])).join(""))}}get types(){return JSON.parse(k(this,Q1))}getEncoder(e){let t=k(this,e4).get(e);return t||(t=k0(this,D9,TL).call(this,e),k(this,e4).set(e,t)),t}encodeType(e){const t=k(this,jr).get(e);return e0(t,`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return Ou(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,n){if(_h(e))return n(e,t);const r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r)return e0(!r[3]||parseInt(r[3])===t.length,`array length mismatch; expected length ${parseInt(r[3])}`,"value",t),t.map(a=>this._visit(r[1],a,n));const i=this.types[e];if(i)return i.reduce((a,{name:o,type:s})=>(a[o]=this._visit(s,t[o],n),a),{});e0(!1,`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new Kt(e)}static getPrimaryType(e){return Kt.from(e).primaryType}static hashStruct(e,t,n){return Kt.from(t).hashStruct(e,n)}static hashDomain(e){const t=[];for(const n in e){if(e[n]==null)continue;const r=Bk[n];e0(r,`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),t.push({name:n,type:r})}return t.sort((n,r)=>kh.indexOf(n.name)-kh.indexOf(r.name)),Kt.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,n){return fe(["0x1901",Kt.hashDomain(e),Kt.from(t).hash(n)])}static hash(e,t,n){return Ou(Kt.encode(e,t,n))}static async resolveNames(e,t,n,r){e=Object.assign({},e);for(const o in e)e[o]==null&&delete e[o];const i={};e.verifyingContract&&!Nu(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const a=Kt.from(t);a.visit(n,(o,s)=>(o==="address"&&!Nu(s,20)&&(i[s]="0x"),s));for(const o in i)i[o]=await r(o);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),n=a.visit(n,(o,s)=>o==="address"&&i[s]?i[s]:s),{domain:e,value:n}}static getPayload(e,t,n){Kt.hashDomain(e);const r={},i=[];kh.forEach(s=>{const f=e[s];f!=null&&(r[s]=bO0[s](f),i.push({name:s,type:Bk[s]}))});const a=Kt.from(t),o=Object.assign({},t);return e0(o.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",t),o.EIP712Domain=i,a.encode(n),{types:o,domain:r,primaryType:a.primaryType,message:a.visit(n,(s,f)=>{if(s.match(/^bytes(\d*)/))return M0(cu(f));if(s.match(/^u?int/))return j0(f).toString();switch(s){case"address":return f.toLowerCase();case"bool":return!!f;case"string":return e0(typeof f=="string","invalid string","value",f),f}e0(!1,"unsupported type","type",s)})}}};Q1=new WeakMap,jr=new WeakMap,e4=new WeakMap,D9=new WeakSet,TL=function(e){{const r=_h(e);if(r)return r}const t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){const r=t[1],i=this.getEncoder(r);return a=>{e0(!t[3]||parseInt(t[3])===a.length,`array length mismatch; expected length ${parseInt(t[3])}`,"value",a);let o=a.map(i);return k(this,jr).has(r)&&(o=o.map(Ou)),Ou(fe(o))}}const n=this.types[e];if(n){const r=va(k(this,jr).get(e));return i=>{const a=n.map(({name:o,type:s})=>{const f=this.getEncoder(s)(i[o]);return k(this,jr).has(s)?Ou(f):f});return a.unshift(r),fe(a)}}e0(!1,`unknown type: ${e}`,"type",e)};let b9=Kt;function Qe(u){const e=new Set;return u.forEach(t=>e.add(t)),Object.freeze(e)}const gO0="external public payable",AO0=Qe(gO0.split(" ")),PL="constant external internal payable private public pure view",yO0=Qe(PL.split(" ")),IL="constructor error event fallback function receive struct",OL=Qe(IL.split(" ")),RL="calldata memory storage payable indexed",vO0=Qe(RL.split(" ")),BO0="tuple returns",FO0=[IL,RL,BO0,PL].join(" "),DO0=Qe(FO0.split(" ")),wO0={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},xO0=new RegExp("^(\\s*)"),kO0=new RegExp("^([0-9]+)"),_O0=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),NL=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),ML=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var ge,Sn,J1,dm;const w9=class w9{constructor(e){a0(this,J1);a0(this,ge,void 0);a0(this,Sn,void 0);M(this,ge,0),M(this,Sn,e.slice())}get offset(){return k(this,ge)}get length(){return k(this,Sn).length-k(this,ge)}clone(){return new w9(k(this,Sn))}reset(){M(this,ge,0)}popKeyword(e){const t=this.peek();if(t.type!=="KEYWORD"||!e.has(t.text))throw new Error(`expected keyword ${t.text}`);return this.pop().text}popType(e){if(this.peek().type!==e)throw new Error(`expected ${e}; got ${JSON.stringify(this.peek())}`);return this.pop().text}popParen(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const t=k0(this,J1,dm).call(this,k(this,ge)+1,e.match+1);return M(this,ge,e.match+1),t}popParams(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const t=[];for(;k(this,ge)=k(this,Sn).length)throw new Error("out-of-bounds");return k(this,Sn)[k(this,ge)]}peekKeyword(e){const t=this.peekType("KEYWORD");return t!=null&&e.has(t)?t:null}peekType(e){if(this.length===0)return null;const t=this.peek();return t.type===e?t.text:null}pop(){const e=this.peek();return G3(this,ge)._++,e}toString(){const e=[];for(let t=k(this,ge);t`}};ge=new WeakMap,Sn=new WeakMap,J1=new WeakSet,dm=function(e=0,t=0){return new w9(k(this,Sn).slice(e,t).map(n=>Object.freeze(Object.assign({},n,{match:n.match-e,linkBack:n.linkBack-e,linkNext:n.linkNext-e}))))};let Gn=w9;function Pa(u){const e=[],t=a=>{const o=i0&&e[e.length-1].type==="NUMBER"){const c=e.pop().text;l=c+l,e[e.length-1].value=Z0(c)}if(e.length===0||e[e.length-1].type!=="BRACKET")throw new Error("missing opening bracket");e[e.length-1].text+=l}continue}if(o=a.match(_O0),o){if(s.text=o[1],i+=s.text.length,DO0.has(s.text)){s.type="KEYWORD";continue}if(s.text.match(ML)){s.type="TYPE";continue}s.type="ID";continue}if(o=a.match(kO0),o){s.text=o[1],s.type="NUMBER",i+=s.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(a[0])} at position ${i}`)}return new Gn(e.map(a=>Object.freeze(a)))}function wk(u,e){let t=[];for(const n in e.keys())u.has(n)&&t.push(n);if(t.length>1)throw new Error(`conflicting types: ${t.join(", ")}`)}function xp(u,e){if(e.peekKeyword(OL)){const t=e.pop().text;if(t!==u)throw new Error(`expected ${u}, got ${t}`)}return e.popType("ID")}function oi(u,e){const t=new Set;for(;;){const n=u.peekType("KEYWORD");if(n==null||e&&!e.has(n))break;if(u.pop(),t.has(n))throw new Error(`duplicate keywords: ${JSON.stringify(n)}`);t.add(n)}return Object.freeze(t)}function jL(u){let e=oi(u,yO0);return wk(e,Qe("constant payable nonpayable".split(" "))),wk(e,Qe("pure view payable nonpayable".split(" "))),e.has("view")?"view":e.has("pure")?"pure":e.has("payable")?"payable":e.has("nonpayable")?"nonpayable":e.has("constant")?"view":"nonpayable"}function Zr(u,e){return u.popParams().map(t=>Fe.from(t,e))}function zL(u){if(u.peekType("AT")){if(u.pop(),u.peekType("NUMBER"))return j0(u.pop().text);throw new Error("invalid gas")}return null}function Xo(u){if(u.length)throw new Error(`unexpected tokens: ${u.toString()}`)}const SO0=new RegExp(/^(.*)\[([0-9]*)\]$/);function xk(u){const e=u.match(ML);if(e0(e,"invalid type","type",u),u==="uint")return"uint256";if(u==="int")return"int256";if(e[2]){const t=parseInt(e[2]);e0(t!==0&&t<=32,"invalid bytes length","type",u)}else if(e[3]){const t=parseInt(e[3]);e0(t!==0&&t<=256&&t%8===0,"invalid numeric width","type",u)}return u}const Iu={},vt=Symbol.for("_ethers_internal"),kk="_ParamTypeInternal",_k="_ErrorInternal",Sk="_EventInternal",Tk="_ConstructorInternal",Pk="_FallbackInternal",Ik="_FunctionInternal",Ok="_StructInternal";var t4,S5;const Qt=class Qt{constructor(e,t,n,r,i,a,o,s){a0(this,t4);r0(this,"name");r0(this,"type");r0(this,"baseType");r0(this,"indexed");r0(this,"components");r0(this,"arrayLength");r0(this,"arrayChildren");if(vp(e,Iu,"ParamType"),Object.defineProperty(this,vt,{value:kk}),a&&(a=Object.freeze(a.slice())),r==="array"){if(o==null||s==null)throw new Error("")}else if(o!=null||s!=null)throw new Error("");if(r==="tuple"){if(a==null)throw new Error("")}else if(a!=null)throw new Error("");U0(this,{name:t,type:n,baseType:r,indexed:i,components:a,arrayLength:o,arrayChildren:s})}format(e){if(e==null&&(e="sighash"),e==="json"){const n=this.name||"";if(this.isArray()){const i=JSON.parse(this.arrayChildren.format("json"));return i.name=n,i.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(i)}const r={type:this.baseType==="tuple"?"tuple":this.type,name:n};return typeof this.indexed=="boolean"&&(r.indexed=this.indexed),this.isTuple()&&(r.components=this.components.map(i=>JSON.parse(i.format(e)))),JSON.stringify(r)}let t="";return this.isArray()?(t+=this.arrayChildren.format(e),t+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?t+="("+this.components.map(n=>n.format(e)).join(e==="full"?", ":",")+")":t+=this.type,e!=="sighash"&&(this.indexed===!0&&(t+=" indexed"),e==="full"&&this.name&&(t+=" "+this.name)),t}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(e,t){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(this.arrayLength!==-1&&e.length!==this.arrayLength)throw new Error("array is wrong length");const n=this;return e.map(r=>n.arrayChildren.walk(r,t))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const n=this;return e.map((r,i)=>n.components[i].walk(r,t))}return t(this.type,e)}async walkAsync(e,t){const n=[],r=[e];return k0(this,t4,S5).call(this,n,e,t,i=>{r[0]=i}),n.length&&await Promise.all(n),r[0]}static from(e,t){if(Qt.isParamType(e))return e;if(typeof e=="string")try{return Qt.from(Pa(e),t)}catch{e0(!1,"invalid param type","obj",e)}else if(e instanceof Gn){let o="",s="",f=null;oi(e,Qe(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(s="tuple",f=e.popParams().map(h=>Qt.from(h)),o=`tuple(${f.map(h=>h.format()).join(",")})`):(o=xk(e.popType("TYPE")),s=o);let l=null,c=null;for(;e.length&&e.peekType("BRACKET");){const h=e.pop();l=new Qt(Iu,"",o,s,null,f,c,l),c=h.value,o+=h.text,s="array",f=null}let d=null;if(oi(e,vO0).has("indexed")){if(!t)throw new Error("");d=!0}const p=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new Qt(Iu,p,o,s,d,f,c,l)}const n=e.name;e0(!n||typeof n=="string"&&n.match(NL),"invalid name","obj.name",n);let r=e.indexed;r!=null&&(e0(t,"parameter cannot be indexed","obj.indexed",e.indexed),r=!!r);let i=e.type,a=i.match(SO0);if(a){const o=parseInt(a[2]||"-1"),s=Qt.from({type:a[1],components:e.components});return new Qt(Iu,n||"",i,"array",r,null,o,s)}if(i==="tuple"||i.startsWith("tuple(")||i.startsWith("(")){const o=e.components!=null?e.components.map(f=>Qt.from(f)):null;return new Qt(Iu,n||"",i,"tuple",r,o,null,null)}return i=xk(e.type),new Qt(Iu,n||"",i,i,r,null,null,null)}static isParamType(e){return e&&e[vt]===kk}};t4=new WeakSet,S5=function(e,t,n,r){if(this.isArray()){if(!Array.isArray(t))throw new Error("invalid array value");if(this.arrayLength!==-1&&t.length!==this.arrayLength)throw new Error("array is wrong length");const a=this.arrayChildren,o=t.slice();o.forEach((s,f)=>{var l;k0(l=a,t4,S5).call(l,e,s,n,c=>{o[f]=c})}),r(o);return}if(this.isTuple()){const a=this.components;let o;if(Array.isArray(t))o=t.slice();else{if(t==null||typeof t!="object")throw new Error("invalid tuple value");o=a.map(s=>{if(!s.name)throw new Error("cannot use object value with unnamed components");if(!(s.name in t))throw new Error(`missing value for component ${s.name}`);return t[s.name]})}if(o.length!==this.components.length)throw new Error("array is wrong length");o.forEach((s,f)=>{var l;k0(l=a[f],t4,S5).call(l,e,s,n,c=>{o[f]=c})}),r(o);return}const i=n(this.type,t);i.then?e.push(async function(){r(await i)}()):r(i)};let Fe=Qt;class us{constructor(e,t,n){r0(this,"type");r0(this,"inputs");vp(e,Iu,"Fragment"),n=Object.freeze(n.slice()),U0(this,{type:t,inputs:n})}static from(e){if(typeof e=="string"){try{us.from(JSON.parse(e))}catch{}return us.from(Pa(e))}if(e instanceof Gn)switch(e.peekKeyword(OL)){case"constructor":return Kr.from(e);case"error":return ct.from(e);case"event":return lr.from(e);case"fallback":case"receive":return Tr.from(e);case"function":return cr.from(e);case"struct":return Io.from(e)}else if(typeof e=="object"){switch(e.type){case"constructor":return Kr.from(e);case"error":return ct.from(e);case"event":return lr.from(e);case"fallback":case"receive":return Tr.from(e);case"function":return cr.from(e);case"struct":return Io.from(e)}E0(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}e0(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return Kr.isFragment(e)}static isError(e){return ct.isFragment(e)}static isEvent(e){return lr.isFragment(e)}static isFunction(e){return cr.isFragment(e)}static isStruct(e){return Io.isFragment(e)}}class kp extends us{constructor(t,n,r,i){super(t,n,i);r0(this,"name");e0(typeof r=="string"&&r.match(NL),"invalid identifier","name",r),i=Object.freeze(i.slice()),U0(this,{name:r})}}function U1(u,e){return"("+e.map(t=>t.format(u)).join(u==="full"?", ":",")+")"}class ct extends kp{constructor(e,t,n){super(e,"error",t,n),Object.defineProperty(this,vt,{value:_k})}get selector(){return va(this.format("sighash")).substring(0,10)}format(e){if(e==null&&(e="sighash"),e==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});const t=[];return e!=="sighash"&&t.push("error"),t.push(this.name+U1(e,this.inputs)),t.join(" ")}static from(e){if(ct.isFragment(e))return e;if(typeof e=="string")return ct.from(Pa(e));if(e instanceof Gn){const t=xp("error",e),n=Zr(e);return Xo(e),new ct(Iu,t,n)}return new ct(Iu,e.name,e.inputs?e.inputs.map(Fe.from):[])}static isFragment(e){return e&&e[vt]===_k}}class lr extends kp{constructor(t,n,r,i){super(t,"event",n,r);r0(this,"anonymous");Object.defineProperty(this,vt,{value:Sk}),U0(this,{anonymous:i})}get topicHash(){return va(this.format("sighash"))}format(t){if(t==null&&(t="sighash"),t==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(r=>JSON.parse(r.format(t)))});const n=[];return t!=="sighash"&&n.push("event"),n.push(this.name+U1(t,this.inputs)),t!=="sighash"&&this.anonymous&&n.push("anonymous"),n.join(" ")}static getTopicHash(t,n){return n=(n||[]).map(i=>Fe.from(i)),new lr(Iu,t,n,!1).topicHash}static from(t){if(lr.isFragment(t))return t;if(typeof t=="string")try{return lr.from(Pa(t))}catch{e0(!1,"invalid event fragment","obj",t)}else if(t instanceof Gn){const n=xp("event",t),r=Zr(t,!0),i=!!oi(t,Qe(["anonymous"])).has("anonymous");return Xo(t),new lr(Iu,n,r,i)}return new lr(Iu,t.name,t.inputs?t.inputs.map(n=>Fe.from(n,!0)):[],!!t.anonymous)}static isFragment(t){return t&&t[vt]===Sk}}class Kr extends us{constructor(t,n,r,i,a){super(t,n,r);r0(this,"payable");r0(this,"gas");Object.defineProperty(this,vt,{value:Tk}),U0(this,{payable:i,gas:a})}format(t){if(E0(t!=null&&t!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),t==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(r=>JSON.parse(r.format(t)))});const n=[`constructor${U1(t,this.inputs)}`];return this.payable&&n.push("payable"),this.gas!=null&&n.push(`@${this.gas.toString()}`),n.join(" ")}static from(t){if(Kr.isFragment(t))return t;if(typeof t=="string")try{return Kr.from(Pa(t))}catch{e0(!1,"invalid constuctor fragment","obj",t)}else if(t instanceof Gn){oi(t,Qe(["constructor"]));const n=Zr(t),r=!!oi(t,AO0).has("payable"),i=zL(t);return Xo(t),new Kr(Iu,"constructor",n,r,i)}return new Kr(Iu,"constructor",t.inputs?t.inputs.map(Fe.from):[],!!t.payable,t.gas!=null?t.gas:null)}static isFragment(t){return t&&t[vt]===Tk}}class Tr extends us{constructor(t,n,r){super(t,"fallback",n);r0(this,"payable");Object.defineProperty(this,vt,{value:Pk}),U0(this,{payable:r})}format(t){const n=this.inputs.length===0?"receive":"fallback";if(t==="json"){const r=this.payable?"payable":"nonpayable";return JSON.stringify({type:n,stateMutability:r})}return`${n}()${this.payable?" payable":""}`}static from(t){if(Tr.isFragment(t))return t;if(typeof t=="string")try{return Tr.from(Pa(t))}catch{e0(!1,"invalid fallback fragment","obj",t)}else if(t instanceof Gn){const n=t.toString(),r=t.peekKeyword(Qe(["fallback","receive"]));if(e0(r,"type must be fallback or receive","obj",n),t.popKeyword(Qe(["fallback","receive"]))==="receive"){const s=Zr(t);return e0(s.length===0,"receive cannot have arguments","obj.inputs",s),oi(t,Qe(["payable"])),Xo(t),new Tr(Iu,[],!0)}let a=Zr(t);a.length?e0(a.length===1&&a[0].type==="bytes","invalid fallback inputs","obj.inputs",a.map(s=>s.format("minimal")).join(", ")):a=[Fe.from("bytes")];const o=jL(t);if(e0(o==="nonpayable"||o==="payable","fallback cannot be constants","obj.stateMutability",o),oi(t,Qe(["returns"])).has("returns")){const s=Zr(t);e0(s.length===1&&s[0].type==="bytes","invalid fallback outputs","obj.outputs",s.map(f=>f.format("minimal")).join(", "))}return Xo(t),new Tr(Iu,a,o==="payable")}if(t.type==="receive")return new Tr(Iu,[],!0);if(t.type==="fallback"){const n=[Fe.from("bytes")],r=t.stateMutability==="payable";return new Tr(Iu,n,r)}e0(!1,"invalid fallback description","obj",t)}static isFragment(t){return t&&t[vt]===Pk}}class cr extends kp{constructor(t,n,r,i,a,o){super(t,"function",n,i);r0(this,"constant");r0(this,"outputs");r0(this,"stateMutability");r0(this,"payable");r0(this,"gas");Object.defineProperty(this,vt,{value:Ik}),a=Object.freeze(a.slice()),U0(this,{constant:r==="view"||r==="pure",gas:o,outputs:a,payable:r==="payable",stateMutability:r})}get selector(){return va(this.format("sighash")).substring(0,10)}format(t){if(t==null&&(t="sighash"),t==="json")return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(r=>JSON.parse(r.format(t))),outputs:this.outputs.map(r=>JSON.parse(r.format(t)))});const n=[];return t!=="sighash"&&n.push("function"),n.push(this.name+U1(t,this.inputs)),t!=="sighash"&&(this.stateMutability!=="nonpayable"&&n.push(this.stateMutability),this.outputs&&this.outputs.length&&(n.push("returns"),n.push(U1(t,this.outputs))),this.gas!=null&&n.push(`@${this.gas.toString()}`)),n.join(" ")}static getSelector(t,n){return n=(n||[]).map(i=>Fe.from(i)),new cr(Iu,t,"view",n,[],null).selector}static from(t){if(cr.isFragment(t))return t;if(typeof t=="string")try{return cr.from(Pa(t))}catch{e0(!1,"invalid function fragment","obj",t)}else if(t instanceof Gn){const r=xp("function",t),i=Zr(t),a=jL(t);let o=[];oi(t,Qe(["returns"])).has("returns")&&(o=Zr(t));const s=zL(t);return Xo(t),new cr(Iu,r,a,i,o,s)}let n=t.stateMutability;return n==null&&(n="payable",typeof t.constant=="boolean"?(n="view",t.constant||(n="payable",typeof t.payable=="boolean"&&!t.payable&&(n="nonpayable"))):typeof t.payable=="boolean"&&!t.payable&&(n="nonpayable")),new cr(Iu,t.name,n,t.inputs?t.inputs.map(Fe.from):[],t.outputs?t.outputs.map(Fe.from):[],t.gas!=null?t.gas:null)}static isFragment(t){return t&&t[vt]===Ik}}class Io extends kp{constructor(e,t,n){super(e,"struct",t,n),Object.defineProperty(this,vt,{value:Ok})}format(){throw new Error("@TODO")}static from(e){if(typeof e=="string")try{return Io.from(Pa(e))}catch{e0(!1,"invalid struct fragment","obj",e)}else if(e instanceof Gn){const t=xp("struct",e),n=Zr(e);return Xo(e),new Io(Iu,t,n)}return new Io(Iu,e.name,e.inputs?e.inputs.map(Fe.from):[])}static isFragment(e){return e&&e[vt]===Ok}}const Qn=new Map;Qn.set(0,"GENERIC_PANIC");Qn.set(1,"ASSERT_FALSE");Qn.set(17,"OVERFLOW");Qn.set(18,"DIVIDE_BY_ZERO");Qn.set(33,"ENUM_RANGE_ERROR");Qn.set(34,"BAD_STORAGE_DATA");Qn.set(49,"STACK_UNDERFLOW");Qn.set(50,"ARRAY_RANGE_ERROR");Qn.set(65,"OUT_OF_MEMORY");Qn.set(81,"UNINITIALIZED_FUNCTION_CALL");const TO0=new RegExp(/^bytes([0-9]*)$/),PO0=new RegExp(/^(u?int)([0-9]*)$/);let Sh=null;function IO0(u,e,t,n){let r="missing revert data",i=null;const a=null;let o=null;if(t){r="execution reverted";const f=cu(t);if(t=M0(t),f.length===0)r+=" (no data present; likely require(false) occurred",i="require(false)";else if(f.length%32!==4)r+=" (could not decode reason; invalid data length)";else if(M0(f.slice(0,4))==="0x08c379a0")try{i=n.decode(["string"],f.slice(4))[0],o={signature:"Error(string)",name:"Error",args:[i]},r+=`: ${JSON.stringify(i)}`}catch{r+=" (could not decode reason; invalid string data)"}else if(M0(f.slice(0,4))==="0x4e487b71")try{const l=Number(n.decode(["uint256"],f.slice(4))[0]);o={signature:"Panic(uint256)",name:"Panic",args:[l]},i=`Panic due to ${Qn.get(l)||"UNKNOWN"}(${l})`,r+=`: ${i}`}catch{r+=" (could not decode panic code)"}else r+=" (unknown custom error)"}const s={to:e.to?su(e.to):null,data:e.data||"0x"};return e.from&&(s.from=su(e.from)),ne(r,"CALL_EXCEPTION",{action:u,data:t,reason:i,transaction:s,invocation:a,revert:o})}var zi,Hs;const x9=class x9{constructor(){a0(this,zi)}getDefaultValue(e){const t=e.map(r=>k0(this,zi,Hs).call(this,Fe.from(r)));return new e5(t,"_").defaultValue()}encode(e,t){Mz(t.length,e.length,"types/values length mismatch");const n=e.map(a=>k0(this,zi,Hs).call(this,Fe.from(a))),r=new e5(n,"_"),i=new nm;return r.encode(i,t),i.data}decode(e,t,n){const r=e.map(a=>k0(this,zi,Hs).call(this,Fe.from(a)));return new e5(r,"_").decode(new rm(t,n))}static defaultAbiCoder(){return Sh==null&&(Sh=new x9),Sh}static getBuiltinCallException(e,t,n){return IO0(e,t,n,x9.defaultAbiCoder())}};zi=new WeakSet,Hs=function(e){if(e.isArray())return new sI0(k0(this,zi,Hs).call(this,e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new e5(e.components.map(n=>k0(this,zi,Hs).call(this,n)),e.name);switch(e.baseType){case"address":return new aI0(e.name);case"bool":return new fI0(e.name);case"string":return new bI0(e.name);case"bytes":return new lI0(e.name);case"":return new EI0(e.name)}let t=e.type.match(PO0);if(t){let n=parseInt(t[2]||"256");return e0(n!==0&&n<=256&&n%8===0,"invalid "+t[1]+" bit length","param",e),new mI0(n/8,t[1]==="int",e.name)}if(t=e.type.match(TO0),t){let n=parseInt(t[1]);return e0(n!==0&&n<=32,"invalid bytes length","param",e),new cI0(n,e.name)}e0(!1,"invalid type","type",e.type)};let W1=x9;class OO0{constructor(e,t,n){r0(this,"fragment");r0(this,"name");r0(this,"signature");r0(this,"topic");r0(this,"args");const r=e.name,i=e.format();U0(this,{fragment:e,name:r,signature:i,topic:t,args:n})}}class RO0{constructor(e,t,n,r){r0(this,"fragment");r0(this,"name");r0(this,"args");r0(this,"signature");r0(this,"selector");r0(this,"value");const i=e.name,a=e.format();U0(this,{fragment:e,name:i,args:n,signature:a,selector:t,value:r})}}class NO0{constructor(e,t,n){r0(this,"fragment");r0(this,"name");r0(this,"args");r0(this,"signature");r0(this,"selector");const r=e.name,i=e.format();U0(this,{fragment:e,name:r,args:n,signature:i,selector:t})}}class Rk{constructor(e){r0(this,"hash");r0(this,"_isIndexed");U0(this,{hash:e,_isIndexed:!0})}static isIndexed(e){return!!(e&&e._isIndexed)}}const Nk={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},Mk={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:u=>`reverted with reason string ${JSON.stringify(u)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:u=>{let e="unknown panic code";return u>=0&&u<=255&&Nk[u.toString()]&&(e=Nk[u.toString()]),`reverted with panic code 0x${u.toString(16)} (${e})`}}};var er,tr,nr,Pe,n4,T5,r4,P5;const mf=class mf{constructor(e){a0(this,n4);a0(this,r4);r0(this,"fragments");r0(this,"deploy");r0(this,"fallback");r0(this,"receive");a0(this,er,void 0);a0(this,tr,void 0);a0(this,nr,void 0);a0(this,Pe,void 0);let t=[];typeof e=="string"?t=JSON.parse(e):t=e,M(this,nr,new Map),M(this,er,new Map),M(this,tr,new Map);const n=[];for(const a of t)try{n.push(us.from(a))}catch(o){console.log("EE",o)}U0(this,{fragments:Object.freeze(n)});let r=null,i=!1;M(this,Pe,this.getAbiCoder()),this.fragments.forEach((a,o)=>{let s;switch(a.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}U0(this,{deploy:a});return;case"fallback":a.inputs.length===0?i=!0:(e0(!r||a.payable!==r.payable,"conflicting fallback fragments",`fragments[${o}]`,a),r=a,i=r.payable);return;case"function":s=k(this,nr);break;case"event":s=k(this,tr);break;case"error":s=k(this,er);break;default:return}const f=a.format();s.has(f)||s.set(f,a)}),this.deploy||U0(this,{deploy:Kr.from("constructor()")}),U0(this,{fallback:r,receive:i})}format(e){const t=e?"minimal":"full";return this.fragments.map(r=>r.format(t))}formatJson(){const e=this.fragments.map(t=>t.format("json"));return JSON.stringify(e.map(t=>JSON.parse(t)))}getAbiCoder(){return W1.defaultAbiCoder()}getFunctionName(e){const t=k0(this,n4,T5).call(this,e,null,!1);return e0(t,"no matching function","key",e),t.name}hasFunction(e){return!!k0(this,n4,T5).call(this,e,null,!1)}getFunction(e,t){return k0(this,n4,T5).call(this,e,t||null,!0)}forEachFunction(e){const t=Array.from(k(this,nr).keys());t.sort((n,r)=>n.localeCompare(r));for(let n=0;nn.localeCompare(r));for(let n=0;n1){const i=r.map(a=>JSON.stringify(a.format())).join(", ");e0(!1,`ambiguous error description (i.e. ${i})`,"name",e)}return r[0]}if(e=ct.from(e).format(),e==="Error(string)")return ct.from("error Error(string)");if(e==="Panic(uint256)")return ct.from("error Panic(uint256)");const n=k(this,er).get(e);return n||null}forEachError(e){const t=Array.from(k(this,er).keys());t.sort((n,r)=>n.localeCompare(r));for(let n=0;ni.type==="string"?va(a):i.type==="bytes"?Ou(M0(a)):(i.type==="bool"&&typeof a=="boolean"?a=a?"0x01":"0x00":i.type.match(/^u?int/)?a=ya(a):i.type.match(/^bytes/)?a=IP0(a,32):i.type==="address"&&k(this,Pe).encode(["address"],[a]),Yo(M0(a),32));for(t.forEach((i,a)=>{const o=e.inputs[a];if(!o.indexed){e0(i==null,"cannot filter non-indexed parameters; must be null","contract."+o.name,i);return}i==null?n.push(null):o.baseType==="array"||o.baseType==="tuple"?e0(!1,"filtering with tuples or arrays not supported","contract."+o.name,i):Array.isArray(i)?n.push(i.map(s=>r(o,s))):n.push(r(o,i))});n.length&&n[n.length-1]===null;)n.pop();return n}encodeEventLog(e,t){if(typeof e=="string"){const a=this.getEvent(e);e0(a,"unknown event","eventFragment",e),e=a}const n=[],r=[],i=[];return e.anonymous||n.push(e.topicHash),e0(t.length===e.inputs.length,"event arguments/values mismatch","values",t),e.inputs.forEach((a,o)=>{const s=t[o];if(a.indexed)if(a.type==="string")n.push(va(s));else if(a.type==="bytes")n.push(Ou(s));else{if(a.baseType==="tuple"||a.baseType==="array")throw new Error("not implemented");n.push(k(this,Pe).encode([a.type],[s]))}else r.push(a),i.push(s)}),{data:k(this,Pe).encode(r,i),topics:n}}decodeEventLog(e,t,n){if(typeof e=="string"){const E=this.getEvent(e);e0(E,"unknown event","eventFragment",e),e=E}if(n!=null&&!e.anonymous){const E=e.topicHash;e0(Nu(n[0],32)&&n[0].toLowerCase()===E,"fragment/topic mismatch","topics[0]",n[0]),n=n.slice(1)}const r=[],i=[],a=[];e.inputs.forEach((E,p)=>{E.indexed?E.type==="string"||E.type==="bytes"||E.baseType==="tuple"||E.baseType==="array"?(r.push(Fe.from({type:"bytes32",name:E.name})),a.push(!0)):(r.push(E),a.push(!1)):(i.push(E),a.push(!1))});const o=n!=null?k(this,Pe).decode(r,fe(n)):null,s=k(this,Pe).decode(i,t,!0),f=[],l=[];let c=0,d=0;return e.inputs.forEach((E,p)=>{let h=null;if(E.indexed)if(o==null)h=new Rk(null);else if(a[p])h=new Rk(o[d++]);else try{h=o[d++]}catch(g){h=g}else try{h=s[c++]}catch(g){h=g}f.push(h),l.push(E.name||null)}),d9.fromItems(f,l)}parseTransaction(e){const t=cu(e.data,"tx.data"),n=j0(e.value!=null?e.value:0,"tx.value"),r=this.getFunction(M0(t.slice(0,4)));if(!r)return null;const i=k(this,Pe).decode(r.inputs,t.slice(4));return new RO0(r,r.selector,i,n)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new OO0(t,t.topicHash,this.decodeEventLog(t,e.data,e.topics))}parseError(e){const t=M0(e),n=this.getError(Wu(t,0,4));if(!n)return null;const r=k(this,Pe).decode(n.inputs,Wu(t,4));return new NO0(n,n.selector,r)}static from(e){return e instanceof mf?e:typeof e=="string"?new mf(JSON.parse(e)):typeof e.format=="function"?new mf(e.format("json")):new mf(e)}};er=new WeakMap,tr=new WeakMap,nr=new WeakMap,Pe=new WeakMap,n4=new WeakSet,T5=function(e,t,n){if(Nu(e)){const i=e.toLowerCase();for(const a of k(this,nr).values())if(i===a.selector)return a;return null}if(e.indexOf("(")===-1){const i=[];for(const[a,o]of k(this,nr))a.split("(")[0]===e&&i.push(o);if(t){const a=t.length>0?t[t.length-1]:null;let o=t.length,s=!0;Le.isTyped(a)&&a.type==="overrides"&&(s=!1,o--);for(let f=i.length-1;f>=0;f--){const l=i[f].inputs.length;l!==o&&(!s||l!==o-1)&&i.splice(f,1)}for(let f=i.length-1;f>=0;f--){const l=i[f].inputs;for(let c=0;c=l.length){if(t[c].type==="overrides")continue;i.splice(f,1);break}if(t[c].type!==l[c].baseType){i.splice(f,1);break}}}}if(i.length===1&&t&&t.length!==i[0].inputs.length){const a=t[t.length-1];(a==null||Array.isArray(a)||typeof a!="object")&&i.splice(0,1)}if(i.length===0)return null;if(i.length>1&&n){const a=i.map(o=>JSON.stringify(o.format())).join(", ");e0(!1,`ambiguous function description (i.e. matches ${a})`,"key",e)}return i[0]}const r=k(this,nr).get(cr.from(e).format());return r||null},r4=new WeakSet,P5=function(e,t,n){if(Nu(e)){const i=e.toLowerCase();for(const a of k(this,tr).values())if(i===a.topicHash)return a;return null}if(e.indexOf("(")===-1){const i=[];for(const[a,o]of k(this,tr))a.split("(")[0]===e&&i.push(o);if(t){for(let a=i.length-1;a>=0;a--)i[a].inputs.length=0;a--){const o=i[a].inputs;for(let s=0;s1&&n){const a=i.map(o=>JSON.stringify(o.format())).join(", ");e0(!1,`ambiguous event description (i.e. matches ${a})`,"key",e)}return i[0]}const r=k(this,tr).get(lr.from(e).format());return r||null};let Em=mf;const LL=BigInt(0);function Xl(u){return u??null}function je(u){return u==null?null:u.toString()}class jk{constructor(e,t,n){r0(this,"gasPrice");r0(this,"maxFeePerGas");r0(this,"maxPriorityFeePerGas");U0(this,{gasPrice:Xl(e),maxFeePerGas:Xl(t),maxPriorityFeePerGas:Xl(n)})}toJSON(){const{gasPrice:e,maxFeePerGas:t,maxPriorityFeePerGas:n}=this;return{_type:"FeeData",gasPrice:je(e),maxFeePerGas:je(t),maxPriorityFeePerGas:je(n)}}}function g9(u){const e={};u.to&&(e.to=u.to),u.from&&(e.from=u.from),u.data&&(e.data=M0(u.data));const t="chainId,gasLimit,gasPrice,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const r of t)!(r in u)||u[r]==null||(e[r]=j0(u[r],`request.${r}`));const n="type,nonce".split(/,/);for(const r of n)!(r in u)||u[r]==null||(e[r]=Z0(u[r],`request.${r}`));return u.accessList&&(e.accessList=As(u.accessList)),"blockTag"in u&&(e.blockTag=u.blockTag),"enableCcipRead"in u&&(e.enableCcipRead=!!u.enableCcipRead),"customData"in u&&(e.customData=u.customData),e}var zr;class MO0{constructor(e,t){r0(this,"provider");r0(this,"number");r0(this,"hash");r0(this,"timestamp");r0(this,"parentHash");r0(this,"nonce");r0(this,"difficulty");r0(this,"gasLimit");r0(this,"gasUsed");r0(this,"miner");r0(this,"extraData");r0(this,"baseFeePerGas");a0(this,zr,void 0);M(this,zr,e.transactions.map(n=>typeof n!="string"?new q1(n,t):n)),U0(this,{provider:t,hash:Xl(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,miner:e.miner,extraData:e.extraData,baseFeePerGas:Xl(e.baseFeePerGas)})}get transactions(){return k(this,zr).map(e=>typeof e=="string"?e:e.hash)}get prefetchedTransactions(){const e=k(this,zr).slice();return e.length===0?[]:(E0(typeof e[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:t,extraData:n,gasLimit:r,gasUsed:i,hash:a,miner:o,nonce:s,number:f,parentHash:l,timestamp:c,transactions:d}=this;return{_type:"Block",baseFeePerGas:je(e),difficulty:je(t),extraData:n,gasLimit:je(r),gasUsed:je(i),hash:a,miner:o,nonce:s,number:f,parentHash:l,timestamp:c,transactions:d}}[Symbol.iterator](){let e=0;const t=this.transactions;return{next:()=>enew u6(r,t))));let n=LL;e.effectiveGasPrice!=null?n=e.effectiveGasPrice:e.gasPrice!=null&&(n=e.gasPrice),U0(this,{provider:t,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,gasPrice:n,type:e.type,status:e.status,root:e.root})}get logs(){return k(this,Z1)}toJSON(){const{to:e,from:t,contractAddress:n,hash:r,index:i,blockHash:a,blockNumber:o,logsBloom:s,logs:f,status:l,root:c}=this;return{_type:"TransactionReceipt",blockHash:a,blockNumber:o,contractAddress:n,cumulativeGasUsed:je(this.cumulativeGasUsed),from:t,gasPrice:je(this.gasPrice),gasUsed:je(this.gasUsed),hash:r,index:i,logs:f,logsBloom:s,root:c,status:l,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e{if(o)return null;const{blockNumber:d,nonce:E}=await qe({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(E{if(d==null||d.status!==0)return d;E0(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:d.to,from:d.from,data:""},receipt:d})},l=await this.provider.getTransactionReceipt(this.hash);if(n===0)return f(l);if(l){if(await l.confirmations()>=n)return f(l)}else if(await s(),n===0)return null;return await new Promise((d,E)=>{const p=[],h=()=>{p.forEach(b=>b())};if(p.push(()=>{o=!0}),r>0){const b=setTimeout(()=>{h(),E(ne("wait for transaction timeout","TIMEOUT"))},r);p.push(()=>{clearTimeout(b)})}const g=async b=>{if(await b.confirmations()>=n){h();try{d(f(b))}catch(m){E(m)}}};if(p.push(()=>{this.provider.off(this.hash,g)}),this.provider.on(this.hash,g),i>=0){const b=async()=>{try{await s()}catch(m){if(ln(m,"TRANSACTION_REPLACED")){h(),E(m);return}}o||this.provider.once("block",b)};p.push(()=>{this.provider.off("block",b)}),this.provider.once("block",b)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}removedEvent(){return E0(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),WL(this)}reorderedEvent(e){return E0(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),E0(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),UL(this,e)}replaceableTransaction(e){e0(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const t=new nv(this,this.provider);return M(t,Li,e),t}};Li=new WeakMap;let q1=nv;function jO0(u){return{orphan:"drop-block",hash:u.hash,number:u.number}}function UL(u,e){return{orphan:"reorder-transaction",tx:u,other:e}}function WL(u){return{orphan:"drop-transaction",tx:u}}function zO0(u){return{orphan:"drop-log",log:{transactionHash:u.transactionHash,blockHash:u.blockHash,blockNumber:u.blockNumber,address:u.address,data:u.data,topics:Object.freeze(u.topics.slice()),index:u.index}}}class $y extends u6{constructor(t,n,r){super(t,t.provider);r0(this,"interface");r0(this,"fragment");r0(this,"args");const i=n.decodeEventLog(r,t.data,t.topics);U0(this,{args:i,fragment:r,interface:n})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class qL extends u6{constructor(t,n){super(t,t.provider);r0(this,"error");U0(this,{error:n})}}var i4;class LO0 extends $L{constructor(t,n,r){super(r,n);a0(this,i4,void 0);M(this,i4,t)}get logs(){return super.logs.map(t=>{const n=t.topics.length?k(this,i4).getEvent(t.topics[0]):null;if(n)try{return new $y(t,k(this,i4),n)}catch(r){return new qL(t,r)}return t})}}i4=new WeakMap;var Y1;class Uy extends q1{constructor(t,n,r){super(r,n);a0(this,Y1,void 0);M(this,Y1,t)}async wait(t){const n=await super.wait(t);return n==null?null:new LO0(k(this,Y1),this.provider,n)}}Y1=new WeakMap;class HL extends $z{constructor(t,n,r,i){super(t,n,r);r0(this,"log");U0(this,{log:i})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class $O0 extends HL{constructor(e,t,n,r,i){super(e,t,n,new $y(i,e.interface,r));const a=e.interface.decodeEventLog(r,this.log.data,this.log.topics);U0(this,{args:a,fragment:r})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const zk=BigInt(0);function GL(u){return u&&typeof u.call=="function"}function VL(u){return u&&typeof u.estimateGas=="function"}function _p(u){return u&&typeof u.resolveName=="function"}function KL(u){return u&&typeof u.sendTransaction=="function"}function QL(u){if(u!=null){if(_p(u))return u;if(u.provider)return u.provider}}var X1;class UO0{constructor(e,t,n){a0(this,X1,void 0);r0(this,"fragment");if(U0(this,{fragment:t}),t.inputs.lengthn[s]==null?null:o.walkAsync(n[s],(l,c)=>l==="address"?Array.isArray(c)?Promise.all(c.map(d=>Ke(d,i))):Ke(c,i):c)));return e.interface.encodeFilterTopics(t,a)}())}getTopicFilter(){return k(this,X1)}}X1=new WeakMap;function es(u,e){return u==null?null:typeof u[e]=="function"?u:u.provider&&typeof u.provider[e]=="function"?u.provider:null}function ro(u){return u==null?null:u.provider||null}async function JL(u,e){const t=Le.dereference(u,"overrides");e0(typeof t=="object","invalid overrides parameter","overrides",u);const n=g9(t);return e0(n.to==null||(e||[]).indexOf("to")>=0,"cannot override to","overrides.to",n.to),e0(n.data==null||(e||[]).indexOf("data")>=0,"cannot override data","overrides.data",n.data),n.from&&(n.from=n.from),n}async function WO0(u,e,t){const n=es(u,"resolveName"),r=_p(n)?n:null;return await Promise.all(e.map((i,a)=>i.walkAsync(t[a],(o,s)=>(s=Le.dereference(s,o),o==="address"?Ke(s,r):s))))}function qO0(u){const e=async function(a){const o=await JL(a,["data"]);o.to=await u.getAddress(),o.from&&(o.from=await Ke(o.from,QL(u.runner)));const s=u.interface,f=j0(o.value||zk,"overrides.value")===zk,l=(o.data||"0x")==="0x";s.fallback&&!s.fallback.payable&&s.receive&&!l&&!f&&e0(!1,"cannot send data to receive or send value to non-payable fallback","overrides",a),e0(s.fallback||l,"cannot send data to receive-only contract","overrides.data",o.data);const c=s.receive||s.fallback&&s.fallback.payable;return e0(c||f,"cannot send value to non-payable fallback","overrides.value",o.value),e0(s.fallback||l,"cannot send data to receive-only contract","overrides.data",o.data),o},t=async function(a){const o=es(u.runner,"call");E0(GL(o),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const s=await e(a);try{return await o.call(s)}catch(f){throw Py(f)&&f.data?u.interface.makeError(f.data,s):f}},n=async function(a){const o=u.runner;E0(KL(o),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const s=await o.sendTransaction(await e(a)),f=ro(u.runner);return new Uy(u.interface,f,s)},r=async function(a){const o=es(u.runner,"estimateGas");return E0(VL(o),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await o.estimateGas(await e(a))},i=async a=>await n(a);return U0(i,{_contract:u,estimateGas:r,populateTransaction:e,send:n,staticCall:t}),i}function HO0(u,e){const t=function(...f){const l=u.interface.getFunction(e,f);return E0(l,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:f}}),l},n=async function(...f){const l=t(...f);let c={};if(l.inputs.length+1===f.length&&(c=await JL(f.pop()),c.from&&(c.from=await Ke(c.from,QL(u.runner)))),l.inputs.length!==f.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const d=await WO0(u.runner,l.inputs,f);return Object.assign({},c,await qe({to:u.getAddress(),data:u.interface.encodeFunctionData(l,d)}))},r=async function(...f){const l=await o(...f);return l.length===1?l[0]:l},i=async function(...f){const l=u.runner;E0(KL(l),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const c=await l.sendTransaction(await n(...f)),d=ro(u.runner);return new Uy(u.interface,d,c)},a=async function(...f){const l=es(u.runner,"estimateGas");return E0(VL(l),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await l.estimateGas(await n(...f))},o=async function(...f){const l=es(u.runner,"call");E0(GL(l),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const c=await n(...f);let d="0x";try{d=await l.call(c)}catch(p){throw Py(p)&&p.data?u.interface.makeError(p.data,c):p}const E=t(...f);return u.interface.decodeFunctionResult(E,d)},s=async(...f)=>t(...f).constant?await r(...f):await i(...f);return U0(s,{name:u.interface.getFunctionName(e),_contract:u,_key:e,getFragment:t,estimateGas:a,populateTransaction:n,send:i,staticCall:r,staticCallResult:o}),Object.defineProperty(s,"fragment",{configurable:!1,enumerable:!0,get:()=>{const f=u.interface.getFunction(e);return E0(f,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),f}}),s}function GO0(u,e){const t=function(...r){const i=u.interface.getEvent(e,r);return E0(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:r}}),i},n=function(...r){return new UO0(u,t(...r),r)};return U0(n,{name:u.interface.getEventName(e),_contract:u,_key:e,getFragment:t}),Object.defineProperty(n,"fragment",{configurable:!1,enumerable:!0,get:()=>{const r=u.interface.getEvent(e);return E0(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),r}}),n}const A9=Symbol.for("_ethersInternal_contract"),ZL=new WeakMap;function VO0(u,e){ZL.set(u[A9],e)}function xt(u){return ZL.get(u[A9])}function KO0(u){return u&&typeof u=="object"&&"getTopicFilter"in u&&typeof u.getTopicFilter=="function"&&u.fragment}async function Wy(u,e){let t,n=null;if(Array.isArray(e)){const i=function(a){if(Nu(a,32))return a;const o=u.interface.getEvent(a);return e0(o,"unknown fragment","name",a),o.topicHash};t=e.map(a=>a==null?null:Array.isArray(a)?a.map(i):i(a))}else e==="*"?t=[null]:typeof e=="string"?Nu(e,32)?t=[e]:(n=u.interface.getEvent(e),e0(n,"unknown fragment","event",e),t=[n.topicHash]):KO0(e)?t=await e.getTopicFilter():"fragment"in e?(n=e.fragment,t=[n.topicHash]):e0(!1,"unknown event name","event",e);t=t.map(i=>{if(i==null)return null;if(Array.isArray(i)){const a=Array.from(new Set(i.map(o=>o.toLowerCase())).values());return a.length===1?a[0]:(a.sort(),a)}return i.toLowerCase()});const r=t.map(i=>i==null?"null":Array.isArray(i)?i.join("|"):i).join("&");return{fragment:n,tag:r,topics:t}}async function Pl(u,e){const{subs:t}=xt(u);return t.get((await Wy(u,e)).tag)||null}async function Lk(u,e,t){const n=ro(u.runner);E0(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:e});const{fragment:r,tag:i,topics:a}=await Wy(u,t),{addr:o,subs:s}=xt(u);let f=s.get(i);if(!f){const c={address:o||u,topics:a},d=g=>{let b=r;if(b==null)try{b=u.interface.getEvent(g.topics[0])}catch{}if(b){const m=b,A=r?u.interface.decodeEventLog(r,g.data,g.topics):[];hm(u,t,A,y=>new $O0(u,y,t,m,g))}else hm(u,t,[],m=>new HL(u,m,t,g))};let E=[];f={tag:i,listeners:[],start:()=>{E.length||E.push(n.on(c,d))},stop:async()=>{if(E.length==0)return;let g=E;E=[],await Promise.all(g),n.off(c,d)}},s.set(i,f)}return f}let pm=Promise.resolve();async function QO0(u,e,t,n){await pm;const r=await Pl(u,e);if(!r)return!1;const i=r.listeners.length;return r.listeners=r.listeners.filter(({listener:a,once:o})=>{const s=Array.from(t);n&&s.push(n(o?null:a));try{a.call(u,...s)}catch{}return!o}),r.listeners.length===0&&(r.stop(),xt(u).subs.delete(r.tag)),i>0}async function hm(u,e,t,n){try{await pm}catch{}const r=QO0(u,e,t,n);return pm=r,await r}const t5=["then"];var WM0;const e1=class e1{constructor(e,t,n,r){r0(this,"target");r0(this,"interface");r0(this,"runner");r0(this,"filters");r0(this,WM0);r0(this,"fallback");e0(typeof e=="string"||Xz(e),"invalid value for Contract target","target",e),n==null&&(n=null);const i=Em.from(t);U0(this,{target:e,runner:n,interface:i}),Object.defineProperty(this,A9,{value:{}});let a,o=null,s=null;if(r){const c=ro(n);s=new Uy(this.interface,c,r)}let f=new Map;if(typeof e=="string")if(Nu(e))o=e,a=Promise.resolve(e);else{const c=es(n,"resolveName");if(!_p(c))throw ne("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});a=c.resolveName(e).then(d=>{if(d==null)throw ne("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return xt(this).addr=d,d})}else a=e.getAddress().then(c=>{if(c==null)throw new Error("TODO");return xt(this).addr=c,c});VO0(this,{addrPromise:a,addr:o,deployTx:s,subs:f});const l=new Proxy({},{get:(c,d,E)=>{if(typeof d=="symbol"||t5.indexOf(d)>=0)return Reflect.get(c,d,E);try{return this.getEvent(d)}catch(p){if(!ln(p,"INVALID_ARGUMENT")||p.argument!=="key")throw p}},has:(c,d)=>t5.indexOf(d)>=0?Reflect.has(c,d):Reflect.has(c,d)||this.interface.hasEvent(String(d))});return U0(this,{filters:l}),U0(this,{fallback:i.receive||i.fallback?qO0(this):null}),new Proxy(this,{get:(c,d,E)=>{if(typeof d=="symbol"||d in c||t5.indexOf(d)>=0)return Reflect.get(c,d,E);try{return c.getFunction(d)}catch(p){if(!ln(p,"INVALID_ARGUMENT")||p.argument!=="key")throw p}},has:(c,d)=>typeof d=="symbol"||d in c||t5.indexOf(d)>=0?Reflect.has(c,d):c.interface.hasFunction(d)})}connect(e){return new e1(this.target,this.interface,e)}attach(e){return new e1(e,this.interface,this.runner)}async getAddress(){return await xt(this).addrPromise}async getDeployedCode(){const e=ro(this.runner);E0(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const t=await e.getCode(await this.getAddress());return t==="0x"?null:t}async waitForDeployment(){const e=this.deploymentTransaction();if(e)return await e.wait(),this;if(await this.getDeployedCode()!=null)return this;const n=ro(this.runner);return E0(n!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((r,i)=>{const a=async()=>{try{if(await this.getDeployedCode()!=null)return r(this);n.once("block",a)}catch(o){i(o)}};a()})}deploymentTransaction(){return xt(this).deployTx}getFunction(e){return typeof e!="string"&&(e=e.format()),HO0(this,e)}getEvent(e){return typeof e!="string"&&(e=e.format()),GO0(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,t,n){t==null&&(t=0),n==null&&(n="latest");const{addr:r,addrPromise:i}=xt(this),a=r||await i,{fragment:o,topics:s}=await Wy(this,e),f={address:a,topics:s,fromBlock:t,toBlock:n},l=ro(this.runner);return E0(l,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await l.getLogs(f)).map(c=>{let d=o;if(d==null)try{d=this.interface.getEvent(c.topics[0])}catch{}if(d)try{return new $y(c,this.interface,d)}catch(E){return new qL(c,E)}return new u6(c,l)})}async on(e,t){const n=await Lk(this,"on",e);return n.listeners.push({listener:t,once:!1}),n.start(),this}async once(e,t){const n=await Lk(this,"once",e);return n.listeners.push({listener:t,once:!0}),n.start(),this}async emit(e,...t){return await hm(this,e,t,null)}async listenerCount(e){if(e){const r=await Pl(this,e);return r?r.listeners.length:0}const{subs:t}=xt(this);let n=0;for(const{listeners:r}of t.values())n+=r.length;return n}async listeners(e){if(e){const r=await Pl(this,e);return r?r.listeners.map(({listener:i})=>i):[]}const{subs:t}=xt(this);let n=[];for(const{listeners:r}of t.values())n=n.concat(r.map(({listener:i})=>i));return n}async off(e,t){const n=await Pl(this,e);if(!n)return this;if(t){const r=n.listeners.map(({listener:i})=>i).indexOf(t);r>=0&&n.listeners.splice(r,1)}return(t==null||n.listeners.length===0)&&(n.stop(),xt(this).subs.delete(n.tag)),this}async removeAllListeners(e){if(e){const t=await Pl(this,e);if(!t)return this;t.stop(),xt(this).subs.delete(t.tag)}else{const{subs:t}=xt(this);for(const{tag:n,stop:r}of t.values())r(),t.delete(n)}return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return await this.off(e,t)}static buildClass(e){class t extends e1{constructor(r,i=null){super(r,e,i)}}return t}static from(e,t,n){return n==null&&(n=null),new this(e,t,n)}};WM0=A9;let Cm=e1;function JO0(){return Cm}class Oo extends JO0(){}function Th(u){return u.match(/^ipfs:\/\/ipfs\//i)?u=u.substring(12):u.match(/^ipfs:\/\//i)?u=u.substring(7):e0(!1,"unsupported IPFS format","link",u),`https://gateway.ipfs.io/ipfs/${u}`}class ZO0{constructor(e){r0(this,"name");U0(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,t){throw new Error("unsupported coin")}async decodeAddress(e,t){throw new Error("unsupported coin")}}const YL=new RegExp("^(ipfs)://(.*)$","i"),$k=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),YL,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];var $i,ho,Ui,Gs,k9,XL;const bf=class bf{constructor(e,t,n){a0(this,Ui);r0(this,"provider");r0(this,"address");r0(this,"name");a0(this,$i,void 0);a0(this,ho,void 0);U0(this,{provider:e,address:t,name:n}),M(this,$i,null),M(this,ho,new Oo(t,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],e))}async supportsWildcard(){return k(this,$i)==null&&M(this,$i,(async()=>{try{return await k(this,ho).supportsInterface("0x9061b923")}catch(e){if(ln(e,"CALL_EXCEPTION"))return!1;throw M(this,$i,null),e}})()),await k(this,$i)}async getAddress(e){if(e==null&&(e=60),e===60)try{const i=await k0(this,Ui,Gs).call(this,"addr(bytes32)");return i==null||i===im?null:i}catch(i){if(ln(i,"CALL_EXCEPTION"))return null;throw i}if(e>=0&&e<2147483648){let i=e+2147483648;const a=await k0(this,Ui,Gs).call(this,"addr(bytes32,uint)",[i]);if(Nu(a,20))return su(a)}let t=null;for(const i of this.provider.plugins)if(i instanceof ZO0&&i.supportsCoinType(e)){t=i;break}if(t==null)return null;const n=await k0(this,Ui,Gs).call(this,"addr(bytes32,uint)",[e]);if(n==null||n==="0x")return null;const r=await t.decodeAddress(e,n);if(r!=null)return r;E0(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:n}})}async getText(e){const t=await k0(this,Ui,Gs).call(this,"text(bytes32,string)",[e]);return t==null||t==="0x"?null:t}async getContentHash(){const e=await k0(this,Ui,Gs).call(this,"contenthash(bytes32)");if(e==null||e==="0x")return null;const t=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){const r=t[1]==="e3010170"?"ipfs":"ipns",i=parseInt(t[4],16);if(t[5].length===i*2)return`${r}://${MP0("0x"+t[2])}`}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&n[1].length===64)return`bzz://${n[1]}`;E0(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const e=[{type:"name",value:this.name}];try{const t=await this.getText("avatar");if(t==null)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:t});for(let n=0;n<$k.length;n++){const r=t.match($k[n]);if(r==null)continue;const i=r[1].toLowerCase();switch(i){case"https":case"data":return e.push({type:"url",value:t}),{linkage:e,url:t};case"ipfs":{const a=Th(t);return e.push({type:"ipfs",value:t}),e.push({type:"url",value:a}),{linkage:e,url:a}}case"erc721":case"erc1155":{const a=i==="erc721"?"tokenURI(uint256)":"uri(uint256)";e.push({type:i,value:t});const o=await this.getAddress();if(o==null)return e.push({type:"!owner",value:""}),{url:null,linkage:e};const s=(r[2]||"").split("/");if(s.length!==2)return e.push({type:`!${i}caip`,value:r[2]||""}),{url:null,linkage:e};const f=s[1],l=new Oo(s[0],["function tokenURI(uint) view returns (string)","function ownerOf(uint) view returns (address)","function uri(uint) view returns (string)","function balanceOf(address, uint256) view returns (uint)"],this.provider);if(i==="erc721"){const h=await l.ownerOf(f);if(o!==h)return e.push({type:"!owner",value:h}),{url:null,linkage:e};e.push({type:"owner",value:h})}else if(i==="erc1155"){const h=await l.balanceOf(o,f);if(!h)return e.push({type:"!balance",value:"0"}),{url:null,linkage:e};e.push({type:"balance",value:h.toString()})}let c=await l[a](f);if(c==null||c==="0x")return e.push({type:"!metadata-url",value:""}),{url:null,linkage:e};e.push({type:"metadata-url-base",value:c}),i==="erc1155"&&(c=c.replace("{id}",ya(f,32).substring(2)),e.push({type:"metadata-url-expanded",value:c})),c.match(/^ipfs:/i)&&(c=Th(c)),e.push({type:"metadata-url",value:c});let d={};const E=await new ai(c).send();E.assertOk();try{d=E.bodyJson}catch{try{e.push({type:"!metadata",value:E.bodyText})}catch{const b=E.body;return b&&e.push({type:"!metadata",value:M0(b)}),{url:null,linkage:e}}return{url:null,linkage:e}}if(!d)return e.push({type:"!metadata",value:""}),{url:null,linkage:e};e.push({type:"metadata",value:JSON.stringify(d)});let p=d.image;if(typeof p!="string")return e.push({type:"!imageUrl",value:""}),{url:null,linkage:e};if(!p.match(/^(https:\/\/|data:)/i)){if(p.match(YL)==null)return e.push({type:"!imageUrl-ipfs",value:p}),{url:null,linkage:e};e.push({type:"imageUrl-ipfs",value:p}),p=Th(p)}return e.push({type:"url",value:p}),{linkage:e,url:p}}}}}catch{}return{linkage:e,url:null}}static async getEnsAddress(e){const t=await e.getNetwork(),n=t.getPlugin("org.ethers.plugins.network.Ens");return E0(n,"network does not support ENS","UNSUPPORTED_OPERATION",{operation:"getEnsAddress",info:{network:t}}),n.address}static async fromName(e,t){var r;let n=t;for(;;){if(n===""||n==="."||t!=="eth"&&n==="eth")return null;const i=await k0(r=bf,k9,XL).call(r,e,n);if(i!=null){const a=new bf(e,i,t);return n!==t&&!await a.supportsWildcard()?null:a}n=n.split(".").slice(1).join(".")}}};$i=new WeakMap,ho=new WeakMap,Ui=new WeakSet,Gs=async function(e,t){t=(t||[]).slice();const n=k(this,ho).interface;t.unshift(cm(this.name));let r=null;await this.supportsWildcard()&&(r=n.getFunction(e),E0(r,"missing fragment","UNKNOWN_ERROR",{info:{funcName:e}}),t=[tO0(this.name),n.encodeFunctionData(r,t)],e="resolve(bytes,bytes)"),t.push({enableCcipRead:!0});try{const i=await k(this,ho)[e](...t);return r?n.decodeFunctionResult(r,i)[0]:i}catch(i){if(!ln(i,"CALL_EXCEPTION"))throw i}return null},k9=new WeakSet,XL=async function(e,t){const n=await bf.getEnsAddress(e);try{const i=await new Oo(n,["function resolver(bytes32) view returns (address)"],e).resolver(cm(t),{enableCcipRead:!0});return i===im?null:i}catch(r){throw r}return null},a0(bf,k9);let y9=bf;const Uk=BigInt(0);function Su(u,e){return function(t){return t==null?e:u(t)}}function qy(u){return e=>{if(!Array.isArray(e))throw new Error("not an array");return e.map(t=>u(t))}}function e6(u,e){return t=>{const n={};for(const r in u){let i=r;if(e&&r in e&&!(i in t)){for(const a of e[r])if(a in t){i=a;break}}try{const a=u[r](t[i]);a!==void 0&&(n[r]=a)}catch(a){const o=a instanceof Error?a.message:"not-an-error";E0(!1,`invalid value for value.${r} (${o})`,"BAD_DATA",{value:t})}}return n}}function YO0(u){switch(u){case!0:case"true":return!0;case!1:case"false":return!1}e0(!1,`invalid boolean; ${JSON.stringify(u)}`,"value",u)}function o3(u){return e0(Nu(u,!0),"invalid data","value",u),u}function cn(u){return e0(Nu(u,32),"invalid hash","value",u),u}const XO0=e6({address:su,blockHash:cn,blockNumber:Z0,data:o3,index:Z0,removed:Su(YO0,!1),topics:qy(cn),transactionHash:cn,transactionIndex:Z0},{index:["logIndex"]});function uR0(u){return XO0(u)}const eR0=e6({hash:Su(cn),parentHash:cn,number:Z0,timestamp:Z0,nonce:Su(o3),difficulty:j0,gasLimit:j0,gasUsed:j0,miner:Su(su),extraData:o3,baseFeePerGas:Su(j0)});function tR0(u){const e=eR0(u);return e.transactions=u.transactions.map(t=>typeof t=="string"?t:u$(t)),e}const nR0=e6({transactionIndex:Z0,blockNumber:Z0,transactionHash:cn,address:su,topics:qy(cn),data:o3,index:Z0,blockHash:cn},{index:["logIndex"]});function rR0(u){return nR0(u)}const iR0=e6({to:Su(su,null),from:Su(su,null),contractAddress:Su(su,null),index:Z0,root:Su(M0),gasUsed:j0,logsBloom:Su(o3),blockHash:cn,hash:cn,logs:qy(rR0),blockNumber:Z0,cumulativeGasUsed:j0,effectiveGasPrice:Su(j0),status:Su(Z0),type:Su(Z0,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function aR0(u){return iR0(u)}function u$(u){u.to&&j0(u.to)===Uk&&(u.to="0x0000000000000000000000000000000000000000");const e=e6({hash:cn,type:t=>t==="0x"||t==null?0:Z0(t),accessList:Su(As,null),blockHash:Su(cn,null),blockNumber:Su(Z0,null),transactionIndex:Su(Z0,null),from:su,gasPrice:Su(j0),maxPriorityFeePerGas:Su(j0),maxFeePerGas:Su(j0),gasLimit:j0,to:Su(su,null),value:j0,nonce:Z0,data:o3,creates:Su(su,null),chainId:Su(j0,null)},{data:["input"],gasLimit:["gas"]})(u);if(e.to==null&&e.creates==null&&(e.creates=iI0(e)),(u.type===1||u.type===2)&&u.accessList==null&&(e.accessList=[]),u.signature?e.signature=Hn.from(u.signature):e.signature=Hn.from(u),e.chainId==null){const t=e.signature.legacyChainId;t!=null&&(e.chainId=t)}return e.blockHash&&j0(e.blockHash)===Uk&&(e.blockHash=null),e}const oR0="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class t6{constructor(e){r0(this,"name");U0(this,{name:e})}clone(){return new t6(this.name)}}class Sp extends t6{constructor(t,n){t==null&&(t=0);super(`org.ethers.network.plugins.GasCost#${t||0}`);r0(this,"effectiveBlock");r0(this,"txBase");r0(this,"txCreate");r0(this,"txDataZero");r0(this,"txDataNonzero");r0(this,"txAccessListStorageKey");r0(this,"txAccessListAddress");const r={effectiveBlock:t};function i(a,o){let s=(n||{})[a];s==null&&(s=o),e0(typeof s=="number",`invalud value for ${a}`,"costs",n),r[a]=s}i("txBase",21e3),i("txCreate",32e3),i("txDataZero",4),i("txDataNonzero",16),i("txAccessListStorageKey",1900),i("txAccessListAddress",2400),U0(this,r)}clone(){return new Sp(this.effectiveBlock,this)}}class Tp extends t6{constructor(t,n){super("org.ethers.plugins.network.Ens");r0(this,"address");r0(this,"targetNetwork");U0(this,{address:t||oR0,targetNetwork:n??1})}clone(){return new Tp(this.address,this.targetNetwork)}}var uc,ec;class sR0 extends t6{constructor(t,n){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");a0(this,uc,void 0);a0(this,ec,void 0);M(this,uc,t),M(this,ec,n)}get url(){return k(this,uc)}get processFunc(){return k(this,ec)}clone(){return this}}uc=new WeakMap,ec=new WeakMap;const Ph=new Map;var a4,o4,Wi;const gf=class gf{constructor(e,t){a0(this,a4,void 0);a0(this,o4,void 0);a0(this,Wi,void 0);M(this,a4,e),M(this,o4,j0(t)),M(this,Wi,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return k(this,a4)}set name(e){M(this,a4,e)}get chainId(){return k(this,o4)}set chainId(e){M(this,o4,j0(e,"chainId"))}matches(e){if(e==null)return!1;if(typeof e=="string"){try{return this.chainId===j0(e)}catch{}return this.name===e}if(typeof e=="number"||typeof e=="bigint"){try{return this.chainId===j0(e)}catch{}return!1}if(typeof e=="object"){if(e.chainId!=null){try{return this.chainId===j0(e.chainId)}catch{}return!1}return e.name!=null?this.name===e.name:!1}return!1}get plugins(){return Array.from(k(this,Wi).values())}attachPlugin(e){if(k(this,Wi).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return k(this,Wi).set(e.name,e.clone()),this}getPlugin(e){return k(this,Wi).get(e)||null}getPlugins(e){return this.plugins.filter(t=>t.name.split("#")[0]===e)}clone(){const e=new gf(this.name,this.chainId);return this.plugins.forEach(t=>{e.attachPlugin(t.clone())}),e}computeIntrinsicGas(e){const t=this.getPlugin("org.ethers.plugins.network.GasCost")||new Sp;let n=t.txBase;if(e.to==null&&(n+=t.txCreate),e.data)for(let r=2;r9){let r=BigInt(n[1].substring(0,9));n[1].substring(9).match(/^0+$/)||r++,n[1]=r.toString()}return BigInt(n[0]+n[1])}function qk(u){return new sR0(u,async(e,t,n)=>{n.setHeader("User-Agent","ethers");let r;try{const[i,a]=await Promise.all([n.send(),e()]);r=i;const o=r.bodyJson.standard;return{gasPrice:a.gasPrice,maxFeePerGas:Wk(o.maxFee,9),maxPriorityFeePerGas:Wk(o.maxPriorityFee,9)}}catch(i){E0(!1,`error encountered with polygon gas station (${JSON.stringify(n.url)})`,"SERVER_ERROR",{request:n,response:r,error:i})}})}let Hk=!1;function fR0(){if(Hk)return;Hk=!0;function u(e,t,n){const r=function(){const i=new Er(e,t);return n.ensNetwork!=null&&i.attachPlugin(new Tp(null,n.ensNetwork)),i.attachPlugin(new Sp),(n.plugins||[]).forEach(a=>{i.attachPlugin(a)}),i};Er.register(e,r),Er.register(t,r),n.altNames&&n.altNames.forEach(i=>{Er.register(i,r)})}u("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),u("ropsten",3,{ensNetwork:3}),u("rinkeby",4,{ensNetwork:4}),u("goerli",5,{ensNetwork:5}),u("kovan",42,{ensNetwork:42}),u("sepolia",11155111,{ensNetwork:11155111}),u("classic",61,{}),u("classicKotti",6,{}),u("arbitrum",42161,{ensNetwork:1}),u("arbitrum-goerli",421613,{}),u("base",8453,{ensNetwork:1}),u("base-goerli",84531,{}),u("base-sepolia",84532,{}),u("bnb",56,{ensNetwork:1}),u("bnbt",97,{}),u("linea",59144,{ensNetwork:1}),u("linea-goerli",59140,{}),u("matic",137,{ensNetwork:1,plugins:[qk("https://gasstation.polygon.technology/v2")]}),u("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[qk("https://gasstation-testnet.polygon.technology/v2")]}),u("optimism",10,{ensNetwork:1,plugins:[]}),u("optimism-goerli",420,{}),u("xdai",100,{ensNetwork:1})}function mm(u){return JSON.parse(JSON.stringify(u))}var Lr,Yt,qi,rr,s4,I5;class lR0{constructor(e){a0(this,s4);a0(this,Lr,void 0);a0(this,Yt,void 0);a0(this,qi,void 0);a0(this,rr,void 0);M(this,Lr,e),M(this,Yt,null),M(this,qi,4e3),M(this,rr,-2)}get pollingInterval(){return k(this,qi)}set pollingInterval(e){M(this,qi,e)}start(){k(this,Yt)||(M(this,Yt,k(this,Lr)._setTimeout(k0(this,s4,I5).bind(this),k(this,qi))),k0(this,s4,I5).call(this))}stop(){k(this,Yt)&&(k(this,Lr)._clearTimeout(k(this,Yt)),M(this,Yt,null))}pause(e){this.stop(),e&&M(this,rr,-2)}resume(){this.start()}}Lr=new WeakMap,Yt=new WeakMap,qi=new WeakMap,rr=new WeakMap,s4=new WeakSet,I5=async function(){try{const e=await k(this,Lr).getBlockNumber();if(k(this,rr)===-2){M(this,rr,e);return}if(e!==k(this,rr)){for(let t=k(this,rr)+1;t<=e;t++){if(k(this,Yt)==null)return;await k(this,Lr).emit("block",t)}M(this,rr,e)}}catch{}k(this,Yt)!=null&&M(this,Yt,k(this,Lr)._setTimeout(k0(this,s4,I5).bind(this),k(this,qi)))};var Co,mo,Hi;class Hy{constructor(e){a0(this,Co,void 0);a0(this,mo,void 0);a0(this,Hi,void 0);M(this,Co,e),M(this,Hi,!1),M(this,mo,t=>{this._poll(t,k(this,Co))})}async _poll(e,t){throw new Error("sub-classes must override this")}start(){k(this,Hi)||(M(this,Hi,!0),k(this,mo).call(this,-2),k(this,Co).on("block",k(this,mo)))}stop(){k(this,Hi)&&(M(this,Hi,!1),k(this,Co).off("block",k(this,mo)))}pause(e){this.stop()}resume(){this.start()}}Co=new WeakMap,mo=new WeakMap,Hi=new WeakMap;var f4,$r;class cR0 extends Hy{constructor(t,n){super(t);a0(this,f4,void 0);a0(this,$r,void 0);M(this,f4,n),M(this,$r,-2)}pause(t){t&&M(this,$r,-2),super.pause(t)}async _poll(t,n){const r=await n.getBlock(k(this,f4));r!=null&&(k(this,$r)===-2?M(this,$r,r.number):r.number>k(this,$r)&&(n.emit(k(this,f4),r.number),M(this,$r,r.number)))}}f4=new WeakMap,$r=new WeakMap;var _9;class dR0 extends Hy{constructor(t,n){super(t);a0(this,_9,void 0);M(this,_9,mm(n))}async _poll(t,n){throw new Error("@TODO")}}_9=new WeakMap;var l4;class ER0 extends Hy{constructor(t,n){super(t);a0(this,l4,void 0);M(this,l4,n)}async _poll(t,n){const r=await n.getTransactionReceipt(k(this,l4));r&&n.emit(k(this,l4),r)}}l4=new WeakMap;var Ur,c4,d4,Gi,Xt,S9,e$;class Gy{constructor(e,t){a0(this,S9);a0(this,Ur,void 0);a0(this,c4,void 0);a0(this,d4,void 0);a0(this,Gi,void 0);a0(this,Xt,void 0);M(this,Ur,e),M(this,c4,mm(t)),M(this,d4,k0(this,S9,e$).bind(this)),M(this,Gi,!1),M(this,Xt,-2)}start(){k(this,Gi)||(M(this,Gi,!0),k(this,Xt)===-2&&k(this,Ur).getBlockNumber().then(e=>{M(this,Xt,e)}),k(this,Ur).on("block",k(this,d4)))}stop(){k(this,Gi)&&(M(this,Gi,!1),k(this,Ur).off("block",k(this,d4)))}pause(e){this.stop(),e&&M(this,Xt,-2)}resume(){this.start()}}Ur=new WeakMap,c4=new WeakMap,d4=new WeakMap,Gi=new WeakMap,Xt=new WeakMap,S9=new WeakSet,e$=async function(e){if(k(this,Xt)===-2)return;const t=mm(k(this,c4));t.fromBlock=k(this,Xt)+1,t.toBlock=e;const n=await k(this,Ur).getLogs(t);if(n.length===0){k(this,Xt){if(n==null)return"null";if(typeof n=="bigint")return`bigint:${n.toString()}`;if(typeof n=="string")return n.toLowerCase();if(typeof n=="object"&&!Array.isArray(n)){const r=Object.keys(n);return r.sort(),r.reduce((i,a)=>(i[a]=n[a],i),{})}return n})}class t${constructor(e){r0(this,"name");U0(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function CR0(u){return JSON.parse(JSON.stringify(u))}function bm(u){return u=Array.from(new Set(u).values()),u.sort(),u}async function Ih(u,e){if(u==null)throw new Error("invalid event");if(Array.isArray(u)&&(u={topics:u}),typeof u=="string")switch(u){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:u,tag:u}}if(Nu(u,32)){const t=u.toLowerCase();return{type:"transaction",tag:O5("tx",{hash:t}),hash:t}}if(u.orphan){const t=u;return{type:"orphan",tag:O5("orphan",t),filter:CR0(t)}}if(u.address||u.topics){const t=u,n={topics:(t.topics||[]).map(r=>r==null?null:Array.isArray(r)?bm(r.map(i=>i.toLowerCase())):r.toLowerCase())};if(t.address){const r=[],i=[],a=o=>{Nu(o)?r.push(o):i.push((async()=>{r.push(await Ke(o,e))})())};Array.isArray(t.address)?t.address.forEach(a):a(t.address),i.length&&await Promise.all(i),n.address=bm(r.map(o=>o.toLowerCase()))}return{filter:n,tag:O5("event",n),type:"event"}}e0(!1,"unknown ProviderEvent","event",u)}function Oh(){return new Date().getTime()}const mR0={cacheTimeout:250,pollingInterval:4e3};var Ie,Vi,Oe,E4,St,bo,Ki,Wr,tc,un,p4,h4,Ue,wt,nc,gm,rc,Am,go,Il,ic,ym,Ao,Ol,C4,R5;class bR0{constructor(e,t){a0(this,Ue);a0(this,nc);a0(this,rc);a0(this,go);a0(this,ic);a0(this,Ao);a0(this,C4);a0(this,Ie,void 0);a0(this,Vi,void 0);a0(this,Oe,void 0);a0(this,E4,void 0);a0(this,St,void 0);a0(this,bo,void 0);a0(this,Ki,void 0);a0(this,Wr,void 0);a0(this,tc,void 0);a0(this,un,void 0);a0(this,p4,void 0);a0(this,h4,void 0);if(M(this,h4,Object.assign({},mR0,t||{})),e==="any")M(this,bo,!0),M(this,St,null);else if(e){const n=Er.from(e);M(this,bo,!1),M(this,St,Promise.resolve(n)),setTimeout(()=>{this.emit("network",n,null)},0)}else M(this,bo,!1),M(this,St,null);M(this,Wr,-1),M(this,Ki,new Map),M(this,Ie,new Map),M(this,Vi,new Map),M(this,Oe,null),M(this,E4,!1),M(this,tc,1),M(this,un,new Map),M(this,p4,!1)}get pollingInterval(){return k(this,h4).pollingInterval}get provider(){return this}get plugins(){return Array.from(k(this,Vi).values())}attachPlugin(e){if(k(this,Vi).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return k(this,Vi).set(e.name,e.connect(this)),this}getPlugin(e){return k(this,Vi).get(e)||null}get disableCcipRead(){return k(this,p4)}set disableCcipRead(e){M(this,p4,!!e)}async ccipReadFetch(e,t,n){if(this.disableCcipRead||n.length===0||e.to==null)return null;const r=e.to.toLowerCase(),i=t.toLowerCase(),a=[];for(let o=0;o=500,`response not found during CCIP fetch: ${c}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:s,errorMessage:c}}),a.push(c)}E0(!1,`error encountered during CCIP fetch: ${a.map(o=>JSON.stringify(o)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:n,errorMessages:a}})}_wrapBlock(e,t){return new MO0(tR0(e),this)}_wrapLog(e,t){return new u6(uR0(e),this)}_wrapTransactionReceipt(e,t){return new $L(aR0(e),this)}_wrapTransactionResponse(e,t){return new q1(u$(e),this)}_detectNetwork(){E0(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){E0(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=Z0(await k0(this,Ue,wt).call(this,{method:"getBlockNumber"}),"%response");return k(this,Wr)>=0&&M(this,Wr,e),e}_getAddress(e){return Ke(e,this)}_getBlockTag(e){if(e==null)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}if(Nu(e))return Nu(e,32)?e:hf(e);if(typeof e=="bigint"&&(e=Z0(e,"blockTag")),typeof e=="number")return e>=0?hf(e):k(this,Wr)>=0?hf(k(this,Wr)+e):this.getBlockNumber().then(t=>hf(t+e));e0(!1,"invalid blockTag","blockTag",e)}_getFilter(e){const t=(e.topics||[]).map(s=>s==null?null:Array.isArray(s)?bm(s.map(f=>f.toLowerCase())):s.toLowerCase()),n="blockHash"in e?e.blockHash:void 0,r=(s,f,l)=>{let c;switch(s.length){case 0:break;case 1:c=s[0];break;default:s.sort(),c=s}if(n&&(f!=null||l!=null))throw new Error("invalid filter");const d={};return c&&(d.address=c),t.length&&(d.topics=t),f&&(d.fromBlock=f),l&&(d.toBlock=l),n&&(d.blockHash=n),d};let i=[];if(e.address)if(Array.isArray(e.address))for(const s of e.address)i.push(this._getAddress(s));else i.push(this._getAddress(e.address));let a;"fromBlock"in e&&(a=this._getBlockTag(e.fromBlock));let o;return"toBlock"in e&&(o=this._getBlockTag(e.toBlock)),i.filter(s=>typeof s!="string").length||a!=null&&typeof a!="string"||o!=null&&typeof o!="string"?Promise.all([Promise.all(i),a,o]).then(s=>r(s[0],s[1],s[2])):r(i,a,o)}_getTransactionRequest(e){const t=g9(e),n=[];if(["to","from"].forEach(r=>{if(t[r]==null)return;const i=Ke(t[r],this);n5(i)?n.push(async function(){t[r]=await i}()):t[r]=i}),t.blockTag!=null){const r=this._getBlockTag(t.blockTag);n5(r)?n.push(async function(){t.blockTag=await r}()):t.blockTag=r}return n.length?async function(){return await Promise.all(n),t}():t}async getNetwork(){if(k(this,St)==null){const r=this._detectNetwork().then(i=>(this.emit("network",i,null),i),i=>{throw k(this,St)===r&&M(this,St,null),i});return M(this,St,r),(await r).clone()}const e=k(this,St),[t,n]=await Promise.all([e,this._detectNetwork()]);return t.chainId!==n.chainId&&(k(this,bo)?(this.emit("network",n,t),k(this,St)===e&&M(this,St,Promise.resolve(n))):E0(!1,`network changed: ${t.chainId} => ${n.chainId} `,"NETWORK_ERROR",{event:"changed"})),t.clone()}async getFeeData(){const e=await this.getNetwork(),t=async()=>{const{_block:r,gasPrice:i,priorityFee:a}=await qe({_block:k0(this,ic,ym).call(this,"latest",!1),gasPrice:(async()=>{try{const l=await k0(this,Ue,wt).call(this,{method:"getGasPrice"});return j0(l,"%response")}catch{}return null})(),priorityFee:(async()=>{try{const l=await k0(this,Ue,wt).call(this,{method:"getPriorityFee"});return j0(l,"%response")}catch{}return null})()});let o=null,s=null;const f=this._wrapBlock(r,e);return f&&f.baseFeePerGas&&(s=a??BigInt("1000000000"),o=f.baseFeePerGas*pR0+s),new jk(i,o,s)},n=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(n){const r=new ai(n.url),i=await n.processFunc(t,this,r);return new jk(i.gasPrice,i.maxFeePerGas,i.maxPriorityFeePerGas)}return await t()}async estimateGas(e){let t=this._getTransactionRequest(e);return n5(t)&&(t=await t),j0(await k0(this,Ue,wt).call(this,{method:"estimateGas",transaction:t}),"%response")}async call(e){const{tx:t,blockTag:n}=await qe({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await k0(this,rc,Am).call(this,k0(this,nc,gm).call(this,t,n,e.enableCcipRead?0:-1))}async getBalance(e,t){return j0(await k0(this,go,Il).call(this,{method:"getBalance"},e,t),"%response")}async getTransactionCount(e,t){return Z0(await k0(this,go,Il).call(this,{method:"getTransactionCount"},e,t),"%response")}async getCode(e,t){return M0(await k0(this,go,Il).call(this,{method:"getCode"},e,t))}async getStorage(e,t,n){const r=j0(t,"position");return M0(await k0(this,go,Il).call(this,{method:"getStorage",position:r},e,n))}async broadcastTransaction(e){const{blockNumber:t,hash:n,network:r}=await qe({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),i=m9.from(e);if(i.hash!==n)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(i,r).replaceableTransaction(t)}async getBlock(e,t){const{network:n,params:r}=await qe({network:this.getNetwork(),params:k0(this,ic,ym).call(this,e,!!t)});return r==null?null:this._wrapBlock(r,n)}async getTransaction(e){const{network:t,params:n}=await qe({network:this.getNetwork(),params:k0(this,Ue,wt).call(this,{method:"getTransaction",hash:e})});return n==null?null:this._wrapTransactionResponse(n,t)}async getTransactionReceipt(e){const{network:t,params:n}=await qe({network:this.getNetwork(),params:k0(this,Ue,wt).call(this,{method:"getTransactionReceipt",hash:e})});if(n==null)return null;if(n.gasPrice==null&&n.effectiveGasPrice==null){const r=await k0(this,Ue,wt).call(this,{method:"getTransaction",hash:e});if(r==null)throw new Error("report this; could not find tx or effectiveGasPrice");n.effectiveGasPrice=r.gasPrice}return this._wrapTransactionReceipt(n,t)}async getTransactionResult(e){const{result:t}=await qe({network:this.getNetwork(),result:k0(this,Ue,wt).call(this,{method:"getTransactionResult",hash:e})});return t==null?null:M0(t)}async getLogs(e){let t=this._getFilter(e);n5(t)&&(t=await t);const{network:n,params:r}=await qe({network:this.getNetwork(),params:k0(this,Ue,wt).call(this,{method:"getLogs",filter:t})});return r.map(i=>this._wrapLog(i,n))}_getProvider(e){E0(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await y9.fromName(this,e)}async getAvatar(e){const t=await this.getResolver(e);return t?await t.getAvatar():null}async resolveName(e){const t=await this.getResolver(e);return t?await t.getAddress():null}async lookupAddress(e){e=su(e);const t=cm(e.substring(2).toLowerCase()+".addr.reverse");try{const n=await y9.getEnsAddress(this),i=await new Oo(n,["function resolver(bytes32) view returns (address)"],this).resolver(t);if(i==null||i===im)return null;const o=await new Oo(i,["function name(bytes32) view returns (string)"],this).name(t);return await this.resolveName(o)!==e?null:o}catch(n){if(ln(n,"BAD_DATA")&&n.value==="0x"||ln(n,"CALL_EXCEPTION"))return null;throw n}return null}async waitForTransaction(e,t,n){const r=t??1;return r===0?this.getTransactionReceipt(e):new Promise(async(i,a)=>{let o=null;const s=async f=>{try{const l=await this.getTransactionReceipt(e);if(l!=null&&f-l.blockNumber+1>=r){i(l),o&&(clearTimeout(o),o=null);return}}catch(l){console.log("EEE",l)}this.once("block",s)};n!=null&&(o=setTimeout(()=>{o!=null&&(o=null,this.off("block",s),a(ne("timeout","TIMEOUT",{reason:"timeout"})))},n)),s(await this.getBlockNumber())})}async waitForBlock(e){E0(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const t=k(this,un).get(e);t&&(t.timer&&clearTimeout(t.timer),k(this,un).delete(e))}_setTimeout(e,t){t==null&&(t=0);const n=G3(this,tc)._++,r=()=>{k(this,un).delete(n),e()};if(this.paused)k(this,un).set(n,{timer:null,func:r,time:t});else{const i=setTimeout(r,t);k(this,un).set(n,{timer:i,func:r,time:Oh()})}return n}_forEachSubscriber(e){for(const t of k(this,Ie).values())e(t.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new t$(e.type);case"block":{const t=new lR0(this);return t.pollingInterval=this.pollingInterval,t}case"safe":case"finalized":return new cR0(this,e.type);case"event":return new Gy(this,e.filter);case"transaction":return new ER0(this,e.hash);case"orphan":return new dR0(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,t){for(const n of k(this,Ie).values())if(n.subscriber===e){n.started&&n.subscriber.stop(),n.subscriber=t,n.started&&t.start(),k(this,Oe)!=null&&t.pause(k(this,Oe));break}}async on(e,t){const n=await k0(this,C4,R5).call(this,e);return n.listeners.push({listener:t,once:!1}),n.started||(n.subscriber.start(),n.started=!0,k(this,Oe)!=null&&n.subscriber.pause(k(this,Oe))),this}async once(e,t){const n=await k0(this,C4,R5).call(this,e);return n.listeners.push({listener:t,once:!0}),n.started||(n.subscriber.start(),n.started=!0,k(this,Oe)!=null&&n.subscriber.pause(k(this,Oe))),this}async emit(e,...t){const n=await k0(this,Ao,Ol).call(this,e,t);if(!n||n.listeners.length===0)return!1;const r=n.listeners.length;return n.listeners=n.listeners.filter(({listener:i,once:a})=>{const o=new $z(this,a?null:i,e);try{i.call(this,...t,o)}catch{}return!a}),n.listeners.length===0&&(n.started&&n.subscriber.stop(),k(this,Ie).delete(n.tag)),r>0}async listenerCount(e){if(e){const n=await k0(this,Ao,Ol).call(this,e);return n?n.listeners.length:0}let t=0;for(const{listeners:n}of k(this,Ie).values())t+=n.length;return t}async listeners(e){if(e){const n=await k0(this,Ao,Ol).call(this,e);return n?n.listeners.map(({listener:r})=>r):[]}let t=[];for(const{listeners:n}of k(this,Ie).values())t=t.concat(n.map(({listener:r})=>r));return t}async off(e,t){const n=await k0(this,Ao,Ol).call(this,e);if(!n)return this;if(t){const r=n.listeners.map(({listener:i})=>i).indexOf(t);r>=0&&n.listeners.splice(r,1)}return(!t||n.listeners.length===0)&&(n.started&&n.subscriber.stop(),k(this,Ie).delete(n.tag)),this}async removeAllListeners(e){if(e){const{tag:t,started:n,subscriber:r}=await k0(this,C4,R5).call(this,e);n&&r.stop(),k(this,Ie).delete(t)}else for(const[t,{started:n,subscriber:r}]of k(this,Ie))n&&r.stop(),k(this,Ie).delete(t);return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return this.off(e,t)}get destroyed(){return k(this,E4)}destroy(){this.removeAllListeners();for(const e of k(this,un).keys())this._clearTimeout(e);M(this,E4,!0)}get paused(){return k(this,Oe)!=null}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(M(this,Wr,-1),k(this,Oe)!=null){if(k(this,Oe)==!!e)return;E0(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(t=>t.pause(e)),M(this,Oe,!!e);for(const t of k(this,un).values())t.timer&&clearTimeout(t.timer),t.time=Oh()-t.time}resume(){if(k(this,Oe)!=null){this._forEachSubscriber(e=>e.resume()),M(this,Oe,null);for(const e of k(this,un).values()){let t=e.time;t<0&&(t=0),e.time=Oh(),setTimeout(e.func,t)}}}}Ie=new WeakMap,Vi=new WeakMap,Oe=new WeakMap,E4=new WeakMap,St=new WeakMap,bo=new WeakMap,Ki=new WeakMap,Wr=new WeakMap,tc=new WeakMap,un=new WeakMap,p4=new WeakMap,h4=new WeakMap,Ue=new WeakSet,wt=async function(e){const t=k(this,h4).cacheTimeout;if(t<0)return await this._perform(e);const n=O5(e.method,e);let r=k(this,Ki).get(n);return r||(r=this._perform(e),k(this,Ki).set(n,r),setTimeout(()=>{k(this,Ki).get(n)===r&&k(this,Ki).delete(n)},t)),await r},nc=new WeakSet,gm=async function(e,t,n){E0(n=0&&t==="latest"&&r.to!=null&&Wu(i.data,0,4)==="0x556f1830"){const a=i.data,o=await Ke(r.to,this);let s;try{s=BR0(Wu(i.data,4))}catch(c){E0(!1,c.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:r,info:{data:a}})}E0(s.sender.toLowerCase()===o.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:a,reason:"OffchainLookup",transaction:r,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:s.errorArgs}});const f=await this.ccipReadFetch(r,s.calldata,s.urls);E0(f!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:r,info:{data:i.data,errorArgs:s.errorArgs}});const l={to:o,data:fe([s.selector,vR0([f,s.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:l});try{const c=await k0(this,nc,gm).call(this,l,t,n+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},l),result:c}),c}catch(c){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},l),error:c}),c}}throw i}},rc=new WeakSet,Am=async function(e){const{value:t}=await qe({network:this.getNetwork(),value:e});return t},go=new WeakSet,Il=async function(e,t,n){let r=this._getAddress(t),i=this._getBlockTag(n);return(typeof r!="string"||typeof i!="string")&&([r,i]=await Promise.all([r,i])),await k0(this,rc,Am).call(this,k0(this,Ue,wt).call(this,Object.assign(e,{address:r,blockTag:i})))},ic=new WeakSet,ym=async function(e,t){if(Nu(e,32))return await k0(this,Ue,wt).call(this,{method:"getBlock",blockHash:e,includeTransactions:t});let n=this._getBlockTag(e);return typeof n!="string"&&(n=await n),await k0(this,Ue,wt).call(this,{method:"getBlock",blockTag:n,includeTransactions:t})},Ao=new WeakSet,Ol=async function(e,t){let n=await Ih(e,this);return n.type==="event"&&t&&t.length>0&&t[0].removed===!0&&(n=await Ih({orphan:"drop-log",log:t[0]},this)),k(this,Ie).get(n.tag)||null},C4=new WeakSet,R5=async function(e){const t=await Ih(e,this),n=t.tag;let r=k(this,Ie).get(n);return r||(r={subscriber:this._getSubscriber(t),tag:n,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},k(this,Ie).set(n,r)),r};function gR0(u,e){try{const t=vm(u,e);if(t)return Oy(t)}catch{}return null}function vm(u,e){if(u==="0x")return null;try{const t=Z0(Wu(u,e,e+32)),n=Z0(Wu(u,t,t+32));return Wu(u,t+32,t+32+n)}catch{}return null}function Gk(u){const e=jt(u);if(e.length>32)throw new Error("internal; should not happen");const t=new Uint8Array(32);return t.set(e,32-e.length),t}function AR0(u){if(u.length%32===0)return u;const e=new Uint8Array(Math.ceil(u.length/32)*32);return e.set(u),e}const yR0=new Uint8Array([]);function vR0(u){const e=[];let t=0;for(let n=0;n=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const t=Wu(u,0,32);E0(Wu(t,0,12)===Wu(Vk,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),e.sender=Wu(t,12);try{const n=[],r=Z0(Wu(u,32,64)),i=Z0(Wu(u,r,r+32)),a=Wu(u,r+32);for(let o=0;oe[n]),e}function Rs(u,e){if(u.provider)return u.provider;E0(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:e})}async function Kk(u,e){let t=g9(e);if(t.to!=null&&(t.to=Ke(t.to,u)),t.from!=null){const n=t.from;t.from=Promise.all([u.getAddress(),Ke(n,u)]).then(([r,i])=>(e0(r.toLowerCase()===i.toLowerCase(),"transaction from mismatch","tx.from",i),r))}else t.from=u.getAddress();return await qe(t)}class FR0{constructor(e){r0(this,"provider");U0(this,{provider:e||null})}async getNonce(e){return Rs(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await Kk(this,e)}async populateTransaction(e){const t=Rs(this,"populateTransaction"),n=await Kk(this,e);n.nonce==null&&(n.nonce=await this.getNonce("pending")),n.gasLimit==null&&(n.gasLimit=await this.estimateGas(n));const r=await this.provider.getNetwork();if(n.chainId!=null){const a=j0(n.chainId);e0(a===r.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else n.chainId=r.chainId;const i=n.maxFeePerGas!=null||n.maxPriorityFeePerGas!=null;if(n.gasPrice!=null&&(n.type===2||i)?e0(!1,"eip-1559 transaction do not support gasPrice","tx",e):(n.type===0||n.type===1)&&i&&e0(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(n.type===2||n.type==null)&&n.maxFeePerGas!=null&&n.maxPriorityFeePerGas!=null)n.type=2;else if(n.type===0||n.type===1){const a=await t.getFeeData();E0(a.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),n.gasPrice==null&&(n.gasPrice=a.gasPrice)}else{const a=await t.getFeeData();if(n.type==null)if(a.maxFeePerGas!=null&&a.maxPriorityFeePerGas!=null)if(n.type=2,n.gasPrice!=null){const o=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=o,n.maxPriorityFeePerGas=o}else n.maxFeePerGas==null&&(n.maxFeePerGas=a.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=a.maxPriorityFeePerGas);else a.gasPrice!=null?(E0(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),n.gasPrice==null&&(n.gasPrice=a.gasPrice),n.type=0):E0(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else n.type===2&&(n.maxFeePerGas==null&&(n.maxFeePerGas=a.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=a.maxPriorityFeePerGas))}return await qe(n)}async estimateGas(e){return Rs(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return Rs(this,"call").call(await this.populateCall(e))}async resolveName(e){return await Rs(this,"resolveName").resolveName(e)}async sendTransaction(e){const t=Rs(this,"sendTransaction"),n=await this.populateTransaction(e);delete n.from;const r=m9.from(n);return await t.broadcastTransaction(await this.signTransaction(r))}}function DR0(u){return JSON.parse(JSON.stringify(u))}var ot,ir,yo,Qi,vo,m4,ac,Bm,oc,Fm;class n${constructor(e){a0(this,ac);a0(this,oc);a0(this,ot,void 0);a0(this,ir,void 0);a0(this,yo,void 0);a0(this,Qi,void 0);a0(this,vo,void 0);a0(this,m4,void 0);M(this,ot,e),M(this,ir,null),M(this,yo,k0(this,ac,Bm).bind(this)),M(this,Qi,!1),M(this,vo,null),M(this,m4,!1)}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,t){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}start(){k(this,Qi)||(M(this,Qi,!0),k0(this,ac,Bm).call(this,-2))}stop(){k(this,Qi)&&(M(this,Qi,!1),M(this,m4,!0),k0(this,oc,Fm).call(this),k(this,ot).off("block",k(this,yo)))}pause(e){e&&k0(this,oc,Fm).call(this),k(this,ot).off("block",k(this,yo))}resume(){this.start()}}ot=new WeakMap,ir=new WeakMap,yo=new WeakMap,Qi=new WeakMap,vo=new WeakMap,m4=new WeakMap,ac=new WeakSet,Bm=async function(e){try{k(this,ir)==null&&M(this,ir,this._subscribe(k(this,ot)));let t=null;try{t=await k(this,ir)}catch(i){if(!ln(i,"UNSUPPORTED_OPERATION")||i.operation!=="eth_newFilter")throw i}if(t==null){M(this,ir,null),k(this,ot)._recoverSubscriber(this,this._recover(k(this,ot)));return}const n=await k(this,ot).getNetwork();if(k(this,vo)||M(this,vo,n),k(this,vo).chainId!==n.chainId)throw new Error("chaid changed");if(k(this,m4))return;const r=await k(this,ot).send("eth_getFilterChanges",[t]);await this._emitResults(k(this,ot),r)}catch(t){console.log("@TODO",t)}k(this,ot).once("block",k(this,yo))},oc=new WeakSet,Fm=function(){const e=k(this,ir);e&&(M(this,ir,null),e.then(t=>{k(this,ot).send("eth_uninstallFilter",[t])}))};var Bo;class wR0 extends n${constructor(t,n){super(t);a0(this,Bo,void 0);M(this,Bo,DR0(n))}_recover(t){return new Gy(t,k(this,Bo))}async _subscribe(t){return await t.send("eth_newFilter",[k(this,Bo)])}async _emitResults(t,n){for(const r of n)t.emit(k(this,Bo),t._wrapLog(r,t._network))}}Bo=new WeakMap;class xR0 extends n${async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,t){for(const n of t)e.emit("pending",n)}}const kR0="bigint,boolean,function,number,string,symbol".split(/,/g);function N5(u){if(u==null||kR0.indexOf(typeof u)>=0||typeof u.getAddress=="function")return u;if(Array.isArray(u))return u.map(N5);if(typeof u=="object")return Object.keys(u).reduce((e,t)=>(e[t]=u[t],e),{});throw new Error(`should not happen: ${u} (${typeof u})`)}function _R0(u){return new Promise(e=>{setTimeout(e,u)})}function Ns(u){return u&&u.toLowerCase()}function Qk(u){return u&&typeof u.pollingInterval=="number"}const SR0={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class Rh extends FR0{constructor(t,n){super(t);r0(this,"address");n=su(n),U0(this,{address:n})}connect(t){E0(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(t){return await this.populateCall(t)}async sendUncheckedTransaction(t){const n=N5(t),r=[];if(n.from){const a=n.from;r.push((async()=>{const o=await Ke(a,this.provider);e0(o!=null&&o.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",t),n.from=o})())}else n.from=this.address;if(n.gasLimit==null&&r.push((async()=>{n.gasLimit=await this.provider.estimateGas({...n,from:this.address})})()),n.to!=null){const a=n.to;r.push((async()=>{n.to=await Ke(a,this.provider)})())}r.length&&await Promise.all(r);const i=this.provider.getRpcTransaction(n);return this.provider.send("eth_sendTransaction",[i])}async sendTransaction(t){const n=await this.provider.getBlockNumber(),r=await this.sendUncheckedTransaction(t);return await new Promise((i,a)=>{const o=[1e3,100],s=async()=>{const f=await this.provider.getTransaction(r);if(f!=null){i(f.replaceableTransaction(n));return}this.provider._setTimeout(()=>{s()},o.pop()||4e3)};s()})}async signTransaction(t){const n=N5(t);if(n.from){const i=await Ke(n.from,this.provider);e0(i!=null&&i.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",t),n.from=i}else n.from=this.address;const r=this.provider.getRpcTransaction(n);return await this.provider.send("eth_signTransaction",[r])}async signMessage(t){const n=typeof t=="string"?Jr(t):t;return await this.provider.send("personal_sign",[M0(n),this.address.toLowerCase()])}async signTypedData(t,n,r){const i=N5(r),a=await b9.resolveNames(t,n,i,async o=>{const s=await Ke(o);return e0(s!=null,"TypedData does not support null address","value",o),s});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(b9.getPayload(a.domain,n,a.value))])}async unlock(t){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),t,null])}async _legacySignMessage(t){const n=typeof t=="string"?Jr(t):t;return await this.provider.send("eth_sign",[this.address.toLowerCase(),M0(n)])}}var Fo,b4,qr,ar,Tn,en,Tt,sc,Dm;class TR0 extends bR0{constructor(t,n){super(t,n);a0(this,sc);a0(this,Fo,void 0);a0(this,b4,void 0);a0(this,qr,void 0);a0(this,ar,void 0);a0(this,Tn,void 0);a0(this,en,void 0);a0(this,Tt,void 0);M(this,b4,1),M(this,Fo,Object.assign({},SR0,n||{})),M(this,qr,[]),M(this,ar,null),M(this,en,null),M(this,Tt,null);{let i=null;const a=new Promise(o=>{i=o});M(this,Tn,{promise:a,resolve:i})}const r=this._getOption("staticNetwork");typeof r=="boolean"?(e0(!r||t!=="any","staticNetwork cannot be used on special network 'any'","options",n),r&&t!=null&&M(this,en,Er.from(t))):r&&(e0(t==null||r.matches(t),"staticNetwork MUST match network object","options",n),M(this,en,r))}_getOption(t){return k(this,Fo)[t]}get _network(){return E0(k(this,en),"network is not available yet","NETWORK_ERROR"),k(this,en)}async _perform(t){if(t.method==="call"||t.method==="estimateGas"){let r=t.transaction;if(r&&r.type!=null&&j0(r.type)&&r.maxFeePerGas==null&&r.maxPriorityFeePerGas==null){const i=await this.getFeeData();i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(t=Object.assign({},t,{transaction:Object.assign({},r,{type:void 0})}))}}const n=this.getRpcRequest(t);return n!=null?await this.send(n.method,n.args):super._perform(t)}async _detectNetwork(){const t=this._getOption("staticNetwork");if(t)if(t===!0){if(k(this,en))return k(this,en)}else return t;return k(this,Tt)?await k(this,Tt):this.ready?(M(this,Tt,(async()=>{const n=Er.from(j0(await this.send("eth_chainId",[])));return M(this,Tt,null),n})()),await k(this,Tt)):(M(this,Tt,(async()=>{const n={id:G3(this,b4)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:n});let r;try{r=(await this._send(n))[0],M(this,Tt,null)}catch(i){throw M(this,Tt,null),this.emit("debug",{action:"receiveRpcError",error:i}),i}if(this.emit("debug",{action:"receiveRpcResult",result:r}),"result"in r)return Er.from(j0(r.result));throw this.getRpcError(n,r)})()),await k(this,Tt))}_start(){k(this,Tn)==null||k(this,Tn).resolve==null||(k(this,Tn).resolve(),M(this,Tn,null),(async()=>{for(;k(this,en)==null&&!this.destroyed;)try{M(this,en,await this._detectNetwork())}catch(t){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",ne("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:t}})),await _R0(1e3)}k0(this,sc,Dm).call(this)})())}async _waitUntilReady(){if(k(this,Tn)!=null)return await k(this,Tn).promise}_getSubscriber(t){return t.type==="pending"?new xR0(this):t.type==="event"?this._getOption("polling")?new Gy(this,t.filter):new wR0(this,t.filter):t.type==="orphan"&&t.filter.orphan==="drop-log"?new t$("orphan"):super._getSubscriber(t)}get ready(){return k(this,Tn)==null}getRpcTransaction(t){const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(r=>{if(t[r]==null)return;let i=r;r==="gasLimit"&&(i="gas"),n[i]=hf(j0(t[r],`tx.${r}`))}),["from","to","data"].forEach(r=>{t[r]!=null&&(n[r]=M0(t[r]))}),t.accessList&&(n.accessList=As(t.accessList)),n}getRpcRequest(t){switch(t.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[Ns(t.address),t.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[Ns(t.address),t.blockTag]};case"getCode":return{method:"eth_getCode",args:[Ns(t.address),t.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[Ns(t.address),"0x"+t.position.toString(16),t.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[t.signedTransaction]};case"getBlock":if("blockTag"in t)return{method:"eth_getBlockByNumber",args:[t.blockTag,!!t.includeTransactions]};if("blockHash"in t)return{method:"eth_getBlockByHash",args:[t.blockHash,!!t.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[t.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[t.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(t.transaction),t.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(t.transaction)]};case"getLogs":return t.filter&&t.filter.address!=null&&(Array.isArray(t.filter.address)?t.filter.address=t.filter.address.map(Ns):t.filter.address=Ns(t.filter.address)),{method:"eth_getLogs",args:[t.filter]}}return null}getRpcError(t,n){const{method:r}=t,{error:i}=n;if(r==="eth_estimateGas"&&i.message){const s=i.message;if(!s.match(/revert/i)&&s.match(/insufficient funds/i))return ne("insufficient funds","INSUFFICIENT_FUNDS",{transaction:t.params[0],info:{payload:t,error:i}})}if(r==="eth_call"||r==="eth_estimateGas"){const s=wm(i),f=W1.getBuiltinCallException(r==="eth_call"?"call":"estimateGas",t.params[0],s?s.data:null);return f.info={error:i,payload:t},f}const a=JSON.stringify(IR0(i));if(typeof i.message=="string"&&i.message.match(/user denied|ethers-user-denied/i))return ne("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[r]||"unknown",reason:"rejected",info:{payload:t,error:i}});if(r==="eth_sendRawTransaction"||r==="eth_sendTransaction"){const s=t.params[0];if(a.match(/insufficient funds|base fee exceeds gas limit/i))return ne("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:s,info:{error:i}});if(a.match(/nonce/i)&&a.match(/too low/i))return ne("nonce has already been used","NONCE_EXPIRED",{transaction:s,info:{error:i}});if(a.match(/replacement transaction/i)&&a.match(/underpriced/i))return ne("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:s,info:{error:i}});if(a.match(/only replay-protected/i))return ne("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:r,info:{transaction:s,info:{error:i}}})}let o=!!a.match(/the method .* does not exist/i);return o||i&&i.details&&i.details.startsWith("Unauthorized method:")&&(o=!0),o?ne("unsupported operation","UNSUPPORTED_OPERATION",{operation:t.method,info:{error:i,payload:t}}):ne("could not coalesce error","UNKNOWN_ERROR",{error:i,payload:t})}send(t,n){if(this.destroyed)return Promise.reject(ne("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:t}));const r=G3(this,b4)._++,i=new Promise((a,o)=>{k(this,qr).push({resolve:a,reject:o,payload:{method:t,params:n,id:r,jsonrpc:"2.0"}})});return k0(this,sc,Dm).call(this),i}async getSigner(t){t==null&&(t=0);const n=this.send("eth_accounts",[]);if(typeof t=="number"){const i=await n;if(t>=i.length)throw new Error("no such account");return new Rh(this,i[t])}const{accounts:r}=await qe({network:this.getNetwork(),accounts:n});t=su(t);for(const i of r)if(su(i)===t)return new Rh(this,t);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(n=>new Rh(this,n))}destroy(){k(this,ar)&&(clearTimeout(k(this,ar)),M(this,ar,null));for(const{payload:t,reject:n}of k(this,qr))n(ne("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:t.method}));M(this,qr,[]),super.destroy()}}Fo=new WeakMap,b4=new WeakMap,qr=new WeakMap,ar=new WeakMap,Tn=new WeakMap,en=new WeakMap,Tt=new WeakMap,sc=new WeakSet,Dm=function(){if(k(this,ar))return;const t=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");M(this,ar,setTimeout(()=>{M(this,ar,null);const n=k(this,qr);for(M(this,qr,[]);n.length;){const r=[n.shift()];for(;n.length&&r.length!==k(this,Fo).batchMaxCount;)if(r.push(n.shift()),JSON.stringify(r.map(a=>a.payload)).length>k(this,Fo).batchMaxSize){n.unshift(r.pop());break}(async()=>{const i=r.length===1?r[0].payload:r.map(a=>a.payload);this.emit("debug",{action:"sendRpcPayload",payload:i});try{const a=await this._send(i);this.emit("debug",{action:"receiveRpcResult",result:a});for(const{resolve:o,reject:s,payload:f}of r){if(this.destroyed){s(ne("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:f.method}));continue}const l=a.filter(c=>c.id===f.id)[0];if(l==null){const c=ne("missing response for request","BAD_DATA",{value:a,info:{payload:f}});this.emit("error",c),s(c);continue}if("error"in l){s(this.getRpcError(f,l));continue}o(l.result)}}catch(a){this.emit("debug",{action:"receiveRpcError",error:a});for(const{reject:o}of r)o(a)}})()}},t))};var Ji;class PR0 extends TR0{constructor(t,n){super(t,n);a0(this,Ji,void 0);M(this,Ji,4e3)}_getSubscriber(t){const n=super._getSubscriber(t);return Qk(n)&&(n.pollingInterval=k(this,Ji)),n}get pollingInterval(){return k(this,Ji)}set pollingInterval(t){if(!Number.isInteger(t)||t<0)throw new Error("invalid interval");M(this,Ji,t),this._forEachSubscriber(n=>{Qk(n)&&(n.pollingInterval=k(this,Ji))})}}Ji=new WeakMap;var g4;class r$ extends PR0{constructor(t,n,r){t==null&&(t="http://localhost:8545");super(n,r);a0(this,g4,void 0);typeof t=="string"?M(this,g4,new ai(t)):M(this,g4,t.clone())}_getConnection(){return k(this,g4).clone()}async send(t,n){return await this._start(),await super.send(t,n)}async _send(t){const n=this._getConnection();n.body=JSON.stringify(t),n.setHeader("content-type","application/json");const r=await n.send();r.assertOk();let i=r.bodyJson;return Array.isArray(i)||(i=[i]),i}}g4=new WeakMap;function wm(u){if(u==null)return null;if(typeof u.message=="string"&&u.message.match(/revert/i)&&Nu(u.data))return{message:u.message,data:u.data};if(typeof u=="object"){for(const e in u){const t=wm(u[e]);if(t)return t}return null}if(typeof u=="string")try{return wm(JSON.parse(u))}catch{}return null}function xm(u,e){if(u!=null){if(typeof u.message=="string"&&e.push(u.message),typeof u=="object")for(const t in u)xm(u[t],e);if(typeof u=="string")try{return xm(JSON.parse(u),e)}catch{}}}function IR0(u){const e=[];return xm(u,e),e}function OR0(u){if(u.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),t=0;t>>0,A=new Uint8Array(m);g!==b;){for(var y=E[g],B=0,v=m-1;(y!==0||B>>0,A[v]=y%a>>>0,y=y/a>>>0;if(y!==0)throw new Error("Non-zero carry");h=B,g++}for(var C=m-h;C!==m&&A[C]===0;)C++;for(var D=o.repeat(p);C>>0,m=new Uint8Array(b);E[p];){var A=e[E.charCodeAt(p)];if(A===255)return;for(var y=0,B=b-1;(A!==0||y>>0,m[B]=A%256>>>0,A=A/256>>>0;if(A!==0)throw new Error("Non-zero carry");g=y,p++}for(var v=b-g;v!==b&&m[v]===0;)v++;for(var C=new Uint8Array(h+(b-v)),D=h;v!==b;)C[D++]=m[v++];return C}function d(E){var p=c(E);if(p)return p;throw new Error("Non-base"+a+" character")}return{encode:l,decodeUnsafe:c,decode:d}}var RR0=OR0;const NR0=RR0,MR0="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";var jR0=NR0(MR0);const i$=f3(jR0);function zR0(u){const e=i$.decode(u).slice(2);return"0x"+Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}function Vy(u){const t="1220"+u.toString(16),n=LR0(t);return i$.encode(n)}function LR0(u){let e=[];for(let t=0;t{const a=new r$("https://polygon-mumbai.g.alchemy.com/v2/BmepUpwxd86PJSuisn7P4f3lZJSqcAUt"),o=em.abi,s=new Oo(Va,o,a),l={address:Va,fromBlock:0,toBlock:"latest",topics:[va("TokenListed(uint256,address,uint256,uint256)")]};try{const d=(await a.getLogs(l)).map(E=>{const p=[...E.topics],h={...E,topics:p};return s.interface.parseLog(h)});return console.log(d),d}catch(c){console.error("Error fetching events: ",c)}},t=a=>{console.log("Clicked on NFT with Address",a),u("/real-token/Explore/"+a)},[n,r]=w.useState(),i=async()=>{var d,E;console.log("Trying to fetch all Listed NFTs... ");const a=await e(),o=a==null?void 0:a.map(p=>Vy(p==null?void 0:p.args[0])),s=o==null?void 0:o.map(async p=>await(await fetch("https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/"+p)).json());var f;const l=[];if(s){f=await Promise.all(s);for(var c=0;c{i()},[]),K.jsx(r3,{container:!0,padding:5,direction:"row",spacing:5,justifyContent:"center",alignItems:"flex-start",children:n==null?void 0:n.map(a=>K.jsx(r3,{item:!0,children:K.jsx(mP0,{NFT:a,onClick:()=>t(a.tokenId)})}))})}const UR0="hh-sol-artifact-1",WR0="FractionalizedNFT",qR0="contracts/FractionalizedNFT.sol",HR0=[{inputs:[{internalType:"address",name:"defaultAdmin",type:"address"},{internalType:"address",name:"_reserver",type:"address"},{internalType:"string",name:"uri",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessControlBadConfirmation",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"bytes32",name:"neededRole",type:"bytes32"}],name:"AccessControlUnauthorizedAccount",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"balance",type:"uint256"},{internalType:"uint256",name:"needed",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ERC1155InsufficientBalance",type:"error"},{inputs:[{internalType:"address",name:"approver",type:"address"}],name:"ERC1155InvalidApprover",type:"error"},{inputs:[{internalType:"uint256",name:"idsLength",type:"uint256"},{internalType:"uint256",name:"valuesLength",type:"uint256"}],name:"ERC1155InvalidArrayLength",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"ERC1155InvalidOperator",type:"error"},{inputs:[{internalType:"address",name:"receiver",type:"address"}],name:"ERC1155InvalidReceiver",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"}],name:"ERC1155InvalidSender",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"address",name:"owner",type:"address"}],name:"ERC1155MissingApprovalForAll",type:"error"},{inputs:[],name:"EnforcedPause",type:"error"},{inputs:[],name:"ExpectedPause",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"AmountApproved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"from",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"AmountTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"OwnershipRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"TokenMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_TOKEN_AMOUNT",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MINTER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"PAUSER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"URI_SETTER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"address",name:"operator",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getMetadata",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getOwnedTokens",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getOwnershipAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getOwnershipPercentage",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"metadata",type:"string"},{internalType:"bool",name:"reservable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],name:"mint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint8",name:"count",type:"uint8"},{internalType:"uint256[]",name:"tokenId",type:"uint256[]"},{internalType:"string[]",name:"metadata",type:"string[]"},{internalType:"bool",name:"reservable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],name:"mintBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"removeApproval",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"callerConfirmation",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_reserver",type:"address"}],name:"setReserver",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"newuri",type:"string"}],name:"setURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"transfer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],GR0="0x60806040523480156200001157600080fd5b5060405162005b0838038062005b088339818101604052810190620000379190620004e2565b8062000049816200015e60201b60201c565b506000600460006101000a81548160ff0219169083151502179055506200007a6000801b846200017360201b60201c565b50620000ad7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a846200017360201b60201c565b50620000e07f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6846200017360201b60201c565b50620001137f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c846200017360201b60201c565b5081600460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050506200088f565b80600290816200016f9190620007a8565b5050565b60006200018783836200027760201b60201c565b6200026c5760016003600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555062000208620002e260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001905062000271565b600090505b92915050565b60006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200032b82620002fe565b9050919050565b6200033d816200031e565b81146200034957600080fd5b50565b6000815190506200035d8162000332565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620003b8826200036d565b810181811067ffffffffffffffff82111715620003da57620003d96200037e565b5b80604052505050565b6000620003ef620002ea565b9050620003fd8282620003ad565b919050565b600067ffffffffffffffff82111562000420576200041f6200037e565b5b6200042b826200036d565b9050602081019050919050565b60005b83811015620004585780820151818401526020810190506200043b565b60008484015250505050565b60006200047b620004758462000402565b620003e3565b9050828152602081018484840111156200049a576200049962000368565b5b620004a784828562000438565b509392505050565b600082601f830112620004c757620004c662000363565b5b8151620004d984826020860162000464565b91505092915050565b600080600060608486031215620004fe57620004fd620002f4565b5b60006200050e868287016200034c565b935050602062000521868287016200034c565b925050604084015167ffffffffffffffff811115620005455762000544620002f9565b5b6200055386828701620004af565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620005b057607f821691505b602082108103620005c657620005c562000568565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006307fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620005f1565b6200063c8683620005f1565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000689620006836200067d8462000654565b6200065e565b62000654565b9050919050565b6000819050919050565b620006a58362000668565b620006bd620006b48262000690565b848454620005fe565b825550505050565b600090565b620006d4620006c5565b620006e18184846200069a565b505050565b5b818110156200070957620006fd600082620006ca565b600181019050620006e7565b5050565b601f82111562000758576200072281620005cc565b6200072d84620005e1565b810160208510156200073d578190505b620007556200074c85620005e1565b830182620006e6565b50505b505050565b600082821c905092915050565b60006200077d600019846008026200075d565b1980831691505092915050565b60006200079883836200076a565b9150826002028217905092915050565b620007b3826200055d565b67ffffffffffffffff811115620007cf57620007ce6200037e565b5b620007db825462000597565b620007e88282856200070d565b600060209050601f8311600181146200082057600084156200080b578287015190505b6200081785826200078a565b86555062000887565b601f1984166200083086620005cc565b60005b828110156200085a5784890151825560018201915060208501945060208101905062000833565b868310156200087a578489015162000876601f8916826200076a565b8355505b6001600288020188555050505b505050505050565b615269806200089f6000396000f3fe608060405234801561001057600080fd5b50600436106102265760003560e01c8063829e47e511610130578063d5391393116100b8578063e63ab1e91161007c578063e63ab1e91461066d578063e985e9c51461068b578063ee4525d5146106bb578063f242432a146106eb578063f5298aca1461070757610226565b8063d5391393146105a3578063d547741f146105c1578063d9d61655146105dd578063e345e0bc1461060d578063e62de01b1461063d57610226565b8063a0a124dd116100ff578063a0a124dd14610501578063a217fddf1461051d578063a22cb4651461053b578063a574cea414610557578063b537b2691461058757610226565b8063829e47e51461048f5780638456cb59146104ab5780638cb0a511146104b557806391d14854146104d157610226565b80632fecd4bb116101b35780635c975abb116101825780635c975abb146103ff578063605105f01461041d5780636b20c454146104395780637f34571014610455578063813f3fe91461047357610226565b80632fecd4bb1461037957806336568abe146103a95780633f4ba83a146103c55780634e1273f4146103cf57610226565b8063127217d6116101fa578063127217d6146102d75780631e9c2d67146102f3578063248a9ca3146103115780632eb2c2d6146103415780632f2ff15d1461035d57610226565b8062fdd58e1461022b57806301ffc9a71461025b57806302fe53051461028b5780630e89341c146102a7575b600080fd5b6102456004803603810190610240919061388d565b610723565b60405161025291906138dc565b60405180910390f35b6102756004803603810190610270919061394f565b61077d565b6040516102829190613997565b60405180910390f35b6102a560048036038101906102a09190613af8565b61078f565b005b6102c160048036038101906102bc9190613b41565b6107c6565b6040516102ce9190613bed565b60405180910390f35b6102f160048036038101906102ec9190613cb0565b61085a565b005b6102fb610b49565b60405161030891906138dc565b60405180910390f35b61032b60048036038101906103269190613d7d565b610b4f565b6040516103389190613db9565b60405180910390f35b61035b60048036038101906103569190613e9c565b610b6f565b005b61037760048036038101906103729190613f6b565b610c17565b005b610393600480360381019061038e919061388d565b610c39565b6040516103a091906138dc565b60405180910390f35b6103c360048036038101906103be9190613f6b565b610c94565b005b6103cd610d0f565b005b6103e960048036038101906103e4919061406e565b610d44565b6040516103f691906141a4565b60405180910390f35b610407610e53565b6040516104149190613997565b60405180910390f35b61043760048036038101906104329190613cb0565b610e6a565b005b610453600480360381019061044e91906141c6565b610edb565b005b61045d610f87565b60405161046a9190613db9565b60405180910390f35b61048d60048036038101906104889190614397565b610fab565b005b6104a960048036038101906104a49190614478565b611407565b005b6104b3611688565b005b6104cf60048036038101906104ca919061452b565b6116bd565b005b6104eb60048036038101906104e69190613f6b565b61192a565b6040516104f89190613997565b60405180910390f35b61051b6004803603810190610516919061457e565b611995565b005b6105256119e7565b6040516105329190613db9565b60405180910390f35b610555600480360381019061055091906145ab565b6119ee565b005b610571600480360381019061056c9190613b41565b611a04565b60405161057e9190613bed565b60405180910390f35b6105a1600480360381019061059c919061388d565b611aa9565b005b6105ab611ba8565b6040516105b89190613db9565b60405180910390f35b6105db60048036038101906105d69190613f6b565b611bcc565b005b6105f760048036038101906105f2919061457e565b611bee565b60405161060491906141a4565b60405180910390f35b610627600480360381019061062291906145eb565b611c85565b60405161063491906138dc565b60405180910390f35b6106576004803603810190610652919061388d565b611ce3565b60405161066491906138dc565b60405180910390f35b610675611d57565b6040516106829190613db9565b60405180910390f35b6106a560048036038101906106a0919061462b565b611d7b565b6040516106b29190613997565b60405180910390f35b6106d560048036038101906106d09190613b41565b611e0f565b6040516106e29190614729565b60405180910390f35b61070560048036038101906107009190613cb0565b611eb0565b005b610721600480360381019061071c919061474b565b611f58565b005b600080600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061078882612004565b9050919050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c6107b98161207e565b6107c282612092565b5050565b6060600280546107d5906147cd565b80601f0160208091040260200160405190810160405280929190818152602001828054610801906147cd565b801561084e5780601f106108235761010080835404028352916020019161084e565b820191906000526020600020905b81548152906001019060200180831161083157829003601f168201915b50505050509050919050565b816006600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156108ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e49061484a565b60405180910390fd5b816006600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461094d9190614899565b925050819055506109618585858585611eb0565b816006600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546109c191906148cd565b9250508190555060076000848152602001908152602001600020849080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002083908060018154018082558091505060019003906000526020600020016000909190919091505560006006600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205403610b0557610b0483866120a5565b5b7feeb0e676a4fccb21187462c64b95d0e58742fed59dbc3a8795d8e8ff8ccfba1683868685604051610b3a9493929190614910565b60405180910390a15050505050565b61271081565b600060036000838152602001908152602001600020600101549050919050565b6000610b7961243a565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015610bbe5750610bbc8682611d7b565b155b15610c025780866040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610bf9929190614955565b60405180910390fd5b610c0f8686868686612442565b505050505050565b610c2082610b4f565b610c298161207e565b610c33838361253a565b50505050565b60006006600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610c9c61243a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d00576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d0a828261262c565b505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d398161207e565b610d4161271f565b50565b60608151835114610d9057815183516040517f5b059991000000000000000000000000000000000000000000000000000000008152600401610d8792919061497e565b60405180910390fd5b6000835167ffffffffffffffff811115610dad57610dac6139cd565b5b604051908082528060200260200182016040528015610ddb5781602001602082028036833780820191505090505b50905060005b8451811015610e4857610e18610e00828761278290919063ffffffff16565b610e13838761279690919063ffffffff16565b610723565b828281518110610e2b57610e2a6149a7565b5b60200260200101818152505080610e41906149d6565b9050610de1565b508091505092915050565b6000600460009054906101000a900460ff16905090565b6000610e768433611c85565b905082811015610ebb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb290614a6a565b60405180910390fd5b610ec63385856127aa565b610ed3868686868661085a565b505050505050565b610ee361243a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610f2c5750610f2a83610f2561243a565b611d7b565b155b15610f7757610f3961243a565b836040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610f6e929190614955565b60405180910390fd5b610f8283838361286b565b505050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c81565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610fd58161207e565b82156110f95760005b8660ff168160ff1610156110f757600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632228adcc878360ff16815181106110405761103f6149a7565b5b60200260200101516040518263ffffffff1660e01b815260040161106491906138dc565b602060405180830381865afa158015611081573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a59190614a9f565b6110e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110db90614b18565b60405180910390fd5b80806110ef90614b38565b915050610fde565b505b60008660ff1667ffffffffffffffff811115611118576111176139cd565b5b6040519080825280602002602001820160405280156111465781602001602082028036833780820191505090505b50905060005b8760ff168160ff16101561119257612710828260ff1681518110611173576111726149a7565b5b602002602001018181525050808061118a90614b38565b91505061114c565b5061119f888783866128ff565b60005b86518110156113fc578181815181106111be576111bd6149a7565b5b6020026020010151600660008984815181106111dd576111dc6149a7565b5b6020026020010151815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020878281518110611286576112856149a7565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190915055600760008883815181106112cb576112ca6149a7565b5b60200260200101518152602001908152602001600020899080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550858181518110611355576113546149a7565b5b602002602001015160056000898481518110611374576113736149a7565b5b6020026020010151815260200190815260200160002090816113969190614d0d565b508681815181106113aa576113a96149a7565b5b60200260200101517f3a5398bda6f1f57d6c96834fa9bf02b5517bdc847d14312015a917ba421c31c98a6040516113e19190614ddf565b60405180910390a280806113f4906149d6565b9150506111a2565b505050505050505050565b81156114e957600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632228adcc856040518263ffffffff1660e01b815260040161146891906138dc565b602060405180830381865afa158015611485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a99190614a9f565b6114e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114df90614b18565b60405180910390fd5b5b6114f7858561271084612985565b826005600086815260200190815260200160002090816115179190614d0d565b506127106006600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060076000858152602001908152602001600020859080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020849080600181540180825580915050600190039060005260206000200160009091909190915055837f3a5398bda6f1f57d6c96834fa9bf02b5517bdc847d14312015a917ba421c31c9866040516116799190614ddf565b60405180910390a25050505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6116b28161207e565b6116ba612a1e565b50565b806006600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611750576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174790614a6a565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16036117be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b590614e46565b60405180910390fd5b6117c98260016119ee565b600060096000858152602001908152602001600020905060008160010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020540361188f5780600001839080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b818160010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff16847f7a5c69a7c393db8f307d6fea9c8addb8c18644d1172a623792a4017298a1a5828460405161191c91906138dc565b60405180910390a350505050565b60006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b6119a28161207e565b81600460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000801b81565b611a006119f961243a565b8383612a81565b5050565b6060600560008381526020019081526020016000208054611a24906147cd565b80601f0160208091040260200160405190810160405280929190818152602001828054611a50906147cd565b8015611a9d5780601f10611a7257610100808354040283529160200191611a9d565b820191906000526020600020905b815481529060010190602001808311611a8057829003601f168201915b50505050509050919050565b60006006600083815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411611b3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3390614ed8565b60405180910390fd5b6000611b488284611c85565b905060008111611b8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8490614f44565b60405180910390fd5b611b988383836127aa565b611ba38360006119ee565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b611bd582610b4f565b611bde8161207e565b611be8838361262c565b50505050565b6060600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611c7957602002820191906000526020600020905b815481526020019060010190808311611c65575b50505050509050919050565b60006009600084815260200190815260200160002060010160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061271060646006600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d459190614f64565b611d4f9190614fd5565b905092915050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060076000838152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611ea457602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611e5a575b50505050509050919050565b6000611eba61243a565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015611eff5750611efd8682611d7b565b155b15611f435780866040517fe237d922000000000000000000000000000000000000000000000000000000008152600401611f3a929190614955565b60405180910390fd5b611f508686868686612bf1565b505050505050565b611f6061243a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611fa95750611fa783611fa261243a565b611d7b565b155b15611ff457611fb661243a565b836040517fe237d922000000000000000000000000000000000000000000000000000000008152600401611feb929190614955565b60405180910390fd5b611fff838383612cfc565b505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612077575061207682612da3565b5b9050919050565b61208f8161208a61243a565b612e85565b50565b80600290816120a19190614d0d565b5050565b600060076000848152602001908152602001600020905060008180549050905060005b6001826120d59190614899565b811015612217578373ffffffffffffffffffffffffffffffffffffffff16838281548110612106576121056149a7565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603612204578260018361215a9190614899565b8154811061216b5761216a6149a7565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166007600087815260200190815260200160002082815481106121bb576121ba6149a7565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b808061220f906149d6565b9150506120c8565b506007600085815260200190815260200160002080548061223b5761223a615006565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590556000600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008180549050905060005b6001826122cc9190614899565b81101561239457868382815481106122e7576122e66149a7565b5b90600052602060002001540361238157826001836123059190614899565b81548110612316576123156149a7565b5b9060005260206000200154600860008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110612372576123716149a7565b5b90600052602060002001819055505b808061238c906149d6565b9150506122bf565b50600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806123e4576123e3615006565b5b60019003818190600052602060002001600090559055857fb313f5a88a5d21dd54119393bab2baac6503d2bc1368bd7af3281737aefe94478660405161242a9190614ddf565b60405180910390a2505050505050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036124b45760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016124ab9190614ddf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036125265760006040517f01a8351400000000000000000000000000000000000000000000000000000000815260040161251d9190614ddf565b60405180910390fd5b6125338585858585612ed6565b5050505050565b6000612546838361192a565b6126215760016003600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506125be61243a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050612626565b600090505b92915050565b6000612638838361192a565b156127145760006003600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506126b161243a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050612719565b600090505b92915050565b612727612f88565b6000600460006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61276b61243a565b6040516127789190614ddf565b60405180910390a1565b600060208202602084010151905092915050565b600060208202602084010151905092915050565b60006127b68385611c85565b9050818110156127fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f290614a6a565b60405180910390fd5b816009600085815260200190815260200160002060010160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461285e9190614899565b9250508190555050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036128dd5760006040517f01a835140000000000000000000000000000000000000000000000000000000081526004016128d49190614ddf565b60405180910390fd5b6128fa836000848460405180602001604052806000815250612ed6565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036129715760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016129689190614ddf565b60405180910390fd5b61297f600085858585612ed6565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036129f75760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016129ee9190614ddf565b60405180910390fd5b600080612a048585612fc8565b91509150612a16600087848487612ed6565b505050505050565b612a26612ff8565b6001600460006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612a6a61243a565b604051612a779190614ddf565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612af35760006040517fced3e100000000000000000000000000000000000000000000000000000000008152600401612aea9190614ddf565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612be49190613997565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612c635760006040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401612c5a9190614ddf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612cd55760006040517f01a83514000000000000000000000000000000000000000000000000000000008152600401612ccc9190614ddf565b60405180910390fd5b600080612ce28585612fc8565b91509150612cf38787848487612ed6565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612d6e5760006040517f01a83514000000000000000000000000000000000000000000000000000000008152600401612d659190614ddf565b60405180910390fd5b600080612d7b8484612fc8565b91509150612d9c856000848460405180602001604052806000815250612ed6565b5050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e6e57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e7e5750612e7d82613039565b5b9050919050565b612e8f828261192a565b612ed25780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401612ec9929190615035565b60405180910390fd5b5050565b612ee2858585856130a3565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612f81576000612f2061243a565b90506001845103612f70576000612f4160008661279690919063ffffffff16565b90506000612f5960008661279690919063ffffffff16565b9050612f698389898585896130b5565b5050612f7f565b612f7e818787878787613269565b5b505b5050505050565b612f90610e53565b612fc6576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608060405191506001825283602083015260408201905060018152826020820152604081016040529250929050565b613000610e53565b15613037576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6130af8484848461341d565b50505050565b60008473ffffffffffffffffffffffffffffffffffffffff163b1115613261578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016131169594939291906150b3565b6020604051808303816000875af192505050801561315257506040513d601f19601f8201168201806040525081019061314f9190615122565b60015b6131d6573d8060008114613182576040519150601f19603f3d011682016040523d82523d6000602084013e613187565b606091505b5060008151036131ce57846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016131c59190614ddf565b60405180910390fd5b805181602001fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461325f57846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016132569190614ddf565b60405180910390fd5b505b505050505050565b60008473ffffffffffffffffffffffffffffffffffffffff163b1115613415578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016132ca95949392919061514f565b6020604051808303816000875af192505050801561330657506040513d601f19601f820116820180604052508101906133039190615122565b60015b61338a573d8060008114613336576040519150601f19603f3d011682016040523d82523d6000602084013e61333b565b606091505b50600081510361338257846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016133799190614ddf565b60405180910390fd5b805181602001fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461341357846040517f57f447ce00000000000000000000000000000000000000000000000000000000815260040161340a9190614ddf565b60405180910390fd5b505b505050505050565b613425612ff8565b61343184848484613437565b50505050565b805182511461348157815181516040517f5b05999100000000000000000000000000000000000000000000000000000000815260040161347892919061497e565b60405180910390fd5b600061348b61243a565b905060005b83518110156136a05760006134ae828661279690919063ffffffff16565b905060006134c5838661279690919063ffffffff16565b9050600073ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16146135f257600080600084815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561359a57888183856040517f03dee4c500000000000000000000000000000000000000000000000000000000815260040161359194939291906151b7565b60405180910390fd5b81810360008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161461368d578060008084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461368591906148cd565b925050819055505b505080613699906149d6565b9050613490565b50600183510361375f5760006136c060008561279690919063ffffffff16565b905060006136d860008561279690919063ffffffff16565b90508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62858560405161375092919061497e565b60405180910390a450506137de565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516137d59291906151fc565b60405180910390a45b5050505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613824826137f9565b9050919050565b61383481613819565b811461383f57600080fd5b50565b6000813590506138518161382b565b92915050565b6000819050919050565b61386a81613857565b811461387557600080fd5b50565b60008135905061388781613861565b92915050565b600080604083850312156138a4576138a36137ef565b5b60006138b285828601613842565b92505060206138c385828601613878565b9150509250929050565b6138d681613857565b82525050565b60006020820190506138f160008301846138cd565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61392c816138f7565b811461393757600080fd5b50565b60008135905061394981613923565b92915050565b600060208284031215613965576139646137ef565b5b60006139738482850161393a565b91505092915050565b60008115159050919050565b6139918161397c565b82525050565b60006020820190506139ac6000830184613988565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613a05826139bc565b810181811067ffffffffffffffff82111715613a2457613a236139cd565b5b80604052505050565b6000613a376137e5565b9050613a4382826139fc565b919050565b600067ffffffffffffffff821115613a6357613a626139cd565b5b613a6c826139bc565b9050602081019050919050565b82818337600083830152505050565b6000613a9b613a9684613a48565b613a2d565b905082815260208101848484011115613ab757613ab66139b7565b5b613ac2848285613a79565b509392505050565b600082601f830112613adf57613ade6139b2565b5b8135613aef848260208601613a88565b91505092915050565b600060208284031215613b0e57613b0d6137ef565b5b600082013567ffffffffffffffff811115613b2c57613b2b6137f4565b5b613b3884828501613aca565b91505092915050565b600060208284031215613b5757613b566137ef565b5b6000613b6584828501613878565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ba8578082015181840152602081019050613b8d565b60008484015250505050565b6000613bbf82613b6e565b613bc98185613b79565b9350613bd9818560208601613b8a565b613be2816139bc565b840191505092915050565b60006020820190508181036000830152613c078184613bb4565b905092915050565b600067ffffffffffffffff821115613c2a57613c296139cd565b5b613c33826139bc565b9050602081019050919050565b6000613c53613c4e84613c0f565b613a2d565b905082815260208101848484011115613c6f57613c6e6139b7565b5b613c7a848285613a79565b509392505050565b600082601f830112613c9757613c966139b2565b5b8135613ca7848260208601613c40565b91505092915050565b600080600080600060a08688031215613ccc57613ccb6137ef565b5b6000613cda88828901613842565b9550506020613ceb88828901613842565b9450506040613cfc88828901613878565b9350506060613d0d88828901613878565b925050608086013567ffffffffffffffff811115613d2e57613d2d6137f4565b5b613d3a88828901613c82565b9150509295509295909350565b6000819050919050565b613d5a81613d47565b8114613d6557600080fd5b50565b600081359050613d7781613d51565b92915050565b600060208284031215613d9357613d926137ef565b5b6000613da184828501613d68565b91505092915050565b613db381613d47565b82525050565b6000602082019050613dce6000830184613daa565b92915050565b600067ffffffffffffffff821115613def57613dee6139cd565b5b602082029050602081019050919050565b600080fd5b6000613e18613e1384613dd4565b613a2d565b90508083825260208201905060208402830185811115613e3b57613e3a613e00565b5b835b81811015613e645780613e508882613878565b845260208401935050602081019050613e3d565b5050509392505050565b600082601f830112613e8357613e826139b2565b5b8135613e93848260208601613e05565b91505092915050565b600080600080600060a08688031215613eb857613eb76137ef565b5b6000613ec688828901613842565b9550506020613ed788828901613842565b945050604086013567ffffffffffffffff811115613ef857613ef76137f4565b5b613f0488828901613e6e565b935050606086013567ffffffffffffffff811115613f2557613f246137f4565b5b613f3188828901613e6e565b925050608086013567ffffffffffffffff811115613f5257613f516137f4565b5b613f5e88828901613c82565b9150509295509295909350565b60008060408385031215613f8257613f816137ef565b5b6000613f9085828601613d68565b9250506020613fa185828601613842565b9150509250929050565b600067ffffffffffffffff821115613fc657613fc56139cd565b5b602082029050602081019050919050565b6000613fea613fe584613fab565b613a2d565b9050808382526020820190506020840283018581111561400d5761400c613e00565b5b835b8181101561403657806140228882613842565b84526020840193505060208101905061400f565b5050509392505050565b600082601f830112614055576140546139b2565b5b8135614065848260208601613fd7565b91505092915050565b60008060408385031215614085576140846137ef565b5b600083013567ffffffffffffffff8111156140a3576140a26137f4565b5b6140af85828601614040565b925050602083013567ffffffffffffffff8111156140d0576140cf6137f4565b5b6140dc85828601613e6e565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61411b81613857565b82525050565b600061412d8383614112565b60208301905092915050565b6000602082019050919050565b6000614151826140e6565b61415b81856140f1565b935061416683614102565b8060005b8381101561419757815161417e8882614121565b975061418983614139565b92505060018101905061416a565b5085935050505092915050565b600060208201905081810360008301526141be8184614146565b905092915050565b6000806000606084860312156141df576141de6137ef565b5b60006141ed86828701613842565b935050602084013567ffffffffffffffff81111561420e5761420d6137f4565b5b61421a86828701613e6e565b925050604084013567ffffffffffffffff81111561423b5761423a6137f4565b5b61424786828701613e6e565b9150509250925092565b600060ff82169050919050565b61426781614251565b811461427257600080fd5b50565b6000813590506142848161425e565b92915050565b600067ffffffffffffffff8211156142a5576142a46139cd565b5b602082029050602081019050919050565b60006142c96142c48461428a565b613a2d565b905080838252602082019050602084028301858111156142ec576142eb613e00565b5b835b8181101561433357803567ffffffffffffffff811115614311576143106139b2565b5b80860161431e8982613aca565b855260208501945050506020810190506142ee565b5050509392505050565b600082601f830112614352576143516139b2565b5b81356143628482602086016142b6565b91505092915050565b6143748161397c565b811461437f57600080fd5b50565b6000813590506143918161436b565b92915050565b60008060008060008060c087890312156143b4576143b36137ef565b5b60006143c289828a01613842565b96505060206143d389828a01614275565b955050604087013567ffffffffffffffff8111156143f4576143f36137f4565b5b61440089828a01613e6e565b945050606087013567ffffffffffffffff811115614421576144206137f4565b5b61442d89828a0161433d565b935050608061443e89828a01614382565b92505060a087013567ffffffffffffffff81111561445f5761445e6137f4565b5b61446b89828a01613c82565b9150509295509295509295565b600080600080600060a08688031215614494576144936137ef565b5b60006144a288828901613842565b95505060206144b388828901613878565b945050604086013567ffffffffffffffff8111156144d4576144d36137f4565b5b6144e088828901613aca565b93505060606144f188828901614382565b925050608086013567ffffffffffffffff811115614512576145116137f4565b5b61451e88828901613c82565b9150509295509295909350565b600080600060608486031215614544576145436137ef565b5b600061455286828701613878565b935050602061456386828701613842565b925050604061457486828701613878565b9150509250925092565b600060208284031215614594576145936137ef565b5b60006145a284828501613842565b91505092915050565b600080604083850312156145c2576145c16137ef565b5b60006145d085828601613842565b92505060206145e185828601614382565b9150509250929050565b60008060408385031215614602576146016137ef565b5b600061461085828601613878565b925050602061462185828601613842565b9150509250929050565b60008060408385031215614642576146416137ef565b5b600061465085828601613842565b925050602061466185828601613842565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6146a081613819565b82525050565b60006146b28383614697565b60208301905092915050565b6000602082019050919050565b60006146d68261466b565b6146e08185614676565b93506146eb83614687565b8060005b8381101561471c57815161470388826146a6565b975061470e836146be565b9250506001810190506146ef565b5085935050505092915050565b6000602082019050818103600083015261474381846146cb565b905092915050565b600080600060608486031215614764576147636137ef565b5b600061477286828701613842565b935050602061478386828701613878565b925050604061479486828701613878565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806147e557607f821691505b6020821081036147f8576147f761479e565b5b50919050565b7f496e73756666696369656e74206f776e6572736869702062616c616e63650000600082015250565b6000614834601e83613b79565b915061483f826147fe565b602082019050919050565b6000602082019050818103600083015261486381614827565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006148a482613857565b91506148af83613857565b92508282039050818111156148c7576148c661486a565b5b92915050565b60006148d882613857565b91506148e383613857565b92508282019050808211156148fb576148fa61486a565b5b92915050565b61490a81613819565b82525050565b600060808201905061492560008301876138cd565b6149326020830186614901565b61493f6040830185614901565b61494c60608301846138cd565b95945050505050565b600060408201905061496a6000830185614901565b6149776020830184614901565b9392505050565b600060408201905061499360008301856138cd565b6149a060208301846138cd565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006149e182613857565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614a1357614a1261486a565b5b600182019050919050565b7f496e73756666696369656e7420616c6c6f77616e636500000000000000000000600082015250565b6000614a54601683613b79565b9150614a5f82614a1e565b602082019050919050565b60006020820190508181036000830152614a8381614a47565b9050919050565b600081519050614a998161436b565b92915050565b600060208284031215614ab557614ab46137ef565b5b6000614ac384828501614a8a565b91505092915050565b7f4173736574206973206e6f742072657365727665642079657400000000000000600082015250565b6000614b02601983613b79565b9150614b0d82614acc565b602082019050919050565b60006020820190508181036000830152614b3181614af5565b9050919050565b6000614b4382614251565b915060ff8203614b5657614b5561486a565b5b600182019050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614bc37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614b86565b614bcd8683614b86565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614c0a614c05614c0084613857565b614be5565b613857565b9050919050565b6000819050919050565b614c2483614bef565b614c38614c3082614c11565b848454614b93565b825550505050565b600090565b614c4d614c40565b614c58818484614c1b565b505050565b5b81811015614c7c57614c71600082614c45565b600181019050614c5e565b5050565b601f821115614cc157614c9281614b61565b614c9b84614b76565b81016020851015614caa578190505b614cbe614cb685614b76565b830182614c5d565b50505b505050565b600082821c905092915050565b6000614ce460001984600802614cc6565b1980831691505092915050565b6000614cfd8383614cd3565b9150826002028217905092915050565b614d1682613b6e565b67ffffffffffffffff811115614d2f57614d2e6139cd565b5b614d3982546147cd565b614d44828285614c80565b600060209050601f831160018114614d775760008415614d65578287015190505b614d6f8582614cf1565b865550614dd7565b601f198416614d8586614b61565b60005b82811015614dad57848901518255600182019150602085019450602081019050614d88565b86831015614dca5784890151614dc6601f891682614cd3565b8355505b6001600288020188555050505b505050505050565b6000602082019050614df46000830184614901565b92915050565b7f417070726f76616c20746f2063757272656e74206f776e657200000000000000600082015250565b6000614e30601983613b79565b9150614e3b82614dfa565b602082019050919050565b60006020820190508181036000830152614e5f81614e23565b9050919050565b7f496e76616c6964206f776e65727368697020616d6f756e7420746f2072656d6f60008201527f766520617070726f76616c000000000000000000000000000000000000000000602082015250565b6000614ec2602b83613b79565b9150614ecd82614e66565b604082019050919050565b60006020820190508181036000830152614ef181614eb5565b9050919050565b7f496e73756666696369656e74206f70657261746f7220616c6c6f77616e636500600082015250565b6000614f2e601f83613b79565b9150614f3982614ef8565b602082019050919050565b60006020820190508181036000830152614f5d81614f21565b9050919050565b6000614f6f82613857565b9150614f7a83613857565b9250828202614f8881613857565b91508282048414831517614f9f57614f9e61486a565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614fe082613857565b9150614feb83613857565b925082614ffb57614ffa614fa6565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600060408201905061504a6000830185614901565b6150576020830184613daa565b9392505050565b600081519050919050565b600082825260208201905092915050565b60006150858261505e565b61508f8185615069565b935061509f818560208601613b8a565b6150a8816139bc565b840191505092915050565b600060a0820190506150c86000830188614901565b6150d56020830187614901565b6150e260408301866138cd565b6150ef60608301856138cd565b8181036080830152615101818461507a565b90509695505050505050565b60008151905061511c81613923565b92915050565b600060208284031215615138576151376137ef565b5b60006151468482850161510d565b91505092915050565b600060a0820190506151646000830188614901565b6151716020830187614901565b81810360408301526151838186614146565b905081810360608301526151978185614146565b905081810360808301526151ab818461507a565b90509695505050505050565b60006080820190506151cc6000830187614901565b6151d960208301866138cd565b6151e660408301856138cd565b6151f360608301846138cd565b95945050505050565b600060408201905081810360008301526152168185614146565b9050818103602083015261522a8184614146565b9050939250505056fea26469706673582212204702439fa0ab9b36950458bc9192f1cb6b37ca0ea2167cc6f44bbeceba124e7164736f6c63430008140033",VR0="0x608060405234801561001057600080fd5b50600436106102265760003560e01c8063829e47e511610130578063d5391393116100b8578063e63ab1e91161007c578063e63ab1e91461066d578063e985e9c51461068b578063ee4525d5146106bb578063f242432a146106eb578063f5298aca1461070757610226565b8063d5391393146105a3578063d547741f146105c1578063d9d61655146105dd578063e345e0bc1461060d578063e62de01b1461063d57610226565b8063a0a124dd116100ff578063a0a124dd14610501578063a217fddf1461051d578063a22cb4651461053b578063a574cea414610557578063b537b2691461058757610226565b8063829e47e51461048f5780638456cb59146104ab5780638cb0a511146104b557806391d14854146104d157610226565b80632fecd4bb116101b35780635c975abb116101825780635c975abb146103ff578063605105f01461041d5780636b20c454146104395780637f34571014610455578063813f3fe91461047357610226565b80632fecd4bb1461037957806336568abe146103a95780633f4ba83a146103c55780634e1273f4146103cf57610226565b8063127217d6116101fa578063127217d6146102d75780631e9c2d67146102f3578063248a9ca3146103115780632eb2c2d6146103415780632f2ff15d1461035d57610226565b8062fdd58e1461022b57806301ffc9a71461025b57806302fe53051461028b5780630e89341c146102a7575b600080fd5b6102456004803603810190610240919061388d565b610723565b60405161025291906138dc565b60405180910390f35b6102756004803603810190610270919061394f565b61077d565b6040516102829190613997565b60405180910390f35b6102a560048036038101906102a09190613af8565b61078f565b005b6102c160048036038101906102bc9190613b41565b6107c6565b6040516102ce9190613bed565b60405180910390f35b6102f160048036038101906102ec9190613cb0565b61085a565b005b6102fb610b49565b60405161030891906138dc565b60405180910390f35b61032b60048036038101906103269190613d7d565b610b4f565b6040516103389190613db9565b60405180910390f35b61035b60048036038101906103569190613e9c565b610b6f565b005b61037760048036038101906103729190613f6b565b610c17565b005b610393600480360381019061038e919061388d565b610c39565b6040516103a091906138dc565b60405180910390f35b6103c360048036038101906103be9190613f6b565b610c94565b005b6103cd610d0f565b005b6103e960048036038101906103e4919061406e565b610d44565b6040516103f691906141a4565b60405180910390f35b610407610e53565b6040516104149190613997565b60405180910390f35b61043760048036038101906104329190613cb0565b610e6a565b005b610453600480360381019061044e91906141c6565b610edb565b005b61045d610f87565b60405161046a9190613db9565b60405180910390f35b61048d60048036038101906104889190614397565b610fab565b005b6104a960048036038101906104a49190614478565b611407565b005b6104b3611688565b005b6104cf60048036038101906104ca919061452b565b6116bd565b005b6104eb60048036038101906104e69190613f6b565b61192a565b6040516104f89190613997565b60405180910390f35b61051b6004803603810190610516919061457e565b611995565b005b6105256119e7565b6040516105329190613db9565b60405180910390f35b610555600480360381019061055091906145ab565b6119ee565b005b610571600480360381019061056c9190613b41565b611a04565b60405161057e9190613bed565b60405180910390f35b6105a1600480360381019061059c919061388d565b611aa9565b005b6105ab611ba8565b6040516105b89190613db9565b60405180910390f35b6105db60048036038101906105d69190613f6b565b611bcc565b005b6105f760048036038101906105f2919061457e565b611bee565b60405161060491906141a4565b60405180910390f35b610627600480360381019061062291906145eb565b611c85565b60405161063491906138dc565b60405180910390f35b6106576004803603810190610652919061388d565b611ce3565b60405161066491906138dc565b60405180910390f35b610675611d57565b6040516106829190613db9565b60405180910390f35b6106a560048036038101906106a0919061462b565b611d7b565b6040516106b29190613997565b60405180910390f35b6106d560048036038101906106d09190613b41565b611e0f565b6040516106e29190614729565b60405180910390f35b61070560048036038101906107009190613cb0565b611eb0565b005b610721600480360381019061071c919061474b565b611f58565b005b600080600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061078882612004565b9050919050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c6107b98161207e565b6107c282612092565b5050565b6060600280546107d5906147cd565b80601f0160208091040260200160405190810160405280929190818152602001828054610801906147cd565b801561084e5780601f106108235761010080835404028352916020019161084e565b820191906000526020600020905b81548152906001019060200180831161083157829003601f168201915b50505050509050919050565b816006600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156108ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e49061484a565b60405180910390fd5b816006600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461094d9190614899565b925050819055506109618585858585611eb0565b816006600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546109c191906148cd565b9250508190555060076000848152602001908152602001600020849080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002083908060018154018082558091505060019003906000526020600020016000909190919091505560006006600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205403610b0557610b0483866120a5565b5b7feeb0e676a4fccb21187462c64b95d0e58742fed59dbc3a8795d8e8ff8ccfba1683868685604051610b3a9493929190614910565b60405180910390a15050505050565b61271081565b600060036000838152602001908152602001600020600101549050919050565b6000610b7961243a565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015610bbe5750610bbc8682611d7b565b155b15610c025780866040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610bf9929190614955565b60405180910390fd5b610c0f8686868686612442565b505050505050565b610c2082610b4f565b610c298161207e565b610c33838361253a565b50505050565b60006006600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610c9c61243a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d00576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d0a828261262c565b505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d398161207e565b610d4161271f565b50565b60608151835114610d9057815183516040517f5b059991000000000000000000000000000000000000000000000000000000008152600401610d8792919061497e565b60405180910390fd5b6000835167ffffffffffffffff811115610dad57610dac6139cd565b5b604051908082528060200260200182016040528015610ddb5781602001602082028036833780820191505090505b50905060005b8451811015610e4857610e18610e00828761278290919063ffffffff16565b610e13838761279690919063ffffffff16565b610723565b828281518110610e2b57610e2a6149a7565b5b60200260200101818152505080610e41906149d6565b9050610de1565b508091505092915050565b6000600460009054906101000a900460ff16905090565b6000610e768433611c85565b905082811015610ebb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb290614a6a565b60405180910390fd5b610ec63385856127aa565b610ed3868686868661085a565b505050505050565b610ee361243a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610f2c5750610f2a83610f2561243a565b611d7b565b155b15610f7757610f3961243a565b836040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610f6e929190614955565b60405180910390fd5b610f8283838361286b565b505050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c81565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610fd58161207e565b82156110f95760005b8660ff168160ff1610156110f757600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632228adcc878360ff16815181106110405761103f6149a7565b5b60200260200101516040518263ffffffff1660e01b815260040161106491906138dc565b602060405180830381865afa158015611081573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a59190614a9f565b6110e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110db90614b18565b60405180910390fd5b80806110ef90614b38565b915050610fde565b505b60008660ff1667ffffffffffffffff811115611118576111176139cd565b5b6040519080825280602002602001820160405280156111465781602001602082028036833780820191505090505b50905060005b8760ff168160ff16101561119257612710828260ff1681518110611173576111726149a7565b5b602002602001018181525050808061118a90614b38565b91505061114c565b5061119f888783866128ff565b60005b86518110156113fc578181815181106111be576111bd6149a7565b5b6020026020010151600660008984815181106111dd576111dc6149a7565b5b6020026020010151815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020878281518110611286576112856149a7565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190915055600760008883815181106112cb576112ca6149a7565b5b60200260200101518152602001908152602001600020899080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550858181518110611355576113546149a7565b5b602002602001015160056000898481518110611374576113736149a7565b5b6020026020010151815260200190815260200160002090816113969190614d0d565b508681815181106113aa576113a96149a7565b5b60200260200101517f3a5398bda6f1f57d6c96834fa9bf02b5517bdc847d14312015a917ba421c31c98a6040516113e19190614ddf565b60405180910390a280806113f4906149d6565b9150506111a2565b505050505050505050565b81156114e957600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632228adcc856040518263ffffffff1660e01b815260040161146891906138dc565b602060405180830381865afa158015611485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a99190614a9f565b6114e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114df90614b18565b60405180910390fd5b5b6114f7858561271084612985565b826005600086815260200190815260200160002090816115179190614d0d565b506127106006600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060076000858152602001908152602001600020859080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020849080600181540180825580915050600190039060005260206000200160009091909190915055837f3a5398bda6f1f57d6c96834fa9bf02b5517bdc847d14312015a917ba421c31c9866040516116799190614ddf565b60405180910390a25050505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6116b28161207e565b6116ba612a1e565b50565b806006600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611750576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174790614a6a565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16036117be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b590614e46565b60405180910390fd5b6117c98260016119ee565b600060096000858152602001908152602001600020905060008160010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020540361188f5780600001839080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b818160010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff16847f7a5c69a7c393db8f307d6fea9c8addb8c18644d1172a623792a4017298a1a5828460405161191c91906138dc565b60405180910390a350505050565b60006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b6119a28161207e565b81600460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000801b81565b611a006119f961243a565b8383612a81565b5050565b6060600560008381526020019081526020016000208054611a24906147cd565b80601f0160208091040260200160405190810160405280929190818152602001828054611a50906147cd565b8015611a9d5780601f10611a7257610100808354040283529160200191611a9d565b820191906000526020600020905b815481529060010190602001808311611a8057829003601f168201915b50505050509050919050565b60006006600083815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411611b3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3390614ed8565b60405180910390fd5b6000611b488284611c85565b905060008111611b8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8490614f44565b60405180910390fd5b611b988383836127aa565b611ba38360006119ee565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b611bd582610b4f565b611bde8161207e565b611be8838361262c565b50505050565b6060600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611c7957602002820191906000526020600020905b815481526020019060010190808311611c65575b50505050509050919050565b60006009600084815260200190815260200160002060010160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061271060646006600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d459190614f64565b611d4f9190614fd5565b905092915050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060076000838152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611ea457602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611e5a575b50505050509050919050565b6000611eba61243a565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015611eff5750611efd8682611d7b565b155b15611f435780866040517fe237d922000000000000000000000000000000000000000000000000000000008152600401611f3a929190614955565b60405180910390fd5b611f508686868686612bf1565b505050505050565b611f6061243a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611fa95750611fa783611fa261243a565b611d7b565b155b15611ff457611fb661243a565b836040517fe237d922000000000000000000000000000000000000000000000000000000008152600401611feb929190614955565b60405180910390fd5b611fff838383612cfc565b505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612077575061207682612da3565b5b9050919050565b61208f8161208a61243a565b612e85565b50565b80600290816120a19190614d0d565b5050565b600060076000848152602001908152602001600020905060008180549050905060005b6001826120d59190614899565b811015612217578373ffffffffffffffffffffffffffffffffffffffff16838281548110612106576121056149a7565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603612204578260018361215a9190614899565b8154811061216b5761216a6149a7565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166007600087815260200190815260200160002082815481106121bb576121ba6149a7565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b808061220f906149d6565b9150506120c8565b506007600085815260200190815260200160002080548061223b5761223a615006565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590556000600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008180549050905060005b6001826122cc9190614899565b81101561239457868382815481106122e7576122e66149a7565b5b90600052602060002001540361238157826001836123059190614899565b81548110612316576123156149a7565b5b9060005260206000200154600860008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110612372576123716149a7565b5b90600052602060002001819055505b808061238c906149d6565b9150506122bf565b50600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806123e4576123e3615006565b5b60019003818190600052602060002001600090559055857fb313f5a88a5d21dd54119393bab2baac6503d2bc1368bd7af3281737aefe94478660405161242a9190614ddf565b60405180910390a2505050505050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036124b45760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016124ab9190614ddf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036125265760006040517f01a8351400000000000000000000000000000000000000000000000000000000815260040161251d9190614ddf565b60405180910390fd5b6125338585858585612ed6565b5050505050565b6000612546838361192a565b6126215760016003600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506125be61243a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050612626565b600090505b92915050565b6000612638838361192a565b156127145760006003600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506126b161243a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050612719565b600090505b92915050565b612727612f88565b6000600460006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61276b61243a565b6040516127789190614ddf565b60405180910390a1565b600060208202602084010151905092915050565b600060208202602084010151905092915050565b60006127b68385611c85565b9050818110156127fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f290614a6a565b60405180910390fd5b816009600085815260200190815260200160002060010160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461285e9190614899565b9250508190555050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036128dd5760006040517f01a835140000000000000000000000000000000000000000000000000000000081526004016128d49190614ddf565b60405180910390fd5b6128fa836000848460405180602001604052806000815250612ed6565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036129715760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016129689190614ddf565b60405180910390fd5b61297f600085858585612ed6565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036129f75760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016129ee9190614ddf565b60405180910390fd5b600080612a048585612fc8565b91509150612a16600087848487612ed6565b505050505050565b612a26612ff8565b6001600460006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612a6a61243a565b604051612a779190614ddf565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612af35760006040517fced3e100000000000000000000000000000000000000000000000000000000008152600401612aea9190614ddf565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612be49190613997565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612c635760006040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401612c5a9190614ddf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612cd55760006040517f01a83514000000000000000000000000000000000000000000000000000000008152600401612ccc9190614ddf565b60405180910390fd5b600080612ce28585612fc8565b91509150612cf38787848487612ed6565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612d6e5760006040517f01a83514000000000000000000000000000000000000000000000000000000008152600401612d659190614ddf565b60405180910390fd5b600080612d7b8484612fc8565b91509150612d9c856000848460405180602001604052806000815250612ed6565b5050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e6e57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e7e5750612e7d82613039565b5b9050919050565b612e8f828261192a565b612ed25780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401612ec9929190615035565b60405180910390fd5b5050565b612ee2858585856130a3565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612f81576000612f2061243a565b90506001845103612f70576000612f4160008661279690919063ffffffff16565b90506000612f5960008661279690919063ffffffff16565b9050612f698389898585896130b5565b5050612f7f565b612f7e818787878787613269565b5b505b5050505050565b612f90610e53565b612fc6576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608060405191506001825283602083015260408201905060018152826020820152604081016040529250929050565b613000610e53565b15613037576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6130af8484848461341d565b50505050565b60008473ffffffffffffffffffffffffffffffffffffffff163b1115613261578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016131169594939291906150b3565b6020604051808303816000875af192505050801561315257506040513d601f19601f8201168201806040525081019061314f9190615122565b60015b6131d6573d8060008114613182576040519150601f19603f3d011682016040523d82523d6000602084013e613187565b606091505b5060008151036131ce57846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016131c59190614ddf565b60405180910390fd5b805181602001fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461325f57846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016132569190614ddf565b60405180910390fd5b505b505050505050565b60008473ffffffffffffffffffffffffffffffffffffffff163b1115613415578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016132ca95949392919061514f565b6020604051808303816000875af192505050801561330657506040513d601f19601f820116820180604052508101906133039190615122565b60015b61338a573d8060008114613336576040519150601f19603f3d011682016040523d82523d6000602084013e61333b565b606091505b50600081510361338257846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016133799190614ddf565b60405180910390fd5b805181602001fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461341357846040517f57f447ce00000000000000000000000000000000000000000000000000000000815260040161340a9190614ddf565b60405180910390fd5b505b505050505050565b613425612ff8565b61343184848484613437565b50505050565b805182511461348157815181516040517f5b05999100000000000000000000000000000000000000000000000000000000815260040161347892919061497e565b60405180910390fd5b600061348b61243a565b905060005b83518110156136a05760006134ae828661279690919063ffffffff16565b905060006134c5838661279690919063ffffffff16565b9050600073ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16146135f257600080600084815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561359a57888183856040517f03dee4c500000000000000000000000000000000000000000000000000000000815260040161359194939291906151b7565b60405180910390fd5b81810360008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161461368d578060008084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461368591906148cd565b925050819055505b505080613699906149d6565b9050613490565b50600183510361375f5760006136c060008561279690919063ffffffff16565b905060006136d860008561279690919063ffffffff16565b90508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62858560405161375092919061497e565b60405180910390a450506137de565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516137d59291906151fc565b60405180910390a45b5050505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613824826137f9565b9050919050565b61383481613819565b811461383f57600080fd5b50565b6000813590506138518161382b565b92915050565b6000819050919050565b61386a81613857565b811461387557600080fd5b50565b60008135905061388781613861565b92915050565b600080604083850312156138a4576138a36137ef565b5b60006138b285828601613842565b92505060206138c385828601613878565b9150509250929050565b6138d681613857565b82525050565b60006020820190506138f160008301846138cd565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61392c816138f7565b811461393757600080fd5b50565b60008135905061394981613923565b92915050565b600060208284031215613965576139646137ef565b5b60006139738482850161393a565b91505092915050565b60008115159050919050565b6139918161397c565b82525050565b60006020820190506139ac6000830184613988565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613a05826139bc565b810181811067ffffffffffffffff82111715613a2457613a236139cd565b5b80604052505050565b6000613a376137e5565b9050613a4382826139fc565b919050565b600067ffffffffffffffff821115613a6357613a626139cd565b5b613a6c826139bc565b9050602081019050919050565b82818337600083830152505050565b6000613a9b613a9684613a48565b613a2d565b905082815260208101848484011115613ab757613ab66139b7565b5b613ac2848285613a79565b509392505050565b600082601f830112613adf57613ade6139b2565b5b8135613aef848260208601613a88565b91505092915050565b600060208284031215613b0e57613b0d6137ef565b5b600082013567ffffffffffffffff811115613b2c57613b2b6137f4565b5b613b3884828501613aca565b91505092915050565b600060208284031215613b5757613b566137ef565b5b6000613b6584828501613878565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ba8578082015181840152602081019050613b8d565b60008484015250505050565b6000613bbf82613b6e565b613bc98185613b79565b9350613bd9818560208601613b8a565b613be2816139bc565b840191505092915050565b60006020820190508181036000830152613c078184613bb4565b905092915050565b600067ffffffffffffffff821115613c2a57613c296139cd565b5b613c33826139bc565b9050602081019050919050565b6000613c53613c4e84613c0f565b613a2d565b905082815260208101848484011115613c6f57613c6e6139b7565b5b613c7a848285613a79565b509392505050565b600082601f830112613c9757613c966139b2565b5b8135613ca7848260208601613c40565b91505092915050565b600080600080600060a08688031215613ccc57613ccb6137ef565b5b6000613cda88828901613842565b9550506020613ceb88828901613842565b9450506040613cfc88828901613878565b9350506060613d0d88828901613878565b925050608086013567ffffffffffffffff811115613d2e57613d2d6137f4565b5b613d3a88828901613c82565b9150509295509295909350565b6000819050919050565b613d5a81613d47565b8114613d6557600080fd5b50565b600081359050613d7781613d51565b92915050565b600060208284031215613d9357613d926137ef565b5b6000613da184828501613d68565b91505092915050565b613db381613d47565b82525050565b6000602082019050613dce6000830184613daa565b92915050565b600067ffffffffffffffff821115613def57613dee6139cd565b5b602082029050602081019050919050565b600080fd5b6000613e18613e1384613dd4565b613a2d565b90508083825260208201905060208402830185811115613e3b57613e3a613e00565b5b835b81811015613e645780613e508882613878565b845260208401935050602081019050613e3d565b5050509392505050565b600082601f830112613e8357613e826139b2565b5b8135613e93848260208601613e05565b91505092915050565b600080600080600060a08688031215613eb857613eb76137ef565b5b6000613ec688828901613842565b9550506020613ed788828901613842565b945050604086013567ffffffffffffffff811115613ef857613ef76137f4565b5b613f0488828901613e6e565b935050606086013567ffffffffffffffff811115613f2557613f246137f4565b5b613f3188828901613e6e565b925050608086013567ffffffffffffffff811115613f5257613f516137f4565b5b613f5e88828901613c82565b9150509295509295909350565b60008060408385031215613f8257613f816137ef565b5b6000613f9085828601613d68565b9250506020613fa185828601613842565b9150509250929050565b600067ffffffffffffffff821115613fc657613fc56139cd565b5b602082029050602081019050919050565b6000613fea613fe584613fab565b613a2d565b9050808382526020820190506020840283018581111561400d5761400c613e00565b5b835b8181101561403657806140228882613842565b84526020840193505060208101905061400f565b5050509392505050565b600082601f830112614055576140546139b2565b5b8135614065848260208601613fd7565b91505092915050565b60008060408385031215614085576140846137ef565b5b600083013567ffffffffffffffff8111156140a3576140a26137f4565b5b6140af85828601614040565b925050602083013567ffffffffffffffff8111156140d0576140cf6137f4565b5b6140dc85828601613e6e565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61411b81613857565b82525050565b600061412d8383614112565b60208301905092915050565b6000602082019050919050565b6000614151826140e6565b61415b81856140f1565b935061416683614102565b8060005b8381101561419757815161417e8882614121565b975061418983614139565b92505060018101905061416a565b5085935050505092915050565b600060208201905081810360008301526141be8184614146565b905092915050565b6000806000606084860312156141df576141de6137ef565b5b60006141ed86828701613842565b935050602084013567ffffffffffffffff81111561420e5761420d6137f4565b5b61421a86828701613e6e565b925050604084013567ffffffffffffffff81111561423b5761423a6137f4565b5b61424786828701613e6e565b9150509250925092565b600060ff82169050919050565b61426781614251565b811461427257600080fd5b50565b6000813590506142848161425e565b92915050565b600067ffffffffffffffff8211156142a5576142a46139cd565b5b602082029050602081019050919050565b60006142c96142c48461428a565b613a2d565b905080838252602082019050602084028301858111156142ec576142eb613e00565b5b835b8181101561433357803567ffffffffffffffff811115614311576143106139b2565b5b80860161431e8982613aca565b855260208501945050506020810190506142ee565b5050509392505050565b600082601f830112614352576143516139b2565b5b81356143628482602086016142b6565b91505092915050565b6143748161397c565b811461437f57600080fd5b50565b6000813590506143918161436b565b92915050565b60008060008060008060c087890312156143b4576143b36137ef565b5b60006143c289828a01613842565b96505060206143d389828a01614275565b955050604087013567ffffffffffffffff8111156143f4576143f36137f4565b5b61440089828a01613e6e565b945050606087013567ffffffffffffffff811115614421576144206137f4565b5b61442d89828a0161433d565b935050608061443e89828a01614382565b92505060a087013567ffffffffffffffff81111561445f5761445e6137f4565b5b61446b89828a01613c82565b9150509295509295509295565b600080600080600060a08688031215614494576144936137ef565b5b60006144a288828901613842565b95505060206144b388828901613878565b945050604086013567ffffffffffffffff8111156144d4576144d36137f4565b5b6144e088828901613aca565b93505060606144f188828901614382565b925050608086013567ffffffffffffffff811115614512576145116137f4565b5b61451e88828901613c82565b9150509295509295909350565b600080600060608486031215614544576145436137ef565b5b600061455286828701613878565b935050602061456386828701613842565b925050604061457486828701613878565b9150509250925092565b600060208284031215614594576145936137ef565b5b60006145a284828501613842565b91505092915050565b600080604083850312156145c2576145c16137ef565b5b60006145d085828601613842565b92505060206145e185828601614382565b9150509250929050565b60008060408385031215614602576146016137ef565b5b600061461085828601613878565b925050602061462185828601613842565b9150509250929050565b60008060408385031215614642576146416137ef565b5b600061465085828601613842565b925050602061466185828601613842565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6146a081613819565b82525050565b60006146b28383614697565b60208301905092915050565b6000602082019050919050565b60006146d68261466b565b6146e08185614676565b93506146eb83614687565b8060005b8381101561471c57815161470388826146a6565b975061470e836146be565b9250506001810190506146ef565b5085935050505092915050565b6000602082019050818103600083015261474381846146cb565b905092915050565b600080600060608486031215614764576147636137ef565b5b600061477286828701613842565b935050602061478386828701613878565b925050604061479486828701613878565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806147e557607f821691505b6020821081036147f8576147f761479e565b5b50919050565b7f496e73756666696369656e74206f776e6572736869702062616c616e63650000600082015250565b6000614834601e83613b79565b915061483f826147fe565b602082019050919050565b6000602082019050818103600083015261486381614827565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006148a482613857565b91506148af83613857565b92508282039050818111156148c7576148c661486a565b5b92915050565b60006148d882613857565b91506148e383613857565b92508282019050808211156148fb576148fa61486a565b5b92915050565b61490a81613819565b82525050565b600060808201905061492560008301876138cd565b6149326020830186614901565b61493f6040830185614901565b61494c60608301846138cd565b95945050505050565b600060408201905061496a6000830185614901565b6149776020830184614901565b9392505050565b600060408201905061499360008301856138cd565b6149a060208301846138cd565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006149e182613857565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614a1357614a1261486a565b5b600182019050919050565b7f496e73756666696369656e7420616c6c6f77616e636500000000000000000000600082015250565b6000614a54601683613b79565b9150614a5f82614a1e565b602082019050919050565b60006020820190508181036000830152614a8381614a47565b9050919050565b600081519050614a998161436b565b92915050565b600060208284031215614ab557614ab46137ef565b5b6000614ac384828501614a8a565b91505092915050565b7f4173736574206973206e6f742072657365727665642079657400000000000000600082015250565b6000614b02601983613b79565b9150614b0d82614acc565b602082019050919050565b60006020820190508181036000830152614b3181614af5565b9050919050565b6000614b4382614251565b915060ff8203614b5657614b5561486a565b5b600182019050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614bc37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614b86565b614bcd8683614b86565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614c0a614c05614c0084613857565b614be5565b613857565b9050919050565b6000819050919050565b614c2483614bef565b614c38614c3082614c11565b848454614b93565b825550505050565b600090565b614c4d614c40565b614c58818484614c1b565b505050565b5b81811015614c7c57614c71600082614c45565b600181019050614c5e565b5050565b601f821115614cc157614c9281614b61565b614c9b84614b76565b81016020851015614caa578190505b614cbe614cb685614b76565b830182614c5d565b50505b505050565b600082821c905092915050565b6000614ce460001984600802614cc6565b1980831691505092915050565b6000614cfd8383614cd3565b9150826002028217905092915050565b614d1682613b6e565b67ffffffffffffffff811115614d2f57614d2e6139cd565b5b614d3982546147cd565b614d44828285614c80565b600060209050601f831160018114614d775760008415614d65578287015190505b614d6f8582614cf1565b865550614dd7565b601f198416614d8586614b61565b60005b82811015614dad57848901518255600182019150602085019450602081019050614d88565b86831015614dca5784890151614dc6601f891682614cd3565b8355505b6001600288020188555050505b505050505050565b6000602082019050614df46000830184614901565b92915050565b7f417070726f76616c20746f2063757272656e74206f776e657200000000000000600082015250565b6000614e30601983613b79565b9150614e3b82614dfa565b602082019050919050565b60006020820190508181036000830152614e5f81614e23565b9050919050565b7f496e76616c6964206f776e65727368697020616d6f756e7420746f2072656d6f60008201527f766520617070726f76616c000000000000000000000000000000000000000000602082015250565b6000614ec2602b83613b79565b9150614ecd82614e66565b604082019050919050565b60006020820190508181036000830152614ef181614eb5565b9050919050565b7f496e73756666696369656e74206f70657261746f7220616c6c6f77616e636500600082015250565b6000614f2e601f83613b79565b9150614f3982614ef8565b602082019050919050565b60006020820190508181036000830152614f5d81614f21565b9050919050565b6000614f6f82613857565b9150614f7a83613857565b9250828202614f8881613857565b91508282048414831517614f9f57614f9e61486a565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614fe082613857565b9150614feb83613857565b925082614ffb57614ffa614fa6565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600060408201905061504a6000830185614901565b6150576020830184613daa565b9392505050565b600081519050919050565b600082825260208201905092915050565b60006150858261505e565b61508f8185615069565b935061509f818560208601613b8a565b6150a8816139bc565b840191505092915050565b600060a0820190506150c86000830188614901565b6150d56020830187614901565b6150e260408301866138cd565b6150ef60608301856138cd565b8181036080830152615101818461507a565b90509695505050505050565b60008151905061511c81613923565b92915050565b600060208284031215615138576151376137ef565b5b60006151468482850161510d565b91505092915050565b600060a0820190506151646000830188614901565b6151716020830187614901565b81810360408301526151838186614146565b905081810360608301526151978185614146565b905081810360808301526151ab818461507a565b90509695505050505050565b60006080820190506151cc6000830187614901565b6151d960208301866138cd565b6151e660408301856138cd565b6151f360608301846138cd565b95945050505050565b600060408201905081810360008301526152168185614146565b9050818103602083015261522a8184614146565b9050939250505056fea26469706673582212204702439fa0ab9b36950458bc9192f1cb6b37ca0ea2167cc6f44bbeceba124e7164736f6c63430008140033",KR0={},QR0={},Ky={_format:UR0,contractName:WR0,sourceName:qR0,abi:HR0,bytecode:GR0,deployedBytecode:VR0,linkReferences:KR0,deployedLinkReferences:QR0},JR0="hh-sol-artifact-1",ZR0="Matic",YR0="contracts/Mocks/Matic.sol",XR0=[{inputs:[{internalType:"uint256",name:"_totalSupply",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"allowance",type:"uint256"},{internalType:"uint256",name:"needed",type:"uint256"}],name:"ERC20InsufficientAllowance",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"balance",type:"uint256"},{internalType:"uint256",name:"needed",type:"uint256"}],name:"ERC20InsufficientBalance",type:"error"},{inputs:[{internalType:"address",name:"approver",type:"address"}],name:"ERC20InvalidApprover",type:"error"},{inputs:[{internalType:"address",name:"receiver",type:"address"}],name:"ERC20InvalidReceiver",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"}],name:"ERC20InvalidSender",type:"error"},{inputs:[{internalType:"address",name:"spender",type:"address"}],name:"ERC20InvalidSpender",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Issue",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"feeBasisPoints",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxFee",type:"uint256"}],name:"Params",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Redeem",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"issue",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"redeem",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdraw",outputs:[],stateMutability:"nonpayable",type:"function"}],uN0="0x60806040523480156200001157600080fd5b5060405162001de938038062001de9833981810160405281019062000037919062000544565b336040518060400160405280600b81526020017f4d6174696320546f6b656e0000000000000000000000000000000000000000008152506040518060400160405280600581526020017f4d617469630000000000000000000000000000000000000000000000000000008152508160039081620000b59190620007e6565b508060049081620000c79190620007e6565b505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036200013f5760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040162000136919062000912565b60405180910390fd5b62000150816200017960201b60201c565b5062000172620001656200023f60201b60201c565b826200024760201b60201c565b5062000a04565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620002bc5760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401620002b3919062000912565b60405180910390fd5b620002d060008383620002d460201b60201c565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036200032a5780600260008282546200031d91906200095e565b9250508190555062000400565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015620003b9578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401620003b093929190620009aa565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036200044b578060026000828254039250508190555062000498565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620004f79190620009e7565b60405180910390a3505050565b600080fd5b6000819050919050565b6200051e8162000509565b81146200052a57600080fd5b50565b6000815190506200053e8162000513565b92915050565b6000602082840312156200055d576200055c62000504565b5b60006200056d848285016200052d565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620005f857607f821691505b6020821081036200060e576200060d620005b0565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006787fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000639565b62000684868362000639565b95508019841693508086168417925050509392505050565b6000819050919050565b6000620006c7620006c1620006bb8462000509565b6200069c565b62000509565b9050919050565b6000819050919050565b620006e383620006a6565b620006fb620006f282620006ce565b84845462000646565b825550505050565b600090565b6200071262000703565b6200071f818484620006d8565b505050565b5b8181101562000747576200073b60008262000708565b60018101905062000725565b5050565b601f8211156200079657620007608162000614565b6200076b8462000629565b810160208510156200077b578190505b620007936200078a8562000629565b83018262000724565b50505b505050565b600082821c905092915050565b6000620007bb600019846008026200079b565b1980831691505092915050565b6000620007d68383620007a8565b9150826002028217905092915050565b620007f18262000576565b67ffffffffffffffff8111156200080d576200080c62000581565b5b620008198254620005df565b620008268282856200074b565b600060209050601f8311600181146200085e576000841562000849578287015190505b620008558582620007c8565b865550620008c5565b601f1984166200086e8662000614565b60005b82811015620008985784890151825560018201915060208501945060208101905062000871565b86831015620008b85784890151620008b4601f891682620007a8565b8355505b6001600288020188555050505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620008fa82620008cd565b9050919050565b6200090c81620008ed565b82525050565b600060208201905062000929600083018462000901565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006200096b8262000509565b9150620009788362000509565b92508282019050808211156200099357620009926200092f565b5b92915050565b620009a48162000509565b82525050565b6000606082019050620009c1600083018662000901565b620009d0602083018562000999565b620009df604083018462000999565b949350505050565b6000602082019050620009fe600083018462000999565b92915050565b6113d58062000a146000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c8063715018a611610097578063cc872b6611610066578063cc872b6614610276578063db006a7514610292578063dd62ed3e146102ae578063f2fde38b146102de576100f5565b8063715018a6146102005780638da5cb5b1461020a57806395d89b4114610228578063a9059cbb14610246576100f5565b806323b872dd116100d357806323b872dd146101665780632e1a7d4d14610196578063313ce567146101b257806370a08231146101d0576100f5565b806306fdde03146100fa578063095ea7b31461011857806318160ddd14610148575b600080fd5b6101026102fa565b60405161010f9190610ffc565b60405180910390f35b610132600480360381019061012d91906110b7565b61038c565b60405161013f9190611112565b60405180910390f35b6101506103af565b60405161015d919061113c565b60405180910390f35b610180600480360381019061017b9190611157565b6103b9565b60405161018d9190611112565b60405180910390f35b6101b060048036038101906101ab91906111aa565b6103e8565b005b6101ba6103fc565b6040516101c791906111f3565b60405180910390f35b6101ea60048036038101906101e5919061120e565b610405565b6040516101f7919061113c565b60405180910390f35b61020861044d565b005b610212610461565b60405161021f919061124a565b60405180910390f35b61023061048b565b60405161023d9190610ffc565b60405180910390f35b610260600480360381019061025b91906110b7565b61051d565b60405161026d9190611112565b60405180910390f35b610290600480360381019061028b91906111aa565b610540565b005b6102ac60048036038101906102a791906111aa565b6105ed565b005b6102c860048036038101906102c39190611265565b610670565b6040516102d5919061113c565b60405180910390f35b6102f860048036038101906102f3919061120e565b6106f7565b005b606060038054610309906112d4565b80601f0160208091040260200160405190810160405280929190818152602001828054610335906112d4565b80156103825780601f1061035757610100808354040283529160200191610382565b820191906000526020600020905b81548152906001019060200180831161036557829003601f168201915b5050505050905090565b60008061039761077d565b90506103a4818585610785565b600191505092915050565b6000600254905090565b6000806103c461077d565b90506103d1858285610797565b6103dc85858561082b565b60019150509392505050565b6103f96103f361077d565b8261091f565b50565b60006012905090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6104556109a1565b61045f6000610a28565b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461049a906112d4565b80601f01602080910402602001604051908101604052809291908181526020018280546104c6906112d4565b80156105135780601f106104e857610100808354040283529160200191610513565b820191906000526020600020905b8154815290600101906020018083116104f657829003601f168201915b5050505050905090565b60008061052861077d565b905061053581858561082b565b600191505092915050565b6105486109a1565b6105506103af565b816105596103af565b6105639190611334565b1161056d57600080fd5b61057d61057861077d565b610405565b8161058e61058961077d565b610405565b6105989190611334565b116105a257600080fd5b6105b36105ad61077d565b82610aee565b7fcb8241adb0c3fdb35b70c24ce35c5eb0c17af7431c99f827d44a445ca624176a816040516105e2919061113c565b60405180910390a150565b6105f56109a1565b806105fe6103af565b101561060957600080fd5b8061061a61061561077d565b610405565b101561062557600080fd5b61063661063061077d565b8261091f565b7f702d5967f45f6513a38ffc42d6ba9bf230bd40e8f53b16363c7eb4fd2deb9a4481604051610665919061113c565b60405180910390a150565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6106ff6109a1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036107715760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610768919061124a565b60405180910390fd5b61077a81610a28565b50565b600033905090565b6107928383836001610b70565b505050565b60006107a38484610670565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146108255781811015610815578281836040517ffb8f41b200000000000000000000000000000000000000000000000000000000815260040161080c93929190611368565b60405180910390fd5b61082484848484036000610b70565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361089d5760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610894919061124a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361090f5760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610906919061124a565b60405180910390fd5b61091a838383610d47565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036109915760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610988919061124a565b60405180910390fd5b61099d82600083610d47565b5050565b6109a961077d565b73ffffffffffffffffffffffffffffffffffffffff166109c7610461565b73ffffffffffffffffffffffffffffffffffffffff1614610a26576109ea61077d565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a1d919061124a565b60405180910390fd5b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610b605760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610b57919061124a565b60405180910390fd5b610b6c60008383610d47565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610be25760006040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610bd9919061124a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c545760006040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610c4b919061124a565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508015610d41578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610d38919061113c565b60405180910390a35b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d99578060026000828254610d8d9190611334565b92505081905550610e6c565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610e25578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401610e1c93929190611368565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610eb55780600260008282540392505081905550610f02565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610f5f919061113c565b60405180910390a3505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610fa6578082015181840152602081019050610f8b565b60008484015250505050565b6000601f19601f8301169050919050565b6000610fce82610f6c565b610fd88185610f77565b9350610fe8818560208601610f88565b610ff181610fb2565b840191505092915050565b600060208201905081810360008301526110168184610fc3565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061104e82611023565b9050919050565b61105e81611043565b811461106957600080fd5b50565b60008135905061107b81611055565b92915050565b6000819050919050565b61109481611081565b811461109f57600080fd5b50565b6000813590506110b18161108b565b92915050565b600080604083850312156110ce576110cd61101e565b5b60006110dc8582860161106c565b92505060206110ed858286016110a2565b9150509250929050565b60008115159050919050565b61110c816110f7565b82525050565b60006020820190506111276000830184611103565b92915050565b61113681611081565b82525050565b6000602082019050611151600083018461112d565b92915050565b6000806000606084860312156111705761116f61101e565b5b600061117e8682870161106c565b935050602061118f8682870161106c565b92505060406111a0868287016110a2565b9150509250925092565b6000602082840312156111c0576111bf61101e565b5b60006111ce848285016110a2565b91505092915050565b600060ff82169050919050565b6111ed816111d7565b82525050565b600060208201905061120860008301846111e4565b92915050565b6000602082840312156112245761122361101e565b5b60006112328482850161106c565b91505092915050565b61124481611043565b82525050565b600060208201905061125f600083018461123b565b92915050565b6000806040838503121561127c5761127b61101e565b5b600061128a8582860161106c565b925050602061129b8582860161106c565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806112ec57607f821691505b6020821081036112ff576112fe6112a5565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061133f82611081565b915061134a83611081565b925082820190508082111561136257611361611305565b5b92915050565b600060608201905061137d600083018661123b565b61138a602083018561112d565b611397604083018461112d565b94935050505056fea2646970667358221220ca60ea52122ea3602d4c0f4ee673ab6c54bb7dbf7165641fa76c258d287eadd864736f6c63430008140033",eN0="0x608060405234801561001057600080fd5b50600436106100f55760003560e01c8063715018a611610097578063cc872b6611610066578063cc872b6614610276578063db006a7514610292578063dd62ed3e146102ae578063f2fde38b146102de576100f5565b8063715018a6146102005780638da5cb5b1461020a57806395d89b4114610228578063a9059cbb14610246576100f5565b806323b872dd116100d357806323b872dd146101665780632e1a7d4d14610196578063313ce567146101b257806370a08231146101d0576100f5565b806306fdde03146100fa578063095ea7b31461011857806318160ddd14610148575b600080fd5b6101026102fa565b60405161010f9190610ffc565b60405180910390f35b610132600480360381019061012d91906110b7565b61038c565b60405161013f9190611112565b60405180910390f35b6101506103af565b60405161015d919061113c565b60405180910390f35b610180600480360381019061017b9190611157565b6103b9565b60405161018d9190611112565b60405180910390f35b6101b060048036038101906101ab91906111aa565b6103e8565b005b6101ba6103fc565b6040516101c791906111f3565b60405180910390f35b6101ea60048036038101906101e5919061120e565b610405565b6040516101f7919061113c565b60405180910390f35b61020861044d565b005b610212610461565b60405161021f919061124a565b60405180910390f35b61023061048b565b60405161023d9190610ffc565b60405180910390f35b610260600480360381019061025b91906110b7565b61051d565b60405161026d9190611112565b60405180910390f35b610290600480360381019061028b91906111aa565b610540565b005b6102ac60048036038101906102a791906111aa565b6105ed565b005b6102c860048036038101906102c39190611265565b610670565b6040516102d5919061113c565b60405180910390f35b6102f860048036038101906102f3919061120e565b6106f7565b005b606060038054610309906112d4565b80601f0160208091040260200160405190810160405280929190818152602001828054610335906112d4565b80156103825780601f1061035757610100808354040283529160200191610382565b820191906000526020600020905b81548152906001019060200180831161036557829003601f168201915b5050505050905090565b60008061039761077d565b90506103a4818585610785565b600191505092915050565b6000600254905090565b6000806103c461077d565b90506103d1858285610797565b6103dc85858561082b565b60019150509392505050565b6103f96103f361077d565b8261091f565b50565b60006012905090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6104556109a1565b61045f6000610a28565b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461049a906112d4565b80601f01602080910402602001604051908101604052809291908181526020018280546104c6906112d4565b80156105135780601f106104e857610100808354040283529160200191610513565b820191906000526020600020905b8154815290600101906020018083116104f657829003601f168201915b5050505050905090565b60008061052861077d565b905061053581858561082b565b600191505092915050565b6105486109a1565b6105506103af565b816105596103af565b6105639190611334565b1161056d57600080fd5b61057d61057861077d565b610405565b8161058e61058961077d565b610405565b6105989190611334565b116105a257600080fd5b6105b36105ad61077d565b82610aee565b7fcb8241adb0c3fdb35b70c24ce35c5eb0c17af7431c99f827d44a445ca624176a816040516105e2919061113c565b60405180910390a150565b6105f56109a1565b806105fe6103af565b101561060957600080fd5b8061061a61061561077d565b610405565b101561062557600080fd5b61063661063061077d565b8261091f565b7f702d5967f45f6513a38ffc42d6ba9bf230bd40e8f53b16363c7eb4fd2deb9a4481604051610665919061113c565b60405180910390a150565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6106ff6109a1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036107715760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610768919061124a565b60405180910390fd5b61077a81610a28565b50565b600033905090565b6107928383836001610b70565b505050565b60006107a38484610670565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146108255781811015610815578281836040517ffb8f41b200000000000000000000000000000000000000000000000000000000815260040161080c93929190611368565b60405180910390fd5b61082484848484036000610b70565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361089d5760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610894919061124a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361090f5760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610906919061124a565b60405180910390fd5b61091a838383610d47565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036109915760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610988919061124a565b60405180910390fd5b61099d82600083610d47565b5050565b6109a961077d565b73ffffffffffffffffffffffffffffffffffffffff166109c7610461565b73ffffffffffffffffffffffffffffffffffffffff1614610a26576109ea61077d565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a1d919061124a565b60405180910390fd5b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610b605760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610b57919061124a565b60405180910390fd5b610b6c60008383610d47565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610be25760006040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610bd9919061124a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c545760006040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610c4b919061124a565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508015610d41578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610d38919061113c565b60405180910390a35b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d99578060026000828254610d8d9190611334565b92505081905550610e6c565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610e25578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401610e1c93929190611368565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610eb55780600260008282540392505081905550610f02565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610f5f919061113c565b60405180910390a3505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610fa6578082015181840152602081019050610f8b565b60008484015250505050565b6000601f19601f8301169050919050565b6000610fce82610f6c565b610fd88185610f77565b9350610fe8818560208601610f88565b610ff181610fb2565b840191505092915050565b600060208201905081810360008301526110168184610fc3565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061104e82611023565b9050919050565b61105e81611043565b811461106957600080fd5b50565b60008135905061107b81611055565b92915050565b6000819050919050565b61109481611081565b811461109f57600080fd5b50565b6000813590506110b18161108b565b92915050565b600080604083850312156110ce576110cd61101e565b5b60006110dc8582860161106c565b92505060206110ed858286016110a2565b9150509250929050565b60008115159050919050565b61110c816110f7565b82525050565b60006020820190506111276000830184611103565b92915050565b61113681611081565b82525050565b6000602082019050611151600083018461112d565b92915050565b6000806000606084860312156111705761116f61101e565b5b600061117e8682870161106c565b935050602061118f8682870161106c565b92505060406111a0868287016110a2565b9150509250925092565b6000602082840312156111c0576111bf61101e565b5b60006111ce848285016110a2565b91505092915050565b600060ff82169050919050565b6111ed816111d7565b82525050565b600060208201905061120860008301846111e4565b92915050565b6000602082840312156112245761122361101e565b5b60006112328482850161106c565b91505092915050565b61124481611043565b82525050565b600060208201905061125f600083018461123b565b92915050565b6000806040838503121561127c5761127b61101e565b5b600061128a8582860161106c565b925050602061129b8582860161106c565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806112ec57607f821691505b6020821081036112ff576112fe6112a5565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061133f82611081565b915061134a83611081565b925082820190508082111561136257611361611305565b5b92915050565b600060608201905061137d600083018661123b565b61138a602083018561112d565b611397604083018461112d565b94935050505056fea2646970667358221220ca60ea52122ea3602d4c0f4ee673ab6c54bb7dbf7165641fa76c258d287eadd864736f6c63430008140033",tN0={},nN0={},rN0={_format:JR0,contractName:ZR0,sourceName:YR0,abi:XR0,bytecode:uN0,deployedBytecode:eN0,linkReferences:tN0,deployedLinkReferences:nN0},iN0={minimumSharePerBuyer:1,amount:0,pricePerShare:1};function Jk(u){let{NFTId:e}=$T();const[t,n]=w.useState(),[r,i]=w.useState(iN0),[a,o]=w.useState(0),[s,f]=w.useState(!1),l=async()=>{p&&b&&(f(!0),p())},c=async()=>{console.log("Go for buy.."),console.log("Matic :",y," Buy:",C),y&&(console.log("Go for buy.."),f(!0),y())},{config:d}=cf({address:Ty,abi:Ky.abi,functionName:"approve",args:[e,Va,r.amount],enabled:!!(e&&Va&&r.amount)}),{data:E,write:p}=lf(d),{config:h}=cf({address:Va,abi:em.abi,functionName:"listTokenForSale",args:[e,r.amount,r.pricePerShare],enabled:!!(e&&r.pricePerShare&&r.amount)}),{data:g,write:b}=lf(h);df({hash:E==null?void 0:E.hash,onSuccess(G){console.log("Approved Successfully",G),b==null||b()},onError(G){console.log("Approved Error",G)}}),df({hash:g==null?void 0:g.hash,onSuccess:()=>{f(!1)},onError:()=>{f(!1)}});const{config:m}=cf({address:xP0,abi:rN0.abi,functionName:"approve",args:[Va,a*1e13],enabled:!!a}),{data:A,write:y}=lf(m),{config:B}=cf({address:Va,abi:em.abi,functionName:"buyToken",args:[e,a,"0xAbCc66D8c6e22F7F5C6d6A46a04618Ea4990895F"],enabled:!!(e&&a)}),{data:v,write:C}=lf(B);df({hash:A==null?void 0:A.hash,onSuccess(G){console.log("Approved Successfully",G),C==null||C()},onError(G){console.log("Approved Error",G)}}),df({hash:v==null?void 0:v.hash,onSuccess:()=>{f(!1)},onError:()=>{f(!1)}});const D=async()=>{if(console.log("get NFT Details..."),e)try{const G=Vy(BigInt(e)),I=await(await fetch("https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/"+G)).json();n({name:I.name,image:I.image,tokenId:e})}catch(G){console.error("Error fetching NFT Detail: ",G)}},S=G=>{G.preventDefault(),console.log(r),l()},x=G=>{G.preventDefault(),console.log("amount to Buy:",a),c()},L=G=>{const{name:X,value:I}=G.target;i({...r,[X]:I})},Y=G=>{const{value:X}=G.target;o(Number(X))};return w.useEffect(()=>{D()},[e]),K.jsx(r3,{container:!0,justifyContent:"center",spacing:3,padding:7,direction:"column",alignItems:"center",children:K.jsx(ky,{sx:{Width:"100%",minHeight:400},children:K.jsxs(Na,{padding:5,direction:"row",spacing:3,children:[K.jsx(_P,{sx:{minWidth:"200"},children:K.jsx("img",{src:t==null?void 0:t.image,width:200,height:200})}),K.jsxs(Na,{padding:5,direction:"column",spacing:1,children:[K.jsxs(Na,{padding:1,direction:"row",spacing:3,children:[K.jsx(Jt,{children:"NFT name "}),K.jsx(Jt,{children:t==null?void 0:t.name})]}),K.jsxs(Na,{padding:1,direction:"row",spacing:3,children:[K.jsx(Jt,{children:"Your Share "}),K.jsx(Jt,{})]}),u.sell&&K.jsxs("form",{onSubmit:S,children:[K.jsxs(Na,{padding:1,direction:"row",spacing:3,children:[K.jsx(Jt,{children:"Minmum share per buyer"}),K.jsx(Bh,{required:!0,id:"minimumSharePerBuyer",label:"minimum per share",placeholder:"Enter amount lower than 10000 .eg 1",name:"minimumSharePerBuyer",value:r.minimumSharePerBuyer,onChange:L})]}),K.jsxs(Na,{padding:1,direction:"row",spacing:3,children:[K.jsx(Jt,{children:"Amount"}),K.jsx(Bh,{required:!0,id:"amount",label:"amount",placeholder:"Enter amount lower than 10000 .eg 1",name:"amount",value:r.amount,onChange:L})]}),K.jsx(Ho,{disabled:s,type:"submit",children:"List for Sale"}),s&&K.jsx(Jt,{children:"Sending Transactions ...."})]}),!u.sell&&K.jsxs("form",{onSubmit:x,children:[K.jsxs(Na,{padding:1,direction:"row",spacing:3,children:[K.jsx(Jt,{children:"Amount"}),K.jsx(Bh,{required:!0,id:"amountTobuy",label:"amount to buy",placeholder:"Enter amount lower than 10000 .eg 1",name:"buyAmount",value:a,onChange:Y})]}),K.jsx(Ho,{disabled:s,type:"submit",children:"Buy"}),s&&K.jsx(Jt,{children:"Sending Transactions ...."})]})]})]})})})}function aN0(u){return K.jsx(ky,{onClick:u.onClick,className:"nft-card",children:K.jsxs(Bz,{children:[K.jsx("img",{src:u.NFT.image,width:200,height:275}),K.jsx("h4",{children:u.NFT.name}),K.jsx(Ho,{variant:"contained",color:"primary",children:"List For Sale"})]})})}function oN0(){const u=Pb();let{ProfileId:e}=$T();const[t,n]=w.useState(),r=Bt(),i=async()=>{const o=new r$("https://polygon-mumbai.g.alchemy.com/v2/BmepUpwxd86PJSuisn7P4f3lZJSqcAUt"),s=Ky.abi,f=new Oo(Ty,s,o);try{const c=await f.getOwnedTokens(r.address),E=c.map(g=>Vy(g)).map(async g=>await(await fetch("https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/"+g)).json()),p=await Promise.all(E),h=[];for(var l=0;l{i()},[e]);function a(o){console.log("Clicked on NFT with Address"+o),u("/real-token/Profile/"+e+"/"+o)}return K.jsx(r3,{container:!0,padding:5,direction:"row",spacing:5,justifyContent:"center",alignItems:"flex-start",children:t==null?void 0:t.map(o=>K.jsx(r3,{item:!0,children:K.jsx(aN0,{NFT:o,onClick:()=>a(o.tokenId)})}))})}function a$(u,e){return function(){return u.apply(e,arguments)}}const{toString:sN0}=Object.prototype,{getPrototypeOf:Qy}=Object,Pp=(u=>e=>{const t=sN0.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),vr=u=>(u=u.toLowerCase(),e=>Pp(e)===u),Ip=u=>e=>typeof e===u,{isArray:H3}=Array,H1=Ip("undefined");function fN0(u){return u!==null&&!H1(u)&&u.constructor!==null&&!H1(u.constructor)&&dn(u.constructor.isBuffer)&&u.constructor.isBuffer(u)}const o$=vr("ArrayBuffer");function lN0(u){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(u):e=u&&u.buffer&&o$(u.buffer),e}const cN0=Ip("string"),dn=Ip("function"),s$=Ip("number"),Op=u=>u!==null&&typeof u=="object",dN0=u=>u===!0||u===!1,M5=u=>{if(Pp(u)!=="object")return!1;const e=Qy(u);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in u)&&!(Symbol.iterator in u)},EN0=vr("Date"),pN0=vr("File"),hN0=vr("Blob"),CN0=vr("FileList"),mN0=u=>Op(u)&&dn(u.pipe),bN0=u=>{let e;return u&&(typeof FormData=="function"&&u instanceof FormData||dn(u.append)&&((e=Pp(u))==="formdata"||e==="object"&&dn(u.toString)&&u.toString()==="[object FormData]"))},gN0=vr("URLSearchParams"),AN0=u=>u.trim?u.trim():u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function n6(u,e,{allOwnKeys:t=!1}={}){if(u===null||typeof u>"u")return;let n,r;if(typeof u!="object"&&(u=[u]),H3(u))for(n=0,r=u.length;n0;)if(r=t[n],e===r.toLowerCase())return r;return null}const l$=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,c$=u=>!H1(u)&&u!==l$;function km(){const{caseless:u}=c$(this)&&this||{},e={},t=(n,r)=>{const i=u&&f$(e,r)||r;M5(e[i])&&M5(n)?e[i]=km(e[i],n):M5(n)?e[i]=km({},n):H3(n)?e[i]=n.slice():e[i]=n};for(let n=0,r=arguments.length;n(n6(e,(r,i)=>{t&&dn(r)?u[i]=a$(r,t):u[i]=r},{allOwnKeys:n}),u),vN0=u=>(u.charCodeAt(0)===65279&&(u=u.slice(1)),u),BN0=(u,e,t,n)=>{u.prototype=Object.create(e.prototype,n),u.prototype.constructor=u,Object.defineProperty(u,"super",{value:e.prototype}),t&&Object.assign(u.prototype,t)},FN0=(u,e,t,n)=>{let r,i,a;const o={};if(e=e||{},u==null)return e;do{for(r=Object.getOwnPropertyNames(u),i=r.length;i-- >0;)a=r[i],(!n||n(a,u,e))&&!o[a]&&(e[a]=u[a],o[a]=!0);u=t!==!1&&Qy(u)}while(u&&(!t||t(u,e))&&u!==Object.prototype);return e},DN0=(u,e,t)=>{u=String(u),(t===void 0||t>u.length)&&(t=u.length),t-=e.length;const n=u.indexOf(e,t);return n!==-1&&n===t},wN0=u=>{if(!u)return null;if(H3(u))return u;let e=u.length;if(!s$(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=u[e];return t},xN0=(u=>e=>u&&e instanceof u)(typeof Uint8Array<"u"&&Qy(Uint8Array)),kN0=(u,e)=>{const n=(u&&u[Symbol.iterator]).call(u);let r;for(;(r=n.next())&&!r.done;){const i=r.value;e.call(u,i[0],i[1])}},_N0=(u,e)=>{let t;const n=[];for(;(t=u.exec(e))!==null;)n.push(t);return n},SN0=vr("HTMLFormElement"),TN0=u=>u.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),Zk=(({hasOwnProperty:u})=>(e,t)=>u.call(e,t))(Object.prototype),PN0=vr("RegExp"),d$=(u,e)=>{const t=Object.getOwnPropertyDescriptors(u),n={};n6(t,(r,i)=>{let a;(a=e(r,i,u))!==!1&&(n[i]=a||r)}),Object.defineProperties(u,n)},IN0=u=>{d$(u,(e,t)=>{if(dn(u)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=u[t];if(dn(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},ON0=(u,e)=>{const t={},n=r=>{r.forEach(i=>{t[i]=!0})};return H3(u)?n(u):n(String(u).split(e)),t},RN0=()=>{},NN0=(u,e)=>(u=+u,Number.isFinite(u)?u:e),Nh="abcdefghijklmnopqrstuvwxyz",Yk="0123456789",E$={DIGIT:Yk,ALPHA:Nh,ALPHA_DIGIT:Nh+Nh.toUpperCase()+Yk},MN0=(u=16,e=E$.ALPHA_DIGIT)=>{let t="";const{length:n}=e;for(;u--;)t+=e[Math.random()*n|0];return t};function jN0(u){return!!(u&&dn(u.append)&&u[Symbol.toStringTag]==="FormData"&&u[Symbol.iterator])}const zN0=u=>{const e=new Array(10),t=(n,r)=>{if(Op(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[r]=n;const i=H3(n)?[]:{};return n6(n,(a,o)=>{const s=t(a,r+1);!H1(s)&&(i[o]=s)}),e[r]=void 0,i}}return n};return t(u,0)},LN0=vr("AsyncFunction"),$N0=u=>u&&(Op(u)||dn(u))&&dn(u.then)&&dn(u.catch),f0={isArray:H3,isArrayBuffer:o$,isBuffer:fN0,isFormData:bN0,isArrayBufferView:lN0,isString:cN0,isNumber:s$,isBoolean:dN0,isObject:Op,isPlainObject:M5,isUndefined:H1,isDate:EN0,isFile:pN0,isBlob:hN0,isRegExp:PN0,isFunction:dn,isStream:mN0,isURLSearchParams:gN0,isTypedArray:xN0,isFileList:CN0,forEach:n6,merge:km,extend:yN0,trim:AN0,stripBOM:vN0,inherits:BN0,toFlatObject:FN0,kindOf:Pp,kindOfTest:vr,endsWith:DN0,toArray:wN0,forEachEntry:kN0,matchAll:_N0,isHTMLForm:SN0,hasOwnProperty:Zk,hasOwnProp:Zk,reduceDescriptors:d$,freezeMethods:IN0,toObjectSet:ON0,toCamelCase:TN0,noop:RN0,toFiniteNumber:NN0,findKey:f$,global:l$,isContextDefined:c$,ALPHABET:E$,generateString:MN0,isSpecCompliantForm:jN0,toJSONObject:zN0,isAsyncFn:LN0,isThenable:$N0};function eu(u,e,t,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=u,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),r&&(this.response=r)}f0.inherits(eu,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:f0.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const p$=eu.prototype,h$={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(u=>{h$[u]={value:u}});Object.defineProperties(eu,h$);Object.defineProperty(p$,"isAxiosError",{value:!0});eu.from=(u,e,t,n,r,i)=>{const a=Object.create(p$);return f0.toFlatObject(u,a,function(s){return s!==Error.prototype},o=>o!=="isAxiosError"),eu.call(a,u.message,e,t,n,r),a.cause=u,a.name=u.name,i&&Object.assign(a,i),a};const UN0=null;function _m(u){return f0.isPlainObject(u)||f0.isArray(u)}function C$(u){return f0.endsWith(u,"[]")?u.slice(0,-2):u}function Xk(u,e,t){return u?u.concat(e).map(function(r,i){return r=C$(r),!t&&i?"["+r+"]":r}).join(t?".":""):e}function WN0(u){return f0.isArray(u)&&!u.some(_m)}const qN0=f0.toFlatObject(f0,{},null,function(e){return/^is[A-Z]/.test(e)});function Rp(u,e,t){if(!f0.isObject(u))throw new TypeError("target must be an object");e=e||new FormData,t=f0.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,g){return!f0.isUndefined(g[h])});const n=t.metaTokens,r=t.visitor||l,i=t.dots,a=t.indexes,s=(t.Blob||typeof Blob<"u"&&Blob)&&f0.isSpecCompliantForm(e);if(!f0.isFunction(r))throw new TypeError("visitor must be a function");function f(p){if(p===null)return"";if(f0.isDate(p))return p.toISOString();if(!s&&f0.isBlob(p))throw new eu("Blob is not supported. Use a Buffer instead.");return f0.isArrayBuffer(p)||f0.isTypedArray(p)?s&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function l(p,h,g){let b=p;if(p&&!g&&typeof p=="object"){if(f0.endsWith(h,"{}"))h=n?h:h.slice(0,-2),p=JSON.stringify(p);else if(f0.isArray(p)&&WN0(p)||(f0.isFileList(p)||f0.endsWith(h,"[]"))&&(b=f0.toArray(p)))return h=C$(h),b.forEach(function(A,y){!(f0.isUndefined(A)||A===null)&&e.append(a===!0?Xk([h],y,i):a===null?h:h+"[]",f(A))}),!1}return _m(p)?!0:(e.append(Xk(g,h,i),f(p)),!1)}const c=[],d=Object.assign(qN0,{defaultVisitor:l,convertValue:f,isVisitable:_m});function E(p,h){if(!f0.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+h.join("."));c.push(p),f0.forEach(p,function(b,m){(!(f0.isUndefined(b)||b===null)&&r.call(e,b,f0.isString(m)?m.trim():m,h,d))===!0&&E(b,h?h.concat(m):[m])}),c.pop()}}if(!f0.isObject(u))throw new TypeError("data must be an object");return E(u),e}function u_(u){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(u).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Jy(u,e){this._pairs=[],u&&Rp(u,this,e)}const m$=Jy.prototype;m$.append=function(e,t){this._pairs.push([e,t])};m$.toString=function(e){const t=e?function(n){return e.call(this,n,u_)}:u_;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function HN0(u){return encodeURIComponent(u).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function b$(u,e,t){if(!e)return u;const n=t&&t.encode||HN0,r=t&&t.serialize;let i;if(r?i=r(e,t):i=f0.isURLSearchParams(e)?e.toString():new Jy(e,t).toString(n),i){const a=u.indexOf("#");a!==-1&&(u=u.slice(0,a)),u+=(u.indexOf("?")===-1?"?":"&")+i}return u}class GN0{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){f0.forEach(this.handlers,function(n){n!==null&&e(n)})}}const e_=GN0,g$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},VN0=typeof URLSearchParams<"u"?URLSearchParams:Jy,KN0=typeof FormData<"u"?FormData:null,QN0=typeof Blob<"u"?Blob:null,JN0={isBrowser:!0,classes:{URLSearchParams:VN0,FormData:KN0,Blob:QN0},protocols:["http","https","file","blob","url","data"]},A$=typeof window<"u"&&typeof document<"u",ZN0=(u=>A$&&["ReactNative","NativeScript","NS"].indexOf(u)<0)(typeof navigator<"u"&&navigator.product),YN0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",XN0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:A$,hasStandardBrowserEnv:ZN0,hasStandardBrowserWebWorkerEnv:YN0},Symbol.toStringTag,{value:"Module"})),pr={...XN0,...JN0};function uM0(u,e){return Rp(u,new pr.classes.URLSearchParams,Object.assign({visitor:function(t,n,r,i){return pr.isNode&&f0.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function eM0(u){return f0.matchAll(/\w+|\[(\w*)]/g,u).map(e=>e[0]==="[]"?"":e[1]||e[0])}function tM0(u){const e={},t=Object.keys(u);let n;const r=t.length;let i;for(n=0;n=t.length;return a=!a&&f0.isArray(r)?r.length:a,s?(f0.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o):((!r[a]||!f0.isObject(r[a]))&&(r[a]=[]),e(t,n,r[a],i)&&f0.isArray(r[a])&&(r[a]=tM0(r[a])),!o)}if(f0.isFormData(u)&&f0.isFunction(u.entries)){const t={};return f0.forEachEntry(u,(n,r)=>{e(eM0(n),r,t,0)}),t}return null}function nM0(u,e,t){if(f0.isString(u))try{return(e||JSON.parse)(u),f0.trim(u)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(u)}const Zy={transitional:g$,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=f0.isObject(e);if(i&&f0.isHTMLForm(e)&&(e=new FormData(e)),f0.isFormData(e))return r&&r?JSON.stringify(y$(e)):e;if(f0.isArrayBuffer(e)||f0.isBuffer(e)||f0.isStream(e)||f0.isFile(e)||f0.isBlob(e))return e;if(f0.isArrayBufferView(e))return e.buffer;if(f0.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return uM0(e,this.formSerializer).toString();if((o=f0.isFileList(e))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Rp(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),nM0(e)):e}],transformResponse:[function(e){const t=this.transitional||Zy.transitional,n=t&&t.forcedJSONParsing,r=this.responseType==="json";if(e&&f0.isString(e)&&(n&&!this.responseType||r)){const a=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?eu.from(o,eu.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pr.classes.FormData,Blob:pr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};f0.forEach(["delete","get","head","post","put","patch"],u=>{Zy.headers[u]={}});const Yy=Zy,rM0=f0.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iM0=u=>{const e={};let t,n,r;return u&&u.split(` -`).forEach(function(a){r=a.indexOf(":"),t=a.substring(0,r).trim().toLowerCase(),n=a.substring(r+1).trim(),!(!t||e[t]&&rM0[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e},t_=Symbol("internals");function ml(u){return u&&String(u).trim().toLowerCase()}function j5(u){return u===!1||u==null?u:f0.isArray(u)?u.map(j5):String(u)}function aM0(u){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(u);)e[n[1]]=n[2];return e}const oM0=u=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(u.trim());function Mh(u,e,t,n,r){if(f0.isFunction(n))return n.call(this,e,t);if(r&&(e=t),!!f0.isString(e)){if(f0.isString(n))return e.indexOf(n)!==-1;if(f0.isRegExp(n))return n.test(e)}}function sM0(u){return u.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function fM0(u,e){const t=f0.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(u,n+t,{value:function(r,i,a){return this[n].call(this,e,r,i,a)},configurable:!0})})}class Np{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(o,s,f){const l=ml(s);if(!l)throw new Error("header name must be a non-empty string");const c=f0.findKey(r,l);(!c||r[c]===void 0||f===!0||f===void 0&&r[c]!==!1)&&(r[c||s]=j5(o))}const a=(o,s)=>f0.forEach(o,(f,l)=>i(f,l,s));return f0.isPlainObject(e)||e instanceof this.constructor?a(e,t):f0.isString(e)&&(e=e.trim())&&!oM0(e)?a(iM0(e),t):e!=null&&i(t,e,n),this}get(e,t){if(e=ml(e),e){const n=f0.findKey(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return aM0(r);if(f0.isFunction(t))return t.call(this,r,n);if(f0.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ml(e),e){const n=f0.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Mh(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let r=!1;function i(a){if(a=ml(a),a){const o=f0.findKey(n,a);o&&(!t||Mh(n,n[o],o,t))&&(delete n[o],r=!0)}}return f0.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];(!e||Mh(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return f0.forEach(this,(r,i)=>{const a=f0.findKey(n,i);if(a){t[a]=j5(r),delete t[i];return}const o=e?sM0(i):String(i).trim();o!==i&&delete t[i],t[o]=j5(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return f0.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&f0.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(r=>n.set(r)),n}static accessor(e){const n=(this[t_]=this[t_]={accessors:{}}).accessors,r=this.prototype;function i(a){const o=ml(a);n[o]||(fM0(r,a),n[o]=!0)}return f0.isArray(e)?e.forEach(i):i(e),this}}Np.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);f0.reduceDescriptors(Np.prototype,({value:u},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>u,set(n){this[t]=n}}});f0.freezeMethods(Np);const Yr=Np;function jh(u,e){const t=this||Yy,n=e||t,r=Yr.from(n.headers);let i=n.data;return f0.forEach(u,function(o){i=o.call(t,i,r.normalize(),e?e.status:void 0)}),r.normalize(),i}function v$(u){return!!(u&&u.__CANCEL__)}function r6(u,e,t){eu.call(this,u??"canceled",eu.ERR_CANCELED,e,t),this.name="CanceledError"}f0.inherits(r6,eu,{__CANCEL__:!0});function lM0(u,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?u(t):e(new eu("Request failed with status code "+t.status,[eu.ERR_BAD_REQUEST,eu.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const cM0=pr.hasStandardBrowserEnv?{write(u,e,t,n,r,i){const a=[u+"="+encodeURIComponent(e)];f0.isNumber(t)&&a.push("expires="+new Date(t).toGMTString()),f0.isString(n)&&a.push("path="+n),f0.isString(r)&&a.push("domain="+r),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(u){const e=document.cookie.match(new RegExp("(^|;\\s*)("+u+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(u){this.write(u,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function dM0(u){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(u)}function EM0(u,e){return e?u.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):u}function B$(u,e){return u&&!dM0(e)?EM0(u,e):e}const pM0=pr.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(i){let a=i;return e&&(t.setAttribute("href",a),a=t.href),t.setAttribute("href",a),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(a){const o=f0.isString(a)?r(a):a;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}();function hM0(u){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(u);return e&&e[1]||""}function CM0(u,e){u=u||10;const t=new Array(u),n=new Array(u);let r=0,i=0,a;return e=e!==void 0?e:1e3,function(s){const f=Date.now(),l=n[i];a||(a=f),t[r]=s,n[r]=f;let c=i,d=0;for(;c!==r;)d+=t[c++],c=c%u;if(r=(r+1)%u,r===i&&(i=(i+1)%u),f-a{const i=r.loaded,a=r.lengthComputable?r.total:void 0,o=i-t,s=n(o),f=i<=a;t=i;const l={loaded:i,total:a,progress:a?i/a:void 0,bytes:o,rate:s||void 0,estimated:s&&a&&f?(a-i)/s:void 0,event:r};l[e?"download":"upload"]=!0,u(l)}}const mM0=typeof XMLHttpRequest<"u",bM0=mM0&&function(u){return new Promise(function(t,n){let r=u.data;const i=Yr.from(u.headers).normalize();let{responseType:a,withXSRFToken:o}=u,s;function f(){u.cancelToken&&u.cancelToken.unsubscribe(s),u.signal&&u.signal.removeEventListener("abort",s)}let l;if(f0.isFormData(r)){if(pr.hasStandardBrowserEnv||pr.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((l=i.getContentType())!==!1){const[h,...g]=l?l.split(";").map(b=>b.trim()).filter(Boolean):[];i.setContentType([h||"multipart/form-data",...g].join("; "))}}let c=new XMLHttpRequest;if(u.auth){const h=u.auth.username||"",g=u.auth.password?unescape(encodeURIComponent(u.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+g))}const d=B$(u.baseURL,u.url);c.open(u.method.toUpperCase(),b$(d,u.params,u.paramsSerializer),!0),c.timeout=u.timeout;function E(){if(!c)return;const h=Yr.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:h,config:u,request:c};lM0(function(A){t(A),f()},function(A){n(A),f()},b),c=null}if("onloadend"in c?c.onloadend=E:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(E)},c.onabort=function(){c&&(n(new eu("Request aborted",eu.ECONNABORTED,u,c)),c=null)},c.onerror=function(){n(new eu("Network Error",eu.ERR_NETWORK,u,c)),c=null},c.ontimeout=function(){let g=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded";const b=u.transitional||g$;u.timeoutErrorMessage&&(g=u.timeoutErrorMessage),n(new eu(g,b.clarifyTimeoutError?eu.ETIMEDOUT:eu.ECONNABORTED,u,c)),c=null},pr.hasStandardBrowserEnv&&(o&&f0.isFunction(o)&&(o=o(u)),o||o!==!1&&pM0(d))){const h=u.xsrfHeaderName&&u.xsrfCookieName&&cM0.read(u.xsrfCookieName);h&&i.set(u.xsrfHeaderName,h)}r===void 0&&i.setContentType(null),"setRequestHeader"in c&&f0.forEach(i.toJSON(),function(g,b){c.setRequestHeader(b,g)}),f0.isUndefined(u.withCredentials)||(c.withCredentials=!!u.withCredentials),a&&a!=="json"&&(c.responseType=u.responseType),typeof u.onDownloadProgress=="function"&&c.addEventListener("progress",n_(u.onDownloadProgress,!0)),typeof u.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",n_(u.onUploadProgress)),(u.cancelToken||u.signal)&&(s=h=>{c&&(n(!h||h.type?new r6(null,u,c):h),c.abort(),c=null)},u.cancelToken&&u.cancelToken.subscribe(s),u.signal&&(u.signal.aborted?s():u.signal.addEventListener("abort",s)));const p=hM0(d);if(p&&pr.protocols.indexOf(p)===-1){n(new eu("Unsupported protocol "+p+":",eu.ERR_BAD_REQUEST,u));return}c.send(r||null)})},Sm={http:UN0,xhr:bM0};f0.forEach(Sm,(u,e)=>{if(u){try{Object.defineProperty(u,"name",{value:e})}catch{}Object.defineProperty(u,"adapterName",{value:e})}});const r_=u=>`- ${u}`,gM0=u=>f0.isFunction(u)||u===null||u===!1,F$={getAdapter:u=>{u=f0.isArray(u)?u:[u];const{length:e}=u;let t,n;const r={};for(let i=0;i`adapter ${o} `+(s===!1?"is not supported by the environment":"is not available in the build"));let a=e?i.length>1?`since : -`+i.map(r_).join(` -`):" "+r_(i[0]):"as no adapter specified";throw new eu("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:Sm};function zh(u){if(u.cancelToken&&u.cancelToken.throwIfRequested(),u.signal&&u.signal.aborted)throw new r6(null,u)}function i_(u){return zh(u),u.headers=Yr.from(u.headers),u.data=jh.call(u,u.transformRequest),["post","put","patch"].indexOf(u.method)!==-1&&u.headers.setContentType("application/x-www-form-urlencoded",!1),F$.getAdapter(u.adapter||Yy.adapter)(u).then(function(n){return zh(u),n.data=jh.call(u,u.transformResponse,n),n.headers=Yr.from(n.headers),n},function(n){return v$(n)||(zh(u),n&&n.response&&(n.response.data=jh.call(u,u.transformResponse,n.response),n.response.headers=Yr.from(n.response.headers))),Promise.reject(n)})}const a_=u=>u instanceof Yr?u.toJSON():u;function s3(u,e){e=e||{};const t={};function n(f,l,c){return f0.isPlainObject(f)&&f0.isPlainObject(l)?f0.merge.call({caseless:c},f,l):f0.isPlainObject(l)?f0.merge({},l):f0.isArray(l)?l.slice():l}function r(f,l,c){if(f0.isUndefined(l)){if(!f0.isUndefined(f))return n(void 0,f,c)}else return n(f,l,c)}function i(f,l){if(!f0.isUndefined(l))return n(void 0,l)}function a(f,l){if(f0.isUndefined(l)){if(!f0.isUndefined(f))return n(void 0,f)}else return n(void 0,l)}function o(f,l,c){if(c in e)return n(f,l);if(c in u)return n(void 0,f)}const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(f,l)=>r(a_(f),a_(l),!0)};return f0.forEach(Object.keys(Object.assign({},u,e)),function(l){const c=s[l]||r,d=c(u[l],e[l],l);f0.isUndefined(d)&&c!==o||(t[l]=d)}),t}const D$="1.6.2",Xy={};["object","boolean","number","function","string","symbol"].forEach((u,e)=>{Xy[u]=function(n){return typeof n===u||"a"+(e<1?"n ":" ")+u}});const o_={};Xy.transitional=function(e,t,n){function r(i,a){return"[Axios v"+D$+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,o)=>{if(e===!1)throw new eu(r(a," has been removed"+(t?" in "+t:"")),eu.ERR_DEPRECATED);return t&&!o_[a]&&(o_[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,a,o):!0}};function AM0(u,e,t){if(typeof u!="object")throw new eu("options must be an object",eu.ERR_BAD_OPTION_VALUE);const n=Object.keys(u);let r=n.length;for(;r-- >0;){const i=n[r],a=e[i];if(a){const o=u[i],s=o===void 0||a(o,i,u);if(s!==!0)throw new eu("option "+i+" must be "+s,eu.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new eu("Unknown option "+i,eu.ERR_BAD_OPTION)}}const Tm={assertOptions:AM0,validators:Xy},wi=Tm.validators;class v9{constructor(e){this.defaults=e,this.interceptors={request:new e_,response:new e_}}request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=s3(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Tm.assertOptions(n,{silentJSONParsing:wi.transitional(wi.boolean),forcedJSONParsing:wi.transitional(wi.boolean),clarifyTimeoutError:wi.transitional(wi.boolean)},!1),r!=null&&(f0.isFunction(r)?t.paramsSerializer={serialize:r}:Tm.assertOptions(r,{encode:wi.function,serialize:wi.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&f0.merge(i.common,i[t.method]);i&&f0.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),t.headers=Yr.concat(a,i);const o=[];let s=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(s=s&&h.synchronous,o.unshift(h.fulfilled,h.rejected))});const f=[];this.interceptors.response.forEach(function(h){f.push(h.fulfilled,h.rejected)});let l,c=0,d;if(!s){const p=[i_.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,f),d=p.length,l=Promise.resolve(t);c{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](r);n._listeners=null}),this.promise.then=r=>{let i;const a=new Promise(o=>{n.subscribe(o),i=o}).then(r);return a.cancel=function(){n.unsubscribe(i)},a},e(function(i,a,o){n.reason||(n.reason=new r6(i,a,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new uv(function(r){e=r}),cancel:e}}}const yM0=uv;function vM0(u){return function(t){return u.apply(null,t)}}function BM0(u){return f0.isObject(u)&&u.isAxiosError===!0}const Pm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Pm).forEach(([u,e])=>{Pm[e]=u});const FM0=Pm;function w$(u){const e=new z5(u),t=a$(z5.prototype.request,e);return f0.extend(t,z5.prototype,e,{allOwnKeys:!0}),f0.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return w$(s3(u,r))},t}const ee=w$(Yy);ee.Axios=z5;ee.CanceledError=r6;ee.CancelToken=yM0;ee.isCancel=v$;ee.VERSION=D$;ee.toFormData=Rp;ee.AxiosError=eu;ee.Cancel=ee.CanceledError;ee.all=function(e){return Promise.all(e)};ee.spread=vM0;ee.isAxiosError=BM0;ee.mergeConfig=s3;ee.AxiosHeaders=Yr;ee.formToJSON=u=>y$(f0.isHTMLForm(u)?new FormData(u):u);ee.getAdapter=F$.getAdapter;ee.HttpStatusCode=FM0;ee.default=ee;const s_=ee,DM0=u=>{const[e,t]=w.useState(null),[n,r]=w.useState(""),[i,a]=w.useState(""),[o,s]=w.useState(void 0),[f,l]=w.useState(void 0),[c,d]=w.useState(!1),E=b=>{var m,A;(m=b==null?void 0:b.target)!=null&&m.files&&t((A=b==null?void 0:b.target)==null?void 0:A.files[0])},p=b=>{var m,A;(m=b==null?void 0:b.target)!=null&&m.value&&s((A=b==null?void 0:b.target)==null?void 0:A.value)},h=b=>{var m,A;(m=b==null?void 0:b.target)!=null&&m.value&&l((A=b==null?void 0:b.target)==null?void 0:A.value)},g=async()=>{if(e===null)return alert("No file selected.");d(!0);const b=new FormData;b.append("file",e);const m=JSON.stringify({name:"NFTPic"});b.append("pinataMetadata",m);try{console.log("Uploading file on IPFS... ");const A=await s_.post("https://api.pinata.cloud/pinning/pinFileToIPFS",b,{maxBodyLength:1/0,headers:{"Content-Type":"multipart/form-data;",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M"}});console.log("response: ",A);const y="https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/"+A.data.IpfsHash;r(y),console.log("IPFS URL:",y);const B=JSON.stringify({pinataContent:{name:o,description:f,external_url:"https://Narpet.io",image:y},pinataMetadata:{name:"metadata.json"}}),v=await s_.post("https://api.pinata.cloud/pinning/pinJSONToIPFS",B,{headers:{"Content-Type":"application/json",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M"}});console.log(v.data);const C="https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/"+v.data.IpfsHash;a(C),u.setCid(v.data.IpfsHash)}catch(A){console.error("Error uploading file:",A)}d(!1)};return K.jsxs("div",{children:[K.jsx("input",{disabled:c,type:"file",onChange:E,accept:"image/*"}),K.jsx("input",{type:"text",content:o,onChange:p}),K.jsx("input",{type:"text",content:f,onChange:h}),K.jsx(kk0,{disabled:c,onClick:g,children:"Upload to IPFS"}),c&&K.jsx(Jt,{children:"Uploading file ..."}),n&&K.jsx("div",{children:K.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:"View uploaded image"})}),n&&K.jsx("img",{src:n,width:200,height:275}),i&&K.jsx("div",{children:K.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:"View Json Metadat"})})]})},wM0="hh-sol-artifact-1",xM0="Reserver",kM0="contracts/Reserver.sol",_M0=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"id",type:"bytes32"}],name:"ChainlinkCancelled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"id",type:"bytes32"}],name:"ChainlinkFulfilled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"id",type:"bytes32"}],name:"ChainlinkRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Reserve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"fee",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"requestId",type:"bytes32"}],name:"fulfill",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"fulfills",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"isReserved",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"jobId",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"oracle",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"owners",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"requestPending",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"requests",outputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"reserved",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_link",type:"address"},{internalType:"address",name:"_oracle",type:"address"},{internalType:"string",name:"_jobId",type:"string"},{internalType:"uint256",name:"_fee",type:"uint256"}],name:"setJobConfig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"verify",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"nonpayable",type:"function"}],SM0="0x608060405260016004553480156200001657600080fd5b5033600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036200008d5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000849190620001b0565b60405180910390fd5b6200009e81620000a560201b60201c565b50620001cd565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000198826200016b565b9050919050565b620001aa816200018b565b82525050565b6000602082019050620001c760008301846200019f565b92915050565b6120ca80620001dd6000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80637dc0d1d0116100a2578063c2939d9711610071578063c2939d97146102cd578063db7b64a8146102eb578063ddca3f431461031b578063f2fde38b14610339578063ffbb6989146103555761010b565b80637dc0d1d0146102305780638753367f1461024e5780638da5cb5b1461027e5780639d8669851461029c5761010b565b80636352211e116100de5780636352211e146101bc578063715018a6146101ec578063761ca398146101f657806376f3dc84146102145761010b565b8063025e7c27146101105780632228adcc1461014057806353f9195e146101705780635508ff94146101a0575b600080fd5b61012a6004803603810190610125919061162c565b610385565b604051610137919061169a565b60405180910390f35b61015a6004803603810190610155919061162c565b6103b8565b60405161016791906116d0565b60405180910390f35b61018a6004803603810190610185919061162c565b6103e2565b60405161019791906116d0565b60405180910390f35b6101ba60048036038101906101b59190611721565b610402565b005b6101d660048036038101906101d1919061162c565b610500565b6040516101e3919061169a565b60405180910390f35b6101f461053d565b005b6101fe610551565b60405161020b919061175d565b60405180910390f35b61022e600480360381019061022991906118ea565b610557565b005b6102386105c5565b604051610245919061169a565b60405180910390f35b6102686004803603810190610263919061162c565b6105eb565b604051610275919061197c565b60405180910390f35b610286610810565b604051610293919061169a565b60405180910390f35b6102b660048036038101906102b19190611721565b61083a565b6040516102c4929190611997565b60405180910390f35b6102d561087e565b6040516102e2919061197c565b60405180910390f35b6103056004803603810190610300919061162c565b610884565b60405161031291906116d0565b60405180910390f35b6103236108cc565b604051610330919061175d565b60405180910390f35b610353600480360381019061034e91906119c0565b6108d2565b005b61036f600480360381019061036a91906119c0565b610958565b60405161037c91906116d0565b60405180910390f35b600b6020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600e600083815260200190815260200160002060009054906101000a900460ff169050919050565b600e6020528060005260406000206000915054906101000a900460ff1681565b6000600a6000838152602001908152602001600020905033600b60008360010154815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600c60008282546104829190611a1c565b92505081905550600d60008260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff02191690555050565b6000600b600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610545610978565b61054f60006109ff565b565b600c5481565b61055f610978565b61056884610ac5565b82600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506105b282610b09565b6008819055508060098190555050505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080309050600d60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561067e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067590611ad3565b60405180910390fd5b600061069460085483635508ff9460e01b610b32565b90506106e86040518060400160405280600781526020017f746f6b656e4964000000000000000000000000000000000000000000000000008152506106d886610b63565b83610c319092919063ffffffff16565b6000610719600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600954610c64565b905060405180604001604052808473ffffffffffffffffffffffffffffffffffffffff16815260200186815250600a600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101559050506001600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550809350505050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600a6020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154905082565b60085481565b6000806000801b905061089681610402565b6001600e600085815260200190815260200160002060006101000a81548160ff0219169083151502179055506001915050919050565b60095481565b6108da610978565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361094c5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610943919061169a565b60405180910390fd5b610955816109ff565b50565b600d6020528060005260406000206000915054906101000a900460ff1681565b610980610d30565b73ffffffffffffffffffffffffffffffffffffffff1661099e610810565b73ffffffffffffffffffffffffffffffffffffffff16146109fd576109c1610d30565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016109f4919061169a565b60405180910390fd5b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000808290506000815103610b24576000801b915050610b2d565b60208301519150505b919050565b610b3a61155b565b610b4261155b565b610b5985858584610d38909392919063ffffffff16565b9150509392505050565b606060006001610b7284610de8565b01905060008167ffffffffffffffff811115610b9157610b906117bf565b5b6040519080825280601f01601f191660200182016040528015610bc35781602001600182028036833780820191505090505b509050600082602001820190505b600115610c26578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581610c1a57610c19611af3565b5b04945060008503610bd1575b819350505050919050565b610c48828460800151610f3b90919063ffffffff16565b610c5f818460800151610f3b90919063ffffffff16565b505050565b6000806004549050600181610c799190611a1c565b6004819055506000634042994660e01b60008087600001513089604001518760018c6080015160000151604051602401610cba989796959493929190611bdc565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050610d2586838684610f60565b925050509392505050565b600033905090565b610d4061155b565b610d5085608001516101006110f5565b508385600001818152505082856020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508185604001907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681525050849050949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310610e46577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381610e3c57610e3b611af3565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310610e83576d04ee2d6d415b85acef81000000008381610e7957610e78611af3565b5b0492506020810190505b662386f26fc100008310610eb257662386f26fc100008381610ea857610ea7611af3565b5b0492506010810190505b6305f5e1008310610edb576305f5e1008381610ed157610ed0611af3565b5b0492506008810190505b6127108310610f00576127108381610ef657610ef5611af3565b5b0492506004810190505b60648310610f235760648381610f1957610f18611af3565b5b0492506002810190505b600a8310610f32576001810190505b80915050919050565b610f48826003835161115f565b610f5b81836112e490919063ffffffff16565b505050565b60003084604051602001610f75929190611d1a565b604051602081830303815290604052805190602001209050846005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550807fb5e6e01e79f91267dc17b4e6314d5d4d03593d2ceee0fbb452b750bd70ea5af960405160405180910390a2600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634000aea08685856040518463ffffffff1660e01b815260040161106b93929190611d46565b6020604051808303816000875af115801561108a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ae9190611db0565b6110ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e490611e4f565b60405180910390fd5b949350505050565b6110fd6115c8565b600060208361110c9190611e6f565b146111385760208261111e9190611e6f565b602061112a9190611ea0565b826111359190611a1c565b91505b81836020018181525050604051808452600081528281016020016040525082905092915050565b60178167ffffffffffffffff1611611196576111908160058460ff16901b60ff16178461130690919063ffffffff16565b506112df565b60ff8167ffffffffffffffff16116111ec576111c5601860058460ff16901b178461130690919063ffffffff16565b506111e68167ffffffffffffffff166001856113269092919063ffffffff16565b506112de565b61ffff8167ffffffffffffffff16116112435761121c601960058460ff16901b178461130690919063ffffffff16565b5061123d8167ffffffffffffffff166002856113269092919063ffffffff16565b506112dd565b63ffffffff8167ffffffffffffffff161161129c57611275601a60058460ff16901b178461130690919063ffffffff16565b506112968167ffffffffffffffff166004856113269092919063ffffffff16565b506112dc565b6112b9601b60058460ff16901b178461130690919063ffffffff16565b506112da8167ffffffffffffffff166008856113269092919063ffffffff16565b505b5b5b5b505050565b6112ec6115c8565b6112fe83846000015151848551611348565b905092915050565b61130e6115c8565b61131e8384600001515184611437565b905092915050565b61132e6115c8565b61133f84856000015151858561148d565b90509392505050565b6113506115c8565b825182111561135e57600080fd5b8460200151828561136f9190611a1c565b11156113a4576113a38560026113948860200151888761138f9190611a1c565b61151b565b61139e9190611ed4565b611537565b5b6000808651805187602083010193508088870111156113c35787860182525b60208701925050505b6020841061140a57805182526020826113e59190611a1c565b91506020816113f49190611a1c565b90506020846114039190611ea0565b93506113cc565b60006001856020036101000a03905080198251168184511681811785525050508692505050949350505050565b61143f6115c8565b8360200151831061146557611464846002866020015161145f9190611ed4565b611537565b5b83518051602085830101848153818603611480576001820183525b5050508390509392505050565b6114956115c8565b846020015184836114a69190611a1c565b11156114ce576114cd85600286856114be9190611a1c565b6114c89190611ed4565b611537565b5b60006001836101006114e09190612049565b6114ea9190611ea0565b9050855183868201018583198251161781528151858801111561150d5784870182525b505085915050949350505050565b60008183111561152d57829050611531565b8190505b92915050565b60008260000151905061154a83836110f5565b5061155583826112e4565b50505050565b6040518060a0016040528060008019168152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001600081526020016115c26115c8565b81525090565b604051806040016040528060608152602001600081525090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b611609816115f6565b811461161457600080fd5b50565b60008135905061162681611600565b92915050565b600060208284031215611642576116416115ec565b5b600061165084828501611617565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061168482611659565b9050919050565b61169481611679565b82525050565b60006020820190506116af600083018461168b565b92915050565b60008115159050919050565b6116ca816116b5565b82525050565b60006020820190506116e560008301846116c1565b92915050565b6000819050919050565b6116fe816116eb565b811461170957600080fd5b50565b60008135905061171b816116f5565b92915050565b600060208284031215611737576117366115ec565b5b60006117458482850161170c565b91505092915050565b611757816115f6565b82525050565b6000602082019050611772600083018461174e565b92915050565b61178181611679565b811461178c57600080fd5b50565b60008135905061179e81611778565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6117f7826117ae565b810181811067ffffffffffffffff82111715611816576118156117bf565b5b80604052505050565b60006118296115e2565b905061183582826117ee565b919050565b600067ffffffffffffffff821115611855576118546117bf565b5b61185e826117ae565b9050602081019050919050565b82818337600083830152505050565b600061188d6118888461183a565b61181f565b9050828152602081018484840111156118a9576118a86117a9565b5b6118b484828561186b565b509392505050565b600082601f8301126118d1576118d06117a4565b5b81356118e184826020860161187a565b91505092915050565b60008060008060808587031215611904576119036115ec565b5b60006119128782880161178f565b94505060206119238782880161178f565b935050604085013567ffffffffffffffff811115611944576119436115f1565b5b611950878288016118bc565b925050606061196187828801611617565b91505092959194509250565b611976816116eb565b82525050565b6000602082019050611991600083018461196d565b92915050565b60006040820190506119ac600083018561168b565b6119b9602083018461174e565b9392505050565b6000602082840312156119d6576119d56115ec565b5b60006119e48482850161178f565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611a27826115f6565b9150611a32836115f6565b9250828201905080821115611a4a57611a496119ed565b5b92915050565b600082825260208201905092915050565b7f53656e64657220616c72656164792068617320612070656e64696e672072657160008201527f7565737400000000000000000000000000000000000000000000000000000000602082015250565b6000611abd602483611a50565b9150611ac882611a61565b604082019050919050565b60006020820190508181036000830152611aec81611ab0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611b5781611b22565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611b97578082015181840152602081019050611b7c565b60008484015250505050565b6000611bae82611b5d565b611bb88185611b68565b9350611bc8818560208601611b79565b611bd1816117ae565b840191505092915050565b600061010082019050611bf2600083018b61168b565b611bff602083018a61174e565b611c0c604083018961196d565b611c19606083018861168b565b611c266080830187611b4e565b611c3360a083018661174e565b611c4060c083018561174e565b81810360e0830152611c528184611ba3565b90509998505050505050505050565b6000819050919050565b6000611c86611c81611c7c84611659565b611c61565b611659565b9050919050565b6000611c9882611c6b565b9050919050565b6000611caa82611c8d565b9050919050565b60008160601b9050919050565b6000611cc982611cb1565b9050919050565b6000611cdb82611cbe565b9050919050565b611cf3611cee82611c9f565b611cd0565b82525050565b6000819050919050565b611d14611d0f826115f6565b611cf9565b82525050565b6000611d268285611ce2565b601482019150611d368284611d03565b6020820191508190509392505050565b6000606082019050611d5b600083018661168b565b611d68602083018561174e565b8181036040830152611d7a8184611ba3565b9050949350505050565b611d8d816116b5565b8114611d9857600080fd5b50565b600081519050611daa81611d84565b92915050565b600060208284031215611dc657611dc56115ec565b5b6000611dd484828501611d9b565b91505092915050565b7f756e61626c6520746f207472616e73666572416e6443616c6c20746f206f726160008201527f636c650000000000000000000000000000000000000000000000000000000000602082015250565b6000611e39602383611a50565b9150611e4482611ddd565b604082019050919050565b60006020820190508181036000830152611e6881611e2c565b9050919050565b6000611e7a826115f6565b9150611e85836115f6565b925082611e9557611e94611af3565b5b828206905092915050565b6000611eab826115f6565b9150611eb6836115f6565b9250828203905081811115611ece57611ecd6119ed565b5b92915050565b6000611edf826115f6565b9150611eea836115f6565b9250828202611ef8816115f6565b91508282048414831517611f0f57611f0e6119ed565b5b5092915050565b60008160011c9050919050565b6000808291508390505b6001851115611f6d57808604811115611f4957611f486119ed565b5b6001851615611f585780820291505b8081029050611f6685611f16565b9450611f2d565b94509492505050565b600082611f865760019050612042565b81611f945760009050612042565b8160018114611faa5760028114611fb457611fe3565b6001915050612042565b60ff841115611fc657611fc56119ed565b5b8360020a915084821115611fdd57611fdc6119ed565b5b50612042565b5060208310610133831016604e8410600b84101617156120185782820a905083811115612013576120126119ed565b5b612042565b6120258484846001611f23565b9250905081840481111561203c5761203b6119ed565b5b81810290505b9392505050565b6000612054826115f6565b915061205f836115f6565b925061208c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611f76565b90509291505056fea264697066735822122081a3c3aca2ec52ec459268340c16503a18692cc69c79723f1bab2f57589683ad64736f6c63430008140033",TM0="0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80637dc0d1d0116100a2578063c2939d9711610071578063c2939d97146102cd578063db7b64a8146102eb578063ddca3f431461031b578063f2fde38b14610339578063ffbb6989146103555761010b565b80637dc0d1d0146102305780638753367f1461024e5780638da5cb5b1461027e5780639d8669851461029c5761010b565b80636352211e116100de5780636352211e146101bc578063715018a6146101ec578063761ca398146101f657806376f3dc84146102145761010b565b8063025e7c27146101105780632228adcc1461014057806353f9195e146101705780635508ff94146101a0575b600080fd5b61012a6004803603810190610125919061162c565b610385565b604051610137919061169a565b60405180910390f35b61015a6004803603810190610155919061162c565b6103b8565b60405161016791906116d0565b60405180910390f35b61018a6004803603810190610185919061162c565b6103e2565b60405161019791906116d0565b60405180910390f35b6101ba60048036038101906101b59190611721565b610402565b005b6101d660048036038101906101d1919061162c565b610500565b6040516101e3919061169a565b60405180910390f35b6101f461053d565b005b6101fe610551565b60405161020b919061175d565b60405180910390f35b61022e600480360381019061022991906118ea565b610557565b005b6102386105c5565b604051610245919061169a565b60405180910390f35b6102686004803603810190610263919061162c565b6105eb565b604051610275919061197c565b60405180910390f35b610286610810565b604051610293919061169a565b60405180910390f35b6102b660048036038101906102b19190611721565b61083a565b6040516102c4929190611997565b60405180910390f35b6102d561087e565b6040516102e2919061197c565b60405180910390f35b6103056004803603810190610300919061162c565b610884565b60405161031291906116d0565b60405180910390f35b6103236108cc565b604051610330919061175d565b60405180910390f35b610353600480360381019061034e91906119c0565b6108d2565b005b61036f600480360381019061036a91906119c0565b610958565b60405161037c91906116d0565b60405180910390f35b600b6020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600e600083815260200190815260200160002060009054906101000a900460ff169050919050565b600e6020528060005260406000206000915054906101000a900460ff1681565b6000600a6000838152602001908152602001600020905033600b60008360010154815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600c60008282546104829190611a1c565b92505081905550600d60008260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff02191690555050565b6000600b600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610545610978565b61054f60006109ff565b565b600c5481565b61055f610978565b61056884610ac5565b82600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506105b282610b09565b6008819055508060098190555050505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080309050600d60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561067e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067590611ad3565b60405180910390fd5b600061069460085483635508ff9460e01b610b32565b90506106e86040518060400160405280600781526020017f746f6b656e4964000000000000000000000000000000000000000000000000008152506106d886610b63565b83610c319092919063ffffffff16565b6000610719600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600954610c64565b905060405180604001604052808473ffffffffffffffffffffffffffffffffffffffff16815260200186815250600a600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101559050506001600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550809350505050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600a6020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154905082565b60085481565b6000806000801b905061089681610402565b6001600e600085815260200190815260200160002060006101000a81548160ff0219169083151502179055506001915050919050565b60095481565b6108da610978565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361094c5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610943919061169a565b60405180910390fd5b610955816109ff565b50565b600d6020528060005260406000206000915054906101000a900460ff1681565b610980610d30565b73ffffffffffffffffffffffffffffffffffffffff1661099e610810565b73ffffffffffffffffffffffffffffffffffffffff16146109fd576109c1610d30565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016109f4919061169a565b60405180910390fd5b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000808290506000815103610b24576000801b915050610b2d565b60208301519150505b919050565b610b3a61155b565b610b4261155b565b610b5985858584610d38909392919063ffffffff16565b9150509392505050565b606060006001610b7284610de8565b01905060008167ffffffffffffffff811115610b9157610b906117bf565b5b6040519080825280601f01601f191660200182016040528015610bc35781602001600182028036833780820191505090505b509050600082602001820190505b600115610c26578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581610c1a57610c19611af3565b5b04945060008503610bd1575b819350505050919050565b610c48828460800151610f3b90919063ffffffff16565b610c5f818460800151610f3b90919063ffffffff16565b505050565b6000806004549050600181610c799190611a1c565b6004819055506000634042994660e01b60008087600001513089604001518760018c6080015160000151604051602401610cba989796959493929190611bdc565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050610d2586838684610f60565b925050509392505050565b600033905090565b610d4061155b565b610d5085608001516101006110f5565b508385600001818152505082856020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508185604001907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681525050849050949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310610e46577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381610e3c57610e3b611af3565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310610e83576d04ee2d6d415b85acef81000000008381610e7957610e78611af3565b5b0492506020810190505b662386f26fc100008310610eb257662386f26fc100008381610ea857610ea7611af3565b5b0492506010810190505b6305f5e1008310610edb576305f5e1008381610ed157610ed0611af3565b5b0492506008810190505b6127108310610f00576127108381610ef657610ef5611af3565b5b0492506004810190505b60648310610f235760648381610f1957610f18611af3565b5b0492506002810190505b600a8310610f32576001810190505b80915050919050565b610f48826003835161115f565b610f5b81836112e490919063ffffffff16565b505050565b60003084604051602001610f75929190611d1a565b604051602081830303815290604052805190602001209050846005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550807fb5e6e01e79f91267dc17b4e6314d5d4d03593d2ceee0fbb452b750bd70ea5af960405160405180910390a2600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634000aea08685856040518463ffffffff1660e01b815260040161106b93929190611d46565b6020604051808303816000875af115801561108a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ae9190611db0565b6110ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e490611e4f565b60405180910390fd5b949350505050565b6110fd6115c8565b600060208361110c9190611e6f565b146111385760208261111e9190611e6f565b602061112a9190611ea0565b826111359190611a1c565b91505b81836020018181525050604051808452600081528281016020016040525082905092915050565b60178167ffffffffffffffff1611611196576111908160058460ff16901b60ff16178461130690919063ffffffff16565b506112df565b60ff8167ffffffffffffffff16116111ec576111c5601860058460ff16901b178461130690919063ffffffff16565b506111e68167ffffffffffffffff166001856113269092919063ffffffff16565b506112de565b61ffff8167ffffffffffffffff16116112435761121c601960058460ff16901b178461130690919063ffffffff16565b5061123d8167ffffffffffffffff166002856113269092919063ffffffff16565b506112dd565b63ffffffff8167ffffffffffffffff161161129c57611275601a60058460ff16901b178461130690919063ffffffff16565b506112968167ffffffffffffffff166004856113269092919063ffffffff16565b506112dc565b6112b9601b60058460ff16901b178461130690919063ffffffff16565b506112da8167ffffffffffffffff166008856113269092919063ffffffff16565b505b5b5b5b505050565b6112ec6115c8565b6112fe83846000015151848551611348565b905092915050565b61130e6115c8565b61131e8384600001515184611437565b905092915050565b61132e6115c8565b61133f84856000015151858561148d565b90509392505050565b6113506115c8565b825182111561135e57600080fd5b8460200151828561136f9190611a1c565b11156113a4576113a38560026113948860200151888761138f9190611a1c565b61151b565b61139e9190611ed4565b611537565b5b6000808651805187602083010193508088870111156113c35787860182525b60208701925050505b6020841061140a57805182526020826113e59190611a1c565b91506020816113f49190611a1c565b90506020846114039190611ea0565b93506113cc565b60006001856020036101000a03905080198251168184511681811785525050508692505050949350505050565b61143f6115c8565b8360200151831061146557611464846002866020015161145f9190611ed4565b611537565b5b83518051602085830101848153818603611480576001820183525b5050508390509392505050565b6114956115c8565b846020015184836114a69190611a1c565b11156114ce576114cd85600286856114be9190611a1c565b6114c89190611ed4565b611537565b5b60006001836101006114e09190612049565b6114ea9190611ea0565b9050855183868201018583198251161781528151858801111561150d5784870182525b505085915050949350505050565b60008183111561152d57829050611531565b8190505b92915050565b60008260000151905061154a83836110f5565b5061155583826112e4565b50505050565b6040518060a0016040528060008019168152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001600081526020016115c26115c8565b81525090565b604051806040016040528060608152602001600081525090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b611609816115f6565b811461161457600080fd5b50565b60008135905061162681611600565b92915050565b600060208284031215611642576116416115ec565b5b600061165084828501611617565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061168482611659565b9050919050565b61169481611679565b82525050565b60006020820190506116af600083018461168b565b92915050565b60008115159050919050565b6116ca816116b5565b82525050565b60006020820190506116e560008301846116c1565b92915050565b6000819050919050565b6116fe816116eb565b811461170957600080fd5b50565b60008135905061171b816116f5565b92915050565b600060208284031215611737576117366115ec565b5b60006117458482850161170c565b91505092915050565b611757816115f6565b82525050565b6000602082019050611772600083018461174e565b92915050565b61178181611679565b811461178c57600080fd5b50565b60008135905061179e81611778565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6117f7826117ae565b810181811067ffffffffffffffff82111715611816576118156117bf565b5b80604052505050565b60006118296115e2565b905061183582826117ee565b919050565b600067ffffffffffffffff821115611855576118546117bf565b5b61185e826117ae565b9050602081019050919050565b82818337600083830152505050565b600061188d6118888461183a565b61181f565b9050828152602081018484840111156118a9576118a86117a9565b5b6118b484828561186b565b509392505050565b600082601f8301126118d1576118d06117a4565b5b81356118e184826020860161187a565b91505092915050565b60008060008060808587031215611904576119036115ec565b5b60006119128782880161178f565b94505060206119238782880161178f565b935050604085013567ffffffffffffffff811115611944576119436115f1565b5b611950878288016118bc565b925050606061196187828801611617565b91505092959194509250565b611976816116eb565b82525050565b6000602082019050611991600083018461196d565b92915050565b60006040820190506119ac600083018561168b565b6119b9602083018461174e565b9392505050565b6000602082840312156119d6576119d56115ec565b5b60006119e48482850161178f565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611a27826115f6565b9150611a32836115f6565b9250828201905080821115611a4a57611a496119ed565b5b92915050565b600082825260208201905092915050565b7f53656e64657220616c72656164792068617320612070656e64696e672072657160008201527f7565737400000000000000000000000000000000000000000000000000000000602082015250565b6000611abd602483611a50565b9150611ac882611a61565b604082019050919050565b60006020820190508181036000830152611aec81611ab0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611b5781611b22565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611b97578082015181840152602081019050611b7c565b60008484015250505050565b6000611bae82611b5d565b611bb88185611b68565b9350611bc8818560208601611b79565b611bd1816117ae565b840191505092915050565b600061010082019050611bf2600083018b61168b565b611bff602083018a61174e565b611c0c604083018961196d565b611c19606083018861168b565b611c266080830187611b4e565b611c3360a083018661174e565b611c4060c083018561174e565b81810360e0830152611c528184611ba3565b90509998505050505050505050565b6000819050919050565b6000611c86611c81611c7c84611659565b611c61565b611659565b9050919050565b6000611c9882611c6b565b9050919050565b6000611caa82611c8d565b9050919050565b60008160601b9050919050565b6000611cc982611cb1565b9050919050565b6000611cdb82611cbe565b9050919050565b611cf3611cee82611c9f565b611cd0565b82525050565b6000819050919050565b611d14611d0f826115f6565b611cf9565b82525050565b6000611d268285611ce2565b601482019150611d368284611d03565b6020820191508190509392505050565b6000606082019050611d5b600083018661168b565b611d68602083018561174e565b8181036040830152611d7a8184611ba3565b9050949350505050565b611d8d816116b5565b8114611d9857600080fd5b50565b600081519050611daa81611d84565b92915050565b600060208284031215611dc657611dc56115ec565b5b6000611dd484828501611d9b565b91505092915050565b7f756e61626c6520746f207472616e73666572416e6443616c6c20746f206f726160008201527f636c650000000000000000000000000000000000000000000000000000000000602082015250565b6000611e39602383611a50565b9150611e4482611ddd565b604082019050919050565b60006020820190508181036000830152611e6881611e2c565b9050919050565b6000611e7a826115f6565b9150611e85836115f6565b925082611e9557611e94611af3565b5b828206905092915050565b6000611eab826115f6565b9150611eb6836115f6565b9250828203905081811115611ece57611ecd6119ed565b5b92915050565b6000611edf826115f6565b9150611eea836115f6565b9250828202611ef8816115f6565b91508282048414831517611f0f57611f0e6119ed565b5b5092915050565b60008160011c9050919050565b6000808291508390505b6001851115611f6d57808604811115611f4957611f486119ed565b5b6001851615611f585780820291505b8081029050611f6685611f16565b9450611f2d565b94509492505050565b600082611f865760019050612042565b81611f945760009050612042565b8160018114611faa5760028114611fb457611fe3565b6001915050612042565b60ff841115611fc657611fc56119ed565b5b8360020a915084821115611fdd57611fdc6119ed565b5b50612042565b5060208310610133831016604e8410600b84101617156120185782820a905083811115612013576120126119ed565b5b612042565b6120258484846001611f23565b9250905081840481111561203c5761203b6119ed565b5b81810290505b9392505050565b6000612054826115f6565b915061205f836115f6565b925061208c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611f76565b90509291505056fea264697066735822122081a3c3aca2ec52ec459268340c16503a18692cc69c79723f1bab2f57589683ad64736f6c63430008140033",PM0={},IM0={},OM0={_format:wM0,contractName:xM0,sourceName:kM0,abi:_M0,bytecode:SM0,deployedBytecode:TM0,linkReferences:PM0,deployedLinkReferences:IM0};function RM0(){const u=Bt(),[e,t]=w.useState(void 0),[n,r]=w.useState(void 0),[i,a]=w.useState(!1),{config:o}=cf({address:Ty,abi:Ky.abi,functionName:"mint",args:[u.address,n,e,i,u.address],enabled:!!(u.address&&e&&n&&i!=null&&u.address)}),{data:s,write:f}=lf(o),{config:l}=cf({address:wP0,abi:OM0.abi,functionName:"Reserve",args:[n],enabled:!!n}),{data:c,write:d}=lf(l),{isLoading:E,isSuccess:p}=df({hash:c==null?void 0:c.hash}),{isLoading:h,isSuccess:g}=df({hash:s==null?void 0:s.hash});return w.useEffect(()=>{p&&a(!0)},[p]),w.useEffect(()=>{if(e){const b=zR0(e);r(b)}},[e]),K.jsxs(r3,{container:!0,justifyContent:"center",spacing:3,padding:7,direction:"column",alignItems:"center",children:[K.jsx(DM0,{cid:e,setCid:t}),h&&K.jsx(Jt,{children:"Loading...."}),g&&K.jsxs("div",{children:["Successfully minted your NFT!",K.jsx("div",{children:K.jsx("a",{href:`https://mumbai.polygonscan.com/tx/${s==null?void 0:s.hash}`,children:"Polygon Scan"})})]}),e&&K.jsx(Jt,{children:e}),K.jsx(Ho,{disabled:e==null||!p,onClick:()=>{console.log("Trying to mint..."),f==null||f()},children:"Mint"}),K.jsx(Ho,{disabled:e==null||E,onClick:()=>{console.log("Trying to Reserve..."),d==null||d()},children:"Reserve"})]})}function NM0(){return K.jsxs(vH,{children:[K.jsx(CP0,{}),K.jsxs(AH,{children:[K.jsx(Ms,{path:"/real-token/Explore",element:K.jsx($R0,{})}),K.jsx(Ms,{path:"/real-token/Explore/:NFTId",element:K.jsx(Jk,{sell:!1})}),K.jsx(Ms,{path:"/real-token/Profile/:ProfileId",element:K.jsx(oN0,{})}),K.jsx(Ms,{path:"/real-token/Profile/:ProfileId/:NFTId",element:K.jsx(Jk,{sell:!0})}),K.jsx(Ms,{path:"/real-token/Mint",element:K.jsx(RM0,{})})]})]})}function MM0(){return K.jsx(Sq,{children:K.jsx(NM0,{})})}const jM0=Qb({palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},error:{main:La.A400}}});function zM0(){return function(u){return u.rpcUrls.public.http[0]?{chain:u,rpcUrls:u.rpcUrls.public}:null}}const{chains:x$,publicClient:LM0}=Zn0([Nn0],[zM0()]),{connectors:$M0}=nk0({appName:"My RainbowKit App",projectId:"9d80089c30635ff84b5339d993d63fa1",chains:x$}),UM0=Nr0({autoConnect:!0,connectors:$M0,publicClient:LM0});Lh.createRoot(document.getElementById("root")).render(K.jsxs(EJ,{theme:jM0,children:[K.jsx(q_0,{}),K.jsx(Mr0,{config:UM0,children:K.jsx(py0,{chains:x$,children:K.jsx(MM0,{})})})]}));export{KE as $,Sj as A,mt as B,dj0 as C,xj0 as D,Gj0 as E,aj0 as F,Cj0 as G,Bj0 as H,vj0 as I,sj0 as J,nj0 as K,rj0 as L,cj0 as M,Ri as N,bj0 as O,mj0 as P,Ij0 as Q,ND0 as R,wj0 as S,vn as T,u3 as U,ej0 as V,hj0 as W,qj0 as X,Ej0 as Y,Wj0 as Z,Kc as _,VX as a,pj0 as a0,QE as a1,ly as a2,Tj as a3,fj0 as a4,lj0 as a5,tj0 as a6,Aj0 as a7,yj0 as a8,JE as a9,q0 as aA,CB0 as aB,TF0 as aC,Fj as aD,iD0 as aE,ay as aF,aD0 as aG,oD0 as aH,fD0 as aI,Bj as aJ,dD0 as aK,hD0 as aL,bD0 as aM,AD0 as aN,vD0 as aO,wF0 as aP,Dj as aQ,_D0 as aR,SD0 as aS,DD0 as aT,kD0 as aU,BC0 as aV,SC0 as aW,oj0 as aa,cy as ab,Fj0 as ac,gj0 as ad,Dj0 as ae,Hj0 as af,Tj0 as ag,Sj0 as ah,gw0 as ai,$j0 as aj,Oj0 as ak,Aw0 as al,_j0 as am,jj0 as an,Rj0 as ao,zj0 as ap,Uj0 as aq,Nj0 as ar,Mj0 as as,Lj0 as at,Pj0 as au,lw0 as av,Ij as aw,Ch as ax,JM0 as ay,ZM0 as az,KX as b,QX as c,TO as d,GI0 as e,T9 as f,RX as g,To as h,Zj as i,Q0 as j,$E as k,xO as l,Mn as m,Vl as n,Kw as o,P0 as p,f3 as q,VE as r,Po as s,qn as t,kj0 as u,YM0 as v,Kn as w,XM0 as x,uj0 as y,ij0 as z}; + */var Dy=Symbol.for("react.element"),wy=Symbol.for("react.portal"),fp=Symbol.for("react.fragment"),lp=Symbol.for("react.strict_mode"),cp=Symbol.for("react.profiler"),dp=Symbol.for("react.provider"),Ep=Symbol.for("react.context"),sk0=Symbol.for("react.server_context"),pp=Symbol.for("react.forward_ref"),hp=Symbol.for("react.suspense"),Cp=Symbol.for("react.suspense_list"),mp=Symbol.for("react.memo"),bp=Symbol.for("react.lazy"),fk0=Symbol.for("react.offscreen"),Az;Az=Symbol.for("react.module.reference");function Bn(u){if(typeof u=="object"&&u!==null){var e=u.$$typeof;switch(e){case Dy:switch(u=u.type,u){case fp:case cp:case lp:case hp:case Cp:return u;default:switch(u=u&&u.$$typeof,u){case sk0:case Ep:case pp:case bp:case mp:case dp:return u;default:return e}}case wy:return e}}}yu.ContextConsumer=Ep;yu.ContextProvider=dp;yu.Element=Dy;yu.ForwardRef=pp;yu.Fragment=fp;yu.Lazy=bp;yu.Memo=mp;yu.Portal=wy;yu.Profiler=cp;yu.StrictMode=lp;yu.Suspense=hp;yu.SuspenseList=Cp;yu.isAsyncMode=function(){return!1};yu.isConcurrentMode=function(){return!1};yu.isContextConsumer=function(u){return Bn(u)===Ep};yu.isContextProvider=function(u){return Bn(u)===dp};yu.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===Dy};yu.isForwardRef=function(u){return Bn(u)===pp};yu.isFragment=function(u){return Bn(u)===fp};yu.isLazy=function(u){return Bn(u)===bp};yu.isMemo=function(u){return Bn(u)===mp};yu.isPortal=function(u){return Bn(u)===wy};yu.isProfiler=function(u){return Bn(u)===cp};yu.isStrictMode=function(u){return Bn(u)===lp};yu.isSuspense=function(u){return Bn(u)===hp};yu.isSuspenseList=function(u){return Bn(u)===Cp};yu.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===fp||u===cp||u===lp||u===hp||u===Cp||u===fk0||typeof u=="object"&&u!==null&&(u.$$typeof===bp||u.$$typeof===mp||u.$$typeof===dp||u.$$typeof===Ep||u.$$typeof===pp||u.$$typeof===Az||u.getModuleId!==void 0)};yu.typeOf=Bn;const yz=u=>u.scrollTop;function f9(u,e){var t,n;const{timeout:r,easing:i,style:a={}}=u;return{duration:(t=a.transitionDuration)!=null?t:typeof r=="number"?r:r[e.mode]||0,easing:(n=a.transitionTimingFunction)!=null?n:typeof i=="object"?i[e.mode]:i,delay:a.transitionDelay}}function lk0(u){return fu("MuiTypography",u)}Eu("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ck0=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],dk0=u=>{const{align:e,gutterBottom:t,noWrap:n,paragraph:r,variant:i,classes:a}=u,o={root:["root",i,u.align!=="inherit"&&`align${K0(e)}`,t&&"gutterBottom",n&&"noWrap",r&&"paragraph"]};return du(o,lk0,a)},Ek0=$0("span",{name:"MuiTypography",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,t.variant&&e[t.variant],t.align!=="inherit"&&e[`align${K0(t.align)}`],t.noWrap&&e.noWrap,t.gutterBottom&&e.gutterBottom,t.paragraph&&e.paragraph]}})(({theme:u,ownerState:e})=>N({margin:0},e.variant==="inherit"&&{font:"inherit"},e.variant!=="inherit"&&u.typography[e.variant],e.align!=="inherit"&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16})),Ix={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},pk0={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},hk0=u=>pk0[u]||u,Ck0=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiTypography"}),r=hk0(n.color),i=Bd(N({},n,{color:r})),{align:a="inherit",className:o,component:s,gutterBottom:f=!1,noWrap:l=!1,paragraph:c=!1,variant:d="body1",variantMapping:E=Ix}=i,p=L0(i,ck0),h=N({},i,{align:a,color:r,className:o,component:s,gutterBottom:f,noWrap:l,paragraph:c,variant:d,variantMapping:E}),g=s||(c?"p":E[d]||Ix[d])||"span",b=dk0(h);return V.jsx(Ek0,N({as:g,ref:t,ownerState:h,className:H0(b.root,o)},p))}),Jt=Ck0;function l9(u){return typeof u=="string"}function mk0(u,e,t){return u===void 0||l9(u)?e:N({},e,{ownerState:N({},e.ownerState,t)})}const bk0={disableDefaultClasses:!1},gk0=w.createContext(bk0);function Ak0(u){const{disableDefaultClasses:e}=w.useContext(gk0);return t=>e?"":u(t)}function c9(u,e=[]){if(u===void 0)return{};const t={};return Object.keys(u).filter(n=>n.match(/^on[A-Z]/)&&typeof u[n]=="function"&&!e.includes(n)).forEach(n=>{t[n]=u[n]}),t}function yk0(u,e,t){return typeof u=="function"?u(e,t):u}function Ox(u){if(u===void 0)return{};const e={};return Object.keys(u).filter(t=>!(t.match(/^on[A-Z]/)&&typeof u[t]=="function")).forEach(t=>{e[t]=u[t]}),e}function vk0(u){const{getSlotProps:e,additionalProps:t,externalSlotProps:n,externalForwardedProps:r,className:i}=u;if(!e){const E=H0(t==null?void 0:t.className,i,r==null?void 0:r.className,n==null?void 0:n.className),p=N({},t==null?void 0:t.style,r==null?void 0:r.style,n==null?void 0:n.style),h=N({},t,r,n);return E.length>0&&(h.className=E),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:void 0}}const a=c9(N({},r,n)),o=Ox(n),s=Ox(r),f=e(a),l=H0(f==null?void 0:f.className,t==null?void 0:t.className,i,r==null?void 0:r.className,n==null?void 0:n.className),c=N({},f==null?void 0:f.style,t==null?void 0:t.style,r==null?void 0:r.style,n==null?void 0:n.style),d=N({},f,t,s,o);return l.length>0&&(d.className=l),Object.keys(c).length>0&&(d.style=c),{props:d,internalRef:f.ref}}const Bk0=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Zo(u){var e;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1}=u,a=L0(u,Bk0),o=i?{}:yk0(n,r),{props:s,internalRef:f}=vk0(N({},a,{externalSlotProps:o})),l=et(f,o==null?void 0:o.ref,(e=u.additionalProps)==null?void 0:e.ref);return mk0(t,N({},s,{ref:l}),r)}function Fk0(u){return fu("MuiButton",u)}Eu("MuiButton",["root","active","disabled","focusVisible"]);function Dk0(u={}){const{disabled:e=!1,focusableWhenDisabled:t,href:n,rootRef:r,tabIndex:i,to:a,type:o}=u,s=w.useRef(),[f,l]=w.useState(!1),{isFocusVisibleRef:c,onFocus:d,onBlur:E,ref:p}=VT(),[h,g]=w.useState(!1);e&&!t&&h&&g(!1),w.useEffect(()=>{c.current=h},[h,c]);const[b,m]=w.useState(""),A=I=>O=>{var W;h&&O.preventDefault(),(W=I.onMouseLeave)==null||W.call(I,O)},y=I=>O=>{var W;E(O),c.current===!1&&g(!1),(W=I.onBlur)==null||W.call(I,O)},B=I=>O=>{var W;if(s.current||(s.current=O.currentTarget),d(O),c.current===!0){var L;g(!0),(L=I.onFocusVisible)==null||L.call(I,O)}(W=I.onFocus)==null||W.call(I,O)},v=()=>{const I=s.current;return b==="BUTTON"||b==="INPUT"&&["button","submit","reset"].includes(I==null?void 0:I.type)||b==="A"&&(I==null?void 0:I.href)},C=I=>O=>{if(!e){var W;(W=I.onClick)==null||W.call(I,O)}},F=I=>O=>{var W;e||(l(!0),document.addEventListener("mouseup",()=>{l(!1)},{once:!0})),(W=I.onMouseDown)==null||W.call(I,O)},S=I=>O=>{var W;if((W=I.onKeyDown)==null||W.call(I,O),!O.defaultMuiPrevented&&(O.target===O.currentTarget&&!v()&&O.key===" "&&O.preventDefault(),O.target===O.currentTarget&&O.key===" "&&!e&&l(!0),O.target===O.currentTarget&&!v()&&O.key==="Enter"&&!e)){var L;(L=I.onClick)==null||L.call(I,O),O.preventDefault()}},x=I=>O=>{var W;if(O.target===O.currentTarget&&l(!1),(W=I.onKeyUp)==null||W.call(I,O),O.target===O.currentTarget&&!v()&&!e&&O.key===" "&&!O.defaultMuiPrevented){var L;(L=I.onClick)==null||L.call(I,O)}},$=w.useCallback(I=>{var O;m((O=I==null?void 0:I.tagName)!=null?O:"")},[]),X=et($,r,p,s),Q={};return i!==void 0&&(Q.tabIndex=i),b==="BUTTON"?(Q.type=o??"button",t?Q["aria-disabled"]=e:Q.disabled=e):b!==""&&(!n&&!a&&(Q.role="button",Q.tabIndex=i??0),e&&(Q["aria-disabled"]=e,Q.tabIndex=t?i??0:-1)),{getRootProps:(I={})=>{const O=N({},c9(u),c9(I)),W=N({type:o},O,Q,I,{onBlur:y(O),onClick:C(O),onFocus:B(O),onKeyDown:S(O),onKeyUp:x(O),onMouseDown:F(O),onMouseLeave:A(O),ref:X});return delete W.onFocusVisible,W},focusVisible:h,setFocusVisible:g,active:f,rootRef:X}}const wk0=["action","children","disabled","focusableWhenDisabled","onFocusVisible","slotProps","slots"],xk0=u=>{const{active:e,disabled:t,focusVisible:n}=u;return du({root:["root",t&&"disabled",n&&"focusVisible",e&&"active"]},Ak0(Fk0))},kk0=w.forwardRef(function(e,t){var n;const{action:r,children:i,focusableWhenDisabled:a=!1,slotProps:o={},slots:s={}}=e,f=L0(e,wk0),l=w.useRef(),{active:c,focusVisible:d,setFocusVisible:E,getRootProps:p}=Dk0(N({},e,{focusableWhenDisabled:a}));w.useImperativeHandle(r,()=>({focusVisible:()=>{E(!0),l.current.focus()}}),[E]);const h=N({},e,{active:c,focusableWhenDisabled:a,focusVisible:d}),g=xk0(h),b=f.href||f.to?"a":"button",m=(n=s.root)!=null?n:b,A=Zo({elementType:m,getSlotProps:p,externalForwardedProps:f,externalSlotProps:o.root,additionalProps:{ref:t},ownerState:h,className:g.root});return V.jsx(m,N({},A,{children:i}))}),_k0=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Sk0(u){const e=parseInt(u.getAttribute("tabindex")||"",10);return Number.isNaN(e)?u.contentEditable==="true"||(u.nodeName==="AUDIO"||u.nodeName==="VIDEO"||u.nodeName==="DETAILS")&&u.getAttribute("tabindex")===null?0:u.tabIndex:e}function Tk0(u){if(u.tagName!=="INPUT"||u.type!=="radio"||!u.name)return!1;const e=n=>u.ownerDocument.querySelector(`input[type="radio"]${n}`);let t=e(`[name="${u.name}"]:checked`);return t||(t=e(`[name="${u.name}"]`)),t!==u}function Pk0(u){return!(u.disabled||u.tagName==="INPUT"&&u.type==="hidden"||Tk0(u))}function Ik0(u){const e=[],t=[];return Array.from(u.querySelectorAll(_k0)).forEach((n,r)=>{const i=Sk0(n);i===-1||!Pk0(n)||(i===0?e.push(n):t.push({documentOrder:r,tabIndex:i,node:n}))}),t.sort((n,r)=>n.tabIndex===r.tabIndex?n.documentOrder-r.documentOrder:n.tabIndex-r.tabIndex).map(n=>n.node).concat(e)}function Ok0(){return!0}function Rk0(u){const{children:e,disableAutoFocus:t=!1,disableEnforceFocus:n=!1,disableRestoreFocus:r=!1,getTabbable:i=Ik0,isEnabled:a=Ok0,open:o}=u,s=w.useRef(!1),f=w.useRef(null),l=w.useRef(null),c=w.useRef(null),d=w.useRef(null),E=w.useRef(!1),p=w.useRef(null),h=et(e.ref,p),g=w.useRef(null);w.useEffect(()=>{!o||!p.current||(E.current=!t)},[t,o]),w.useEffect(()=>{if(!o||!p.current)return;const A=Lt(p.current);return p.current.contains(A.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),E.current&&p.current.focus()),()=>{r||(c.current&&c.current.focus&&(s.current=!0,c.current.focus()),c.current=null)}},[o]),w.useEffect(()=>{if(!o||!p.current)return;const A=Lt(p.current),y=C=>{g.current=C,!(n||!a()||C.key!=="Tab")&&A.activeElement===p.current&&C.shiftKey&&(s.current=!0,l.current&&l.current.focus())},B=()=>{const C=p.current;if(C===null)return;if(!A.hasFocus()||!a()||s.current){s.current=!1;return}if(C.contains(A.activeElement)||n&&A.activeElement!==f.current&&A.activeElement!==l.current)return;if(A.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!E.current)return;let F=[];if((A.activeElement===f.current||A.activeElement===l.current)&&(F=i(p.current)),F.length>0){var S,x;const $=!!((S=g.current)!=null&&S.shiftKey&&((x=g.current)==null?void 0:x.key)==="Tab"),X=F[0],Q=F[F.length-1];typeof X!="string"&&typeof Q!="string"&&($?Q.focus():X.focus())}else C.focus()};A.addEventListener("focusin",B),A.addEventListener("keydown",y,!0);const v=setInterval(()=>{A.activeElement&&A.activeElement.tagName==="BODY"&&B()},50);return()=>{clearInterval(v),A.removeEventListener("focusin",B),A.removeEventListener("keydown",y,!0)}},[t,n,r,a,o,i]);const b=A=>{c.current===null&&(c.current=A.relatedTarget),E.current=!0,d.current=A.target;const y=e.props.onFocus;y&&y(A)},m=A=>{c.current===null&&(c.current=A.relatedTarget),E.current=!0};return V.jsxs(w.Fragment,{children:[V.jsx("div",{tabIndex:o?0:-1,onFocus:m,ref:f,"data-testid":"sentinelStart"}),w.cloneElement(e,{ref:h,onFocus:b}),V.jsx("div",{tabIndex:o?0:-1,onFocus:m,ref:l,"data-testid":"sentinelEnd"})]})}function Nk0(u){return typeof u=="function"?u():u}const Mk0=w.forwardRef(function(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[a,o]=w.useState(null),s=et(w.isValidElement(n)?n.ref:null,t);if(Uo(()=>{i||o(Nk0(r)||document.body)},[r,i]),Uo(()=>{if(a&&!i)return j7(t,a),()=>{j7(t,null)}},[t,a,i]),i){if(w.isValidElement(n)){const f={ref:s};return w.cloneElement(n,f)}return V.jsx(w.Fragment,{children:n})}return V.jsx(w.Fragment,{children:a&&E3.createPortal(n,a)})});function jk0(u){const e=Lt(u);return e.body===u?$o(u).innerWidth>e.documentElement.clientWidth:u.scrollHeight>u.clientHeight}function Jl(u,e){e?u.setAttribute("aria-hidden","true"):u.removeAttribute("aria-hidden")}function Rx(u){return parseInt($o(u).getComputedStyle(u).paddingRight,10)||0}function zk0(u){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(u.tagName)!==-1,n=u.tagName==="INPUT"&&u.getAttribute("type")==="hidden";return t||n}function Nx(u,e,t,n,r){const i=[e,t,...n];[].forEach.call(u.children,a=>{const o=i.indexOf(a)===-1,s=!zk0(a);o&&s&&Jl(a,r)})}function Ah(u,e){let t=-1;return u.some((n,r)=>e(n)?(t=r,!0):!1),t}function Lk0(u,e){const t=[],n=u.container;if(!e.disableScrollLock){if(jk0(n)){const a=KT(Lt(n));t.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Rx(n)+a}px`;const o=Lt(n).querySelectorAll(".mui-fixed");[].forEach.call(o,s=>{t.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${Rx(s)+a}px`})}let i;if(n.parentNode instanceof DocumentFragment)i=Lt(n).body;else{const a=n.parentElement,o=$o(n);i=(a==null?void 0:a.nodeName)==="HTML"&&o.getComputedStyle(a).overflowY==="scroll"?a:n}t.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{t.forEach(({value:i,el:a,property:o})=>{i?a.style.setProperty(o,i):a.style.removeProperty(o)})}}function $k0(u){const e=[];return[].forEach.call(u.children,t=>{t.getAttribute("aria-hidden")==="true"&&e.push(t)}),e}class Uk0{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Jl(e.modalRef,!1);const r=$k0(t);Nx(t,e.mount,e.modalRef,r,!0);const i=Ah(this.containers,a=>a.container===t);return i!==-1?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Ah(this.containers,i=>i.modals.indexOf(e)!==-1),r=this.containers[n];r.restore||(r.restore=Lk0(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const r=Ah(this.containers,a=>a.modals.indexOf(e)!==-1),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&Jl(e.modalRef,t),Nx(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Jl(a.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}function Wk0(u){return typeof u=="function"?u():u}function qk0(u){return u?u.props.hasOwnProperty("in"):!1}const Hk0=new Uk0;function Gk0(u){const{container:e,disableEscapeKeyDown:t=!1,disableScrollLock:n=!1,manager:r=Hk0,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:f,open:l,rootRef:c}=u,d=w.useRef({}),E=w.useRef(null),p=w.useRef(null),h=et(p,c),[g,b]=w.useState(!l),m=qk0(s);let A=!0;(u["aria-hidden"]==="false"||u["aria-hidden"]===!1)&&(A=!1);const y=()=>Lt(E.current),B=()=>(d.current.modalRef=p.current,d.current.mount=E.current,d.current),v=()=>{r.mount(B(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},C=of(()=>{const O=Wk0(e)||y().body;r.add(B(),O),p.current&&v()}),F=w.useCallback(()=>r.isTopModal(B()),[r]),S=of(O=>{E.current=O,O&&(l&&F()?v():p.current&&Jl(p.current,A))}),x=w.useCallback(()=>{r.remove(B(),A)},[A,r]);w.useEffect(()=>()=>{x()},[x]),w.useEffect(()=>{l?C():(!m||!i)&&x()},[l,x,m,i,C]);const $=O=>W=>{var L;(L=O.onKeyDown)==null||L.call(O,W),!(W.key!=="Escape"||W.which===229||!F())&&(t||(W.stopPropagation(),f&&f(W,"escapeKeyDown")))},X=O=>W=>{var L;(L=O.onClick)==null||L.call(O,W),W.target===W.currentTarget&&f&&f(W,"backdropClick")};return{getRootProps:(O={})=>{const W=c9(u);delete W.onTransitionEnter,delete W.onTransitionExited;const L=N({},W,O);return N({role:"presentation"},L,{onKeyDown:$(L),ref:h})},getBackdropProps:(O={})=>{const W=O;return N({"aria-hidden":!0},W,{onClick:X(W),open:l})},getTransitionProps:()=>{const O=()=>{b(!1),a&&a()},W=()=>{b(!0),o&&o(),i&&x()};return{onEnter:NB(O,s==null?void 0:s.props.onEnter),onExited:NB(W,s==null?void 0:s.props.onExited)}},rootRef:h,portalRef:S,isTopModal:F,exited:g,hasTransition:m}}const Vk0=["onChange","maxRows","minRows","style","value"];function Z6(u){return parseInt(u,10)||0}const Kk0={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Mx(u){return u==null||Object.keys(u).length===0||u.outerHeightStyle===0&&!u.overflow}const Qk0=w.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:i=1,style:a,value:o}=e,s=L0(e,Vk0),{current:f}=w.useRef(o!=null),l=w.useRef(null),c=et(t,l),d=w.useRef(null),E=w.useRef(0),[p,h]=w.useState({outerHeightStyle:0}),g=w.useCallback(()=>{const y=l.current,v=$o(y).getComputedStyle(y);if(v.width==="0px")return{outerHeightStyle:0};const C=d.current;C.style.width=v.width,C.value=y.value||e.placeholder||"x",C.value.slice(-1)===` +`&&(C.value+=" ");const F=v.boxSizing,S=Z6(v.paddingBottom)+Z6(v.paddingTop),x=Z6(v.borderBottomWidth)+Z6(v.borderTopWidth),$=C.scrollHeight;C.value="x";const X=C.scrollHeight;let Q=$;i&&(Q=Math.max(Number(i)*X,Q)),r&&(Q=Math.min(Number(r)*X,Q)),Q=Math.max(Q,X);const Z=Q+(F==="border-box"?S+x:0),I=Math.abs(Q-$)<=1;return{outerHeightStyle:Z,overflow:I}},[r,i,e.placeholder]),b=(y,B)=>{const{outerHeightStyle:v,overflow:C}=B;return E.current<20&&(v>0&&Math.abs((y.outerHeightStyle||0)-v)>1||y.overflow!==C)?(E.current+=1,{overflow:C,outerHeightStyle:v}):y},m=w.useCallback(()=>{const y=g();Mx(y)||h(B=>b(B,y))},[g]);Uo(()=>{const y=()=>{const $=g();Mx($)||E3.flushSync(()=>{h(X=>b(X,$))})},B=()=>{E.current=0,y()};let v;const C=GT(B),F=l.current,S=$o(F);S.addEventListener("resize",C);let x;return typeof ResizeObserver<"u"&&(x=new ResizeObserver(B),x.observe(F)),()=>{C.clear(),cancelAnimationFrame(v),S.removeEventListener("resize",C),x&&x.disconnect()}},[g]),Uo(()=>{m()}),w.useEffect(()=>{E.current=0},[o]);const A=y=>{E.current=0,f||m(),n&&n(y)};return V.jsxs(w.Fragment,{children:[V.jsx("textarea",N({value:o,onChange:A,ref:c,rows:i,style:N({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},a)},s)),V.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:N({},Kk0.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function W3({props:u,states:e,muiFormControl:t}){return e.reduce((n,r)=>(n[r]=u[r],t&&typeof u[r]>"u"&&(n[r]=t[r]),n),{})}const Jk0=w.createContext(void 0),xy=Jk0;function q3(){return w.useContext(xy)}function vz(u){return V.jsx(RV,N({},u,{defaultTheme:Dd,themeId:Ho}))}function jx(u){return u!=null&&!(Array.isArray(u)&&u.length===0)}function d9(u,e=!1){return u&&(jx(u.value)&&u.value!==""||e&&jx(u.defaultValue)&&u.defaultValue!=="")}function Zk0(u){return u.startAdornment}function Yk0(u){return fu("MuiInputBase",u)}const Xk0=Eu("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),n3=Xk0,u_0=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],gp=(u,e)=>{const{ownerState:t}=u;return[e.root,t.formControl&&e.formControl,t.startAdornment&&e.adornedStart,t.endAdornment&&e.adornedEnd,t.error&&e.error,t.size==="small"&&e.sizeSmall,t.multiline&&e.multiline,t.color&&e[`color${K0(t.color)}`],t.fullWidth&&e.fullWidth,t.hiddenLabel&&e.hiddenLabel]},Ap=(u,e)=>{const{ownerState:t}=u;return[e.input,t.size==="small"&&e.inputSizeSmall,t.multiline&&e.inputMultiline,t.type==="search"&&e.inputTypeSearch,t.startAdornment&&e.inputAdornedStart,t.endAdornment&&e.inputAdornedEnd,t.hiddenLabel&&e.inputHiddenLabel]},e_0=u=>{const{classes:e,color:t,disabled:n,error:r,endAdornment:i,focused:a,formControl:o,fullWidth:s,hiddenLabel:f,multiline:l,readOnly:c,size:d,startAdornment:E,type:p}=u,h={root:["root",`color${K0(t)}`,n&&"disabled",r&&"error",s&&"fullWidth",a&&"focused",o&&"formControl",d&&d!=="medium"&&`size${K0(d)}`,l&&"multiline",E&&"adornedStart",i&&"adornedEnd",f&&"hiddenLabel",c&&"readOnly"],input:["input",n&&"disabled",p==="search"&&"inputTypeSearch",l&&"inputMultiline",d==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",E&&"inputAdornedStart",i&&"inputAdornedEnd",c&&"readOnly"]};return du(h,Yk0,e)},yp=$0("div",{name:"MuiInputBase",slot:"Root",overridesResolver:gp})(({theme:u,ownerState:e})=>N({},u.typography.body1,{color:(u.vars||u).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${n3.disabled}`]:{color:(u.vars||u).palette.text.disabled,cursor:"default"}},e.multiline&&N({padding:"4px 0 5px"},e.size==="small"&&{paddingTop:1}),e.fullWidth&&{width:"100%"})),vp=$0("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ap})(({theme:u,ownerState:e})=>{const t=u.palette.mode==="light",n=N({color:"currentColor"},u.vars?{opacity:u.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},{transition:u.transitions.create("opacity",{duration:u.transitions.duration.shorter})}),r={opacity:"0 !important"},i=u.vars?{opacity:u.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return N({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${n3.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${n3.disabled}`]:{opacity:1,WebkitTextFillColor:(u.vars||u).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},e.size==="small"&&{paddingTop:1},e.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},e.type==="search"&&{MozAppearance:"textfield"})}),t_0=V.jsx(vz,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),n_0=w.forwardRef(function(e,t){var n;const r=pu({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:o,className:s,components:f={},componentsProps:l={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:E,endAdornment:p,fullWidth:h=!1,id:g,inputComponent:b="input",inputProps:m={},inputRef:A,maxRows:y,minRows:B,multiline:v=!1,name:C,onBlur:F,onChange:S,onClick:x,onFocus:$,onKeyDown:X,onKeyUp:Q,placeholder:Z,readOnly:I,renderSuffix:O,rows:W,slotProps:L={},slots:q={},startAdornment:U,type:i0="text",value:s0}=r,o0=L0(r,u_0),K=m.value!=null?m.value:s0,{current:b0}=w.useRef(K!=null),A0=w.useRef(),_0=w.useCallback(d0=>{},[]),w0=et(A0,A,m.ref,_0),[B0,_]=w.useState(!1),T=q3(),P=W3({props:r,muiFormControl:T,states:["color","disabled","error","hiddenLabel","size","required","filled"]});P.focused=T?T.focused:B0,w.useEffect(()=>{!T&&d&&B0&&(_(!1),F&&F())},[T,d,B0,F]);const j=T&&T.onFilled,z=T&&T.onEmpty,G=w.useCallback(d0=>{d9(d0)?j&&j():z&&z()},[j,z]);Uo(()=>{b0&&G({value:K})},[K,G,b0]);const t0=d0=>{if(P.disabled){d0.stopPropagation();return}$&&$(d0),m.onFocus&&m.onFocus(d0),T&&T.onFocus?T.onFocus(d0):_(!0)},H=d0=>{F&&F(d0),m.onBlur&&m.onBlur(d0),T&&T.onBlur?T.onBlur(d0):_(!1)},J=(d0,...m0)=>{if(!b0){const G0=d0.target||A0.current;if(G0==null)throw new Error(ha(1));G({value:G0.value})}m.onChange&&m.onChange(d0,...m0),S&&S(d0,...m0)};w.useEffect(()=>{G(A0.current)},[]);const u0=d0=>{A0.current&&d0.currentTarget===d0.target&&A0.current.focus(),x&&x(d0)};let Y=b,n0=m;v&&Y==="input"&&(W?n0=N({type:void 0,minRows:W,maxRows:W},n0):n0=N({type:void 0,maxRows:y,minRows:B},n0),Y=Qk0);const p0=d0=>{G(d0.animationName==="mui-auto-fill-cancel"?A0.current:{value:"x"})};w.useEffect(()=>{T&&T.setAdornedStart(!!U)},[T,U]);const C0=N({},r,{color:P.color||"primary",disabled:P.disabled,endAdornment:p,error:P.error,focused:P.focused,formControl:T,fullWidth:h,hiddenLabel:P.hiddenLabel,multiline:v,size:P.size,startAdornment:U,type:i0}),y0=e_0(C0),g0=q.root||f.Root||yp,F0=L.root||l.root||{},c0=q.input||f.Input||vp;return n0=N({},n0,(n=L.input)!=null?n:l.input),V.jsxs(w.Fragment,{children:[!E&&t_0,V.jsxs(g0,N({},F0,!l9(g0)&&{ownerState:N({},C0,F0.ownerState)},{ref:t,onClick:u0},o0,{className:H0(y0.root,F0.className,s,I&&"MuiInputBase-readOnly"),children:[U,V.jsx(xy.Provider,{value:null,children:V.jsx(c0,N({ownerState:C0,"aria-invalid":P.error,"aria-describedby":i,autoComplete:a,autoFocus:o,defaultValue:c,disabled:P.disabled,id:g,onAnimationStart:p0,name:C,placeholder:Z,readOnly:I,required:P.required,rows:W,value:K,onKeyDown:X,onKeyUp:Q,type:i0},n0,!l9(c0)&&{as:Y,ownerState:N({},C0,n0.ownerState)},{ref:w0,className:H0(y0.input,n0.className,I&&"MuiInputBase-readOnly"),onBlur:H,onChange:J,onFocus:t0}))}),p,O?O(N({},P,{startAdornment:U})):null]}))]})}),ky=n_0;function r_0(u){return fu("MuiInput",u)}const i_0=N({},n3,Eu("MuiInput",["root","underline","input"])),dl=i_0;function a_0(u){return fu("MuiOutlinedInput",u)}const o_0=N({},n3,Eu("MuiOutlinedInput",["root","notchedOutline","input"])),Di=o_0;function s_0(u){return fu("MuiFilledInput",u)}const f_0=N({},n3,Eu("MuiFilledInput",["root","underline","input"])),Ma=f_0,l_0=gz(V.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),c_0=gz(V.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function d_0(u){return fu("MuiAvatar",u)}Eu("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const E_0=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],p_0=u=>{const{classes:e,variant:t,colorDefault:n}=u;return du({root:["root",t,n&&"colorDefault"],img:["img"],fallback:["fallback"]},d_0,e)},h_0=$0("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[t.variant],t.colorDefault&&e.colorDefault]}})(({theme:u,ownerState:e})=>N({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:u.typography.fontFamily,fontSize:u.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},e.variant==="rounded"&&{borderRadius:(u.vars||u).shape.borderRadius},e.variant==="square"&&{borderRadius:0},e.colorDefault&&N({color:(u.vars||u).palette.background.default},u.vars?{backgroundColor:u.vars.palette.Avatar.defaultBg}:{backgroundColor:u.palette.mode==="light"?u.palette.grey[400]:u.palette.grey[600]}))),C_0=$0("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(u,e)=>e.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),m_0=$0(c_0,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(u,e)=>e.fallback})({width:"75%",height:"75%"});function b_0({crossOrigin:u,referrerPolicy:e,src:t,srcSet:n}){const[r,i]=w.useState(!1);return w.useEffect(()=>{if(!t&&!n)return;i(!1);let a=!0;const o=new Image;return o.onload=()=>{a&&i("loaded")},o.onerror=()=>{a&&i("error")},o.crossOrigin=u,o.referrerPolicy=e,o.src=t,n&&(o.srcset=n),()=>{a=!1}},[u,e,t,n]),r}const g_0=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiAvatar"}),{alt:r,children:i,className:a,component:o="div",imgProps:s,sizes:f,src:l,srcSet:c,variant:d="circular"}=n,E=L0(n,E_0);let p=null;const h=b_0(N({},s,{src:l,srcSet:c})),g=l||c,b=g&&h!=="error",m=N({},n,{colorDefault:!b,component:o,variant:d}),A=p_0(m);return b?p=V.jsx(C_0,N({alt:r,srcSet:c,src:l,sizes:f,ownerState:m,className:A.img},s)):i!=null?p=i:g&&r?p=r[0]:p=V.jsx(m_0,{ownerState:m,className:A.fallback}),V.jsx(h_0,N({as:o,ownerState:m,className:H0(A.root,a),ref:t},E,{children:p}))}),A_0=g_0,y_0=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],v_0={entering:{opacity:1},entered:{opacity:1}},B_0=w.forwardRef(function(e,t){const n=xd(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:f,onEnter:l,onEntered:c,onEntering:d,onExit:E,onExited:p,onExiting:h,style:g,timeout:b=r,TransitionComponent:m=xP}=e,A=L0(e,y_0),y=w.useRef(null),B=et(y,o.ref,t),v=Z=>I=>{if(Z){const O=y.current;I===void 0?Z(O):Z(O,I)}},C=v(d),F=v((Z,I)=>{yz(Z);const O=f9({style:g,timeout:b,easing:s},{mode:"enter"});Z.style.webkitTransition=n.transitions.create("opacity",O),Z.style.transition=n.transitions.create("opacity",O),l&&l(Z,I)}),S=v(c),x=v(h),$=v(Z=>{const I=f9({style:g,timeout:b,easing:s},{mode:"exit"});Z.style.webkitTransition=n.transitions.create("opacity",I),Z.style.transition=n.transitions.create("opacity",I),E&&E(Z)}),X=v(p),Q=Z=>{i&&i(y.current,Z)};return V.jsx(m,N({appear:a,in:f,nodeRef:y,onEnter:F,onEntered:S,onEntering:C,onExit:$,onExited:X,onExiting:x,addEndListener:Q,timeout:b},A,{children:(Z,I)=>w.cloneElement(o,N({style:N({opacity:0,visibility:Z==="exited"&&!f?"hidden":void 0},v_0[Z],g,o.props.style),ref:B},I))}))}),F_0=B_0;function D_0(u){return fu("MuiBackdrop",u)}Eu("MuiBackdrop",["root","invisible"]);const w_0=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],x_0=u=>{const{classes:e,invisible:t}=u;return du({root:["root",t&&"invisible"]},D_0,e)},k_0=$0("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,t.invisible&&e.invisible]}})(({ownerState:u})=>N({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},u.invisible&&{backgroundColor:"transparent"})),__0=w.forwardRef(function(e,t){var n,r,i;const a=pu({props:e,name:"MuiBackdrop"}),{children:o,className:s,component:f="div",components:l={},componentsProps:c={},invisible:d=!1,open:E,slotProps:p={},slots:h={},TransitionComponent:g=F_0,transitionDuration:b}=a,m=L0(a,w_0),A=N({},a,{component:f,invisible:d}),y=x_0(A),B=(n=p.root)!=null?n:c.root;return V.jsx(g,N({in:E,timeout:b},m,{children:V.jsx(k_0,N({"aria-hidden":!0},B,{as:(r=(i=h.root)!=null?i:l.Root)!=null?r:f,className:H0(y.root,s,B==null?void 0:B.className),ownerState:N({},A,B==null?void 0:B.ownerState),classes:y,ref:t,children:o}))}))}),S_0=__0;function T_0(u){return fu("MuiCard",u)}Eu("MuiCard",["root"]);const P_0=["className","raised"],I_0=u=>{const{classes:e}=u;return du({root:["root"]},T_0,e)},O_0=$0(Xb,{name:"MuiCard",slot:"Root",overridesResolver:(u,e)=>e.root})(()=>({overflow:"hidden"})),R_0=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiCard"}),{className:r,raised:i=!1}=n,a=L0(n,P_0),o=N({},n,{raised:i}),s=I_0(o);return V.jsx(O_0,N({className:H0(s.root,r),elevation:i?8:void 0,ref:t,ownerState:o},a))}),_y=R_0;function N_0(u){return fu("MuiCardContent",u)}Eu("MuiCardContent",["root"]);const M_0=["className","component"],j_0=u=>{const{classes:e}=u;return du({root:["root"]},N_0,e)},z_0=$0("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(u,e)=>e.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),L_0=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiCardContent"}),{className:r,component:i="div"}=n,a=L0(n,M_0),o=N({},n,{component:i}),s=j_0(o);return V.jsx(z_0,N({as:i,className:H0(s.root,r),ownerState:o,ref:t},a))}),Bz=L_0,$_0=(u,e)=>N({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},e&&!u.vars&&{colorScheme:u.palette.mode}),U_0=u=>N({color:(u.vars||u).palette.text.primary},u.typography.body1,{backgroundColor:(u.vars||u).palette.background.default,"@media print":{backgroundColor:(u.vars||u).palette.common.white}}),W_0=(u,e=!1)=>{var t;const n={};e&&u.colorSchemes&&Object.entries(u.colorSchemes).forEach(([a,o])=>{var s;n[u.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(s=o.palette)==null?void 0:s.mode}});let r=N({html:$_0(u,e),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:u.typography.fontWeightBold},body:N({margin:0},U_0(u),{"&::backdrop":{backgroundColor:(u.vars||u).palette.background.default}})},n);const i=(t=u.components)==null||(t=t.MuiCssBaseline)==null?void 0:t.styleOverrides;return i&&(r=[r,i]),r};function q_0(u){const e=pu({props:u,name:"MuiCssBaseline"}),{children:t,enableColorScheme:n=!1}=e;return V.jsxs(w.Fragment,{children:[V.jsx(vz,{styles:r=>W_0(r,n)}),t]})}function H_0(u){return fu("MuiModal",u)}Eu("MuiModal",["root","hidden","backdrop"]);const G_0=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],V_0=u=>{const{open:e,exited:t,classes:n}=u;return du({root:["root",!e&&t&&"hidden"],backdrop:["backdrop"]},H_0,n)},K_0=$0("div",{name:"MuiModal",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,!t.open&&t.exited&&e.hidden]}})(({theme:u,ownerState:e})=>N({position:"fixed",zIndex:(u.vars||u).zIndex.modal,right:0,bottom:0,top:0,left:0},!e.open&&e.exited&&{visibility:"hidden"})),Q_0=$0(S_0,{name:"MuiModal",slot:"Backdrop",overridesResolver:(u,e)=>e.backdrop})({zIndex:-1}),J_0=w.forwardRef(function(e,t){var n,r,i,a,o,s;const f=pu({name:"MuiModal",props:e}),{BackdropComponent:l=Q_0,BackdropProps:c,className:d,closeAfterTransition:E=!1,children:p,container:h,component:g,components:b={},componentsProps:m={},disableAutoFocus:A=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:B=!1,disablePortal:v=!1,disableRestoreFocus:C=!1,disableScrollLock:F=!1,hideBackdrop:S=!1,keepMounted:x=!1,onBackdropClick:$,open:X,slotProps:Q,slots:Z}=f,I=L0(f,G_0),O=N({},f,{closeAfterTransition:E,disableAutoFocus:A,disableEnforceFocus:y,disableEscapeKeyDown:B,disablePortal:v,disableRestoreFocus:C,disableScrollLock:F,hideBackdrop:S,keepMounted:x}),{getRootProps:W,getBackdropProps:L,getTransitionProps:q,portalRef:U,isTopModal:i0,exited:s0,hasTransition:o0}=Gk0(N({},O,{rootRef:t})),K=N({},O,{exited:s0}),b0=V_0(K),A0={};if(p.props.tabIndex===void 0&&(A0.tabIndex="-1"),o0){const{onEnter:j,onExited:z}=q();A0.onEnter=j,A0.onExited=z}const _0=(n=(r=Z==null?void 0:Z.root)!=null?r:b.Root)!=null?n:K_0,w0=(i=(a=Z==null?void 0:Z.backdrop)!=null?a:b.Backdrop)!=null?i:l,B0=(o=Q==null?void 0:Q.root)!=null?o:m.root,_=(s=Q==null?void 0:Q.backdrop)!=null?s:m.backdrop,T=Zo({elementType:_0,externalSlotProps:B0,externalForwardedProps:I,getSlotProps:W,additionalProps:{ref:t,as:g},ownerState:K,className:H0(d,B0==null?void 0:B0.className,b0==null?void 0:b0.root,!K.open&&K.exited&&(b0==null?void 0:b0.hidden))}),P=Zo({elementType:w0,externalSlotProps:_,additionalProps:c,getSlotProps:j=>L(N({},j,{onClick:z=>{$&&$(z),j!=null&&j.onClick&&j.onClick(z)}})),className:H0(_==null?void 0:_.className,c==null?void 0:c.className,b0==null?void 0:b0.backdrop),ownerState:K});return!x&&!X&&(!o0||s0)?null:V.jsx(Mk0,{ref:U,container:h,disablePortal:v,children:V.jsxs(_0,N({},T,{children:[!S&&l?V.jsx(w0,N({},P)):null,V.jsx(Rk0,{disableEnforceFocus:y,disableAutoFocus:A,disableRestoreFocus:C,isEnabled:i0,open:X,children:w.cloneElement(p,A0)})]}))})}),Z_0=J_0,Y_0=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],X_0=u=>{const{classes:e,disableUnderline:t}=u,r=du({root:["root",!t&&"underline"],input:["input"]},s_0,e);return N({},e,r)},uS0=$0(yp,{shouldForwardProp:u=>Vn(u)||u==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[...gp(u,e),!t.disableUnderline&&e.underline]}})(({theme:u,ownerState:e})=>{var t;const n=u.palette.mode==="light",r=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return N({position:"relative",backgroundColor:u.vars?u.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(u.vars||u).shape.borderRadius,borderTopRightRadius:(u.vars||u).shape.borderRadius,transition:u.transitions.create("background-color",{duration:u.transitions.duration.shorter,easing:u.transitions.easing.easeOut}),"&:hover":{backgroundColor:u.vars?u.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:u.vars?u.vars.palette.FilledInput.bg:i}},[`&.${Ma.focused}`]:{backgroundColor:u.vars?u.vars.palette.FilledInput.bg:i},[`&.${Ma.disabled}`]:{backgroundColor:u.vars?u.vars.palette.FilledInput.disabledBg:o}},!e.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(t=(u.vars||u).palette[e.color||"primary"])==null?void 0:t.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:u.transitions.create("transform",{duration:u.transitions.duration.shorter,easing:u.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ma.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ma.error}`]:{"&:before, &:after":{borderBottomColor:(u.vars||u).palette.error.main}},"&:before":{borderBottom:`1px solid ${u.vars?`rgba(${u.vars.palette.common.onBackgroundChannel} / ${u.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:u.transitions.create("border-bottom-color",{duration:u.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ma.disabled}, .${Ma.error}):before`]:{borderBottom:`1px solid ${(u.vars||u).palette.text.primary}`},[`&.${Ma.disabled}:before`]:{borderBottomStyle:"dotted"}},e.startAdornment&&{paddingLeft:12},e.endAdornment&&{paddingRight:12},e.multiline&&N({padding:"25px 12px 8px"},e.size==="small"&&{paddingTop:21,paddingBottom:4},e.hiddenLabel&&{paddingTop:16,paddingBottom:17},e.hiddenLabel&&e.size==="small"&&{paddingTop:8,paddingBottom:9}))}),eS0=$0(vp,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ap})(({theme:u,ownerState:e})=>N({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!u.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:u.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:u.palette.mode==="light"?null:"#fff",caretColor:u.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},u.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[u.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},e.size==="small"&&{paddingTop:21,paddingBottom:4},e.hiddenLabel&&{paddingTop:16,paddingBottom:17},e.startAdornment&&{paddingLeft:0},e.endAdornment&&{paddingRight:0},e.hiddenLabel&&e.size==="small"&&{paddingTop:8,paddingBottom:9},e.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Fz=w.forwardRef(function(e,t){var n,r,i,a;const o=pu({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:f,fullWidth:l=!1,inputComponent:c="input",multiline:d=!1,slotProps:E,slots:p={},type:h="text"}=o,g=L0(o,Y_0),b=N({},o,{fullWidth:l,inputComponent:c,multiline:d,type:h}),m=X_0(o),A={root:{ownerState:b},input:{ownerState:b}},y=E??f?ze(A,E??f):A,B=(n=(r=p.root)!=null?r:s.Root)!=null?n:uS0,v=(i=(a=p.input)!=null?a:s.Input)!=null?i:eS0;return V.jsx(ky,N({slots:{root:B,input:v},componentsProps:y,fullWidth:l,inputComponent:c,multiline:d,ref:t,type:h},g,{classes:m}))});Fz.muiName="Input";const Dz=Fz;function tS0(u){return fu("MuiFormControl",u)}Eu("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const nS0=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],rS0=u=>{const{classes:e,margin:t,fullWidth:n}=u,r={root:["root",t!=="none"&&`margin${K0(t)}`,n&&"fullWidth"]};return du(r,tS0,e)},iS0=$0("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:u},e)=>N({},e.root,e[`margin${K0(u.margin)}`],u.fullWidth&&e.fullWidth)})(({ownerState:u})=>N({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},u.margin==="normal"&&{marginTop:16,marginBottom:8},u.margin==="dense"&&{marginTop:8,marginBottom:4},u.fullWidth&&{width:"100%"})),aS0=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiFormControl"}),{children:r,className:i,color:a="primary",component:o="div",disabled:s=!1,error:f=!1,focused:l,fullWidth:c=!1,hiddenLabel:d=!1,margin:E="none",required:p=!1,size:h="medium",variant:g="outlined"}=n,b=L0(n,nS0),m=N({},n,{color:a,component:o,disabled:s,error:f,fullWidth:c,hiddenLabel:d,margin:E,required:p,size:h,variant:g}),A=rS0(m),[y,B]=w.useState(()=>{let Q=!1;return r&&w.Children.forEach(r,Z=>{if(!b8(Z,["Input","Select"]))return;const I=b8(Z,["Select"])?Z.props.input:Z;I&&Zk0(I.props)&&(Q=!0)}),Q}),[v,C]=w.useState(()=>{let Q=!1;return r&&w.Children.forEach(r,Z=>{b8(Z,["Input","Select"])&&(d9(Z.props,!0)||d9(Z.props.inputProps,!0))&&(Q=!0)}),Q}),[F,S]=w.useState(!1);s&&F&&S(!1);const x=l!==void 0&&!s?l:F;let $;const X=w.useMemo(()=>({adornedStart:y,setAdornedStart:B,color:a,disabled:s,error:f,filled:v,focused:x,fullWidth:c,hiddenLabel:d,size:h,onBlur:()=>{S(!1)},onEmpty:()=>{C(!1)},onFilled:()=>{C(!0)},onFocus:()=>{S(!0)},registerEffect:$,required:p,variant:g}),[y,a,s,f,v,x,c,d,$,p,h,g]);return V.jsx(xy.Provider,{value:X,children:V.jsx(iS0,N({as:o,ownerState:m,className:H0(A.root,i),ref:t},b,{children:r}))})}),oS0=aS0,sS0=DP({createStyledComponent:$0("div",{name:"MuiStack",slot:"Root",overridesResolver:(u,e)=>e.root}),useThemeProps:u=>pu({props:u,name:"MuiStack"})}),xi=sS0;function fS0(u){return fu("MuiFormHelperText",u)}const lS0=Eu("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),zx=lS0;var Lx;const cS0=["children","className","component","disabled","error","filled","focused","margin","required","variant"],dS0=u=>{const{classes:e,contained:t,size:n,disabled:r,error:i,filled:a,focused:o,required:s}=u,f={root:["root",r&&"disabled",i&&"error",n&&`size${K0(n)}`,t&&"contained",o&&"focused",a&&"filled",s&&"required"]};return du(f,fS0,e)},ES0=$0("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,t.size&&e[`size${K0(t.size)}`],t.contained&&e.contained,t.filled&&e.filled]}})(({theme:u,ownerState:e})=>N({color:(u.vars||u).palette.text.secondary},u.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${zx.disabled}`]:{color:(u.vars||u).palette.text.disabled},[`&.${zx.error}`]:{color:(u.vars||u).palette.error.main}},e.size==="small"&&{marginTop:4},e.contained&&{marginLeft:14,marginRight:14})),pS0=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiFormHelperText"}),{children:r,className:i,component:a="p"}=n,o=L0(n,cS0),s=q3(),f=W3({props:n,muiFormControl:s,states:["variant","size","disabled","error","filled","focused","required"]}),l=N({},n,{component:a,contained:f.variant==="filled"||f.variant==="outlined",variant:f.variant,size:f.size,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),c=dS0(l);return V.jsx(ES0,N({as:a,ownerState:l,className:H0(c.root,i),ref:t},o,{children:r===" "?Lx||(Lx=V.jsx("span",{className:"notranslate",children:"​"})):r}))}),hS0=pS0;function CS0(u){return fu("MuiFormLabel",u)}const mS0=Eu("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Zl=mS0,bS0=["children","className","color","component","disabled","error","filled","focused","required"],gS0=u=>{const{classes:e,color:t,focused:n,disabled:r,error:i,filled:a,required:o}=u,s={root:["root",`color${K0(t)}`,r&&"disabled",i&&"error",a&&"filled",n&&"focused",o&&"required"],asterisk:["asterisk",i&&"error"]};return du(s,CS0,e)},AS0=$0("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:u},e)=>N({},e.root,u.color==="secondary"&&e.colorSecondary,u.filled&&e.filled)})(({theme:u,ownerState:e})=>N({color:(u.vars||u).palette.text.secondary},u.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Zl.focused}`]:{color:(u.vars||u).palette[e.color].main},[`&.${Zl.disabled}`]:{color:(u.vars||u).palette.text.disabled},[`&.${Zl.error}`]:{color:(u.vars||u).palette.error.main}})),yS0=$0("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(u,e)=>e.asterisk})(({theme:u})=>({[`&.${Zl.error}`]:{color:(u.vars||u).palette.error.main}})),vS0=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiFormLabel"}),{children:r,className:i,component:a="label"}=n,o=L0(n,bS0),s=q3(),f=W3({props:n,muiFormControl:s,states:["color","required","focused","disabled","error","filled"]}),l=N({},n,{color:f.color||"primary",component:a,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),c=gS0(l);return V.jsxs(AS0,N({as:a,ownerState:l,className:H0(c.root,i),ref:t},o,{children:[r,f.required&&V.jsxs(yS0,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))}),BS0=vS0,FS0=w.createContext(),$x=FS0;function DS0(u){return fu("MuiGrid",u)}const wS0=[0,1,2,3,4,5,6,7,8,9,10],xS0=["column-reverse","column","row-reverse","row"],kS0=["nowrap","wrap-reverse","wrap"],El=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],_S0=Eu("MuiGrid",["root","container","item","zeroMinWidth",...wS0.map(u=>`spacing-xs-${u}`),...xS0.map(u=>`direction-xs-${u}`),...kS0.map(u=>`wrap-xs-${u}`),...El.map(u=>`grid-xs-${u}`),...El.map(u=>`grid-sm-${u}`),...El.map(u=>`grid-md-${u}`),...El.map(u=>`grid-lg-${u}`),...El.map(u=>`grid-xl-${u}`)]),N1=_S0,SS0=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Tf(u){const e=parseFloat(u);return`${e}${String(u).replace(String(e),"")||"px"}`}function TS0({theme:u,ownerState:e}){let t;return u.breakpoints.keys.reduce((n,r)=>{let i={};if(e[r]&&(t=e[r]),!t)return n;if(t===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(t==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=So({values:e.columns,breakpoints:u.breakpoints.values}),o=typeof a=="object"?a[r]:a;if(o==null)return n;const s=`${Math.round(t/o*1e8)/1e6}%`;let f={};if(e.container&&e.item&&e.columnSpacing!==0){const l=u.spacing(e.columnSpacing);if(l!=="0px"){const c=`calc(${s} + ${Tf(l)})`;f={flexBasis:c,maxWidth:c}}}i=N({flexBasis:s,flexGrow:0,maxWidth:s},f)}return u.breakpoints.values[r]===0?Object.assign(n,i):n[u.breakpoints.up(r)]=i,n},{})}function PS0({theme:u,ownerState:e}){const t=So({values:e.direction,breakpoints:u.breakpoints.values});return gt({theme:u},t,n=>{const r={flexDirection:n};return n.indexOf("column")===0&&(r[`& > .${N1.item}`]={maxWidth:"none"}),r})}function wz({breakpoints:u,values:e}){let t="";Object.keys(e).forEach(r=>{t===""&&e[r]!==0&&(t=r)});const n=Object.keys(u).sort((r,i)=>u[r]-u[i]);return n.slice(0,n.indexOf(t))}function IS0({theme:u,ownerState:e}){const{container:t,rowSpacing:n}=e;let r={};if(t&&n!==0){const i=So({values:n,breakpoints:u.breakpoints.values});let a;typeof i=="object"&&(a=wz({breakpoints:u.breakpoints.values,values:i})),r=gt({theme:u},i,(o,s)=>{var f;const l=u.spacing(o);return l!=="0px"?{marginTop:`-${Tf(l)}`,[`& > .${N1.item}`]:{paddingTop:Tf(l)}}:(f=a)!=null&&f.includes(s)?{}:{marginTop:0,[`& > .${N1.item}`]:{paddingTop:0}}})}return r}function OS0({theme:u,ownerState:e}){const{container:t,columnSpacing:n}=e;let r={};if(t&&n!==0){const i=So({values:n,breakpoints:u.breakpoints.values});let a;typeof i=="object"&&(a=wz({breakpoints:u.breakpoints.values,values:i})),r=gt({theme:u},i,(o,s)=>{var f;const l=u.spacing(o);return l!=="0px"?{width:`calc(100% + ${Tf(l)})`,marginLeft:`-${Tf(l)}`,[`& > .${N1.item}`]:{paddingLeft:Tf(l)}}:(f=a)!=null&&f.includes(s)?{}:{width:"100%",marginLeft:0,[`& > .${N1.item}`]:{paddingLeft:0}}})}return r}function RS0(u,e,t={}){if(!u||u<=0)return[];if(typeof u=="string"&&!Number.isNaN(Number(u))||typeof u=="number")return[t[`spacing-xs-${String(u)}`]];const n=[];return e.forEach(r=>{const i=u[r];Number(i)>0&&n.push(t[`spacing-${r}-${String(i)}`])}),n}const NS0=$0("div",{name:"MuiGrid",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u,{container:n,direction:r,item:i,spacing:a,wrap:o,zeroMinWidth:s,breakpoints:f}=t;let l=[];n&&(l=RS0(a,f,e));const c=[];return f.forEach(d=>{const E=t[d];E&&c.push(e[`grid-${d}-${String(E)}`])}),[e.root,n&&e.container,i&&e.item,s&&e.zeroMinWidth,...l,r!=="row"&&e[`direction-xs-${String(r)}`],o!=="wrap"&&e[`wrap-xs-${String(o)}`],...c]}})(({ownerState:u})=>N({boxSizing:"border-box"},u.container&&{display:"flex",flexWrap:"wrap",width:"100%"},u.item&&{margin:0},u.zeroMinWidth&&{minWidth:0},u.wrap!=="wrap"&&{flexWrap:u.wrap}),PS0,IS0,OS0,TS0);function MS0(u,e){if(!u||u<=0)return[];if(typeof u=="string"&&!Number.isNaN(Number(u))||typeof u=="number")return[`spacing-xs-${String(u)}`];const t=[];return e.forEach(n=>{const r=u[n];if(Number(r)>0){const i=`spacing-${n}-${String(r)}`;t.push(i)}}),t}const jS0=u=>{const{classes:e,container:t,direction:n,item:r,spacing:i,wrap:a,zeroMinWidth:o,breakpoints:s}=u;let f=[];t&&(f=MS0(i,s));const l=[];s.forEach(d=>{const E=u[d];E&&l.push(`grid-${d}-${String(E)}`)});const c={root:["root",t&&"container",r&&"item",o&&"zeroMinWidth",...f,n!=="row"&&`direction-xs-${String(n)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...l]};return du(c,DS0,e)},zS0=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiGrid"}),{breakpoints:r}=xd(),i=Bd(n),{className:a,columns:o,columnSpacing:s,component:f="div",container:l=!1,direction:c="row",item:d=!1,rowSpacing:E,spacing:p=0,wrap:h="wrap",zeroMinWidth:g=!1}=i,b=L0(i,SS0),m=E||p,A=s||p,y=w.useContext($x),B=l?o||12:y,v={},C=N({},b);r.keys.forEach(x=>{b[x]!=null&&(v[x]=b[x],delete C[x])});const F=N({},i,{columns:B,container:l,direction:c,item:d,rowSpacing:m,columnSpacing:A,wrap:h,zeroMinWidth:g,spacing:p},v,{breakpoints:r.keys}),S=jS0(F);return V.jsx($x.Provider,{value:B,children:V.jsx(NS0,N({ownerState:F,className:H0(S.root,a),as:f,ref:t},C))})}),r3=zS0,LS0=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function em(u){return`scale(${u}, ${u**2})`}const $S0={entering:{opacity:1,transform:em(1)},entered:{opacity:1,transform:"none"}},yh=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),xz=w.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:i,easing:a,in:o,onEnter:s,onEntered:f,onEntering:l,onExit:c,onExited:d,onExiting:E,style:p,timeout:h="auto",TransitionComponent:g=xP}=e,b=L0(e,LS0),m=w.useRef(),A=w.useRef(),y=xd(),B=w.useRef(null),v=et(B,i.ref,t),C=I=>O=>{if(I){const W=B.current;O===void 0?I(W):I(W,O)}},F=C(l),S=C((I,O)=>{yz(I);const{duration:W,delay:L,easing:q}=f9({style:p,timeout:h,easing:a},{mode:"enter"});let U;h==="auto"?(U=y.transitions.getAutoHeightDuration(I.clientHeight),A.current=U):U=W,I.style.transition=[y.transitions.create("opacity",{duration:U,delay:L}),y.transitions.create("transform",{duration:yh?U:U*.666,delay:L,easing:q})].join(","),s&&s(I,O)}),x=C(f),$=C(E),X=C(I=>{const{duration:O,delay:W,easing:L}=f9({style:p,timeout:h,easing:a},{mode:"exit"});let q;h==="auto"?(q=y.transitions.getAutoHeightDuration(I.clientHeight),A.current=q):q=O,I.style.transition=[y.transitions.create("opacity",{duration:q,delay:W}),y.transitions.create("transform",{duration:yh?q:q*.666,delay:yh?W:W||q*.333,easing:L})].join(","),I.style.opacity=0,I.style.transform=em(.75),c&&c(I)}),Q=C(d),Z=I=>{h==="auto"&&(m.current=setTimeout(I,A.current||0)),n&&n(B.current,I)};return w.useEffect(()=>()=>{clearTimeout(m.current)},[]),V.jsx(g,N({appear:r,in:o,nodeRef:B,onEnter:S,onEntered:x,onEntering:F,onExit:X,onExited:Q,onExiting:$,addEndListener:Z,timeout:h==="auto"?null:h},b,{children:(I,O)=>w.cloneElement(i,N({style:N({opacity:0,transform:em(.75),visibility:I==="exited"&&!o?"hidden":void 0},$S0[I],p,i.props.style),ref:v},O))}))});xz.muiSupportAuto=!0;const US0=xz,WS0=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],qS0=u=>{const{classes:e,disableUnderline:t}=u,r=du({root:["root",!t&&"underline"],input:["input"]},r_0,e);return N({},e,r)},HS0=$0(yp,{shouldForwardProp:u=>Vn(u)||u==="classes",name:"MuiInput",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[...gp(u,e),!t.disableUnderline&&e.underline]}})(({theme:u,ownerState:e})=>{let n=u.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return u.vars&&(n=`rgba(${u.vars.palette.common.onBackgroundChannel} / ${u.vars.opacity.inputUnderline})`),N({position:"relative"},e.formControl&&{"label + &":{marginTop:16}},!e.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(u.vars||u).palette[e.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:u.transitions.create("transform",{duration:u.transitions.duration.shorter,easing:u.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${dl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${dl.error}`]:{"&:before, &:after":{borderBottomColor:(u.vars||u).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:u.transitions.create("border-bottom-color",{duration:u.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${dl.disabled}, .${dl.error}):before`]:{borderBottom:`2px solid ${(u.vars||u).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${dl.disabled}:before`]:{borderBottomStyle:"dotted"}})}),GS0=$0(vp,{name:"MuiInput",slot:"Input",overridesResolver:Ap})({}),kz=w.forwardRef(function(e,t){var n,r,i,a;const o=pu({props:e,name:"MuiInput"}),{disableUnderline:s,components:f={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:E=!1,slotProps:p,slots:h={},type:g="text"}=o,b=L0(o,WS0),m=qS0(o),y={root:{ownerState:{disableUnderline:s}}},B=p??l?ze(p??l,y):y,v=(n=(r=h.root)!=null?r:f.Root)!=null?n:HS0,C=(i=(a=h.input)!=null?a:f.Input)!=null?i:GS0;return V.jsx(ky,N({slots:{root:v,input:C},slotProps:B,fullWidth:c,inputComponent:d,multiline:E,ref:t,type:g},b,{classes:m}))});kz.muiName="Input";const _z=kz;function VS0(u){return fu("MuiInputLabel",u)}Eu("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const KS0=["disableAnimation","margin","shrink","variant","className"],QS0=u=>{const{classes:e,formControl:t,size:n,shrink:r,disableAnimation:i,variant:a,required:o}=u,s={root:["root",t&&"formControl",!i&&"animated",r&&"shrink",n&&n!=="normal"&&`size${K0(n)}`,a],asterisk:[o&&"asterisk"]},f=du(s,VS0,e);return N({},e,f)},JS0=$0(BS0,{shouldForwardProp:u=>Vn(u)||u==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[{[`& .${Zl.asterisk}`]:e.asterisk},e.root,t.formControl&&e.formControl,t.size==="small"&&e.sizeSmall,t.shrink&&e.shrink,!t.disableAnimation&&e.animated,t.focused&&e.focused,e[t.variant]]}})(({theme:u,ownerState:e})=>N({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},e.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},e.size==="small"&&{transform:"translate(0, 17px) scale(1)"},e.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!e.disableAnimation&&{transition:u.transitions.create(["color","transform","max-width"],{duration:u.transitions.duration.shorter,easing:u.transitions.easing.easeOut})},e.variant==="filled"&&N({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},e.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},e.shrink&&N({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},e.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),e.variant==="outlined"&&N({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},e.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},e.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}),e.variant==="standard"&&{"&:not(label) + div":{marginTop:16}})),ZS0=w.forwardRef(function(e,t){const n=pu({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:i,className:a}=n,o=L0(n,KS0),s=q3();let f=i;typeof f>"u"&&s&&(f=s.filled||s.focused||s.adornedStart);const l=W3({props:n,muiFormControl:s,states:["size","variant","required","focused"]}),c=N({},n,{disableAnimation:r,formControl:s,shrink:f,size:l.size,variant:l.variant,required:l.required,focused:l.focused}),d=QS0(c);return V.jsx(JS0,N({"data-shrink":f,ownerState:c,ref:t,className:H0(d.root,a)},o,{classes:d}))}),YS0=ZS0,XS0=w.createContext({}),uT0=XS0;function eT0(u){return fu("MuiList",u)}Eu("MuiList",["root","padding","dense","subheader"]);const tT0=["children","className","component","dense","disablePadding","subheader"],nT0=u=>{const{classes:e,disablePadding:t,dense:n,subheader:r}=u;return du({root:["root",!t&&"padding",n&&"dense",r&&"subheader"]},eT0,e)},rT0=$0("ul",{name:"MuiList",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,!t.disablePadding&&e.padding,t.dense&&e.dense,t.subheader&&e.subheader]}})(({ownerState:u})=>N({listStyle:"none",margin:0,padding:0,position:"relative"},!u.disablePadding&&{paddingTop:8,paddingBottom:8},u.subheader&&{paddingTop:0})),iT0=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiList"}),{children:r,className:i,component:a="ul",dense:o=!1,disablePadding:s=!1,subheader:f}=n,l=L0(n,tT0),c=w.useMemo(()=>({dense:o}),[o]),d=N({},n,{component:a,dense:o,disablePadding:s}),E=nT0(d);return V.jsx(uT0.Provider,{value:c,children:V.jsxs(rT0,N({as:a,className:H0(E.root,i),ref:t,ownerState:d},l,{children:[f,r]}))})}),aT0=iT0,oT0=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function vh(u,e,t){return u===e?u.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t?null:u.firstChild}function Ux(u,e,t){return u===e?t?u.firstChild:u.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t?null:u.lastChild}function Sz(u,e){if(e===void 0)return!0;let t=u.innerText;return t===void 0&&(t=u.textContent),t=t.trim().toLowerCase(),t.length===0?!1:e.repeating?t[0]===e.keys[0]:t.indexOf(e.keys.join(""))===0}function pl(u,e,t,n,r,i){let a=!1,o=r(u,e,e?t:!1);for(;o;){if(o===u.firstChild){if(a)return!1;a=!0}const s=n?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!Sz(o,i)||s)o=r(u,o,t);else return o.focus(),!0}return!1}const sT0=w.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:f=!1,onKeyDown:l,variant:c="selectedMenu"}=e,d=L0(e,oT0),E=w.useRef(null),p=w.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Uo(()=>{r&&E.current.focus()},[r]),w.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(A,y)=>{const B=!E.current.style.width;if(A.clientHeight{const y=E.current,B=A.key,v=Lt(y).activeElement;if(B==="ArrowDown")A.preventDefault(),pl(y,v,f,s,vh);else if(B==="ArrowUp")A.preventDefault(),pl(y,v,f,s,Ux);else if(B==="Home")A.preventDefault(),pl(y,null,f,s,vh);else if(B==="End")A.preventDefault(),pl(y,null,f,s,Ux);else if(B.length===1){const C=p.current,F=B.toLowerCase(),S=performance.now();C.keys.length>0&&(S-C.lastTime>500?(C.keys=[],C.repeating=!0,C.previousKeyMatched=!0):C.repeating&&F!==C.keys[0]&&(C.repeating=!1)),C.lastTime=S,C.keys.push(F);const x=v&&!C.repeating&&Sz(v,C);C.previousKeyMatched&&(x||pl(y,v,!1,s,vh,C))?A.preventDefault():C.previousKeyMatched=!1}l&&l(A)},g=et(E,t);let b=-1;w.Children.forEach(a,(A,y)=>{if(!w.isValidElement(A)){b===y&&(b+=1,b>=a.length&&(b=-1));return}A.props.disabled||(c==="selectedMenu"&&A.props.selected||b===-1)&&(b=y),b===y&&(A.props.disabled||A.props.muiSkipListHighlight||A.type.muiSkipListHighlight)&&(b+=1,b>=a.length&&(b=-1))});const m=w.Children.map(a,(A,y)=>{if(y===b){const B={};return i&&(B.autoFocus=!0),A.props.tabIndex===void 0&&c==="selectedMenu"&&(B.tabIndex=0),w.cloneElement(A,B)}return A});return V.jsx(aT0,N({role:"menu",ref:g,className:o,onKeyDown:h,tabIndex:r?0:-1},d,{children:m}))}),fT0=sT0;function lT0(u){return fu("MuiPopover",u)}Eu("MuiPopover",["root","paper"]);const cT0=["onEntering"],dT0=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ET0=["slotProps"];function Wx(u,e){let t=0;return typeof e=="number"?t=e:e==="center"?t=u.height/2:e==="bottom"&&(t=u.height),t}function qx(u,e){let t=0;return typeof e=="number"?t=e:e==="center"?t=u.width/2:e==="right"&&(t=u.width),t}function Hx(u){return[u.horizontal,u.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function Bh(u){return typeof u=="function"?u():u}const pT0=u=>{const{classes:e}=u;return du({root:["root"],paper:["paper"]},lT0,e)},hT0=$0(Z_0,{name:"MuiPopover",slot:"Root",overridesResolver:(u,e)=>e.root})({}),Tz=$0(Xb,{name:"MuiPopover",slot:"Paper",overridesResolver:(u,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),CT0=w.forwardRef(function(e,t){var n,r,i;const a=pu({props:e,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:f={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:d,className:E,container:p,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:m={},slots:A,slotProps:y,transformOrigin:B={vertical:"top",horizontal:"left"},TransitionComponent:v=US0,transitionDuration:C="auto",TransitionProps:{onEntering:F}={},disableScrollLock:S=!1}=a,x=L0(a.TransitionProps,cT0),$=L0(a,dT0),X=(n=y==null?void 0:y.paper)!=null?n:m,Q=w.useRef(),Z=et(Q,X.ref),I=N({},a,{anchorOrigin:f,anchorReference:c,elevation:h,marginThreshold:g,externalPaperSlotProps:X,transformOrigin:B,TransitionComponent:v,transitionDuration:C,TransitionProps:x}),O=pT0(I),W=w.useCallback(()=>{if(c==="anchorPosition")return l;const j=Bh(s),G=(j&&j.nodeType===1?j:Lt(Q.current).body).getBoundingClientRect();return{top:G.top+Wx(G,f.vertical),left:G.left+qx(G,f.horizontal)}},[s,f.horizontal,f.vertical,l,c]),L=w.useCallback(j=>({vertical:Wx(j,B.vertical),horizontal:qx(j,B.horizontal)}),[B.horizontal,B.vertical]),q=w.useCallback(j=>{const z={width:j.offsetWidth,height:j.offsetHeight},G=L(z);if(c==="none")return{top:null,left:null,transformOrigin:Hx(G)};const t0=W();let H=t0.top-G.vertical,J=t0.left-G.horizontal;const u0=H+z.height,Y=J+z.width,n0=$o(Bh(s)),p0=n0.innerHeight-g,C0=n0.innerWidth-g;if(g!==null&&Hp0){const y0=u0-p0;H-=y0,G.vertical+=y0}if(g!==null&&JC0){const y0=Y-C0;J-=y0,G.horizontal+=y0}return{top:`${Math.round(H)}px`,left:`${Math.round(J)}px`,transformOrigin:Hx(G)}},[s,c,W,L,g]),[U,i0]=w.useState(b),s0=w.useCallback(()=>{const j=Q.current;if(!j)return;const z=q(j);z.top!==null&&(j.style.top=z.top),z.left!==null&&(j.style.left=z.left),j.style.transformOrigin=z.transformOrigin,i0(!0)},[q]);w.useEffect(()=>(S&&window.addEventListener("scroll",s0),()=>window.removeEventListener("scroll",s0)),[s,S,s0]);const o0=(j,z)=>{F&&F(j,z),s0()},K=()=>{i0(!1)};w.useEffect(()=>{b&&s0()}),w.useImperativeHandle(o,()=>b?{updatePosition:()=>{s0()}}:null,[b,s0]),w.useEffect(()=>{if(!b)return;const j=GT(()=>{s0()}),z=$o(s);return z.addEventListener("resize",j),()=>{j.clear(),z.removeEventListener("resize",j)}},[s,b,s0]);let b0=C;C==="auto"&&!v.muiSupportAuto&&(b0=void 0);const A0=p||(s?Lt(Bh(s)).body:void 0),_0=(r=A==null?void 0:A.root)!=null?r:hT0,w0=(i=A==null?void 0:A.paper)!=null?i:Tz,B0=Zo({elementType:w0,externalSlotProps:N({},X,{style:U?X.style:N({},X.style,{opacity:0})}),additionalProps:{elevation:h,ref:Z},ownerState:I,className:H0(O.paper,X==null?void 0:X.className)}),_=Zo({elementType:_0,externalSlotProps:(y==null?void 0:y.root)||{},externalForwardedProps:$,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:A0,open:b},ownerState:I,className:H0(O.root,E)}),{slotProps:T}=_,P=L0(_,ET0);return V.jsx(_0,N({},P,!l9(_0)&&{slotProps:T,disableScrollLock:S},{children:V.jsx(v,N({appear:!0,in:b,onEntering:o0,onExited:K,timeout:b0},x,{children:V.jsx(w0,N({},B0,{children:d}))}))}))}),mT0=CT0;function bT0(u){return fu("MuiMenu",u)}Eu("MuiMenu",["root","paper","list"]);const gT0=["onEntering"],AT0=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],yT0={vertical:"top",horizontal:"right"},vT0={vertical:"top",horizontal:"left"},BT0=u=>{const{classes:e}=u;return du({root:["root"],paper:["paper"],list:["list"]},bT0,e)},FT0=$0(mT0,{shouldForwardProp:u=>Vn(u)||u==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(u,e)=>e.root})({}),DT0=$0(Tz,{name:"MuiMenu",slot:"Paper",overridesResolver:(u,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),wT0=$0(fT0,{name:"MuiMenu",slot:"List",overridesResolver:(u,e)=>e.list})({outline:0}),xT0=w.forwardRef(function(e,t){var n,r;const i=pu({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:o,className:s,disableAutoFocusItem:f=!1,MenuListProps:l={},onClose:c,open:d,PaperProps:E={},PopoverClasses:p,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:m={},slotProps:A={}}=i,y=L0(i.TransitionProps,gT0),B=L0(i,AT0),v=xd(),C=v.direction==="rtl",F=N({},i,{autoFocus:a,disableAutoFocusItem:f,MenuListProps:l,onEntering:g,PaperProps:E,transitionDuration:h,TransitionProps:y,variant:b}),S=BT0(F),x=a&&!f&&d,$=w.useRef(null),X=(q,U)=>{$.current&&$.current.adjustStyleForScrollbar(q,v),g&&g(q,U)},Q=q=>{q.key==="Tab"&&(q.preventDefault(),c&&c(q,"tabKeyDown"))};let Z=-1;w.Children.map(o,(q,U)=>{w.isValidElement(q)&&(q.props.disabled||(b==="selectedMenu"&&q.props.selected||Z===-1)&&(Z=U))});const I=(n=m.paper)!=null?n:DT0,O=(r=A.paper)!=null?r:E,W=Zo({elementType:m.root,externalSlotProps:A.root,ownerState:F,className:[S.root,s]}),L=Zo({elementType:I,externalSlotProps:O,ownerState:F,className:S.paper});return V.jsx(FT0,N({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?yT0:vT0,slots:{paper:I,root:m.root},slotProps:{root:W,paper:L},open:d,ref:t,transitionDuration:h,TransitionProps:N({onEntering:X},y),ownerState:F},B,{classes:p,children:V.jsx(wT0,N({onKeyDown:Q,actions:$,autoFocus:a&&(Z===-1||f),autoFocusItem:x,variant:b},l,{className:H0(S.list,l.className),children:o}))}))}),kT0=xT0;function _T0(u){return fu("MuiNativeSelect",u)}const ST0=Eu("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Sy=ST0,TT0=["className","disabled","error","IconComponent","inputRef","variant"],PT0=u=>{const{classes:e,variant:t,disabled:n,multiple:r,open:i,error:a}=u,o={select:["select",t,n&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${K0(t)}`,i&&"iconOpen",n&&"disabled"]};return du(o,_T0,e)},Pz=({ownerState:u,theme:e})=>N({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":N({},e.vars?{backgroundColor:`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:e.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Sy.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},u.variant==="filled"&&{"&&&":{paddingRight:32}},u.variant==="outlined"&&{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}),IT0=$0("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Vn,overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.select,e[t.variant],t.error&&e.error,{[`&.${Sy.multiple}`]:e.multiple}]}})(Pz),Iz=({ownerState:u,theme:e})=>N({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Sy.disabled}`]:{color:(e.vars||e).palette.action.disabled}},u.open&&{transform:"rotate(180deg)"},u.variant==="filled"&&{right:7},u.variant==="outlined"&&{right:7}),OT0=$0("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.icon,t.variant&&e[`icon${K0(t.variant)}`],t.open&&e.iconOpen]}})(Iz),RT0=w.forwardRef(function(e,t){const{className:n,disabled:r,error:i,IconComponent:a,inputRef:o,variant:s="standard"}=e,f=L0(e,TT0),l=N({},e,{disabled:r,variant:s,error:i}),c=PT0(l);return V.jsxs(w.Fragment,{children:[V.jsx(IT0,N({ownerState:l,className:H0(c.select,n),disabled:r,ref:o||t},f)),e.multiple?null:V.jsx(OT0,{as:a,ownerState:l,className:c.icon})]})}),NT0=RT0;var Gx;const MT0=["children","classes","className","label","notched"],jT0=$0("fieldset",{shouldForwardProp:Vn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),zT0=$0("legend",{shouldForwardProp:Vn})(({ownerState:u,theme:e})=>N({float:"unset",width:"auto",overflow:"hidden"},!u.withLabel&&{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},u.withLabel&&N({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},u.notched&&{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})})));function LT0(u){const{className:e,label:t,notched:n}=u,r=L0(u,MT0),i=t!=null&&t!=="",a=N({},u,{notched:n,withLabel:i});return V.jsx(jT0,N({"aria-hidden":!0,className:e,ownerState:a},r,{children:V.jsx(zT0,{ownerState:a,children:i?V.jsx("span",{children:t}):Gx||(Gx=V.jsx("span",{className:"notranslate",children:"​"}))})}))}const $T0=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],UT0=u=>{const{classes:e}=u,n=du({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},a_0,e);return N({},e,n)},WT0=$0(yp,{shouldForwardProp:u=>Vn(u)||u==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:gp})(({theme:u,ownerState:e})=>{const t=u.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return N({position:"relative",borderRadius:(u.vars||u).shape.borderRadius,[`&:hover .${Di.notchedOutline}`]:{borderColor:(u.vars||u).palette.text.primary},"@media (hover: none)":{[`&:hover .${Di.notchedOutline}`]:{borderColor:u.vars?`rgba(${u.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Di.focused} .${Di.notchedOutline}`]:{borderColor:(u.vars||u).palette[e.color].main,borderWidth:2},[`&.${Di.error} .${Di.notchedOutline}`]:{borderColor:(u.vars||u).palette.error.main},[`&.${Di.disabled} .${Di.notchedOutline}`]:{borderColor:(u.vars||u).palette.action.disabled}},e.startAdornment&&{paddingLeft:14},e.endAdornment&&{paddingRight:14},e.multiline&&N({padding:"16.5px 14px"},e.size==="small"&&{padding:"8.5px 14px"}))}),qT0=$0(LT0,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(u,e)=>e.notchedOutline})(({theme:u})=>{const e=u.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:u.vars?`rgba(${u.vars.palette.common.onBackgroundChannel} / 0.23)`:e}}),HT0=$0(vp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ap})(({theme:u,ownerState:e})=>N({padding:"16.5px 14px"},!u.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:u.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:u.palette.mode==="light"?null:"#fff",caretColor:u.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},u.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[u.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},e.size==="small"&&{padding:"8.5px 14px"},e.multiline&&{padding:0},e.startAdornment&&{paddingLeft:0},e.endAdornment&&{paddingRight:0})),Oz=w.forwardRef(function(e,t){var n,r,i,a,o;const s=pu({props:e,name:"MuiOutlinedInput"}),{components:f={},fullWidth:l=!1,inputComponent:c="input",label:d,multiline:E=!1,notched:p,slots:h={},type:g="text"}=s,b=L0(s,$T0),m=UT0(s),A=q3(),y=W3({props:s,muiFormControl:A,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),B=N({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:A,fullWidth:l,hiddenLabel:y.hiddenLabel,multiline:E,size:y.size,type:g}),v=(n=(r=h.root)!=null?r:f.Root)!=null?n:WT0,C=(i=(a=h.input)!=null?a:f.Input)!=null?i:HT0;return V.jsx(ky,N({slots:{root:v,input:C},renderSuffix:F=>V.jsx(qT0,{ownerState:B,className:m.notchedOutline,label:d!=null&&d!==""&&y.required?o||(o=V.jsxs(w.Fragment,{children:[d," ","*"]})):d,notched:typeof p<"u"?p:!!(F.startAdornment||F.filled||F.focused)}),fullWidth:l,inputComponent:c,multiline:E,ref:t,type:g},b,{classes:N({},m,{notchedOutline:null})}))});Oz.muiName="Input";const Rz=Oz;function GT0(u){return fu("MuiSelect",u)}const VT0=Eu("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),hl=VT0;var Vx;const KT0=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],QT0=$0("div",{name:"MuiSelect",slot:"Select",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[{[`&.${hl.select}`]:e.select},{[`&.${hl.select}`]:e[t.variant]},{[`&.${hl.error}`]:e.error},{[`&.${hl.multiple}`]:e.multiple}]}})(Pz,{[`&.${hl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),JT0=$0("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.icon,t.variant&&e[`icon${K0(t.variant)}`],t.open&&e.iconOpen]}})(Iz),ZT0=$0("input",{shouldForwardProp:u=>iQ(u)&&u!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(u,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Kx(u,e){return typeof e=="object"&&e!==null?u===e:String(u)===String(e)}function YT0(u){return u==null||typeof u=="string"&&!u.trim()}const XT0=u=>{const{classes:e,variant:t,disabled:n,multiple:r,open:i,error:a}=u,o={select:["select",t,n&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${K0(t)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return du(o,GT0,e)},uP0=w.forwardRef(function(e,t){var n;const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:o,children:s,className:f,defaultOpen:l,defaultValue:c,disabled:d,displayEmpty:E,error:p=!1,IconComponent:h,inputRef:g,labelId:b,MenuProps:m={},multiple:A,name:y,onBlur:B,onChange:v,onClose:C,onFocus:F,onOpen:S,open:x,readOnly:$,renderValue:X,SelectDisplayProps:Q={},tabIndex:Z,value:I,variant:O="standard"}=e,W=L0(e,KT0),[L,q]=zB({controlled:I,default:c,name:"Select"}),[U,i0]=zB({controlled:x,default:l,name:"Select"}),s0=w.useRef(null),o0=w.useRef(null),[K,b0]=w.useState(null),{current:A0}=w.useRef(x!=null),[_0,w0]=w.useState(),B0=et(t,g),_=w.useCallback(D0=>{o0.current=D0,D0&&b0(D0)},[]),T=K==null?void 0:K.parentNode;w.useImperativeHandle(B0,()=>({focus:()=>{o0.current.focus()},node:s0.current,value:L}),[L]),w.useEffect(()=>{l&&U&&K&&!A0&&(w0(o?null:T.clientWidth),o0.current.focus())},[K,o]),w.useEffect(()=>{a&&o0.current.focus()},[a]),w.useEffect(()=>{if(!b)return;const D0=Lt(o0.current).getElementById(b);if(D0){const R0=()=>{getSelection().isCollapsed&&o0.current.focus()};return D0.addEventListener("click",R0),()=>{D0.removeEventListener("click",R0)}}},[b]);const P=(D0,R0)=>{D0?S&&S(R0):C&&C(R0),A0||(w0(o?null:T.clientWidth),i0(D0))},j=D0=>{D0.button===0&&(D0.preventDefault(),o0.current.focus(),P(!0,D0))},z=D0=>{P(!1,D0)},G=w.Children.toArray(s),t0=D0=>{const R0=G.find(nu=>nu.props.value===D0.target.value);R0!==void 0&&(q(R0.props.value),v&&v(D0,R0))},H=D0=>R0=>{let nu;if(R0.currentTarget.hasAttribute("tabindex")){if(A){nu=Array.isArray(L)?L.slice():[];const hu=L.indexOf(D0.props.value);hu===-1?nu.push(D0.props.value):nu.splice(hu,1)}else nu=D0.props.value;if(D0.props.onClick&&D0.props.onClick(R0),L!==nu&&(q(nu),v)){const hu=R0.nativeEvent||R0,iv=new hu.constructor(hu.type,hu);Object.defineProperty(iv,"target",{writable:!0,value:{value:nu,name:y}}),v(iv,D0)}A||P(!1,R0)}},J=D0=>{$||[" ","ArrowUp","ArrowDown","Enter"].indexOf(D0.key)!==-1&&(D0.preventDefault(),P(!0,D0))},u0=K!==null&&U,Y=D0=>{!u0&&B&&(Object.defineProperty(D0,"target",{writable:!0,value:{value:L,name:y}}),B(D0))};delete W["aria-invalid"];let n0,p0;const C0=[];let y0=!1;(d9({value:L})||E)&&(X?n0=X(L):y0=!0);const g0=G.map(D0=>{if(!w.isValidElement(D0))return null;let R0;if(A){if(!Array.isArray(L))throw new Error(ha(2));R0=L.some(nu=>Kx(nu,D0.props.value)),R0&&y0&&C0.push(D0.props.children)}else R0=Kx(L,D0.props.value),R0&&y0&&(p0=D0.props.children);return w.cloneElement(D0,{"aria-selected":R0?"true":"false",onClick:H(D0),onKeyUp:nu=>{nu.key===" "&&nu.preventDefault(),D0.props.onKeyUp&&D0.props.onKeyUp(nu)},role:"option",selected:R0,value:void 0,"data-value":D0.props.value})});y0&&(A?C0.length===0?n0=null:n0=C0.reduce((D0,R0,nu)=>(D0.push(R0),nu{const{classes:e}=u;return e},Ty={name:"MuiSelect",overridesResolver:(u,e)=>e.root,shouldForwardProp:u=>Vn(u)&&u!=="variant",slot:"Root"},iP0=$0(_z,Ty)(""),aP0=$0(Rz,Ty)(""),oP0=$0(Dz,Ty)(""),Nz=w.forwardRef(function(e,t){const n=pu({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:i,classes:a={},className:o,defaultOpen:s=!1,displayEmpty:f=!1,IconComponent:l=l_0,id:c,input:d,inputProps:E,label:p,labelId:h,MenuProps:g,multiple:b=!1,native:m=!1,onClose:A,onOpen:y,open:B,renderValue:v,SelectDisplayProps:C,variant:F="outlined"}=n,S=L0(n,tP0),x=m?NT0:eP0,$=q3(),X=W3({props:n,muiFormControl:$,states:["variant","error"]}),Q=X.variant||F,Z=N({},n,{variant:Q,classes:a}),I=rP0(Z),O=L0(I,nP0),W=d||{standard:V.jsx(iP0,{ownerState:Z}),outlined:V.jsx(aP0,{label:p,ownerState:Z}),filled:V.jsx(oP0,{ownerState:Z})}[Q],L=et(t,W.ref);return V.jsx(w.Fragment,{children:w.cloneElement(W,N({inputComponent:x,inputProps:N({children:i,error:X.error,IconComponent:l,variant:Q,type:void 0,multiple:b},m?{id:c}:{autoWidth:r,defaultOpen:s,displayEmpty:f,labelId:h,MenuProps:g,onClose:A,onOpen:y,open:B,renderValue:v,SelectDisplayProps:N({id:c},C)},E,{classes:E?ze(O,E.classes):O},d?d.props.inputProps:{})},b&&m&&Q==="outlined"?{notched:!0}:{},{ref:L,className:H0(W.props.className,o,I.root)},!d&&{variant:Q},S))})});Nz.muiName="Select";const sP0=Nz;function fP0(u){return fu("MuiTextField",u)}Eu("MuiTextField",["root"]);const lP0=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],cP0={standard:_z,filled:Dz,outlined:Rz},dP0=u=>{const{classes:e}=u;return du({root:["root"]},fP0,e)},EP0=$0(oS0,{name:"MuiTextField",slot:"Root",overridesResolver:(u,e)=>e.root})({}),pP0=w.forwardRef(function(e,t){const n=pu({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:o,color:s="primary",defaultValue:f,disabled:l=!1,error:c=!1,FormHelperTextProps:d,fullWidth:E=!1,helperText:p,id:h,InputLabelProps:g,inputProps:b,InputProps:m,inputRef:A,label:y,maxRows:B,minRows:v,multiline:C=!1,name:F,onBlur:S,onChange:x,onFocus:$,placeholder:X,required:Q=!1,rows:Z,select:I=!1,SelectProps:O,type:W,value:L,variant:q="outlined"}=n,U=L0(n,lP0),i0=N({},n,{autoFocus:i,color:s,disabled:l,error:c,fullWidth:E,multiline:C,required:Q,select:I,variant:q}),s0=dP0(i0),o0={};q==="outlined"&&(g&&typeof g.shrink<"u"&&(o0.notched=g.shrink),o0.label=y),I&&((!O||!O.native)&&(o0.id=void 0),o0["aria-describedby"]=void 0);const K=z7(h),b0=p&&K?`${K}-helper-text`:void 0,A0=y&&K?`${K}-label`:void 0,_0=cP0[q],w0=V.jsx(_0,N({"aria-describedby":b0,autoComplete:r,autoFocus:i,defaultValue:f,fullWidth:E,multiline:C,name:F,rows:Z,maxRows:B,minRows:v,type:W,value:L,id:K,inputRef:A,onBlur:S,onChange:x,onFocus:$,placeholder:X,inputProps:b},o0,m));return V.jsxs(EP0,N({className:H0(s0.root,o),disabled:l,error:c,fullWidth:E,ref:t,required:Q,color:s,variant:q,ownerState:i0},U,{children:[y!=null&&y!==""&&V.jsx(YS0,N({htmlFor:K,id:A0},g,{children:y})),I?V.jsx(sP0,N({"aria-describedby":b0,id:K,labelId:A0,value:L,input:w0},O,{children:a})):w0,p&&V.jsx(hS0,N({id:b0},d,{children:p}))]}))}),Yl=pP0,hP0=["MarketPlace","Factory"];function CP0(){const u=Ib(),e=Bt(),t=()=>{e.isConnected&&u("/real-token/Profile/"+e.address)},n=r=>{console.log("Redirect to page: ",r),r=="MarketPlace"?u("/real-token/Explore"):r=="Factory"&&u("/real-token/Mint")};return w.useEffect(()=>{},[]),V.jsx(nJ,{position:"static",style:{background:"linear-gradient(269.67deg, #CCE1FA -10.61%, #C6EEEA 113.26%)"},children:V.jsx(cJ,{maxWidth:"xl",children:V.jsxs(fJ,{disableGutters:!0,children:[V.jsx("img",{src:bJ,width:40}),V.jsx(_P,{sx:{flexGrow:1,display:{xs:"none",md:"flex"}},children:hP0.map(r=>V.jsx(Ca,{onClick:()=>n(r),sx:{my:2,color:"#352D50",display:"block"},children:r},r))}),V.jsxs(BK,{sx:{flexGrow:0},direction:"row",children:[V.jsx(ty,{chainStatus:"full",accountStatus:{smallScreen:"avatar",largeScreen:"address"}}),e.isConnected&&V.jsx(Ca,{onClick:t,children:V.jsx(A_0,{})})]})]})})})}function mP0(u){return V.jsx(_y,{onClick:u.onClick,className:"nft-card",children:V.jsxs(Bz,{children:[V.jsx("img",{src:u.NFT.img,width:200,height:275}),V.jsx("h4",{children:u.NFT.name}),V.jsxs("p",{children:[u.NFT.price," ",u.NFT.price_token]}),V.jsx(Ca,{variant:"contained",color:"primary",children:"Buy Now"})]})})}const bP0="hh-sol-artifact-1",gP0="MarketPlace",AP0="contracts/MarketPlace.sol",yP0=[{inputs:[{internalType:"address",name:"_fractionalizedNFT",type:"address"},{internalType:"address",name:"_matic",type:"address"},{internalType:"address",name:"_priceConsumerV3",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{inputs:[],name:"ReentrancyGuardReentrantCall",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"orderId",type:"uint256"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"seller",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"price",type:"uint256"}],name:"TokenListed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"orderId",type:"uint256"}],name:"TokenRemovedFromSale",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"orderId",type:"uint256"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"TokenSold",type:"event"},{inputs:[{internalType:"uint256",name:"orderId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"buyToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getReserverPricingMatic",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"}],name:"listTokenForSale",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"listedTokens",outputs:[{internalType:"address",name:"seller",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"orderId",type:"uint256"}],name:"removeTokenFromSale",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"}],vP0="0x60806040523480156200001157600080fd5b5060405162001d2f38038062001d2f8339818101604052810190620000379190620002c0565b33600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000ad5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000a491906200032d565b60405180910390fd5b620000be816200019260201b60201c565b506001808190555082600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050506200034a565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000288826200025b565b9050919050565b6200029a816200027b565b8114620002a657600080fd5b50565b600081519050620002ba816200028f565b92915050565b600080600060608486031215620002dc57620002db62000256565b5b6000620002ec86828701620002a9565b9350506020620002ff86828701620002a9565b92505060406200031286828701620002a9565b9150509250925092565b62000327816200027b565b82525050565b60006020820190506200034460008301846200031c565b92915050565b6119d5806200035a6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b14610116578063bbec147714610134578063e8cdea1114610150578063f2fde38b1461016c57610088565b80630633dfd81461008d5780635a9d1ac3146100bd578063715018a6146100f05780637273cc02146100fa575b600080fd5b6100a760048036038101906100a29190610f2a565b610188565b6040516100b49190610f66565b60405180910390f35b6100d760048036038101906100d29190610f2a565b6102d6565b6040516100e79493929190610fc2565b60405180910390f35b6100f8610326565b005b610114600480360381019061010f9190611007565b61033a565b005b61011e610623565b60405161012b919061105a565b60405180910390f35b61014e600480360381019061014991906111bb565b61064c565b005b61016a60048036038101906101659190610f2a565b610ad5565b005b6101866004803603810190610181919061126a565b610c10565b005b600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638b12937c846040518263ffffffff1660e01b81526004016101e69190610f66565b602060405180830381865afa158015610203573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022791906112ac565b90506000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631cd617338360066040518363ffffffff1660e01b815260040161028992919061132b565b602060405180830381865afa1580156102a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ca91906112ac565b90508092505050919050565b60066020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154905084565b61032e610c96565b6103386000610d1d565b565b610342610de1565b60008211610385576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161037c906113b1565b60405180910390fd5b600081116103c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103bf9061141d565b60405180910390fd5b6103d183610e27565b610410576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161040790611489565b60405180910390fd5b81600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632fecd4bb33866040518363ffffffff1660e01b815260040161046e9291906114a9565b602060405180830381865afa15801561048b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104af91906112ac565b10156104f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104e79061151e565b60405180910390fd5b6000600554905060405180608001604052803373ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018481526020018381525060066000600554815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015560608201518160030155905050600560008154809291906105be9061156d565b91905055503373ffffffffffffffffffffffffffffffffffffffff1684827fa92192e62483e02da647da87df5ee3ae3946b4d23bc8bcba4bedc399d746b61a868660405161060d9291906115b5565b60405180910390a45061061e610ecf565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610654610de1565b60008211610697576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068e906113b1565b60405180910390fd5b600060066000868152602001908152602001600020905082816002015410156106f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ec90611650565b60405180910390fd5b60008382600301546107079190611670565b905080600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610765919061105a565b602060405180830381865afa158015610782573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a691906112ac565b10156107e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107de906116fe565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd338460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b815260040161086a9392919061171e565b6020604051808303816000875af1158015610889573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ad919061178d565b6108ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e390611806565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663605105f08360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16338888886040518663ffffffff1660e01b81526004016109739594939291906118a5565b600060405180830381600087803b15801561098d57600080fd5b505af11580156109a1573d6000803e3d6000fd5b50505050838260020160008282546109b991906118ff565b925050819055508160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1685877ffe622457aed7573c0622a010adec14ea75bfc79cb8d47c552fdcad34199067013388604051610a2e9291906114a9565b60405180910390a46000826002015403610ac55760066000878152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905560038201600090555050857fccd0b7af52bf5f08ec6781299e66283301e612d1ca1ffceab3579a6364073c3060405160405180910390a25b5050610acf610ecf565b50505050565b610add610de1565b803373ffffffffffffffffffffffffffffffffffffffff166006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610b82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b799061197f565b60405180910390fd5b60066000838152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905560038201600090555050817fccd0b7af52bf5f08ec6781299e66283301e612d1ca1ffceab3579a6364073c3060405160405180910390a250610c0d610ecf565b50565b610c18610c96565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610c8a5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610c81919061105a565b60405180910390fd5b610c9381610d1d565b50565b610c9e610ed8565b73ffffffffffffffffffffffffffffffffffffffff16610cbc610623565b73ffffffffffffffffffffffffffffffffffffffff1614610d1b57610cdf610ed8565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610d12919061105a565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600260015403610e1d576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b8152600401610e869291906114a9565b602060405180830381865afa158015610ea3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec791906112ac565b119050919050565b60018081905550565b600033905090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b610f0781610ef4565b8114610f1257600080fd5b50565b600081359050610f2481610efe565b92915050565b600060208284031215610f4057610f3f610eea565b5b6000610f4e84828501610f15565b91505092915050565b610f6081610ef4565b82525050565b6000602082019050610f7b6000830184610f57565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610fac82610f81565b9050919050565b610fbc81610fa1565b82525050565b6000608082019050610fd76000830187610fb3565b610fe46020830186610f57565b610ff16040830185610f57565b610ffe6060830184610f57565b95945050505050565b6000806000606084860312156110205761101f610eea565b5b600061102e86828701610f15565b935050602061103f86828701610f15565b925050604061105086828701610f15565b9150509250925092565b600060208201905061106f6000830184610fb3565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6110c88261107f565b810181811067ffffffffffffffff821117156110e7576110e6611090565b5b80604052505050565b60006110fa610ee0565b905061110682826110bf565b919050565b600067ffffffffffffffff82111561112657611125611090565b5b61112f8261107f565b9050602081019050919050565b82818337600083830152505050565b600061115e6111598461110b565b6110f0565b90508281526020810184848401111561117a5761117961107a565b5b61118584828561113c565b509392505050565b600082601f8301126111a2576111a1611075565b5b81356111b284826020860161114b565b91505092915050565b600080600080608085870312156111d5576111d4610eea565b5b60006111e387828801610f15565b94505060206111f487828801610f15565b935050604061120587828801610f15565b925050606085013567ffffffffffffffff81111561122657611225610eef565b5b6112328782880161118d565b91505092959194509250565b61124781610fa1565b811461125257600080fd5b50565b6000813590506112648161123e565b92915050565b6000602082840312156112805761127f610eea565b5b600061128e84828501611255565b91505092915050565b6000815190506112a681610efe565b92915050565b6000602082840312156112c2576112c1610eea565b5b60006112d084828501611297565b91505092915050565b6000819050919050565b600060ff82169050919050565b6000819050919050565b600061131561131061130b846112d9565b6112f0565b6112e3565b9050919050565b611325816112fa565b82525050565b60006040820190506113406000830185610f57565b61134d602083018461131c565b9392505050565b600082825260208201905092915050565b7f416d6f756e74206d7573742062652067726561746572207468616e207a65726f600082015250565b600061139b602083611354565b91506113a682611365565b602082019050919050565b600060208201905081810360008301526113ca8161138e565b9050919050565b7f5072696365206d7573742062652067726561746572207468616e207a65726f00600082015250565b6000611407601f83611354565b9150611412826113d1565b602082019050919050565b60006020820190508181036000830152611436816113fa565b9050919050565b7f546f6b656e206d757374206265206672616374696f6e616c697a656400000000600082015250565b6000611473601c83611354565b915061147e8261143d565b602082019050919050565b600060208201905081810360008301526114a281611466565b9050919050565b60006040820190506114be6000830185610fb3565b6114cb6020830184610f57565b9392505050565b7f496e73756666696369656e74206f776e65727368697000000000000000000000600082015250565b6000611508601683611354565b9150611513826114d2565b602082019050919050565b60006020820190508181036000830152611537816114fb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061157882610ef4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036115aa576115a961153e565b5b600182019050919050565b60006040820190506115ca6000830185610f57565b6115d76020830184610f57565b9392505050565b7f4e6f7420656e6f75676820746f6b656e7320617661696c61626c6520666f722060008201527f73616c6500000000000000000000000000000000000000000000000000000000602082015250565b600061163a602483611354565b9150611645826115de565b604082019050919050565b600060208201905081810360008301526116698161162d565b9050919050565b600061167b82610ef4565b915061168683610ef4565b925082820261169481610ef4565b915082820484148315176116ab576116aa61153e565b5b5092915050565b7f496e73756666696369656e742062757965722062616c616e6365000000000000600082015250565b60006116e8601a83611354565b91506116f3826116b2565b602082019050919050565b60006020820190508181036000830152611717816116db565b9050919050565b60006060820190506117336000830186610fb3565b6117406020830185610fb3565b61174d6040830184610f57565b949350505050565b60008115159050919050565b61176a81611755565b811461177557600080fd5b50565b60008151905061178781611761565b92915050565b6000602082840312156117a3576117a2610eea565b5b60006117b184828501611778565b91505092915050565b7f546f6b656e207472616e73666572206661696c65640000000000000000000000600082015250565b60006117f0601583611354565b91506117fb826117ba565b602082019050919050565b6000602082019050818103600083015261181f816117e3565b9050919050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611860578082015181840152602081019050611845565b60008484015250505050565b600061187782611826565b6118818185611831565b9350611891818560208601611842565b61189a8161107f565b840191505092915050565b600060a0820190506118ba6000830188610fb3565b6118c76020830187610fb3565b6118d46040830186610f57565b6118e16060830185610f57565b81810360808301526118f3818461186c565b90509695505050505050565b600061190a82610ef4565b915061191583610ef4565b925082820390508181111561192d5761192c61153e565b5b92915050565b7f4e6f74207468652073656c6c6572000000000000000000000000000000000000600082015250565b6000611969600e83611354565b915061197482611933565b602082019050919050565b600060208201905081810360008301526119988161195c565b905091905056fea26469706673582212204cd90c9c3ccc3a331c3d5320c95faaeb5d911549f452d1c480296a9a94682fe964736f6c63430008140033",BP0="0x608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b14610116578063bbec147714610134578063e8cdea1114610150578063f2fde38b1461016c57610088565b80630633dfd81461008d5780635a9d1ac3146100bd578063715018a6146100f05780637273cc02146100fa575b600080fd5b6100a760048036038101906100a29190610f2a565b610188565b6040516100b49190610f66565b60405180910390f35b6100d760048036038101906100d29190610f2a565b6102d6565b6040516100e79493929190610fc2565b60405180910390f35b6100f8610326565b005b610114600480360381019061010f9190611007565b61033a565b005b61011e610623565b60405161012b919061105a565b60405180910390f35b61014e600480360381019061014991906111bb565b61064c565b005b61016a60048036038101906101659190610f2a565b610ad5565b005b6101866004803603810190610181919061126a565b610c10565b005b600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638b12937c846040518263ffffffff1660e01b81526004016101e69190610f66565b602060405180830381865afa158015610203573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022791906112ac565b90506000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631cd617338360066040518363ffffffff1660e01b815260040161028992919061132b565b602060405180830381865afa1580156102a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ca91906112ac565b90508092505050919050565b60066020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154905084565b61032e610c96565b6103386000610d1d565b565b610342610de1565b60008211610385576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161037c906113b1565b60405180910390fd5b600081116103c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103bf9061141d565b60405180910390fd5b6103d183610e27565b610410576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161040790611489565b60405180910390fd5b81600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632fecd4bb33866040518363ffffffff1660e01b815260040161046e9291906114a9565b602060405180830381865afa15801561048b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104af91906112ac565b10156104f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104e79061151e565b60405180910390fd5b6000600554905060405180608001604052803373ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018481526020018381525060066000600554815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015560608201518160030155905050600560008154809291906105be9061156d565b91905055503373ffffffffffffffffffffffffffffffffffffffff1684827fa92192e62483e02da647da87df5ee3ae3946b4d23bc8bcba4bedc399d746b61a868660405161060d9291906115b5565b60405180910390a45061061e610ecf565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610654610de1565b60008211610697576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068e906113b1565b60405180910390fd5b600060066000868152602001908152602001600020905082816002015410156106f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ec90611650565b60405180910390fd5b60008382600301546107079190611670565b905080600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610765919061105a565b602060405180830381865afa158015610782573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a691906112ac565b10156107e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107de906116fe565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd338460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b815260040161086a9392919061171e565b6020604051808303816000875af1158015610889573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ad919061178d565b6108ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e390611806565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663605105f08360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16338888886040518663ffffffff1660e01b81526004016109739594939291906118a5565b600060405180830381600087803b15801561098d57600080fd5b505af11580156109a1573d6000803e3d6000fd5b50505050838260020160008282546109b991906118ff565b925050819055508160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1685877ffe622457aed7573c0622a010adec14ea75bfc79cb8d47c552fdcad34199067013388604051610a2e9291906114a9565b60405180910390a46000826002015403610ac55760066000878152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905560038201600090555050857fccd0b7af52bf5f08ec6781299e66283301e612d1ca1ffceab3579a6364073c3060405160405180910390a25b5050610acf610ecf565b50505050565b610add610de1565b803373ffffffffffffffffffffffffffffffffffffffff166006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610b82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b799061197f565b60405180910390fd5b60066000838152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905560038201600090555050817fccd0b7af52bf5f08ec6781299e66283301e612d1ca1ffceab3579a6364073c3060405160405180910390a250610c0d610ecf565b50565b610c18610c96565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610c8a5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610c81919061105a565b60405180910390fd5b610c9381610d1d565b50565b610c9e610ed8565b73ffffffffffffffffffffffffffffffffffffffff16610cbc610623565b73ffffffffffffffffffffffffffffffffffffffff1614610d1b57610cdf610ed8565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610d12919061105a565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600260015403610e1d576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b8152600401610e869291906114a9565b602060405180830381865afa158015610ea3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec791906112ac565b119050919050565b60018081905550565b600033905090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b610f0781610ef4565b8114610f1257600080fd5b50565b600081359050610f2481610efe565b92915050565b600060208284031215610f4057610f3f610eea565b5b6000610f4e84828501610f15565b91505092915050565b610f6081610ef4565b82525050565b6000602082019050610f7b6000830184610f57565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610fac82610f81565b9050919050565b610fbc81610fa1565b82525050565b6000608082019050610fd76000830187610fb3565b610fe46020830186610f57565b610ff16040830185610f57565b610ffe6060830184610f57565b95945050505050565b6000806000606084860312156110205761101f610eea565b5b600061102e86828701610f15565b935050602061103f86828701610f15565b925050604061105086828701610f15565b9150509250925092565b600060208201905061106f6000830184610fb3565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6110c88261107f565b810181811067ffffffffffffffff821117156110e7576110e6611090565b5b80604052505050565b60006110fa610ee0565b905061110682826110bf565b919050565b600067ffffffffffffffff82111561112657611125611090565b5b61112f8261107f565b9050602081019050919050565b82818337600083830152505050565b600061115e6111598461110b565b6110f0565b90508281526020810184848401111561117a5761117961107a565b5b61118584828561113c565b509392505050565b600082601f8301126111a2576111a1611075565b5b81356111b284826020860161114b565b91505092915050565b600080600080608085870312156111d5576111d4610eea565b5b60006111e387828801610f15565b94505060206111f487828801610f15565b935050604061120587828801610f15565b925050606085013567ffffffffffffffff81111561122657611225610eef565b5b6112328782880161118d565b91505092959194509250565b61124781610fa1565b811461125257600080fd5b50565b6000813590506112648161123e565b92915050565b6000602082840312156112805761127f610eea565b5b600061128e84828501611255565b91505092915050565b6000815190506112a681610efe565b92915050565b6000602082840312156112c2576112c1610eea565b5b60006112d084828501611297565b91505092915050565b6000819050919050565b600060ff82169050919050565b6000819050919050565b600061131561131061130b846112d9565b6112f0565b6112e3565b9050919050565b611325816112fa565b82525050565b60006040820190506113406000830185610f57565b61134d602083018461131c565b9392505050565b600082825260208201905092915050565b7f416d6f756e74206d7573742062652067726561746572207468616e207a65726f600082015250565b600061139b602083611354565b91506113a682611365565b602082019050919050565b600060208201905081810360008301526113ca8161138e565b9050919050565b7f5072696365206d7573742062652067726561746572207468616e207a65726f00600082015250565b6000611407601f83611354565b9150611412826113d1565b602082019050919050565b60006020820190508181036000830152611436816113fa565b9050919050565b7f546f6b656e206d757374206265206672616374696f6e616c697a656400000000600082015250565b6000611473601c83611354565b915061147e8261143d565b602082019050919050565b600060208201905081810360008301526114a281611466565b9050919050565b60006040820190506114be6000830185610fb3565b6114cb6020830184610f57565b9392505050565b7f496e73756666696369656e74206f776e65727368697000000000000000000000600082015250565b6000611508601683611354565b9150611513826114d2565b602082019050919050565b60006020820190508181036000830152611537816114fb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061157882610ef4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036115aa576115a961153e565b5b600182019050919050565b60006040820190506115ca6000830185610f57565b6115d76020830184610f57565b9392505050565b7f4e6f7420656e6f75676820746f6b656e7320617661696c61626c6520666f722060008201527f73616c6500000000000000000000000000000000000000000000000000000000602082015250565b600061163a602483611354565b9150611645826115de565b604082019050919050565b600060208201905081810360008301526116698161162d565b9050919050565b600061167b82610ef4565b915061168683610ef4565b925082820261169481610ef4565b915082820484148315176116ab576116aa61153e565b5b5092915050565b7f496e73756666696369656e742062757965722062616c616e6365000000000000600082015250565b60006116e8601a83611354565b91506116f3826116b2565b602082019050919050565b60006020820190508181036000830152611717816116db565b9050919050565b60006060820190506117336000830186610fb3565b6117406020830185610fb3565b61174d6040830184610f57565b949350505050565b60008115159050919050565b61176a81611755565b811461177557600080fd5b50565b60008151905061178781611761565b92915050565b6000602082840312156117a3576117a2610eea565b5b60006117b184828501611778565b91505092915050565b7f546f6b656e207472616e73666572206661696c65640000000000000000000000600082015250565b60006117f0601583611354565b91506117fb826117ba565b602082019050919050565b6000602082019050818103600083015261181f816117e3565b9050919050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611860578082015181840152602081019050611845565b60008484015250505050565b600061187782611826565b6118818185611831565b9350611891818560208601611842565b61189a8161107f565b840191505092915050565b600060a0820190506118ba6000830188610fb3565b6118c76020830187610fb3565b6118d46040830186610f57565b6118e16060830185610f57565b81810360808301526118f3818461186c565b90509695505050505050565b600061190a82610ef4565b915061191583610ef4565b925082820390508181111561192d5761192c61153e565b5b92915050565b7f4e6f74207468652073656c6c6572000000000000000000000000000000000000600082015250565b6000611969600e83611354565b915061197482611933565b602082019050919050565b600060208201905081810360008301526119988161195c565b905091905056fea26469706673582212204cd90c9c3ccc3a331c3d5320c95faaeb5d911549f452d1c480296a9a94682fe964736f6c63430008140033",FP0={},DP0={},tm={_format:bP0,contractName:gP0,sourceName:AP0,abi:yP0,bytecode:vP0,deployedBytecode:BP0,linkReferences:FP0,deployedLinkReferences:DP0},Ka="0x32c3eb2f4b36500fD9b065999Eb998FA6ece7C46",Py="0xdA35481a0502D92E449AF98De58Fa344Cb91D3bd",wP0="0xfa27d36798340E253DB192A6117086ee307e0B05",xP0="0xEd1124dd25e7d3a59A2374163dD81BAb1f3471a3",kP0="6.9.0";function _P0(u,e,t){const n=e.split("|").map(i=>i.trim());for(let i=0;iPromise.resolve(u[n])))).reduce((n,r,i)=>(n[e[i]]=r,n),{})}function U0(u,e,t){for(let n in e){let r=e[n];const i=t?t[n]:null;i&&_P0(r,i,n),Object.defineProperty(u,n,{enumerable:!0,value:r,writable:!1})}}function Ef(u){if(u==null)return"null";if(Array.isArray(u))return"[ "+u.map(Ef).join(", ")+" ]";if(u instanceof Uint8Array){const e="0123456789abcdef";let t="0x";for(let n=0;n>4],t+=e[u[n]&15];return t}if(typeof u=="object"&&typeof u.toJSON=="function")return Ef(u.toJSON());switch(typeof u){case"boolean":case"symbol":return u.toString();case"bigint":return BigInt(u).toString();case"number":return u.toString();case"string":return JSON.stringify(u);case"object":{const e=Object.keys(u);return e.sort(),"{ "+e.map(t=>`${Ef(t)}: ${Ef(u[t])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function ln(u,e){return u&&u.code===e}function Iy(u){return ln(u,"CALL_EXCEPTION")}function ne(u,e,t){let n=u;{const i=[];if(t){if("message"in t||"code"in t||"name"in t)throw new Error(`value will overwrite populated values: ${Ef(t)}`);for(const a in t){if(a==="shortMessage")continue;const o=t[a];i.push(a+"="+Ef(o))}}i.push(`code=${e}`),i.push(`version=${kP0}`),i.length&&(u+=" ("+i.join(", ")+")")}let r;switch(e){case"INVALID_ARGUMENT":r=new TypeError(u);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":r=new RangeError(u);break;default:r=new Error(u)}return U0(r,{code:e}),t&&Object.assign(r,t),r.shortMessage==null&&U0(r,{shortMessage:n}),r}function E0(u,e,t,n){if(!u)throw ne(e,t,n)}function e0(u,e,t,n){E0(u,e,"INVALID_ARGUMENT",{argument:t,value:n})}function Mz(u,e,t){t==null&&(t=""),t&&(t=": "+t),E0(u>=e,"missing arguemnt"+t,"MISSING_ARGUMENT",{count:u,expectedCount:e}),E0(u<=e,"too many arguemnts"+t,"UNEXPECTED_ARGUMENT",{count:u,expectedCount:e})}const SP0=["NFD","NFC","NFKD","NFKC"].reduce((u,e)=>{try{if("test".normalize(e)!=="test")throw new Error("bad");if(e==="NFD"&&"é".normalize("NFD")!=="é")throw new Error("broken");u.push(e)}catch{}return u},[]);function TP0(u){E0(SP0.indexOf(u)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:u}})}function Bp(u,e,t){if(t==null&&(t=""),u!==e){let n=t,r="new";t&&(n+=".",r+=" "+t),E0(!1,`private constructor; use ${n}from* methods`,"UNSUPPORTED_OPERATION",{operation:r})}}function jz(u,e,t){if(u instanceof Uint8Array)return t?new Uint8Array(u):u;if(typeof u=="string"&&u.match(/^0x([0-9a-f][0-9a-f])*$/i)){const n=new Uint8Array((u.length-2)/2);let r=2;for(let i=0;i>4]+Qx[r&15]}return t}function fe(u){return"0x"+u.map(e=>M0(e).substring(2)).join("")}function Pf(u){return Nu(u,!0)?(u.length-2)/2:cu(u).length}function Wu(u,e,t){const n=cu(u);return t!=null&&t>n.length&&E0(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:n,length:n.length,offset:t}),M0(n.slice(e??0,t??n.length))}function zz(u,e,t){const n=cu(u);E0(e>=n.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(n),length:e,offset:e+1});const r=new Uint8Array(e);return r.fill(0),t?r.set(n,e-n.length):r.set(n,0),M0(r)}function Yo(u,e){return zz(u,e,!0)}function IP0(u,e){return zz(u,e,!1)}const Fp=BigInt(0),Nn=BigInt(1),pf=9007199254740991;function OP0(u,e){const t=Dp(u,"value"),n=BigInt(Z0(e,"width"));if(E0(t>>n===Fp,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:u}),t>>n-Nn){const r=(Nn<=-pf&&u<=pf,"overflow",e||"value",u),BigInt(u);case"string":try{if(u==="")throw new Error("empty string");return u[0]==="-"&&u[1]!=="-"?-BigInt(u.substring(1)):BigInt(u)}catch(t){e0(!1,`invalid BigNumberish string: ${t.message}`,e||"value",u)}}e0(!1,"invalid BigNumberish value",e||"value",u)}function Dp(u,e){const t=j0(u,e);return E0(t>=Fp,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:u}),t}const Jx="0123456789abcdef";function Oy(u){if(u instanceof Uint8Array){let e="0x0";for(const t of u)e+=Jx[t>>4],e+=Jx[t&15];return BigInt(e)}return j0(u)}function Z0(u,e){switch(typeof u){case"bigint":return e0(u>=-pf&&u<=pf,"overflow",e||"value",u),Number(u);case"number":return e0(Number.isInteger(u),"underflow",e||"value",u),e0(u>=-pf&&u<=pf,"overflow",e||"value",u),u;case"string":try{if(u==="")throw new Error("empty string");return Z0(BigInt(u),e)}catch(t){e0(!1,`invalid numeric string: ${t.message}`,e||"value",u)}}e0(!1,"invalid numeric value",e||"value",u)}function RP0(u){return Z0(Oy(u))}function Ba(u,e){let n=Dp(u,"value").toString(16);if(e==null)n.length%2&&(n="0"+n);else{const r=Z0(e,"width");for(E0(r*2>=n.length,`value exceeds width (${r} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:u});n.length>6===2;a++)i++;return i}return u==="OVERRUN"?t.length-e-1:0}function $P0(u,e,t,n,r){return u==="OVERLONG"?(e0(typeof r=="number","invalid bad code point for replacement","badCodepoint",r),n.push(r),0):(n.push(65533),Uz(u,e,t))}const UP0=Object.freeze({error:LP0,ignore:Uz,replace:$P0});function WP0(u,e){e==null&&(e=UP0.error);const t=cu(u,"bytes"),n=[];let r=0;for(;r>7)){n.push(i);continue}let a=null,o=null;if((i&224)===192)a=1,o=127;else if((i&240)===224)a=2,o=2047;else if((i&248)===240)a=3,o=65535;else{(i&192)===128?r+=e("UNEXPECTED_CONTINUE",r-1,t,n):r+=e("BAD_PREFIX",r-1,t,n);continue}if(r-1+a>=t.length){r+=e("OVERRUN",r-1,t,n);continue}let s=i&(1<<8-a-1)-1;for(let f=0;f1114111){r+=e("OUT_OF_RANGE",r-1-a,t,n,s);continue}if(s>=55296&&s<=57343){r+=e("UTF16_SURROGATE",r-1-a,t,n,s);continue}if(s<=o){r+=e("OVERLONG",r-1-a,t,n,s);continue}n.push(s)}}return n}function Jr(u,e){e!=null&&(TP0(e),u=u.normalize(e));let t=[];for(let n=0;n>6|192),t.push(r&63|128);else if((r&64512)==55296){n++;const i=u.charCodeAt(n);e0(n>18|240),t.push(a>>12&63|128),t.push(a>>6&63|128),t.push(a&63|128)}else t.push(r>>12|224),t.push(r>>6&63|128),t.push(r&63|128)}return new Uint8Array(t)}function qP0(u){return u.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function Ry(u,e){return qP0(WP0(u,e))}function Wz(u){async function e(t,n){const r=t.url.split(":")[0].toLowerCase();E0(r==="http"||r==="https",`unsupported protocol ${r}`,"UNSUPPORTED_OPERATION",{info:{protocol:r},operation:"request"}),E0(r==="https"||!t.credentials||t.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let i;if(n){const c=new AbortController;i=c.signal,n.addListener(()=>{c.abort()})}const a={method:t.method,headers:new Headers(Array.from(t)),body:t.body||void 0,signal:i},o=await fetch(t.url,a),s={};o.headers.forEach((c,d)=>{s[d.toLowerCase()]=c});const f=await o.arrayBuffer(),l=f==null?null:new Uint8Array(f);return{statusCode:o.status,statusMessage:o.statusText,headers:s,body:l}}return e}const HP0=12,GP0=250;let Yx=Wz();const VP0=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),KP0=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let Fh=!1;async function qz(u,e){try{const t=u.match(VP0);if(!t)throw new Error("invalid data");return new da(200,"OK",{"content-type":t[1]||"text/plain"},t[2]?jP0(t[3]):JP0(t[3]))}catch{return new da(599,"BAD REQUEST (invalid data: URI)",{},null,new ai(u))}}function Hz(u){async function e(t,n){try{const r=t.match(KP0);if(!r)throw new Error("invalid link");return new ai(`${u}${r[2]}`)}catch{return new da(599,"BAD REQUEST (invalid IPFS URI)",{},null,new ai(t))}}return e}const Y6={data:qz,ipfs:Hz("https://gateway.ipfs.io/ipfs/")},Gz=new WeakMap;var ao,Mi;class QP0{constructor(e){a0(this,ao,void 0);a0(this,Mi,void 0);M(this,ao,[]),M(this,Mi,!1),Gz.set(e,()=>{if(!k(this,Mi)){M(this,Mi,!0);for(const t of k(this,ao))setTimeout(()=>{t()},0);M(this,ao,[])}})}addListener(e){E0(!k(this,Mi),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),k(this,ao).push(e)}get cancelled(){return k(this,Mi)}checkSignal(){E0(!this.cancelled,"cancelled","CANCELLED",{})}}ao=new WeakMap,Mi=new WeakMap;function X6(u){if(u==null)throw new Error("missing signal; should not happen");return u.checkSignal(),u}var Rf,Nf,kn,Pr,Mf,jf,ce,kt,Ir,oo,so,fo,ur,Or,ji,lo,Sl;const F9=class F9{constructor(e){a0(this,lo);a0(this,Rf,void 0);a0(this,Nf,void 0);a0(this,kn,void 0);a0(this,Pr,void 0);a0(this,Mf,void 0);a0(this,jf,void 0);a0(this,ce,void 0);a0(this,kt,void 0);a0(this,Ir,void 0);a0(this,oo,void 0);a0(this,so,void 0);a0(this,fo,void 0);a0(this,ur,void 0);a0(this,Or,void 0);a0(this,ji,void 0);M(this,jf,String(e)),M(this,Rf,!1),M(this,Nf,!0),M(this,kn,{}),M(this,Pr,""),M(this,Mf,3e5),M(this,Or,{slotInterval:GP0,maxAttempts:HP0}),M(this,ji,null)}get url(){return k(this,jf)}set url(e){M(this,jf,String(e))}get body(){return k(this,ce)==null?null:new Uint8Array(k(this,ce))}set body(e){if(e==null)M(this,ce,void 0),M(this,kt,void 0);else if(typeof e=="string")M(this,ce,Jr(e)),M(this,kt,"text/plain");else if(e instanceof Uint8Array)M(this,ce,e),M(this,kt,"application/octet-stream");else if(typeof e=="object")M(this,ce,Jr(JSON.stringify(e))),M(this,kt,"application/json");else throw new Error("invalid body")}hasBody(){return k(this,ce)!=null}get method(){return k(this,Pr)?k(this,Pr):this.hasBody()?"POST":"GET"}set method(e){e==null&&(e=""),M(this,Pr,String(e).toUpperCase())}get headers(){const e=Object.assign({},k(this,kn));return k(this,Ir)&&(e.authorization=`Basic ${zP0(Jr(k(this,Ir)))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),e["content-type"]==null&&k(this,kt)&&(e["content-type"]=k(this,kt)),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,t){k(this,kn)[String(e).toLowerCase()]=String(t)}clearHeaders(){M(this,kn,{})}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let n=0;return{next:()=>{if(n=0,"timeout must be non-zero","timeout",e),M(this,Mf,e)}get preflightFunc(){return k(this,oo)||null}set preflightFunc(e){M(this,oo,e)}get processFunc(){return k(this,so)||null}set processFunc(e){M(this,so,e)}get retryFunc(){return k(this,fo)||null}set retryFunc(e){M(this,fo,e)}get getUrlFunc(){return k(this,ji)||Yx}set getUrlFunc(e){M(this,ji,e)}toString(){return``}setThrottleParams(e){e.slotInterval!=null&&(k(this,Or).slotInterval=e.slotInterval),e.maxAttempts!=null&&(k(this,Or).maxAttempts=e.maxAttempts)}send(){return E0(k(this,ur)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),M(this,ur,new QP0(this)),k0(this,lo,Sl).call(this,0,Xx()+this.timeout,0,this,new da(0,"",{},null,this))}cancel(){E0(k(this,ur)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=Gz.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const t=this.url.split(":")[0].toLowerCase(),n=e.split(":")[0].toLowerCase();E0(this.method==="GET"&&(t!=="https"||n!=="http")&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const r=new F9(e);return r.method="GET",r.allowGzip=this.allowGzip,r.timeout=this.timeout,M(r,kn,Object.assign({},k(this,kn))),k(this,ce)&&M(r,ce,new Uint8Array(k(this,ce))),M(r,kt,k(this,kt)),r}clone(){const e=new F9(this.url);return M(e,Pr,k(this,Pr)),k(this,ce)&&M(e,ce,k(this,ce)),M(e,kt,k(this,kt)),M(e,kn,Object.assign({},k(this,kn))),M(e,Ir,k(this,Ir)),this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),M(e,oo,k(this,oo)),M(e,so,k(this,so)),M(e,fo,k(this,fo)),M(e,ji,k(this,ji)),e}static lockConfig(){Fh=!0}static getGateway(e){return Y6[e.toLowerCase()]||null}static registerGateway(e,t){if(e=e.toLowerCase(),e==="http"||e==="https")throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(Fh)throw new Error("gateways locked");Y6[e]=t}static registerGetUrl(e){if(Fh)throw new Error("gateways locked");Yx=e}static createGetUrlFunc(e){return Wz()}static createDataGateway(){return qz}static createIpfsGatewayFunc(e){return Hz(e)}};Rf=new WeakMap,Nf=new WeakMap,kn=new WeakMap,Pr=new WeakMap,Mf=new WeakMap,jf=new WeakMap,ce=new WeakMap,kt=new WeakMap,Ir=new WeakMap,oo=new WeakMap,so=new WeakMap,fo=new WeakMap,ur=new WeakMap,Or=new WeakMap,ji=new WeakMap,lo=new WeakSet,Sl=async function(e,t,n,r,i){var l,c,d;if(e>=k(this,Or).maxAttempts)return i.makeServerError("exceeded maximum retry limit");E0(Xx()<=t,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:r}),n>0&&await ZP0(n);let a=this.clone();const o=(a.url.split(":")[0]||"").toLowerCase();if(o in Y6){const E=await Y6[o](a.url,X6(k(r,ur)));if(E instanceof da){let p=E;if(this.processFunc){X6(k(r,ur));try{p=await this.processFunc(a,p)}catch(h){(h.throttle==null||typeof h.stall!="number")&&p.makeServerError("error in post-processing function",h).assertOk()}}return p}a=E}this.preflightFunc&&(a=await this.preflightFunc(a));const s=await this.getUrlFunc(a,X6(k(r,ur)));let f=new da(s.statusCode,s.statusMessage,s.headers,s.body,r);if(f.statusCode===301||f.statusCode===302){try{const E=f.headers.location||"";return k0(l=a.redirect(E),lo,Sl).call(l,e+1,t,0,r,f)}catch{}return f}else if(f.statusCode===429&&(this.retryFunc==null||await this.retryFunc(a,f,e))){const E=f.headers["retry-after"];let p=k(this,Or).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return typeof E=="string"&&E.match(/^[1-9][0-9]*$/)&&(p=parseInt(E)),k0(c=a.clone(),lo,Sl).call(c,e+1,t,p,r,f)}if(this.processFunc){X6(k(r,ur));try{f=await this.processFunc(a,f)}catch(E){(E.throttle==null||typeof E.stall!="number")&&f.makeServerError("error in post-processing function",E).assertOk();let p=k(this,Or).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return E.stall>=0&&(p=E.stall),k0(d=a.clone(),lo,Sl).call(d,e+1,t,p,r,f)}}return f};let ai=F9;var V1,K1,Q1,_n,zf,co;const tv=class tv{constructor(e,t,n,r,i){a0(this,V1,void 0);a0(this,K1,void 0);a0(this,Q1,void 0);a0(this,_n,void 0);a0(this,zf,void 0);a0(this,co,void 0);M(this,V1,e),M(this,K1,t),M(this,Q1,Object.keys(n).reduce((a,o)=>(a[o.toLowerCase()]=String(n[o]),a),{})),M(this,_n,r==null?null:new Uint8Array(r)),M(this,zf,i||null),M(this,co,{message:""})}toString(){return``}get statusCode(){return k(this,V1)}get statusMessage(){return k(this,K1)}get headers(){return Object.assign({},k(this,Q1))}get body(){return k(this,_n)==null?null:new Uint8Array(k(this,_n))}get bodyText(){try{return k(this,_n)==null?"":Ry(k(this,_n))}catch{E0(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch{E0(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let n=0;return{next:()=>{if(n=0,"invalid stall timeout","stall",t);const n=new Error(e||"throttling requests");throw U0(n,{stall:t,throttle:!0}),n}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return k(this,_n)!=null}get request(){return k(this,zf)}ok(){return k(this,co).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:t}=k(this,co);e===""&&(e=`server response ${this.statusCode} ${this.statusMessage}`),E0(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:t})}};V1=new WeakMap,K1=new WeakMap,Q1=new WeakMap,_n=new WeakMap,zf=new WeakMap,co=new WeakMap;let da=tv;function Xx(){return new Date().getTime()}function JP0(u){return Jr(u.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))}function ZP0(u){return new Promise(e=>setTimeout(e,u))}function YP0(u){let e=u.toString(16);for(;e.length<2;)e="0"+e;return"0x"+e}function uk(u,e,t){let n=0;for(let r=0;r{E0(n<=u.length,"data short segment too short","BUFFER_OVERRUN",{buffer:u,length:u.length,offset:n})};if(u[e]>=248){const n=u[e]-247;t(e+1+n);const r=uk(u,e+1,n);return t(e+1+n+r),ek(u,e,e+1+n,n+r)}else if(u[e]>=192){const n=u[e]-192;return t(e+1+n),ek(u,e,e+1,n)}else if(u[e]>=184){const n=u[e]-183;t(e+1+n);const r=uk(u,e+1,n);t(e+1+n+r);const i=M0(u.slice(e+1+n,e+1+n+r));return{consumed:1+n+r,result:i}}else if(u[e]>=128){const n=u[e]-128;t(e+1+n);const r=M0(u.slice(e+1,e+1+n));return{consumed:1+n,result:r}}return{consumed:1,result:YP0(u[e])}}function Ny(u){const e=cu(u,"data"),t=Vz(e,0);return e0(t.consumed===e.length,"unexpected junk after rlp payload","data",u),t.result}function tk(u){const e=[];for(;u;)e.unshift(u&255),u>>=8;return e}function Kz(u){if(Array.isArray(u)){let n=[];if(u.forEach(function(i){n=n.concat(Kz(i))}),n.length<=55)return n.unshift(192+n.length),n;const r=tk(n.length);return r.unshift(247+r.length),r.concat(n)}const e=Array.prototype.slice.call(cu(u,"object"));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const t=tk(e.length);return t.unshift(183+t.length),t.concat(e)}const nk="0123456789abcdef";function M1(u){let e="0x";for(const t of Kz(u))e+=nk[t>>4],e+=nk[t&15];return e}const Ve=32,nm=new Uint8Array(Ve),XP0=["then"],u5={};function Cl(u,e){const t=new Error(`deferred error during ABI decoding triggered accessing ${u}`);throw t.error=e,t}var zi;const e1=class e1 extends Array{constructor(...t){const n=t[0];let r=t[1],i=(t[2]||[]).slice(),a=!0;n!==u5&&(r=t,i=[],a=!1);super(r.length);a0(this,zi,void 0);r.forEach((s,f)=>{this[f]=s});const o=i.reduce((s,f)=>(typeof f=="string"&&s.set(f,(s.get(f)||0)+1),s),new Map);if(M(this,zi,Object.freeze(r.map((s,f)=>{const l=i[f];return l!=null&&o.get(l)===1?l:null}))),!!a)return Object.freeze(this),new Proxy(this,{get:(s,f,l)=>{if(typeof f=="string"){if(f.match(/^[0-9]+$/)){const d=Z0(f,"%index");if(d<0||d>=this.length)throw new RangeError("out of result range");const E=s[d];return E instanceof Error&&Cl(`index ${d}`,E),E}if(XP0.indexOf(f)>=0)return Reflect.get(s,f,l);const c=s[f];if(c instanceof Function)return function(...d){return c.apply(this===l?s:this,d)};if(!(f in s))return s.getValue.apply(this===l?s:this,[f])}return Reflect.get(s,f,l)}})}toArray(){const t=[];return this.forEach((n,r)=>{n instanceof Error&&Cl(`index ${r}`,n),t.push(n)}),t}toObject(){return k(this,zi).reduce((t,n,r)=>(E0(n!=null,"value at index ${ index } unnamed","UNSUPPORTED_OPERATION",{operation:"toObject()"}),n in t||(t[n]=this.getValue(n)),t),{})}slice(t,n){t==null&&(t=0),t<0&&(t+=this.length,t<0&&(t=0)),n==null&&(n=this.length),n<0&&(n+=this.length,n<0&&(n=0)),n>this.length&&(n=this.length);const r=[],i=[];for(let a=t;a{k(this,Rr)[e]=rk(t)}}}Rr=new WeakMap,Eo=new WeakMap,Lf=new WeakSet,_5=function(e){return k(this,Rr).push(e),M(this,Eo,k(this,Eo)+e.length),e.length};var _t,Zt,D9,Qz;const nv=class nv{constructor(e,t){a0(this,D9);r0(this,"allowLoose");a0(this,_t,void 0);a0(this,Zt,void 0);U0(this,{allowLoose:!!t}),M(this,_t,dt(e)),M(this,Zt,0)}get data(){return M0(k(this,_t))}get dataLength(){return k(this,_t).length}get consumed(){return k(this,Zt)}get bytes(){return new Uint8Array(k(this,_t))}subReader(e){return new nv(k(this,_t).slice(k(this,Zt)+e),this.allowLoose)}readBytes(e,t){let n=k0(this,D9,Qz).call(this,0,e,!!t);return M(this,Zt,k(this,Zt)+n.length),n.slice(0,e)}readValue(){return Oy(this.readBytes(Ve))}readIndex(){return RP0(this.readBytes(Ve))}};_t=new WeakMap,Zt=new WeakMap,D9=new WeakSet,Qz=function(e,t,n){let r=Math.ceil(t/Ve)*Ve;return k(this,Zt)+r>k(this,_t).length&&(this.allowLoose&&n&&k(this,Zt)+t<=k(this,_t).length?r=t:E0(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:dt(k(this,_t)),length:k(this,_t).length,offset:k(this,Zt)+r})),k(this,_t).slice(k(this,Zt),k(this,Zt)+r)};let im=nv,Jz=!1;const Zz=function(u){return ZI(u)};let Yz=Zz;function Ou(u){const e=cu(u,"data");return M0(Yz(e))}Ou._=Zz;Ou.lock=function(){Jz=!0};Ou.register=function(u){if(Jz)throw new TypeError("keccak256 is locked");Yz=u};Object.freeze(Ou);const am="0x0000000000000000000000000000000000000000",ik="0x0000000000000000000000000000000000000000000000000000000000000000",ak=BigInt(0),ok=BigInt(1),sk=BigInt(2),fk=BigInt(27),lk=BigInt(28),e5=BigInt(35),Os={};function ck(u){return Yo(jt(u),32)}var $f,Uf,Wf,po;const wn=class wn{constructor(e,t,n,r){a0(this,$f,void 0);a0(this,Uf,void 0);a0(this,Wf,void 0);a0(this,po,void 0);Bp(e,Os,"Signature"),M(this,$f,t),M(this,Uf,n),M(this,Wf,r),M(this,po,null)}get r(){return k(this,$f)}set r(e){e0(Pf(e)===32,"invalid r","value",e),M(this,$f,M0(e))}get s(){return k(this,Uf)}set s(e){e0(Pf(e)===32,"invalid s","value",e);const t=M0(e);e0(parseInt(t.substring(0,3))<8,"non-canonical s","value",t),M(this,Uf,t)}get v(){return k(this,Wf)}set v(e){const t=Z0(e,"value");e0(t===27||t===28,"invalid v","v",e),M(this,Wf,t)}get networkV(){return k(this,po)}get legacyChainId(){const e=this.networkV;return e==null?null:wn.getChainId(e)}get yParity(){return this.v===27?0:1}get yParityAndS(){const e=cu(this.s);return this.yParity&&(e[0]|=128),M0(e)}get compactSerialized(){return fe([this.r,this.yParityAndS])}get serialized(){return fe([this.r,this.s,this.yParity?"0x1c":"0x1b"])}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const e=new wn(Os,this.r,this.s,this.v);return this.networkV&&M(e,po,this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:e!=null?e.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(e){const t=j0(e,"v");return t==fk||t==lk?ak:(e0(t>=e5,"invalid EIP-155 v","v",e),(t-e5)/sk)}static getChainIdV(e,t){return j0(e)*sk+BigInt(35+t-27)}static getNormalizedV(e){const t=j0(e);return t===ak||t===fk?27:t===ok||t===lk?28:(e0(t>=e5,"invalid v","v",e),t&ok?27:28)}static from(e){function t(f,l){e0(f,l,"signature",e)}if(e==null)return new wn(Os,ik,ik,27);if(typeof e=="string"){const f=cu(e,"signature");if(f.length===64){const l=M0(f.slice(0,32)),c=f.slice(32,64),d=c[0]&128?28:27;return c[0]&=127,new wn(Os,l,M0(c),d)}if(f.length===65){const l=M0(f.slice(0,32)),c=f.slice(32,64);t((c[0]&128)===0,"non-canonical s");const d=wn.getNormalizedV(f[64]);return new wn(Os,l,M0(c),d)}t(!1,"invalid raw signature length")}if(e instanceof wn)return e.clone();const n=e.r;t(n!=null,"missing r");const r=ck(n),i=function(f,l){if(f!=null)return ck(f);if(l!=null){t(Nu(l,32),"invalid yParityAndS");const c=cu(l);return c[0]&=127,M0(c)}t(!1,"missing s")}(e.s,e.yParityAndS);t((cu(i)[0]&128)==0,"non-canonical s");const{networkV:a,v:o}=function(f,l,c){if(f!=null){const d=j0(f);return{networkV:d>=e5?d:void 0,v:wn.getNormalizedV(d)}}if(l!=null)return t(Nu(l,32),"invalid yParityAndS"),{v:cu(l)[0]&128?28:27};if(c!=null){switch(Z0(c,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}t(!1,"invalid yParity")}t(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),s=new wn(Os,r,i,o);return a&&M(s,po,a),t(e.yParity==null||Z0(e.yParity,"sig.yParity")===s.yParity,"yParity mismatch"),t(e.yParityAndS==null||e.yParityAndS===s.yParityAndS,"yParityAndS mismatch"),s}};$f=new WeakMap,Uf=new WeakMap,Wf=new WeakMap,po=new WeakMap;let Hn=wn;var Nr;const Qa=class Qa{constructor(e){a0(this,Nr,void 0);e0(Pf(e)===32,"invalid private key","privateKey","[REDACTED]"),M(this,Nr,M0(e))}get privateKey(){return k(this,Nr)}get publicKey(){return Qa.computePublicKey(k(this,Nr))}get compressedPublicKey(){return Qa.computePublicKey(k(this,Nr),!0)}sign(e){e0(Pf(e)===32,"invalid digest length","digest",e);const t=Ne.sign(dt(e),dt(k(this,Nr)),{lowS:!0});return Hn.from({r:Ba(t.r,32),s:Ba(t.s,32),v:t.recovery?28:27})}computeSharedSecret(e){const t=Qa.computePublicKey(e);return M0(Ne.getSharedSecret(dt(k(this,Nr)),cu(t),!1))}static computePublicKey(e,t){let n=cu(e,"key");if(n.length===32){const i=Ne.getPublicKey(n,!!t);return M0(i)}if(n.length===64){const i=new Uint8Array(65);i[0]=4,i.set(n,1),n=i}const r=Ne.ProjectivePoint.fromHex(n);return M0(r.toRawBytes(t))}static recoverPublicKey(e,t){e0(Pf(e)===32,"invalid digest length","digest",e);const n=Hn.from(t);let r=Ne.Signature.fromCompact(dt(fe([n.r,n.s])));r=r.addRecoveryBit(n.yParity);const i=r.recoverPublicKey(dt(e));return e0(i!=null,"invalid signautre for digest","signature",t),"0x"+i.toHex(!1)}static addPoints(e,t,n){const r=Ne.ProjectivePoint.fromHex(Qa.computePublicKey(e).substring(2)),i=Ne.ProjectivePoint.fromHex(Qa.computePublicKey(t).substring(2));return"0x"+r.add(i).toHex(!!n)}};Nr=new WeakMap;let j1=Qa;const uI0=BigInt(0),eI0=BigInt(36);function dk(u){u=u.toLowerCase();const e=u.substring(2).split(""),t=new Uint8Array(40);for(let r=0;r<40;r++)t[r]=e[r].charCodeAt(0);const n=cu(Ou(t));for(let r=0;r<40;r+=2)n[r>>1]>>4>=8&&(e[r]=e[r].toUpperCase()),(n[r>>1]&15)>=8&&(e[r+1]=e[r+1].toUpperCase());return"0x"+e.join("")}const My={};for(let u=0;u<10;u++)My[String(u)]=String(u);for(let u=0;u<26;u++)My[String.fromCharCode(65+u)]=String(10+u);const Ek=15;function tI0(u){u=u.toUpperCase(),u=u.substring(4)+u.substring(0,2)+"00";let e=u.split("").map(n=>My[n]).join("");for(;e.length>=Ek;){let n=e.substring(0,Ek);e=parseInt(n,10)%97+e.substring(n.length)}let t=String(98-parseInt(e,10)%97);for(;t.length<2;)t="0"+t;return t}const nI0=function(){const u={};for(let e=0;e<36;e++){const t="0123456789abcdefghijklmnopqrstuvwxyz"[e];u[t]=BigInt(e)}return u}();function rI0(u){u=u.toLowerCase();let e=uI0;for(let t=0;te.format()).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return k(this,ho)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return k(this,ho)===!0?-1:k(this,ho)===!1?this.value.length:null}static from(e,t){return new _r(kr,e,t)}static uint8(e){return S0(e,8)}static uint16(e){return S0(e,16)}static uint24(e){return S0(e,24)}static uint32(e){return S0(e,32)}static uint40(e){return S0(e,40)}static uint48(e){return S0(e,48)}static uint56(e){return S0(e,56)}static uint64(e){return S0(e,64)}static uint72(e){return S0(e,72)}static uint80(e){return S0(e,80)}static uint88(e){return S0(e,88)}static uint96(e){return S0(e,96)}static uint104(e){return S0(e,104)}static uint112(e){return S0(e,112)}static uint120(e){return S0(e,120)}static uint128(e){return S0(e,128)}static uint136(e){return S0(e,136)}static uint144(e){return S0(e,144)}static uint152(e){return S0(e,152)}static uint160(e){return S0(e,160)}static uint168(e){return S0(e,168)}static uint176(e){return S0(e,176)}static uint184(e){return S0(e,184)}static uint192(e){return S0(e,192)}static uint200(e){return S0(e,200)}static uint208(e){return S0(e,208)}static uint216(e){return S0(e,216)}static uint224(e){return S0(e,224)}static uint232(e){return S0(e,232)}static uint240(e){return S0(e,240)}static uint248(e){return S0(e,248)}static uint256(e){return S0(e,256)}static uint(e){return S0(e,256)}static int8(e){return S0(e,-8)}static int16(e){return S0(e,-16)}static int24(e){return S0(e,-24)}static int32(e){return S0(e,-32)}static int40(e){return S0(e,-40)}static int48(e){return S0(e,-48)}static int56(e){return S0(e,-56)}static int64(e){return S0(e,-64)}static int72(e){return S0(e,-72)}static int80(e){return S0(e,-80)}static int88(e){return S0(e,-88)}static int96(e){return S0(e,-96)}static int104(e){return S0(e,-104)}static int112(e){return S0(e,-112)}static int120(e){return S0(e,-120)}static int128(e){return S0(e,-128)}static int136(e){return S0(e,-136)}static int144(e){return S0(e,-144)}static int152(e){return S0(e,-152)}static int160(e){return S0(e,-160)}static int168(e){return S0(e,-168)}static int176(e){return S0(e,-176)}static int184(e){return S0(e,-184)}static int192(e){return S0(e,-192)}static int200(e){return S0(e,-200)}static int208(e){return S0(e,-208)}static int216(e){return S0(e,-216)}static int224(e){return S0(e,-224)}static int232(e){return S0(e,-232)}static int240(e){return S0(e,-240)}static int248(e){return S0(e,-248)}static int256(e){return S0(e,-256)}static int(e){return S0(e,-256)}static bytes1(e){return iu(e,1)}static bytes2(e){return iu(e,2)}static bytes3(e){return iu(e,3)}static bytes4(e){return iu(e,4)}static bytes5(e){return iu(e,5)}static bytes6(e){return iu(e,6)}static bytes7(e){return iu(e,7)}static bytes8(e){return iu(e,8)}static bytes9(e){return iu(e,9)}static bytes10(e){return iu(e,10)}static bytes11(e){return iu(e,11)}static bytes12(e){return iu(e,12)}static bytes13(e){return iu(e,13)}static bytes14(e){return iu(e,14)}static bytes15(e){return iu(e,15)}static bytes16(e){return iu(e,16)}static bytes17(e){return iu(e,17)}static bytes18(e){return iu(e,18)}static bytes19(e){return iu(e,19)}static bytes20(e){return iu(e,20)}static bytes21(e){return iu(e,21)}static bytes22(e){return iu(e,22)}static bytes23(e){return iu(e,23)}static bytes24(e){return iu(e,24)}static bytes25(e){return iu(e,25)}static bytes26(e){return iu(e,26)}static bytes27(e){return iu(e,27)}static bytes28(e){return iu(e,28)}static bytes29(e){return iu(e,29)}static bytes30(e){return iu(e,30)}static bytes31(e){return iu(e,31)}static bytes32(e){return iu(e,32)}static address(e){return new _r(kr,"address",e)}static bool(e){return new _r(kr,"bool",!!e)}static bytes(e){return new _r(kr,"bytes",e)}static string(e){return new _r(kr,"string",e)}static array(e,t){throw new Error("not implemented yet")}static tuple(e,t){throw new Error("not implemented yet")}static overrides(e){return new _r(kr,"overrides",Object.assign({},e))}static isTyped(e){return e&&typeof e=="object"&&"_typedSymbol"in e&&e._typedSymbol===pk}static dereference(e,t){if(_r.isTyped(e)){if(e.type!==t)throw new Error(`invalid type: expecetd ${t}, got ${e.type}`);return e.value}return e}};ho=new WeakMap;let Le=_r;class aI0 extends bi{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){let n=Le.dereference(t,"string");try{n=su(n)}catch(r){return this._throwError(r.message,t)}return e.writeValue(n)}decode(e){return su(Ba(e.readValue(),20))}}class oI0 extends bi{constructor(t){super(t.name,t.type,"_",t.dynamic);r0(this,"coder");this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,n){return this.coder.encode(t,n)}decode(t){return this.coder.decode(t)}}function uL(u,e,t){let n=[];if(Array.isArray(t))n=t;else if(t&&typeof t=="object"){let s={};n=e.map(f=>{const l=f.localName;return E0(l,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:f},value:t}),E0(!s[l],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:f},value:t}),s[l]=!0,t[l]})}else e0(!1,"invalid tuple value","tuple",t);e0(e.length===n.length,"types/value length mismatch","tuple",t);let r=new rm,i=new rm,a=[];e.forEach((s,f)=>{let l=n[f];if(s.dynamic){let c=i.length;s.encode(i,l);let d=r.writeUpdatableValue();a.push(E=>{d(E+c)})}else s.encode(r,l)}),a.forEach(s=>{s(r.length)});let o=u.appendWriter(r);return o+=u.appendWriter(i),o}function eL(u,e){let t=[],n=[],r=u.subReader(0);return e.forEach(i=>{let a=null;if(i.dynamic){let o=u.readIndex(),s=r.subReader(o);try{a=i.decode(s)}catch(f){if(ln(f,"BUFFER_OVERRUN"))throw f;a=f,a.baseType=i.name,a.name=i.localName,a.type=i.type}}else try{a=i.decode(u)}catch(o){if(ln(o,"BUFFER_OVERRUN"))throw o;a=o,a.baseType=i.name,a.name=i.localName,a.type=i.type}if(a==null)throw new Error("investigate");t.push(a),n.push(i.localName||null)}),E9.fromItems(t,n)}class sI0 extends bi{constructor(t,n,r){const i=t.type+"["+(n>=0?n:"")+"]",a=n===-1||t.dynamic;super("array",i,r,a);r0(this,"coder");r0(this,"length");U0(this,{coder:t,length:n})}defaultValue(){const t=this.coder.defaultValue(),n=[];for(let r=0;ra||r<-(a+hI0))&&this._throwError("value out-of-bounds",n),r=Lz(r,8*Ve)}else(r_l(i,this.size*8))&&this._throwError("value out-of-bounds",n);return t.writeValue(r)}decode(t){let n=_l(t.readValue(),this.size*8);return this.signed&&(n=OP0(n,this.size*8)),n}}class bI0 extends tL{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,Jr(Le.dereference(t,"string")))}decode(e){return Ry(super.decode(e))}}class t5 extends bi{constructor(t,n){let r=!1;const i=[];t.forEach(o=>{o.dynamic&&(r=!0),i.push(o.type)});const a="tuple("+i.join(",")+")";super("tuple",a,n,r);r0(this,"coders");U0(this,{coders:Object.freeze(t.slice())})}defaultValue(){const t=[];this.coders.forEach(r=>{t.push(r.defaultValue())});const n=this.coders.reduce((r,i)=>{const a=i.localName;return a&&(r[a]||(r[a]=0),r[a]++),r},{});return this.coders.forEach((r,i)=>{let a=r.localName;!a||n[a]!==1||(a==="length"&&(a="_length"),t[a]==null&&(t[a]=t[i]))}),Object.freeze(t)}encode(t,n){const r=Le.dereference(n,"tuple");return uL(t,this.coders,r)}decode(t){return eL(t,this.coders)}}function Fa(u){return Ou(Jr(u))}var gI0="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const hk=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),Ck=4;function AI0(u){let e=0;function t(){return u[e++]<<8|u[e++]}let n=t(),r=1,i=[0,1];for(let B=1;B>--s&1}const c=31,d=2**c,E=d>>>1,p=E>>1,h=d-1;let g=0;for(let B=0;B1;){let x=v+C>>>1;B>>1|l(),F=F<<1^E,S=(S^E)<<1|E|1;m=F,A=1+S-F}let y=n-4;return b.map(B=>{switch(B-y){case 3:return y+65792+(u[o++]<<16|u[o++]<<8|u[o++]);case 2:return y+256+(u[o++]<<8|u[o++]);case 1:return y+u[o++];default:return B-1}})}function yI0(u){let e=0;return()=>u[e++]}function nL(u){return yI0(AI0(vI0(u)))}function vI0(u){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((r,i)=>e[r.charCodeAt(0)]=i);let t=u.length,n=new Uint8Array(6*t>>3);for(let r=0,i=0,a=0,o=0;r=8&&(n[i++]=o>>(a-=8));return n}function BI0(u){return u&1?~u>>1:u>>1}function FI0(u,e){let t=Array(u);for(let n=0,r=0;n{let e=z1(u);if(e.length)return e})}function iL(u){let e=[];for(;;){let t=u();if(t==0)break;e.push(DI0(t,u))}for(;;){let t=u()-1;if(t<0)break;e.push(wI0(t,u))}return e.flat()}function L1(u){let e=[];for(;;){let t=u(e.length);if(!t)break;e.push(t)}return e}function aL(u,e,t){let n=Array(u).fill().map(()=>[]);for(let r=0;rn[a].push(i));return n}function DI0(u,e){let t=1+e(),n=e(),r=L1(e);return aL(r.length,1+u,e).flatMap((a,o)=>{let[s,...f]=a;return Array(r[o]).fill().map((l,c)=>{let d=c*n;return[s+c*t,f.map(E=>E+d)]})})}function wI0(u,e){let t=1+e();return aL(t,1+u,e).map(r=>[r[0],r.slice(1)])}function xI0(u){let e=[],t=z1(u);return r(n([]),[]),e;function n(i){let a=u(),o=L1(()=>{let s=z1(u).map(f=>t[f]);if(s.length)return n(s)});return{S:a,B:o,Q:i}}function r({S:i,B:a},o,s){if(!(i&4&&s===o[o.length-1])){i&2&&(s=o[o.length-1]),i&1&&e.push(o);for(let f of a)for(let l of f.Q)r(f,[...o,l],s)}}}function kI0(u){return u.toString(16).toUpperCase().padStart(2,"0")}function oL(u){return`{${kI0(u)}}`}function _I0(u){let e=[];for(let t=0,n=u.length;t>24&255}function lL(u){return u&16777215}let om,mk,sm,S5;function MI0(){let u=nL(TI0);om=new Map(rL(u).flatMap((e,t)=>e.map(n=>[n,t+1<<24]))),mk=new Set(z1(u)),sm=new Map,S5=new Map;for(let[e,t]of iL(u)){if(!mk.has(e)&&t.length==2){let[n,r]=t,i=S5.get(n);i||(i=new Map,S5.set(n,i)),i.set(r,e)}sm.set(e,t.reverse())}}function cL(u){return u>=$1&&u=p9&&u=h9&&eC9&&e0&&r(C9+f)}else{let a=sm.get(i);a?t.push(...a):r(i)}if(!t.length)break;i=t.pop()}if(n&&e.length>1){let i=Tl(e[0]);for(let a=1;a0&&r>=a)a==0?(e.push(n,...t),t.length=0,n=o):t.push(o),r=a;else{let s=jI0(n,o);s>=0?n=s:r==0&&a==0?(e.push(n),n=o):(t.push(o),r=a)}}return n>=0&&e.push(n,...t),e}function EL(u){return dL(u).map(lL)}function LI0(u){return zI0(dL(u))}const bk=45,pL=".",hL=65039,CL=1,Cf=u=>Array.from(u);function U1(u,e){return u.P.has(e)||u.Q.has(e)}class $I0 extends Array{get is_emoji(){return!0}}let fm,mL,ro,lm,bL,If,wh,qs,gL,gk,cm;function jy(){if(fm)return;let u=nL(gI0);const e=()=>z1(u),t=()=>new Set(e());fm=new Map(iL(u)),mL=t(),ro=e(),lm=new Set(e().map(l=>ro[l])),ro=new Set(ro),bL=t(),t();let n=rL(u),r=u();const i=()=>new Set(e().flatMap(l=>n[l]).concat(e()));If=L1(l=>{let c=L1(u).map(d=>d+96);if(c.length){let d=l>=r;c[0]-=32,c=i3(c),d&&(c=`Restricted[${c}]`);let E=i(),p=i(),h=!u();return{N:c,P:E,Q:p,M:h,R:d}}}),wh=t(),qs=new Map;let a=e().concat(Cf(wh)).sort((l,c)=>l-c);a.forEach((l,c)=>{let d=u(),E=a[c]=d?a[c-d]:{V:[],M:new Map};E.V.push(l),wh.has(l)||qs.set(l,E)});for(let{V:l,M:c}of new Set(qs.values())){let d=[];for(let p of l){let h=If.filter(b=>U1(b,p)),g=d.find(({G:b})=>h.some(m=>b.has(m)));g||(g={G:new Set,V:[]},d.push(g)),g.V.push(p),h.forEach(b=>g.G.add(b))}let E=d.flatMap(p=>Cf(p.G));for(let{G:p,V:h}of d){let g=new Set(E.filter(b=>!p.has(b)));for(let b of h)c.set(b,g)}}let o=new Set,s=new Set;const f=l=>o.has(l)?s.add(l):o.add(l);for(let l of If){for(let c of l.P)f(c);for(let c of l.Q)f(c)}for(let l of o)!qs.has(l)&&!s.has(l)&&qs.set(l,CL);gL=new Set(Cf(o).concat(Cf(EL(o)))),gk=xI0(u).map(l=>$I0.from(l)).sort(SI0),cm=new Map;for(let l of gk){let c=[cm];for(let d of l){let E=c.map(p=>{let h=p.get(d);return h||(h=new Map,p.set(d,h)),h});d===hL?c.push(...E):c=E}for(let d of c)d.V=l}}function zy(u){return(AL(u)?"":`${Ly(wp([u]))} `)+oL(u)}function Ly(u){return`"${u}"‎`}function UI0(u){if(u.length>=4&&u[2]==bk&&u[3]==bk)throw new Error(`invalid label extension: "${i3(u.slice(0,4))}"`)}function WI0(u){for(let t=u.lastIndexOf(95);t>0;)if(u[--t]!==95)throw new Error("underscore allowed only at start")}function qI0(u){let e=u[0],t=hk.get(e);if(t)throw Xl(`leading ${t}`);let n=u.length,r=-1;for(let i=1;i{let i=_I0(r),a={input:i,offset:n};n+=i.length+1;try{let o=a.tokens=YI0(i,e,t),s=o.length,f;if(!s)throw new Error("empty label");let l=a.output=o.flat();if(WI0(l),!(a.emoji=s>1||o[0].is_emoji)&&l.every(d=>d<128))UI0(l),f="ASCII";else{let d=o.flatMap(E=>E.is_emoji?[]:E);if(!d.length)f="Emoji";else{if(ro.has(l[0]))throw Xl("leading combining mark");for(let h=1;ha.has(o)):Cf(a),!t.length)return}else n.push(r)}if(t){for(let r of t)if(n.every(i=>U1(r,i)))throw new Error(`whole-script confusable: ${u.N}/${r.N}`)}}function QI0(u){let e=If;for(let t of u){let n=e.filter(r=>U1(r,t));if(!n.length)throw If.some(r=>U1(r,t))?vL(e[0],t):yL(t);if(e=n,n.length==1)break}return e}function JI0(u){return u.map(({input:e,error:t,output:n})=>{if(t){let r=t.message;throw new Error(u.length==1?r:`Invalid label ${Ly(wp(e))}: ${r}`)}return i3(n)}).join(pL)}function yL(u){return new Error(`disallowed character: ${zy(u)}`)}function vL(u,e){let t=zy(e),n=If.find(r=>r.P.has(e));return n&&(t=`${n.N} ${t}`),new Error(`illegal mixture: ${u.N} + ${t}`)}function Xl(u){return new Error(`illegal placement: ${u}`)}function ZI0(u,e){for(let t of e)if(!U1(u,t))throw vL(u,t);if(u.M){let t=EL(e);for(let n=1,r=t.length;nCk)throw new Error(`excessive non-spacing marks: ${Ly(wp(t.slice(n-1,i)))} (${i-n}/${Ck})`);n=i}}}function YI0(u,e,t){let n=[],r=[];for(u=u.slice().reverse();u.length;){let i=uO0(u);if(i)r.length&&(n.push(e(r)),r=[]),n.push(t(i));else{let a=u.pop();if(gL.has(a))r.push(a);else{let o=fm.get(a);if(o)r.push(...o);else if(!mL.has(a))throw yL(a)}}}return r.length&&n.push(e(r)),n}function XI0(u){return u.filter(e=>e!=hL)}function uO0(u,e){let t=cm,n,r=u.length;for(;r&&(t=t.get(u[--r]),!!t);){let{V:i}=t;i&&(n=i,e&&e.push(...u.slice(r).reverse()),u.length=r)}return n}const BL=new Uint8Array(32);BL.fill(0);function Ak(u){return e0(u.length!==0,"invalid ENS name; empty component","comp",u),u}function FL(u){const e=Jr(eO0(u)),t=[];if(u.length===0)return t;let n=0;for(let r=0;r{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+"00"}function xh(u,e){return{address:su(u),storageKeys:e.map((t,n)=>(e0(Nu(t,32),"invalid slot",`storageKeys[${n}]`,t),t.toLowerCase()))}}function As(u){if(Array.isArray(u))return u.map((t,n)=>Array.isArray(t)?(e0(t.length===2,"invalid slot set",`value[${n}]`,t),xh(t[0],t[1])):(e0(t!=null&&typeof t=="object","invalid address-slot set","value",u),xh(t.address,t.storageKeys)));e0(u!=null&&typeof u=="object","invalid access list","value",u);const e=Object.keys(u).map(t=>{const n=u[t].reduce((r,i)=>(r[i]=!0,r),{});return xh(t,Object.keys(n).sort())});return e.sort((t,n)=>t.address.localeCompare(n.address)),e}function nO0(u){let e;return typeof u=="string"?e=j1.computePublicKey(u,!1):e=u.publicKey,su(Ou("0x"+e.substring(4)).substring(26))}function rO0(u,e){return nO0(j1.recoverPublicKey(u,e))}const lt=BigInt(0),iO0=BigInt(2),aO0=BigInt(27),oO0=BigInt(28),sO0=BigInt(35),fO0=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function $y(u){return u==="0x"?null:su(u)}function DL(u,e){try{return As(u)}catch(t){e0(!1,t.message,e,u)}}function xp(u,e){return u==="0x"?0:Z0(u,e)}function He(u,e){if(u==="0x")return lt;const t=j0(u,e);return e0(t<=fO0,"value exceeds uint size",e,t),t}function ve(u,e){const t=j0(u,"value"),n=jt(t);return e0(n.length<=32,"value too large",`tx.${e}`,t),n}function wL(u){return As(u).map(e=>[e.address,e.storageKeys])}function lO0(u){const e=Ny(u);e0(Array.isArray(e)&&(e.length===9||e.length===6),"invalid field count for legacy transaction","data",u);const t={type:0,nonce:xp(e[0],"nonce"),gasPrice:He(e[1],"gasPrice"),gasLimit:He(e[2],"gasLimit"),to:$y(e[3]),value:He(e[4],"value"),data:M0(e[5]),chainId:lt};if(e.length===6)return t;const n=He(e[6],"v"),r=He(e[7],"r"),i=He(e[8],"s");if(r===lt&&i===lt)t.chainId=n;else{let a=(n-sO0)/iO0;a=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),E0(!t||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),E0(this.type!==0||!n,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const r=[];return this.type!=null?r.push(this.type):t?r.push(2):e?(r.push(1),n||r.push(0)):n?(r.push(1),r.push(2)):(r.push(0),r.push(1),r.push(2)),r.sort(),r}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}clone(){return Pi.from(this)}toJSON(){const e=t=>t==null?null:t.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(e==null)return new Pi;if(typeof e=="string"){const n=cu(e);if(n[0]>=127)return Pi.from(lO0(n));switch(n[0]){case 1:return Pi.from(dO0(n));case 2:return Pi.from(cO0(n))}E0(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const t=new Pi;return e.type!=null&&(t.type=e.type),e.to!=null&&(t.to=e.to),e.nonce!=null&&(t.nonce=e.nonce),e.gasLimit!=null&&(t.gasLimit=e.gasLimit),e.gasPrice!=null&&(t.gasPrice=e.gasPrice),e.maxPriorityFeePerGas!=null&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas),e.maxFeePerGas!=null&&(t.maxFeePerGas=e.maxFeePerGas),e.data!=null&&(t.data=e.data),e.value!=null&&(t.value=e.value),e.chainId!=null&&(t.chainId=e.chainId),e.signature!=null&&(t.signature=Hn.from(e.signature)),e.accessList!=null&&(t.accessList=e.accessList),e.hash!=null&&(e0(t.isSigned(),"unsigned transaction cannot define hash","tx",e),e0(t.hash===e.hash,"hash mismatch","tx",e)),e.from!=null&&(e0(t.isSigned(),"unsigned transaction cannot define from","tx",e),e0(t.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),t}};Mr=new WeakMap,qf=new WeakMap,Hf=new WeakMap,Gf=new WeakMap,Vf=new WeakMap,Kf=new WeakMap,Qf=new WeakMap,Jf=new WeakMap,Zf=new WeakMap,Yf=new WeakMap,Xf=new WeakMap,u4=new WeakMap;let b9=Pi;const kL=new Uint8Array(32);kL.fill(0);const EO0=BigInt(-1),_L=BigInt(0),SL=BigInt(1),pO0=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function hO0(u){const e=cu(u),t=e.length%32;return t?fe([e,kL.slice(t)]):M0(e)}const CO0=Ba(SL,32),mO0=Ba(_L,32),Fk={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},kh=["name","version","chainId","verifyingContract","salt"];function Dk(u){return function(e){return e0(typeof e=="string",`invalid domain value for ${JSON.stringify(u)}`,`domain.${u}`,e),e}}const bO0={name:Dk("name"),version:Dk("version"),chainId:function(u){const e=j0(u,"domain.chainId");return e0(e>=0,"invalid chain ID","domain.chainId",u),Number.isSafeInteger(e)?Number(e):hf(e)},verifyingContract:function(u){try{return su(u).toLowerCase()}catch{}e0(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",u)},salt:function(u){const e=cu(u,"domain.salt");return e0(e.length===32,'invalid domain value "salt"',"domain.salt",u),M0(e)}};function _h(u){{const e=u.match(/^(u?)int(\d*)$/);if(e){const t=e[1]==="",n=parseInt(e[2]||"256");e0(n%8===0&&n!==0&&n<=256&&(e[2]==null||e[2]===String(n)),"invalid numeric width","type",u);const r=_l(pO0,t?n-1:n),i=t?(r+SL)*EO0:_L;return function(a){const o=j0(a,"value");return e0(o>=i&&o<=r,`value out-of-bounds for ${u}`,"value",o),Ba(t?Lz(o,256):o,32)}}}{const e=u.match(/^bytes(\d+)$/);if(e){const t=parseInt(e[1]);return e0(t!==0&&t<=32&&e[1]===String(t),"invalid bytes width","type",u),function(n){const r=cu(n);return e0(r.length===t,`invalid length for ${u}`,"value",n),hO0(n)}}}switch(u){case"address":return function(e){return Yo(su(e),32)};case"bool":return function(e){return e?CO0:mO0};case"bytes":return function(e){return Ou(e)};case"string":return function(e){return Fa(e)}}return null}function wk(u,e){return`${u}(${e.map(({name:t,type:n})=>n+" "+t).join(",")})`}var J1,jr,e4,w9,TL;const Kt=class Kt{constructor(e){a0(this,w9);r0(this,"primaryType");a0(this,J1,void 0);a0(this,jr,void 0);a0(this,e4,void 0);M(this,J1,JSON.stringify(e)),M(this,jr,new Map),M(this,e4,new Map);const t=new Map,n=new Map,r=new Map;Object.keys(e).forEach(o=>{t.set(o,new Set),n.set(o,[]),r.set(o,new Set)});for(const o in e){const s=new Set;for(const f of e[o]){e0(!s.has(f.name),`duplicate variable name ${JSON.stringify(f.name)} in ${JSON.stringify(o)}`,"types",e),s.add(f.name);const l=f.type.match(/^([^\x5b]*)(\x5b|$)/)[1]||null;e0(l!==o,`circular type reference to ${JSON.stringify(l)}`,"types",e),!_h(l)&&(e0(n.has(l),`unknown type ${JSON.stringify(l)}`,"types",e),n.get(l).push(o),t.get(o).add(l))}}const i=Array.from(n.keys()).filter(o=>n.get(o).length===0);e0(i.length!==0,"missing primary type","types",e),e0(i.length===1,`ambiguous primary types or unused types: ${i.map(o=>JSON.stringify(o)).join(", ")}`,"types",e),U0(this,{primaryType:i[0]});function a(o,s){e0(!s.has(o),`circular type reference to ${JSON.stringify(o)}`,"types",e),s.add(o);for(const f of t.get(o))if(n.has(f)){a(f,s);for(const l of s)r.get(l).add(f)}s.delete(o)}a(this.primaryType,new Set);for(const[o,s]of r){const f=Array.from(s);f.sort(),k(this,jr).set(o,wk(o,e[o])+f.map(l=>wk(l,e[l])).join(""))}}get types(){return JSON.parse(k(this,J1))}getEncoder(e){let t=k(this,e4).get(e);return t||(t=k0(this,w9,TL).call(this,e),k(this,e4).set(e,t)),t}encodeType(e){const t=k(this,jr).get(e);return e0(t,`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return Ou(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,n){if(_h(e))return n(e,t);const r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r)return e0(!r[3]||parseInt(r[3])===t.length,`array length mismatch; expected length ${parseInt(r[3])}`,"value",t),t.map(a=>this._visit(r[1],a,n));const i=this.types[e];if(i)return i.reduce((a,{name:o,type:s})=>(a[o]=this._visit(s,t[o],n),a),{});e0(!1,`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new Kt(e)}static getPrimaryType(e){return Kt.from(e).primaryType}static hashStruct(e,t,n){return Kt.from(t).hashStruct(e,n)}static hashDomain(e){const t=[];for(const n in e){if(e[n]==null)continue;const r=Fk[n];e0(r,`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),t.push({name:n,type:r})}return t.sort((n,r)=>kh.indexOf(n.name)-kh.indexOf(r.name)),Kt.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,n){return fe(["0x1901",Kt.hashDomain(e),Kt.from(t).hash(n)])}static hash(e,t,n){return Ou(Kt.encode(e,t,n))}static async resolveNames(e,t,n,r){e=Object.assign({},e);for(const o in e)e[o]==null&&delete e[o];const i={};e.verifyingContract&&!Nu(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const a=Kt.from(t);a.visit(n,(o,s)=>(o==="address"&&!Nu(s,20)&&(i[s]="0x"),s));for(const o in i)i[o]=await r(o);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),n=a.visit(n,(o,s)=>o==="address"&&i[s]?i[s]:s),{domain:e,value:n}}static getPayload(e,t,n){Kt.hashDomain(e);const r={},i=[];kh.forEach(s=>{const f=e[s];f!=null&&(r[s]=bO0[s](f),i.push({name:s,type:Fk[s]}))});const a=Kt.from(t),o=Object.assign({},t);return e0(o.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",t),o.EIP712Domain=i,a.encode(n),{types:o,domain:r,primaryType:a.primaryType,message:a.visit(n,(s,f)=>{if(s.match(/^bytes(\d*)/))return M0(cu(f));if(s.match(/^u?int/))return j0(f).toString();switch(s){case"address":return f.toLowerCase();case"bool":return!!f;case"string":return e0(typeof f=="string","invalid string","value",f),f}e0(!1,"unsupported type","type",s)})}}};J1=new WeakMap,jr=new WeakMap,e4=new WeakMap,w9=new WeakSet,TL=function(e){{const r=_h(e);if(r)return r}const t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){const r=t[1],i=this.getEncoder(r);return a=>{e0(!t[3]||parseInt(t[3])===a.length,`array length mismatch; expected length ${parseInt(t[3])}`,"value",a);let o=a.map(i);return k(this,jr).has(r)&&(o=o.map(Ou)),Ou(fe(o))}}const n=this.types[e];if(n){const r=Fa(k(this,jr).get(e));return i=>{const a=n.map(({name:o,type:s})=>{const f=this.getEncoder(s)(i[o]);return k(this,jr).has(s)?Ou(f):f});return a.unshift(r),fe(a)}}e0(!1,`unknown type: ${e}`,"type",e)};let g9=Kt;function Qe(u){const e=new Set;return u.forEach(t=>e.add(t)),Object.freeze(e)}const gO0="external public payable",AO0=Qe(gO0.split(" ")),PL="constant external internal payable private public pure view",yO0=Qe(PL.split(" ")),IL="constructor error event fallback function receive struct",OL=Qe(IL.split(" ")),RL="calldata memory storage payable indexed",vO0=Qe(RL.split(" ")),BO0="tuple returns",FO0=[IL,RL,BO0,PL].join(" "),DO0=Qe(FO0.split(" ")),wO0={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},xO0=new RegExp("^(\\s*)"),kO0=new RegExp("^([0-9]+)"),_O0=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),NL=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),ML=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var ge,Sn,Z1,Em;const x9=class x9{constructor(e){a0(this,Z1);a0(this,ge,void 0);a0(this,Sn,void 0);M(this,ge,0),M(this,Sn,e.slice())}get offset(){return k(this,ge)}get length(){return k(this,Sn).length-k(this,ge)}clone(){return new x9(k(this,Sn))}reset(){M(this,ge,0)}popKeyword(e){const t=this.peek();if(t.type!=="KEYWORD"||!e.has(t.text))throw new Error(`expected keyword ${t.text}`);return this.pop().text}popType(e){if(this.peek().type!==e)throw new Error(`expected ${e}; got ${JSON.stringify(this.peek())}`);return this.pop().text}popParen(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const t=k0(this,Z1,Em).call(this,k(this,ge)+1,e.match+1);return M(this,ge,e.match+1),t}popParams(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const t=[];for(;k(this,ge)=k(this,Sn).length)throw new Error("out-of-bounds");return k(this,Sn)[k(this,ge)]}peekKeyword(e){const t=this.peekType("KEYWORD");return t!=null&&e.has(t)?t:null}peekType(e){if(this.length===0)return null;const t=this.peek();return t.type===e?t.text:null}pop(){const e=this.peek();return G3(this,ge)._++,e}toString(){const e=[];for(let t=k(this,ge);t`}};ge=new WeakMap,Sn=new WeakMap,Z1=new WeakSet,Em=function(e=0,t=0){return new x9(k(this,Sn).slice(e,t).map(n=>Object.freeze(Object.assign({},n,{match:n.match-e,linkBack:n.linkBack-e,linkNext:n.linkNext-e}))))};let Gn=x9;function Oa(u){const e=[],t=a=>{const o=i0&&e[e.length-1].type==="NUMBER"){const c=e.pop().text;l=c+l,e[e.length-1].value=Z0(c)}if(e.length===0||e[e.length-1].type!=="BRACKET")throw new Error("missing opening bracket");e[e.length-1].text+=l}continue}if(o=a.match(_O0),o){if(s.text=o[1],i+=s.text.length,DO0.has(s.text)){s.type="KEYWORD";continue}if(s.text.match(ML)){s.type="TYPE";continue}s.type="ID";continue}if(o=a.match(kO0),o){s.text=o[1],s.type="NUMBER",i+=s.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(a[0])} at position ${i}`)}return new Gn(e.map(a=>Object.freeze(a)))}function xk(u,e){let t=[];for(const n in e.keys())u.has(n)&&t.push(n);if(t.length>1)throw new Error(`conflicting types: ${t.join(", ")}`)}function kp(u,e){if(e.peekKeyword(OL)){const t=e.pop().text;if(t!==u)throw new Error(`expected ${u}, got ${t}`)}return e.popType("ID")}function oi(u,e){const t=new Set;for(;;){const n=u.peekType("KEYWORD");if(n==null||e&&!e.has(n))break;if(u.pop(),t.has(n))throw new Error(`duplicate keywords: ${JSON.stringify(n)}`);t.add(n)}return Object.freeze(t)}function jL(u){let e=oi(u,yO0);return xk(e,Qe("constant payable nonpayable".split(" "))),xk(e,Qe("pure view payable nonpayable".split(" "))),e.has("view")?"view":e.has("pure")?"pure":e.has("payable")?"payable":e.has("nonpayable")?"nonpayable":e.has("constant")?"view":"nonpayable"}function Zr(u,e){return u.popParams().map(t=>Fe.from(t,e))}function zL(u){if(u.peekType("AT")){if(u.pop(),u.peekType("NUMBER"))return j0(u.pop().text);throw new Error("invalid gas")}return null}function Xo(u){if(u.length)throw new Error(`unexpected tokens: ${u.toString()}`)}const SO0=new RegExp(/^(.*)\[([0-9]*)\]$/);function kk(u){const e=u.match(ML);if(e0(e,"invalid type","type",u),u==="uint")return"uint256";if(u==="int")return"int256";if(e[2]){const t=parseInt(e[2]);e0(t!==0&&t<=32,"invalid bytes length","type",u)}else if(e[3]){const t=parseInt(e[3]);e0(t!==0&&t<=256&&t%8===0,"invalid numeric width","type",u)}return u}const Iu={},vt=Symbol.for("_ethers_internal"),_k="_ParamTypeInternal",Sk="_ErrorInternal",Tk="_EventInternal",Pk="_ConstructorInternal",Ik="_FallbackInternal",Ok="_FunctionInternal",Rk="_StructInternal";var t4,T5;const Qt=class Qt{constructor(e,t,n,r,i,a,o,s){a0(this,t4);r0(this,"name");r0(this,"type");r0(this,"baseType");r0(this,"indexed");r0(this,"components");r0(this,"arrayLength");r0(this,"arrayChildren");if(Bp(e,Iu,"ParamType"),Object.defineProperty(this,vt,{value:_k}),a&&(a=Object.freeze(a.slice())),r==="array"){if(o==null||s==null)throw new Error("")}else if(o!=null||s!=null)throw new Error("");if(r==="tuple"){if(a==null)throw new Error("")}else if(a!=null)throw new Error("");U0(this,{name:t,type:n,baseType:r,indexed:i,components:a,arrayLength:o,arrayChildren:s})}format(e){if(e==null&&(e="sighash"),e==="json"){const n=this.name||"";if(this.isArray()){const i=JSON.parse(this.arrayChildren.format("json"));return i.name=n,i.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(i)}const r={type:this.baseType==="tuple"?"tuple":this.type,name:n};return typeof this.indexed=="boolean"&&(r.indexed=this.indexed),this.isTuple()&&(r.components=this.components.map(i=>JSON.parse(i.format(e)))),JSON.stringify(r)}let t="";return this.isArray()?(t+=this.arrayChildren.format(e),t+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?t+="("+this.components.map(n=>n.format(e)).join(e==="full"?", ":",")+")":t+=this.type,e!=="sighash"&&(this.indexed===!0&&(t+=" indexed"),e==="full"&&this.name&&(t+=" "+this.name)),t}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(e,t){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(this.arrayLength!==-1&&e.length!==this.arrayLength)throw new Error("array is wrong length");const n=this;return e.map(r=>n.arrayChildren.walk(r,t))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const n=this;return e.map((r,i)=>n.components[i].walk(r,t))}return t(this.type,e)}async walkAsync(e,t){const n=[],r=[e];return k0(this,t4,T5).call(this,n,e,t,i=>{r[0]=i}),n.length&&await Promise.all(n),r[0]}static from(e,t){if(Qt.isParamType(e))return e;if(typeof e=="string")try{return Qt.from(Oa(e),t)}catch{e0(!1,"invalid param type","obj",e)}else if(e instanceof Gn){let o="",s="",f=null;oi(e,Qe(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(s="tuple",f=e.popParams().map(h=>Qt.from(h)),o=`tuple(${f.map(h=>h.format()).join(",")})`):(o=kk(e.popType("TYPE")),s=o);let l=null,c=null;for(;e.length&&e.peekType("BRACKET");){const h=e.pop();l=new Qt(Iu,"",o,s,null,f,c,l),c=h.value,o+=h.text,s="array",f=null}let d=null;if(oi(e,vO0).has("indexed")){if(!t)throw new Error("");d=!0}const p=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new Qt(Iu,p,o,s,d,f,c,l)}const n=e.name;e0(!n||typeof n=="string"&&n.match(NL),"invalid name","obj.name",n);let r=e.indexed;r!=null&&(e0(t,"parameter cannot be indexed","obj.indexed",e.indexed),r=!!r);let i=e.type,a=i.match(SO0);if(a){const o=parseInt(a[2]||"-1"),s=Qt.from({type:a[1],components:e.components});return new Qt(Iu,n||"",i,"array",r,null,o,s)}if(i==="tuple"||i.startsWith("tuple(")||i.startsWith("(")){const o=e.components!=null?e.components.map(f=>Qt.from(f)):null;return new Qt(Iu,n||"",i,"tuple",r,o,null,null)}return i=kk(e.type),new Qt(Iu,n||"",i,i,r,null,null,null)}static isParamType(e){return e&&e[vt]===_k}};t4=new WeakSet,T5=function(e,t,n,r){if(this.isArray()){if(!Array.isArray(t))throw new Error("invalid array value");if(this.arrayLength!==-1&&t.length!==this.arrayLength)throw new Error("array is wrong length");const a=this.arrayChildren,o=t.slice();o.forEach((s,f)=>{var l;k0(l=a,t4,T5).call(l,e,s,n,c=>{o[f]=c})}),r(o);return}if(this.isTuple()){const a=this.components;let o;if(Array.isArray(t))o=t.slice();else{if(t==null||typeof t!="object")throw new Error("invalid tuple value");o=a.map(s=>{if(!s.name)throw new Error("cannot use object value with unnamed components");if(!(s.name in t))throw new Error(`missing value for component ${s.name}`);return t[s.name]})}if(o.length!==this.components.length)throw new Error("array is wrong length");o.forEach((s,f)=>{var l;k0(l=a[f],t4,T5).call(l,e,s,n,c=>{o[f]=c})}),r(o);return}const i=n(this.type,t);i.then?e.push(async function(){r(await i)}()):r(i)};let Fe=Qt;class us{constructor(e,t,n){r0(this,"type");r0(this,"inputs");Bp(e,Iu,"Fragment"),n=Object.freeze(n.slice()),U0(this,{type:t,inputs:n})}static from(e){if(typeof e=="string"){try{us.from(JSON.parse(e))}catch{}return us.from(Oa(e))}if(e instanceof Gn)switch(e.peekKeyword(OL)){case"constructor":return Kr.from(e);case"error":return ct.from(e);case"event":return lr.from(e);case"fallback":case"receive":return Tr.from(e);case"function":return cr.from(e);case"struct":return Oo.from(e)}else if(typeof e=="object"){switch(e.type){case"constructor":return Kr.from(e);case"error":return ct.from(e);case"event":return lr.from(e);case"fallback":case"receive":return Tr.from(e);case"function":return cr.from(e);case"struct":return Oo.from(e)}E0(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}e0(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return Kr.isFragment(e)}static isError(e){return ct.isFragment(e)}static isEvent(e){return lr.isFragment(e)}static isFunction(e){return cr.isFragment(e)}static isStruct(e){return Oo.isFragment(e)}}class _p extends us{constructor(t,n,r,i){super(t,n,i);r0(this,"name");e0(typeof r=="string"&&r.match(NL),"invalid identifier","name",r),i=Object.freeze(i.slice()),U0(this,{name:r})}}function W1(u,e){return"("+e.map(t=>t.format(u)).join(u==="full"?", ":",")+")"}class ct extends _p{constructor(e,t,n){super(e,"error",t,n),Object.defineProperty(this,vt,{value:Sk})}get selector(){return Fa(this.format("sighash")).substring(0,10)}format(e){if(e==null&&(e="sighash"),e==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});const t=[];return e!=="sighash"&&t.push("error"),t.push(this.name+W1(e,this.inputs)),t.join(" ")}static from(e){if(ct.isFragment(e))return e;if(typeof e=="string")return ct.from(Oa(e));if(e instanceof Gn){const t=kp("error",e),n=Zr(e);return Xo(e),new ct(Iu,t,n)}return new ct(Iu,e.name,e.inputs?e.inputs.map(Fe.from):[])}static isFragment(e){return e&&e[vt]===Sk}}class lr extends _p{constructor(t,n,r,i){super(t,"event",n,r);r0(this,"anonymous");Object.defineProperty(this,vt,{value:Tk}),U0(this,{anonymous:i})}get topicHash(){return Fa(this.format("sighash"))}format(t){if(t==null&&(t="sighash"),t==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(r=>JSON.parse(r.format(t)))});const n=[];return t!=="sighash"&&n.push("event"),n.push(this.name+W1(t,this.inputs)),t!=="sighash"&&this.anonymous&&n.push("anonymous"),n.join(" ")}static getTopicHash(t,n){return n=(n||[]).map(i=>Fe.from(i)),new lr(Iu,t,n,!1).topicHash}static from(t){if(lr.isFragment(t))return t;if(typeof t=="string")try{return lr.from(Oa(t))}catch{e0(!1,"invalid event fragment","obj",t)}else if(t instanceof Gn){const n=kp("event",t),r=Zr(t,!0),i=!!oi(t,Qe(["anonymous"])).has("anonymous");return Xo(t),new lr(Iu,n,r,i)}return new lr(Iu,t.name,t.inputs?t.inputs.map(n=>Fe.from(n,!0)):[],!!t.anonymous)}static isFragment(t){return t&&t[vt]===Tk}}class Kr extends us{constructor(t,n,r,i,a){super(t,n,r);r0(this,"payable");r0(this,"gas");Object.defineProperty(this,vt,{value:Pk}),U0(this,{payable:i,gas:a})}format(t){if(E0(t!=null&&t!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),t==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(r=>JSON.parse(r.format(t)))});const n=[`constructor${W1(t,this.inputs)}`];return this.payable&&n.push("payable"),this.gas!=null&&n.push(`@${this.gas.toString()}`),n.join(" ")}static from(t){if(Kr.isFragment(t))return t;if(typeof t=="string")try{return Kr.from(Oa(t))}catch{e0(!1,"invalid constuctor fragment","obj",t)}else if(t instanceof Gn){oi(t,Qe(["constructor"]));const n=Zr(t),r=!!oi(t,AO0).has("payable"),i=zL(t);return Xo(t),new Kr(Iu,"constructor",n,r,i)}return new Kr(Iu,"constructor",t.inputs?t.inputs.map(Fe.from):[],!!t.payable,t.gas!=null?t.gas:null)}static isFragment(t){return t&&t[vt]===Pk}}class Tr extends us{constructor(t,n,r){super(t,"fallback",n);r0(this,"payable");Object.defineProperty(this,vt,{value:Ik}),U0(this,{payable:r})}format(t){const n=this.inputs.length===0?"receive":"fallback";if(t==="json"){const r=this.payable?"payable":"nonpayable";return JSON.stringify({type:n,stateMutability:r})}return`${n}()${this.payable?" payable":""}`}static from(t){if(Tr.isFragment(t))return t;if(typeof t=="string")try{return Tr.from(Oa(t))}catch{e0(!1,"invalid fallback fragment","obj",t)}else if(t instanceof Gn){const n=t.toString(),r=t.peekKeyword(Qe(["fallback","receive"]));if(e0(r,"type must be fallback or receive","obj",n),t.popKeyword(Qe(["fallback","receive"]))==="receive"){const s=Zr(t);return e0(s.length===0,"receive cannot have arguments","obj.inputs",s),oi(t,Qe(["payable"])),Xo(t),new Tr(Iu,[],!0)}let a=Zr(t);a.length?e0(a.length===1&&a[0].type==="bytes","invalid fallback inputs","obj.inputs",a.map(s=>s.format("minimal")).join(", ")):a=[Fe.from("bytes")];const o=jL(t);if(e0(o==="nonpayable"||o==="payable","fallback cannot be constants","obj.stateMutability",o),oi(t,Qe(["returns"])).has("returns")){const s=Zr(t);e0(s.length===1&&s[0].type==="bytes","invalid fallback outputs","obj.outputs",s.map(f=>f.format("minimal")).join(", "))}return Xo(t),new Tr(Iu,a,o==="payable")}if(t.type==="receive")return new Tr(Iu,[],!0);if(t.type==="fallback"){const n=[Fe.from("bytes")],r=t.stateMutability==="payable";return new Tr(Iu,n,r)}e0(!1,"invalid fallback description","obj",t)}static isFragment(t){return t&&t[vt]===Ik}}class cr extends _p{constructor(t,n,r,i,a,o){super(t,"function",n,i);r0(this,"constant");r0(this,"outputs");r0(this,"stateMutability");r0(this,"payable");r0(this,"gas");Object.defineProperty(this,vt,{value:Ok}),a=Object.freeze(a.slice()),U0(this,{constant:r==="view"||r==="pure",gas:o,outputs:a,payable:r==="payable",stateMutability:r})}get selector(){return Fa(this.format("sighash")).substring(0,10)}format(t){if(t==null&&(t="sighash"),t==="json")return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(r=>JSON.parse(r.format(t))),outputs:this.outputs.map(r=>JSON.parse(r.format(t)))});const n=[];return t!=="sighash"&&n.push("function"),n.push(this.name+W1(t,this.inputs)),t!=="sighash"&&(this.stateMutability!=="nonpayable"&&n.push(this.stateMutability),this.outputs&&this.outputs.length&&(n.push("returns"),n.push(W1(t,this.outputs))),this.gas!=null&&n.push(`@${this.gas.toString()}`)),n.join(" ")}static getSelector(t,n){return n=(n||[]).map(i=>Fe.from(i)),new cr(Iu,t,"view",n,[],null).selector}static from(t){if(cr.isFragment(t))return t;if(typeof t=="string")try{return cr.from(Oa(t))}catch{e0(!1,"invalid function fragment","obj",t)}else if(t instanceof Gn){const r=kp("function",t),i=Zr(t),a=jL(t);let o=[];oi(t,Qe(["returns"])).has("returns")&&(o=Zr(t));const s=zL(t);return Xo(t),new cr(Iu,r,a,i,o,s)}let n=t.stateMutability;return n==null&&(n="payable",typeof t.constant=="boolean"?(n="view",t.constant||(n="payable",typeof t.payable=="boolean"&&!t.payable&&(n="nonpayable"))):typeof t.payable=="boolean"&&!t.payable&&(n="nonpayable")),new cr(Iu,t.name,n,t.inputs?t.inputs.map(Fe.from):[],t.outputs?t.outputs.map(Fe.from):[],t.gas!=null?t.gas:null)}static isFragment(t){return t&&t[vt]===Ok}}class Oo extends _p{constructor(e,t,n){super(e,"struct",t,n),Object.defineProperty(this,vt,{value:Rk})}format(){throw new Error("@TODO")}static from(e){if(typeof e=="string")try{return Oo.from(Oa(e))}catch{e0(!1,"invalid struct fragment","obj",e)}else if(e instanceof Gn){const t=kp("struct",e),n=Zr(e);return Xo(e),new Oo(Iu,t,n)}return new Oo(Iu,e.name,e.inputs?e.inputs.map(Fe.from):[])}static isFragment(e){return e&&e[vt]===Rk}}const Qn=new Map;Qn.set(0,"GENERIC_PANIC");Qn.set(1,"ASSERT_FALSE");Qn.set(17,"OVERFLOW");Qn.set(18,"DIVIDE_BY_ZERO");Qn.set(33,"ENUM_RANGE_ERROR");Qn.set(34,"BAD_STORAGE_DATA");Qn.set(49,"STACK_UNDERFLOW");Qn.set(50,"ARRAY_RANGE_ERROR");Qn.set(65,"OUT_OF_MEMORY");Qn.set(81,"UNINITIALIZED_FUNCTION_CALL");const TO0=new RegExp(/^bytes([0-9]*)$/),PO0=new RegExp(/^(u?int)([0-9]*)$/);let Sh=null;function IO0(u,e,t,n){let r="missing revert data",i=null;const a=null;let o=null;if(t){r="execution reverted";const f=cu(t);if(t=M0(t),f.length===0)r+=" (no data present; likely require(false) occurred",i="require(false)";else if(f.length%32!==4)r+=" (could not decode reason; invalid data length)";else if(M0(f.slice(0,4))==="0x08c379a0")try{i=n.decode(["string"],f.slice(4))[0],o={signature:"Error(string)",name:"Error",args:[i]},r+=`: ${JSON.stringify(i)}`}catch{r+=" (could not decode reason; invalid string data)"}else if(M0(f.slice(0,4))==="0x4e487b71")try{const l=Number(n.decode(["uint256"],f.slice(4))[0]);o={signature:"Panic(uint256)",name:"Panic",args:[l]},i=`Panic due to ${Qn.get(l)||"UNKNOWN"}(${l})`,r+=`: ${i}`}catch{r+=" (could not decode panic code)"}else r+=" (unknown custom error)"}const s={to:e.to?su(e.to):null,data:e.data||"0x"};return e.from&&(s.from=su(e.from)),ne(r,"CALL_EXCEPTION",{action:u,data:t,reason:i,transaction:s,invocation:a,revert:o})}var Li,Hs;const k9=class k9{constructor(){a0(this,Li)}getDefaultValue(e){const t=e.map(r=>k0(this,Li,Hs).call(this,Fe.from(r)));return new t5(t,"_").defaultValue()}encode(e,t){Mz(t.length,e.length,"types/values length mismatch");const n=e.map(a=>k0(this,Li,Hs).call(this,Fe.from(a))),r=new t5(n,"_"),i=new rm;return r.encode(i,t),i.data}decode(e,t,n){const r=e.map(a=>k0(this,Li,Hs).call(this,Fe.from(a)));return new t5(r,"_").decode(new im(t,n))}static defaultAbiCoder(){return Sh==null&&(Sh=new k9),Sh}static getBuiltinCallException(e,t,n){return IO0(e,t,n,k9.defaultAbiCoder())}};Li=new WeakSet,Hs=function(e){if(e.isArray())return new sI0(k0(this,Li,Hs).call(this,e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new t5(e.components.map(n=>k0(this,Li,Hs).call(this,n)),e.name);switch(e.baseType){case"address":return new aI0(e.name);case"bool":return new fI0(e.name);case"string":return new bI0(e.name);case"bytes":return new lI0(e.name);case"":return new EI0(e.name)}let t=e.type.match(PO0);if(t){let n=parseInt(t[2]||"256");return e0(n!==0&&n<=256&&n%8===0,"invalid "+t[1]+" bit length","param",e),new mI0(n/8,t[1]==="int",e.name)}if(t=e.type.match(TO0),t){let n=parseInt(t[1]);return e0(n!==0&&n<=32,"invalid bytes length","param",e),new cI0(n,e.name)}e0(!1,"invalid type","type",e.type)};let q1=k9;class OO0{constructor(e,t,n){r0(this,"fragment");r0(this,"name");r0(this,"signature");r0(this,"topic");r0(this,"args");const r=e.name,i=e.format();U0(this,{fragment:e,name:r,signature:i,topic:t,args:n})}}class RO0{constructor(e,t,n,r){r0(this,"fragment");r0(this,"name");r0(this,"args");r0(this,"signature");r0(this,"selector");r0(this,"value");const i=e.name,a=e.format();U0(this,{fragment:e,name:i,args:n,signature:a,selector:t,value:r})}}class NO0{constructor(e,t,n){r0(this,"fragment");r0(this,"name");r0(this,"args");r0(this,"signature");r0(this,"selector");const r=e.name,i=e.format();U0(this,{fragment:e,name:r,args:n,signature:i,selector:t})}}class Nk{constructor(e){r0(this,"hash");r0(this,"_isIndexed");U0(this,{hash:e,_isIndexed:!0})}static isIndexed(e){return!!(e&&e._isIndexed)}}const Mk={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},jk={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:u=>`reverted with reason string ${JSON.stringify(u)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:u=>{let e="unknown panic code";return u>=0&&u<=255&&Mk[u.toString()]&&(e=Mk[u.toString()]),`reverted with panic code 0x${u.toString(16)} (${e})`}}};var er,tr,nr,Pe,n4,P5,r4,I5;const mf=class mf{constructor(e){a0(this,n4);a0(this,r4);r0(this,"fragments");r0(this,"deploy");r0(this,"fallback");r0(this,"receive");a0(this,er,void 0);a0(this,tr,void 0);a0(this,nr,void 0);a0(this,Pe,void 0);let t=[];typeof e=="string"?t=JSON.parse(e):t=e,M(this,nr,new Map),M(this,er,new Map),M(this,tr,new Map);const n=[];for(const a of t)try{n.push(us.from(a))}catch(o){console.log("EE",o)}U0(this,{fragments:Object.freeze(n)});let r=null,i=!1;M(this,Pe,this.getAbiCoder()),this.fragments.forEach((a,o)=>{let s;switch(a.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}U0(this,{deploy:a});return;case"fallback":a.inputs.length===0?i=!0:(e0(!r||a.payable!==r.payable,"conflicting fallback fragments",`fragments[${o}]`,a),r=a,i=r.payable);return;case"function":s=k(this,nr);break;case"event":s=k(this,tr);break;case"error":s=k(this,er);break;default:return}const f=a.format();s.has(f)||s.set(f,a)}),this.deploy||U0(this,{deploy:Kr.from("constructor()")}),U0(this,{fallback:r,receive:i})}format(e){const t=e?"minimal":"full";return this.fragments.map(r=>r.format(t))}formatJson(){const e=this.fragments.map(t=>t.format("json"));return JSON.stringify(e.map(t=>JSON.parse(t)))}getAbiCoder(){return q1.defaultAbiCoder()}getFunctionName(e){const t=k0(this,n4,P5).call(this,e,null,!1);return e0(t,"no matching function","key",e),t.name}hasFunction(e){return!!k0(this,n4,P5).call(this,e,null,!1)}getFunction(e,t){return k0(this,n4,P5).call(this,e,t||null,!0)}forEachFunction(e){const t=Array.from(k(this,nr).keys());t.sort((n,r)=>n.localeCompare(r));for(let n=0;nn.localeCompare(r));for(let n=0;n1){const i=r.map(a=>JSON.stringify(a.format())).join(", ");e0(!1,`ambiguous error description (i.e. ${i})`,"name",e)}return r[0]}if(e=ct.from(e).format(),e==="Error(string)")return ct.from("error Error(string)");if(e==="Panic(uint256)")return ct.from("error Panic(uint256)");const n=k(this,er).get(e);return n||null}forEachError(e){const t=Array.from(k(this,er).keys());t.sort((n,r)=>n.localeCompare(r));for(let n=0;ni.type==="string"?Fa(a):i.type==="bytes"?Ou(M0(a)):(i.type==="bool"&&typeof a=="boolean"?a=a?"0x01":"0x00":i.type.match(/^u?int/)?a=Ba(a):i.type.match(/^bytes/)?a=IP0(a,32):i.type==="address"&&k(this,Pe).encode(["address"],[a]),Yo(M0(a),32));for(t.forEach((i,a)=>{const o=e.inputs[a];if(!o.indexed){e0(i==null,"cannot filter non-indexed parameters; must be null","contract."+o.name,i);return}i==null?n.push(null):o.baseType==="array"||o.baseType==="tuple"?e0(!1,"filtering with tuples or arrays not supported","contract."+o.name,i):Array.isArray(i)?n.push(i.map(s=>r(o,s))):n.push(r(o,i))});n.length&&n[n.length-1]===null;)n.pop();return n}encodeEventLog(e,t){if(typeof e=="string"){const a=this.getEvent(e);e0(a,"unknown event","eventFragment",e),e=a}const n=[],r=[],i=[];return e.anonymous||n.push(e.topicHash),e0(t.length===e.inputs.length,"event arguments/values mismatch","values",t),e.inputs.forEach((a,o)=>{const s=t[o];if(a.indexed)if(a.type==="string")n.push(Fa(s));else if(a.type==="bytes")n.push(Ou(s));else{if(a.baseType==="tuple"||a.baseType==="array")throw new Error("not implemented");n.push(k(this,Pe).encode([a.type],[s]))}else r.push(a),i.push(s)}),{data:k(this,Pe).encode(r,i),topics:n}}decodeEventLog(e,t,n){if(typeof e=="string"){const E=this.getEvent(e);e0(E,"unknown event","eventFragment",e),e=E}if(n!=null&&!e.anonymous){const E=e.topicHash;e0(Nu(n[0],32)&&n[0].toLowerCase()===E,"fragment/topic mismatch","topics[0]",n[0]),n=n.slice(1)}const r=[],i=[],a=[];e.inputs.forEach((E,p)=>{E.indexed?E.type==="string"||E.type==="bytes"||E.baseType==="tuple"||E.baseType==="array"?(r.push(Fe.from({type:"bytes32",name:E.name})),a.push(!0)):(r.push(E),a.push(!1)):(i.push(E),a.push(!1))});const o=n!=null?k(this,Pe).decode(r,fe(n)):null,s=k(this,Pe).decode(i,t,!0),f=[],l=[];let c=0,d=0;return e.inputs.forEach((E,p)=>{let h=null;if(E.indexed)if(o==null)h=new Nk(null);else if(a[p])h=new Nk(o[d++]);else try{h=o[d++]}catch(g){h=g}else try{h=s[c++]}catch(g){h=g}f.push(h),l.push(E.name||null)}),E9.fromItems(f,l)}parseTransaction(e){const t=cu(e.data,"tx.data"),n=j0(e.value!=null?e.value:0,"tx.value"),r=this.getFunction(M0(t.slice(0,4)));if(!r)return null;const i=k(this,Pe).decode(r.inputs,t.slice(4));return new RO0(r,r.selector,i,n)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new OO0(t,t.topicHash,this.decodeEventLog(t,e.data,e.topics))}parseError(e){const t=M0(e),n=this.getError(Wu(t,0,4));if(!n)return null;const r=k(this,Pe).decode(n.inputs,Wu(t,4));return new NO0(n,n.selector,r)}static from(e){return e instanceof mf?e:typeof e=="string"?new mf(JSON.parse(e)):typeof e.format=="function"?new mf(e.format("json")):new mf(e)}};er=new WeakMap,tr=new WeakMap,nr=new WeakMap,Pe=new WeakMap,n4=new WeakSet,P5=function(e,t,n){if(Nu(e)){const i=e.toLowerCase();for(const a of k(this,nr).values())if(i===a.selector)return a;return null}if(e.indexOf("(")===-1){const i=[];for(const[a,o]of k(this,nr))a.split("(")[0]===e&&i.push(o);if(t){const a=t.length>0?t[t.length-1]:null;let o=t.length,s=!0;Le.isTyped(a)&&a.type==="overrides"&&(s=!1,o--);for(let f=i.length-1;f>=0;f--){const l=i[f].inputs.length;l!==o&&(!s||l!==o-1)&&i.splice(f,1)}for(let f=i.length-1;f>=0;f--){const l=i[f].inputs;for(let c=0;c=l.length){if(t[c].type==="overrides")continue;i.splice(f,1);break}if(t[c].type!==l[c].baseType){i.splice(f,1);break}}}}if(i.length===1&&t&&t.length!==i[0].inputs.length){const a=t[t.length-1];(a==null||Array.isArray(a)||typeof a!="object")&&i.splice(0,1)}if(i.length===0)return null;if(i.length>1&&n){const a=i.map(o=>JSON.stringify(o.format())).join(", ");e0(!1,`ambiguous function description (i.e. matches ${a})`,"key",e)}return i[0]}const r=k(this,nr).get(cr.from(e).format());return r||null},r4=new WeakSet,I5=function(e,t,n){if(Nu(e)){const i=e.toLowerCase();for(const a of k(this,tr).values())if(i===a.topicHash)return a;return null}if(e.indexOf("(")===-1){const i=[];for(const[a,o]of k(this,tr))a.split("(")[0]===e&&i.push(o);if(t){for(let a=i.length-1;a>=0;a--)i[a].inputs.length=0;a--){const o=i[a].inputs;for(let s=0;s1&&n){const a=i.map(o=>JSON.stringify(o.format())).join(", ");e0(!1,`ambiguous event description (i.e. matches ${a})`,"key",e)}return i[0]}const r=k(this,tr).get(lr.from(e).format());return r||null};let pm=mf;const LL=BigInt(0);function u1(u){return u??null}function je(u){return u==null?null:u.toString()}class zk{constructor(e,t,n){r0(this,"gasPrice");r0(this,"maxFeePerGas");r0(this,"maxPriorityFeePerGas");U0(this,{gasPrice:u1(e),maxFeePerGas:u1(t),maxPriorityFeePerGas:u1(n)})}toJSON(){const{gasPrice:e,maxFeePerGas:t,maxPriorityFeePerGas:n}=this;return{_type:"FeeData",gasPrice:je(e),maxFeePerGas:je(t),maxPriorityFeePerGas:je(n)}}}function A9(u){const e={};u.to&&(e.to=u.to),u.from&&(e.from=u.from),u.data&&(e.data=M0(u.data));const t="chainId,gasLimit,gasPrice,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const r of t)!(r in u)||u[r]==null||(e[r]=j0(u[r],`request.${r}`));const n="type,nonce".split(/,/);for(const r of n)!(r in u)||u[r]==null||(e[r]=Z0(u[r],`request.${r}`));return u.accessList&&(e.accessList=As(u.accessList)),"blockTag"in u&&(e.blockTag=u.blockTag),"enableCcipRead"in u&&(e.enableCcipRead=!!u.enableCcipRead),"customData"in u&&(e.customData=u.customData),e}var zr;class MO0{constructor(e,t){r0(this,"provider");r0(this,"number");r0(this,"hash");r0(this,"timestamp");r0(this,"parentHash");r0(this,"nonce");r0(this,"difficulty");r0(this,"gasLimit");r0(this,"gasUsed");r0(this,"miner");r0(this,"extraData");r0(this,"baseFeePerGas");a0(this,zr,void 0);M(this,zr,e.transactions.map(n=>typeof n!="string"?new H1(n,t):n)),U0(this,{provider:t,hash:u1(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,miner:e.miner,extraData:e.extraData,baseFeePerGas:u1(e.baseFeePerGas)})}get transactions(){return k(this,zr).map(e=>typeof e=="string"?e:e.hash)}get prefetchedTransactions(){const e=k(this,zr).slice();return e.length===0?[]:(E0(typeof e[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:t,extraData:n,gasLimit:r,gasUsed:i,hash:a,miner:o,nonce:s,number:f,parentHash:l,timestamp:c,transactions:d}=this;return{_type:"Block",baseFeePerGas:je(e),difficulty:je(t),extraData:n,gasLimit:je(r),gasUsed:je(i),hash:a,miner:o,nonce:s,number:f,parentHash:l,timestamp:c,transactions:d}}[Symbol.iterator](){let e=0;const t=this.transactions;return{next:()=>enew e6(r,t))));let n=LL;e.effectiveGasPrice!=null?n=e.effectiveGasPrice:e.gasPrice!=null&&(n=e.gasPrice),U0(this,{provider:t,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,gasPrice:n,type:e.type,status:e.status,root:e.root})}get logs(){return k(this,Y1)}toJSON(){const{to:e,from:t,contractAddress:n,hash:r,index:i,blockHash:a,blockNumber:o,logsBloom:s,logs:f,status:l,root:c}=this;return{_type:"TransactionReceipt",blockHash:a,blockNumber:o,contractAddress:n,cumulativeGasUsed:je(this.cumulativeGasUsed),from:t,gasPrice:je(this.gasPrice),gasUsed:je(this.gasUsed),hash:r,index:i,logs:f,logsBloom:s,root:c,status:l,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e{if(o)return null;const{blockNumber:d,nonce:E}=await qe({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(E{if(d==null||d.status!==0)return d;E0(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:d.to,from:d.from,data:""},receipt:d})},l=await this.provider.getTransactionReceipt(this.hash);if(n===0)return f(l);if(l){if(await l.confirmations()>=n)return f(l)}else if(await s(),n===0)return null;return await new Promise((d,E)=>{const p=[],h=()=>{p.forEach(b=>b())};if(p.push(()=>{o=!0}),r>0){const b=setTimeout(()=>{h(),E(ne("wait for transaction timeout","TIMEOUT"))},r);p.push(()=>{clearTimeout(b)})}const g=async b=>{if(await b.confirmations()>=n){h();try{d(f(b))}catch(m){E(m)}}};if(p.push(()=>{this.provider.off(this.hash,g)}),this.provider.on(this.hash,g),i>=0){const b=async()=>{try{await s()}catch(m){if(ln(m,"TRANSACTION_REPLACED")){h(),E(m);return}}o||this.provider.once("block",b)};p.push(()=>{this.provider.off("block",b)}),this.provider.once("block",b)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}removedEvent(){return E0(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),WL(this)}reorderedEvent(e){return E0(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),E0(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),UL(this,e)}replaceableTransaction(e){e0(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const t=new rv(this,this.provider);return M(t,$i,e),t}};$i=new WeakMap;let H1=rv;function jO0(u){return{orphan:"drop-block",hash:u.hash,number:u.number}}function UL(u,e){return{orphan:"reorder-transaction",tx:u,other:e}}function WL(u){return{orphan:"drop-transaction",tx:u}}function zO0(u){return{orphan:"drop-log",log:{transactionHash:u.transactionHash,blockHash:u.blockHash,blockNumber:u.blockNumber,address:u.address,data:u.data,topics:Object.freeze(u.topics.slice()),index:u.index}}}class Uy extends e6{constructor(t,n,r){super(t,t.provider);r0(this,"interface");r0(this,"fragment");r0(this,"args");const i=n.decodeEventLog(r,t.data,t.topics);U0(this,{args:i,fragment:r,interface:n})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class qL extends e6{constructor(t,n){super(t,t.provider);r0(this,"error");U0(this,{error:n})}}var i4;class LO0 extends $L{constructor(t,n,r){super(r,n);a0(this,i4,void 0);M(this,i4,t)}get logs(){return super.logs.map(t=>{const n=t.topics.length?k(this,i4).getEvent(t.topics[0]):null;if(n)try{return new Uy(t,k(this,i4),n)}catch(r){return new qL(t,r)}return t})}}i4=new WeakMap;var X1;class Wy extends H1{constructor(t,n,r){super(r,n);a0(this,X1,void 0);M(this,X1,t)}async wait(t){const n=await super.wait(t);return n==null?null:new LO0(k(this,X1),this.provider,n)}}X1=new WeakMap;class HL extends $z{constructor(t,n,r,i){super(t,n,r);r0(this,"log");U0(this,{log:i})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class $O0 extends HL{constructor(e,t,n,r,i){super(e,t,n,new Uy(i,e.interface,r));const a=e.interface.decodeEventLog(r,this.log.data,this.log.topics);U0(this,{args:a,fragment:r})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const Lk=BigInt(0);function GL(u){return u&&typeof u.call=="function"}function VL(u){return u&&typeof u.estimateGas=="function"}function Sp(u){return u&&typeof u.resolveName=="function"}function KL(u){return u&&typeof u.sendTransaction=="function"}function QL(u){if(u!=null){if(Sp(u))return u;if(u.provider)return u.provider}}var uc;class UO0{constructor(e,t,n){a0(this,uc,void 0);r0(this,"fragment");if(U0(this,{fragment:t}),t.inputs.lengthn[s]==null?null:o.walkAsync(n[s],(l,c)=>l==="address"?Array.isArray(c)?Promise.all(c.map(d=>Ke(d,i))):Ke(c,i):c)));return e.interface.encodeFilterTopics(t,a)}())}getTopicFilter(){return k(this,uc)}}uc=new WeakMap;function es(u,e){return u==null?null:typeof u[e]=="function"?u:u.provider&&typeof u.provider[e]=="function"?u.provider:null}function io(u){return u==null?null:u.provider||null}async function JL(u,e){const t=Le.dereference(u,"overrides");e0(typeof t=="object","invalid overrides parameter","overrides",u);const n=A9(t);return e0(n.to==null||(e||[]).indexOf("to")>=0,"cannot override to","overrides.to",n.to),e0(n.data==null||(e||[]).indexOf("data")>=0,"cannot override data","overrides.data",n.data),n.from&&(n.from=n.from),n}async function WO0(u,e,t){const n=es(u,"resolveName"),r=Sp(n)?n:null;return await Promise.all(e.map((i,a)=>i.walkAsync(t[a],(o,s)=>(s=Le.dereference(s,o),o==="address"?Ke(s,r):s))))}function qO0(u){const e=async function(a){const o=await JL(a,["data"]);o.to=await u.getAddress(),o.from&&(o.from=await Ke(o.from,QL(u.runner)));const s=u.interface,f=j0(o.value||Lk,"overrides.value")===Lk,l=(o.data||"0x")==="0x";s.fallback&&!s.fallback.payable&&s.receive&&!l&&!f&&e0(!1,"cannot send data to receive or send value to non-payable fallback","overrides",a),e0(s.fallback||l,"cannot send data to receive-only contract","overrides.data",o.data);const c=s.receive||s.fallback&&s.fallback.payable;return e0(c||f,"cannot send value to non-payable fallback","overrides.value",o.value),e0(s.fallback||l,"cannot send data to receive-only contract","overrides.data",o.data),o},t=async function(a){const o=es(u.runner,"call");E0(GL(o),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const s=await e(a);try{return await o.call(s)}catch(f){throw Iy(f)&&f.data?u.interface.makeError(f.data,s):f}},n=async function(a){const o=u.runner;E0(KL(o),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const s=await o.sendTransaction(await e(a)),f=io(u.runner);return new Wy(u.interface,f,s)},r=async function(a){const o=es(u.runner,"estimateGas");return E0(VL(o),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await o.estimateGas(await e(a))},i=async a=>await n(a);return U0(i,{_contract:u,estimateGas:r,populateTransaction:e,send:n,staticCall:t}),i}function HO0(u,e){const t=function(...f){const l=u.interface.getFunction(e,f);return E0(l,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:f}}),l},n=async function(...f){const l=t(...f);let c={};if(l.inputs.length+1===f.length&&(c=await JL(f.pop()),c.from&&(c.from=await Ke(c.from,QL(u.runner)))),l.inputs.length!==f.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const d=await WO0(u.runner,l.inputs,f);return Object.assign({},c,await qe({to:u.getAddress(),data:u.interface.encodeFunctionData(l,d)}))},r=async function(...f){const l=await o(...f);return l.length===1?l[0]:l},i=async function(...f){const l=u.runner;E0(KL(l),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const c=await l.sendTransaction(await n(...f)),d=io(u.runner);return new Wy(u.interface,d,c)},a=async function(...f){const l=es(u.runner,"estimateGas");return E0(VL(l),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await l.estimateGas(await n(...f))},o=async function(...f){const l=es(u.runner,"call");E0(GL(l),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const c=await n(...f);let d="0x";try{d=await l.call(c)}catch(p){throw Iy(p)&&p.data?u.interface.makeError(p.data,c):p}const E=t(...f);return u.interface.decodeFunctionResult(E,d)},s=async(...f)=>t(...f).constant?await r(...f):await i(...f);return U0(s,{name:u.interface.getFunctionName(e),_contract:u,_key:e,getFragment:t,estimateGas:a,populateTransaction:n,send:i,staticCall:r,staticCallResult:o}),Object.defineProperty(s,"fragment",{configurable:!1,enumerable:!0,get:()=>{const f=u.interface.getFunction(e);return E0(f,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),f}}),s}function GO0(u,e){const t=function(...r){const i=u.interface.getEvent(e,r);return E0(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:r}}),i},n=function(...r){return new UO0(u,t(...r),r)};return U0(n,{name:u.interface.getEventName(e),_contract:u,_key:e,getFragment:t}),Object.defineProperty(n,"fragment",{configurable:!1,enumerable:!0,get:()=>{const r=u.interface.getEvent(e);return E0(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),r}}),n}const y9=Symbol.for("_ethersInternal_contract"),ZL=new WeakMap;function VO0(u,e){ZL.set(u[y9],e)}function xt(u){return ZL.get(u[y9])}function KO0(u){return u&&typeof u=="object"&&"getTopicFilter"in u&&typeof u.getTopicFilter=="function"&&u.fragment}async function qy(u,e){let t,n=null;if(Array.isArray(e)){const i=function(a){if(Nu(a,32))return a;const o=u.interface.getEvent(a);return e0(o,"unknown fragment","name",a),o.topicHash};t=e.map(a=>a==null?null:Array.isArray(a)?a.map(i):i(a))}else e==="*"?t=[null]:typeof e=="string"?Nu(e,32)?t=[e]:(n=u.interface.getEvent(e),e0(n,"unknown fragment","event",e),t=[n.topicHash]):KO0(e)?t=await e.getTopicFilter():"fragment"in e?(n=e.fragment,t=[n.topicHash]):e0(!1,"unknown event name","event",e);t=t.map(i=>{if(i==null)return null;if(Array.isArray(i)){const a=Array.from(new Set(i.map(o=>o.toLowerCase())).values());return a.length===1?a[0]:(a.sort(),a)}return i.toLowerCase()});const r=t.map(i=>i==null?"null":Array.isArray(i)?i.join("|"):i).join("&");return{fragment:n,tag:r,topics:t}}async function Pl(u,e){const{subs:t}=xt(u);return t.get((await qy(u,e)).tag)||null}async function $k(u,e,t){const n=io(u.runner);E0(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:e});const{fragment:r,tag:i,topics:a}=await qy(u,t),{addr:o,subs:s}=xt(u);let f=s.get(i);if(!f){const c={address:o||u,topics:a},d=g=>{let b=r;if(b==null)try{b=u.interface.getEvent(g.topics[0])}catch{}if(b){const m=b,A=r?u.interface.decodeEventLog(r,g.data,g.topics):[];Cm(u,t,A,y=>new $O0(u,y,t,m,g))}else Cm(u,t,[],m=>new HL(u,m,t,g))};let E=[];f={tag:i,listeners:[],start:()=>{E.length||E.push(n.on(c,d))},stop:async()=>{if(E.length==0)return;let g=E;E=[],await Promise.all(g),n.off(c,d)}},s.set(i,f)}return f}let hm=Promise.resolve();async function QO0(u,e,t,n){await hm;const r=await Pl(u,e);if(!r)return!1;const i=r.listeners.length;return r.listeners=r.listeners.filter(({listener:a,once:o})=>{const s=Array.from(t);n&&s.push(n(o?null:a));try{a.call(u,...s)}catch{}return!o}),r.listeners.length===0&&(r.stop(),xt(u).subs.delete(r.tag)),i>0}async function Cm(u,e,t,n){try{await hm}catch{}const r=QO0(u,e,t,n);return hm=r,await r}const n5=["then"];var WM0;const t1=class t1{constructor(e,t,n,r){r0(this,"target");r0(this,"interface");r0(this,"runner");r0(this,"filters");r0(this,WM0);r0(this,"fallback");e0(typeof e=="string"||Xz(e),"invalid value for Contract target","target",e),n==null&&(n=null);const i=pm.from(t);U0(this,{target:e,runner:n,interface:i}),Object.defineProperty(this,y9,{value:{}});let a,o=null,s=null;if(r){const c=io(n);s=new Wy(this.interface,c,r)}let f=new Map;if(typeof e=="string")if(Nu(e))o=e,a=Promise.resolve(e);else{const c=es(n,"resolveName");if(!Sp(c))throw ne("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});a=c.resolveName(e).then(d=>{if(d==null)throw ne("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return xt(this).addr=d,d})}else a=e.getAddress().then(c=>{if(c==null)throw new Error("TODO");return xt(this).addr=c,c});VO0(this,{addrPromise:a,addr:o,deployTx:s,subs:f});const l=new Proxy({},{get:(c,d,E)=>{if(typeof d=="symbol"||n5.indexOf(d)>=0)return Reflect.get(c,d,E);try{return this.getEvent(d)}catch(p){if(!ln(p,"INVALID_ARGUMENT")||p.argument!=="key")throw p}},has:(c,d)=>n5.indexOf(d)>=0?Reflect.has(c,d):Reflect.has(c,d)||this.interface.hasEvent(String(d))});return U0(this,{filters:l}),U0(this,{fallback:i.receive||i.fallback?qO0(this):null}),new Proxy(this,{get:(c,d,E)=>{if(typeof d=="symbol"||d in c||n5.indexOf(d)>=0)return Reflect.get(c,d,E);try{return c.getFunction(d)}catch(p){if(!ln(p,"INVALID_ARGUMENT")||p.argument!=="key")throw p}},has:(c,d)=>typeof d=="symbol"||d in c||n5.indexOf(d)>=0?Reflect.has(c,d):c.interface.hasFunction(d)})}connect(e){return new t1(this.target,this.interface,e)}attach(e){return new t1(e,this.interface,this.runner)}async getAddress(){return await xt(this).addrPromise}async getDeployedCode(){const e=io(this.runner);E0(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const t=await e.getCode(await this.getAddress());return t==="0x"?null:t}async waitForDeployment(){const e=this.deploymentTransaction();if(e)return await e.wait(),this;if(await this.getDeployedCode()!=null)return this;const n=io(this.runner);return E0(n!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((r,i)=>{const a=async()=>{try{if(await this.getDeployedCode()!=null)return r(this);n.once("block",a)}catch(o){i(o)}};a()})}deploymentTransaction(){return xt(this).deployTx}getFunction(e){return typeof e!="string"&&(e=e.format()),HO0(this,e)}getEvent(e){return typeof e!="string"&&(e=e.format()),GO0(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,t,n){t==null&&(t=0),n==null&&(n="latest");const{addr:r,addrPromise:i}=xt(this),a=r||await i,{fragment:o,topics:s}=await qy(this,e),f={address:a,topics:s,fromBlock:t,toBlock:n},l=io(this.runner);return E0(l,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await l.getLogs(f)).map(c=>{let d=o;if(d==null)try{d=this.interface.getEvent(c.topics[0])}catch{}if(d)try{return new Uy(c,this.interface,d)}catch(E){return new qL(c,E)}return new e6(c,l)})}async on(e,t){const n=await $k(this,"on",e);return n.listeners.push({listener:t,once:!1}),n.start(),this}async once(e,t){const n=await $k(this,"once",e);return n.listeners.push({listener:t,once:!0}),n.start(),this}async emit(e,...t){return await Cm(this,e,t,null)}async listenerCount(e){if(e){const r=await Pl(this,e);return r?r.listeners.length:0}const{subs:t}=xt(this);let n=0;for(const{listeners:r}of t.values())n+=r.length;return n}async listeners(e){if(e){const r=await Pl(this,e);return r?r.listeners.map(({listener:i})=>i):[]}const{subs:t}=xt(this);let n=[];for(const{listeners:r}of t.values())n=n.concat(r.map(({listener:i})=>i));return n}async off(e,t){const n=await Pl(this,e);if(!n)return this;if(t){const r=n.listeners.map(({listener:i})=>i).indexOf(t);r>=0&&n.listeners.splice(r,1)}return(t==null||n.listeners.length===0)&&(n.stop(),xt(this).subs.delete(n.tag)),this}async removeAllListeners(e){if(e){const t=await Pl(this,e);if(!t)return this;t.stop(),xt(this).subs.delete(t.tag)}else{const{subs:t}=xt(this);for(const{tag:n,stop:r}of t.values())r(),t.delete(n)}return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return await this.off(e,t)}static buildClass(e){class t extends t1{constructor(r,i=null){super(r,e,i)}}return t}static from(e,t,n){return n==null&&(n=null),new this(e,t,n)}};WM0=y9;let mm=t1;function JO0(){return mm}class Ro extends JO0(){}function Th(u){return u.match(/^ipfs:\/\/ipfs\//i)?u=u.substring(12):u.match(/^ipfs:\/\//i)?u=u.substring(7):e0(!1,"unsupported IPFS format","link",u),`https://gateway.ipfs.io/ipfs/${u}`}class ZO0{constructor(e){r0(this,"name");U0(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,t){throw new Error("unsupported coin")}async decodeAddress(e,t){throw new Error("unsupported coin")}}const YL=new RegExp("^(ipfs)://(.*)$","i"),Uk=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),YL,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];var Ui,Co,Wi,Gs,_9,XL;const bf=class bf{constructor(e,t,n){a0(this,Wi);r0(this,"provider");r0(this,"address");r0(this,"name");a0(this,Ui,void 0);a0(this,Co,void 0);U0(this,{provider:e,address:t,name:n}),M(this,Ui,null),M(this,Co,new Ro(t,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],e))}async supportsWildcard(){return k(this,Ui)==null&&M(this,Ui,(async()=>{try{return await k(this,Co).supportsInterface("0x9061b923")}catch(e){if(ln(e,"CALL_EXCEPTION"))return!1;throw M(this,Ui,null),e}})()),await k(this,Ui)}async getAddress(e){if(e==null&&(e=60),e===60)try{const i=await k0(this,Wi,Gs).call(this,"addr(bytes32)");return i==null||i===am?null:i}catch(i){if(ln(i,"CALL_EXCEPTION"))return null;throw i}if(e>=0&&e<2147483648){let i=e+2147483648;const a=await k0(this,Wi,Gs).call(this,"addr(bytes32,uint)",[i]);if(Nu(a,20))return su(a)}let t=null;for(const i of this.provider.plugins)if(i instanceof ZO0&&i.supportsCoinType(e)){t=i;break}if(t==null)return null;const n=await k0(this,Wi,Gs).call(this,"addr(bytes32,uint)",[e]);if(n==null||n==="0x")return null;const r=await t.decodeAddress(e,n);if(r!=null)return r;E0(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:n}})}async getText(e){const t=await k0(this,Wi,Gs).call(this,"text(bytes32,string)",[e]);return t==null||t==="0x"?null:t}async getContentHash(){const e=await k0(this,Wi,Gs).call(this,"contenthash(bytes32)");if(e==null||e==="0x")return null;const t=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){const r=t[1]==="e3010170"?"ipfs":"ipns",i=parseInt(t[4],16);if(t[5].length===i*2)return`${r}://${MP0("0x"+t[2])}`}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&n[1].length===64)return`bzz://${n[1]}`;E0(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const e=[{type:"name",value:this.name}];try{const t=await this.getText("avatar");if(t==null)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:t});for(let n=0;n{if(!Array.isArray(e))throw new Error("not an array");return e.map(t=>u(t))}}function t6(u,e){return t=>{const n={};for(const r in u){let i=r;if(e&&r in e&&!(i in t)){for(const a of e[r])if(a in t){i=a;break}}try{const a=u[r](t[i]);a!==void 0&&(n[r]=a)}catch(a){const o=a instanceof Error?a.message:"not-an-error";E0(!1,`invalid value for value.${r} (${o})`,"BAD_DATA",{value:t})}}return n}}function YO0(u){switch(u){case!0:case"true":return!0;case!1:case"false":return!1}e0(!1,`invalid boolean; ${JSON.stringify(u)}`,"value",u)}function o3(u){return e0(Nu(u,!0),"invalid data","value",u),u}function cn(u){return e0(Nu(u,32),"invalid hash","value",u),u}const XO0=t6({address:su,blockHash:cn,blockNumber:Z0,data:o3,index:Z0,removed:Su(YO0,!1),topics:Hy(cn),transactionHash:cn,transactionIndex:Z0},{index:["logIndex"]});function uR0(u){return XO0(u)}const eR0=t6({hash:Su(cn),parentHash:cn,number:Z0,timestamp:Z0,nonce:Su(o3),difficulty:j0,gasLimit:j0,gasUsed:j0,miner:Su(su),extraData:o3,baseFeePerGas:Su(j0)});function tR0(u){const e=eR0(u);return e.transactions=u.transactions.map(t=>typeof t=="string"?t:u$(t)),e}const nR0=t6({transactionIndex:Z0,blockNumber:Z0,transactionHash:cn,address:su,topics:Hy(cn),data:o3,index:Z0,blockHash:cn},{index:["logIndex"]});function rR0(u){return nR0(u)}const iR0=t6({to:Su(su,null),from:Su(su,null),contractAddress:Su(su,null),index:Z0,root:Su(M0),gasUsed:j0,logsBloom:Su(o3),blockHash:cn,hash:cn,logs:Hy(rR0),blockNumber:Z0,cumulativeGasUsed:j0,effectiveGasPrice:Su(j0),status:Su(Z0),type:Su(Z0,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function aR0(u){return iR0(u)}function u$(u){u.to&&j0(u.to)===Wk&&(u.to="0x0000000000000000000000000000000000000000");const e=t6({hash:cn,type:t=>t==="0x"||t==null?0:Z0(t),accessList:Su(As,null),blockHash:Su(cn,null),blockNumber:Su(Z0,null),transactionIndex:Su(Z0,null),from:su,gasPrice:Su(j0),maxPriorityFeePerGas:Su(j0),maxFeePerGas:Su(j0),gasLimit:j0,to:Su(su,null),value:j0,nonce:Z0,data:o3,creates:Su(su,null),chainId:Su(j0,null)},{data:["input"],gasLimit:["gas"]})(u);if(e.to==null&&e.creates==null&&(e.creates=iI0(e)),(u.type===1||u.type===2)&&u.accessList==null&&(e.accessList=[]),u.signature?e.signature=Hn.from(u.signature):e.signature=Hn.from(u),e.chainId==null){const t=e.signature.legacyChainId;t!=null&&(e.chainId=t)}return e.blockHash&&j0(e.blockHash)===Wk&&(e.blockHash=null),e}const oR0="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class n6{constructor(e){r0(this,"name");U0(this,{name:e})}clone(){return new n6(this.name)}}class Tp extends n6{constructor(t,n){t==null&&(t=0);super(`org.ethers.network.plugins.GasCost#${t||0}`);r0(this,"effectiveBlock");r0(this,"txBase");r0(this,"txCreate");r0(this,"txDataZero");r0(this,"txDataNonzero");r0(this,"txAccessListStorageKey");r0(this,"txAccessListAddress");const r={effectiveBlock:t};function i(a,o){let s=(n||{})[a];s==null&&(s=o),e0(typeof s=="number",`invalud value for ${a}`,"costs",n),r[a]=s}i("txBase",21e3),i("txCreate",32e3),i("txDataZero",4),i("txDataNonzero",16),i("txAccessListStorageKey",1900),i("txAccessListAddress",2400),U0(this,r)}clone(){return new Tp(this.effectiveBlock,this)}}class Pp extends n6{constructor(t,n){super("org.ethers.plugins.network.Ens");r0(this,"address");r0(this,"targetNetwork");U0(this,{address:t||oR0,targetNetwork:n??1})}clone(){return new Pp(this.address,this.targetNetwork)}}var ec,tc;class sR0 extends n6{constructor(t,n){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");a0(this,ec,void 0);a0(this,tc,void 0);M(this,ec,t),M(this,tc,n)}get url(){return k(this,ec)}get processFunc(){return k(this,tc)}clone(){return this}}ec=new WeakMap,tc=new WeakMap;const Ph=new Map;var a4,o4,qi;const gf=class gf{constructor(e,t){a0(this,a4,void 0);a0(this,o4,void 0);a0(this,qi,void 0);M(this,a4,e),M(this,o4,j0(t)),M(this,qi,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return k(this,a4)}set name(e){M(this,a4,e)}get chainId(){return k(this,o4)}set chainId(e){M(this,o4,j0(e,"chainId"))}matches(e){if(e==null)return!1;if(typeof e=="string"){try{return this.chainId===j0(e)}catch{}return this.name===e}if(typeof e=="number"||typeof e=="bigint"){try{return this.chainId===j0(e)}catch{}return!1}if(typeof e=="object"){if(e.chainId!=null){try{return this.chainId===j0(e.chainId)}catch{}return!1}return e.name!=null?this.name===e.name:!1}return!1}get plugins(){return Array.from(k(this,qi).values())}attachPlugin(e){if(k(this,qi).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return k(this,qi).set(e.name,e.clone()),this}getPlugin(e){return k(this,qi).get(e)||null}getPlugins(e){return this.plugins.filter(t=>t.name.split("#")[0]===e)}clone(){const e=new gf(this.name,this.chainId);return this.plugins.forEach(t=>{e.attachPlugin(t.clone())}),e}computeIntrinsicGas(e){const t=this.getPlugin("org.ethers.plugins.network.GasCost")||new Tp;let n=t.txBase;if(e.to==null&&(n+=t.txCreate),e.data)for(let r=2;r9){let r=BigInt(n[1].substring(0,9));n[1].substring(9).match(/^0+$/)||r++,n[1]=r.toString()}return BigInt(n[0]+n[1])}function Hk(u){return new sR0(u,async(e,t,n)=>{n.setHeader("User-Agent","ethers");let r;try{const[i,a]=await Promise.all([n.send(),e()]);r=i;const o=r.bodyJson.standard;return{gasPrice:a.gasPrice,maxFeePerGas:qk(o.maxFee,9),maxPriorityFeePerGas:qk(o.maxPriorityFee,9)}}catch(i){E0(!1,`error encountered with polygon gas station (${JSON.stringify(n.url)})`,"SERVER_ERROR",{request:n,response:r,error:i})}})}let Gk=!1;function fR0(){if(Gk)return;Gk=!0;function u(e,t,n){const r=function(){const i=new Er(e,t);return n.ensNetwork!=null&&i.attachPlugin(new Pp(null,n.ensNetwork)),i.attachPlugin(new Tp),(n.plugins||[]).forEach(a=>{i.attachPlugin(a)}),i};Er.register(e,r),Er.register(t,r),n.altNames&&n.altNames.forEach(i=>{Er.register(i,r)})}u("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),u("ropsten",3,{ensNetwork:3}),u("rinkeby",4,{ensNetwork:4}),u("goerli",5,{ensNetwork:5}),u("kovan",42,{ensNetwork:42}),u("sepolia",11155111,{ensNetwork:11155111}),u("classic",61,{}),u("classicKotti",6,{}),u("arbitrum",42161,{ensNetwork:1}),u("arbitrum-goerli",421613,{}),u("base",8453,{ensNetwork:1}),u("base-goerli",84531,{}),u("base-sepolia",84532,{}),u("bnb",56,{ensNetwork:1}),u("bnbt",97,{}),u("linea",59144,{ensNetwork:1}),u("linea-goerli",59140,{}),u("matic",137,{ensNetwork:1,plugins:[Hk("https://gasstation.polygon.technology/v2")]}),u("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[Hk("https://gasstation-testnet.polygon.technology/v2")]}),u("optimism",10,{ensNetwork:1,plugins:[]}),u("optimism-goerli",420,{}),u("xdai",100,{ensNetwork:1})}function bm(u){return JSON.parse(JSON.stringify(u))}var Lr,Yt,Hi,rr,s4,O5;class lR0{constructor(e){a0(this,s4);a0(this,Lr,void 0);a0(this,Yt,void 0);a0(this,Hi,void 0);a0(this,rr,void 0);M(this,Lr,e),M(this,Yt,null),M(this,Hi,4e3),M(this,rr,-2)}get pollingInterval(){return k(this,Hi)}set pollingInterval(e){M(this,Hi,e)}start(){k(this,Yt)||(M(this,Yt,k(this,Lr)._setTimeout(k0(this,s4,O5).bind(this),k(this,Hi))),k0(this,s4,O5).call(this))}stop(){k(this,Yt)&&(k(this,Lr)._clearTimeout(k(this,Yt)),M(this,Yt,null))}pause(e){this.stop(),e&&M(this,rr,-2)}resume(){this.start()}}Lr=new WeakMap,Yt=new WeakMap,Hi=new WeakMap,rr=new WeakMap,s4=new WeakSet,O5=async function(){try{const e=await k(this,Lr).getBlockNumber();if(k(this,rr)===-2){M(this,rr,e);return}if(e!==k(this,rr)){for(let t=k(this,rr)+1;t<=e;t++){if(k(this,Yt)==null)return;await k(this,Lr).emit("block",t)}M(this,rr,e)}}catch{}k(this,Yt)!=null&&M(this,Yt,k(this,Lr)._setTimeout(k0(this,s4,O5).bind(this),k(this,Hi)))};var mo,bo,Gi;class Gy{constructor(e){a0(this,mo,void 0);a0(this,bo,void 0);a0(this,Gi,void 0);M(this,mo,e),M(this,Gi,!1),M(this,bo,t=>{this._poll(t,k(this,mo))})}async _poll(e,t){throw new Error("sub-classes must override this")}start(){k(this,Gi)||(M(this,Gi,!0),k(this,bo).call(this,-2),k(this,mo).on("block",k(this,bo)))}stop(){k(this,Gi)&&(M(this,Gi,!1),k(this,mo).off("block",k(this,bo)))}pause(e){this.stop()}resume(){this.start()}}mo=new WeakMap,bo=new WeakMap,Gi=new WeakMap;var f4,$r;class cR0 extends Gy{constructor(t,n){super(t);a0(this,f4,void 0);a0(this,$r,void 0);M(this,f4,n),M(this,$r,-2)}pause(t){t&&M(this,$r,-2),super.pause(t)}async _poll(t,n){const r=await n.getBlock(k(this,f4));r!=null&&(k(this,$r)===-2?M(this,$r,r.number):r.number>k(this,$r)&&(n.emit(k(this,f4),r.number),M(this,$r,r.number)))}}f4=new WeakMap,$r=new WeakMap;var S9;class dR0 extends Gy{constructor(t,n){super(t);a0(this,S9,void 0);M(this,S9,bm(n))}async _poll(t,n){throw new Error("@TODO")}}S9=new WeakMap;var l4;class ER0 extends Gy{constructor(t,n){super(t);a0(this,l4,void 0);M(this,l4,n)}async _poll(t,n){const r=await n.getTransactionReceipt(k(this,l4));r&&n.emit(k(this,l4),r)}}l4=new WeakMap;var Ur,c4,d4,Vi,Xt,T9,e$;class Vy{constructor(e,t){a0(this,T9);a0(this,Ur,void 0);a0(this,c4,void 0);a0(this,d4,void 0);a0(this,Vi,void 0);a0(this,Xt,void 0);M(this,Ur,e),M(this,c4,bm(t)),M(this,d4,k0(this,T9,e$).bind(this)),M(this,Vi,!1),M(this,Xt,-2)}start(){k(this,Vi)||(M(this,Vi,!0),k(this,Xt)===-2&&k(this,Ur).getBlockNumber().then(e=>{M(this,Xt,e)}),k(this,Ur).on("block",k(this,d4)))}stop(){k(this,Vi)&&(M(this,Vi,!1),k(this,Ur).off("block",k(this,d4)))}pause(e){this.stop(),e&&M(this,Xt,-2)}resume(){this.start()}}Ur=new WeakMap,c4=new WeakMap,d4=new WeakMap,Vi=new WeakMap,Xt=new WeakMap,T9=new WeakSet,e$=async function(e){if(k(this,Xt)===-2)return;const t=bm(k(this,c4));t.fromBlock=k(this,Xt)+1,t.toBlock=e;const n=await k(this,Ur).getLogs(t);if(n.length===0){k(this,Xt){if(n==null)return"null";if(typeof n=="bigint")return`bigint:${n.toString()}`;if(typeof n=="string")return n.toLowerCase();if(typeof n=="object"&&!Array.isArray(n)){const r=Object.keys(n);return r.sort(),r.reduce((i,a)=>(i[a]=n[a],i),{})}return n})}class t${constructor(e){r0(this,"name");U0(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function CR0(u){return JSON.parse(JSON.stringify(u))}function gm(u){return u=Array.from(new Set(u).values()),u.sort(),u}async function Ih(u,e){if(u==null)throw new Error("invalid event");if(Array.isArray(u)&&(u={topics:u}),typeof u=="string")switch(u){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:u,tag:u}}if(Nu(u,32)){const t=u.toLowerCase();return{type:"transaction",tag:R5("tx",{hash:t}),hash:t}}if(u.orphan){const t=u;return{type:"orphan",tag:R5("orphan",t),filter:CR0(t)}}if(u.address||u.topics){const t=u,n={topics:(t.topics||[]).map(r=>r==null?null:Array.isArray(r)?gm(r.map(i=>i.toLowerCase())):r.toLowerCase())};if(t.address){const r=[],i=[],a=o=>{Nu(o)?r.push(o):i.push((async()=>{r.push(await Ke(o,e))})())};Array.isArray(t.address)?t.address.forEach(a):a(t.address),i.length&&await Promise.all(i),n.address=gm(r.map(o=>o.toLowerCase()))}return{filter:n,tag:R5("event",n),type:"event"}}e0(!1,"unknown ProviderEvent","event",u)}function Oh(){return new Date().getTime()}const mR0={cacheTimeout:250,pollingInterval:4e3};var Ie,Ki,Oe,E4,St,go,Qi,Wr,nc,un,p4,h4,Ue,wt,rc,Am,ic,ym,Ao,Il,ac,vm,yo,Ol,C4,N5;class bR0{constructor(e,t){a0(this,Ue);a0(this,rc);a0(this,ic);a0(this,Ao);a0(this,ac);a0(this,yo);a0(this,C4);a0(this,Ie,void 0);a0(this,Ki,void 0);a0(this,Oe,void 0);a0(this,E4,void 0);a0(this,St,void 0);a0(this,go,void 0);a0(this,Qi,void 0);a0(this,Wr,void 0);a0(this,nc,void 0);a0(this,un,void 0);a0(this,p4,void 0);a0(this,h4,void 0);if(M(this,h4,Object.assign({},mR0,t||{})),e==="any")M(this,go,!0),M(this,St,null);else if(e){const n=Er.from(e);M(this,go,!1),M(this,St,Promise.resolve(n)),setTimeout(()=>{this.emit("network",n,null)},0)}else M(this,go,!1),M(this,St,null);M(this,Wr,-1),M(this,Qi,new Map),M(this,Ie,new Map),M(this,Ki,new Map),M(this,Oe,null),M(this,E4,!1),M(this,nc,1),M(this,un,new Map),M(this,p4,!1)}get pollingInterval(){return k(this,h4).pollingInterval}get provider(){return this}get plugins(){return Array.from(k(this,Ki).values())}attachPlugin(e){if(k(this,Ki).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return k(this,Ki).set(e.name,e.connect(this)),this}getPlugin(e){return k(this,Ki).get(e)||null}get disableCcipRead(){return k(this,p4)}set disableCcipRead(e){M(this,p4,!!e)}async ccipReadFetch(e,t,n){if(this.disableCcipRead||n.length===0||e.to==null)return null;const r=e.to.toLowerCase(),i=t.toLowerCase(),a=[];for(let o=0;o=500,`response not found during CCIP fetch: ${c}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:s,errorMessage:c}}),a.push(c)}E0(!1,`error encountered during CCIP fetch: ${a.map(o=>JSON.stringify(o)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:n,errorMessages:a}})}_wrapBlock(e,t){return new MO0(tR0(e),this)}_wrapLog(e,t){return new e6(uR0(e),this)}_wrapTransactionReceipt(e,t){return new $L(aR0(e),this)}_wrapTransactionResponse(e,t){return new H1(u$(e),this)}_detectNetwork(){E0(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){E0(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=Z0(await k0(this,Ue,wt).call(this,{method:"getBlockNumber"}),"%response");return k(this,Wr)>=0&&M(this,Wr,e),e}_getAddress(e){return Ke(e,this)}_getBlockTag(e){if(e==null)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}if(Nu(e))return Nu(e,32)?e:hf(e);if(typeof e=="bigint"&&(e=Z0(e,"blockTag")),typeof e=="number")return e>=0?hf(e):k(this,Wr)>=0?hf(k(this,Wr)+e):this.getBlockNumber().then(t=>hf(t+e));e0(!1,"invalid blockTag","blockTag",e)}_getFilter(e){const t=(e.topics||[]).map(s=>s==null?null:Array.isArray(s)?gm(s.map(f=>f.toLowerCase())):s.toLowerCase()),n="blockHash"in e?e.blockHash:void 0,r=(s,f,l)=>{let c;switch(s.length){case 0:break;case 1:c=s[0];break;default:s.sort(),c=s}if(n&&(f!=null||l!=null))throw new Error("invalid filter");const d={};return c&&(d.address=c),t.length&&(d.topics=t),f&&(d.fromBlock=f),l&&(d.toBlock=l),n&&(d.blockHash=n),d};let i=[];if(e.address)if(Array.isArray(e.address))for(const s of e.address)i.push(this._getAddress(s));else i.push(this._getAddress(e.address));let a;"fromBlock"in e&&(a=this._getBlockTag(e.fromBlock));let o;return"toBlock"in e&&(o=this._getBlockTag(e.toBlock)),i.filter(s=>typeof s!="string").length||a!=null&&typeof a!="string"||o!=null&&typeof o!="string"?Promise.all([Promise.all(i),a,o]).then(s=>r(s[0],s[1],s[2])):r(i,a,o)}_getTransactionRequest(e){const t=A9(e),n=[];if(["to","from"].forEach(r=>{if(t[r]==null)return;const i=Ke(t[r],this);r5(i)?n.push(async function(){t[r]=await i}()):t[r]=i}),t.blockTag!=null){const r=this._getBlockTag(t.blockTag);r5(r)?n.push(async function(){t.blockTag=await r}()):t.blockTag=r}return n.length?async function(){return await Promise.all(n),t}():t}async getNetwork(){if(k(this,St)==null){const r=this._detectNetwork().then(i=>(this.emit("network",i,null),i),i=>{throw k(this,St)===r&&M(this,St,null),i});return M(this,St,r),(await r).clone()}const e=k(this,St),[t,n]=await Promise.all([e,this._detectNetwork()]);return t.chainId!==n.chainId&&(k(this,go)?(this.emit("network",n,t),k(this,St)===e&&M(this,St,Promise.resolve(n))):E0(!1,`network changed: ${t.chainId} => ${n.chainId} `,"NETWORK_ERROR",{event:"changed"})),t.clone()}async getFeeData(){const e=await this.getNetwork(),t=async()=>{const{_block:r,gasPrice:i,priorityFee:a}=await qe({_block:k0(this,ac,vm).call(this,"latest",!1),gasPrice:(async()=>{try{const l=await k0(this,Ue,wt).call(this,{method:"getGasPrice"});return j0(l,"%response")}catch{}return null})(),priorityFee:(async()=>{try{const l=await k0(this,Ue,wt).call(this,{method:"getPriorityFee"});return j0(l,"%response")}catch{}return null})()});let o=null,s=null;const f=this._wrapBlock(r,e);return f&&f.baseFeePerGas&&(s=a??BigInt("1000000000"),o=f.baseFeePerGas*pR0+s),new zk(i,o,s)},n=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(n){const r=new ai(n.url),i=await n.processFunc(t,this,r);return new zk(i.gasPrice,i.maxFeePerGas,i.maxPriorityFeePerGas)}return await t()}async estimateGas(e){let t=this._getTransactionRequest(e);return r5(t)&&(t=await t),j0(await k0(this,Ue,wt).call(this,{method:"estimateGas",transaction:t}),"%response")}async call(e){const{tx:t,blockTag:n}=await qe({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await k0(this,ic,ym).call(this,k0(this,rc,Am).call(this,t,n,e.enableCcipRead?0:-1))}async getBalance(e,t){return j0(await k0(this,Ao,Il).call(this,{method:"getBalance"},e,t),"%response")}async getTransactionCount(e,t){return Z0(await k0(this,Ao,Il).call(this,{method:"getTransactionCount"},e,t),"%response")}async getCode(e,t){return M0(await k0(this,Ao,Il).call(this,{method:"getCode"},e,t))}async getStorage(e,t,n){const r=j0(t,"position");return M0(await k0(this,Ao,Il).call(this,{method:"getStorage",position:r},e,n))}async broadcastTransaction(e){const{blockNumber:t,hash:n,network:r}=await qe({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),i=b9.from(e);if(i.hash!==n)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(i,r).replaceableTransaction(t)}async getBlock(e,t){const{network:n,params:r}=await qe({network:this.getNetwork(),params:k0(this,ac,vm).call(this,e,!!t)});return r==null?null:this._wrapBlock(r,n)}async getTransaction(e){const{network:t,params:n}=await qe({network:this.getNetwork(),params:k0(this,Ue,wt).call(this,{method:"getTransaction",hash:e})});return n==null?null:this._wrapTransactionResponse(n,t)}async getTransactionReceipt(e){const{network:t,params:n}=await qe({network:this.getNetwork(),params:k0(this,Ue,wt).call(this,{method:"getTransactionReceipt",hash:e})});if(n==null)return null;if(n.gasPrice==null&&n.effectiveGasPrice==null){const r=await k0(this,Ue,wt).call(this,{method:"getTransaction",hash:e});if(r==null)throw new Error("report this; could not find tx or effectiveGasPrice");n.effectiveGasPrice=r.gasPrice}return this._wrapTransactionReceipt(n,t)}async getTransactionResult(e){const{result:t}=await qe({network:this.getNetwork(),result:k0(this,Ue,wt).call(this,{method:"getTransactionResult",hash:e})});return t==null?null:M0(t)}async getLogs(e){let t=this._getFilter(e);r5(t)&&(t=await t);const{network:n,params:r}=await qe({network:this.getNetwork(),params:k0(this,Ue,wt).call(this,{method:"getLogs",filter:t})});return r.map(i=>this._wrapLog(i,n))}_getProvider(e){E0(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await v9.fromName(this,e)}async getAvatar(e){const t=await this.getResolver(e);return t?await t.getAvatar():null}async resolveName(e){const t=await this.getResolver(e);return t?await t.getAddress():null}async lookupAddress(e){e=su(e);const t=dm(e.substring(2).toLowerCase()+".addr.reverse");try{const n=await v9.getEnsAddress(this),i=await new Ro(n,["function resolver(bytes32) view returns (address)"],this).resolver(t);if(i==null||i===am)return null;const o=await new Ro(i,["function name(bytes32) view returns (string)"],this).name(t);return await this.resolveName(o)!==e?null:o}catch(n){if(ln(n,"BAD_DATA")&&n.value==="0x"||ln(n,"CALL_EXCEPTION"))return null;throw n}return null}async waitForTransaction(e,t,n){const r=t??1;return r===0?this.getTransactionReceipt(e):new Promise(async(i,a)=>{let o=null;const s=async f=>{try{const l=await this.getTransactionReceipt(e);if(l!=null&&f-l.blockNumber+1>=r){i(l),o&&(clearTimeout(o),o=null);return}}catch(l){console.log("EEE",l)}this.once("block",s)};n!=null&&(o=setTimeout(()=>{o!=null&&(o=null,this.off("block",s),a(ne("timeout","TIMEOUT",{reason:"timeout"})))},n)),s(await this.getBlockNumber())})}async waitForBlock(e){E0(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const t=k(this,un).get(e);t&&(t.timer&&clearTimeout(t.timer),k(this,un).delete(e))}_setTimeout(e,t){t==null&&(t=0);const n=G3(this,nc)._++,r=()=>{k(this,un).delete(n),e()};if(this.paused)k(this,un).set(n,{timer:null,func:r,time:t});else{const i=setTimeout(r,t);k(this,un).set(n,{timer:i,func:r,time:Oh()})}return n}_forEachSubscriber(e){for(const t of k(this,Ie).values())e(t.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new t$(e.type);case"block":{const t=new lR0(this);return t.pollingInterval=this.pollingInterval,t}case"safe":case"finalized":return new cR0(this,e.type);case"event":return new Vy(this,e.filter);case"transaction":return new ER0(this,e.hash);case"orphan":return new dR0(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,t){for(const n of k(this,Ie).values())if(n.subscriber===e){n.started&&n.subscriber.stop(),n.subscriber=t,n.started&&t.start(),k(this,Oe)!=null&&t.pause(k(this,Oe));break}}async on(e,t){const n=await k0(this,C4,N5).call(this,e);return n.listeners.push({listener:t,once:!1}),n.started||(n.subscriber.start(),n.started=!0,k(this,Oe)!=null&&n.subscriber.pause(k(this,Oe))),this}async once(e,t){const n=await k0(this,C4,N5).call(this,e);return n.listeners.push({listener:t,once:!0}),n.started||(n.subscriber.start(),n.started=!0,k(this,Oe)!=null&&n.subscriber.pause(k(this,Oe))),this}async emit(e,...t){const n=await k0(this,yo,Ol).call(this,e,t);if(!n||n.listeners.length===0)return!1;const r=n.listeners.length;return n.listeners=n.listeners.filter(({listener:i,once:a})=>{const o=new $z(this,a?null:i,e);try{i.call(this,...t,o)}catch{}return!a}),n.listeners.length===0&&(n.started&&n.subscriber.stop(),k(this,Ie).delete(n.tag)),r>0}async listenerCount(e){if(e){const n=await k0(this,yo,Ol).call(this,e);return n?n.listeners.length:0}let t=0;for(const{listeners:n}of k(this,Ie).values())t+=n.length;return t}async listeners(e){if(e){const n=await k0(this,yo,Ol).call(this,e);return n?n.listeners.map(({listener:r})=>r):[]}let t=[];for(const{listeners:n}of k(this,Ie).values())t=t.concat(n.map(({listener:r})=>r));return t}async off(e,t){const n=await k0(this,yo,Ol).call(this,e);if(!n)return this;if(t){const r=n.listeners.map(({listener:i})=>i).indexOf(t);r>=0&&n.listeners.splice(r,1)}return(!t||n.listeners.length===0)&&(n.started&&n.subscriber.stop(),k(this,Ie).delete(n.tag)),this}async removeAllListeners(e){if(e){const{tag:t,started:n,subscriber:r}=await k0(this,C4,N5).call(this,e);n&&r.stop(),k(this,Ie).delete(t)}else for(const[t,{started:n,subscriber:r}]of k(this,Ie))n&&r.stop(),k(this,Ie).delete(t);return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return this.off(e,t)}get destroyed(){return k(this,E4)}destroy(){this.removeAllListeners();for(const e of k(this,un).keys())this._clearTimeout(e);M(this,E4,!0)}get paused(){return k(this,Oe)!=null}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(M(this,Wr,-1),k(this,Oe)!=null){if(k(this,Oe)==!!e)return;E0(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(t=>t.pause(e)),M(this,Oe,!!e);for(const t of k(this,un).values())t.timer&&clearTimeout(t.timer),t.time=Oh()-t.time}resume(){if(k(this,Oe)!=null){this._forEachSubscriber(e=>e.resume()),M(this,Oe,null);for(const e of k(this,un).values()){let t=e.time;t<0&&(t=0),e.time=Oh(),setTimeout(e.func,t)}}}}Ie=new WeakMap,Ki=new WeakMap,Oe=new WeakMap,E4=new WeakMap,St=new WeakMap,go=new WeakMap,Qi=new WeakMap,Wr=new WeakMap,nc=new WeakMap,un=new WeakMap,p4=new WeakMap,h4=new WeakMap,Ue=new WeakSet,wt=async function(e){const t=k(this,h4).cacheTimeout;if(t<0)return await this._perform(e);const n=R5(e.method,e);let r=k(this,Qi).get(n);return r||(r=this._perform(e),k(this,Qi).set(n,r),setTimeout(()=>{k(this,Qi).get(n)===r&&k(this,Qi).delete(n)},t)),await r},rc=new WeakSet,Am=async function(e,t,n){E0(n=0&&t==="latest"&&r.to!=null&&Wu(i.data,0,4)==="0x556f1830"){const a=i.data,o=await Ke(r.to,this);let s;try{s=BR0(Wu(i.data,4))}catch(c){E0(!1,c.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:r,info:{data:a}})}E0(s.sender.toLowerCase()===o.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:a,reason:"OffchainLookup",transaction:r,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:s.errorArgs}});const f=await this.ccipReadFetch(r,s.calldata,s.urls);E0(f!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:r,info:{data:i.data,errorArgs:s.errorArgs}});const l={to:o,data:fe([s.selector,vR0([f,s.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:l});try{const c=await k0(this,rc,Am).call(this,l,t,n+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},l),result:c}),c}catch(c){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},l),error:c}),c}}throw i}},ic=new WeakSet,ym=async function(e){const{value:t}=await qe({network:this.getNetwork(),value:e});return t},Ao=new WeakSet,Il=async function(e,t,n){let r=this._getAddress(t),i=this._getBlockTag(n);return(typeof r!="string"||typeof i!="string")&&([r,i]=await Promise.all([r,i])),await k0(this,ic,ym).call(this,k0(this,Ue,wt).call(this,Object.assign(e,{address:r,blockTag:i})))},ac=new WeakSet,vm=async function(e,t){if(Nu(e,32))return await k0(this,Ue,wt).call(this,{method:"getBlock",blockHash:e,includeTransactions:t});let n=this._getBlockTag(e);return typeof n!="string"&&(n=await n),await k0(this,Ue,wt).call(this,{method:"getBlock",blockTag:n,includeTransactions:t})},yo=new WeakSet,Ol=async function(e,t){let n=await Ih(e,this);return n.type==="event"&&t&&t.length>0&&t[0].removed===!0&&(n=await Ih({orphan:"drop-log",log:t[0]},this)),k(this,Ie).get(n.tag)||null},C4=new WeakSet,N5=async function(e){const t=await Ih(e,this),n=t.tag;let r=k(this,Ie).get(n);return r||(r={subscriber:this._getSubscriber(t),tag:n,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},k(this,Ie).set(n,r)),r};function gR0(u,e){try{const t=Bm(u,e);if(t)return Ry(t)}catch{}return null}function Bm(u,e){if(u==="0x")return null;try{const t=Z0(Wu(u,e,e+32)),n=Z0(Wu(u,t,t+32));return Wu(u,t+32,t+32+n)}catch{}return null}function Vk(u){const e=jt(u);if(e.length>32)throw new Error("internal; should not happen");const t=new Uint8Array(32);return t.set(e,32-e.length),t}function AR0(u){if(u.length%32===0)return u;const e=new Uint8Array(Math.ceil(u.length/32)*32);return e.set(u),e}const yR0=new Uint8Array([]);function vR0(u){const e=[];let t=0;for(let n=0;n=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const t=Wu(u,0,32);E0(Wu(t,0,12)===Wu(Kk,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),e.sender=Wu(t,12);try{const n=[],r=Z0(Wu(u,32,64)),i=Z0(Wu(u,r,r+32)),a=Wu(u,r+32);for(let o=0;oe[n]),e}function Rs(u,e){if(u.provider)return u.provider;E0(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:e})}async function Qk(u,e){let t=A9(e);if(t.to!=null&&(t.to=Ke(t.to,u)),t.from!=null){const n=t.from;t.from=Promise.all([u.getAddress(),Ke(n,u)]).then(([r,i])=>(e0(r.toLowerCase()===i.toLowerCase(),"transaction from mismatch","tx.from",i),r))}else t.from=u.getAddress();return await qe(t)}class FR0{constructor(e){r0(this,"provider");U0(this,{provider:e||null})}async getNonce(e){return Rs(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await Qk(this,e)}async populateTransaction(e){const t=Rs(this,"populateTransaction"),n=await Qk(this,e);n.nonce==null&&(n.nonce=await this.getNonce("pending")),n.gasLimit==null&&(n.gasLimit=await this.estimateGas(n));const r=await this.provider.getNetwork();if(n.chainId!=null){const a=j0(n.chainId);e0(a===r.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else n.chainId=r.chainId;const i=n.maxFeePerGas!=null||n.maxPriorityFeePerGas!=null;if(n.gasPrice!=null&&(n.type===2||i)?e0(!1,"eip-1559 transaction do not support gasPrice","tx",e):(n.type===0||n.type===1)&&i&&e0(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(n.type===2||n.type==null)&&n.maxFeePerGas!=null&&n.maxPriorityFeePerGas!=null)n.type=2;else if(n.type===0||n.type===1){const a=await t.getFeeData();E0(a.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),n.gasPrice==null&&(n.gasPrice=a.gasPrice)}else{const a=await t.getFeeData();if(n.type==null)if(a.maxFeePerGas!=null&&a.maxPriorityFeePerGas!=null)if(n.type=2,n.gasPrice!=null){const o=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=o,n.maxPriorityFeePerGas=o}else n.maxFeePerGas==null&&(n.maxFeePerGas=a.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=a.maxPriorityFeePerGas);else a.gasPrice!=null?(E0(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),n.gasPrice==null&&(n.gasPrice=a.gasPrice),n.type=0):E0(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else n.type===2&&(n.maxFeePerGas==null&&(n.maxFeePerGas=a.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=a.maxPriorityFeePerGas))}return await qe(n)}async estimateGas(e){return Rs(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return Rs(this,"call").call(await this.populateCall(e))}async resolveName(e){return await Rs(this,"resolveName").resolveName(e)}async sendTransaction(e){const t=Rs(this,"sendTransaction"),n=await this.populateTransaction(e);delete n.from;const r=b9.from(n);return await t.broadcastTransaction(await this.signTransaction(r))}}function DR0(u){return JSON.parse(JSON.stringify(u))}var ot,ir,vo,Ji,Bo,m4,oc,Fm,sc,Dm;class n${constructor(e){a0(this,oc);a0(this,sc);a0(this,ot,void 0);a0(this,ir,void 0);a0(this,vo,void 0);a0(this,Ji,void 0);a0(this,Bo,void 0);a0(this,m4,void 0);M(this,ot,e),M(this,ir,null),M(this,vo,k0(this,oc,Fm).bind(this)),M(this,Ji,!1),M(this,Bo,null),M(this,m4,!1)}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,t){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}start(){k(this,Ji)||(M(this,Ji,!0),k0(this,oc,Fm).call(this,-2))}stop(){k(this,Ji)&&(M(this,Ji,!1),M(this,m4,!0),k0(this,sc,Dm).call(this),k(this,ot).off("block",k(this,vo)))}pause(e){e&&k0(this,sc,Dm).call(this),k(this,ot).off("block",k(this,vo))}resume(){this.start()}}ot=new WeakMap,ir=new WeakMap,vo=new WeakMap,Ji=new WeakMap,Bo=new WeakMap,m4=new WeakMap,oc=new WeakSet,Fm=async function(e){try{k(this,ir)==null&&M(this,ir,this._subscribe(k(this,ot)));let t=null;try{t=await k(this,ir)}catch(i){if(!ln(i,"UNSUPPORTED_OPERATION")||i.operation!=="eth_newFilter")throw i}if(t==null){M(this,ir,null),k(this,ot)._recoverSubscriber(this,this._recover(k(this,ot)));return}const n=await k(this,ot).getNetwork();if(k(this,Bo)||M(this,Bo,n),k(this,Bo).chainId!==n.chainId)throw new Error("chaid changed");if(k(this,m4))return;const r=await k(this,ot).send("eth_getFilterChanges",[t]);await this._emitResults(k(this,ot),r)}catch(t){console.log("@TODO",t)}k(this,ot).once("block",k(this,vo))},sc=new WeakSet,Dm=function(){const e=k(this,ir);e&&(M(this,ir,null),e.then(t=>{k(this,ot).send("eth_uninstallFilter",[t])}))};var Fo;class wR0 extends n${constructor(t,n){super(t);a0(this,Fo,void 0);M(this,Fo,DR0(n))}_recover(t){return new Vy(t,k(this,Fo))}async _subscribe(t){return await t.send("eth_newFilter",[k(this,Fo)])}async _emitResults(t,n){for(const r of n)t.emit(k(this,Fo),t._wrapLog(r,t._network))}}Fo=new WeakMap;class xR0 extends n${async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,t){for(const n of t)e.emit("pending",n)}}const kR0="bigint,boolean,function,number,string,symbol".split(/,/g);function M5(u){if(u==null||kR0.indexOf(typeof u)>=0||typeof u.getAddress=="function")return u;if(Array.isArray(u))return u.map(M5);if(typeof u=="object")return Object.keys(u).reduce((e,t)=>(e[t]=u[t],e),{});throw new Error(`should not happen: ${u} (${typeof u})`)}function _R0(u){return new Promise(e=>{setTimeout(e,u)})}function Ns(u){return u&&u.toLowerCase()}function Jk(u){return u&&typeof u.pollingInterval=="number"}const SR0={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class Rh extends FR0{constructor(t,n){super(t);r0(this,"address");n=su(n),U0(this,{address:n})}connect(t){E0(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(t){return await this.populateCall(t)}async sendUncheckedTransaction(t){const n=M5(t),r=[];if(n.from){const a=n.from;r.push((async()=>{const o=await Ke(a,this.provider);e0(o!=null&&o.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",t),n.from=o})())}else n.from=this.address;if(n.gasLimit==null&&r.push((async()=>{n.gasLimit=await this.provider.estimateGas({...n,from:this.address})})()),n.to!=null){const a=n.to;r.push((async()=>{n.to=await Ke(a,this.provider)})())}r.length&&await Promise.all(r);const i=this.provider.getRpcTransaction(n);return this.provider.send("eth_sendTransaction",[i])}async sendTransaction(t){const n=await this.provider.getBlockNumber(),r=await this.sendUncheckedTransaction(t);return await new Promise((i,a)=>{const o=[1e3,100],s=async()=>{const f=await this.provider.getTransaction(r);if(f!=null){i(f.replaceableTransaction(n));return}this.provider._setTimeout(()=>{s()},o.pop()||4e3)};s()})}async signTransaction(t){const n=M5(t);if(n.from){const i=await Ke(n.from,this.provider);e0(i!=null&&i.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",t),n.from=i}else n.from=this.address;const r=this.provider.getRpcTransaction(n);return await this.provider.send("eth_signTransaction",[r])}async signMessage(t){const n=typeof t=="string"?Jr(t):t;return await this.provider.send("personal_sign",[M0(n),this.address.toLowerCase()])}async signTypedData(t,n,r){const i=M5(r),a=await g9.resolveNames(t,n,i,async o=>{const s=await Ke(o);return e0(s!=null,"TypedData does not support null address","value",o),s});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(g9.getPayload(a.domain,n,a.value))])}async unlock(t){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),t,null])}async _legacySignMessage(t){const n=typeof t=="string"?Jr(t):t;return await this.provider.send("eth_sign",[this.address.toLowerCase(),M0(n)])}}var Do,b4,qr,ar,Tn,en,Tt,fc,wm;class TR0 extends bR0{constructor(t,n){super(t,n);a0(this,fc);a0(this,Do,void 0);a0(this,b4,void 0);a0(this,qr,void 0);a0(this,ar,void 0);a0(this,Tn,void 0);a0(this,en,void 0);a0(this,Tt,void 0);M(this,b4,1),M(this,Do,Object.assign({},SR0,n||{})),M(this,qr,[]),M(this,ar,null),M(this,en,null),M(this,Tt,null);{let i=null;const a=new Promise(o=>{i=o});M(this,Tn,{promise:a,resolve:i})}const r=this._getOption("staticNetwork");typeof r=="boolean"?(e0(!r||t!=="any","staticNetwork cannot be used on special network 'any'","options",n),r&&t!=null&&M(this,en,Er.from(t))):r&&(e0(t==null||r.matches(t),"staticNetwork MUST match network object","options",n),M(this,en,r))}_getOption(t){return k(this,Do)[t]}get _network(){return E0(k(this,en),"network is not available yet","NETWORK_ERROR"),k(this,en)}async _perform(t){if(t.method==="call"||t.method==="estimateGas"){let r=t.transaction;if(r&&r.type!=null&&j0(r.type)&&r.maxFeePerGas==null&&r.maxPriorityFeePerGas==null){const i=await this.getFeeData();i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(t=Object.assign({},t,{transaction:Object.assign({},r,{type:void 0})}))}}const n=this.getRpcRequest(t);return n!=null?await this.send(n.method,n.args):super._perform(t)}async _detectNetwork(){const t=this._getOption("staticNetwork");if(t)if(t===!0){if(k(this,en))return k(this,en)}else return t;return k(this,Tt)?await k(this,Tt):this.ready?(M(this,Tt,(async()=>{const n=Er.from(j0(await this.send("eth_chainId",[])));return M(this,Tt,null),n})()),await k(this,Tt)):(M(this,Tt,(async()=>{const n={id:G3(this,b4)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:n});let r;try{r=(await this._send(n))[0],M(this,Tt,null)}catch(i){throw M(this,Tt,null),this.emit("debug",{action:"receiveRpcError",error:i}),i}if(this.emit("debug",{action:"receiveRpcResult",result:r}),"result"in r)return Er.from(j0(r.result));throw this.getRpcError(n,r)})()),await k(this,Tt))}_start(){k(this,Tn)==null||k(this,Tn).resolve==null||(k(this,Tn).resolve(),M(this,Tn,null),(async()=>{for(;k(this,en)==null&&!this.destroyed;)try{M(this,en,await this._detectNetwork())}catch(t){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",ne("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:t}})),await _R0(1e3)}k0(this,fc,wm).call(this)})())}async _waitUntilReady(){if(k(this,Tn)!=null)return await k(this,Tn).promise}_getSubscriber(t){return t.type==="pending"?new xR0(this):t.type==="event"?this._getOption("polling")?new Vy(this,t.filter):new wR0(this,t.filter):t.type==="orphan"&&t.filter.orphan==="drop-log"?new t$("orphan"):super._getSubscriber(t)}get ready(){return k(this,Tn)==null}getRpcTransaction(t){const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(r=>{if(t[r]==null)return;let i=r;r==="gasLimit"&&(i="gas"),n[i]=hf(j0(t[r],`tx.${r}`))}),["from","to","data"].forEach(r=>{t[r]!=null&&(n[r]=M0(t[r]))}),t.accessList&&(n.accessList=As(t.accessList)),n}getRpcRequest(t){switch(t.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[Ns(t.address),t.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[Ns(t.address),t.blockTag]};case"getCode":return{method:"eth_getCode",args:[Ns(t.address),t.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[Ns(t.address),"0x"+t.position.toString(16),t.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[t.signedTransaction]};case"getBlock":if("blockTag"in t)return{method:"eth_getBlockByNumber",args:[t.blockTag,!!t.includeTransactions]};if("blockHash"in t)return{method:"eth_getBlockByHash",args:[t.blockHash,!!t.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[t.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[t.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(t.transaction),t.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(t.transaction)]};case"getLogs":return t.filter&&t.filter.address!=null&&(Array.isArray(t.filter.address)?t.filter.address=t.filter.address.map(Ns):t.filter.address=Ns(t.filter.address)),{method:"eth_getLogs",args:[t.filter]}}return null}getRpcError(t,n){const{method:r}=t,{error:i}=n;if(r==="eth_estimateGas"&&i.message){const s=i.message;if(!s.match(/revert/i)&&s.match(/insufficient funds/i))return ne("insufficient funds","INSUFFICIENT_FUNDS",{transaction:t.params[0],info:{payload:t,error:i}})}if(r==="eth_call"||r==="eth_estimateGas"){const s=xm(i),f=q1.getBuiltinCallException(r==="eth_call"?"call":"estimateGas",t.params[0],s?s.data:null);return f.info={error:i,payload:t},f}const a=JSON.stringify(IR0(i));if(typeof i.message=="string"&&i.message.match(/user denied|ethers-user-denied/i))return ne("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[r]||"unknown",reason:"rejected",info:{payload:t,error:i}});if(r==="eth_sendRawTransaction"||r==="eth_sendTransaction"){const s=t.params[0];if(a.match(/insufficient funds|base fee exceeds gas limit/i))return ne("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:s,info:{error:i}});if(a.match(/nonce/i)&&a.match(/too low/i))return ne("nonce has already been used","NONCE_EXPIRED",{transaction:s,info:{error:i}});if(a.match(/replacement transaction/i)&&a.match(/underpriced/i))return ne("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:s,info:{error:i}});if(a.match(/only replay-protected/i))return ne("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:r,info:{transaction:s,info:{error:i}}})}let o=!!a.match(/the method .* does not exist/i);return o||i&&i.details&&i.details.startsWith("Unauthorized method:")&&(o=!0),o?ne("unsupported operation","UNSUPPORTED_OPERATION",{operation:t.method,info:{error:i,payload:t}}):ne("could not coalesce error","UNKNOWN_ERROR",{error:i,payload:t})}send(t,n){if(this.destroyed)return Promise.reject(ne("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:t}));const r=G3(this,b4)._++,i=new Promise((a,o)=>{k(this,qr).push({resolve:a,reject:o,payload:{method:t,params:n,id:r,jsonrpc:"2.0"}})});return k0(this,fc,wm).call(this),i}async getSigner(t){t==null&&(t=0);const n=this.send("eth_accounts",[]);if(typeof t=="number"){const i=await n;if(t>=i.length)throw new Error("no such account");return new Rh(this,i[t])}const{accounts:r}=await qe({network:this.getNetwork(),accounts:n});t=su(t);for(const i of r)if(su(i)===t)return new Rh(this,t);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(n=>new Rh(this,n))}destroy(){k(this,ar)&&(clearTimeout(k(this,ar)),M(this,ar,null));for(const{payload:t,reject:n}of k(this,qr))n(ne("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:t.method}));M(this,qr,[]),super.destroy()}}Do=new WeakMap,b4=new WeakMap,qr=new WeakMap,ar=new WeakMap,Tn=new WeakMap,en=new WeakMap,Tt=new WeakMap,fc=new WeakSet,wm=function(){if(k(this,ar))return;const t=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");M(this,ar,setTimeout(()=>{M(this,ar,null);const n=k(this,qr);for(M(this,qr,[]);n.length;){const r=[n.shift()];for(;n.length&&r.length!==k(this,Do).batchMaxCount;)if(r.push(n.shift()),JSON.stringify(r.map(a=>a.payload)).length>k(this,Do).batchMaxSize){n.unshift(r.pop());break}(async()=>{const i=r.length===1?r[0].payload:r.map(a=>a.payload);this.emit("debug",{action:"sendRpcPayload",payload:i});try{const a=await this._send(i);this.emit("debug",{action:"receiveRpcResult",result:a});for(const{resolve:o,reject:s,payload:f}of r){if(this.destroyed){s(ne("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:f.method}));continue}const l=a.filter(c=>c.id===f.id)[0];if(l==null){const c=ne("missing response for request","BAD_DATA",{value:a,info:{payload:f}});this.emit("error",c),s(c);continue}if("error"in l){s(this.getRpcError(f,l));continue}o(l.result)}}catch(a){this.emit("debug",{action:"receiveRpcError",error:a});for(const{reject:o}of r)o(a)}})()}},t))};var Zi;class PR0 extends TR0{constructor(t,n){super(t,n);a0(this,Zi,void 0);M(this,Zi,4e3)}_getSubscriber(t){const n=super._getSubscriber(t);return Jk(n)&&(n.pollingInterval=k(this,Zi)),n}get pollingInterval(){return k(this,Zi)}set pollingInterval(t){if(!Number.isInteger(t)||t<0)throw new Error("invalid interval");M(this,Zi,t),this._forEachSubscriber(n=>{Jk(n)&&(n.pollingInterval=k(this,Zi))})}}Zi=new WeakMap;var g4;class r$ extends PR0{constructor(t,n,r){t==null&&(t="http://localhost:8545");super(n,r);a0(this,g4,void 0);typeof t=="string"?M(this,g4,new ai(t)):M(this,g4,t.clone())}_getConnection(){return k(this,g4).clone()}async send(t,n){return await this._start(),await super.send(t,n)}async _send(t){const n=this._getConnection();n.body=JSON.stringify(t),n.setHeader("content-type","application/json");const r=await n.send();r.assertOk();let i=r.bodyJson;return Array.isArray(i)||(i=[i]),i}}g4=new WeakMap;function xm(u){if(u==null)return null;if(typeof u.message=="string"&&u.message.match(/revert/i)&&Nu(u.data))return{message:u.message,data:u.data};if(typeof u=="object"){for(const e in u){const t=xm(u[e]);if(t)return t}return null}if(typeof u=="string")try{return xm(JSON.parse(u))}catch{}return null}function km(u,e){if(u!=null){if(typeof u.message=="string"&&e.push(u.message),typeof u=="object")for(const t in u)km(u[t],e);if(typeof u=="string")try{return km(JSON.parse(u),e)}catch{}}}function IR0(u){const e=[];return km(u,e),e}function OR0(u){if(u.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),t=0;t>>0,A=new Uint8Array(m);g!==b;){for(var y=E[g],B=0,v=m-1;(y!==0||B>>0,A[v]=y%a>>>0,y=y/a>>>0;if(y!==0)throw new Error("Non-zero carry");h=B,g++}for(var C=m-h;C!==m&&A[C]===0;)C++;for(var F=o.repeat(p);C>>0,m=new Uint8Array(b);E[p];){var A=e[E.charCodeAt(p)];if(A===255)return;for(var y=0,B=b-1;(A!==0||y>>0,m[B]=A%256>>>0,A=A/256>>>0;if(A!==0)throw new Error("Non-zero carry");g=y,p++}for(var v=b-g;v!==b&&m[v]===0;)v++;for(var C=new Uint8Array(h+(b-v)),F=h;v!==b;)C[F++]=m[v++];return C}function d(E){var p=c(E);if(p)return p;throw new Error("Non-base"+a+" character")}return{encode:l,decodeUnsafe:c,decode:d}}var RR0=OR0;const NR0=RR0,MR0="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";var jR0=NR0(MR0);const i$=f3(jR0);function zR0(u){const e=i$.decode(u).slice(2);return"0x"+Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}function Ky(u){const t="1220"+u.toString(16),n=LR0(t);return i$.encode(n)}function LR0(u){let e=[];for(let t=0;t{const a=new r$("https://polygon-mumbai.g.alchemy.com/v2/BmepUpwxd86PJSuisn7P4f3lZJSqcAUt"),o=tm.abi,s=new Ro(Ka,o,a),l={address:Ka,fromBlock:0,toBlock:"latest",topics:[Fa("TokenListed(uint256,uint256,address,uint256,uint256)")]};try{const d=(await a.getLogs(l)).map(E=>{const p=[...E.topics],h={...E,topics:p};return s.interface.parseLog(h)});return console.log(d),d}catch(c){console.error("Error fetching events: ",c)}},t=(a,o)=>{console.log("Clicked on NFT with Address",a),u("/real-token/Explore/"+a+"/"+o)},[n,r]=w.useState(),i=async()=>{var d,E,p;console.log("Trying to fetch all Listed NFTs... ");const a=await e(),o=a==null?void 0:a.map(h=>Ky(h==null?void 0:h.args[1])),s=o==null?void 0:o.map(async h=>await(await fetch("https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/"+h)).json());var f;const l=[];if(s){f=await Promise.all(s);for(var c=0;c{i()},[]),V.jsx(r3,{container:!0,padding:5,direction:"row",spacing:5,justifyContent:"center",alignItems:"flex-start",children:n==null?void 0:n.map(a=>V.jsx(r3,{item:!0,children:V.jsx(mP0,{NFT:a,onClick:()=>t(a.tokenId,a.orderId)})}))})}const UR0="hh-sol-artifact-1",WR0="FractionalizedNFT",qR0="contracts/FractionalizedNFT.sol",HR0=[{inputs:[{internalType:"address",name:"defaultAdmin",type:"address"},{internalType:"address",name:"_reserver",type:"address"},{internalType:"string",name:"baseUri",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessControlBadConfirmation",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"bytes32",name:"neededRole",type:"bytes32"}],name:"AccessControlUnauthorizedAccount",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"balance",type:"uint256"},{internalType:"uint256",name:"needed",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ERC1155InsufficientBalance",type:"error"},{inputs:[{internalType:"address",name:"approver",type:"address"}],name:"ERC1155InvalidApprover",type:"error"},{inputs:[{internalType:"uint256",name:"idsLength",type:"uint256"},{internalType:"uint256",name:"valuesLength",type:"uint256"}],name:"ERC1155InvalidArrayLength",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"ERC1155InvalidOperator",type:"error"},{inputs:[{internalType:"address",name:"receiver",type:"address"}],name:"ERC1155InvalidReceiver",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"}],name:"ERC1155InvalidSender",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"address",name:"owner",type:"address"}],name:"ERC1155MissingApprovalForAll",type:"error"},{inputs:[],name:"EnforcedPause",type:"error"},{inputs:[],name:"ExpectedPause",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"AmountApproved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"from",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"AmountTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"OwnershipRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"TokenMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_TOKEN_AMOUNT",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MINTER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"PAUSER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"URI_SETTER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"address",name:"operator",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getMetadata",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getOwnedTokens",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getOwnershipAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getOwnershipPercentage",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getReserverPricingUSD",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"metadata",type:"string"},{internalType:"bool",name:"reservable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],name:"mint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"removeApproval",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"callerConfirmation",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_reserver",type:"address"}],name:"setReserver",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"newuri",type:"string"}],name:"setURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"transfer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],GR0="0x60806040523480156200001157600080fd5b5060405162005735380380620057358339818101604052810190620000379190620004e2565b8062000049816200015e60201b60201c565b506000600460006101000a81548160ff0219169083151502179055506200007a6000801b846200017360201b60201c565b50620000ad7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a846200017360201b60201c565b50620000e07f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6846200017360201b60201c565b50620001137f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c846200017360201b60201c565b5081600460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050506200088f565b80600290816200016f9190620007a8565b5050565b60006200018783836200027760201b60201c565b6200026c5760016003600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555062000208620002e260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001905062000271565b600090505b92915050565b60006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200032b82620002fe565b9050919050565b6200033d816200031e565b81146200034957600080fd5b50565b6000815190506200035d8162000332565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620003b8826200036d565b810181811067ffffffffffffffff82111715620003da57620003d96200037e565b5b80604052505050565b6000620003ef620002ea565b9050620003fd8282620003ad565b919050565b600067ffffffffffffffff82111562000420576200041f6200037e565b5b6200042b826200036d565b9050602081019050919050565b60005b83811015620004585780820151818401526020810190506200043b565b60008484015250505050565b60006200047b620004758462000402565b620003e3565b9050828152602081018484840111156200049a576200049962000368565b5b620004a784828562000438565b509392505050565b600082601f830112620004c757620004c662000363565b5b8151620004d984826020860162000464565b91505092915050565b600080600060608486031215620004fe57620004fd620002f4565b5b60006200050e868287016200034c565b935050602062000521868287016200034c565b925050604084015167ffffffffffffffff811115620005455762000544620002f9565b5b6200055386828701620004af565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620005b057607f821691505b602082108103620005c657620005c562000568565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006307fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620005f1565b6200063c8683620005f1565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000689620006836200067d8462000654565b6200065e565b62000654565b9050919050565b6000819050919050565b620006a58362000668565b620006bd620006b48262000690565b848454620005fe565b825550505050565b600090565b620006d4620006c5565b620006e18184846200069a565b505050565b5b818110156200070957620006fd600082620006ca565b600181019050620006e7565b5050565b601f82111562000758576200072281620005cc565b6200072d84620005e1565b810160208510156200073d578190505b620007556200074c85620005e1565b830182620006e6565b50505b505050565b600082821c905092915050565b60006200077d600019846008026200075d565b1980831691505092915050565b60006200079883836200076a565b9150826002028217905092915050565b620007b3826200055d565b67ffffffffffffffff811115620007cf57620007ce6200037e565b5b620007db825462000597565b620007e88282856200070d565b600060209050601f8311600181146200082057600084156200080b578287015190505b6200081785826200078a565b86555062000887565b601f1984166200083086620005cc565b60005b828110156200085a5784890151825560018201915060208501945060208101905062000833565b868310156200087a578489015162000876601f8916826200076a565b8355505b6001600288020188555050505b505050505050565b614e96806200089f6000396000f3fe608060405234801561001057600080fd5b50600436106102265760003560e01c80638456cb5911610130578063d5391393116100b8578063e63ab1e91161007c578063e63ab1e914610681578063e985e9c51461069f578063ee4525d5146106cf578063f242432a146106ff578063f5298aca1461071b57610226565b8063d5391393146105b7578063d547741f146105d5578063d9d61655146105f1578063e345e0bc14610621578063e62de01b1461065157610226565b8063a0a124dd116100ff578063a0a124dd14610515578063a217fddf14610531578063a22cb4651461054f578063a574cea41461056b578063b537b2691461059b57610226565b80638456cb591461048f5780638b12937c146104995780638cb0a511146104c957806391d14854146104e557610226565b80632fecd4bb116101b35780635c975abb116101825780635c975abb146103ff578063605105f01461041d5780636b20c454146104395780637f34571014610455578063829e47e51461047357610226565b80632fecd4bb1461037957806336568abe146103a95780633f4ba83a146103c55780634e1273f4146103cf57610226565b8063127217d6116101fa578063127217d6146102d75780631e9c2d67146102f3578063248a9ca3146103115780632eb2c2d6146103415780632f2ff15d1461035d57610226565b8062fdd58e1461022b57806301ffc9a71461025b57806302fe53051461028b5780630e89341c146102a7575b600080fd5b610245600480360381019061024091906135d0565b610737565b604051610252919061361f565b60405180910390f35b61027560048036038101906102709190613692565b610791565b60405161028291906136da565b60405180910390f35b6102a560048036038101906102a0919061383b565b6107a3565b005b6102c160048036038101906102bc9190613884565b6107da565b6040516102ce9190613930565b60405180910390f35b6102f160048036038101906102ec91906139f3565b6108b5565b005b6102fb610ba4565b604051610308919061361f565b60405180910390f35b61032b60048036038101906103269190613ac0565b610baa565b6040516103389190613afc565b60405180910390f35b61035b60048036038101906103569190613bdf565b610bca565b005b61037760048036038101906103729190613cae565b610c72565b005b610393600480360381019061038e91906135d0565b610c94565b6040516103a0919061361f565b60405180910390f35b6103c360048036038101906103be9190613cae565b610cef565b005b6103cd610d6a565b005b6103e960048036038101906103e49190613db1565b610d9f565b6040516103f69190613ee7565b60405180910390f35b610407610eae565b60405161041491906136da565b60405180910390f35b610437600480360381019061043291906139f3565b610ec5565b005b610453600480360381019061044e9190613f09565b610f36565b005b61045d610fe2565b60405161046a9190613afc565b60405180910390f35b61048d60048036038101906104889190613fc0565b611006565b005b610497611393565b005b6104b360048036038101906104ae9190613884565b6113c8565b6040516104c0919061361f565b60405180910390f35b6104e360048036038101906104de9190614073565b6113f2565b005b6104ff60048036038101906104fa9190613cae565b61165f565b60405161050c91906136da565b60405180910390f35b61052f600480360381019061052a91906140c6565b6116ca565b005b61053961171c565b6040516105469190613afc565b60405180910390f35b610569600480360381019061056491906140f3565b611723565b005b61058560048036038101906105809190613884565b611739565b6040516105929190613930565b60405180910390f35b6105b560048036038101906105b091906135d0565b6117de565b005b6105bf6118dd565b6040516105cc9190613afc565b60405180910390f35b6105ef60048036038101906105ea9190613cae565b611901565b005b61060b600480360381019061060691906140c6565b611923565b6040516106189190613ee7565b60405180910390f35b61063b60048036038101906106369190614133565b6119ba565b604051610648919061361f565b60405180910390f35b61066b600480360381019061066691906135d0565b611a18565b604051610678919061361f565b60405180910390f35b610689611a8c565b6040516106969190613afc565b60405180910390f35b6106b960048036038101906106b49190614173565b611ab0565b6040516106c691906136da565b60405180910390f35b6106e960048036038101906106e49190613884565b611b44565b6040516106f69190614271565b60405180910390f35b610719600480360381019061071491906139f3565b611be5565b005b61073560048036038101906107309190614293565b611c8d565b005b600080600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061079c82611d39565b9050919050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c6107cd81611db3565b6107d682611dc7565b5050565b606060006107e86000611dda565b9050600060056000858152602001908152602001600020805461080a90614315565b80601f016020809104026020016040519081016040528092919081815260200182805461083690614315565b80156108835780601f1061085857610100808354040283529160200191610883565b820191906000526020600020905b81548152906001019060200180831161086657829003601f168201915b50505050509050818160405160200161089d929190614382565b60405160208183030381529060405292505050919050565b816007600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610948576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093f906143f2565b60405180910390fd5b816007600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546109a89190614441565b925050819055506109bc8585858585611be5565b816007600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610a1c9190614475565b9250508190555060086000848152602001908152602001600020849080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002083908060018154018082558091505060019003906000526020600020016000909190919091505560006007600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205403610b6057610b5f8386611e6e565b5b7feeb0e676a4fccb21187462c64b95d0e58742fed59dbc3a8795d8e8ff8ccfba1683868685604051610b9594939291906144b8565b60405180910390a15050505050565b61271081565b600060036000838152602001908152602001600020600101549050919050565b6000610bd4612203565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015610c195750610c178682611ab0565b155b15610c5d5780866040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610c549291906144fd565b60405180910390fd5b610c6a868686868661220b565b505050505050565b610c7b82610baa565b610c8481611db3565b610c8e8383612303565b50505050565b60006007600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610cf7612203565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d5b576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d6582826123f5565b505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d9481611db3565b610d9c6124e8565b50565b60608151835114610deb57815183516040517f5b059991000000000000000000000000000000000000000000000000000000008152600401610de2929190614526565b60405180910390fd5b6000835167ffffffffffffffff811115610e0857610e07613710565b5b604051908082528060200260200182016040528015610e365781602001602082028036833780820191505090505b50905060005b8451811015610ea357610e73610e5b828761254b90919063ffffffff16565b610e6e838761255f90919063ffffffff16565b610737565b828281518110610e8657610e8561454f565b5b60200260200101818152505080610e9c9061457e565b9050610e3c565b508091505092915050565b6000600460009054906101000a900460ff16905090565b6000610ed184336119ba565b905082811015610f16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0d90614612565b60405180910390fd5b610f21338585612573565b610f2e86868686866108b5565b505050505050565b610f3e612203565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610f875750610f8583610f80612203565b611ab0565b155b15610fd257610f94612203565b836040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610fc99291906144fd565b60405180910390fd5b610fdd838383612634565b505050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c81565b600060086000868152602001908152602001600020805490501461105f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110569061467e565b60405180910390fd5b81156111f457600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632228adcc856040518263ffffffff1660e01b81526004016110c0919061361f565b602060405180830381865afa1580156110dd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110191906146b3565b611140576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111379061472c565b60405180910390fd5b600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c58784b8856040518263ffffffff1660e01b815260040161119b919061361f565b602060405180830381865afa1580156111b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111dc9190614761565b60066000868152602001908152602001600020819055505b6112028585612710846126c8565b82600560008681526020019081526020016000209081611222919061493a565b506127106007600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060086000858152602001908152602001600020859080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020849080600181540180825580915050600190039060005260206000200160009091909190915055837f3a5398bda6f1f57d6c96834fa9bf02b5517bdc847d14312015a917ba421c31c9866040516113849190614a0c565b60405180910390a25050505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6113bd81611db3565b6113c5612761565b50565b600061271060066000848152602001908152602001600020546113eb9190614a56565b9050919050565b806007600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147c90614612565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16036114f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ea90614ad3565b60405180910390fd5b6114fe826001611723565b6000600a6000858152602001908152602001600020905060008160010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054036115c45780600001839080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b818160010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff16847f7a5c69a7c393db8f307d6fea9c8addb8c18644d1172a623792a4017298a1a58284604051611651919061361f565b60405180910390a350505050565b60006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b6116d781611db3565b81600460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000801b81565b61173561172e612203565b83836127c4565b5050565b606060056000838152602001908152602001600020805461175990614315565b80601f016020809104026020016040519081016040528092919081815260200182805461178590614315565b80156117d25780601f106117a7576101008083540402835291602001916117d2565b820191906000526020600020905b8154815290600101906020018083116117b557829003601f168201915b50505050509050919050565b60006007600083815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411611871576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186890614b65565b60405180910390fd5b600061187d82846119ba565b9050600081116118c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b990614bd1565b60405180910390fd5b6118cd838383612573565b6118d8836000611723565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61190a82610baa565b61191381611db3565b61191d83836123f5565b50505050565b6060600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156119ae57602002820191906000526020600020905b81548152602001906001019080831161199a575b50505050509050919050565b6000600a600084815260200190815260200160002060010160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061271060646007600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a7a9190614bf1565b611a849190614a56565b905092915050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060086000838152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611bd957602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611b8f575b50505050509050919050565b6000611bef612203565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015611c345750611c328682611ab0565b155b15611c785780866040517fe237d922000000000000000000000000000000000000000000000000000000008152600401611c6f9291906144fd565b60405180910390fd5b611c858686868686612934565b505050505050565b611c95612203565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611cde5750611cdc83611cd7612203565b611ab0565b155b15611d2957611ceb612203565b836040517fe237d922000000000000000000000000000000000000000000000000000000008152600401611d209291906144fd565b60405180910390fd5b611d34838383612a3f565b505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611dac5750611dab82612ae6565b5b9050919050565b611dc481611dbf612203565b612bc8565b50565b8060029081611dd6919061493a565b5050565b606060028054611de990614315565b80601f0160208091040260200160405190810160405280929190818152602001828054611e1590614315565b8015611e625780601f10611e3757610100808354040283529160200191611e62565b820191906000526020600020905b815481529060010190602001808311611e4557829003601f168201915b50505050509050919050565b600060086000848152602001908152602001600020905060008180549050905060005b600182611e9e9190614441565b811015611fe0578373ffffffffffffffffffffffffffffffffffffffff16838281548110611ecf57611ece61454f565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603611fcd5782600183611f239190614441565b81548110611f3457611f3361454f565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600860008781526020019081526020016000208281548110611f8457611f8361454f565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b8080611fd89061457e565b915050611e91565b506008600085815260200190815260200160002080548061200457612003614c33565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590556000600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008180549050905060005b6001826120959190614441565b81101561215d57868382815481106120b0576120af61454f565b5b90600052602060002001540361214a57826001836120ce9190614441565b815481106120df576120de61454f565b5b9060005260206000200154600960008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811061213b5761213a61454f565b5b90600052602060002001819055505b80806121559061457e565b915050612088565b50600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806121ad576121ac614c33565b5b60019003818190600052602060002001600090559055857fb313f5a88a5d21dd54119393bab2baac6503d2bc1368bd7af3281737aefe9447866040516121f39190614a0c565b60405180910390a2505050505050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361227d5760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016122749190614a0c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036122ef5760006040517f01a835140000000000000000000000000000000000000000000000000000000081526004016122e69190614a0c565b60405180910390fd5b6122fc8585858585612c19565b5050505050565b600061230f838361165f565b6123ea5760016003600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612387612203565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4600190506123ef565b600090505b92915050565b6000612401838361165f565b156124dd5760006003600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061247a612203565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a4600190506124e2565b600090505b92915050565b6124f0612ccb565b6000600460006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612534612203565b6040516125419190614a0c565b60405180910390a1565b600060208202602084010151905092915050565b600060208202602084010151905092915050565b600061257f83856119ba565b9050818110156125c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125bb90614612565b60405180910390fd5b81600a600085815260200190815260200160002060010160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126279190614441565b9250508190555050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036126a65760006040517f01a8351400000000000000000000000000000000000000000000000000000000815260040161269d9190614a0c565b60405180910390fd5b6126c3836000848460405180602001604052806000815250612c19565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361273a5760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016127319190614a0c565b60405180910390fd5b6000806127478585612d0b565b91509150612759600087848487612c19565b505050505050565b612769612d3b565b6001600460006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586127ad612203565b6040516127ba9190614a0c565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036128365760006040517fced3e10000000000000000000000000000000000000000000000000000000000815260040161282d9190614a0c565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161292791906136da565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036129a65760006040517f57f447ce00000000000000000000000000000000000000000000000000000000815260040161299d9190614a0c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612a185760006040517f01a83514000000000000000000000000000000000000000000000000000000008152600401612a0f9190614a0c565b60405180910390fd5b600080612a258585612d0b565b91509150612a368787848487612c19565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612ab15760006040517f01a83514000000000000000000000000000000000000000000000000000000008152600401612aa89190614a0c565b60405180910390fd5b600080612abe8484612d0b565b91509150612adf856000848460405180602001604052806000815250612c19565b5050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612bb157507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612bc15750612bc082612d7c565b5b9050919050565b612bd2828261165f565b612c155780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401612c0c929190614c62565b60405180910390fd5b5050565b612c2585858585612de6565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612cc4576000612c63612203565b90506001845103612cb3576000612c8460008661255f90919063ffffffff16565b90506000612c9c60008661255f90919063ffffffff16565b9050612cac838989858589612df8565b5050612cc2565b612cc1818787878787612fac565b5b505b5050505050565b612cd3610eae565b612d09576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608060405191506001825283602083015260408201905060018152826020820152604081016040529250929050565b612d43610eae565b15612d7a576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612df284848484613160565b50505050565b60008473ffffffffffffffffffffffffffffffffffffffff163b1115612fa4578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612e59959493929190614ce0565b6020604051808303816000875af1925050508015612e9557506040513d601f19601f82011682018060405250810190612e929190614d4f565b60015b612f19573d8060008114612ec5576040519150601f19603f3d011682016040523d82523d6000602084013e612eca565b606091505b506000815103612f1157846040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401612f089190614a0c565b60405180910390fd5b805181602001fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612fa257846040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401612f999190614a0c565b60405180910390fd5b505b505050505050565b60008473ffffffffffffffffffffffffffffffffffffffff163b1115613158578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b815260040161300d959493929190614d7c565b6020604051808303816000875af192505050801561304957506040513d601f19601f820116820180604052508101906130469190614d4f565b60015b6130cd573d8060008114613079576040519150601f19603f3d011682016040523d82523d6000602084013e61307e565b606091505b5060008151036130c557846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016130bc9190614a0c565b60405180910390fd5b805181602001fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461315657846040517f57f447ce00000000000000000000000000000000000000000000000000000000815260040161314d9190614a0c565b60405180910390fd5b505b505050505050565b613168612d3b565b6131748484848461317a565b50505050565b80518251146131c457815181516040517f5b0599910000000000000000000000000000000000000000000000000000000081526004016131bb929190614526565b60405180910390fd5b60006131ce612203565b905060005b83518110156133e35760006131f1828661255f90919063ffffffff16565b90506000613208838661255f90919063ffffffff16565b9050600073ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff161461333557600080600084815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156132dd57888183856040517f03dee4c50000000000000000000000000000000000000000000000000000000081526004016132d49493929190614de4565b60405180910390fd5b81810360008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16146133d0578060008084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546133c89190614475565b925050819055505b5050806133dc9061457e565b90506131d3565b5060018351036134a257600061340360008561255f90919063ffffffff16565b9050600061341b60008561255f90919063ffffffff16565b90508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628585604051613493929190614526565b60405180910390a45050613521565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051613518929190614e29565b60405180910390a45b5050505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006135678261353c565b9050919050565b6135778161355c565b811461358257600080fd5b50565b6000813590506135948161356e565b92915050565b6000819050919050565b6135ad8161359a565b81146135b857600080fd5b50565b6000813590506135ca816135a4565b92915050565b600080604083850312156135e7576135e6613532565b5b60006135f585828601613585565b9250506020613606858286016135bb565b9150509250929050565b6136198161359a565b82525050565b60006020820190506136346000830184613610565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61366f8161363a565b811461367a57600080fd5b50565b60008135905061368c81613666565b92915050565b6000602082840312156136a8576136a7613532565b5b60006136b68482850161367d565b91505092915050565b60008115159050919050565b6136d4816136bf565b82525050565b60006020820190506136ef60008301846136cb565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613748826136ff565b810181811067ffffffffffffffff8211171561376757613766613710565b5b80604052505050565b600061377a613528565b9050613786828261373f565b919050565b600067ffffffffffffffff8211156137a6576137a5613710565b5b6137af826136ff565b9050602081019050919050565b82818337600083830152505050565b60006137de6137d98461378b565b613770565b9050828152602081018484840111156137fa576137f96136fa565b5b6138058482856137bc565b509392505050565b600082601f830112613822576138216136f5565b5b81356138328482602086016137cb565b91505092915050565b60006020828403121561385157613850613532565b5b600082013567ffffffffffffffff81111561386f5761386e613537565b5b61387b8482850161380d565b91505092915050565b60006020828403121561389a57613899613532565b5b60006138a8848285016135bb565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156138eb5780820151818401526020810190506138d0565b60008484015250505050565b6000613902826138b1565b61390c81856138bc565b935061391c8185602086016138cd565b613925816136ff565b840191505092915050565b6000602082019050818103600083015261394a81846138f7565b905092915050565b600067ffffffffffffffff82111561396d5761396c613710565b5b613976826136ff565b9050602081019050919050565b600061399661399184613952565b613770565b9050828152602081018484840111156139b2576139b16136fa565b5b6139bd8482856137bc565b509392505050565b600082601f8301126139da576139d96136f5565b5b81356139ea848260208601613983565b91505092915050565b600080600080600060a08688031215613a0f57613a0e613532565b5b6000613a1d88828901613585565b9550506020613a2e88828901613585565b9450506040613a3f888289016135bb565b9350506060613a50888289016135bb565b925050608086013567ffffffffffffffff811115613a7157613a70613537565b5b613a7d888289016139c5565b9150509295509295909350565b6000819050919050565b613a9d81613a8a565b8114613aa857600080fd5b50565b600081359050613aba81613a94565b92915050565b600060208284031215613ad657613ad5613532565b5b6000613ae484828501613aab565b91505092915050565b613af681613a8a565b82525050565b6000602082019050613b116000830184613aed565b92915050565b600067ffffffffffffffff821115613b3257613b31613710565b5b602082029050602081019050919050565b600080fd5b6000613b5b613b5684613b17565b613770565b90508083825260208201905060208402830185811115613b7e57613b7d613b43565b5b835b81811015613ba75780613b9388826135bb565b845260208401935050602081019050613b80565b5050509392505050565b600082601f830112613bc657613bc56136f5565b5b8135613bd6848260208601613b48565b91505092915050565b600080600080600060a08688031215613bfb57613bfa613532565b5b6000613c0988828901613585565b9550506020613c1a88828901613585565b945050604086013567ffffffffffffffff811115613c3b57613c3a613537565b5b613c4788828901613bb1565b935050606086013567ffffffffffffffff811115613c6857613c67613537565b5b613c7488828901613bb1565b925050608086013567ffffffffffffffff811115613c9557613c94613537565b5b613ca1888289016139c5565b9150509295509295909350565b60008060408385031215613cc557613cc4613532565b5b6000613cd385828601613aab565b9250506020613ce485828601613585565b9150509250929050565b600067ffffffffffffffff821115613d0957613d08613710565b5b602082029050602081019050919050565b6000613d2d613d2884613cee565b613770565b90508083825260208201905060208402830185811115613d5057613d4f613b43565b5b835b81811015613d795780613d658882613585565b845260208401935050602081019050613d52565b5050509392505050565b600082601f830112613d9857613d976136f5565b5b8135613da8848260208601613d1a565b91505092915050565b60008060408385031215613dc857613dc7613532565b5b600083013567ffffffffffffffff811115613de657613de5613537565b5b613df285828601613d83565b925050602083013567ffffffffffffffff811115613e1357613e12613537565b5b613e1f85828601613bb1565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613e5e8161359a565b82525050565b6000613e708383613e55565b60208301905092915050565b6000602082019050919050565b6000613e9482613e29565b613e9e8185613e34565b9350613ea983613e45565b8060005b83811015613eda578151613ec18882613e64565b9750613ecc83613e7c565b925050600181019050613ead565b5085935050505092915050565b60006020820190508181036000830152613f018184613e89565b905092915050565b600080600060608486031215613f2257613f21613532565b5b6000613f3086828701613585565b935050602084013567ffffffffffffffff811115613f5157613f50613537565b5b613f5d86828701613bb1565b925050604084013567ffffffffffffffff811115613f7e57613f7d613537565b5b613f8a86828701613bb1565b9150509250925092565b613f9d816136bf565b8114613fa857600080fd5b50565b600081359050613fba81613f94565b92915050565b600080600080600060a08688031215613fdc57613fdb613532565b5b6000613fea88828901613585565b9550506020613ffb888289016135bb565b945050604086013567ffffffffffffffff81111561401c5761401b613537565b5b6140288882890161380d565b935050606061403988828901613fab565b925050608086013567ffffffffffffffff81111561405a57614059613537565b5b614066888289016139c5565b9150509295509295909350565b60008060006060848603121561408c5761408b613532565b5b600061409a868287016135bb565b93505060206140ab86828701613585565b92505060406140bc868287016135bb565b9150509250925092565b6000602082840312156140dc576140db613532565b5b60006140ea84828501613585565b91505092915050565b6000806040838503121561410a57614109613532565b5b600061411885828601613585565b925050602061412985828601613fab565b9150509250929050565b6000806040838503121561414a57614149613532565b5b6000614158858286016135bb565b925050602061416985828601613585565b9150509250929050565b6000806040838503121561418a57614189613532565b5b600061419885828601613585565b92505060206141a985828601613585565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6141e88161355c565b82525050565b60006141fa83836141df565b60208301905092915050565b6000602082019050919050565b600061421e826141b3565b61422881856141be565b9350614233836141cf565b8060005b8381101561426457815161424b88826141ee565b975061425683614206565b925050600181019050614237565b5085935050505092915050565b6000602082019050818103600083015261428b8184614213565b905092915050565b6000806000606084860312156142ac576142ab613532565b5b60006142ba86828701613585565b93505060206142cb868287016135bb565b92505060406142dc868287016135bb565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061432d57607f821691505b6020821081036143405761433f6142e6565b5b50919050565b600081905092915050565b600061435c826138b1565b6143668185614346565b93506143768185602086016138cd565b80840191505092915050565b600061438e8285614351565b915061439a8284614351565b91508190509392505050565b7f496e73756666696369656e74206f776e6572736869702062616c616e63650000600082015250565b60006143dc601e836138bc565b91506143e7826143a6565b602082019050919050565b6000602082019050818103600083015261440b816143cf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061444c8261359a565b91506144578361359a565b925082820390508181111561446f5761446e614412565b5b92915050565b60006144808261359a565b915061448b8361359a565b92508282019050808211156144a3576144a2614412565b5b92915050565b6144b28161355c565b82525050565b60006080820190506144cd6000830187613610565b6144da60208301866144a9565b6144e760408301856144a9565b6144f46060830184613610565b95945050505050565b600060408201905061451260008301856144a9565b61451f60208301846144a9565b9392505050565b600060408201905061453b6000830185613610565b6145486020830184613610565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006145898261359a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036145bb576145ba614412565b5b600182019050919050565b7f496e73756666696369656e7420616c6c6f77616e636500000000000000000000600082015250565b60006145fc6016836138bc565b9150614607826145c6565b602082019050919050565b6000602082019050818103600083015261462b816145ef565b9050919050565b7f496e76616c696420746f6b656e20494400000000000000000000000000000000600082015250565b60006146686010836138bc565b915061467382614632565b602082019050919050565b600060208201905081810360008301526146978161465b565b9050919050565b6000815190506146ad81613f94565b92915050565b6000602082840312156146c9576146c8613532565b5b60006146d78482850161469e565b91505092915050565b7f4173736574206973206e6f742072657365727665642079657400000000000000600082015250565b60006147166019836138bc565b9150614721826146e0565b602082019050919050565b6000602082019050818103600083015261474581614709565b9050919050565b60008151905061475b816135a4565b92915050565b60006020828403121561477757614776613532565b5b60006147858482850161474c565b91505092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026147f07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826147b3565b6147fa86836147b3565b95508019841693508086168417925050509392505050565b6000819050919050565b600061483761483261482d8461359a565b614812565b61359a565b9050919050565b6000819050919050565b6148518361481c565b61486561485d8261483e565b8484546147c0565b825550505050565b600090565b61487a61486d565b614885818484614848565b505050565b5b818110156148a95761489e600082614872565b60018101905061488b565b5050565b601f8211156148ee576148bf8161478e565b6148c8846147a3565b810160208510156148d7578190505b6148eb6148e3856147a3565b83018261488a565b50505b505050565b600082821c905092915050565b6000614911600019846008026148f3565b1980831691505092915050565b600061492a8383614900565b9150826002028217905092915050565b614943826138b1565b67ffffffffffffffff81111561495c5761495b613710565b5b6149668254614315565b6149718282856148ad565b600060209050601f8311600181146149a45760008415614992578287015190505b61499c858261491e565b865550614a04565b601f1984166149b28661478e565b60005b828110156149da578489015182556001820191506020850194506020810190506149b5565b868310156149f757848901516149f3601f891682614900565b8355505b6001600288020188555050505b505050505050565b6000602082019050614a2160008301846144a9565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614a618261359a565b9150614a6c8361359a565b925082614a7c57614a7b614a27565b5b828204905092915050565b7f417070726f76616c20746f2063757272656e74206f776e657200000000000000600082015250565b6000614abd6019836138bc565b9150614ac882614a87565b602082019050919050565b60006020820190508181036000830152614aec81614ab0565b9050919050565b7f496e76616c6964206f776e65727368697020616d6f756e7420746f2072656d6f60008201527f766520617070726f76616c000000000000000000000000000000000000000000602082015250565b6000614b4f602b836138bc565b9150614b5a82614af3565b604082019050919050565b60006020820190508181036000830152614b7e81614b42565b9050919050565b7f496e73756666696369656e74206f70657261746f7220616c6c6f77616e636500600082015250565b6000614bbb601f836138bc565b9150614bc682614b85565b602082019050919050565b60006020820190508181036000830152614bea81614bae565b9050919050565b6000614bfc8261359a565b9150614c078361359a565b9250828202614c158161359a565b91508282048414831517614c2c57614c2b614412565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6000604082019050614c7760008301856144a9565b614c846020830184613aed565b9392505050565b600081519050919050565b600082825260208201905092915050565b6000614cb282614c8b565b614cbc8185614c96565b9350614ccc8185602086016138cd565b614cd5816136ff565b840191505092915050565b600060a082019050614cf560008301886144a9565b614d0260208301876144a9565b614d0f6040830186613610565b614d1c6060830185613610565b8181036080830152614d2e8184614ca7565b90509695505050505050565b600081519050614d4981613666565b92915050565b600060208284031215614d6557614d64613532565b5b6000614d7384828501614d3a565b91505092915050565b600060a082019050614d9160008301886144a9565b614d9e60208301876144a9565b8181036040830152614db08186613e89565b90508181036060830152614dc48185613e89565b90508181036080830152614dd88184614ca7565b90509695505050505050565b6000608082019050614df960008301876144a9565b614e066020830186613610565b614e136040830185613610565b614e206060830184613610565b95945050505050565b60006040820190508181036000830152614e438185613e89565b90508181036020830152614e578184613e89565b9050939250505056fea2646970667358221220de63f5740515848dd109a00de65c881315fb9639a36f288efb541c64723b5f1264736f6c63430008140033",VR0="0x608060405234801561001057600080fd5b50600436106102265760003560e01c80638456cb5911610130578063d5391393116100b8578063e63ab1e91161007c578063e63ab1e914610681578063e985e9c51461069f578063ee4525d5146106cf578063f242432a146106ff578063f5298aca1461071b57610226565b8063d5391393146105b7578063d547741f146105d5578063d9d61655146105f1578063e345e0bc14610621578063e62de01b1461065157610226565b8063a0a124dd116100ff578063a0a124dd14610515578063a217fddf14610531578063a22cb4651461054f578063a574cea41461056b578063b537b2691461059b57610226565b80638456cb591461048f5780638b12937c146104995780638cb0a511146104c957806391d14854146104e557610226565b80632fecd4bb116101b35780635c975abb116101825780635c975abb146103ff578063605105f01461041d5780636b20c454146104395780637f34571014610455578063829e47e51461047357610226565b80632fecd4bb1461037957806336568abe146103a95780633f4ba83a146103c55780634e1273f4146103cf57610226565b8063127217d6116101fa578063127217d6146102d75780631e9c2d67146102f3578063248a9ca3146103115780632eb2c2d6146103415780632f2ff15d1461035d57610226565b8062fdd58e1461022b57806301ffc9a71461025b57806302fe53051461028b5780630e89341c146102a7575b600080fd5b610245600480360381019061024091906135d0565b610737565b604051610252919061361f565b60405180910390f35b61027560048036038101906102709190613692565b610791565b60405161028291906136da565b60405180910390f35b6102a560048036038101906102a0919061383b565b6107a3565b005b6102c160048036038101906102bc9190613884565b6107da565b6040516102ce9190613930565b60405180910390f35b6102f160048036038101906102ec91906139f3565b6108b5565b005b6102fb610ba4565b604051610308919061361f565b60405180910390f35b61032b60048036038101906103269190613ac0565b610baa565b6040516103389190613afc565b60405180910390f35b61035b60048036038101906103569190613bdf565b610bca565b005b61037760048036038101906103729190613cae565b610c72565b005b610393600480360381019061038e91906135d0565b610c94565b6040516103a0919061361f565b60405180910390f35b6103c360048036038101906103be9190613cae565b610cef565b005b6103cd610d6a565b005b6103e960048036038101906103e49190613db1565b610d9f565b6040516103f69190613ee7565b60405180910390f35b610407610eae565b60405161041491906136da565b60405180910390f35b610437600480360381019061043291906139f3565b610ec5565b005b610453600480360381019061044e9190613f09565b610f36565b005b61045d610fe2565b60405161046a9190613afc565b60405180910390f35b61048d60048036038101906104889190613fc0565b611006565b005b610497611393565b005b6104b360048036038101906104ae9190613884565b6113c8565b6040516104c0919061361f565b60405180910390f35b6104e360048036038101906104de9190614073565b6113f2565b005b6104ff60048036038101906104fa9190613cae565b61165f565b60405161050c91906136da565b60405180910390f35b61052f600480360381019061052a91906140c6565b6116ca565b005b61053961171c565b6040516105469190613afc565b60405180910390f35b610569600480360381019061056491906140f3565b611723565b005b61058560048036038101906105809190613884565b611739565b6040516105929190613930565b60405180910390f35b6105b560048036038101906105b091906135d0565b6117de565b005b6105bf6118dd565b6040516105cc9190613afc565b60405180910390f35b6105ef60048036038101906105ea9190613cae565b611901565b005b61060b600480360381019061060691906140c6565b611923565b6040516106189190613ee7565b60405180910390f35b61063b60048036038101906106369190614133565b6119ba565b604051610648919061361f565b60405180910390f35b61066b600480360381019061066691906135d0565b611a18565b604051610678919061361f565b60405180910390f35b610689611a8c565b6040516106969190613afc565b60405180910390f35b6106b960048036038101906106b49190614173565b611ab0565b6040516106c691906136da565b60405180910390f35b6106e960048036038101906106e49190613884565b611b44565b6040516106f69190614271565b60405180910390f35b610719600480360381019061071491906139f3565b611be5565b005b61073560048036038101906107309190614293565b611c8d565b005b600080600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061079c82611d39565b9050919050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c6107cd81611db3565b6107d682611dc7565b5050565b606060006107e86000611dda565b9050600060056000858152602001908152602001600020805461080a90614315565b80601f016020809104026020016040519081016040528092919081815260200182805461083690614315565b80156108835780601f1061085857610100808354040283529160200191610883565b820191906000526020600020905b81548152906001019060200180831161086657829003601f168201915b50505050509050818160405160200161089d929190614382565b60405160208183030381529060405292505050919050565b816007600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610948576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093f906143f2565b60405180910390fd5b816007600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546109a89190614441565b925050819055506109bc8585858585611be5565b816007600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610a1c9190614475565b9250508190555060086000848152602001908152602001600020849080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002083908060018154018082558091505060019003906000526020600020016000909190919091505560006007600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205403610b6057610b5f8386611e6e565b5b7feeb0e676a4fccb21187462c64b95d0e58742fed59dbc3a8795d8e8ff8ccfba1683868685604051610b9594939291906144b8565b60405180910390a15050505050565b61271081565b600060036000838152602001908152602001600020600101549050919050565b6000610bd4612203565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015610c195750610c178682611ab0565b155b15610c5d5780866040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610c549291906144fd565b60405180910390fd5b610c6a868686868661220b565b505050505050565b610c7b82610baa565b610c8481611db3565b610c8e8383612303565b50505050565b60006007600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610cf7612203565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d5b576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d6582826123f5565b505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d9481611db3565b610d9c6124e8565b50565b60608151835114610deb57815183516040517f5b059991000000000000000000000000000000000000000000000000000000008152600401610de2929190614526565b60405180910390fd5b6000835167ffffffffffffffff811115610e0857610e07613710565b5b604051908082528060200260200182016040528015610e365781602001602082028036833780820191505090505b50905060005b8451811015610ea357610e73610e5b828761254b90919063ffffffff16565b610e6e838761255f90919063ffffffff16565b610737565b828281518110610e8657610e8561454f565b5b60200260200101818152505080610e9c9061457e565b9050610e3c565b508091505092915050565b6000600460009054906101000a900460ff16905090565b6000610ed184336119ba565b905082811015610f16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0d90614612565b60405180910390fd5b610f21338585612573565b610f2e86868686866108b5565b505050505050565b610f3e612203565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610f875750610f8583610f80612203565b611ab0565b155b15610fd257610f94612203565b836040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610fc99291906144fd565b60405180910390fd5b610fdd838383612634565b505050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c81565b600060086000868152602001908152602001600020805490501461105f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110569061467e565b60405180910390fd5b81156111f457600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632228adcc856040518263ffffffff1660e01b81526004016110c0919061361f565b602060405180830381865afa1580156110dd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110191906146b3565b611140576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111379061472c565b60405180910390fd5b600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c58784b8856040518263ffffffff1660e01b815260040161119b919061361f565b602060405180830381865afa1580156111b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111dc9190614761565b60066000868152602001908152602001600020819055505b6112028585612710846126c8565b82600560008681526020019081526020016000209081611222919061493a565b506127106007600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060086000858152602001908152602001600020859080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020849080600181540180825580915050600190039060005260206000200160009091909190915055837f3a5398bda6f1f57d6c96834fa9bf02b5517bdc847d14312015a917ba421c31c9866040516113849190614a0c565b60405180910390a25050505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6113bd81611db3565b6113c5612761565b50565b600061271060066000848152602001908152602001600020546113eb9190614a56565b9050919050565b806007600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147c90614612565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16036114f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ea90614ad3565b60405180910390fd5b6114fe826001611723565b6000600a6000858152602001908152602001600020905060008160010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054036115c45780600001839080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b818160010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff16847f7a5c69a7c393db8f307d6fea9c8addb8c18644d1172a623792a4017298a1a58284604051611651919061361f565b60405180910390a350505050565b60006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b6116d781611db3565b81600460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000801b81565b61173561172e612203565b83836127c4565b5050565b606060056000838152602001908152602001600020805461175990614315565b80601f016020809104026020016040519081016040528092919081815260200182805461178590614315565b80156117d25780601f106117a7576101008083540402835291602001916117d2565b820191906000526020600020905b8154815290600101906020018083116117b557829003601f168201915b50505050509050919050565b60006007600083815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411611871576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186890614b65565b60405180910390fd5b600061187d82846119ba565b9050600081116118c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b990614bd1565b60405180910390fd5b6118cd838383612573565b6118d8836000611723565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61190a82610baa565b61191381611db3565b61191d83836123f5565b50505050565b6060600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156119ae57602002820191906000526020600020905b81548152602001906001019080831161199a575b50505050509050919050565b6000600a600084815260200190815260200160002060010160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061271060646007600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a7a9190614bf1565b611a849190614a56565b905092915050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060086000838152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611bd957602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611b8f575b50505050509050919050565b6000611bef612203565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015611c345750611c328682611ab0565b155b15611c785780866040517fe237d922000000000000000000000000000000000000000000000000000000008152600401611c6f9291906144fd565b60405180910390fd5b611c858686868686612934565b505050505050565b611c95612203565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611cde5750611cdc83611cd7612203565b611ab0565b155b15611d2957611ceb612203565b836040517fe237d922000000000000000000000000000000000000000000000000000000008152600401611d209291906144fd565b60405180910390fd5b611d34838383612a3f565b505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611dac5750611dab82612ae6565b5b9050919050565b611dc481611dbf612203565b612bc8565b50565b8060029081611dd6919061493a565b5050565b606060028054611de990614315565b80601f0160208091040260200160405190810160405280929190818152602001828054611e1590614315565b8015611e625780601f10611e3757610100808354040283529160200191611e62565b820191906000526020600020905b815481529060010190602001808311611e4557829003601f168201915b50505050509050919050565b600060086000848152602001908152602001600020905060008180549050905060005b600182611e9e9190614441565b811015611fe0578373ffffffffffffffffffffffffffffffffffffffff16838281548110611ecf57611ece61454f565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603611fcd5782600183611f239190614441565b81548110611f3457611f3361454f565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600860008781526020019081526020016000208281548110611f8457611f8361454f565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b8080611fd89061457e565b915050611e91565b506008600085815260200190815260200160002080548061200457612003614c33565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590556000600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008180549050905060005b6001826120959190614441565b81101561215d57868382815481106120b0576120af61454f565b5b90600052602060002001540361214a57826001836120ce9190614441565b815481106120df576120de61454f565b5b9060005260206000200154600960008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811061213b5761213a61454f565b5b90600052602060002001819055505b80806121559061457e565b915050612088565b50600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806121ad576121ac614c33565b5b60019003818190600052602060002001600090559055857fb313f5a88a5d21dd54119393bab2baac6503d2bc1368bd7af3281737aefe9447866040516121f39190614a0c565b60405180910390a2505050505050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361227d5760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016122749190614a0c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036122ef5760006040517f01a835140000000000000000000000000000000000000000000000000000000081526004016122e69190614a0c565b60405180910390fd5b6122fc8585858585612c19565b5050505050565b600061230f838361165f565b6123ea5760016003600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612387612203565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4600190506123ef565b600090505b92915050565b6000612401838361165f565b156124dd5760006003600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061247a612203565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a4600190506124e2565b600090505b92915050565b6124f0612ccb565b6000600460006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612534612203565b6040516125419190614a0c565b60405180910390a1565b600060208202602084010151905092915050565b600060208202602084010151905092915050565b600061257f83856119ba565b9050818110156125c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125bb90614612565b60405180910390fd5b81600a600085815260200190815260200160002060010160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126279190614441565b9250508190555050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036126a65760006040517f01a8351400000000000000000000000000000000000000000000000000000000815260040161269d9190614a0c565b60405180910390fd5b6126c3836000848460405180602001604052806000815250612c19565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361273a5760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016127319190614a0c565b60405180910390fd5b6000806127478585612d0b565b91509150612759600087848487612c19565b505050505050565b612769612d3b565b6001600460006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586127ad612203565b6040516127ba9190614a0c565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036128365760006040517fced3e10000000000000000000000000000000000000000000000000000000000815260040161282d9190614a0c565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161292791906136da565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036129a65760006040517f57f447ce00000000000000000000000000000000000000000000000000000000815260040161299d9190614a0c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612a185760006040517f01a83514000000000000000000000000000000000000000000000000000000008152600401612a0f9190614a0c565b60405180910390fd5b600080612a258585612d0b565b91509150612a368787848487612c19565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612ab15760006040517f01a83514000000000000000000000000000000000000000000000000000000008152600401612aa89190614a0c565b60405180910390fd5b600080612abe8484612d0b565b91509150612adf856000848460405180602001604052806000815250612c19565b5050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612bb157507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612bc15750612bc082612d7c565b5b9050919050565b612bd2828261165f565b612c155780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401612c0c929190614c62565b60405180910390fd5b5050565b612c2585858585612de6565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612cc4576000612c63612203565b90506001845103612cb3576000612c8460008661255f90919063ffffffff16565b90506000612c9c60008661255f90919063ffffffff16565b9050612cac838989858589612df8565b5050612cc2565b612cc1818787878787612fac565b5b505b5050505050565b612cd3610eae565b612d09576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608060405191506001825283602083015260408201905060018152826020820152604081016040529250929050565b612d43610eae565b15612d7a576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612df284848484613160565b50505050565b60008473ffffffffffffffffffffffffffffffffffffffff163b1115612fa4578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612e59959493929190614ce0565b6020604051808303816000875af1925050508015612e9557506040513d601f19601f82011682018060405250810190612e929190614d4f565b60015b612f19573d8060008114612ec5576040519150601f19603f3d011682016040523d82523d6000602084013e612eca565b606091505b506000815103612f1157846040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401612f089190614a0c565b60405180910390fd5b805181602001fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612fa257846040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401612f999190614a0c565b60405180910390fd5b505b505050505050565b60008473ffffffffffffffffffffffffffffffffffffffff163b1115613158578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b815260040161300d959493929190614d7c565b6020604051808303816000875af192505050801561304957506040513d601f19601f820116820180604052508101906130469190614d4f565b60015b6130cd573d8060008114613079576040519150601f19603f3d011682016040523d82523d6000602084013e61307e565b606091505b5060008151036130c557846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016130bc9190614a0c565b60405180910390fd5b805181602001fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461315657846040517f57f447ce00000000000000000000000000000000000000000000000000000000815260040161314d9190614a0c565b60405180910390fd5b505b505050505050565b613168612d3b565b6131748484848461317a565b50505050565b80518251146131c457815181516040517f5b0599910000000000000000000000000000000000000000000000000000000081526004016131bb929190614526565b60405180910390fd5b60006131ce612203565b905060005b83518110156133e35760006131f1828661255f90919063ffffffff16565b90506000613208838661255f90919063ffffffff16565b9050600073ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff161461333557600080600084815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156132dd57888183856040517f03dee4c50000000000000000000000000000000000000000000000000000000081526004016132d49493929190614de4565b60405180910390fd5b81810360008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16146133d0578060008084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546133c89190614475565b925050819055505b5050806133dc9061457e565b90506131d3565b5060018351036134a257600061340360008561255f90919063ffffffff16565b9050600061341b60008561255f90919063ffffffff16565b90508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628585604051613493929190614526565b60405180910390a45050613521565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051613518929190614e29565b60405180910390a45b5050505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006135678261353c565b9050919050565b6135778161355c565b811461358257600080fd5b50565b6000813590506135948161356e565b92915050565b6000819050919050565b6135ad8161359a565b81146135b857600080fd5b50565b6000813590506135ca816135a4565b92915050565b600080604083850312156135e7576135e6613532565b5b60006135f585828601613585565b9250506020613606858286016135bb565b9150509250929050565b6136198161359a565b82525050565b60006020820190506136346000830184613610565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61366f8161363a565b811461367a57600080fd5b50565b60008135905061368c81613666565b92915050565b6000602082840312156136a8576136a7613532565b5b60006136b68482850161367d565b91505092915050565b60008115159050919050565b6136d4816136bf565b82525050565b60006020820190506136ef60008301846136cb565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613748826136ff565b810181811067ffffffffffffffff8211171561376757613766613710565b5b80604052505050565b600061377a613528565b9050613786828261373f565b919050565b600067ffffffffffffffff8211156137a6576137a5613710565b5b6137af826136ff565b9050602081019050919050565b82818337600083830152505050565b60006137de6137d98461378b565b613770565b9050828152602081018484840111156137fa576137f96136fa565b5b6138058482856137bc565b509392505050565b600082601f830112613822576138216136f5565b5b81356138328482602086016137cb565b91505092915050565b60006020828403121561385157613850613532565b5b600082013567ffffffffffffffff81111561386f5761386e613537565b5b61387b8482850161380d565b91505092915050565b60006020828403121561389a57613899613532565b5b60006138a8848285016135bb565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156138eb5780820151818401526020810190506138d0565b60008484015250505050565b6000613902826138b1565b61390c81856138bc565b935061391c8185602086016138cd565b613925816136ff565b840191505092915050565b6000602082019050818103600083015261394a81846138f7565b905092915050565b600067ffffffffffffffff82111561396d5761396c613710565b5b613976826136ff565b9050602081019050919050565b600061399661399184613952565b613770565b9050828152602081018484840111156139b2576139b16136fa565b5b6139bd8482856137bc565b509392505050565b600082601f8301126139da576139d96136f5565b5b81356139ea848260208601613983565b91505092915050565b600080600080600060a08688031215613a0f57613a0e613532565b5b6000613a1d88828901613585565b9550506020613a2e88828901613585565b9450506040613a3f888289016135bb565b9350506060613a50888289016135bb565b925050608086013567ffffffffffffffff811115613a7157613a70613537565b5b613a7d888289016139c5565b9150509295509295909350565b6000819050919050565b613a9d81613a8a565b8114613aa857600080fd5b50565b600081359050613aba81613a94565b92915050565b600060208284031215613ad657613ad5613532565b5b6000613ae484828501613aab565b91505092915050565b613af681613a8a565b82525050565b6000602082019050613b116000830184613aed565b92915050565b600067ffffffffffffffff821115613b3257613b31613710565b5b602082029050602081019050919050565b600080fd5b6000613b5b613b5684613b17565b613770565b90508083825260208201905060208402830185811115613b7e57613b7d613b43565b5b835b81811015613ba75780613b9388826135bb565b845260208401935050602081019050613b80565b5050509392505050565b600082601f830112613bc657613bc56136f5565b5b8135613bd6848260208601613b48565b91505092915050565b600080600080600060a08688031215613bfb57613bfa613532565b5b6000613c0988828901613585565b9550506020613c1a88828901613585565b945050604086013567ffffffffffffffff811115613c3b57613c3a613537565b5b613c4788828901613bb1565b935050606086013567ffffffffffffffff811115613c6857613c67613537565b5b613c7488828901613bb1565b925050608086013567ffffffffffffffff811115613c9557613c94613537565b5b613ca1888289016139c5565b9150509295509295909350565b60008060408385031215613cc557613cc4613532565b5b6000613cd385828601613aab565b9250506020613ce485828601613585565b9150509250929050565b600067ffffffffffffffff821115613d0957613d08613710565b5b602082029050602081019050919050565b6000613d2d613d2884613cee565b613770565b90508083825260208201905060208402830185811115613d5057613d4f613b43565b5b835b81811015613d795780613d658882613585565b845260208401935050602081019050613d52565b5050509392505050565b600082601f830112613d9857613d976136f5565b5b8135613da8848260208601613d1a565b91505092915050565b60008060408385031215613dc857613dc7613532565b5b600083013567ffffffffffffffff811115613de657613de5613537565b5b613df285828601613d83565b925050602083013567ffffffffffffffff811115613e1357613e12613537565b5b613e1f85828601613bb1565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613e5e8161359a565b82525050565b6000613e708383613e55565b60208301905092915050565b6000602082019050919050565b6000613e9482613e29565b613e9e8185613e34565b9350613ea983613e45565b8060005b83811015613eda578151613ec18882613e64565b9750613ecc83613e7c565b925050600181019050613ead565b5085935050505092915050565b60006020820190508181036000830152613f018184613e89565b905092915050565b600080600060608486031215613f2257613f21613532565b5b6000613f3086828701613585565b935050602084013567ffffffffffffffff811115613f5157613f50613537565b5b613f5d86828701613bb1565b925050604084013567ffffffffffffffff811115613f7e57613f7d613537565b5b613f8a86828701613bb1565b9150509250925092565b613f9d816136bf565b8114613fa857600080fd5b50565b600081359050613fba81613f94565b92915050565b600080600080600060a08688031215613fdc57613fdb613532565b5b6000613fea88828901613585565b9550506020613ffb888289016135bb565b945050604086013567ffffffffffffffff81111561401c5761401b613537565b5b6140288882890161380d565b935050606061403988828901613fab565b925050608086013567ffffffffffffffff81111561405a57614059613537565b5b614066888289016139c5565b9150509295509295909350565b60008060006060848603121561408c5761408b613532565b5b600061409a868287016135bb565b93505060206140ab86828701613585565b92505060406140bc868287016135bb565b9150509250925092565b6000602082840312156140dc576140db613532565b5b60006140ea84828501613585565b91505092915050565b6000806040838503121561410a57614109613532565b5b600061411885828601613585565b925050602061412985828601613fab565b9150509250929050565b6000806040838503121561414a57614149613532565b5b6000614158858286016135bb565b925050602061416985828601613585565b9150509250929050565b6000806040838503121561418a57614189613532565b5b600061419885828601613585565b92505060206141a985828601613585565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6141e88161355c565b82525050565b60006141fa83836141df565b60208301905092915050565b6000602082019050919050565b600061421e826141b3565b61422881856141be565b9350614233836141cf565b8060005b8381101561426457815161424b88826141ee565b975061425683614206565b925050600181019050614237565b5085935050505092915050565b6000602082019050818103600083015261428b8184614213565b905092915050565b6000806000606084860312156142ac576142ab613532565b5b60006142ba86828701613585565b93505060206142cb868287016135bb565b92505060406142dc868287016135bb565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061432d57607f821691505b6020821081036143405761433f6142e6565b5b50919050565b600081905092915050565b600061435c826138b1565b6143668185614346565b93506143768185602086016138cd565b80840191505092915050565b600061438e8285614351565b915061439a8284614351565b91508190509392505050565b7f496e73756666696369656e74206f776e6572736869702062616c616e63650000600082015250565b60006143dc601e836138bc565b91506143e7826143a6565b602082019050919050565b6000602082019050818103600083015261440b816143cf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061444c8261359a565b91506144578361359a565b925082820390508181111561446f5761446e614412565b5b92915050565b60006144808261359a565b915061448b8361359a565b92508282019050808211156144a3576144a2614412565b5b92915050565b6144b28161355c565b82525050565b60006080820190506144cd6000830187613610565b6144da60208301866144a9565b6144e760408301856144a9565b6144f46060830184613610565b95945050505050565b600060408201905061451260008301856144a9565b61451f60208301846144a9565b9392505050565b600060408201905061453b6000830185613610565b6145486020830184613610565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006145898261359a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036145bb576145ba614412565b5b600182019050919050565b7f496e73756666696369656e7420616c6c6f77616e636500000000000000000000600082015250565b60006145fc6016836138bc565b9150614607826145c6565b602082019050919050565b6000602082019050818103600083015261462b816145ef565b9050919050565b7f496e76616c696420746f6b656e20494400000000000000000000000000000000600082015250565b60006146686010836138bc565b915061467382614632565b602082019050919050565b600060208201905081810360008301526146978161465b565b9050919050565b6000815190506146ad81613f94565b92915050565b6000602082840312156146c9576146c8613532565b5b60006146d78482850161469e565b91505092915050565b7f4173736574206973206e6f742072657365727665642079657400000000000000600082015250565b60006147166019836138bc565b9150614721826146e0565b602082019050919050565b6000602082019050818103600083015261474581614709565b9050919050565b60008151905061475b816135a4565b92915050565b60006020828403121561477757614776613532565b5b60006147858482850161474c565b91505092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026147f07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826147b3565b6147fa86836147b3565b95508019841693508086168417925050509392505050565b6000819050919050565b600061483761483261482d8461359a565b614812565b61359a565b9050919050565b6000819050919050565b6148518361481c565b61486561485d8261483e565b8484546147c0565b825550505050565b600090565b61487a61486d565b614885818484614848565b505050565b5b818110156148a95761489e600082614872565b60018101905061488b565b5050565b601f8211156148ee576148bf8161478e565b6148c8846147a3565b810160208510156148d7578190505b6148eb6148e3856147a3565b83018261488a565b50505b505050565b600082821c905092915050565b6000614911600019846008026148f3565b1980831691505092915050565b600061492a8383614900565b9150826002028217905092915050565b614943826138b1565b67ffffffffffffffff81111561495c5761495b613710565b5b6149668254614315565b6149718282856148ad565b600060209050601f8311600181146149a45760008415614992578287015190505b61499c858261491e565b865550614a04565b601f1984166149b28661478e565b60005b828110156149da578489015182556001820191506020850194506020810190506149b5565b868310156149f757848901516149f3601f891682614900565b8355505b6001600288020188555050505b505050505050565b6000602082019050614a2160008301846144a9565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614a618261359a565b9150614a6c8361359a565b925082614a7c57614a7b614a27565b5b828204905092915050565b7f417070726f76616c20746f2063757272656e74206f776e657200000000000000600082015250565b6000614abd6019836138bc565b9150614ac882614a87565b602082019050919050565b60006020820190508181036000830152614aec81614ab0565b9050919050565b7f496e76616c6964206f776e65727368697020616d6f756e7420746f2072656d6f60008201527f766520617070726f76616c000000000000000000000000000000000000000000602082015250565b6000614b4f602b836138bc565b9150614b5a82614af3565b604082019050919050565b60006020820190508181036000830152614b7e81614b42565b9050919050565b7f496e73756666696369656e74206f70657261746f7220616c6c6f77616e636500600082015250565b6000614bbb601f836138bc565b9150614bc682614b85565b602082019050919050565b60006020820190508181036000830152614bea81614bae565b9050919050565b6000614bfc8261359a565b9150614c078361359a565b9250828202614c158161359a565b91508282048414831517614c2c57614c2b614412565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6000604082019050614c7760008301856144a9565b614c846020830184613aed565b9392505050565b600081519050919050565b600082825260208201905092915050565b6000614cb282614c8b565b614cbc8185614c96565b9350614ccc8185602086016138cd565b614cd5816136ff565b840191505092915050565b600060a082019050614cf560008301886144a9565b614d0260208301876144a9565b614d0f6040830186613610565b614d1c6060830185613610565b8181036080830152614d2e8184614ca7565b90509695505050505050565b600081519050614d4981613666565b92915050565b600060208284031215614d6557614d64613532565b5b6000614d7384828501614d3a565b91505092915050565b600060a082019050614d9160008301886144a9565b614d9e60208301876144a9565b8181036040830152614db08186613e89565b90508181036060830152614dc48185613e89565b90508181036080830152614dd88184614ca7565b90509695505050505050565b6000608082019050614df960008301876144a9565b614e066020830186613610565b614e136040830185613610565b614e206060830184613610565b95945050505050565b60006040820190508181036000830152614e438185613e89565b90508181036020830152614e578184613e89565b9050939250505056fea2646970667358221220de63f5740515848dd109a00de65c881315fb9639a36f288efb541c64723b5f1264736f6c63430008140033",KR0={},QR0={},Qy={_format:UR0,contractName:WR0,sourceName:qR0,abi:HR0,bytecode:GR0,deployedBytecode:VR0,linkReferences:KR0,deployedLinkReferences:QR0},JR0="hh-sol-artifact-1",ZR0="Matic",YR0="contracts/Mocks/Matic.sol",XR0=[{inputs:[{internalType:"uint256",name:"_totalSupply",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"allowance",type:"uint256"},{internalType:"uint256",name:"needed",type:"uint256"}],name:"ERC20InsufficientAllowance",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"balance",type:"uint256"},{internalType:"uint256",name:"needed",type:"uint256"}],name:"ERC20InsufficientBalance",type:"error"},{inputs:[{internalType:"address",name:"approver",type:"address"}],name:"ERC20InvalidApprover",type:"error"},{inputs:[{internalType:"address",name:"receiver",type:"address"}],name:"ERC20InvalidReceiver",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"}],name:"ERC20InvalidSender",type:"error"},{inputs:[{internalType:"address",name:"spender",type:"address"}],name:"ERC20InvalidSpender",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Issue",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"feeBasisPoints",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxFee",type:"uint256"}],name:"Params",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Redeem",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"issue",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"redeem",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdraw",outputs:[],stateMutability:"nonpayable",type:"function"}],uN0="0x60806040523480156200001157600080fd5b5060405162001de938038062001de9833981810160405281019062000037919062000544565b336040518060400160405280600b81526020017f4d6174696320546f6b656e0000000000000000000000000000000000000000008152506040518060400160405280600581526020017f4d617469630000000000000000000000000000000000000000000000000000008152508160039081620000b59190620007e6565b508060049081620000c79190620007e6565b505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036200013f5760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040162000136919062000912565b60405180910390fd5b62000150816200017960201b60201c565b5062000172620001656200023f60201b60201c565b826200024760201b60201c565b5062000a04565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620002bc5760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401620002b3919062000912565b60405180910390fd5b620002d060008383620002d460201b60201c565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036200032a5780600260008282546200031d91906200095e565b9250508190555062000400565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015620003b9578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401620003b093929190620009aa565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036200044b578060026000828254039250508190555062000498565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620004f79190620009e7565b60405180910390a3505050565b600080fd5b6000819050919050565b6200051e8162000509565b81146200052a57600080fd5b50565b6000815190506200053e8162000513565b92915050565b6000602082840312156200055d576200055c62000504565b5b60006200056d848285016200052d565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620005f857607f821691505b6020821081036200060e576200060d620005b0565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006787fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000639565b62000684868362000639565b95508019841693508086168417925050509392505050565b6000819050919050565b6000620006c7620006c1620006bb8462000509565b6200069c565b62000509565b9050919050565b6000819050919050565b620006e383620006a6565b620006fb620006f282620006ce565b84845462000646565b825550505050565b600090565b6200071262000703565b6200071f818484620006d8565b505050565b5b8181101562000747576200073b60008262000708565b60018101905062000725565b5050565b601f8211156200079657620007608162000614565b6200076b8462000629565b810160208510156200077b578190505b620007936200078a8562000629565b83018262000724565b50505b505050565b600082821c905092915050565b6000620007bb600019846008026200079b565b1980831691505092915050565b6000620007d68383620007a8565b9150826002028217905092915050565b620007f18262000576565b67ffffffffffffffff8111156200080d576200080c62000581565b5b620008198254620005df565b620008268282856200074b565b600060209050601f8311600181146200085e576000841562000849578287015190505b620008558582620007c8565b865550620008c5565b601f1984166200086e8662000614565b60005b82811015620008985784890151825560018201915060208501945060208101905062000871565b86831015620008b85784890151620008b4601f891682620007a8565b8355505b6001600288020188555050505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620008fa82620008cd565b9050919050565b6200090c81620008ed565b82525050565b600060208201905062000929600083018462000901565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006200096b8262000509565b9150620009788362000509565b92508282019050808211156200099357620009926200092f565b5b92915050565b620009a48162000509565b82525050565b6000606082019050620009c1600083018662000901565b620009d0602083018562000999565b620009df604083018462000999565b949350505050565b6000602082019050620009fe600083018462000999565b92915050565b6113d58062000a146000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c8063715018a611610097578063cc872b6611610066578063cc872b6614610276578063db006a7514610292578063dd62ed3e146102ae578063f2fde38b146102de576100f5565b8063715018a6146102005780638da5cb5b1461020a57806395d89b4114610228578063a9059cbb14610246576100f5565b806323b872dd116100d357806323b872dd146101665780632e1a7d4d14610196578063313ce567146101b257806370a08231146101d0576100f5565b806306fdde03146100fa578063095ea7b31461011857806318160ddd14610148575b600080fd5b6101026102fa565b60405161010f9190610ffc565b60405180910390f35b610132600480360381019061012d91906110b7565b61038c565b60405161013f9190611112565b60405180910390f35b6101506103af565b60405161015d919061113c565b60405180910390f35b610180600480360381019061017b9190611157565b6103b9565b60405161018d9190611112565b60405180910390f35b6101b060048036038101906101ab91906111aa565b6103e8565b005b6101ba6103fc565b6040516101c791906111f3565b60405180910390f35b6101ea60048036038101906101e5919061120e565b610405565b6040516101f7919061113c565b60405180910390f35b61020861044d565b005b610212610461565b60405161021f919061124a565b60405180910390f35b61023061048b565b60405161023d9190610ffc565b60405180910390f35b610260600480360381019061025b91906110b7565b61051d565b60405161026d9190611112565b60405180910390f35b610290600480360381019061028b91906111aa565b610540565b005b6102ac60048036038101906102a791906111aa565b6105ed565b005b6102c860048036038101906102c39190611265565b610670565b6040516102d5919061113c565b60405180910390f35b6102f860048036038101906102f3919061120e565b6106f7565b005b606060038054610309906112d4565b80601f0160208091040260200160405190810160405280929190818152602001828054610335906112d4565b80156103825780601f1061035757610100808354040283529160200191610382565b820191906000526020600020905b81548152906001019060200180831161036557829003601f168201915b5050505050905090565b60008061039761077d565b90506103a4818585610785565b600191505092915050565b6000600254905090565b6000806103c461077d565b90506103d1858285610797565b6103dc85858561082b565b60019150509392505050565b6103f96103f361077d565b8261091f565b50565b60006012905090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6104556109a1565b61045f6000610a28565b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461049a906112d4565b80601f01602080910402602001604051908101604052809291908181526020018280546104c6906112d4565b80156105135780601f106104e857610100808354040283529160200191610513565b820191906000526020600020905b8154815290600101906020018083116104f657829003601f168201915b5050505050905090565b60008061052861077d565b905061053581858561082b565b600191505092915050565b6105486109a1565b6105506103af565b816105596103af565b6105639190611334565b1161056d57600080fd5b61057d61057861077d565b610405565b8161058e61058961077d565b610405565b6105989190611334565b116105a257600080fd5b6105b36105ad61077d565b82610aee565b7fcb8241adb0c3fdb35b70c24ce35c5eb0c17af7431c99f827d44a445ca624176a816040516105e2919061113c565b60405180910390a150565b6105f56109a1565b806105fe6103af565b101561060957600080fd5b8061061a61061561077d565b610405565b101561062557600080fd5b61063661063061077d565b8261091f565b7f702d5967f45f6513a38ffc42d6ba9bf230bd40e8f53b16363c7eb4fd2deb9a4481604051610665919061113c565b60405180910390a150565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6106ff6109a1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036107715760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610768919061124a565b60405180910390fd5b61077a81610a28565b50565b600033905090565b6107928383836001610b70565b505050565b60006107a38484610670565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146108255781811015610815578281836040517ffb8f41b200000000000000000000000000000000000000000000000000000000815260040161080c93929190611368565b60405180910390fd5b61082484848484036000610b70565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361089d5760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610894919061124a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361090f5760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610906919061124a565b60405180910390fd5b61091a838383610d47565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036109915760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610988919061124a565b60405180910390fd5b61099d82600083610d47565b5050565b6109a961077d565b73ffffffffffffffffffffffffffffffffffffffff166109c7610461565b73ffffffffffffffffffffffffffffffffffffffff1614610a26576109ea61077d565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a1d919061124a565b60405180910390fd5b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610b605760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610b57919061124a565b60405180910390fd5b610b6c60008383610d47565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610be25760006040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610bd9919061124a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c545760006040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610c4b919061124a565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508015610d41578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610d38919061113c565b60405180910390a35b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d99578060026000828254610d8d9190611334565b92505081905550610e6c565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610e25578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401610e1c93929190611368565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610eb55780600260008282540392505081905550610f02565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610f5f919061113c565b60405180910390a3505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610fa6578082015181840152602081019050610f8b565b60008484015250505050565b6000601f19601f8301169050919050565b6000610fce82610f6c565b610fd88185610f77565b9350610fe8818560208601610f88565b610ff181610fb2565b840191505092915050565b600060208201905081810360008301526110168184610fc3565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061104e82611023565b9050919050565b61105e81611043565b811461106957600080fd5b50565b60008135905061107b81611055565b92915050565b6000819050919050565b61109481611081565b811461109f57600080fd5b50565b6000813590506110b18161108b565b92915050565b600080604083850312156110ce576110cd61101e565b5b60006110dc8582860161106c565b92505060206110ed858286016110a2565b9150509250929050565b60008115159050919050565b61110c816110f7565b82525050565b60006020820190506111276000830184611103565b92915050565b61113681611081565b82525050565b6000602082019050611151600083018461112d565b92915050565b6000806000606084860312156111705761116f61101e565b5b600061117e8682870161106c565b935050602061118f8682870161106c565b92505060406111a0868287016110a2565b9150509250925092565b6000602082840312156111c0576111bf61101e565b5b60006111ce848285016110a2565b91505092915050565b600060ff82169050919050565b6111ed816111d7565b82525050565b600060208201905061120860008301846111e4565b92915050565b6000602082840312156112245761122361101e565b5b60006112328482850161106c565b91505092915050565b61124481611043565b82525050565b600060208201905061125f600083018461123b565b92915050565b6000806040838503121561127c5761127b61101e565b5b600061128a8582860161106c565b925050602061129b8582860161106c565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806112ec57607f821691505b6020821081036112ff576112fe6112a5565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061133f82611081565b915061134a83611081565b925082820190508082111561136257611361611305565b5b92915050565b600060608201905061137d600083018661123b565b61138a602083018561112d565b611397604083018461112d565b94935050505056fea2646970667358221220ca60ea52122ea3602d4c0f4ee673ab6c54bb7dbf7165641fa76c258d287eadd864736f6c63430008140033",eN0="0x608060405234801561001057600080fd5b50600436106100f55760003560e01c8063715018a611610097578063cc872b6611610066578063cc872b6614610276578063db006a7514610292578063dd62ed3e146102ae578063f2fde38b146102de576100f5565b8063715018a6146102005780638da5cb5b1461020a57806395d89b4114610228578063a9059cbb14610246576100f5565b806323b872dd116100d357806323b872dd146101665780632e1a7d4d14610196578063313ce567146101b257806370a08231146101d0576100f5565b806306fdde03146100fa578063095ea7b31461011857806318160ddd14610148575b600080fd5b6101026102fa565b60405161010f9190610ffc565b60405180910390f35b610132600480360381019061012d91906110b7565b61038c565b60405161013f9190611112565b60405180910390f35b6101506103af565b60405161015d919061113c565b60405180910390f35b610180600480360381019061017b9190611157565b6103b9565b60405161018d9190611112565b60405180910390f35b6101b060048036038101906101ab91906111aa565b6103e8565b005b6101ba6103fc565b6040516101c791906111f3565b60405180910390f35b6101ea60048036038101906101e5919061120e565b610405565b6040516101f7919061113c565b60405180910390f35b61020861044d565b005b610212610461565b60405161021f919061124a565b60405180910390f35b61023061048b565b60405161023d9190610ffc565b60405180910390f35b610260600480360381019061025b91906110b7565b61051d565b60405161026d9190611112565b60405180910390f35b610290600480360381019061028b91906111aa565b610540565b005b6102ac60048036038101906102a791906111aa565b6105ed565b005b6102c860048036038101906102c39190611265565b610670565b6040516102d5919061113c565b60405180910390f35b6102f860048036038101906102f3919061120e565b6106f7565b005b606060038054610309906112d4565b80601f0160208091040260200160405190810160405280929190818152602001828054610335906112d4565b80156103825780601f1061035757610100808354040283529160200191610382565b820191906000526020600020905b81548152906001019060200180831161036557829003601f168201915b5050505050905090565b60008061039761077d565b90506103a4818585610785565b600191505092915050565b6000600254905090565b6000806103c461077d565b90506103d1858285610797565b6103dc85858561082b565b60019150509392505050565b6103f96103f361077d565b8261091f565b50565b60006012905090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6104556109a1565b61045f6000610a28565b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461049a906112d4565b80601f01602080910402602001604051908101604052809291908181526020018280546104c6906112d4565b80156105135780601f106104e857610100808354040283529160200191610513565b820191906000526020600020905b8154815290600101906020018083116104f657829003601f168201915b5050505050905090565b60008061052861077d565b905061053581858561082b565b600191505092915050565b6105486109a1565b6105506103af565b816105596103af565b6105639190611334565b1161056d57600080fd5b61057d61057861077d565b610405565b8161058e61058961077d565b610405565b6105989190611334565b116105a257600080fd5b6105b36105ad61077d565b82610aee565b7fcb8241adb0c3fdb35b70c24ce35c5eb0c17af7431c99f827d44a445ca624176a816040516105e2919061113c565b60405180910390a150565b6105f56109a1565b806105fe6103af565b101561060957600080fd5b8061061a61061561077d565b610405565b101561062557600080fd5b61063661063061077d565b8261091f565b7f702d5967f45f6513a38ffc42d6ba9bf230bd40e8f53b16363c7eb4fd2deb9a4481604051610665919061113c565b60405180910390a150565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6106ff6109a1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036107715760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610768919061124a565b60405180910390fd5b61077a81610a28565b50565b600033905090565b6107928383836001610b70565b505050565b60006107a38484610670565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146108255781811015610815578281836040517ffb8f41b200000000000000000000000000000000000000000000000000000000815260040161080c93929190611368565b60405180910390fd5b61082484848484036000610b70565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361089d5760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610894919061124a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361090f5760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610906919061124a565b60405180910390fd5b61091a838383610d47565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036109915760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610988919061124a565b60405180910390fd5b61099d82600083610d47565b5050565b6109a961077d565b73ffffffffffffffffffffffffffffffffffffffff166109c7610461565b73ffffffffffffffffffffffffffffffffffffffff1614610a26576109ea61077d565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a1d919061124a565b60405180910390fd5b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610b605760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610b57919061124a565b60405180910390fd5b610b6c60008383610d47565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610be25760006040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610bd9919061124a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c545760006040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610c4b919061124a565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508015610d41578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610d38919061113c565b60405180910390a35b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d99578060026000828254610d8d9190611334565b92505081905550610e6c565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610e25578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401610e1c93929190611368565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610eb55780600260008282540392505081905550610f02565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610f5f919061113c565b60405180910390a3505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610fa6578082015181840152602081019050610f8b565b60008484015250505050565b6000601f19601f8301169050919050565b6000610fce82610f6c565b610fd88185610f77565b9350610fe8818560208601610f88565b610ff181610fb2565b840191505092915050565b600060208201905081810360008301526110168184610fc3565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061104e82611023565b9050919050565b61105e81611043565b811461106957600080fd5b50565b60008135905061107b81611055565b92915050565b6000819050919050565b61109481611081565b811461109f57600080fd5b50565b6000813590506110b18161108b565b92915050565b600080604083850312156110ce576110cd61101e565b5b60006110dc8582860161106c565b92505060206110ed858286016110a2565b9150509250929050565b60008115159050919050565b61110c816110f7565b82525050565b60006020820190506111276000830184611103565b92915050565b61113681611081565b82525050565b6000602082019050611151600083018461112d565b92915050565b6000806000606084860312156111705761116f61101e565b5b600061117e8682870161106c565b935050602061118f8682870161106c565b92505060406111a0868287016110a2565b9150509250925092565b6000602082840312156111c0576111bf61101e565b5b60006111ce848285016110a2565b91505092915050565b600060ff82169050919050565b6111ed816111d7565b82525050565b600060208201905061120860008301846111e4565b92915050565b6000602082840312156112245761122361101e565b5b60006112328482850161106c565b91505092915050565b61124481611043565b82525050565b600060208201905061125f600083018461123b565b92915050565b6000806040838503121561127c5761127b61101e565b5b600061128a8582860161106c565b925050602061129b8582860161106c565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806112ec57607f821691505b6020821081036112ff576112fe6112a5565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061133f82611081565b915061134a83611081565b925082820190508082111561136257611361611305565b5b92915050565b600060608201905061137d600083018661123b565b61138a602083018561112d565b611397604083018461112d565b94935050505056fea2646970667358221220ca60ea52122ea3602d4c0f4ee673ab6c54bb7dbf7165641fa76c258d287eadd864736f6c63430008140033",tN0={},nN0={},rN0={_format:JR0,contractName:ZR0,sourceName:YR0,abi:XR0,bytecode:uN0,deployedBytecode:eN0,linkReferences:tN0,deployedLinkReferences:nN0},iN0={minimumSharePerBuyer:1,amount:0,pricePerShare:1};function Zk(u){let{NFTId:e}=N7(),{OrderId:t}=N7();const[n,r]=w.useState(),[i,a]=w.useState(iN0),[o,s]=w.useState(0),[f,l]=w.useState(!1),c=async()=>{h&&m&&(l(!0),h())},d=async()=>{console.log("Go for buy.."),console.log("Matic :",B," Buy:",F),B&&(console.log("Go for buy.."),l(!0),B())},{config:E}=cf({address:Py,abi:Qy.abi,functionName:"approve",args:[e,Ka,i.amount],enabled:!!(e&&Ka&&i.amount)}),{data:p,write:h}=lf(E),{config:g}=cf({address:Ka,abi:tm.abi,functionName:"listTokenForSale",args:[e,i.amount,i.pricePerShare],enabled:!!(e&&i.pricePerShare&&i.amount)}),{data:b,write:m}=lf(g);df({hash:p==null?void 0:p.hash,onSuccess(Z){console.log("Approved Successfully",Z),m==null||m()},onError(Z){console.log("Approved Error",Z)}}),df({hash:b==null?void 0:b.hash,onSuccess:()=>{l(!1)},onError:()=>{l(!1)}});const{config:A}=cf({address:xP0,abi:rN0.abi,functionName:"approve",args:[Ka,o*1e13],enabled:!!o}),{data:y,write:B}=lf(A),{config:v}=cf({address:Ka,abi:tm.abi,functionName:"buyToken",args:[t,e,o,"0xAbCc66D8c6e22F7F5C6d6A46a04618Ea4990895F"],enabled:!!(e&&o)}),{data:C,write:F}=lf(v);df({hash:y==null?void 0:y.hash,onSuccess(Z){console.log("Approved Successfully",Z),F==null||F()},onError(Z){console.log("Approved Error",Z)}}),df({hash:C==null?void 0:C.hash,onSuccess:()=>{l(!1)},onError:()=>{l(!1)}});const S=async()=>{if(console.log("get NFT Details..."),e)try{const Z=Ky(BigInt(e)),O=await(await fetch("https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/"+Z)).json();r({name:O.name,image:O.image,tokenId:e})}catch(Z){console.error("Error fetching NFT Detail: ",Z)}},x=Z=>{Z.preventDefault(),console.log(i),c()},$=Z=>{Z.preventDefault(),console.log("amount to Buy:",o),d()},X=Z=>{const{name:I,value:O}=Z.target;a({...i,[I]:O})},Q=Z=>{const{value:I}=Z.target;s(Number(I))};return w.useEffect(()=>{S()},[e]),V.jsx(r3,{width:"100%",container:!0,justifyContent:"center",spacing:3,padding:7,direction:"column",alignItems:"center",children:V.jsx(_y,{sx:{Width:"100%",minHeight:400},children:V.jsxs(xi,{padding:5,direction:"row",spacing:3,children:[V.jsx(_P,{sx:{maxWidth:"250"},children:V.jsx("img",{src:n==null?void 0:n.image})}),V.jsxs(xi,{padding:5,direction:"column",spacing:1,children:[V.jsxs(xi,{padding:1,direction:"row",spacing:3,children:[V.jsx(Jt,{children:"NFT name: "}),V.jsx(Jt,{children:n==null?void 0:n.name})]}),u.sell&&V.jsxs("form",{onSubmit:x,children:[V.jsxs(xi,{padding:1,direction:"row",spacing:3,children:[V.jsx(Jt,{children:"Your Share: "}),V.jsx(Jt,{children:"/10000"})]}),V.jsxs(xi,{padding:1,direction:"row",spacing:3,children:[V.jsx(Jt,{children:"Minmum share per buyer"}),V.jsx(Yl,{required:!0,id:"minimumSharePerBuyer",label:"minimum per share",placeholder:"Enter amount lower than 10000 .eg 1",name:"minimumSharePerBuyer",value:i.minimumSharePerBuyer,onChange:X})]}),V.jsxs(xi,{padding:1,direction:"row",spacing:3,children:[V.jsx(Jt,{children:"Amount"}),V.jsx(Yl,{required:!0,id:"amount",label:"amount",placeholder:"Enter amount lower than 10000 .eg 1",name:"amount",value:i.amount,onChange:X})]}),V.jsx(Ca,{disabled:f,type:"submit",children:"List for Sale"}),f&&V.jsx(Jt,{children:"Sending Transactions ...."})]}),!u.sell&&V.jsxs("form",{onSubmit:$,children:[V.jsxs(xi,{padding:1,direction:"row",spacing:3,children:[V.jsx(Jt,{children:"Amount"}),V.jsx(Yl,{required:!0,id:"amountTobuy",label:"amount to buy",placeholder:"Enter amount lower than 10000 .eg 1",name:"buyAmount",value:o,onChange:Q})]}),V.jsx(Ca,{disabled:f,type:"submit",children:"Buy"}),f&&V.jsx(Jt,{children:"Sending Transactions ...."})]})]})]})})})}function aN0(u){return V.jsx(_y,{onClick:u.onClick,className:"nft-card",children:V.jsxs(Bz,{children:[V.jsx("img",{src:u.NFT.image,width:200,height:275}),V.jsx("h4",{children:u.NFT.name}),V.jsx(Ca,{variant:"contained",color:"primary",children:"List For Sale"})]})})}function oN0(){const u=Ib();let{ProfileId:e}=N7();const[t,n]=w.useState(),r=Bt(),i=async()=>{const o=new r$("https://polygon-mumbai.g.alchemy.com/v2/BmepUpwxd86PJSuisn7P4f3lZJSqcAUt"),s=Qy.abi,f=new Ro(Py,s,o);try{const c=await f.getOwnedTokens(r.address),E=c.map(g=>Ky(g)).map(async g=>await(await fetch("https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/"+g)).json()),p=await Promise.all(E),h=[];for(var l=0;l{i()},[e]);function a(o){console.log("Clicked on NFT with Address"+o),u("/real-token/Profile/"+e+"/"+o)}return V.jsx(r3,{container:!0,padding:5,direction:"row",spacing:5,justifyContent:"center",alignItems:"flex-start",children:t==null?void 0:t.map(o=>V.jsx(r3,{item:!0,children:V.jsx(aN0,{NFT:o,onClick:()=>a(o.tokenId)})}))})}function a$(u,e){return function(){return u.apply(e,arguments)}}const{toString:sN0}=Object.prototype,{getPrototypeOf:Jy}=Object,Ip=(u=>e=>{const t=sN0.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),vr=u=>(u=u.toLowerCase(),e=>Ip(e)===u),Op=u=>e=>typeof e===u,{isArray:H3}=Array,G1=Op("undefined");function fN0(u){return u!==null&&!G1(u)&&u.constructor!==null&&!G1(u.constructor)&&dn(u.constructor.isBuffer)&&u.constructor.isBuffer(u)}const o$=vr("ArrayBuffer");function lN0(u){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(u):e=u&&u.buffer&&o$(u.buffer),e}const cN0=Op("string"),dn=Op("function"),s$=Op("number"),Rp=u=>u!==null&&typeof u=="object",dN0=u=>u===!0||u===!1,j5=u=>{if(Ip(u)!=="object")return!1;const e=Jy(u);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in u)&&!(Symbol.iterator in u)},EN0=vr("Date"),pN0=vr("File"),hN0=vr("Blob"),CN0=vr("FileList"),mN0=u=>Rp(u)&&dn(u.pipe),bN0=u=>{let e;return u&&(typeof FormData=="function"&&u instanceof FormData||dn(u.append)&&((e=Ip(u))==="formdata"||e==="object"&&dn(u.toString)&&u.toString()==="[object FormData]"))},gN0=vr("URLSearchParams"),AN0=u=>u.trim?u.trim():u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function r6(u,e,{allOwnKeys:t=!1}={}){if(u===null||typeof u>"u")return;let n,r;if(typeof u!="object"&&(u=[u]),H3(u))for(n=0,r=u.length;n0;)if(r=t[n],e===r.toLowerCase())return r;return null}const l$=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,c$=u=>!G1(u)&&u!==l$;function _m(){const{caseless:u}=c$(this)&&this||{},e={},t=(n,r)=>{const i=u&&f$(e,r)||r;j5(e[i])&&j5(n)?e[i]=_m(e[i],n):j5(n)?e[i]=_m({},n):H3(n)?e[i]=n.slice():e[i]=n};for(let n=0,r=arguments.length;n(r6(e,(r,i)=>{t&&dn(r)?u[i]=a$(r,t):u[i]=r},{allOwnKeys:n}),u),vN0=u=>(u.charCodeAt(0)===65279&&(u=u.slice(1)),u),BN0=(u,e,t,n)=>{u.prototype=Object.create(e.prototype,n),u.prototype.constructor=u,Object.defineProperty(u,"super",{value:e.prototype}),t&&Object.assign(u.prototype,t)},FN0=(u,e,t,n)=>{let r,i,a;const o={};if(e=e||{},u==null)return e;do{for(r=Object.getOwnPropertyNames(u),i=r.length;i-- >0;)a=r[i],(!n||n(a,u,e))&&!o[a]&&(e[a]=u[a],o[a]=!0);u=t!==!1&&Jy(u)}while(u&&(!t||t(u,e))&&u!==Object.prototype);return e},DN0=(u,e,t)=>{u=String(u),(t===void 0||t>u.length)&&(t=u.length),t-=e.length;const n=u.indexOf(e,t);return n!==-1&&n===t},wN0=u=>{if(!u)return null;if(H3(u))return u;let e=u.length;if(!s$(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=u[e];return t},xN0=(u=>e=>u&&e instanceof u)(typeof Uint8Array<"u"&&Jy(Uint8Array)),kN0=(u,e)=>{const n=(u&&u[Symbol.iterator]).call(u);let r;for(;(r=n.next())&&!r.done;){const i=r.value;e.call(u,i[0],i[1])}},_N0=(u,e)=>{let t;const n=[];for(;(t=u.exec(e))!==null;)n.push(t);return n},SN0=vr("HTMLFormElement"),TN0=u=>u.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),Yk=(({hasOwnProperty:u})=>(e,t)=>u.call(e,t))(Object.prototype),PN0=vr("RegExp"),d$=(u,e)=>{const t=Object.getOwnPropertyDescriptors(u),n={};r6(t,(r,i)=>{let a;(a=e(r,i,u))!==!1&&(n[i]=a||r)}),Object.defineProperties(u,n)},IN0=u=>{d$(u,(e,t)=>{if(dn(u)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=u[t];if(dn(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},ON0=(u,e)=>{const t={},n=r=>{r.forEach(i=>{t[i]=!0})};return H3(u)?n(u):n(String(u).split(e)),t},RN0=()=>{},NN0=(u,e)=>(u=+u,Number.isFinite(u)?u:e),Nh="abcdefghijklmnopqrstuvwxyz",Xk="0123456789",E$={DIGIT:Xk,ALPHA:Nh,ALPHA_DIGIT:Nh+Nh.toUpperCase()+Xk},MN0=(u=16,e=E$.ALPHA_DIGIT)=>{let t="";const{length:n}=e;for(;u--;)t+=e[Math.random()*n|0];return t};function jN0(u){return!!(u&&dn(u.append)&&u[Symbol.toStringTag]==="FormData"&&u[Symbol.iterator])}const zN0=u=>{const e=new Array(10),t=(n,r)=>{if(Rp(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[r]=n;const i=H3(n)?[]:{};return r6(n,(a,o)=>{const s=t(a,r+1);!G1(s)&&(i[o]=s)}),e[r]=void 0,i}}return n};return t(u,0)},LN0=vr("AsyncFunction"),$N0=u=>u&&(Rp(u)||dn(u))&&dn(u.then)&&dn(u.catch),f0={isArray:H3,isArrayBuffer:o$,isBuffer:fN0,isFormData:bN0,isArrayBufferView:lN0,isString:cN0,isNumber:s$,isBoolean:dN0,isObject:Rp,isPlainObject:j5,isUndefined:G1,isDate:EN0,isFile:pN0,isBlob:hN0,isRegExp:PN0,isFunction:dn,isStream:mN0,isURLSearchParams:gN0,isTypedArray:xN0,isFileList:CN0,forEach:r6,merge:_m,extend:yN0,trim:AN0,stripBOM:vN0,inherits:BN0,toFlatObject:FN0,kindOf:Ip,kindOfTest:vr,endsWith:DN0,toArray:wN0,forEachEntry:kN0,matchAll:_N0,isHTMLForm:SN0,hasOwnProperty:Yk,hasOwnProp:Yk,reduceDescriptors:d$,freezeMethods:IN0,toObjectSet:ON0,toCamelCase:TN0,noop:RN0,toFiniteNumber:NN0,findKey:f$,global:l$,isContextDefined:c$,ALPHABET:E$,generateString:MN0,isSpecCompliantForm:jN0,toJSONObject:zN0,isAsyncFn:LN0,isThenable:$N0};function eu(u,e,t,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=u,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),r&&(this.response=r)}f0.inherits(eu,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:f0.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const p$=eu.prototype,h$={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(u=>{h$[u]={value:u}});Object.defineProperties(eu,h$);Object.defineProperty(p$,"isAxiosError",{value:!0});eu.from=(u,e,t,n,r,i)=>{const a=Object.create(p$);return f0.toFlatObject(u,a,function(s){return s!==Error.prototype},o=>o!=="isAxiosError"),eu.call(a,u.message,e,t,n,r),a.cause=u,a.name=u.name,i&&Object.assign(a,i),a};const UN0=null;function Sm(u){return f0.isPlainObject(u)||f0.isArray(u)}function C$(u){return f0.endsWith(u,"[]")?u.slice(0,-2):u}function u_(u,e,t){return u?u.concat(e).map(function(r,i){return r=C$(r),!t&&i?"["+r+"]":r}).join(t?".":""):e}function WN0(u){return f0.isArray(u)&&!u.some(Sm)}const qN0=f0.toFlatObject(f0,{},null,function(e){return/^is[A-Z]/.test(e)});function Np(u,e,t){if(!f0.isObject(u))throw new TypeError("target must be an object");e=e||new FormData,t=f0.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,g){return!f0.isUndefined(g[h])});const n=t.metaTokens,r=t.visitor||l,i=t.dots,a=t.indexes,s=(t.Blob||typeof Blob<"u"&&Blob)&&f0.isSpecCompliantForm(e);if(!f0.isFunction(r))throw new TypeError("visitor must be a function");function f(p){if(p===null)return"";if(f0.isDate(p))return p.toISOString();if(!s&&f0.isBlob(p))throw new eu("Blob is not supported. Use a Buffer instead.");return f0.isArrayBuffer(p)||f0.isTypedArray(p)?s&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function l(p,h,g){let b=p;if(p&&!g&&typeof p=="object"){if(f0.endsWith(h,"{}"))h=n?h:h.slice(0,-2),p=JSON.stringify(p);else if(f0.isArray(p)&&WN0(p)||(f0.isFileList(p)||f0.endsWith(h,"[]"))&&(b=f0.toArray(p)))return h=C$(h),b.forEach(function(A,y){!(f0.isUndefined(A)||A===null)&&e.append(a===!0?u_([h],y,i):a===null?h:h+"[]",f(A))}),!1}return Sm(p)?!0:(e.append(u_(g,h,i),f(p)),!1)}const c=[],d=Object.assign(qN0,{defaultVisitor:l,convertValue:f,isVisitable:Sm});function E(p,h){if(!f0.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+h.join("."));c.push(p),f0.forEach(p,function(b,m){(!(f0.isUndefined(b)||b===null)&&r.call(e,b,f0.isString(m)?m.trim():m,h,d))===!0&&E(b,h?h.concat(m):[m])}),c.pop()}}if(!f0.isObject(u))throw new TypeError("data must be an object");return E(u),e}function e_(u){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(u).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Zy(u,e){this._pairs=[],u&&Np(u,this,e)}const m$=Zy.prototype;m$.append=function(e,t){this._pairs.push([e,t])};m$.toString=function(e){const t=e?function(n){return e.call(this,n,e_)}:e_;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function HN0(u){return encodeURIComponent(u).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function b$(u,e,t){if(!e)return u;const n=t&&t.encode||HN0,r=t&&t.serialize;let i;if(r?i=r(e,t):i=f0.isURLSearchParams(e)?e.toString():new Zy(e,t).toString(n),i){const a=u.indexOf("#");a!==-1&&(u=u.slice(0,a)),u+=(u.indexOf("?")===-1?"?":"&")+i}return u}class GN0{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){f0.forEach(this.handlers,function(n){n!==null&&e(n)})}}const t_=GN0,g$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},VN0=typeof URLSearchParams<"u"?URLSearchParams:Zy,KN0=typeof FormData<"u"?FormData:null,QN0=typeof Blob<"u"?Blob:null,JN0={isBrowser:!0,classes:{URLSearchParams:VN0,FormData:KN0,Blob:QN0},protocols:["http","https","file","blob","url","data"]},A$=typeof window<"u"&&typeof document<"u",ZN0=(u=>A$&&["ReactNative","NativeScript","NS"].indexOf(u)<0)(typeof navigator<"u"&&navigator.product),YN0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",XN0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:A$,hasStandardBrowserEnv:ZN0,hasStandardBrowserWebWorkerEnv:YN0},Symbol.toStringTag,{value:"Module"})),pr={...XN0,...JN0};function uM0(u,e){return Np(u,new pr.classes.URLSearchParams,Object.assign({visitor:function(t,n,r,i){return pr.isNode&&f0.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function eM0(u){return f0.matchAll(/\w+|\[(\w*)]/g,u).map(e=>e[0]==="[]"?"":e[1]||e[0])}function tM0(u){const e={},t=Object.keys(u);let n;const r=t.length;let i;for(n=0;n=t.length;return a=!a&&f0.isArray(r)?r.length:a,s?(f0.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o):((!r[a]||!f0.isObject(r[a]))&&(r[a]=[]),e(t,n,r[a],i)&&f0.isArray(r[a])&&(r[a]=tM0(r[a])),!o)}if(f0.isFormData(u)&&f0.isFunction(u.entries)){const t={};return f0.forEachEntry(u,(n,r)=>{e(eM0(n),r,t,0)}),t}return null}function nM0(u,e,t){if(f0.isString(u))try{return(e||JSON.parse)(u),f0.trim(u)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(u)}const Yy={transitional:g$,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=f0.isObject(e);if(i&&f0.isHTMLForm(e)&&(e=new FormData(e)),f0.isFormData(e))return r&&r?JSON.stringify(y$(e)):e;if(f0.isArrayBuffer(e)||f0.isBuffer(e)||f0.isStream(e)||f0.isFile(e)||f0.isBlob(e))return e;if(f0.isArrayBufferView(e))return e.buffer;if(f0.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return uM0(e,this.formSerializer).toString();if((o=f0.isFileList(e))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Np(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),nM0(e)):e}],transformResponse:[function(e){const t=this.transitional||Yy.transitional,n=t&&t.forcedJSONParsing,r=this.responseType==="json";if(e&&f0.isString(e)&&(n&&!this.responseType||r)){const a=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?eu.from(o,eu.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pr.classes.FormData,Blob:pr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};f0.forEach(["delete","get","head","post","put","patch"],u=>{Yy.headers[u]={}});const Xy=Yy,rM0=f0.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iM0=u=>{const e={};let t,n,r;return u&&u.split(` +`).forEach(function(a){r=a.indexOf(":"),t=a.substring(0,r).trim().toLowerCase(),n=a.substring(r+1).trim(),!(!t||e[t]&&rM0[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e},n_=Symbol("internals");function ml(u){return u&&String(u).trim().toLowerCase()}function z5(u){return u===!1||u==null?u:f0.isArray(u)?u.map(z5):String(u)}function aM0(u){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(u);)e[n[1]]=n[2];return e}const oM0=u=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(u.trim());function Mh(u,e,t,n,r){if(f0.isFunction(n))return n.call(this,e,t);if(r&&(e=t),!!f0.isString(e)){if(f0.isString(n))return e.indexOf(n)!==-1;if(f0.isRegExp(n))return n.test(e)}}function sM0(u){return u.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function fM0(u,e){const t=f0.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(u,n+t,{value:function(r,i,a){return this[n].call(this,e,r,i,a)},configurable:!0})})}class Mp{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(o,s,f){const l=ml(s);if(!l)throw new Error("header name must be a non-empty string");const c=f0.findKey(r,l);(!c||r[c]===void 0||f===!0||f===void 0&&r[c]!==!1)&&(r[c||s]=z5(o))}const a=(o,s)=>f0.forEach(o,(f,l)=>i(f,l,s));return f0.isPlainObject(e)||e instanceof this.constructor?a(e,t):f0.isString(e)&&(e=e.trim())&&!oM0(e)?a(iM0(e),t):e!=null&&i(t,e,n),this}get(e,t){if(e=ml(e),e){const n=f0.findKey(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return aM0(r);if(f0.isFunction(t))return t.call(this,r,n);if(f0.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ml(e),e){const n=f0.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Mh(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let r=!1;function i(a){if(a=ml(a),a){const o=f0.findKey(n,a);o&&(!t||Mh(n,n[o],o,t))&&(delete n[o],r=!0)}}return f0.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];(!e||Mh(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return f0.forEach(this,(r,i)=>{const a=f0.findKey(n,i);if(a){t[a]=z5(r),delete t[i];return}const o=e?sM0(i):String(i).trim();o!==i&&delete t[i],t[o]=z5(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return f0.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&f0.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(r=>n.set(r)),n}static accessor(e){const n=(this[n_]=this[n_]={accessors:{}}).accessors,r=this.prototype;function i(a){const o=ml(a);n[o]||(fM0(r,a),n[o]=!0)}return f0.isArray(e)?e.forEach(i):i(e),this}}Mp.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);f0.reduceDescriptors(Mp.prototype,({value:u},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>u,set(n){this[t]=n}}});f0.freezeMethods(Mp);const Yr=Mp;function jh(u,e){const t=this||Xy,n=e||t,r=Yr.from(n.headers);let i=n.data;return f0.forEach(u,function(o){i=o.call(t,i,r.normalize(),e?e.status:void 0)}),r.normalize(),i}function v$(u){return!!(u&&u.__CANCEL__)}function i6(u,e,t){eu.call(this,u??"canceled",eu.ERR_CANCELED,e,t),this.name="CanceledError"}f0.inherits(i6,eu,{__CANCEL__:!0});function lM0(u,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?u(t):e(new eu("Request failed with status code "+t.status,[eu.ERR_BAD_REQUEST,eu.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const cM0=pr.hasStandardBrowserEnv?{write(u,e,t,n,r,i){const a=[u+"="+encodeURIComponent(e)];f0.isNumber(t)&&a.push("expires="+new Date(t).toGMTString()),f0.isString(n)&&a.push("path="+n),f0.isString(r)&&a.push("domain="+r),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(u){const e=document.cookie.match(new RegExp("(^|;\\s*)("+u+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(u){this.write(u,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function dM0(u){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(u)}function EM0(u,e){return e?u.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):u}function B$(u,e){return u&&!dM0(e)?EM0(u,e):e}const pM0=pr.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(i){let a=i;return e&&(t.setAttribute("href",a),a=t.href),t.setAttribute("href",a),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(a){const o=f0.isString(a)?r(a):a;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}();function hM0(u){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(u);return e&&e[1]||""}function CM0(u,e){u=u||10;const t=new Array(u),n=new Array(u);let r=0,i=0,a;return e=e!==void 0?e:1e3,function(s){const f=Date.now(),l=n[i];a||(a=f),t[r]=s,n[r]=f;let c=i,d=0;for(;c!==r;)d+=t[c++],c=c%u;if(r=(r+1)%u,r===i&&(i=(i+1)%u),f-a{const i=r.loaded,a=r.lengthComputable?r.total:void 0,o=i-t,s=n(o),f=i<=a;t=i;const l={loaded:i,total:a,progress:a?i/a:void 0,bytes:o,rate:s||void 0,estimated:s&&a&&f?(a-i)/s:void 0,event:r};l[e?"download":"upload"]=!0,u(l)}}const mM0=typeof XMLHttpRequest<"u",bM0=mM0&&function(u){return new Promise(function(t,n){let r=u.data;const i=Yr.from(u.headers).normalize();let{responseType:a,withXSRFToken:o}=u,s;function f(){u.cancelToken&&u.cancelToken.unsubscribe(s),u.signal&&u.signal.removeEventListener("abort",s)}let l;if(f0.isFormData(r)){if(pr.hasStandardBrowserEnv||pr.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((l=i.getContentType())!==!1){const[h,...g]=l?l.split(";").map(b=>b.trim()).filter(Boolean):[];i.setContentType([h||"multipart/form-data",...g].join("; "))}}let c=new XMLHttpRequest;if(u.auth){const h=u.auth.username||"",g=u.auth.password?unescape(encodeURIComponent(u.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+g))}const d=B$(u.baseURL,u.url);c.open(u.method.toUpperCase(),b$(d,u.params,u.paramsSerializer),!0),c.timeout=u.timeout;function E(){if(!c)return;const h=Yr.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:h,config:u,request:c};lM0(function(A){t(A),f()},function(A){n(A),f()},b),c=null}if("onloadend"in c?c.onloadend=E:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(E)},c.onabort=function(){c&&(n(new eu("Request aborted",eu.ECONNABORTED,u,c)),c=null)},c.onerror=function(){n(new eu("Network Error",eu.ERR_NETWORK,u,c)),c=null},c.ontimeout=function(){let g=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded";const b=u.transitional||g$;u.timeoutErrorMessage&&(g=u.timeoutErrorMessage),n(new eu(g,b.clarifyTimeoutError?eu.ETIMEDOUT:eu.ECONNABORTED,u,c)),c=null},pr.hasStandardBrowserEnv&&(o&&f0.isFunction(o)&&(o=o(u)),o||o!==!1&&pM0(d))){const h=u.xsrfHeaderName&&u.xsrfCookieName&&cM0.read(u.xsrfCookieName);h&&i.set(u.xsrfHeaderName,h)}r===void 0&&i.setContentType(null),"setRequestHeader"in c&&f0.forEach(i.toJSON(),function(g,b){c.setRequestHeader(b,g)}),f0.isUndefined(u.withCredentials)||(c.withCredentials=!!u.withCredentials),a&&a!=="json"&&(c.responseType=u.responseType),typeof u.onDownloadProgress=="function"&&c.addEventListener("progress",r_(u.onDownloadProgress,!0)),typeof u.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",r_(u.onUploadProgress)),(u.cancelToken||u.signal)&&(s=h=>{c&&(n(!h||h.type?new i6(null,u,c):h),c.abort(),c=null)},u.cancelToken&&u.cancelToken.subscribe(s),u.signal&&(u.signal.aborted?s():u.signal.addEventListener("abort",s)));const p=hM0(d);if(p&&pr.protocols.indexOf(p)===-1){n(new eu("Unsupported protocol "+p+":",eu.ERR_BAD_REQUEST,u));return}c.send(r||null)})},Tm={http:UN0,xhr:bM0};f0.forEach(Tm,(u,e)=>{if(u){try{Object.defineProperty(u,"name",{value:e})}catch{}Object.defineProperty(u,"adapterName",{value:e})}});const i_=u=>`- ${u}`,gM0=u=>f0.isFunction(u)||u===null||u===!1,F$={getAdapter:u=>{u=f0.isArray(u)?u:[u];const{length:e}=u;let t,n;const r={};for(let i=0;i`adapter ${o} `+(s===!1?"is not supported by the environment":"is not available in the build"));let a=e?i.length>1?`since : +`+i.map(i_).join(` +`):" "+i_(i[0]):"as no adapter specified";throw new eu("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:Tm};function zh(u){if(u.cancelToken&&u.cancelToken.throwIfRequested(),u.signal&&u.signal.aborted)throw new i6(null,u)}function a_(u){return zh(u),u.headers=Yr.from(u.headers),u.data=jh.call(u,u.transformRequest),["post","put","patch"].indexOf(u.method)!==-1&&u.headers.setContentType("application/x-www-form-urlencoded",!1),F$.getAdapter(u.adapter||Xy.adapter)(u).then(function(n){return zh(u),n.data=jh.call(u,u.transformResponse,n),n.headers=Yr.from(n.headers),n},function(n){return v$(n)||(zh(u),n&&n.response&&(n.response.data=jh.call(u,u.transformResponse,n.response),n.response.headers=Yr.from(n.response.headers))),Promise.reject(n)})}const o_=u=>u instanceof Yr?u.toJSON():u;function s3(u,e){e=e||{};const t={};function n(f,l,c){return f0.isPlainObject(f)&&f0.isPlainObject(l)?f0.merge.call({caseless:c},f,l):f0.isPlainObject(l)?f0.merge({},l):f0.isArray(l)?l.slice():l}function r(f,l,c){if(f0.isUndefined(l)){if(!f0.isUndefined(f))return n(void 0,f,c)}else return n(f,l,c)}function i(f,l){if(!f0.isUndefined(l))return n(void 0,l)}function a(f,l){if(f0.isUndefined(l)){if(!f0.isUndefined(f))return n(void 0,f)}else return n(void 0,l)}function o(f,l,c){if(c in e)return n(f,l);if(c in u)return n(void 0,f)}const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(f,l)=>r(o_(f),o_(l),!0)};return f0.forEach(Object.keys(Object.assign({},u,e)),function(l){const c=s[l]||r,d=c(u[l],e[l],l);f0.isUndefined(d)&&c!==o||(t[l]=d)}),t}const D$="1.6.2",uv={};["object","boolean","number","function","string","symbol"].forEach((u,e)=>{uv[u]=function(n){return typeof n===u||"a"+(e<1?"n ":" ")+u}});const s_={};uv.transitional=function(e,t,n){function r(i,a){return"[Axios v"+D$+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,o)=>{if(e===!1)throw new eu(r(a," has been removed"+(t?" in "+t:"")),eu.ERR_DEPRECATED);return t&&!s_[a]&&(s_[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,a,o):!0}};function AM0(u,e,t){if(typeof u!="object")throw new eu("options must be an object",eu.ERR_BAD_OPTION_VALUE);const n=Object.keys(u);let r=n.length;for(;r-- >0;){const i=n[r],a=e[i];if(a){const o=u[i],s=o===void 0||a(o,i,u);if(s!==!0)throw new eu("option "+i+" must be "+s,eu.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new eu("Unknown option "+i,eu.ERR_BAD_OPTION)}}const Pm={assertOptions:AM0,validators:uv},wi=Pm.validators;class B9{constructor(e){this.defaults=e,this.interceptors={request:new t_,response:new t_}}request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=s3(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Pm.assertOptions(n,{silentJSONParsing:wi.transitional(wi.boolean),forcedJSONParsing:wi.transitional(wi.boolean),clarifyTimeoutError:wi.transitional(wi.boolean)},!1),r!=null&&(f0.isFunction(r)?t.paramsSerializer={serialize:r}:Pm.assertOptions(r,{encode:wi.function,serialize:wi.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&f0.merge(i.common,i[t.method]);i&&f0.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),t.headers=Yr.concat(a,i);const o=[];let s=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(s=s&&h.synchronous,o.unshift(h.fulfilled,h.rejected))});const f=[];this.interceptors.response.forEach(function(h){f.push(h.fulfilled,h.rejected)});let l,c=0,d;if(!s){const p=[a_.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,f),d=p.length,l=Promise.resolve(t);c{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](r);n._listeners=null}),this.promise.then=r=>{let i;const a=new Promise(o=>{n.subscribe(o),i=o}).then(r);return a.cancel=function(){n.unsubscribe(i)},a},e(function(i,a,o){n.reason||(n.reason=new i6(i,a,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new ev(function(r){e=r}),cancel:e}}}const yM0=ev;function vM0(u){return function(t){return u.apply(null,t)}}function BM0(u){return f0.isObject(u)&&u.isAxiosError===!0}const Im={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Im).forEach(([u,e])=>{Im[e]=u});const FM0=Im;function w$(u){const e=new L5(u),t=a$(L5.prototype.request,e);return f0.extend(t,L5.prototype,e,{allOwnKeys:!0}),f0.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return w$(s3(u,r))},t}const ee=w$(Xy);ee.Axios=L5;ee.CanceledError=i6;ee.CancelToken=yM0;ee.isCancel=v$;ee.VERSION=D$;ee.toFormData=Np;ee.AxiosError=eu;ee.Cancel=ee.CanceledError;ee.all=function(e){return Promise.all(e)};ee.spread=vM0;ee.isAxiosError=BM0;ee.mergeConfig=s3;ee.AxiosHeaders=Yr;ee.formToJSON=u=>y$(f0.isHTMLForm(u)?new FormData(u):u);ee.getAdapter=F$.getAdapter;ee.HttpStatusCode=FM0;ee.default=ee;const f_=ee,DM0=u=>{const[e,t]=w.useState(null),[n,r]=w.useState(""),[i,a]=w.useState(""),[o,s]=w.useState(void 0),[f,l]=w.useState(void 0),[c,d]=w.useState(!1),E=b=>{var m,A;(m=b==null?void 0:b.target)!=null&&m.files&&t((A=b==null?void 0:b.target)==null?void 0:A.files[0])},p=b=>{var m,A;(m=b==null?void 0:b.target)!=null&&m.value&&s((A=b==null?void 0:b.target)==null?void 0:A.value)},h=b=>{var m,A;(m=b==null?void 0:b.target)!=null&&m.value&&l((A=b==null?void 0:b.target)==null?void 0:A.value)},g=async()=>{if(e===null)return alert("No file selected.");d(!0);const b=new FormData;b.append("file",e);const m=JSON.stringify({name:"NFTPic"});b.append("pinataMetadata",m);try{console.log("Uploading file on IPFS... ");const A=await f_.post("https://api.pinata.cloud/pinning/pinFileToIPFS",b,{maxBodyLength:1/0,headers:{"Content-Type":"multipart/form-data;",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M"}});console.log("response: ",A);const y="https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/"+A.data.IpfsHash;r(y),console.log("IPFS URL:",y);const B=JSON.stringify({pinataContent:{name:o,description:f,external_url:"https://Narpet.io",image:y},pinataMetadata:{name:"metadata.json"}}),v=await f_.post("https://api.pinata.cloud/pinning/pinJSONToIPFS",B,{headers:{"Content-Type":"application/json",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M"}});console.log(v.data);const C="https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/"+v.data.IpfsHash;a(C),u.setCid(v.data.IpfsHash)}catch(A){console.error("Error uploading file:",A)}d(!1)};return V.jsxs(xi,{padding:5,direction:"column",spacing:3,justifyContent:"right",children:[V.jsx(Yl,{disabled:c,label:"NFT Name",value:o,onChange:p}),V.jsx(Yl,{disabled:c,label:"Description",value:f,onChange:h,minRows:3}),V.jsx("input",{disabled:c,type:"file",onChange:E,accept:"image/*"}),V.jsx(kk0,{disabled:c,onClick:g,children:"Upload to IPFS"}),c&&V.jsx(Jt,{children:"Uploading file ..."}),n&&V.jsx("div",{children:V.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:"View uploaded image"})}),n&&V.jsx("img",{src:n,width:200,height:275}),i&&V.jsx("div",{children:V.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:"View Json Metadat"})})]})},wM0="hh-sol-artifact-1",xM0="Reserver",kM0="contracts/Reserver.sol",_M0=[{inputs:[{internalType:"address",name:"contractWalletBalance",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"id",type:"bytes32"}],name:"ChainlinkCancelled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"id",type:"bytes32"}],name:"ChainlinkFulfilled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"id",type:"bytes32"}],name:"ChainlinkRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"assetPrice",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"fee",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"requestId",type:"bytes32"}],name:"fulfill",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"fulfills",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getAssetPricing",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"isReserved",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"jobId",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"minBalance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"oracle",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"owners",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"requestPending",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"requests",outputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"reserve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"reserved",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_link",type:"address"},{internalType:"address",name:"_oracle",type:"address"},{internalType:"string",name:"_jobId",type:"string"},{internalType:"uint256",name:"_fee",type:"uint256"}],name:"setJobConfig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_minBalance",type:"uint256"}],name:"setMinBalance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"verify",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"walletBalance",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"walletbalance",outputs:[{internalType:"contract WalletBalance",name:"",type:"address"}],stateMutability:"view",type:"function"}],SM0="0x6080604052600160045561046c600b553480156200001c57600080fd5b506040516200258338038062002583833981810160405281019062000042919062000242565b33600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000b85760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000af919062000285565b60405180910390fd5b620000c9816200011260201b60201c565b5080601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050620002a2565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200020a82620001dd565b9050919050565b6200021c81620001fd565b81146200022857600080fd5b50565b6000815190506200023c8162000211565b92915050565b6000602082840312156200025b576200025a620001d8565b5b60006200026b848285016200022b565b91505092915050565b6200027f81620001fd565b82525050565b60006020820190506200029c600083018462000274565b92915050565b6122d180620002b26000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80638da5cb5b116100c3578063c91d956c1161007c578063c91d956c146103c9578063cd0a314b146103e5578063d206ff1c14610403578063ddca3f4314610433578063f2fde38b14610451578063ffbb69891461046d5761014d565b80638da5cb5b146102f05780639d8669851461030e578063ad8066c81461033f578063c2939d971461035d578063c58784b81461037b578063c5bb8758146103ab5761014d565b8063715018a611610115578063715018a61461022e578063761ca3981461023857806376f3dc84146102565780637dc0d1d014610272578063819b25ba146102905780638753367f146102c05761014d565b8063025e7c27146101525780632228adcc1461018257806353f9195e146101b25780635508ff94146101e25780636352211e146101fe575b600080fd5b61016c600480360381019061016791906117f7565b61049d565b6040516101799190611865565b60405180910390f35b61019c600480360381019061019791906117f7565b6104d0565b6040516101a9919061189b565b60405180910390f35b6101cc60048036038101906101c791906117f7565b6104fa565b6040516101d9919061189b565b60405180910390f35b6101fc60048036038101906101f791906118ec565b61051a565b005b610218600480360381019061021391906117f7565b610618565b6040516102259190611865565b60405180910390f35b610236610655565b005b610240610669565b60405161024d9190611928565b60405180910390f35b610270600480360381019061026b9190611ab5565b61066f565b005b61027a6106dd565b6040516102879190611865565b60405180910390f35b6102aa60048036038101906102a591906117f7565b610703565b6040516102b7919061189b565b60405180910390f35b6102da60048036038101906102d591906117f7565b610765565b6040516102e79190611b47565b60405180910390f35b6102f861098a565b6040516103059190611865565b60405180910390f35b610328600480360381019061032391906118ec565b6109b4565b604051610336929190611b62565b60405180910390f35b6103476109f8565b6040516103549190611bea565b60405180910390f35b610365610a1e565b6040516103729190611b47565b60405180910390f35b610395600480360381019061039091906117f7565b610a24565b6040516103a29190611928565b60405180910390f35b6103b3610a41565b6040516103c09190611928565b60405180910390f35b6103e360048036038101906103de91906117f7565b610a47565b005b6103ed610a59565b6040516103fa9190611865565b60405180910390f35b61041d600480360381019061041891906117f7565b610a7f565b60405161042a9190611928565b60405180910390f35b61043b610a97565b6040516104489190611928565b60405180910390f35b61046b60048036038101906104669190611c05565b610a9d565b005b61048760048036038101906104829190611c05565b610b23565b604051610494919061189b565b60405180910390f35b600e6020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006011600083815260200190815260200160002060009054906101000a900460ff169050919050565b60116020528060005260406000206000915054906101000a900460ff1681565b6000600d6000838152602001908152602001600020905033600e60008360010154815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600f600082825461059a9190611c61565b92505081905550601060008260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff02191690555050565b6000600e600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b61065d610b43565b6106676000610bca565b565b600f5481565b610677610b43565b61068084610c90565b82600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506106ca82610cd4565b6008819055508060098190555050505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000801b90506107158161051a565b60016011600085815260200190815260200160002060006101000a81548160ff02191690831515021790555061271060126000858152602001908152602001600020819055506001915050919050565b600080309050601060008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156107f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ef90611d18565b60405180910390fd5b600061080e60085483635508ff9460e01b610cfd565b90506108626040518060400160405280600781526020017f746f6b656e49640000000000000000000000000000000000000000000000000081525061085286610d2e565b83610dfc9092919063ffffffff16565b6000610893600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600954610e2f565b905060405180604001604052808473ffffffffffffffffffffffffffffffffffffffff16815260200186815250600d600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101559050506001601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550809350505050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600d6020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154905082565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b600060126000838152602001908152602001600020549050919050565b600a5481565b610a4f610b43565b80600a8190555050565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60126020528060005260406000206000915090505481565b60095481565b610aa5610b43565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b175760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610b0e9190611865565b60405180910390fd5b610b2081610bca565b50565b60106020528060005260406000206000915054906101000a900460ff1681565b610b4b610efb565b73ffffffffffffffffffffffffffffffffffffffff16610b6961098a565b73ffffffffffffffffffffffffffffffffffffffff1614610bc857610b8c610efb565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610bbf9190611865565b60405180910390fd5b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000808290506000815103610cef576000801b915050610cf8565b60208301519150505b919050565b610d05611726565b610d0d611726565b610d2485858584610f03909392919063ffffffff16565b9150509392505050565b606060006001610d3d84610fb3565b01905060008167ffffffffffffffff811115610d5c57610d5b61198a565b5b6040519080825280601f01601f191660200182016040528015610d8e5781602001600182028036833780820191505090505b509050600082602001820190505b600115610df1578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581610de557610de4611d38565b5b04945060008503610d9c575b819350505050919050565b610e1382846080015161110690919063ffffffff16565b610e2a81846080015161110690919063ffffffff16565b505050565b6000806004549050600181610e449190611c61565b6004819055506000634042994660e01b60008087600001513089604001518760018c6080015160000151604051602401610e85989796959493929190611e21565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050610ef08683868461112b565b925050509392505050565b600033905090565b610f0b611726565b610f1b85608001516101006112c0565b508385600001818152505082856020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508185604001907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681525050849050949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611011577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161100757611006611d38565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061104e576d04ee2d6d415b85acef8100000000838161104457611043611d38565b5b0492506020810190505b662386f26fc10000831061107d57662386f26fc10000838161107357611072611d38565b5b0492506010810190505b6305f5e10083106110a6576305f5e100838161109c5761109b611d38565b5b0492506008810190505b61271083106110cb5761271083816110c1576110c0611d38565b5b0492506004810190505b606483106110ee57606483816110e4576110e3611d38565b5b0492506002810190505b600a83106110fd576001810190505b80915050919050565b611113826003835161132a565b61112681836114af90919063ffffffff16565b505050565b60003084604051602001611140929190611f21565b604051602081830303815290604052805190602001209050846005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550807fb5e6e01e79f91267dc17b4e6314d5d4d03593d2ceee0fbb452b750bd70ea5af960405160405180910390a2600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634000aea08685856040518463ffffffff1660e01b815260040161123693929190611f4d565b6020604051808303816000875af1158015611255573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112799190611fb7565b6112b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112af90612056565b60405180910390fd5b949350505050565b6112c8611793565b60006020836112d79190612076565b14611303576020826112e99190612076565b60206112f591906120a7565b826113009190611c61565b91505b81836020018181525050604051808452600081528281016020016040525082905092915050565b60178167ffffffffffffffff16116113615761135b8160058460ff16901b60ff1617846114d190919063ffffffff16565b506114aa565b60ff8167ffffffffffffffff16116113b757611390601860058460ff16901b17846114d190919063ffffffff16565b506113b18167ffffffffffffffff166001856114f19092919063ffffffff16565b506114a9565b61ffff8167ffffffffffffffff161161140e576113e7601960058460ff16901b17846114d190919063ffffffff16565b506114088167ffffffffffffffff166002856114f19092919063ffffffff16565b506114a8565b63ffffffff8167ffffffffffffffff161161146757611440601a60058460ff16901b17846114d190919063ffffffff16565b506114618167ffffffffffffffff166004856114f19092919063ffffffff16565b506114a7565b611484601b60058460ff16901b17846114d190919063ffffffff16565b506114a58167ffffffffffffffff166008856114f19092919063ffffffff16565b505b5b5b5b505050565b6114b7611793565b6114c983846000015151848551611513565b905092915050565b6114d9611793565b6114e98384600001515184611602565b905092915050565b6114f9611793565b61150a848560000151518585611658565b90509392505050565b61151b611793565b825182111561152957600080fd5b8460200151828561153a9190611c61565b111561156f5761156e85600261155f8860200151888761155a9190611c61565b6116e6565b61156991906120db565b611702565b5b60008086518051876020830101935080888701111561158e5787860182525b60208701925050505b602084106115d557805182526020826115b09190611c61565b91506020816115bf9190611c61565b90506020846115ce91906120a7565b9350611597565b60006001856020036101000a03905080198251168184511681811785525050508692505050949350505050565b61160a611793565b836020015183106116305761162f846002866020015161162a91906120db565b611702565b5b8351805160208583010184815381860361164b576001820183525b5050508390509392505050565b611660611793565b846020015184836116719190611c61565b11156116995761169885600286856116899190611c61565b61169391906120db565b611702565b5b60006001836101006116ab9190612250565b6116b591906120a7565b905085518386820101858319825116178152815185880111156116d85784870182525b505085915050949350505050565b6000818311156116f8578290506116fc565b8190505b92915050565b60008260000151905061171583836112c0565b5061172083826114af565b50505050565b6040518060a0016040528060008019168152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020016000815260200161178d611793565b81525090565b604051806040016040528060608152602001600081525090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b6117d4816117c1565b81146117df57600080fd5b50565b6000813590506117f1816117cb565b92915050565b60006020828403121561180d5761180c6117b7565b5b600061181b848285016117e2565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061184f82611824565b9050919050565b61185f81611844565b82525050565b600060208201905061187a6000830184611856565b92915050565b60008115159050919050565b61189581611880565b82525050565b60006020820190506118b0600083018461188c565b92915050565b6000819050919050565b6118c9816118b6565b81146118d457600080fd5b50565b6000813590506118e6816118c0565b92915050565b600060208284031215611902576119016117b7565b5b6000611910848285016118d7565b91505092915050565b611922816117c1565b82525050565b600060208201905061193d6000830184611919565b92915050565b61194c81611844565b811461195757600080fd5b50565b60008135905061196981611943565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6119c282611979565b810181811067ffffffffffffffff821117156119e1576119e061198a565b5b80604052505050565b60006119f46117ad565b9050611a0082826119b9565b919050565b600067ffffffffffffffff821115611a2057611a1f61198a565b5b611a2982611979565b9050602081019050919050565b82818337600083830152505050565b6000611a58611a5384611a05565b6119ea565b905082815260208101848484011115611a7457611a73611974565b5b611a7f848285611a36565b509392505050565b600082601f830112611a9c57611a9b61196f565b5b8135611aac848260208601611a45565b91505092915050565b60008060008060808587031215611acf57611ace6117b7565b5b6000611add8782880161195a565b9450506020611aee8782880161195a565b935050604085013567ffffffffffffffff811115611b0f57611b0e6117bc565b5b611b1b87828801611a87565b9250506060611b2c878288016117e2565b91505092959194509250565b611b41816118b6565b82525050565b6000602082019050611b5c6000830184611b38565b92915050565b6000604082019050611b776000830185611856565b611b846020830184611919565b9392505050565b6000819050919050565b6000611bb0611bab611ba684611824565b611b8b565b611824565b9050919050565b6000611bc282611b95565b9050919050565b6000611bd482611bb7565b9050919050565b611be481611bc9565b82525050565b6000602082019050611bff6000830184611bdb565b92915050565b600060208284031215611c1b57611c1a6117b7565b5b6000611c298482850161195a565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611c6c826117c1565b9150611c77836117c1565b9250828201905080821115611c8f57611c8e611c32565b5b92915050565b600082825260208201905092915050565b7f53656e64657220616c72656164792068617320612070656e64696e672072657160008201527f7565737400000000000000000000000000000000000000000000000000000000602082015250565b6000611d02602483611c95565b9150611d0d82611ca6565b604082019050919050565b60006020820190508181036000830152611d3181611cf5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611d9c81611d67565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611ddc578082015181840152602081019050611dc1565b60008484015250505050565b6000611df382611da2565b611dfd8185611dad565b9350611e0d818560208601611dbe565b611e1681611979565b840191505092915050565b600061010082019050611e37600083018b611856565b611e44602083018a611919565b611e516040830189611b38565b611e5e6060830188611856565b611e6b6080830187611d93565b611e7860a0830186611919565b611e8560c0830185611919565b81810360e0830152611e978184611de8565b90509998505050505050505050565b6000611eb182611bb7565b9050919050565b60008160601b9050919050565b6000611ed082611eb8565b9050919050565b6000611ee282611ec5565b9050919050565b611efa611ef582611ea6565b611ed7565b82525050565b6000819050919050565b611f1b611f16826117c1565b611f00565b82525050565b6000611f2d8285611ee9565b601482019150611f3d8284611f0a565b6020820191508190509392505050565b6000606082019050611f626000830186611856565b611f6f6020830185611919565b8181036040830152611f818184611de8565b9050949350505050565b611f9481611880565b8114611f9f57600080fd5b50565b600081519050611fb181611f8b565b92915050565b600060208284031215611fcd57611fcc6117b7565b5b6000611fdb84828501611fa2565b91505092915050565b7f756e61626c6520746f207472616e73666572416e6443616c6c20746f206f726160008201527f636c650000000000000000000000000000000000000000000000000000000000602082015250565b6000612040602383611c95565b915061204b82611fe4565b604082019050919050565b6000602082019050818103600083015261206f81612033565b9050919050565b6000612081826117c1565b915061208c836117c1565b92508261209c5761209b611d38565b5b828206905092915050565b60006120b2826117c1565b91506120bd836117c1565b92508282039050818111156120d5576120d4611c32565b5b92915050565b60006120e6826117c1565b91506120f1836117c1565b92508282026120ff816117c1565b9150828204841483151761211657612115611c32565b5b5092915050565b60008160011c9050919050565b6000808291508390505b6001851115612174578086048111156121505761214f611c32565b5b600185161561215f5780820291505b808102905061216d8561211d565b9450612134565b94509492505050565b60008261218d5760019050612249565b8161219b5760009050612249565b81600181146121b157600281146121bb576121ea565b6001915050612249565b60ff8411156121cd576121cc611c32565b5b8360020a9150848211156121e4576121e3611c32565b5b50612249565b5060208310610133831016604e8410600b841016171561221f5782820a90508381111561221a57612219611c32565b5b612249565b61222c848484600161212a565b9250905081840481111561224357612242611c32565b5b81810290505b9392505050565b600061225b826117c1565b9150612266836117c1565b92506122937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848461217d565b90509291505056fea26469706673582212203986c9ca7d77cd2ddce8095b2b9be39449efe53ba80106c4999f85113aa3e88e64736f6c63430008140033",TM0="0x608060405234801561001057600080fd5b506004361061014d5760003560e01c80638da5cb5b116100c3578063c91d956c1161007c578063c91d956c146103c9578063cd0a314b146103e5578063d206ff1c14610403578063ddca3f4314610433578063f2fde38b14610451578063ffbb69891461046d5761014d565b80638da5cb5b146102f05780639d8669851461030e578063ad8066c81461033f578063c2939d971461035d578063c58784b81461037b578063c5bb8758146103ab5761014d565b8063715018a611610115578063715018a61461022e578063761ca3981461023857806376f3dc84146102565780637dc0d1d014610272578063819b25ba146102905780638753367f146102c05761014d565b8063025e7c27146101525780632228adcc1461018257806353f9195e146101b25780635508ff94146101e25780636352211e146101fe575b600080fd5b61016c600480360381019061016791906117f7565b61049d565b6040516101799190611865565b60405180910390f35b61019c600480360381019061019791906117f7565b6104d0565b6040516101a9919061189b565b60405180910390f35b6101cc60048036038101906101c791906117f7565b6104fa565b6040516101d9919061189b565b60405180910390f35b6101fc60048036038101906101f791906118ec565b61051a565b005b610218600480360381019061021391906117f7565b610618565b6040516102259190611865565b60405180910390f35b610236610655565b005b610240610669565b60405161024d9190611928565b60405180910390f35b610270600480360381019061026b9190611ab5565b61066f565b005b61027a6106dd565b6040516102879190611865565b60405180910390f35b6102aa60048036038101906102a591906117f7565b610703565b6040516102b7919061189b565b60405180910390f35b6102da60048036038101906102d591906117f7565b610765565b6040516102e79190611b47565b60405180910390f35b6102f861098a565b6040516103059190611865565b60405180910390f35b610328600480360381019061032391906118ec565b6109b4565b604051610336929190611b62565b60405180910390f35b6103476109f8565b6040516103549190611bea565b60405180910390f35b610365610a1e565b6040516103729190611b47565b60405180910390f35b610395600480360381019061039091906117f7565b610a24565b6040516103a29190611928565b60405180910390f35b6103b3610a41565b6040516103c09190611928565b60405180910390f35b6103e360048036038101906103de91906117f7565b610a47565b005b6103ed610a59565b6040516103fa9190611865565b60405180910390f35b61041d600480360381019061041891906117f7565b610a7f565b60405161042a9190611928565b60405180910390f35b61043b610a97565b6040516104489190611928565b60405180910390f35b61046b60048036038101906104669190611c05565b610a9d565b005b61048760048036038101906104829190611c05565b610b23565b604051610494919061189b565b60405180910390f35b600e6020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006011600083815260200190815260200160002060009054906101000a900460ff169050919050565b60116020528060005260406000206000915054906101000a900460ff1681565b6000600d6000838152602001908152602001600020905033600e60008360010154815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600f600082825461059a9190611c61565b92505081905550601060008260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff02191690555050565b6000600e600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b61065d610b43565b6106676000610bca565b565b600f5481565b610677610b43565b61068084610c90565b82600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506106ca82610cd4565b6008819055508060098190555050505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000801b90506107158161051a565b60016011600085815260200190815260200160002060006101000a81548160ff02191690831515021790555061271060126000858152602001908152602001600020819055506001915050919050565b600080309050601060008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156107f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ef90611d18565b60405180910390fd5b600061080e60085483635508ff9460e01b610cfd565b90506108626040518060400160405280600781526020017f746f6b656e49640000000000000000000000000000000000000000000000000081525061085286610d2e565b83610dfc9092919063ffffffff16565b6000610893600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600954610e2f565b905060405180604001604052808473ffffffffffffffffffffffffffffffffffffffff16815260200186815250600d600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101559050506001601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550809350505050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600d6020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154905082565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b600060126000838152602001908152602001600020549050919050565b600a5481565b610a4f610b43565b80600a8190555050565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60126020528060005260406000206000915090505481565b60095481565b610aa5610b43565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b175760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610b0e9190611865565b60405180910390fd5b610b2081610bca565b50565b60106020528060005260406000206000915054906101000a900460ff1681565b610b4b610efb565b73ffffffffffffffffffffffffffffffffffffffff16610b6961098a565b73ffffffffffffffffffffffffffffffffffffffff1614610bc857610b8c610efb565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610bbf9190611865565b60405180910390fd5b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000808290506000815103610cef576000801b915050610cf8565b60208301519150505b919050565b610d05611726565b610d0d611726565b610d2485858584610f03909392919063ffffffff16565b9150509392505050565b606060006001610d3d84610fb3565b01905060008167ffffffffffffffff811115610d5c57610d5b61198a565b5b6040519080825280601f01601f191660200182016040528015610d8e5781602001600182028036833780820191505090505b509050600082602001820190505b600115610df1578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581610de557610de4611d38565b5b04945060008503610d9c575b819350505050919050565b610e1382846080015161110690919063ffffffff16565b610e2a81846080015161110690919063ffffffff16565b505050565b6000806004549050600181610e449190611c61565b6004819055506000634042994660e01b60008087600001513089604001518760018c6080015160000151604051602401610e85989796959493929190611e21565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050610ef08683868461112b565b925050509392505050565b600033905090565b610f0b611726565b610f1b85608001516101006112c0565b508385600001818152505082856020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508185604001907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681525050849050949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611011577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161100757611006611d38565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061104e576d04ee2d6d415b85acef8100000000838161104457611043611d38565b5b0492506020810190505b662386f26fc10000831061107d57662386f26fc10000838161107357611072611d38565b5b0492506010810190505b6305f5e10083106110a6576305f5e100838161109c5761109b611d38565b5b0492506008810190505b61271083106110cb5761271083816110c1576110c0611d38565b5b0492506004810190505b606483106110ee57606483816110e4576110e3611d38565b5b0492506002810190505b600a83106110fd576001810190505b80915050919050565b611113826003835161132a565b61112681836114af90919063ffffffff16565b505050565b60003084604051602001611140929190611f21565b604051602081830303815290604052805190602001209050846005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550807fb5e6e01e79f91267dc17b4e6314d5d4d03593d2ceee0fbb452b750bd70ea5af960405160405180910390a2600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634000aea08685856040518463ffffffff1660e01b815260040161123693929190611f4d565b6020604051808303816000875af1158015611255573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112799190611fb7565b6112b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112af90612056565b60405180910390fd5b949350505050565b6112c8611793565b60006020836112d79190612076565b14611303576020826112e99190612076565b60206112f591906120a7565b826113009190611c61565b91505b81836020018181525050604051808452600081528281016020016040525082905092915050565b60178167ffffffffffffffff16116113615761135b8160058460ff16901b60ff1617846114d190919063ffffffff16565b506114aa565b60ff8167ffffffffffffffff16116113b757611390601860058460ff16901b17846114d190919063ffffffff16565b506113b18167ffffffffffffffff166001856114f19092919063ffffffff16565b506114a9565b61ffff8167ffffffffffffffff161161140e576113e7601960058460ff16901b17846114d190919063ffffffff16565b506114088167ffffffffffffffff166002856114f19092919063ffffffff16565b506114a8565b63ffffffff8167ffffffffffffffff161161146757611440601a60058460ff16901b17846114d190919063ffffffff16565b506114618167ffffffffffffffff166004856114f19092919063ffffffff16565b506114a7565b611484601b60058460ff16901b17846114d190919063ffffffff16565b506114a58167ffffffffffffffff166008856114f19092919063ffffffff16565b505b5b5b5b505050565b6114b7611793565b6114c983846000015151848551611513565b905092915050565b6114d9611793565b6114e98384600001515184611602565b905092915050565b6114f9611793565b61150a848560000151518585611658565b90509392505050565b61151b611793565b825182111561152957600080fd5b8460200151828561153a9190611c61565b111561156f5761156e85600261155f8860200151888761155a9190611c61565b6116e6565b61156991906120db565b611702565b5b60008086518051876020830101935080888701111561158e5787860182525b60208701925050505b602084106115d557805182526020826115b09190611c61565b91506020816115bf9190611c61565b90506020846115ce91906120a7565b9350611597565b60006001856020036101000a03905080198251168184511681811785525050508692505050949350505050565b61160a611793565b836020015183106116305761162f846002866020015161162a91906120db565b611702565b5b8351805160208583010184815381860361164b576001820183525b5050508390509392505050565b611660611793565b846020015184836116719190611c61565b11156116995761169885600286856116899190611c61565b61169391906120db565b611702565b5b60006001836101006116ab9190612250565b6116b591906120a7565b905085518386820101858319825116178152815185880111156116d85784870182525b505085915050949350505050565b6000818311156116f8578290506116fc565b8190505b92915050565b60008260000151905061171583836112c0565b5061172083826114af565b50505050565b6040518060a0016040528060008019168152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020016000815260200161178d611793565b81525090565b604051806040016040528060608152602001600081525090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b6117d4816117c1565b81146117df57600080fd5b50565b6000813590506117f1816117cb565b92915050565b60006020828403121561180d5761180c6117b7565b5b600061181b848285016117e2565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061184f82611824565b9050919050565b61185f81611844565b82525050565b600060208201905061187a6000830184611856565b92915050565b60008115159050919050565b61189581611880565b82525050565b60006020820190506118b0600083018461188c565b92915050565b6000819050919050565b6118c9816118b6565b81146118d457600080fd5b50565b6000813590506118e6816118c0565b92915050565b600060208284031215611902576119016117b7565b5b6000611910848285016118d7565b91505092915050565b611922816117c1565b82525050565b600060208201905061193d6000830184611919565b92915050565b61194c81611844565b811461195757600080fd5b50565b60008135905061196981611943565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6119c282611979565b810181811067ffffffffffffffff821117156119e1576119e061198a565b5b80604052505050565b60006119f46117ad565b9050611a0082826119b9565b919050565b600067ffffffffffffffff821115611a2057611a1f61198a565b5b611a2982611979565b9050602081019050919050565b82818337600083830152505050565b6000611a58611a5384611a05565b6119ea565b905082815260208101848484011115611a7457611a73611974565b5b611a7f848285611a36565b509392505050565b600082601f830112611a9c57611a9b61196f565b5b8135611aac848260208601611a45565b91505092915050565b60008060008060808587031215611acf57611ace6117b7565b5b6000611add8782880161195a565b9450506020611aee8782880161195a565b935050604085013567ffffffffffffffff811115611b0f57611b0e6117bc565b5b611b1b87828801611a87565b9250506060611b2c878288016117e2565b91505092959194509250565b611b41816118b6565b82525050565b6000602082019050611b5c6000830184611b38565b92915050565b6000604082019050611b776000830185611856565b611b846020830184611919565b9392505050565b6000819050919050565b6000611bb0611bab611ba684611824565b611b8b565b611824565b9050919050565b6000611bc282611b95565b9050919050565b6000611bd482611bb7565b9050919050565b611be481611bc9565b82525050565b6000602082019050611bff6000830184611bdb565b92915050565b600060208284031215611c1b57611c1a6117b7565b5b6000611c298482850161195a565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611c6c826117c1565b9150611c77836117c1565b9250828201905080821115611c8f57611c8e611c32565b5b92915050565b600082825260208201905092915050565b7f53656e64657220616c72656164792068617320612070656e64696e672072657160008201527f7565737400000000000000000000000000000000000000000000000000000000602082015250565b6000611d02602483611c95565b9150611d0d82611ca6565b604082019050919050565b60006020820190508181036000830152611d3181611cf5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611d9c81611d67565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611ddc578082015181840152602081019050611dc1565b60008484015250505050565b6000611df382611da2565b611dfd8185611dad565b9350611e0d818560208601611dbe565b611e1681611979565b840191505092915050565b600061010082019050611e37600083018b611856565b611e44602083018a611919565b611e516040830189611b38565b611e5e6060830188611856565b611e6b6080830187611d93565b611e7860a0830186611919565b611e8560c0830185611919565b81810360e0830152611e978184611de8565b90509998505050505050505050565b6000611eb182611bb7565b9050919050565b60008160601b9050919050565b6000611ed082611eb8565b9050919050565b6000611ee282611ec5565b9050919050565b611efa611ef582611ea6565b611ed7565b82525050565b6000819050919050565b611f1b611f16826117c1565b611f00565b82525050565b6000611f2d8285611ee9565b601482019150611f3d8284611f0a565b6020820191508190509392505050565b6000606082019050611f626000830186611856565b611f6f6020830185611919565b8181036040830152611f818184611de8565b9050949350505050565b611f9481611880565b8114611f9f57600080fd5b50565b600081519050611fb181611f8b565b92915050565b600060208284031215611fcd57611fcc6117b7565b5b6000611fdb84828501611fa2565b91505092915050565b7f756e61626c6520746f207472616e73666572416e6443616c6c20746f206f726160008201527f636c650000000000000000000000000000000000000000000000000000000000602082015250565b6000612040602383611c95565b915061204b82611fe4565b604082019050919050565b6000602082019050818103600083015261206f81612033565b9050919050565b6000612081826117c1565b915061208c836117c1565b92508261209c5761209b611d38565b5b828206905092915050565b60006120b2826117c1565b91506120bd836117c1565b92508282039050818111156120d5576120d4611c32565b5b92915050565b60006120e6826117c1565b91506120f1836117c1565b92508282026120ff816117c1565b9150828204841483151761211657612115611c32565b5b5092915050565b60008160011c9050919050565b6000808291508390505b6001851115612174578086048111156121505761214f611c32565b5b600185161561215f5780820291505b808102905061216d8561211d565b9450612134565b94509492505050565b60008261218d5760019050612249565b8161219b5760009050612249565b81600181146121b157600281146121bb576121ea565b6001915050612249565b60ff8411156121cd576121cc611c32565b5b8360020a9150848211156121e4576121e3611c32565b5b50612249565b5060208310610133831016604e8410600b841016171561221f5782820a90508381111561221a57612219611c32565b5b612249565b61222c848484600161212a565b9250905081840481111561224357612242611c32565b5b81810290505b9392505050565b600061225b826117c1565b9150612266836117c1565b92506122937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848461217d565b90509291505056fea26469706673582212203986c9ca7d77cd2ddce8095b2b9be39449efe53ba80106c4999f85113aa3e88e64736f6c63430008140033",PM0={},IM0={},OM0={_format:wM0,contractName:xM0,sourceName:kM0,abi:_M0,bytecode:SM0,deployedBytecode:TM0,linkReferences:PM0,deployedLinkReferences:IM0};function RM0(){const u=Bt(),[e,t]=w.useState(void 0),[n,r]=w.useState(void 0),[i,a]=w.useState(!1),{config:o}=cf({address:Py,abi:Qy.abi,functionName:"mint",args:[u.address,n,e,i,u.address],enabled:!!(u.address&&e&&n&&i!=null&&u.address)}),{data:s,write:f}=lf(o),{config:l}=cf({address:wP0,abi:OM0.abi,functionName:"reserve",args:[n],enabled:!!n}),{data:c,write:d}=lf(l),{isLoading:E,isSuccess:p}=df({hash:c==null?void 0:c.hash}),{isLoading:h,isSuccess:g}=df({hash:s==null?void 0:s.hash});return w.useEffect(()=>{p&&a(!0)},[p]),w.useEffect(()=>{if(e){const b=zR0(e);r(b)}},[e]),V.jsxs(r3,{container:!0,justifyContent:"Left",spacing:3,padding:7,direction:"column",alignItems:"Left",children:[V.jsx(DM0,{cid:e,setCid:t}),E&&V.jsx(Jt,{children:" Wait for Reserve Transaction to confirm..."}),h&&V.jsx(Jt,{children:"Loading...."}),g&&V.jsxs("div",{children:["Successfully minted your NFT!",V.jsx("div",{children:V.jsx("a",{href:`https://mumbai.polygonscan.com/tx/${s==null?void 0:s.hash}`,children:"Polygon Scan"})})]}),V.jsx(Ca,{disabled:e==null||E||p,onClick:()=>{console.log("Trying to Reserve...",d),d==null||d()},children:"Reserve"}),V.jsx(Ca,{className:"nice_but",disabled:e==null||!p,onClick:()=>{console.log("Trying to mint...",f),f==null||f()},children:"Mint"})]})}function NM0(){return V.jsxs(vH,{children:[V.jsx(CP0,{}),V.jsxs(AH,{children:[V.jsx(Ms,{path:"/real-token/Explore",element:V.jsx($R0,{})}),V.jsx(Ms,{path:"/real-token/Explore/:NFTId/:OrderId",element:V.jsx(Zk,{sell:!1})}),V.jsx(Ms,{path:"/real-token/Profile/:ProfileId",element:V.jsx(oN0,{})}),V.jsx(Ms,{path:"/real-token/Profile/:ProfileId/:NFTId",element:V.jsx(Zk,{sell:!0})}),V.jsx(Ms,{path:"/real-token/Mint",element:V.jsx(RM0,{})})]})]})}function MM0(){return V.jsx(Sq,{children:V.jsx(NM0,{})})}const jM0=Jb({palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},error:{main:$a.A400}}});function zM0(){return function(u){return u.rpcUrls.public.http[0]?{chain:u,rpcUrls:u.rpcUrls.public}:null}}const{chains:x$,publicClient:LM0}=Zn0([Nn0],[zM0()]),{connectors:$M0}=nk0({appName:"My RainbowKit App",projectId:"9d80089c30635ff84b5339d993d63fa1",chains:x$}),UM0=Nr0({autoConnect:!0,connectors:$M0,publicClient:LM0});Lh.createRoot(document.getElementById("root")).render(V.jsxs(EJ,{theme:jM0,children:[V.jsx(q_0,{}),V.jsx(Mr0,{config:UM0,children:V.jsx(py0,{chains:x$,children:V.jsx(MM0,{})})})]}));export{QE as $,Sj as A,mt as B,dj0 as C,xj0 as D,Gj0 as E,aj0 as F,Cj0 as G,Bj0 as H,vj0 as I,sj0 as J,nj0 as K,rj0 as L,cj0 as M,Ni as N,bj0 as O,mj0 as P,Ij0 as Q,ND0 as R,wj0 as S,vn as T,u3 as U,ej0 as V,hj0 as W,qj0 as X,Ej0 as Y,Wj0 as Z,Qc as _,VX as a,pj0 as a0,JE as a1,cy as a2,Tj as a3,fj0 as a4,lj0 as a5,tj0 as a6,Aj0 as a7,yj0 as a8,ZE as a9,q0 as aA,CB0 as aB,TF0 as aC,Fj as aD,iD0 as aE,oy as aF,aD0 as aG,oD0 as aH,fD0 as aI,Bj as aJ,dD0 as aK,hD0 as aL,bD0 as aM,AD0 as aN,vD0 as aO,wF0 as aP,Dj as aQ,_D0 as aR,SD0 as aS,DD0 as aT,kD0 as aU,BC0 as aV,SC0 as aW,oj0 as aa,dy as ab,Fj0 as ac,gj0 as ad,Dj0 as ae,Hj0 as af,Tj0 as ag,Sj0 as ah,gw0 as ai,$j0 as aj,Oj0 as ak,Aw0 as al,_j0 as am,jj0 as an,Rj0 as ao,zj0 as ap,Uj0 as aq,Nj0 as ar,Mj0 as as,Lj0 as at,Pj0 as au,lw0 as av,Ij as aw,mh as ax,JM0 as ay,ZM0 as az,KX as b,QX as c,TO as d,GI0 as e,P9 as f,RX as g,Po as h,Zj as i,Q0 as j,UE as k,xO as l,Mn as m,Vl as n,Qw as o,P0 as p,f3 as q,KE as r,Io as s,qn as t,kj0 as u,YM0 as v,Kn as w,XM0 as x,uj0 as y,ij0 as z}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/index.es-BWNWcA4u.js","assets/http-1-zMwFp0.js","assets/index-N7ZJmHWm.js","assets/hooks.module-o1hAt1ko.js","assets/index-wvsXXRnL.js","assets/browser-YRefIO1l.js"] + __vite__mapDeps.viteFileDeps = ["assets/index.es-s_QArDCI.js","assets/http-n9NI3oC7.js","assets/index-djCT1zJ2.js","assets/hooks.module-o1hAt1ko.js","assets/index-ItcG9P7Q.js","assets/browser-DNUtfqGr.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } \ No newline at end of file diff --git a/assets/index-jmYzeU8F.js b/assets/index-c-KTKmT5.js similarity index 55% rename from assets/index-jmYzeU8F.js rename to assets/index-c-KTKmT5.js index 790ee53..30ec553 100644 --- a/assets/index-jmYzeU8F.js +++ b/assets/index-c-KTKmT5.js @@ -1 +1 @@ -import{e as s}from"./index-XxsA1De3.js";import{g as o,a as m,b as g,c as l,d as E,l as h,n as i}from"./index-XxsA1De3.js";function n(e){return s(e)}export{o as getEnsAddress,m as getEnsAvatar,g as getEnsName,l as getEnsResolver,E as getEnsText,h as labelhash,i as namehash,n as normalize}; +import{e as s}from"./index-Mh1_DVck.js";import{g as o,a as m,b as g,c as l,d as E,l as h,n as i}from"./index-Mh1_DVck.js";function n(e){return s(e)}export{o as getEnsAddress,m as getEnsAvatar,g as getEnsName,l as getEnsResolver,E as getEnsText,h as labelhash,i as namehash,n as normalize}; diff --git a/assets/index-N7ZJmHWm.js b/assets/index-djCT1zJ2.js similarity index 99% rename from assets/index-N7ZJmHWm.js rename to assets/index-djCT1zJ2.js index 2a66684..4b37809 100644 --- a/assets/index-N7ZJmHWm.js +++ b/assets/index-djCT1zJ2.js @@ -1,4 +1,4 @@ -import{i as ku,aB as no,p as te,f as wn,aC as G,q as B0}from"./index-XxsA1De3.js";import{p as D0,h as $0}from"./hooks.module-o1hAt1ko.js";function F0(t,e){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Nu={},Vi={},io={};Object.defineProperty(io,"__esModule",{value:!0});io.walletLogo=void 0;const j0=(t,e)=>{let r;switch(t){case"standard":return r=e,`data:image/svg+xml,%3Csvg width='${e}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return r=e,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' height='${r}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return r=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return r=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return r=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return r=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;default:return r=e,`data:image/svg+xml,%3Csvg width='${e}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `}};io.walletLogo=j0;var so={};Object.defineProperty(so,"__esModule",{value:!0});so.LINK_API_URL=void 0;so.LINK_API_URL="https://www.walletlink.org";var oo={};Object.defineProperty(oo,"__esModule",{value:!0});oo.ScopedLocalStorage=void 0;class U0{constructor(e){this.scope=e}setItem(e,r){localStorage.setItem(this.scopedKey(e),r)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){const e=this.scopedKey(""),r=[];for(let n=0;nlocalStorage.removeItem(n))}scopedKey(e){return`${this.scope}:${e}`}}oo.ScopedLocalStorage=U0;var ti={},_n={};Object.defineProperty(_n,"__esModule",{value:!0});const W0=ku;function zc(t,e,r){try{Reflect.apply(t,e,r)}catch(n){setTimeout(()=>{throw n})}}function H0(t){const e=t.length,r=new Array(e);for(let n=0;n0&&([o]=r),o instanceof Error)throw o;const a=new Error(`Unhandled error.${o?` (${o.message})`:""}`);throw a.context=o,a}const s=i[e];if(s===void 0)return!1;if(typeof s=="function")zc(s,this,r);else{const o=s.length,a=H0(s);for(let c=0;c0?u:g},s.min=function(u,g){return u.cmp(g)<0?u:g},s.prototype._init=function(u,g,m){if(typeof u=="number")return this._initNumber(u,g,m);if(typeof u=="object")return this._initArray(u,g,m);g==="hex"&&(g=16),n(g===(g|0)&&g>=2&&g<=36),u=u.toString().replace(/\s+/g,"");var E=0;u[0]==="-"&&(E++,this.negative=1),E=0;E-=3)T=u[E]|u[E-1]<<8|u[E-2]<<16,this.words[S]|=T<>>26-L&67108863,L+=24,L>=26&&(L-=26,S++);else if(m==="le")for(E=0,S=0;E>>26-L&67108863,L+=24,L>=26&&(L-=26,S++);return this._strip()};function a(w,u){var g=w.charCodeAt(u);if(g>=48&&g<=57)return g-48;if(g>=65&&g<=70)return g-55;if(g>=97&&g<=102)return g-87;n(!1,"Invalid character in "+w)}function c(w,u,g){var m=a(w,g);return g-1>=u&&(m|=a(w,g-1)<<4),m}s.prototype._parseHex=function(u,g,m){this.length=Math.ceil((u.length-g)/6),this.words=new Array(this.length);for(var E=0;E=g;E-=2)L=c(u,g,E)<=18?(S-=18,T+=1,this.words[T]|=L>>>26):S+=8;else{var _=u.length-g;for(E=_%2===0?g+1:g;E=18?(S-=18,T+=1,this.words[T]|=L>>>26):S+=8}this._strip()};function l(w,u,g,m){for(var E=0,S=0,T=Math.min(w.length,g),L=u;L=49?S=_-49+10:_>=17?S=_-17+10:S=_,n(_>=0&&S1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=y}catch{s.prototype.inspect=y}else s.prototype.inspect=y;function y(){return(this.red?""}var v=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],O=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(u,g){u=u||10,g=g|0||1;var m;if(u===16||u==="hex"){m="";for(var E=0,S=0,T=0;T>>24-E&16777215,E+=2,E>=26&&(E-=26,T--),S!==0||T!==this.length-1?m=v[6-_.length]+_+m:m=_+m}for(S!==0&&(m=S.toString(16)+m);m.length%g!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(u===(u|0)&&u>=2&&u<=36){var d=A[u],R=O[u];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var X=Y.modrn(R).toString(u);Y=Y.idivn(R),Y.isZero()?m=X+m:m=v[d-X.length]+X+m}for(this.isZero()&&(m="0"+m);m.length%g!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(u,g){return this.toArrayLike(o,u,g)}),s.prototype.toArray=function(u,g){return this.toArrayLike(Array,u,g)};var j=function(u,g){return u.allocUnsafe?u.allocUnsafe(g):new u(g)};s.prototype.toArrayLike=function(u,g,m){this._strip();var E=this.byteLength(),S=m||Math.max(1,E);n(E<=S,"byte array longer than desired length"),n(S>0,"Requested array length <= 0");var T=j(u,S),L=g==="le"?"LE":"BE";return this["_toArrayLike"+L](T,E),T},s.prototype._toArrayLikeLE=function(u,g){for(var m=0,E=0,S=0,T=0;S>8&255),m>16&255),T===6?(m>24&255),E=0,T=0):(E=L>>>24,T+=2)}if(m=0&&(u[m--]=L>>8&255),m>=0&&(u[m--]=L>>16&255),T===6?(m>=0&&(u[m--]=L>>24&255),E=0,T=0):(E=L>>>24,T+=2)}if(m>=0)for(u[m--]=E;m>=0;)u[m--]=0},Math.clz32?s.prototype._countBits=function(u){return 32-Math.clz32(u)}:s.prototype._countBits=function(u){var g=u,m=0;return g>=4096&&(m+=13,g>>>=13),g>=64&&(m+=7,g>>>=7),g>=8&&(m+=4,g>>>=4),g>=2&&(m+=2,g>>>=2),m+g},s.prototype._zeroBits=function(u){if(u===0)return 26;var g=u,m=0;return g&8191||(m+=13,g>>>=13),g&127||(m+=7,g>>>=7),g&15||(m+=4,g>>>=4),g&3||(m+=2,g>>>=2),g&1||m++,m},s.prototype.bitLength=function(){var u=this.words[this.length-1],g=this._countBits(u);return(this.length-1)*26+g};function F(w){for(var u=new Array(w.bitLength()),g=0;g>>E&1}return u}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,g=0;gu.length?this.clone().ior(u):u.clone().ior(this)},s.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},s.prototype.iuand=function(u){var g;this.length>u.length?g=u:g=this;for(var m=0;mu.length?this.clone().iand(u):u.clone().iand(this)},s.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},s.prototype.iuxor=function(u){var g,m;this.length>u.length?(g=this,m=u):(g=u,m=this);for(var E=0;Eu.length?this.clone().ixor(u):u.clone().ixor(this)},s.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},s.prototype.inotn=function(u){n(typeof u=="number"&&u>=0);var g=Math.ceil(u/26)|0,m=u%26;this._expand(g),m>0&&g--;for(var E=0;E0&&(this.words[E]=~this.words[E]&67108863>>26-m),this._strip()},s.prototype.notn=function(u){return this.clone().inotn(u)},s.prototype.setn=function(u,g){n(typeof u=="number"&&u>=0);var m=u/26|0,E=u%26;return this._expand(m+1),g?this.words[m]=this.words[m]|1<u.length?(m=this,E=u):(m=u,E=this);for(var S=0,T=0;T>>26;for(;S!==0&&T>>26;if(this.length=m.length,S!==0)this.words[this.length]=S,this.length++;else if(m!==this)for(;Tu.length?this.clone().iadd(u):u.clone().iadd(this)},s.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var g=this.iadd(u);return u.negative=1,g._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var m=this.cmp(u);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var E,S;m>0?(E=this,S=u):(E=u,S=this);for(var T=0,L=0;L>26,this.words[L]=g&67108863;for(;T!==0&&L>26,this.words[L]=g&67108863;if(T===0&&L>>26,Y=_&67108863,X=Math.min(d,u.length-1),k=Math.max(0,d-w.length+1);k<=X;k++){var B=d-k|0;E=w.words[B]|0,S=u.words[k]|0,T=E*S+Y,R+=T/67108864|0,Y=T&67108863}g.words[d]=Y|0,_=R|0}return _!==0?g.words[d]=_|0:g.length--,g._strip()}var N=function(u,g,m){var E=u.words,S=g.words,T=m.words,L=0,_,d,R,Y=E[0]|0,X=Y&8191,k=Y>>>13,B=E[1]|0,V=B&8191,Q=B>>>13,ge=E[2]|0,M=ge&8191,C=ge>>>13,q=E[3]|0,J=q&8191,fe=q>>>13,ye=E[4]|0,ae=ye&8191,Se=ye>>>13,Pt=E[5]|0,Ae=Pt&8191,Ie=Pt>>>13,ot=E[6]|0,Me=ot&8191,Te=ot>>>13,ct=E[7]|0,Ce=ct&8191,b=ct>>>13,f=E[8]|0,h=f&8191,x=f>>>13,P=E[9]|0,$=P&8191,W=P>>>13,de=S[0]|0,he=de&8191,ce=de>>>13,Oe=S[1]|0,ue=Oe&8191,Le=Oe>>>13,An=S[2]|0,Pe=An&8191,Be=An>>>13,Tn=S[3]|0,De=Tn&8191,$e=Tn>>>13,On=S[4]|0,Fe=On&8191,je=On>>>13,kn=S[5]|0,Ue=kn&8191,We=kn>>>13,Nn=S[6]|0,He=Nn&8191,Ve=Nn>>>13,Ln=S[7]|0,ze=Ln&8191,qe=Ln>>>13,Pn=S[8]|0,Ge=Pn&8191,Je=Pn>>>13,Bn=S[9]|0,Ze=Bn&8191,Qe=Bn>>>13;m.negative=u.negative^g.negative,m.length=19,_=Math.imul(X,he),d=Math.imul(X,ce),d=d+Math.imul(k,he)|0,R=Math.imul(k,ce);var Wr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,_=Math.imul(V,he),d=Math.imul(V,ce),d=d+Math.imul(Q,he)|0,R=Math.imul(Q,ce),_=_+Math.imul(X,ue)|0,d=d+Math.imul(X,Le)|0,d=d+Math.imul(k,ue)|0,R=R+Math.imul(k,Le)|0;var Hr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,_=Math.imul(M,he),d=Math.imul(M,ce),d=d+Math.imul(C,he)|0,R=Math.imul(C,ce),_=_+Math.imul(V,ue)|0,d=d+Math.imul(V,Le)|0,d=d+Math.imul(Q,ue)|0,R=R+Math.imul(Q,Le)|0,_=_+Math.imul(X,Pe)|0,d=d+Math.imul(X,Be)|0,d=d+Math.imul(k,Pe)|0,R=R+Math.imul(k,Be)|0;var Vr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,_=Math.imul(J,he),d=Math.imul(J,ce),d=d+Math.imul(fe,he)|0,R=Math.imul(fe,ce),_=_+Math.imul(M,ue)|0,d=d+Math.imul(M,Le)|0,d=d+Math.imul(C,ue)|0,R=R+Math.imul(C,Le)|0,_=_+Math.imul(V,Pe)|0,d=d+Math.imul(V,Be)|0,d=d+Math.imul(Q,Pe)|0,R=R+Math.imul(Q,Be)|0,_=_+Math.imul(X,De)|0,d=d+Math.imul(X,$e)|0,d=d+Math.imul(k,De)|0,R=R+Math.imul(k,$e)|0;var zr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(zr>>>26)|0,zr&=67108863,_=Math.imul(ae,he),d=Math.imul(ae,ce),d=d+Math.imul(Se,he)|0,R=Math.imul(Se,ce),_=_+Math.imul(J,ue)|0,d=d+Math.imul(J,Le)|0,d=d+Math.imul(fe,ue)|0,R=R+Math.imul(fe,Le)|0,_=_+Math.imul(M,Pe)|0,d=d+Math.imul(M,Be)|0,d=d+Math.imul(C,Pe)|0,R=R+Math.imul(C,Be)|0,_=_+Math.imul(V,De)|0,d=d+Math.imul(V,$e)|0,d=d+Math.imul(Q,De)|0,R=R+Math.imul(Q,$e)|0,_=_+Math.imul(X,Fe)|0,d=d+Math.imul(X,je)|0,d=d+Math.imul(k,Fe)|0,R=R+Math.imul(k,je)|0;var qr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(qr>>>26)|0,qr&=67108863,_=Math.imul(Ae,he),d=Math.imul(Ae,ce),d=d+Math.imul(Ie,he)|0,R=Math.imul(Ie,ce),_=_+Math.imul(ae,ue)|0,d=d+Math.imul(ae,Le)|0,d=d+Math.imul(Se,ue)|0,R=R+Math.imul(Se,Le)|0,_=_+Math.imul(J,Pe)|0,d=d+Math.imul(J,Be)|0,d=d+Math.imul(fe,Pe)|0,R=R+Math.imul(fe,Be)|0,_=_+Math.imul(M,De)|0,d=d+Math.imul(M,$e)|0,d=d+Math.imul(C,De)|0,R=R+Math.imul(C,$e)|0,_=_+Math.imul(V,Fe)|0,d=d+Math.imul(V,je)|0,d=d+Math.imul(Q,Fe)|0,R=R+Math.imul(Q,je)|0,_=_+Math.imul(X,Ue)|0,d=d+Math.imul(X,We)|0,d=d+Math.imul(k,Ue)|0,R=R+Math.imul(k,We)|0;var Gr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,_=Math.imul(Me,he),d=Math.imul(Me,ce),d=d+Math.imul(Te,he)|0,R=Math.imul(Te,ce),_=_+Math.imul(Ae,ue)|0,d=d+Math.imul(Ae,Le)|0,d=d+Math.imul(Ie,ue)|0,R=R+Math.imul(Ie,Le)|0,_=_+Math.imul(ae,Pe)|0,d=d+Math.imul(ae,Be)|0,d=d+Math.imul(Se,Pe)|0,R=R+Math.imul(Se,Be)|0,_=_+Math.imul(J,De)|0,d=d+Math.imul(J,$e)|0,d=d+Math.imul(fe,De)|0,R=R+Math.imul(fe,$e)|0,_=_+Math.imul(M,Fe)|0,d=d+Math.imul(M,je)|0,d=d+Math.imul(C,Fe)|0,R=R+Math.imul(C,je)|0,_=_+Math.imul(V,Ue)|0,d=d+Math.imul(V,We)|0,d=d+Math.imul(Q,Ue)|0,R=R+Math.imul(Q,We)|0,_=_+Math.imul(X,He)|0,d=d+Math.imul(X,Ve)|0,d=d+Math.imul(k,He)|0,R=R+Math.imul(k,Ve)|0;var Jr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Jr>>>26)|0,Jr&=67108863,_=Math.imul(Ce,he),d=Math.imul(Ce,ce),d=d+Math.imul(b,he)|0,R=Math.imul(b,ce),_=_+Math.imul(Me,ue)|0,d=d+Math.imul(Me,Le)|0,d=d+Math.imul(Te,ue)|0,R=R+Math.imul(Te,Le)|0,_=_+Math.imul(Ae,Pe)|0,d=d+Math.imul(Ae,Be)|0,d=d+Math.imul(Ie,Pe)|0,R=R+Math.imul(Ie,Be)|0,_=_+Math.imul(ae,De)|0,d=d+Math.imul(ae,$e)|0,d=d+Math.imul(Se,De)|0,R=R+Math.imul(Se,$e)|0,_=_+Math.imul(J,Fe)|0,d=d+Math.imul(J,je)|0,d=d+Math.imul(fe,Fe)|0,R=R+Math.imul(fe,je)|0,_=_+Math.imul(M,Ue)|0,d=d+Math.imul(M,We)|0,d=d+Math.imul(C,Ue)|0,R=R+Math.imul(C,We)|0,_=_+Math.imul(V,He)|0,d=d+Math.imul(V,Ve)|0,d=d+Math.imul(Q,He)|0,R=R+Math.imul(Q,Ve)|0,_=_+Math.imul(X,ze)|0,d=d+Math.imul(X,qe)|0,d=d+Math.imul(k,ze)|0,R=R+Math.imul(k,qe)|0;var Zr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,_=Math.imul(h,he),d=Math.imul(h,ce),d=d+Math.imul(x,he)|0,R=Math.imul(x,ce),_=_+Math.imul(Ce,ue)|0,d=d+Math.imul(Ce,Le)|0,d=d+Math.imul(b,ue)|0,R=R+Math.imul(b,Le)|0,_=_+Math.imul(Me,Pe)|0,d=d+Math.imul(Me,Be)|0,d=d+Math.imul(Te,Pe)|0,R=R+Math.imul(Te,Be)|0,_=_+Math.imul(Ae,De)|0,d=d+Math.imul(Ae,$e)|0,d=d+Math.imul(Ie,De)|0,R=R+Math.imul(Ie,$e)|0,_=_+Math.imul(ae,Fe)|0,d=d+Math.imul(ae,je)|0,d=d+Math.imul(Se,Fe)|0,R=R+Math.imul(Se,je)|0,_=_+Math.imul(J,Ue)|0,d=d+Math.imul(J,We)|0,d=d+Math.imul(fe,Ue)|0,R=R+Math.imul(fe,We)|0,_=_+Math.imul(M,He)|0,d=d+Math.imul(M,Ve)|0,d=d+Math.imul(C,He)|0,R=R+Math.imul(C,Ve)|0,_=_+Math.imul(V,ze)|0,d=d+Math.imul(V,qe)|0,d=d+Math.imul(Q,ze)|0,R=R+Math.imul(Q,qe)|0,_=_+Math.imul(X,Ge)|0,d=d+Math.imul(X,Je)|0,d=d+Math.imul(k,Ge)|0,R=R+Math.imul(k,Je)|0;var Qr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,_=Math.imul($,he),d=Math.imul($,ce),d=d+Math.imul(W,he)|0,R=Math.imul(W,ce),_=_+Math.imul(h,ue)|0,d=d+Math.imul(h,Le)|0,d=d+Math.imul(x,ue)|0,R=R+Math.imul(x,Le)|0,_=_+Math.imul(Ce,Pe)|0,d=d+Math.imul(Ce,Be)|0,d=d+Math.imul(b,Pe)|0,R=R+Math.imul(b,Be)|0,_=_+Math.imul(Me,De)|0,d=d+Math.imul(Me,$e)|0,d=d+Math.imul(Te,De)|0,R=R+Math.imul(Te,$e)|0,_=_+Math.imul(Ae,Fe)|0,d=d+Math.imul(Ae,je)|0,d=d+Math.imul(Ie,Fe)|0,R=R+Math.imul(Ie,je)|0,_=_+Math.imul(ae,Ue)|0,d=d+Math.imul(ae,We)|0,d=d+Math.imul(Se,Ue)|0,R=R+Math.imul(Se,We)|0,_=_+Math.imul(J,He)|0,d=d+Math.imul(J,Ve)|0,d=d+Math.imul(fe,He)|0,R=R+Math.imul(fe,Ve)|0,_=_+Math.imul(M,ze)|0,d=d+Math.imul(M,qe)|0,d=d+Math.imul(C,ze)|0,R=R+Math.imul(C,qe)|0,_=_+Math.imul(V,Ge)|0,d=d+Math.imul(V,Je)|0,d=d+Math.imul(Q,Ge)|0,R=R+Math.imul(Q,Je)|0,_=_+Math.imul(X,Ze)|0,d=d+Math.imul(X,Qe)|0,d=d+Math.imul(k,Ze)|0,R=R+Math.imul(k,Qe)|0;var Yr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,_=Math.imul($,ue),d=Math.imul($,Le),d=d+Math.imul(W,ue)|0,R=Math.imul(W,Le),_=_+Math.imul(h,Pe)|0,d=d+Math.imul(h,Be)|0,d=d+Math.imul(x,Pe)|0,R=R+Math.imul(x,Be)|0,_=_+Math.imul(Ce,De)|0,d=d+Math.imul(Ce,$e)|0,d=d+Math.imul(b,De)|0,R=R+Math.imul(b,$e)|0,_=_+Math.imul(Me,Fe)|0,d=d+Math.imul(Me,je)|0,d=d+Math.imul(Te,Fe)|0,R=R+Math.imul(Te,je)|0,_=_+Math.imul(Ae,Ue)|0,d=d+Math.imul(Ae,We)|0,d=d+Math.imul(Ie,Ue)|0,R=R+Math.imul(Ie,We)|0,_=_+Math.imul(ae,He)|0,d=d+Math.imul(ae,Ve)|0,d=d+Math.imul(Se,He)|0,R=R+Math.imul(Se,Ve)|0,_=_+Math.imul(J,ze)|0,d=d+Math.imul(J,qe)|0,d=d+Math.imul(fe,ze)|0,R=R+Math.imul(fe,qe)|0,_=_+Math.imul(M,Ge)|0,d=d+Math.imul(M,Je)|0,d=d+Math.imul(C,Ge)|0,R=R+Math.imul(C,Je)|0,_=_+Math.imul(V,Ze)|0,d=d+Math.imul(V,Qe)|0,d=d+Math.imul(Q,Ze)|0,R=R+Math.imul(Q,Qe)|0;var Kr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,_=Math.imul($,Pe),d=Math.imul($,Be),d=d+Math.imul(W,Pe)|0,R=Math.imul(W,Be),_=_+Math.imul(h,De)|0,d=d+Math.imul(h,$e)|0,d=d+Math.imul(x,De)|0,R=R+Math.imul(x,$e)|0,_=_+Math.imul(Ce,Fe)|0,d=d+Math.imul(Ce,je)|0,d=d+Math.imul(b,Fe)|0,R=R+Math.imul(b,je)|0,_=_+Math.imul(Me,Ue)|0,d=d+Math.imul(Me,We)|0,d=d+Math.imul(Te,Ue)|0,R=R+Math.imul(Te,We)|0,_=_+Math.imul(Ae,He)|0,d=d+Math.imul(Ae,Ve)|0,d=d+Math.imul(Ie,He)|0,R=R+Math.imul(Ie,Ve)|0,_=_+Math.imul(ae,ze)|0,d=d+Math.imul(ae,qe)|0,d=d+Math.imul(Se,ze)|0,R=R+Math.imul(Se,qe)|0,_=_+Math.imul(J,Ge)|0,d=d+Math.imul(J,Je)|0,d=d+Math.imul(fe,Ge)|0,R=R+Math.imul(fe,Je)|0,_=_+Math.imul(M,Ze)|0,d=d+Math.imul(M,Qe)|0,d=d+Math.imul(C,Ze)|0,R=R+Math.imul(C,Qe)|0;var Xr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,_=Math.imul($,De),d=Math.imul($,$e),d=d+Math.imul(W,De)|0,R=Math.imul(W,$e),_=_+Math.imul(h,Fe)|0,d=d+Math.imul(h,je)|0,d=d+Math.imul(x,Fe)|0,R=R+Math.imul(x,je)|0,_=_+Math.imul(Ce,Ue)|0,d=d+Math.imul(Ce,We)|0,d=d+Math.imul(b,Ue)|0,R=R+Math.imul(b,We)|0,_=_+Math.imul(Me,He)|0,d=d+Math.imul(Me,Ve)|0,d=d+Math.imul(Te,He)|0,R=R+Math.imul(Te,Ve)|0,_=_+Math.imul(Ae,ze)|0,d=d+Math.imul(Ae,qe)|0,d=d+Math.imul(Ie,ze)|0,R=R+Math.imul(Ie,qe)|0,_=_+Math.imul(ae,Ge)|0,d=d+Math.imul(ae,Je)|0,d=d+Math.imul(Se,Ge)|0,R=R+Math.imul(Se,Je)|0,_=_+Math.imul(J,Ze)|0,d=d+Math.imul(J,Qe)|0,d=d+Math.imul(fe,Ze)|0,R=R+Math.imul(fe,Qe)|0;var en=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul($,Fe),d=Math.imul($,je),d=d+Math.imul(W,Fe)|0,R=Math.imul(W,je),_=_+Math.imul(h,Ue)|0,d=d+Math.imul(h,We)|0,d=d+Math.imul(x,Ue)|0,R=R+Math.imul(x,We)|0,_=_+Math.imul(Ce,He)|0,d=d+Math.imul(Ce,Ve)|0,d=d+Math.imul(b,He)|0,R=R+Math.imul(b,Ve)|0,_=_+Math.imul(Me,ze)|0,d=d+Math.imul(Me,qe)|0,d=d+Math.imul(Te,ze)|0,R=R+Math.imul(Te,qe)|0,_=_+Math.imul(Ae,Ge)|0,d=d+Math.imul(Ae,Je)|0,d=d+Math.imul(Ie,Ge)|0,R=R+Math.imul(Ie,Je)|0,_=_+Math.imul(ae,Ze)|0,d=d+Math.imul(ae,Qe)|0,d=d+Math.imul(Se,Ze)|0,R=R+Math.imul(Se,Qe)|0;var tn=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(tn>>>26)|0,tn&=67108863,_=Math.imul($,Ue),d=Math.imul($,We),d=d+Math.imul(W,Ue)|0,R=Math.imul(W,We),_=_+Math.imul(h,He)|0,d=d+Math.imul(h,Ve)|0,d=d+Math.imul(x,He)|0,R=R+Math.imul(x,Ve)|0,_=_+Math.imul(Ce,ze)|0,d=d+Math.imul(Ce,qe)|0,d=d+Math.imul(b,ze)|0,R=R+Math.imul(b,qe)|0,_=_+Math.imul(Me,Ge)|0,d=d+Math.imul(Me,Je)|0,d=d+Math.imul(Te,Ge)|0,R=R+Math.imul(Te,Je)|0,_=_+Math.imul(Ae,Ze)|0,d=d+Math.imul(Ae,Qe)|0,d=d+Math.imul(Ie,Ze)|0,R=R+Math.imul(Ie,Qe)|0;var fa=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(fa>>>26)|0,fa&=67108863,_=Math.imul($,He),d=Math.imul($,Ve),d=d+Math.imul(W,He)|0,R=Math.imul(W,Ve),_=_+Math.imul(h,ze)|0,d=d+Math.imul(h,qe)|0,d=d+Math.imul(x,ze)|0,R=R+Math.imul(x,qe)|0,_=_+Math.imul(Ce,Ge)|0,d=d+Math.imul(Ce,Je)|0,d=d+Math.imul(b,Ge)|0,R=R+Math.imul(b,Je)|0,_=_+Math.imul(Me,Ze)|0,d=d+Math.imul(Me,Qe)|0,d=d+Math.imul(Te,Ze)|0,R=R+Math.imul(Te,Qe)|0;var ha=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(ha>>>26)|0,ha&=67108863,_=Math.imul($,ze),d=Math.imul($,qe),d=d+Math.imul(W,ze)|0,R=Math.imul(W,qe),_=_+Math.imul(h,Ge)|0,d=d+Math.imul(h,Je)|0,d=d+Math.imul(x,Ge)|0,R=R+Math.imul(x,Je)|0,_=_+Math.imul(Ce,Ze)|0,d=d+Math.imul(Ce,Qe)|0,d=d+Math.imul(b,Ze)|0,R=R+Math.imul(b,Qe)|0;var da=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(da>>>26)|0,da&=67108863,_=Math.imul($,Ge),d=Math.imul($,Je),d=d+Math.imul(W,Ge)|0,R=Math.imul(W,Je),_=_+Math.imul(h,Ze)|0,d=d+Math.imul(h,Qe)|0,d=d+Math.imul(x,Ze)|0,R=R+Math.imul(x,Qe)|0;var pa=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(pa>>>26)|0,pa&=67108863,_=Math.imul($,Ze),d=Math.imul($,Qe),d=d+Math.imul(W,Ze)|0,R=Math.imul(W,Qe);var ga=(L+_|0)+((d&8191)<<13)|0;return L=(R+(d>>>13)|0)+(ga>>>26)|0,ga&=67108863,T[0]=Wr,T[1]=Hr,T[2]=Vr,T[3]=zr,T[4]=qr,T[5]=Gr,T[6]=Jr,T[7]=Zr,T[8]=Qr,T[9]=Yr,T[10]=Kr,T[11]=Xr,T[12]=en,T[13]=tn,T[14]=fa,T[15]=ha,T[16]=da,T[17]=pa,T[18]=ga,L!==0&&(T[19]=L,m.length++),m};Math.imul||(N=I);function D(w,u,g){g.negative=u.negative^w.negative,g.length=w.length+u.length;for(var m=0,E=0,S=0;S>>26)|0,E+=T>>>26,T&=67108863}g.words[S]=L,m=T,T=E}return m!==0?g.words[S]=m:g.length--,g._strip()}function H(w,u,g){return D(w,u,g)}s.prototype.mulTo=function(u,g){var m,E=this.length+u.length;return this.length===10&&u.length===10?m=N(this,u,g):E<63?m=I(this,u,g):E<1024?m=D(this,u,g):m=H(this,u,g),m},s.prototype.mul=function(u){var g=new s(null);return g.words=new Array(this.length+u.length),this.mulTo(u,g)},s.prototype.mulf=function(u){var g=new s(null);return g.words=new Array(this.length+u.length),H(this,u,g)},s.prototype.imul=function(u){return this.clone().mulTo(u,this)},s.prototype.imuln=function(u){var g=u<0;g&&(u=-u),n(typeof u=="number"),n(u<67108864);for(var m=0,E=0;E>=26,m+=S/67108864|0,m+=T>>>26,this.words[E]=T&67108863}return m!==0&&(this.words[E]=m,this.length++),g?this.ineg():this},s.prototype.muln=function(u){return this.clone().imuln(u)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(u){var g=F(u);if(g.length===0)return new s(1);for(var m=this,E=0;E=0);var g=u%26,m=(u-g)/26,E=67108863>>>26-g<<26-g,S;if(g!==0){var T=0;for(S=0;S>>26-g}T&&(this.words[S]=T,this.length++)}if(m!==0){for(S=this.length-1;S>=0;S--)this.words[S+m]=this.words[S];for(S=0;S=0);var E;g?E=(g-g%26)/26:E=0;var S=u%26,T=Math.min((u-S)/26,this.length),L=67108863^67108863>>>S<T)for(this.length-=T,d=0;d=0&&(R!==0||d>=E);d--){var Y=this.words[d]|0;this.words[d]=R<<26-S|Y>>>S,R=Y&L}return _&&R!==0&&(_.words[_.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(u,g,m){return n(this.negative===0),this.iushrn(u,g,m)},s.prototype.shln=function(u){return this.clone().ishln(u)},s.prototype.ushln=function(u){return this.clone().iushln(u)},s.prototype.shrn=function(u){return this.clone().ishrn(u)},s.prototype.ushrn=function(u){return this.clone().iushrn(u)},s.prototype.testn=function(u){n(typeof u=="number"&&u>=0);var g=u%26,m=(u-g)/26,E=1<=0);var g=u%26,m=(u-g)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(g!==0&&m++,this.length=Math.min(m,this.length),g!==0){var E=67108863^67108863>>>g<=67108864;g++)this.words[g]-=67108864,g===this.length-1?this.words[g+1]=1:this.words[g+1]++;return this.length=Math.max(this.length,g+1),this},s.prototype.isubn=function(u){if(n(typeof u=="number"),n(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var g=0;g>26)-(_/67108864|0),this.words[S+m]=T&67108863}for(;S>26,this.words[S+m]=T&67108863;if(L===0)return this._strip();for(n(L===-1),L=0,S=0;S>26,this.words[S]=T&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(u,g){var m=this.length-u.length,E=this.clone(),S=u,T=S.words[S.length-1]|0,L=this._countBits(T);m=26-L,m!==0&&(S=S.ushln(m),E.iushln(m),T=S.words[S.length-1]|0);var _=E.length-S.length,d;if(g!=="mod"){d=new s(null),d.length=_+1,d.words=new Array(d.length);for(var R=0;R=0;X--){var k=(E.words[S.length+X]|0)*67108864+(E.words[S.length+X-1]|0);for(k=Math.min(k/T|0,67108863),E._ishlnsubmul(S,k,X);E.negative!==0;)k--,E.negative=0,E._ishlnsubmul(S,1,X),E.isZero()||(E.negative^=1);d&&(d.words[X]=k)}return d&&d._strip(),E._strip(),g!=="div"&&m!==0&&E.iushrn(m),{div:d||null,mod:E}},s.prototype.divmod=function(u,g,m){if(n(!u.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var E,S,T;return this.negative!==0&&u.negative===0?(T=this.neg().divmod(u,g),g!=="mod"&&(E=T.div.neg()),g!=="div"&&(S=T.mod.neg(),m&&S.negative!==0&&S.iadd(u)),{div:E,mod:S}):this.negative===0&&u.negative!==0?(T=this.divmod(u.neg(),g),g!=="mod"&&(E=T.div.neg()),{div:E,mod:T.mod}):this.negative&u.negative?(T=this.neg().divmod(u.neg(),g),g!=="div"&&(S=T.mod.neg(),m&&S.negative!==0&&S.isub(u)),{div:T.div,mod:S}):u.length>this.length||this.cmp(u)<0?{div:new s(0),mod:this}:u.length===1?g==="div"?{div:this.divn(u.words[0]),mod:null}:g==="mod"?{div:null,mod:new s(this.modrn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new s(this.modrn(u.words[0]))}:this._wordDiv(u,g)},s.prototype.div=function(u){return this.divmod(u,"div",!1).div},s.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},s.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},s.prototype.divRound=function(u){var g=this.divmod(u);if(g.mod.isZero())return g.div;var m=g.div.negative!==0?g.mod.isub(u):g.mod,E=u.ushrn(1),S=u.andln(1),T=m.cmp(E);return T<0||S===1&&T===0?g.div:g.div.negative!==0?g.div.isubn(1):g.div.iaddn(1)},s.prototype.modrn=function(u){var g=u<0;g&&(u=-u),n(u<=67108863);for(var m=(1<<26)%u,E=0,S=this.length-1;S>=0;S--)E=(m*E+(this.words[S]|0))%u;return g?-E:E},s.prototype.modn=function(u){return this.modrn(u)},s.prototype.idivn=function(u){var g=u<0;g&&(u=-u),n(u<=67108863);for(var m=0,E=this.length-1;E>=0;E--){var S=(this.words[E]|0)+m*67108864;this.words[E]=S/u|0,m=S%u}return this._strip(),g?this.ineg():this},s.prototype.divn=function(u){return this.clone().idivn(u)},s.prototype.egcd=function(u){n(u.negative===0),n(!u.isZero());var g=this,m=u.clone();g.negative!==0?g=g.umod(u):g=g.clone();for(var E=new s(1),S=new s(0),T=new s(0),L=new s(1),_=0;g.isEven()&&m.isEven();)g.iushrn(1),m.iushrn(1),++_;for(var d=m.clone(),R=g.clone();!g.isZero();){for(var Y=0,X=1;!(g.words[0]&X)&&Y<26;++Y,X<<=1);if(Y>0)for(g.iushrn(Y);Y-- >0;)(E.isOdd()||S.isOdd())&&(E.iadd(d),S.isub(R)),E.iushrn(1),S.iushrn(1);for(var k=0,B=1;!(m.words[0]&B)&&k<26;++k,B<<=1);if(k>0)for(m.iushrn(k);k-- >0;)(T.isOdd()||L.isOdd())&&(T.iadd(d),L.isub(R)),T.iushrn(1),L.iushrn(1);g.cmp(m)>=0?(g.isub(m),E.isub(T),S.isub(L)):(m.isub(g),T.isub(E),L.isub(S))}return{a:T,b:L,gcd:m.iushln(_)}},s.prototype._invmp=function(u){n(u.negative===0),n(!u.isZero());var g=this,m=u.clone();g.negative!==0?g=g.umod(u):g=g.clone();for(var E=new s(1),S=new s(0),T=m.clone();g.cmpn(1)>0&&m.cmpn(1)>0;){for(var L=0,_=1;!(g.words[0]&_)&&L<26;++L,_<<=1);if(L>0)for(g.iushrn(L);L-- >0;)E.isOdd()&&E.iadd(T),E.iushrn(1);for(var d=0,R=1;!(m.words[0]&R)&&d<26;++d,R<<=1);if(d>0)for(m.iushrn(d);d-- >0;)S.isOdd()&&S.iadd(T),S.iushrn(1);g.cmp(m)>=0?(g.isub(m),E.isub(S)):(m.isub(g),S.isub(E))}var Y;return g.cmpn(1)===0?Y=E:Y=S,Y.cmpn(0)<0&&Y.iadd(u),Y},s.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var g=this.clone(),m=u.clone();g.negative=0,m.negative=0;for(var E=0;g.isEven()&&m.isEven();E++)g.iushrn(1),m.iushrn(1);do{for(;g.isEven();)g.iushrn(1);for(;m.isEven();)m.iushrn(1);var S=g.cmp(m);if(S<0){var T=g;g=m,m=T}else if(S===0||m.cmpn(1)===0)break;g.isub(m)}while(!0);return m.iushln(E)},s.prototype.invm=function(u){return this.egcd(u).a.umod(u)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(u){return this.words[0]&u},s.prototype.bincn=function(u){n(typeof u=="number");var g=u%26,m=(u-g)/26,E=1<>>26,L&=67108863,this.words[T]=L}return S!==0&&(this.words[T]=S,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(u){var g=u<0;if(this.negative!==0&&!g)return-1;if(this.negative===0&&g)return 1;this._strip();var m;if(this.length>1)m=1;else{g&&(u=-u),n(u<=67108863,"Number is too big");var E=this.words[0]|0;m=E===u?0:Eu.length)return 1;if(this.length=0;m--){var E=this.words[m]|0,S=u.words[m]|0;if(E!==S){ES&&(g=1);break}}return g},s.prototype.gtn=function(u){return this.cmpn(u)===1},s.prototype.gt=function(u){return this.cmp(u)===1},s.prototype.gten=function(u){return this.cmpn(u)>=0},s.prototype.gte=function(u){return this.cmp(u)>=0},s.prototype.ltn=function(u){return this.cmpn(u)===-1},s.prototype.lt=function(u){return this.cmp(u)===-1},s.prototype.lten=function(u){return this.cmpn(u)<=0},s.prototype.lte=function(u){return this.cmp(u)<=0},s.prototype.eqn=function(u){return this.cmpn(u)===0},s.prototype.eq=function(u){return this.cmp(u)===0},s.red=function(u){return new ne(u)},s.prototype.toRed=function(u){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(u){return this.red=u,this},s.prototype.forceRed=function(u){return n(!this.red,"Already a number in reduction context"),this._forceRed(u)},s.prototype.redAdd=function(u){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},s.prototype.redIAdd=function(u){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},s.prototype.redSub=function(u){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},s.prototype.redISub=function(u){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},s.prototype.redShl=function(u){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},s.prototype.redMul=function(u){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},s.prototype.redIMul=function(u){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(u){return n(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var U={k256:null,p224:null,p192:null,p25519:null};function z(w,u){this.name=w,this.p=new s(u,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}z.prototype._tmp=function(){var u=new s(null);return u.words=new Array(Math.ceil(this.n/13)),u},z.prototype.ireduce=function(u){var g=u,m;do this.split(g,this.tmp),g=this.imulK(g),g=g.iadd(this.tmp),m=g.bitLength();while(m>this.n);var E=m0?g.isub(this.p):g.strip!==void 0?g.strip():g._strip(),g},z.prototype.split=function(u,g){u.iushrn(this.n,0,g)},z.prototype.imulK=function(u){return u.imul(this.k)};function ee(){z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(ee,z),ee.prototype.split=function(u,g){for(var m=4194303,E=Math.min(u.length,9),S=0;S>>22,T=L}T>>>=22,u.words[S-10]=T,T===0&&u.length>10?u.length-=10:u.length-=9},ee.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var g=0,m=0;m>>=26,u.words[m]=S,g=E}return g!==0&&(u.words[u.length++]=g),u},s._prime=function(u){if(U[u])return U[u];var g;if(u==="k256")g=new ee;else if(u==="p224")g=new K;else if(u==="p192")g=new Z;else if(u==="p25519")g=new se;else throw new Error("Unknown prime "+u);return U[u]=g,g};function ne(w){if(typeof w=="string"){var u=s._prime(w);this.m=u.p,this.prime=u}else n(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}ne.prototype._verify1=function(u){n(u.negative===0,"red works only with positives"),n(u.red,"red works only with red numbers")},ne.prototype._verify2=function(u,g){n((u.negative|g.negative)===0,"red works only with positives"),n(u.red&&u.red===g.red,"red works only with red numbers")},ne.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):(p(u,u.umod(this.m)._forceRed(this)),u)},ne.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},ne.prototype.add=function(u,g){this._verify2(u,g);var m=u.add(g);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},ne.prototype.iadd=function(u,g){this._verify2(u,g);var m=u.iadd(g);return m.cmp(this.m)>=0&&m.isub(this.m),m},ne.prototype.sub=function(u,g){this._verify2(u,g);var m=u.sub(g);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},ne.prototype.isub=function(u,g){this._verify2(u,g);var m=u.isub(g);return m.cmpn(0)<0&&m.iadd(this.m),m},ne.prototype.shl=function(u,g){return this._verify1(u),this.imod(u.ushln(g))},ne.prototype.imul=function(u,g){return this._verify2(u,g),this.imod(u.imul(g))},ne.prototype.mul=function(u,g){return this._verify2(u,g),this.imod(u.mul(g))},ne.prototype.isqr=function(u){return this.imul(u,u.clone())},ne.prototype.sqr=function(u){return this.mul(u,u)},ne.prototype.sqrt=function(u){if(u.isZero())return u.clone();var g=this.m.andln(3);if(n(g%2===1),g===3){var m=this.m.add(new s(1)).iushrn(2);return this.pow(u,m)}for(var E=this.m.subn(1),S=0;!E.isZero()&&E.andln(1)===0;)S++,E.iushrn(1);n(!E.isZero());var T=new s(1).toRed(this),L=T.redNeg(),_=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new s(2*d*d).toRed(this);this.pow(d,_).cmp(L)!==0;)d.redIAdd(L);for(var R=this.pow(d,E),Y=this.pow(u,E.addn(1).iushrn(1)),X=this.pow(u,E),k=S;X.cmp(T)!==0;){for(var B=X,V=0;B.cmp(T)!==0;V++)B=B.redSqr();n(V=0;S--){for(var R=g.words[S],Y=d-1;Y>=0;Y--){var X=R>>Y&1;if(T!==E[0]&&(T=this.sqr(T)),X===0&&L===0){_=0;continue}L<<=1,L|=X,_++,!(_!==m&&(S!==0||Y!==0))&&(T=this.mul(T,E[L]),_=0,L=0)}d=26}return T},ne.prototype.convertTo=function(u){var g=u.umod(this.m);return g===u?g.clone():g},ne.prototype.convertFrom=function(u){var g=u.clone();return g.red=null,g},s.mont=function(u){return new oe(u)};function oe(w){ne.call(this,w),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(oe,ne),oe.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},oe.prototype.convertFrom=function(u){var g=this.imod(u.mul(this.rinv));return g.red=null,g},oe.prototype.imul=function(u,g){if(u.isZero()||g.isZero())return u.words[0]=0,u.length=1,u;var m=u.imul(g),E=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=m.isub(E).iushrn(this.shift),T=S;return S.cmp(this.m)>=0?T=S.isub(this.m):S.cmpn(0)<0&&(T=S.iadd(this.m)),T._forceRed(this)},oe.prototype.mul=function(u,g){if(u.isZero()||g.isZero())return new s(0)._forceRed(this);var m=u.mul(g),E=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=m.isub(E).iushrn(this.shift),T=S;return S.cmp(this.m)>=0?T=S.isub(this.m):S.cmpn(0)<0&&(T=S.iadd(this.m)),T._forceRed(this)},oe.prototype.invm=function(u){var g=this.imod(u._invmp(this.m).mul(this.r2));return g._forceRed(this)}})(t,te)})(Lu);var ao=Lu.exports,yi={};Object.defineProperty(yi,"__esModule",{value:!0});yi.EVENTS=void 0;yi.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"};var Yi={},uh={},Nr={},ch=zi;zi.default=zi;zi.stable=hh;zi.stableStringify=hh;var Ws="[...]",lh="[Circular]",gn=[],ln=[];function fh(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function zi(t,e,r,n){typeof n>"u"&&(n=fh()),ou(t,"",0,[],void 0,0,n);var i;try{ln.length===0?i=JSON.stringify(t,e,r):i=JSON.stringify(t,dh(e),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;gn.length!==0;){var s=gn.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function Zn(t,e,r,n){var i=Object.getOwnPropertyDescriptor(n,r);i.get!==void 0?i.configurable?(Object.defineProperty(n,r,{value:t}),gn.push([n,r,e,i])):ln.push([e,r,t]):(n[r]=t,gn.push([n,r,e]))}function ou(t,e,r,n,i,s,o){s+=1;var a;if(typeof t=="object"&&t!==null){for(a=0;ao.depthLimit){Zn(Ws,t,e,i);return}if(typeof o.edgesLimit<"u"&&r+1>o.edgesLimit){Zn(Ws,t,e,i);return}if(n.push(t),Array.isArray(t))for(a=0;ae?1:0}function hh(t,e,r,n){typeof n>"u"&&(n=fh());var i=au(t,"",0,[],void 0,0,n)||t,s;try{ln.length===0?s=JSON.stringify(i,e,r):s=JSON.stringify(i,dh(e),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;gn.length!==0;){var o=gn.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return s}function au(t,e,r,n,i,s,o){s+=1;var a;if(typeof t=="object"&&t!==null){for(a=0;ao.depthLimit){Zn(Ws,t,e,i);return}if(typeof o.edgesLimit<"u"&&r+1>o.edgesLimit){Zn(Ws,t,e,i);return}if(n.push(t),Array.isArray(t))for(a=0;a0)for(var n=0;n=1e3&&t<=4999}function Z0(t,e){if(e!=="[Circular]")return e}var Pu={},Lr={};Object.defineProperty(Lr,"__esModule",{value:!0});Lr.errorValues=Lr.errorCodes=void 0;Lr.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};Lr.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.serializeError=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const e=Lr,r=Nr,n=e.errorCodes.rpc.internal,i="Unspecified error message. This is a bug, please report it.",s={code:n,message:o(n)};t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function o(v,A=i){if(Number.isInteger(v)){const O=v.toString();if(y(e.errorValues,O))return e.errorValues[O].message;if(l(v))return t.JSON_RPC_SERVER_ERROR_MESSAGE}return A}t.getMessageFromCode=o;function a(v){if(!Number.isInteger(v))return!1;const A=v.toString();return!!(e.errorValues[A]||l(v))}t.isValidCode=a;function c(v,{fallbackError:A=s,shouldIncludeStack:O=!1}={}){var j,F;if(!A||!Number.isInteger(A.code)||typeof A.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(v instanceof r.EthereumRpcError)return v.serialize();const I={};if(v&&typeof v=="object"&&!Array.isArray(v)&&y(v,"code")&&a(v.code)){const D=v;I.code=D.code,D.message&&typeof D.message=="string"?(I.message=D.message,y(D,"data")&&(I.data=D.data)):(I.message=o(I.code),I.data={originalError:p(v)})}else{I.code=A.code;const D=(j=v)===null||j===void 0?void 0:j.message;I.message=D&&typeof D=="string"?D:A.message,I.data={originalError:p(v)}}const N=(F=v)===null||F===void 0?void 0:F.stack;return O&&v&&N&&typeof N=="string"&&(I.stack=N),I}t.serializeError=c;function l(v){return v>=-32099&&v<=-32e3}function p(v){return v&&typeof v=="object"&&!Array.isArray(v)?Object.assign({},v):v}function y(v,A){return Object.prototype.hasOwnProperty.call(v,A)}})(Pu);var uo={};Object.defineProperty(uo,"__esModule",{value:!0});uo.ethErrors=void 0;const Bu=Nr,gh=Pu,mt=Lr;uo.ethErrors={rpc:{parse:t=>Bt(mt.errorCodes.rpc.parse,t),invalidRequest:t=>Bt(mt.errorCodes.rpc.invalidRequest,t),invalidParams:t=>Bt(mt.errorCodes.rpc.invalidParams,t),methodNotFound:t=>Bt(mt.errorCodes.rpc.methodNotFound,t),internal:t=>Bt(mt.errorCodes.rpc.internal,t),server:t=>{if(!t||typeof t!="object"||Array.isArray(t))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Bt(e,t)},invalidInput:t=>Bt(mt.errorCodes.rpc.invalidInput,t),resourceNotFound:t=>Bt(mt.errorCodes.rpc.resourceNotFound,t),resourceUnavailable:t=>Bt(mt.errorCodes.rpc.resourceUnavailable,t),transactionRejected:t=>Bt(mt.errorCodes.rpc.transactionRejected,t),methodNotSupported:t=>Bt(mt.errorCodes.rpc.methodNotSupported,t),limitExceeded:t=>Bt(mt.errorCodes.rpc.limitExceeded,t)},provider:{userRejectedRequest:t=>Ai(mt.errorCodes.provider.userRejectedRequest,t),unauthorized:t=>Ai(mt.errorCodes.provider.unauthorized,t),unsupportedMethod:t=>Ai(mt.errorCodes.provider.unsupportedMethod,t),disconnected:t=>Ai(mt.errorCodes.provider.disconnected,t),chainDisconnected:t=>Ai(mt.errorCodes.provider.chainDisconnected,t),custom:t=>{if(!t||typeof t!="object"||Array.isArray(t))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:e,message:r,data:n}=t;if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string');return new Bu.EthereumProviderError(e,r,n)}}};function Bt(t,e){const[r,n]=yh(e);return new Bu.EthereumRpcError(t,r||gh.getMessageFromCode(t),n)}function Ai(t,e){const[r,n]=yh(e);return new Bu.EthereumProviderError(t,r||gh.getMessageFromCode(t),n)}function yh(t){if(t){if(typeof t=="string")return[t];if(typeof t=="object"&&!Array.isArray(t)){const{message:e,data:r}=t;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,r]}}return[]}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.getMessageFromCode=t.serializeError=t.EthereumProviderError=t.EthereumRpcError=t.ethErrors=t.errorCodes=void 0;const e=Nr;Object.defineProperty(t,"EthereumRpcError",{enumerable:!0,get:function(){return e.EthereumRpcError}}),Object.defineProperty(t,"EthereumProviderError",{enumerable:!0,get:function(){return e.EthereumProviderError}});const r=Pu;Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return r.serializeError}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return r.getMessageFromCode}});const n=uo;Object.defineProperty(t,"ethErrors",{enumerable:!0,get:function(){return n.ethErrors}});const i=Lr;Object.defineProperty(t,"errorCodes",{enumerable:!0,get:function(){return i.errorCodes}})})(uh);var Ne={},co={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Web3Method=void 0,function(e){e.requestEthereumAccounts="requestEthereumAccounts",e.signEthereumMessage="signEthereumMessage",e.signEthereumTransaction="signEthereumTransaction",e.submitEthereumTransaction="submitEthereumTransaction",e.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",e.scanQRCode="scanQRCode",e.generic="generic",e.childRequestEthereumAccounts="childRequestEthereumAccounts",e.addEthereumChain="addEthereumChain",e.switchEthereumChain="switchEthereumChain",e.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",e.watchAsset="watchAsset",e.selectProvider="selectProvider"}(t.Web3Method||(t.Web3Method={}))})(co);Object.defineProperty(Ne,"__esModule",{value:!0});Ne.EthereumAddressFromSignedMessageResponse=Ne.SubmitEthereumTransactionResponse=Ne.SignEthereumTransactionResponse=Ne.SignEthereumMessageResponse=Ne.isRequestEthereumAccountsResponse=Ne.SelectProviderResponse=Ne.WatchAssetReponse=Ne.RequestEthereumAccountsResponse=Ne.SwitchEthereumChainResponse=Ne.AddEthereumChainResponse=Ne.isErrorResponse=void 0;const yr=co;function Q0(t){var e,r;return((e=t)===null||e===void 0?void 0:e.method)!==void 0&&((r=t)===null||r===void 0?void 0:r.errorMessage)!==void 0}Ne.isErrorResponse=Q0;function Y0(t){return{method:yr.Web3Method.addEthereumChain,result:t}}Ne.AddEthereumChainResponse=Y0;function K0(t){return{method:yr.Web3Method.switchEthereumChain,result:t}}Ne.SwitchEthereumChainResponse=K0;function X0(t){return{method:yr.Web3Method.requestEthereumAccounts,result:t}}Ne.RequestEthereumAccountsResponse=X0;function eg(t){return{method:yr.Web3Method.watchAsset,result:t}}Ne.WatchAssetReponse=eg;function tg(t){return{method:yr.Web3Method.selectProvider,result:t}}Ne.SelectProviderResponse=tg;function rg(t){return t&&t.method===yr.Web3Method.requestEthereumAccounts}Ne.isRequestEthereumAccountsResponse=rg;function ng(t){return{method:yr.Web3Method.signEthereumMessage,result:t}}Ne.SignEthereumMessageResponse=ng;function ig(t){return{method:yr.Web3Method.signEthereumTransaction,result:t}}Ne.SignEthereumTransactionResponse=ig;function sg(t){return{method:yr.Web3Method.submitEthereumTransaction,result:t}}Ne.SubmitEthereumTransactionResponse=sg;function og(t){return{method:yr.Web3Method.ethereumAddressFromSignedMessage,result:t}}Ne.EthereumAddressFromSignedMessageResponse=og;var bi={};Object.defineProperty(bi,"__esModule",{value:!0});bi.LIB_VERSION=void 0;bi.LIB_VERSION="3.7.2";(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCode=t.serializeError=t.standardErrors=t.standardErrorMessage=t.standardErrorCodes=void 0;const e=uh,r=Ne,n=bi;t.standardErrorCodes=Object.freeze(Object.assign(Object.assign({},e.errorCodes),{provider:Object.freeze(Object.assign(Object.assign({},e.errorCodes.provider),{unsupportedChain:4902}))}));function i(p){return p!==void 0?(0,e.getMessageFromCode)(p):"Unknown error"}t.standardErrorMessage=i,t.standardErrors=Object.freeze(Object.assign(Object.assign({},e.ethErrors),{provider:Object.freeze(Object.assign(Object.assign({},e.ethErrors.provider),{unsupportedChain:(p="")=>e.ethErrors.provider.custom({code:t.standardErrorCodes.provider.unsupportedChain,message:`Unrecognized chain ID ${p}. Try adding the chain using wallet_addEthereumChain first.`})}))}));function s(p,y){const v=(0,e.serializeError)(o(p),{shouldIncludeStack:!0}),A=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");A.searchParams.set("version",n.LIB_VERSION),A.searchParams.set("code",v.code.toString());const O=a(v.data,y);return O&&A.searchParams.set("method",O),A.searchParams.set("message",v.message),Object.assign(Object.assign({},v),{docUrl:A.href})}t.serializeError=s;function o(p){return typeof p=="string"?{message:p,code:t.standardErrorCodes.rpc.internal}:(0,r.isErrorResponse)(p)?Object.assign(Object.assign({},p),{message:p.errorMessage,code:p.errorCode,data:{method:p.method,result:p.result}}):p}function a(p,y){var v;const A=(v=p)===null||v===void 0?void 0:v.method;if(A)return A;if(y!==void 0)return typeof y=="string"?y:Array.isArray(y)?y.length>0?y[0].method:void 0:y.method}function c(p){var y;if(typeof p=="number")return p;if(l(p))return(y=p.code)!==null&&y!==void 0?y:p.errorCode}t.getErrorCode=c;function l(p){return typeof p=="object"&&p!==null&&(typeof p.code=="number"||typeof p.errorCode=="number")}})(Yi);var vi={},bh={exports:{}},uu={exports:{}};typeof Object.create=="function"?uu.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:uu.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}};var er=uu.exports,cu={exports:{}},Ki={},lo={};lo.byteLength=cg;lo.toByteArray=fg;lo.fromByteArray=pg;var lr=[],jt=[],ag=typeof Uint8Array<"u"?Uint8Array:Array,ya="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Dn=0,ug=ya.length;Dn0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function cg(t){var e=vh(t),r=e[0],n=e[1];return(r+n)*3/4-n}function lg(t,e,r){return(e+r)*3/4-r}function fg(t){var e,r=vh(t),n=r[0],i=r[1],s=new ag(lg(t,n,i)),o=0,a=i>0?n-4:n,c;for(c=0;c>16&255,s[o++]=e>>8&255,s[o++]=e&255;return i===2&&(e=jt[t.charCodeAt(c)]<<2|jt[t.charCodeAt(c+1)]>>4,s[o++]=e&255),i===1&&(e=jt[t.charCodeAt(c)]<<10|jt[t.charCodeAt(c+1)]<<4|jt[t.charCodeAt(c+2)]>>2,s[o++]=e>>8&255,s[o++]=e&255),s}function hg(t){return lr[t>>18&63]+lr[t>>12&63]+lr[t>>6&63]+lr[t&63]}function dg(t,e,r){for(var n,i=[],s=e;sa?a:o+s));return n===1?(e=t[r-1],i.push(lr[e>>2]+lr[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(lr[e>>10]+lr[e>>4&63]+lr[e<<2&63]+"=")),i.join("")}var Du={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */Du.read=function(t,e,r,n,i){var s,o,a=i*8-n-1,c=(1<>1,p=-7,y=r?i-1:0,v=r?-1:1,A=t[e+y];for(y+=v,s=A&(1<<-p)-1,A>>=-p,p+=a;p>0;s=s*256+t[e+y],y+=v,p-=8);for(o=s&(1<<-p)-1,s>>=-p,p+=n;p>0;o=o*256+t[e+y],y+=v,p-=8);if(s===0)s=1-l;else{if(s===c)return o?NaN:(A?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-l}return(A?-1:1)*o*Math.pow(2,s-n)};Du.write=function(t,e,r,n,i,s){var o,a,c,l=s*8-i-1,p=(1<>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=n?0:s-1,O=n?1:-1,j=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=p):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+y>=1?e+=v/c:e+=v*Math.pow(2,1-y),e*c>=2&&(o++,c/=2),o+y>=p?(a=0,o=p):o+y>=1?(a=(e*c-1)*Math.pow(2,i),o=o+y):(a=e*Math.pow(2,y-1)*Math.pow(2,i),o=0));i>=8;t[r+A]=a&255,A+=O,a/=256,i-=8);for(o=o<0;t[r+A]=o&255,A+=O,o/=256,l-=8);t[r+A-O]|=j*128};/*! +import{i as ku,aB as no,p as te,f as wn,aC as G,q as B0}from"./index-Mh1_DVck.js";import{p as D0,h as $0}from"./hooks.module-o1hAt1ko.js";function F0(t,e){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Nu={},Vi={},io={};Object.defineProperty(io,"__esModule",{value:!0});io.walletLogo=void 0;const j0=(t,e)=>{let r;switch(t){case"standard":return r=e,`data:image/svg+xml,%3Csvg width='${e}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return r=e,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' height='${r}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return r=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return r=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return r=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return r=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;default:return r=e,`data:image/svg+xml,%3Csvg width='${e}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `}};io.walletLogo=j0;var so={};Object.defineProperty(so,"__esModule",{value:!0});so.LINK_API_URL=void 0;so.LINK_API_URL="https://www.walletlink.org";var oo={};Object.defineProperty(oo,"__esModule",{value:!0});oo.ScopedLocalStorage=void 0;class U0{constructor(e){this.scope=e}setItem(e,r){localStorage.setItem(this.scopedKey(e),r)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){const e=this.scopedKey(""),r=[];for(let n=0;nlocalStorage.removeItem(n))}scopedKey(e){return`${this.scope}:${e}`}}oo.ScopedLocalStorage=U0;var ti={},_n={};Object.defineProperty(_n,"__esModule",{value:!0});const W0=ku;function zc(t,e,r){try{Reflect.apply(t,e,r)}catch(n){setTimeout(()=>{throw n})}}function H0(t){const e=t.length,r=new Array(e);for(let n=0;n0&&([o]=r),o instanceof Error)throw o;const a=new Error(`Unhandled error.${o?` (${o.message})`:""}`);throw a.context=o,a}const s=i[e];if(s===void 0)return!1;if(typeof s=="function")zc(s,this,r);else{const o=s.length,a=H0(s);for(let c=0;c0?u:g},s.min=function(u,g){return u.cmp(g)<0?u:g},s.prototype._init=function(u,g,m){if(typeof u=="number")return this._initNumber(u,g,m);if(typeof u=="object")return this._initArray(u,g,m);g==="hex"&&(g=16),n(g===(g|0)&&g>=2&&g<=36),u=u.toString().replace(/\s+/g,"");var E=0;u[0]==="-"&&(E++,this.negative=1),E=0;E-=3)T=u[E]|u[E-1]<<8|u[E-2]<<16,this.words[S]|=T<>>26-L&67108863,L+=24,L>=26&&(L-=26,S++);else if(m==="le")for(E=0,S=0;E>>26-L&67108863,L+=24,L>=26&&(L-=26,S++);return this._strip()};function a(w,u){var g=w.charCodeAt(u);if(g>=48&&g<=57)return g-48;if(g>=65&&g<=70)return g-55;if(g>=97&&g<=102)return g-87;n(!1,"Invalid character in "+w)}function c(w,u,g){var m=a(w,g);return g-1>=u&&(m|=a(w,g-1)<<4),m}s.prototype._parseHex=function(u,g,m){this.length=Math.ceil((u.length-g)/6),this.words=new Array(this.length);for(var E=0;E=g;E-=2)L=c(u,g,E)<=18?(S-=18,T+=1,this.words[T]|=L>>>26):S+=8;else{var _=u.length-g;for(E=_%2===0?g+1:g;E=18?(S-=18,T+=1,this.words[T]|=L>>>26):S+=8}this._strip()};function l(w,u,g,m){for(var E=0,S=0,T=Math.min(w.length,g),L=u;L=49?S=_-49+10:_>=17?S=_-17+10:S=_,n(_>=0&&S1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=y}catch{s.prototype.inspect=y}else s.prototype.inspect=y;function y(){return(this.red?""}var v=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],O=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(u,g){u=u||10,g=g|0||1;var m;if(u===16||u==="hex"){m="";for(var E=0,S=0,T=0;T>>24-E&16777215,E+=2,E>=26&&(E-=26,T--),S!==0||T!==this.length-1?m=v[6-_.length]+_+m:m=_+m}for(S!==0&&(m=S.toString(16)+m);m.length%g!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(u===(u|0)&&u>=2&&u<=36){var d=A[u],R=O[u];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var X=Y.modrn(R).toString(u);Y=Y.idivn(R),Y.isZero()?m=X+m:m=v[d-X.length]+X+m}for(this.isZero()&&(m="0"+m);m.length%g!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(u,g){return this.toArrayLike(o,u,g)}),s.prototype.toArray=function(u,g){return this.toArrayLike(Array,u,g)};var j=function(u,g){return u.allocUnsafe?u.allocUnsafe(g):new u(g)};s.prototype.toArrayLike=function(u,g,m){this._strip();var E=this.byteLength(),S=m||Math.max(1,E);n(E<=S,"byte array longer than desired length"),n(S>0,"Requested array length <= 0");var T=j(u,S),L=g==="le"?"LE":"BE";return this["_toArrayLike"+L](T,E),T},s.prototype._toArrayLikeLE=function(u,g){for(var m=0,E=0,S=0,T=0;S>8&255),m>16&255),T===6?(m>24&255),E=0,T=0):(E=L>>>24,T+=2)}if(m=0&&(u[m--]=L>>8&255),m>=0&&(u[m--]=L>>16&255),T===6?(m>=0&&(u[m--]=L>>24&255),E=0,T=0):(E=L>>>24,T+=2)}if(m>=0)for(u[m--]=E;m>=0;)u[m--]=0},Math.clz32?s.prototype._countBits=function(u){return 32-Math.clz32(u)}:s.prototype._countBits=function(u){var g=u,m=0;return g>=4096&&(m+=13,g>>>=13),g>=64&&(m+=7,g>>>=7),g>=8&&(m+=4,g>>>=4),g>=2&&(m+=2,g>>>=2),m+g},s.prototype._zeroBits=function(u){if(u===0)return 26;var g=u,m=0;return g&8191||(m+=13,g>>>=13),g&127||(m+=7,g>>>=7),g&15||(m+=4,g>>>=4),g&3||(m+=2,g>>>=2),g&1||m++,m},s.prototype.bitLength=function(){var u=this.words[this.length-1],g=this._countBits(u);return(this.length-1)*26+g};function F(w){for(var u=new Array(w.bitLength()),g=0;g>>E&1}return u}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,g=0;gu.length?this.clone().ior(u):u.clone().ior(this)},s.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},s.prototype.iuand=function(u){var g;this.length>u.length?g=u:g=this;for(var m=0;mu.length?this.clone().iand(u):u.clone().iand(this)},s.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},s.prototype.iuxor=function(u){var g,m;this.length>u.length?(g=this,m=u):(g=u,m=this);for(var E=0;Eu.length?this.clone().ixor(u):u.clone().ixor(this)},s.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},s.prototype.inotn=function(u){n(typeof u=="number"&&u>=0);var g=Math.ceil(u/26)|0,m=u%26;this._expand(g),m>0&&g--;for(var E=0;E0&&(this.words[E]=~this.words[E]&67108863>>26-m),this._strip()},s.prototype.notn=function(u){return this.clone().inotn(u)},s.prototype.setn=function(u,g){n(typeof u=="number"&&u>=0);var m=u/26|0,E=u%26;return this._expand(m+1),g?this.words[m]=this.words[m]|1<u.length?(m=this,E=u):(m=u,E=this);for(var S=0,T=0;T>>26;for(;S!==0&&T>>26;if(this.length=m.length,S!==0)this.words[this.length]=S,this.length++;else if(m!==this)for(;Tu.length?this.clone().iadd(u):u.clone().iadd(this)},s.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var g=this.iadd(u);return u.negative=1,g._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var m=this.cmp(u);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var E,S;m>0?(E=this,S=u):(E=u,S=this);for(var T=0,L=0;L>26,this.words[L]=g&67108863;for(;T!==0&&L>26,this.words[L]=g&67108863;if(T===0&&L>>26,Y=_&67108863,X=Math.min(d,u.length-1),k=Math.max(0,d-w.length+1);k<=X;k++){var B=d-k|0;E=w.words[B]|0,S=u.words[k]|0,T=E*S+Y,R+=T/67108864|0,Y=T&67108863}g.words[d]=Y|0,_=R|0}return _!==0?g.words[d]=_|0:g.length--,g._strip()}var N=function(u,g,m){var E=u.words,S=g.words,T=m.words,L=0,_,d,R,Y=E[0]|0,X=Y&8191,k=Y>>>13,B=E[1]|0,V=B&8191,Q=B>>>13,ge=E[2]|0,M=ge&8191,C=ge>>>13,q=E[3]|0,J=q&8191,fe=q>>>13,ye=E[4]|0,ae=ye&8191,Se=ye>>>13,Pt=E[5]|0,Ae=Pt&8191,Ie=Pt>>>13,ot=E[6]|0,Me=ot&8191,Te=ot>>>13,ct=E[7]|0,Ce=ct&8191,b=ct>>>13,f=E[8]|0,h=f&8191,x=f>>>13,P=E[9]|0,$=P&8191,W=P>>>13,de=S[0]|0,he=de&8191,ce=de>>>13,Oe=S[1]|0,ue=Oe&8191,Le=Oe>>>13,An=S[2]|0,Pe=An&8191,Be=An>>>13,Tn=S[3]|0,De=Tn&8191,$e=Tn>>>13,On=S[4]|0,Fe=On&8191,je=On>>>13,kn=S[5]|0,Ue=kn&8191,We=kn>>>13,Nn=S[6]|0,He=Nn&8191,Ve=Nn>>>13,Ln=S[7]|0,ze=Ln&8191,qe=Ln>>>13,Pn=S[8]|0,Ge=Pn&8191,Je=Pn>>>13,Bn=S[9]|0,Ze=Bn&8191,Qe=Bn>>>13;m.negative=u.negative^g.negative,m.length=19,_=Math.imul(X,he),d=Math.imul(X,ce),d=d+Math.imul(k,he)|0,R=Math.imul(k,ce);var Wr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,_=Math.imul(V,he),d=Math.imul(V,ce),d=d+Math.imul(Q,he)|0,R=Math.imul(Q,ce),_=_+Math.imul(X,ue)|0,d=d+Math.imul(X,Le)|0,d=d+Math.imul(k,ue)|0,R=R+Math.imul(k,Le)|0;var Hr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,_=Math.imul(M,he),d=Math.imul(M,ce),d=d+Math.imul(C,he)|0,R=Math.imul(C,ce),_=_+Math.imul(V,ue)|0,d=d+Math.imul(V,Le)|0,d=d+Math.imul(Q,ue)|0,R=R+Math.imul(Q,Le)|0,_=_+Math.imul(X,Pe)|0,d=d+Math.imul(X,Be)|0,d=d+Math.imul(k,Pe)|0,R=R+Math.imul(k,Be)|0;var Vr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,_=Math.imul(J,he),d=Math.imul(J,ce),d=d+Math.imul(fe,he)|0,R=Math.imul(fe,ce),_=_+Math.imul(M,ue)|0,d=d+Math.imul(M,Le)|0,d=d+Math.imul(C,ue)|0,R=R+Math.imul(C,Le)|0,_=_+Math.imul(V,Pe)|0,d=d+Math.imul(V,Be)|0,d=d+Math.imul(Q,Pe)|0,R=R+Math.imul(Q,Be)|0,_=_+Math.imul(X,De)|0,d=d+Math.imul(X,$e)|0,d=d+Math.imul(k,De)|0,R=R+Math.imul(k,$e)|0;var zr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(zr>>>26)|0,zr&=67108863,_=Math.imul(ae,he),d=Math.imul(ae,ce),d=d+Math.imul(Se,he)|0,R=Math.imul(Se,ce),_=_+Math.imul(J,ue)|0,d=d+Math.imul(J,Le)|0,d=d+Math.imul(fe,ue)|0,R=R+Math.imul(fe,Le)|0,_=_+Math.imul(M,Pe)|0,d=d+Math.imul(M,Be)|0,d=d+Math.imul(C,Pe)|0,R=R+Math.imul(C,Be)|0,_=_+Math.imul(V,De)|0,d=d+Math.imul(V,$e)|0,d=d+Math.imul(Q,De)|0,R=R+Math.imul(Q,$e)|0,_=_+Math.imul(X,Fe)|0,d=d+Math.imul(X,je)|0,d=d+Math.imul(k,Fe)|0,R=R+Math.imul(k,je)|0;var qr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(qr>>>26)|0,qr&=67108863,_=Math.imul(Ae,he),d=Math.imul(Ae,ce),d=d+Math.imul(Ie,he)|0,R=Math.imul(Ie,ce),_=_+Math.imul(ae,ue)|0,d=d+Math.imul(ae,Le)|0,d=d+Math.imul(Se,ue)|0,R=R+Math.imul(Se,Le)|0,_=_+Math.imul(J,Pe)|0,d=d+Math.imul(J,Be)|0,d=d+Math.imul(fe,Pe)|0,R=R+Math.imul(fe,Be)|0,_=_+Math.imul(M,De)|0,d=d+Math.imul(M,$e)|0,d=d+Math.imul(C,De)|0,R=R+Math.imul(C,$e)|0,_=_+Math.imul(V,Fe)|0,d=d+Math.imul(V,je)|0,d=d+Math.imul(Q,Fe)|0,R=R+Math.imul(Q,je)|0,_=_+Math.imul(X,Ue)|0,d=d+Math.imul(X,We)|0,d=d+Math.imul(k,Ue)|0,R=R+Math.imul(k,We)|0;var Gr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,_=Math.imul(Me,he),d=Math.imul(Me,ce),d=d+Math.imul(Te,he)|0,R=Math.imul(Te,ce),_=_+Math.imul(Ae,ue)|0,d=d+Math.imul(Ae,Le)|0,d=d+Math.imul(Ie,ue)|0,R=R+Math.imul(Ie,Le)|0,_=_+Math.imul(ae,Pe)|0,d=d+Math.imul(ae,Be)|0,d=d+Math.imul(Se,Pe)|0,R=R+Math.imul(Se,Be)|0,_=_+Math.imul(J,De)|0,d=d+Math.imul(J,$e)|0,d=d+Math.imul(fe,De)|0,R=R+Math.imul(fe,$e)|0,_=_+Math.imul(M,Fe)|0,d=d+Math.imul(M,je)|0,d=d+Math.imul(C,Fe)|0,R=R+Math.imul(C,je)|0,_=_+Math.imul(V,Ue)|0,d=d+Math.imul(V,We)|0,d=d+Math.imul(Q,Ue)|0,R=R+Math.imul(Q,We)|0,_=_+Math.imul(X,He)|0,d=d+Math.imul(X,Ve)|0,d=d+Math.imul(k,He)|0,R=R+Math.imul(k,Ve)|0;var Jr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Jr>>>26)|0,Jr&=67108863,_=Math.imul(Ce,he),d=Math.imul(Ce,ce),d=d+Math.imul(b,he)|0,R=Math.imul(b,ce),_=_+Math.imul(Me,ue)|0,d=d+Math.imul(Me,Le)|0,d=d+Math.imul(Te,ue)|0,R=R+Math.imul(Te,Le)|0,_=_+Math.imul(Ae,Pe)|0,d=d+Math.imul(Ae,Be)|0,d=d+Math.imul(Ie,Pe)|0,R=R+Math.imul(Ie,Be)|0,_=_+Math.imul(ae,De)|0,d=d+Math.imul(ae,$e)|0,d=d+Math.imul(Se,De)|0,R=R+Math.imul(Se,$e)|0,_=_+Math.imul(J,Fe)|0,d=d+Math.imul(J,je)|0,d=d+Math.imul(fe,Fe)|0,R=R+Math.imul(fe,je)|0,_=_+Math.imul(M,Ue)|0,d=d+Math.imul(M,We)|0,d=d+Math.imul(C,Ue)|0,R=R+Math.imul(C,We)|0,_=_+Math.imul(V,He)|0,d=d+Math.imul(V,Ve)|0,d=d+Math.imul(Q,He)|0,R=R+Math.imul(Q,Ve)|0,_=_+Math.imul(X,ze)|0,d=d+Math.imul(X,qe)|0,d=d+Math.imul(k,ze)|0,R=R+Math.imul(k,qe)|0;var Zr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,_=Math.imul(h,he),d=Math.imul(h,ce),d=d+Math.imul(x,he)|0,R=Math.imul(x,ce),_=_+Math.imul(Ce,ue)|0,d=d+Math.imul(Ce,Le)|0,d=d+Math.imul(b,ue)|0,R=R+Math.imul(b,Le)|0,_=_+Math.imul(Me,Pe)|0,d=d+Math.imul(Me,Be)|0,d=d+Math.imul(Te,Pe)|0,R=R+Math.imul(Te,Be)|0,_=_+Math.imul(Ae,De)|0,d=d+Math.imul(Ae,$e)|0,d=d+Math.imul(Ie,De)|0,R=R+Math.imul(Ie,$e)|0,_=_+Math.imul(ae,Fe)|0,d=d+Math.imul(ae,je)|0,d=d+Math.imul(Se,Fe)|0,R=R+Math.imul(Se,je)|0,_=_+Math.imul(J,Ue)|0,d=d+Math.imul(J,We)|0,d=d+Math.imul(fe,Ue)|0,R=R+Math.imul(fe,We)|0,_=_+Math.imul(M,He)|0,d=d+Math.imul(M,Ve)|0,d=d+Math.imul(C,He)|0,R=R+Math.imul(C,Ve)|0,_=_+Math.imul(V,ze)|0,d=d+Math.imul(V,qe)|0,d=d+Math.imul(Q,ze)|0,R=R+Math.imul(Q,qe)|0,_=_+Math.imul(X,Ge)|0,d=d+Math.imul(X,Je)|0,d=d+Math.imul(k,Ge)|0,R=R+Math.imul(k,Je)|0;var Qr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,_=Math.imul($,he),d=Math.imul($,ce),d=d+Math.imul(W,he)|0,R=Math.imul(W,ce),_=_+Math.imul(h,ue)|0,d=d+Math.imul(h,Le)|0,d=d+Math.imul(x,ue)|0,R=R+Math.imul(x,Le)|0,_=_+Math.imul(Ce,Pe)|0,d=d+Math.imul(Ce,Be)|0,d=d+Math.imul(b,Pe)|0,R=R+Math.imul(b,Be)|0,_=_+Math.imul(Me,De)|0,d=d+Math.imul(Me,$e)|0,d=d+Math.imul(Te,De)|0,R=R+Math.imul(Te,$e)|0,_=_+Math.imul(Ae,Fe)|0,d=d+Math.imul(Ae,je)|0,d=d+Math.imul(Ie,Fe)|0,R=R+Math.imul(Ie,je)|0,_=_+Math.imul(ae,Ue)|0,d=d+Math.imul(ae,We)|0,d=d+Math.imul(Se,Ue)|0,R=R+Math.imul(Se,We)|0,_=_+Math.imul(J,He)|0,d=d+Math.imul(J,Ve)|0,d=d+Math.imul(fe,He)|0,R=R+Math.imul(fe,Ve)|0,_=_+Math.imul(M,ze)|0,d=d+Math.imul(M,qe)|0,d=d+Math.imul(C,ze)|0,R=R+Math.imul(C,qe)|0,_=_+Math.imul(V,Ge)|0,d=d+Math.imul(V,Je)|0,d=d+Math.imul(Q,Ge)|0,R=R+Math.imul(Q,Je)|0,_=_+Math.imul(X,Ze)|0,d=d+Math.imul(X,Qe)|0,d=d+Math.imul(k,Ze)|0,R=R+Math.imul(k,Qe)|0;var Yr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,_=Math.imul($,ue),d=Math.imul($,Le),d=d+Math.imul(W,ue)|0,R=Math.imul(W,Le),_=_+Math.imul(h,Pe)|0,d=d+Math.imul(h,Be)|0,d=d+Math.imul(x,Pe)|0,R=R+Math.imul(x,Be)|0,_=_+Math.imul(Ce,De)|0,d=d+Math.imul(Ce,$e)|0,d=d+Math.imul(b,De)|0,R=R+Math.imul(b,$e)|0,_=_+Math.imul(Me,Fe)|0,d=d+Math.imul(Me,je)|0,d=d+Math.imul(Te,Fe)|0,R=R+Math.imul(Te,je)|0,_=_+Math.imul(Ae,Ue)|0,d=d+Math.imul(Ae,We)|0,d=d+Math.imul(Ie,Ue)|0,R=R+Math.imul(Ie,We)|0,_=_+Math.imul(ae,He)|0,d=d+Math.imul(ae,Ve)|0,d=d+Math.imul(Se,He)|0,R=R+Math.imul(Se,Ve)|0,_=_+Math.imul(J,ze)|0,d=d+Math.imul(J,qe)|0,d=d+Math.imul(fe,ze)|0,R=R+Math.imul(fe,qe)|0,_=_+Math.imul(M,Ge)|0,d=d+Math.imul(M,Je)|0,d=d+Math.imul(C,Ge)|0,R=R+Math.imul(C,Je)|0,_=_+Math.imul(V,Ze)|0,d=d+Math.imul(V,Qe)|0,d=d+Math.imul(Q,Ze)|0,R=R+Math.imul(Q,Qe)|0;var Kr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,_=Math.imul($,Pe),d=Math.imul($,Be),d=d+Math.imul(W,Pe)|0,R=Math.imul(W,Be),_=_+Math.imul(h,De)|0,d=d+Math.imul(h,$e)|0,d=d+Math.imul(x,De)|0,R=R+Math.imul(x,$e)|0,_=_+Math.imul(Ce,Fe)|0,d=d+Math.imul(Ce,je)|0,d=d+Math.imul(b,Fe)|0,R=R+Math.imul(b,je)|0,_=_+Math.imul(Me,Ue)|0,d=d+Math.imul(Me,We)|0,d=d+Math.imul(Te,Ue)|0,R=R+Math.imul(Te,We)|0,_=_+Math.imul(Ae,He)|0,d=d+Math.imul(Ae,Ve)|0,d=d+Math.imul(Ie,He)|0,R=R+Math.imul(Ie,Ve)|0,_=_+Math.imul(ae,ze)|0,d=d+Math.imul(ae,qe)|0,d=d+Math.imul(Se,ze)|0,R=R+Math.imul(Se,qe)|0,_=_+Math.imul(J,Ge)|0,d=d+Math.imul(J,Je)|0,d=d+Math.imul(fe,Ge)|0,R=R+Math.imul(fe,Je)|0,_=_+Math.imul(M,Ze)|0,d=d+Math.imul(M,Qe)|0,d=d+Math.imul(C,Ze)|0,R=R+Math.imul(C,Qe)|0;var Xr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,_=Math.imul($,De),d=Math.imul($,$e),d=d+Math.imul(W,De)|0,R=Math.imul(W,$e),_=_+Math.imul(h,Fe)|0,d=d+Math.imul(h,je)|0,d=d+Math.imul(x,Fe)|0,R=R+Math.imul(x,je)|0,_=_+Math.imul(Ce,Ue)|0,d=d+Math.imul(Ce,We)|0,d=d+Math.imul(b,Ue)|0,R=R+Math.imul(b,We)|0,_=_+Math.imul(Me,He)|0,d=d+Math.imul(Me,Ve)|0,d=d+Math.imul(Te,He)|0,R=R+Math.imul(Te,Ve)|0,_=_+Math.imul(Ae,ze)|0,d=d+Math.imul(Ae,qe)|0,d=d+Math.imul(Ie,ze)|0,R=R+Math.imul(Ie,qe)|0,_=_+Math.imul(ae,Ge)|0,d=d+Math.imul(ae,Je)|0,d=d+Math.imul(Se,Ge)|0,R=R+Math.imul(Se,Je)|0,_=_+Math.imul(J,Ze)|0,d=d+Math.imul(J,Qe)|0,d=d+Math.imul(fe,Ze)|0,R=R+Math.imul(fe,Qe)|0;var en=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul($,Fe),d=Math.imul($,je),d=d+Math.imul(W,Fe)|0,R=Math.imul(W,je),_=_+Math.imul(h,Ue)|0,d=d+Math.imul(h,We)|0,d=d+Math.imul(x,Ue)|0,R=R+Math.imul(x,We)|0,_=_+Math.imul(Ce,He)|0,d=d+Math.imul(Ce,Ve)|0,d=d+Math.imul(b,He)|0,R=R+Math.imul(b,Ve)|0,_=_+Math.imul(Me,ze)|0,d=d+Math.imul(Me,qe)|0,d=d+Math.imul(Te,ze)|0,R=R+Math.imul(Te,qe)|0,_=_+Math.imul(Ae,Ge)|0,d=d+Math.imul(Ae,Je)|0,d=d+Math.imul(Ie,Ge)|0,R=R+Math.imul(Ie,Je)|0,_=_+Math.imul(ae,Ze)|0,d=d+Math.imul(ae,Qe)|0,d=d+Math.imul(Se,Ze)|0,R=R+Math.imul(Se,Qe)|0;var tn=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(tn>>>26)|0,tn&=67108863,_=Math.imul($,Ue),d=Math.imul($,We),d=d+Math.imul(W,Ue)|0,R=Math.imul(W,We),_=_+Math.imul(h,He)|0,d=d+Math.imul(h,Ve)|0,d=d+Math.imul(x,He)|0,R=R+Math.imul(x,Ve)|0,_=_+Math.imul(Ce,ze)|0,d=d+Math.imul(Ce,qe)|0,d=d+Math.imul(b,ze)|0,R=R+Math.imul(b,qe)|0,_=_+Math.imul(Me,Ge)|0,d=d+Math.imul(Me,Je)|0,d=d+Math.imul(Te,Ge)|0,R=R+Math.imul(Te,Je)|0,_=_+Math.imul(Ae,Ze)|0,d=d+Math.imul(Ae,Qe)|0,d=d+Math.imul(Ie,Ze)|0,R=R+Math.imul(Ie,Qe)|0;var fa=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(fa>>>26)|0,fa&=67108863,_=Math.imul($,He),d=Math.imul($,Ve),d=d+Math.imul(W,He)|0,R=Math.imul(W,Ve),_=_+Math.imul(h,ze)|0,d=d+Math.imul(h,qe)|0,d=d+Math.imul(x,ze)|0,R=R+Math.imul(x,qe)|0,_=_+Math.imul(Ce,Ge)|0,d=d+Math.imul(Ce,Je)|0,d=d+Math.imul(b,Ge)|0,R=R+Math.imul(b,Je)|0,_=_+Math.imul(Me,Ze)|0,d=d+Math.imul(Me,Qe)|0,d=d+Math.imul(Te,Ze)|0,R=R+Math.imul(Te,Qe)|0;var ha=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(ha>>>26)|0,ha&=67108863,_=Math.imul($,ze),d=Math.imul($,qe),d=d+Math.imul(W,ze)|0,R=Math.imul(W,qe),_=_+Math.imul(h,Ge)|0,d=d+Math.imul(h,Je)|0,d=d+Math.imul(x,Ge)|0,R=R+Math.imul(x,Je)|0,_=_+Math.imul(Ce,Ze)|0,d=d+Math.imul(Ce,Qe)|0,d=d+Math.imul(b,Ze)|0,R=R+Math.imul(b,Qe)|0;var da=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(da>>>26)|0,da&=67108863,_=Math.imul($,Ge),d=Math.imul($,Je),d=d+Math.imul(W,Ge)|0,R=Math.imul(W,Je),_=_+Math.imul(h,Ze)|0,d=d+Math.imul(h,Qe)|0,d=d+Math.imul(x,Ze)|0,R=R+Math.imul(x,Qe)|0;var pa=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(pa>>>26)|0,pa&=67108863,_=Math.imul($,Ze),d=Math.imul($,Qe),d=d+Math.imul(W,Ze)|0,R=Math.imul(W,Qe);var ga=(L+_|0)+((d&8191)<<13)|0;return L=(R+(d>>>13)|0)+(ga>>>26)|0,ga&=67108863,T[0]=Wr,T[1]=Hr,T[2]=Vr,T[3]=zr,T[4]=qr,T[5]=Gr,T[6]=Jr,T[7]=Zr,T[8]=Qr,T[9]=Yr,T[10]=Kr,T[11]=Xr,T[12]=en,T[13]=tn,T[14]=fa,T[15]=ha,T[16]=da,T[17]=pa,T[18]=ga,L!==0&&(T[19]=L,m.length++),m};Math.imul||(N=I);function D(w,u,g){g.negative=u.negative^w.negative,g.length=w.length+u.length;for(var m=0,E=0,S=0;S>>26)|0,E+=T>>>26,T&=67108863}g.words[S]=L,m=T,T=E}return m!==0?g.words[S]=m:g.length--,g._strip()}function H(w,u,g){return D(w,u,g)}s.prototype.mulTo=function(u,g){var m,E=this.length+u.length;return this.length===10&&u.length===10?m=N(this,u,g):E<63?m=I(this,u,g):E<1024?m=D(this,u,g):m=H(this,u,g),m},s.prototype.mul=function(u){var g=new s(null);return g.words=new Array(this.length+u.length),this.mulTo(u,g)},s.prototype.mulf=function(u){var g=new s(null);return g.words=new Array(this.length+u.length),H(this,u,g)},s.prototype.imul=function(u){return this.clone().mulTo(u,this)},s.prototype.imuln=function(u){var g=u<0;g&&(u=-u),n(typeof u=="number"),n(u<67108864);for(var m=0,E=0;E>=26,m+=S/67108864|0,m+=T>>>26,this.words[E]=T&67108863}return m!==0&&(this.words[E]=m,this.length++),g?this.ineg():this},s.prototype.muln=function(u){return this.clone().imuln(u)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(u){var g=F(u);if(g.length===0)return new s(1);for(var m=this,E=0;E=0);var g=u%26,m=(u-g)/26,E=67108863>>>26-g<<26-g,S;if(g!==0){var T=0;for(S=0;S>>26-g}T&&(this.words[S]=T,this.length++)}if(m!==0){for(S=this.length-1;S>=0;S--)this.words[S+m]=this.words[S];for(S=0;S=0);var E;g?E=(g-g%26)/26:E=0;var S=u%26,T=Math.min((u-S)/26,this.length),L=67108863^67108863>>>S<T)for(this.length-=T,d=0;d=0&&(R!==0||d>=E);d--){var Y=this.words[d]|0;this.words[d]=R<<26-S|Y>>>S,R=Y&L}return _&&R!==0&&(_.words[_.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(u,g,m){return n(this.negative===0),this.iushrn(u,g,m)},s.prototype.shln=function(u){return this.clone().ishln(u)},s.prototype.ushln=function(u){return this.clone().iushln(u)},s.prototype.shrn=function(u){return this.clone().ishrn(u)},s.prototype.ushrn=function(u){return this.clone().iushrn(u)},s.prototype.testn=function(u){n(typeof u=="number"&&u>=0);var g=u%26,m=(u-g)/26,E=1<=0);var g=u%26,m=(u-g)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(g!==0&&m++,this.length=Math.min(m,this.length),g!==0){var E=67108863^67108863>>>g<=67108864;g++)this.words[g]-=67108864,g===this.length-1?this.words[g+1]=1:this.words[g+1]++;return this.length=Math.max(this.length,g+1),this},s.prototype.isubn=function(u){if(n(typeof u=="number"),n(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var g=0;g>26)-(_/67108864|0),this.words[S+m]=T&67108863}for(;S>26,this.words[S+m]=T&67108863;if(L===0)return this._strip();for(n(L===-1),L=0,S=0;S>26,this.words[S]=T&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(u,g){var m=this.length-u.length,E=this.clone(),S=u,T=S.words[S.length-1]|0,L=this._countBits(T);m=26-L,m!==0&&(S=S.ushln(m),E.iushln(m),T=S.words[S.length-1]|0);var _=E.length-S.length,d;if(g!=="mod"){d=new s(null),d.length=_+1,d.words=new Array(d.length);for(var R=0;R=0;X--){var k=(E.words[S.length+X]|0)*67108864+(E.words[S.length+X-1]|0);for(k=Math.min(k/T|0,67108863),E._ishlnsubmul(S,k,X);E.negative!==0;)k--,E.negative=0,E._ishlnsubmul(S,1,X),E.isZero()||(E.negative^=1);d&&(d.words[X]=k)}return d&&d._strip(),E._strip(),g!=="div"&&m!==0&&E.iushrn(m),{div:d||null,mod:E}},s.prototype.divmod=function(u,g,m){if(n(!u.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var E,S,T;return this.negative!==0&&u.negative===0?(T=this.neg().divmod(u,g),g!=="mod"&&(E=T.div.neg()),g!=="div"&&(S=T.mod.neg(),m&&S.negative!==0&&S.iadd(u)),{div:E,mod:S}):this.negative===0&&u.negative!==0?(T=this.divmod(u.neg(),g),g!=="mod"&&(E=T.div.neg()),{div:E,mod:T.mod}):this.negative&u.negative?(T=this.neg().divmod(u.neg(),g),g!=="div"&&(S=T.mod.neg(),m&&S.negative!==0&&S.isub(u)),{div:T.div,mod:S}):u.length>this.length||this.cmp(u)<0?{div:new s(0),mod:this}:u.length===1?g==="div"?{div:this.divn(u.words[0]),mod:null}:g==="mod"?{div:null,mod:new s(this.modrn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new s(this.modrn(u.words[0]))}:this._wordDiv(u,g)},s.prototype.div=function(u){return this.divmod(u,"div",!1).div},s.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},s.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},s.prototype.divRound=function(u){var g=this.divmod(u);if(g.mod.isZero())return g.div;var m=g.div.negative!==0?g.mod.isub(u):g.mod,E=u.ushrn(1),S=u.andln(1),T=m.cmp(E);return T<0||S===1&&T===0?g.div:g.div.negative!==0?g.div.isubn(1):g.div.iaddn(1)},s.prototype.modrn=function(u){var g=u<0;g&&(u=-u),n(u<=67108863);for(var m=(1<<26)%u,E=0,S=this.length-1;S>=0;S--)E=(m*E+(this.words[S]|0))%u;return g?-E:E},s.prototype.modn=function(u){return this.modrn(u)},s.prototype.idivn=function(u){var g=u<0;g&&(u=-u),n(u<=67108863);for(var m=0,E=this.length-1;E>=0;E--){var S=(this.words[E]|0)+m*67108864;this.words[E]=S/u|0,m=S%u}return this._strip(),g?this.ineg():this},s.prototype.divn=function(u){return this.clone().idivn(u)},s.prototype.egcd=function(u){n(u.negative===0),n(!u.isZero());var g=this,m=u.clone();g.negative!==0?g=g.umod(u):g=g.clone();for(var E=new s(1),S=new s(0),T=new s(0),L=new s(1),_=0;g.isEven()&&m.isEven();)g.iushrn(1),m.iushrn(1),++_;for(var d=m.clone(),R=g.clone();!g.isZero();){for(var Y=0,X=1;!(g.words[0]&X)&&Y<26;++Y,X<<=1);if(Y>0)for(g.iushrn(Y);Y-- >0;)(E.isOdd()||S.isOdd())&&(E.iadd(d),S.isub(R)),E.iushrn(1),S.iushrn(1);for(var k=0,B=1;!(m.words[0]&B)&&k<26;++k,B<<=1);if(k>0)for(m.iushrn(k);k-- >0;)(T.isOdd()||L.isOdd())&&(T.iadd(d),L.isub(R)),T.iushrn(1),L.iushrn(1);g.cmp(m)>=0?(g.isub(m),E.isub(T),S.isub(L)):(m.isub(g),T.isub(E),L.isub(S))}return{a:T,b:L,gcd:m.iushln(_)}},s.prototype._invmp=function(u){n(u.negative===0),n(!u.isZero());var g=this,m=u.clone();g.negative!==0?g=g.umod(u):g=g.clone();for(var E=new s(1),S=new s(0),T=m.clone();g.cmpn(1)>0&&m.cmpn(1)>0;){for(var L=0,_=1;!(g.words[0]&_)&&L<26;++L,_<<=1);if(L>0)for(g.iushrn(L);L-- >0;)E.isOdd()&&E.iadd(T),E.iushrn(1);for(var d=0,R=1;!(m.words[0]&R)&&d<26;++d,R<<=1);if(d>0)for(m.iushrn(d);d-- >0;)S.isOdd()&&S.iadd(T),S.iushrn(1);g.cmp(m)>=0?(g.isub(m),E.isub(S)):(m.isub(g),S.isub(E))}var Y;return g.cmpn(1)===0?Y=E:Y=S,Y.cmpn(0)<0&&Y.iadd(u),Y},s.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var g=this.clone(),m=u.clone();g.negative=0,m.negative=0;for(var E=0;g.isEven()&&m.isEven();E++)g.iushrn(1),m.iushrn(1);do{for(;g.isEven();)g.iushrn(1);for(;m.isEven();)m.iushrn(1);var S=g.cmp(m);if(S<0){var T=g;g=m,m=T}else if(S===0||m.cmpn(1)===0)break;g.isub(m)}while(!0);return m.iushln(E)},s.prototype.invm=function(u){return this.egcd(u).a.umod(u)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(u){return this.words[0]&u},s.prototype.bincn=function(u){n(typeof u=="number");var g=u%26,m=(u-g)/26,E=1<>>26,L&=67108863,this.words[T]=L}return S!==0&&(this.words[T]=S,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(u){var g=u<0;if(this.negative!==0&&!g)return-1;if(this.negative===0&&g)return 1;this._strip();var m;if(this.length>1)m=1;else{g&&(u=-u),n(u<=67108863,"Number is too big");var E=this.words[0]|0;m=E===u?0:Eu.length)return 1;if(this.length=0;m--){var E=this.words[m]|0,S=u.words[m]|0;if(E!==S){ES&&(g=1);break}}return g},s.prototype.gtn=function(u){return this.cmpn(u)===1},s.prototype.gt=function(u){return this.cmp(u)===1},s.prototype.gten=function(u){return this.cmpn(u)>=0},s.prototype.gte=function(u){return this.cmp(u)>=0},s.prototype.ltn=function(u){return this.cmpn(u)===-1},s.prototype.lt=function(u){return this.cmp(u)===-1},s.prototype.lten=function(u){return this.cmpn(u)<=0},s.prototype.lte=function(u){return this.cmp(u)<=0},s.prototype.eqn=function(u){return this.cmpn(u)===0},s.prototype.eq=function(u){return this.cmp(u)===0},s.red=function(u){return new ne(u)},s.prototype.toRed=function(u){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(u){return this.red=u,this},s.prototype.forceRed=function(u){return n(!this.red,"Already a number in reduction context"),this._forceRed(u)},s.prototype.redAdd=function(u){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},s.prototype.redIAdd=function(u){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},s.prototype.redSub=function(u){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},s.prototype.redISub=function(u){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},s.prototype.redShl=function(u){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},s.prototype.redMul=function(u){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},s.prototype.redIMul=function(u){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(u){return n(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var U={k256:null,p224:null,p192:null,p25519:null};function z(w,u){this.name=w,this.p=new s(u,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}z.prototype._tmp=function(){var u=new s(null);return u.words=new Array(Math.ceil(this.n/13)),u},z.prototype.ireduce=function(u){var g=u,m;do this.split(g,this.tmp),g=this.imulK(g),g=g.iadd(this.tmp),m=g.bitLength();while(m>this.n);var E=m0?g.isub(this.p):g.strip!==void 0?g.strip():g._strip(),g},z.prototype.split=function(u,g){u.iushrn(this.n,0,g)},z.prototype.imulK=function(u){return u.imul(this.k)};function ee(){z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(ee,z),ee.prototype.split=function(u,g){for(var m=4194303,E=Math.min(u.length,9),S=0;S>>22,T=L}T>>>=22,u.words[S-10]=T,T===0&&u.length>10?u.length-=10:u.length-=9},ee.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var g=0,m=0;m>>=26,u.words[m]=S,g=E}return g!==0&&(u.words[u.length++]=g),u},s._prime=function(u){if(U[u])return U[u];var g;if(u==="k256")g=new ee;else if(u==="p224")g=new K;else if(u==="p192")g=new Z;else if(u==="p25519")g=new se;else throw new Error("Unknown prime "+u);return U[u]=g,g};function ne(w){if(typeof w=="string"){var u=s._prime(w);this.m=u.p,this.prime=u}else n(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}ne.prototype._verify1=function(u){n(u.negative===0,"red works only with positives"),n(u.red,"red works only with red numbers")},ne.prototype._verify2=function(u,g){n((u.negative|g.negative)===0,"red works only with positives"),n(u.red&&u.red===g.red,"red works only with red numbers")},ne.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):(p(u,u.umod(this.m)._forceRed(this)),u)},ne.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},ne.prototype.add=function(u,g){this._verify2(u,g);var m=u.add(g);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},ne.prototype.iadd=function(u,g){this._verify2(u,g);var m=u.iadd(g);return m.cmp(this.m)>=0&&m.isub(this.m),m},ne.prototype.sub=function(u,g){this._verify2(u,g);var m=u.sub(g);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},ne.prototype.isub=function(u,g){this._verify2(u,g);var m=u.isub(g);return m.cmpn(0)<0&&m.iadd(this.m),m},ne.prototype.shl=function(u,g){return this._verify1(u),this.imod(u.ushln(g))},ne.prototype.imul=function(u,g){return this._verify2(u,g),this.imod(u.imul(g))},ne.prototype.mul=function(u,g){return this._verify2(u,g),this.imod(u.mul(g))},ne.prototype.isqr=function(u){return this.imul(u,u.clone())},ne.prototype.sqr=function(u){return this.mul(u,u)},ne.prototype.sqrt=function(u){if(u.isZero())return u.clone();var g=this.m.andln(3);if(n(g%2===1),g===3){var m=this.m.add(new s(1)).iushrn(2);return this.pow(u,m)}for(var E=this.m.subn(1),S=0;!E.isZero()&&E.andln(1)===0;)S++,E.iushrn(1);n(!E.isZero());var T=new s(1).toRed(this),L=T.redNeg(),_=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new s(2*d*d).toRed(this);this.pow(d,_).cmp(L)!==0;)d.redIAdd(L);for(var R=this.pow(d,E),Y=this.pow(u,E.addn(1).iushrn(1)),X=this.pow(u,E),k=S;X.cmp(T)!==0;){for(var B=X,V=0;B.cmp(T)!==0;V++)B=B.redSqr();n(V=0;S--){for(var R=g.words[S],Y=d-1;Y>=0;Y--){var X=R>>Y&1;if(T!==E[0]&&(T=this.sqr(T)),X===0&&L===0){_=0;continue}L<<=1,L|=X,_++,!(_!==m&&(S!==0||Y!==0))&&(T=this.mul(T,E[L]),_=0,L=0)}d=26}return T},ne.prototype.convertTo=function(u){var g=u.umod(this.m);return g===u?g.clone():g},ne.prototype.convertFrom=function(u){var g=u.clone();return g.red=null,g},s.mont=function(u){return new oe(u)};function oe(w){ne.call(this,w),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(oe,ne),oe.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},oe.prototype.convertFrom=function(u){var g=this.imod(u.mul(this.rinv));return g.red=null,g},oe.prototype.imul=function(u,g){if(u.isZero()||g.isZero())return u.words[0]=0,u.length=1,u;var m=u.imul(g),E=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=m.isub(E).iushrn(this.shift),T=S;return S.cmp(this.m)>=0?T=S.isub(this.m):S.cmpn(0)<0&&(T=S.iadd(this.m)),T._forceRed(this)},oe.prototype.mul=function(u,g){if(u.isZero()||g.isZero())return new s(0)._forceRed(this);var m=u.mul(g),E=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=m.isub(E).iushrn(this.shift),T=S;return S.cmp(this.m)>=0?T=S.isub(this.m):S.cmpn(0)<0&&(T=S.iadd(this.m)),T._forceRed(this)},oe.prototype.invm=function(u){var g=this.imod(u._invmp(this.m).mul(this.r2));return g._forceRed(this)}})(t,te)})(Lu);var ao=Lu.exports,yi={};Object.defineProperty(yi,"__esModule",{value:!0});yi.EVENTS=void 0;yi.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"};var Yi={},uh={},Nr={},ch=zi;zi.default=zi;zi.stable=hh;zi.stableStringify=hh;var Ws="[...]",lh="[Circular]",gn=[],ln=[];function fh(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function zi(t,e,r,n){typeof n>"u"&&(n=fh()),ou(t,"",0,[],void 0,0,n);var i;try{ln.length===0?i=JSON.stringify(t,e,r):i=JSON.stringify(t,dh(e),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;gn.length!==0;){var s=gn.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function Zn(t,e,r,n){var i=Object.getOwnPropertyDescriptor(n,r);i.get!==void 0?i.configurable?(Object.defineProperty(n,r,{value:t}),gn.push([n,r,e,i])):ln.push([e,r,t]):(n[r]=t,gn.push([n,r,e]))}function ou(t,e,r,n,i,s,o){s+=1;var a;if(typeof t=="object"&&t!==null){for(a=0;ao.depthLimit){Zn(Ws,t,e,i);return}if(typeof o.edgesLimit<"u"&&r+1>o.edgesLimit){Zn(Ws,t,e,i);return}if(n.push(t),Array.isArray(t))for(a=0;ae?1:0}function hh(t,e,r,n){typeof n>"u"&&(n=fh());var i=au(t,"",0,[],void 0,0,n)||t,s;try{ln.length===0?s=JSON.stringify(i,e,r):s=JSON.stringify(i,dh(e),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;gn.length!==0;){var o=gn.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return s}function au(t,e,r,n,i,s,o){s+=1;var a;if(typeof t=="object"&&t!==null){for(a=0;ao.depthLimit){Zn(Ws,t,e,i);return}if(typeof o.edgesLimit<"u"&&r+1>o.edgesLimit){Zn(Ws,t,e,i);return}if(n.push(t),Array.isArray(t))for(a=0;a0)for(var n=0;n=1e3&&t<=4999}function Z0(t,e){if(e!=="[Circular]")return e}var Pu={},Lr={};Object.defineProperty(Lr,"__esModule",{value:!0});Lr.errorValues=Lr.errorCodes=void 0;Lr.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};Lr.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.serializeError=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const e=Lr,r=Nr,n=e.errorCodes.rpc.internal,i="Unspecified error message. This is a bug, please report it.",s={code:n,message:o(n)};t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function o(v,A=i){if(Number.isInteger(v)){const O=v.toString();if(y(e.errorValues,O))return e.errorValues[O].message;if(l(v))return t.JSON_RPC_SERVER_ERROR_MESSAGE}return A}t.getMessageFromCode=o;function a(v){if(!Number.isInteger(v))return!1;const A=v.toString();return!!(e.errorValues[A]||l(v))}t.isValidCode=a;function c(v,{fallbackError:A=s,shouldIncludeStack:O=!1}={}){var j,F;if(!A||!Number.isInteger(A.code)||typeof A.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(v instanceof r.EthereumRpcError)return v.serialize();const I={};if(v&&typeof v=="object"&&!Array.isArray(v)&&y(v,"code")&&a(v.code)){const D=v;I.code=D.code,D.message&&typeof D.message=="string"?(I.message=D.message,y(D,"data")&&(I.data=D.data)):(I.message=o(I.code),I.data={originalError:p(v)})}else{I.code=A.code;const D=(j=v)===null||j===void 0?void 0:j.message;I.message=D&&typeof D=="string"?D:A.message,I.data={originalError:p(v)}}const N=(F=v)===null||F===void 0?void 0:F.stack;return O&&v&&N&&typeof N=="string"&&(I.stack=N),I}t.serializeError=c;function l(v){return v>=-32099&&v<=-32e3}function p(v){return v&&typeof v=="object"&&!Array.isArray(v)?Object.assign({},v):v}function y(v,A){return Object.prototype.hasOwnProperty.call(v,A)}})(Pu);var uo={};Object.defineProperty(uo,"__esModule",{value:!0});uo.ethErrors=void 0;const Bu=Nr,gh=Pu,mt=Lr;uo.ethErrors={rpc:{parse:t=>Bt(mt.errorCodes.rpc.parse,t),invalidRequest:t=>Bt(mt.errorCodes.rpc.invalidRequest,t),invalidParams:t=>Bt(mt.errorCodes.rpc.invalidParams,t),methodNotFound:t=>Bt(mt.errorCodes.rpc.methodNotFound,t),internal:t=>Bt(mt.errorCodes.rpc.internal,t),server:t=>{if(!t||typeof t!="object"||Array.isArray(t))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Bt(e,t)},invalidInput:t=>Bt(mt.errorCodes.rpc.invalidInput,t),resourceNotFound:t=>Bt(mt.errorCodes.rpc.resourceNotFound,t),resourceUnavailable:t=>Bt(mt.errorCodes.rpc.resourceUnavailable,t),transactionRejected:t=>Bt(mt.errorCodes.rpc.transactionRejected,t),methodNotSupported:t=>Bt(mt.errorCodes.rpc.methodNotSupported,t),limitExceeded:t=>Bt(mt.errorCodes.rpc.limitExceeded,t)},provider:{userRejectedRequest:t=>Ai(mt.errorCodes.provider.userRejectedRequest,t),unauthorized:t=>Ai(mt.errorCodes.provider.unauthorized,t),unsupportedMethod:t=>Ai(mt.errorCodes.provider.unsupportedMethod,t),disconnected:t=>Ai(mt.errorCodes.provider.disconnected,t),chainDisconnected:t=>Ai(mt.errorCodes.provider.chainDisconnected,t),custom:t=>{if(!t||typeof t!="object"||Array.isArray(t))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:e,message:r,data:n}=t;if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string');return new Bu.EthereumProviderError(e,r,n)}}};function Bt(t,e){const[r,n]=yh(e);return new Bu.EthereumRpcError(t,r||gh.getMessageFromCode(t),n)}function Ai(t,e){const[r,n]=yh(e);return new Bu.EthereumProviderError(t,r||gh.getMessageFromCode(t),n)}function yh(t){if(t){if(typeof t=="string")return[t];if(typeof t=="object"&&!Array.isArray(t)){const{message:e,data:r}=t;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,r]}}return[]}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.getMessageFromCode=t.serializeError=t.EthereumProviderError=t.EthereumRpcError=t.ethErrors=t.errorCodes=void 0;const e=Nr;Object.defineProperty(t,"EthereumRpcError",{enumerable:!0,get:function(){return e.EthereumRpcError}}),Object.defineProperty(t,"EthereumProviderError",{enumerable:!0,get:function(){return e.EthereumProviderError}});const r=Pu;Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return r.serializeError}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return r.getMessageFromCode}});const n=uo;Object.defineProperty(t,"ethErrors",{enumerable:!0,get:function(){return n.ethErrors}});const i=Lr;Object.defineProperty(t,"errorCodes",{enumerable:!0,get:function(){return i.errorCodes}})})(uh);var Ne={},co={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Web3Method=void 0,function(e){e.requestEthereumAccounts="requestEthereumAccounts",e.signEthereumMessage="signEthereumMessage",e.signEthereumTransaction="signEthereumTransaction",e.submitEthereumTransaction="submitEthereumTransaction",e.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",e.scanQRCode="scanQRCode",e.generic="generic",e.childRequestEthereumAccounts="childRequestEthereumAccounts",e.addEthereumChain="addEthereumChain",e.switchEthereumChain="switchEthereumChain",e.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",e.watchAsset="watchAsset",e.selectProvider="selectProvider"}(t.Web3Method||(t.Web3Method={}))})(co);Object.defineProperty(Ne,"__esModule",{value:!0});Ne.EthereumAddressFromSignedMessageResponse=Ne.SubmitEthereumTransactionResponse=Ne.SignEthereumTransactionResponse=Ne.SignEthereumMessageResponse=Ne.isRequestEthereumAccountsResponse=Ne.SelectProviderResponse=Ne.WatchAssetReponse=Ne.RequestEthereumAccountsResponse=Ne.SwitchEthereumChainResponse=Ne.AddEthereumChainResponse=Ne.isErrorResponse=void 0;const yr=co;function Q0(t){var e,r;return((e=t)===null||e===void 0?void 0:e.method)!==void 0&&((r=t)===null||r===void 0?void 0:r.errorMessage)!==void 0}Ne.isErrorResponse=Q0;function Y0(t){return{method:yr.Web3Method.addEthereumChain,result:t}}Ne.AddEthereumChainResponse=Y0;function K0(t){return{method:yr.Web3Method.switchEthereumChain,result:t}}Ne.SwitchEthereumChainResponse=K0;function X0(t){return{method:yr.Web3Method.requestEthereumAccounts,result:t}}Ne.RequestEthereumAccountsResponse=X0;function eg(t){return{method:yr.Web3Method.watchAsset,result:t}}Ne.WatchAssetReponse=eg;function tg(t){return{method:yr.Web3Method.selectProvider,result:t}}Ne.SelectProviderResponse=tg;function rg(t){return t&&t.method===yr.Web3Method.requestEthereumAccounts}Ne.isRequestEthereumAccountsResponse=rg;function ng(t){return{method:yr.Web3Method.signEthereumMessage,result:t}}Ne.SignEthereumMessageResponse=ng;function ig(t){return{method:yr.Web3Method.signEthereumTransaction,result:t}}Ne.SignEthereumTransactionResponse=ig;function sg(t){return{method:yr.Web3Method.submitEthereumTransaction,result:t}}Ne.SubmitEthereumTransactionResponse=sg;function og(t){return{method:yr.Web3Method.ethereumAddressFromSignedMessage,result:t}}Ne.EthereumAddressFromSignedMessageResponse=og;var bi={};Object.defineProperty(bi,"__esModule",{value:!0});bi.LIB_VERSION=void 0;bi.LIB_VERSION="3.7.2";(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCode=t.serializeError=t.standardErrors=t.standardErrorMessage=t.standardErrorCodes=void 0;const e=uh,r=Ne,n=bi;t.standardErrorCodes=Object.freeze(Object.assign(Object.assign({},e.errorCodes),{provider:Object.freeze(Object.assign(Object.assign({},e.errorCodes.provider),{unsupportedChain:4902}))}));function i(p){return p!==void 0?(0,e.getMessageFromCode)(p):"Unknown error"}t.standardErrorMessage=i,t.standardErrors=Object.freeze(Object.assign(Object.assign({},e.ethErrors),{provider:Object.freeze(Object.assign(Object.assign({},e.ethErrors.provider),{unsupportedChain:(p="")=>e.ethErrors.provider.custom({code:t.standardErrorCodes.provider.unsupportedChain,message:`Unrecognized chain ID ${p}. Try adding the chain using wallet_addEthereumChain first.`})}))}));function s(p,y){const v=(0,e.serializeError)(o(p),{shouldIncludeStack:!0}),A=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");A.searchParams.set("version",n.LIB_VERSION),A.searchParams.set("code",v.code.toString());const O=a(v.data,y);return O&&A.searchParams.set("method",O),A.searchParams.set("message",v.message),Object.assign(Object.assign({},v),{docUrl:A.href})}t.serializeError=s;function o(p){return typeof p=="string"?{message:p,code:t.standardErrorCodes.rpc.internal}:(0,r.isErrorResponse)(p)?Object.assign(Object.assign({},p),{message:p.errorMessage,code:p.errorCode,data:{method:p.method,result:p.result}}):p}function a(p,y){var v;const A=(v=p)===null||v===void 0?void 0:v.method;if(A)return A;if(y!==void 0)return typeof y=="string"?y:Array.isArray(y)?y.length>0?y[0].method:void 0:y.method}function c(p){var y;if(typeof p=="number")return p;if(l(p))return(y=p.code)!==null&&y!==void 0?y:p.errorCode}t.getErrorCode=c;function l(p){return typeof p=="object"&&p!==null&&(typeof p.code=="number"||typeof p.errorCode=="number")}})(Yi);var vi={},bh={exports:{}},uu={exports:{}};typeof Object.create=="function"?uu.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:uu.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}};var er=uu.exports,cu={exports:{}},Ki={},lo={};lo.byteLength=cg;lo.toByteArray=fg;lo.fromByteArray=pg;var lr=[],jt=[],ag=typeof Uint8Array<"u"?Uint8Array:Array,ya="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Dn=0,ug=ya.length;Dn0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function cg(t){var e=vh(t),r=e[0],n=e[1];return(r+n)*3/4-n}function lg(t,e,r){return(e+r)*3/4-r}function fg(t){var e,r=vh(t),n=r[0],i=r[1],s=new ag(lg(t,n,i)),o=0,a=i>0?n-4:n,c;for(c=0;c>16&255,s[o++]=e>>8&255,s[o++]=e&255;return i===2&&(e=jt[t.charCodeAt(c)]<<2|jt[t.charCodeAt(c+1)]>>4,s[o++]=e&255),i===1&&(e=jt[t.charCodeAt(c)]<<10|jt[t.charCodeAt(c+1)]<<4|jt[t.charCodeAt(c+2)]>>2,s[o++]=e>>8&255,s[o++]=e&255),s}function hg(t){return lr[t>>18&63]+lr[t>>12&63]+lr[t>>6&63]+lr[t&63]}function dg(t,e,r){for(var n,i=[],s=e;sa?a:o+s));return n===1?(e=t[r-1],i.push(lr[e>>2]+lr[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(lr[e>>10]+lr[e>>4&63]+lr[e<<2&63]+"=")),i.join("")}var Du={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */Du.read=function(t,e,r,n,i){var s,o,a=i*8-n-1,c=(1<>1,p=-7,y=r?i-1:0,v=r?-1:1,A=t[e+y];for(y+=v,s=A&(1<<-p)-1,A>>=-p,p+=a;p>0;s=s*256+t[e+y],y+=v,p-=8);for(o=s&(1<<-p)-1,s>>=-p,p+=n;p>0;o=o*256+t[e+y],y+=v,p-=8);if(s===0)s=1-l;else{if(s===c)return o?NaN:(A?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-l}return(A?-1:1)*o*Math.pow(2,s-n)};Du.write=function(t,e,r,n,i,s){var o,a,c,l=s*8-i-1,p=(1<>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=n?0:s-1,O=n?1:-1,j=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=p):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+y>=1?e+=v/c:e+=v*Math.pow(2,1-y),e*c>=2&&(o++,c/=2),o+y>=p?(a=0,o=p):o+y>=1?(a=(e*c-1)*Math.pow(2,i),o=o+y):(a=e*Math.pow(2,y-1)*Math.pow(2,i),o=0));i>=8;t[r+A]=a&255,A+=O,a/=256,i-=8);for(o=o<0;t[r+A]=o&255,A+=O,o/=256,l-=8);t[r+A-O]|=j*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh diff --git a/assets/index.es-BWNWcA4u.js b/assets/index.es-s_QArDCI.js similarity index 99% rename from assets/index.es-BWNWcA4u.js rename to assets/index.es-s_QArDCI.js index 74197f7..8cb402b 100644 --- a/assets/index.es-BWNWcA4u.js +++ b/assets/index.es-s_QArDCI.js @@ -1,4 +1,4 @@ -import{f as K0,r as Fs,h as ie,i as Kr,j as V0,w as Cl,k as Ol,m as gc,t as ga,o as F0,p as ea,q as B0,s as _i,D as G0,u as W0,N as X,v as J0,x as oc,y as Q0,V as Y0,R as X0,F as Sh,K as Z0,z as em,L as tm,A as Ch,$ as rm,B as im,C as Vs,Z as Oh,J as sm,X as nm,E as vc,_ as Rl,G as Dr,H as am,I as om,M as us,O as $t,U as tr,P as wi,Q as hr,S as cm,T as hs,W as Tl,Y as um,a0 as hm,a1 as lm,a2 as Al,a3 as fm,a4 as Nl,a5 as $l,a6 as ls,a7 as cc,a8 as oa,a9 as fs,aa as pm,ab as ca,ac as dm,ad as gm,ae as vm,af as ta,ag as ym,ah as mm,ai as Vo,aj as Rh,ak as wm,al as _m,am as bm,an as Th,ao as Em,ap as Im,aq as xm,ar as Pm,as as Sm,at as Cm,au as Om,av as Us,aw as Dl,ax as Fo,ay as Rm,az as Tm,aA as Am}from"./index-XxsA1De3.js";import{s as Bs,a as va,i as Ah,c as Nm,b as $m,f as yc,p as Dm,J as ni,d as mc,e as wc,g as _c,h as mi,j as si,k as Ks,l as Lm,m as qm,H as Ii}from"./http-1-zMwFp0.js";const zm=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Mm=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,jm=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Um(c,i){if(c==="__proto__"||c==="constructor"&&i&&typeof i=="object"&&"prototype"in i){Hm(c);return}return i}function Hm(c){console.warn(`[destr] Dropping "${c}" key to prevent prototype pollution.`)}function ra(c,i={}){if(typeof c!="string")return c;const r=c.trim();if(c[0]==='"'&&c.at(-1)==='"'&&!c.includes("\\"))return r.slice(1,-1);if(r.length<=9){const n=r.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!jm.test(c)){if(i.strict)throw new SyntaxError("[destr] Invalid JSON");return c}try{if(zm.test(c)||Mm.test(c)){if(i.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(c,Um)}return JSON.parse(c)}catch(n){if(i.strict)throw n;return c}}function km(c){return!c||typeof c.then!="function"?Promise.resolve(c):c}function Ut(c,...i){try{return km(c(...i))}catch(r){return Promise.reject(r)}}function Km(c){const i=typeof c;return c===null||i!=="object"&&i!=="function"}function Vm(c){const i=Object.getPrototypeOf(c);return!i||i.isPrototypeOf(Object)}function ua(c){if(Km(c))return String(c);if(Vm(c)||Array.isArray(c))return JSON.stringify(c);if(typeof c.toJSON=="function")return ua(c.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function Ll(){if(typeof Buffer===void 0)throw new TypeError("[unstorage] Buffer is not supported!")}const uc="base64:";function Fm(c){if(typeof c=="string")return c;Ll();const i=Buffer.from(c).toString("base64");return uc+i}function Bm(c){return typeof c!="string"||!c.startsWith(uc)?c:(Ll(),Buffer.from(c.slice(uc.length),"base64"))}function ur(c){return c?c.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function Gm(...c){return ur(c.join(":"))}function ia(c){return c=ur(c),c?c+":":""}const Wm="memory",Jm=()=>{const c=new Map;return{name:Wm,options:{},hasItem(i){return c.has(i)},getItem(i){return c.get(i)??null},getItemRaw(i){return c.get(i)??null},setItem(i,r){c.set(i,r)},setItemRaw(i,r){c.set(i,r)},removeItem(i){c.delete(i)},getKeys(){return Array.from(c.keys())},clear(){c.clear()},dispose(){c.clear()}}};function Qm(c={}){const i={mounts:{"":c.driver||Jm()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=v=>{for(const E of i.mountpoints)if(v.startsWith(E))return{base:E,relativeKey:v.slice(E.length),driver:i.mounts[E]};return{base:"",relativeKey:v,driver:i.mounts[""]}},n=(v,E)=>i.mountpoints.filter(C=>C.startsWith(v)||E&&v.startsWith(C)).map(C=>({relativeBase:v.length>C.length?v.slice(C.length):void 0,mountpoint:C,driver:i.mounts[C]})),a=(v,E)=>{if(i.watching){E=ur(E);for(const C of i.watchListeners)C(v,E)}},l=async()=>{if(!i.watching){i.watching=!0;for(const v in i.mounts)i.unwatch[v]=await Nh(i.mounts[v],a,v)}},d=async()=>{if(i.watching){for(const v in i.unwatch)await i.unwatch[v]();i.unwatch={},i.watching=!1}},y=(v,E,C)=>{const T=new Map,j=D=>{let V=T.get(D.base);return V||(V={driver:D.driver,base:D.base,items:[]},T.set(D.base,V)),V};for(const D of v){const V=typeof D=="string",re=ur(V?D:D.key),ce=V?void 0:D.value,ue=V||!D.options?E:{...E,...D.options},he=r(re);j(he).items.push({key:re,value:ce,relativeKey:he.relativeKey,options:ue})}return Promise.all([...T.values()].map(D=>C(D))).then(D=>D.flat())},w={hasItem(v,E={}){v=ur(v);const{relativeKey:C,driver:T}=r(v);return Ut(T.hasItem,C,E)},getItem(v,E={}){v=ur(v);const{relativeKey:C,driver:T}=r(v);return Ut(T.getItem,C,E).then(j=>ra(j))},getItems(v,E){return y(v,E,C=>C.driver.getItems?Ut(C.driver.getItems,C.items.map(T=>({key:T.relativeKey,options:T.options})),E).then(T=>T.map(j=>({key:Gm(C.base,j.key),value:ra(j.value)}))):Promise.all(C.items.map(T=>Ut(C.driver.getItem,T.relativeKey,T.options).then(j=>({key:T.key,value:ra(j)})))))},getItemRaw(v,E={}){v=ur(v);const{relativeKey:C,driver:T}=r(v);return T.getItemRaw?Ut(T.getItemRaw,C,E):Ut(T.getItem,C,E).then(j=>Bm(j))},async setItem(v,E,C={}){if(E===void 0)return w.removeItem(v);v=ur(v);const{relativeKey:T,driver:j}=r(v);j.setItem&&(await Ut(j.setItem,T,ua(E),C),j.watch||a("update",v))},async setItems(v,E){await y(v,E,async C=>{C.driver.setItems&&await Ut(C.driver.setItems,C.items.map(T=>({key:T.relativeKey,value:ua(T.value),options:T.options})),E),C.driver.setItem&&await Promise.all(C.items.map(T=>Ut(C.driver.setItem,T.relativeKey,ua(T.value),T.options)))})},async setItemRaw(v,E,C={}){if(E===void 0)return w.removeItem(v,C);v=ur(v);const{relativeKey:T,driver:j}=r(v);if(j.setItemRaw)await Ut(j.setItemRaw,T,E,C);else if(j.setItem)await Ut(j.setItem,T,Fm(E),C);else return;j.watch||a("update",v)},async removeItem(v,E={}){typeof E=="boolean"&&(E={removeMeta:E}),v=ur(v);const{relativeKey:C,driver:T}=r(v);T.removeItem&&(await Ut(T.removeItem,C,E),(E.removeMeta||E.removeMata)&&await Ut(T.removeItem,C+"$",E),T.watch||a("remove",v))},async getMeta(v,E={}){typeof E=="boolean"&&(E={nativeOnly:E}),v=ur(v);const{relativeKey:C,driver:T}=r(v),j=Object.create(null);if(T.getMeta&&Object.assign(j,await Ut(T.getMeta,C,E)),!E.nativeOnly){const D=await Ut(T.getItem,C+"$",E).then(V=>ra(V));D&&typeof D=="object"&&(typeof D.atime=="string"&&(D.atime=new Date(D.atime)),typeof D.mtime=="string"&&(D.mtime=new Date(D.mtime)),Object.assign(j,D))}return j},setMeta(v,E,C={}){return this.setItem(v+"$",E,C)},removeMeta(v,E={}){return this.removeItem(v+"$",E)},async getKeys(v,E={}){v=ia(v);const C=n(v,!0);let T=[];const j=[];for(const D of C){const re=(await Ut(D.driver.getKeys,D.relativeBase,E)).map(ce=>D.mountpoint+ur(ce)).filter(ce=>!T.some(ue=>ce.startsWith(ue)));j.push(...re),T=[D.mountpoint,...T.filter(ce=>!ce.startsWith(D.mountpoint))]}return v?j.filter(D=>D.startsWith(v)&&!D.endsWith("$")):j.filter(D=>!D.endsWith("$"))},async clear(v,E={}){v=ia(v),await Promise.all(n(v,!1).map(async C=>{if(C.driver.clear)return Ut(C.driver.clear,C.relativeBase,E);if(C.driver.removeItem){const T=await C.driver.getKeys(C.relativeBase||"",E);return Promise.all(T.map(j=>C.driver.removeItem(j,E)))}}))},async dispose(){await Promise.all(Object.values(i.mounts).map(v=>$h(v)))},async watch(v){return await l(),i.watchListeners.push(v),async()=>{i.watchListeners=i.watchListeners.filter(E=>E!==v),i.watchListeners.length===0&&await d()}},async unwatch(){i.watchListeners=[],await d()},mount(v,E){if(v=ia(v),v&&i.mounts[v])throw new Error(`already mounted at ${v}`);return v&&(i.mountpoints.push(v),i.mountpoints.sort((C,T)=>T.length-C.length)),i.mounts[v]=E,i.watching&&Promise.resolve(Nh(E,a,v)).then(C=>{i.unwatch[v]=C}).catch(console.error),w},async unmount(v,E=!0){v=ia(v),!(!v||!i.mounts[v])&&(i.watching&&v in i.unwatch&&(i.unwatch[v](),delete i.unwatch[v]),E&&await $h(i.mounts[v]),i.mountpoints=i.mountpoints.filter(C=>C!==v),delete i.mounts[v])},getMount(v=""){v=ur(v)+":";const E=r(v);return{driver:E.driver,base:E.base}},getMounts(v="",E={}){return v=ur(v),n(v,E.parents).map(T=>({driver:T.driver,base:T.mountpoint}))}};return w}function Nh(c,i,r){return c.watch?c.watch((n,a)=>i(n,r+a)):()=>{}}async function $h(c){typeof c.dispose=="function"&&await Ut(c.dispose)}function Ui(c){return new Promise((i,r)=>{c.oncomplete=c.onsuccess=()=>i(c.result),c.onabort=c.onerror=()=>r(c.error)})}function ql(c,i){const r=indexedDB.open(c);r.onupgradeneeded=()=>r.result.createObjectStore(i);const n=Ui(r);return(a,l)=>n.then(d=>l(d.transaction(i,a).objectStore(i)))}let Bo;function Gs(){return Bo||(Bo=ql("keyval-store","keyval")),Bo}function Dh(c,i=Gs()){return i("readonly",r=>Ui(r.get(c)))}function Ym(c,i,r=Gs()){return r("readwrite",n=>(n.put(i,c),Ui(n.transaction)))}function Xm(c,i=Gs()){return i("readwrite",r=>(r.delete(c),Ui(r.transaction)))}function Zm(c=Gs()){return c("readwrite",i=>(i.clear(),Ui(i.transaction)))}function ew(c,i){return c.openCursor().onsuccess=function(){this.result&&(i(this.result),this.result.continue())},Ui(c.transaction)}function tw(c=Gs()){return c("readonly",i=>{if(i.getAllKeys)return Ui(i.getAllKeys());const r=[];return ew(i,n=>r.push(n.key)).then(()=>r)})}const rw="idb-keyval";var iw=(c={})=>{const i=c.base&&c.base.length>0?`${c.base}:`:"",r=a=>i+a;let n;return c.dbName&&c.storeName&&(n=ql(c.dbName,c.storeName)),{name:rw,options:c,async hasItem(a){return!(typeof await Dh(r(a),n)>"u")},async getItem(a){return await Dh(r(a),n)??null},setItem(a,l){return Ym(r(a),l,n)},removeItem(a){return Xm(r(a),n)},getKeys(){return tw(n)},clear(){return Zm(n)}}};const sw="WALLET_CONNECT_V2_INDEXED_DB",nw="keyvaluestorage";let aw=class{constructor(){this.indexedDb=Qm({driver:iw({dbName:sw,storeName:nw})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(i=>[i.key,i.value])}async getItem(i){const r=await this.indexedDb.getItem(i);if(r!==null)return r}async setItem(i,r){await this.indexedDb.setItem(i,Bs(r))}async removeItem(i){await this.indexedDb.removeItem(i)}};var Go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ha={exports:{}};(function(){let c;function i(){}c=i,c.prototype.getItem=function(r){return this.hasOwnProperty(r)?String(this[r]):null},c.prototype.setItem=function(r,n){this[r]=String(n)},c.prototype.removeItem=function(r){delete this[r]},c.prototype.clear=function(){const r=this;Object.keys(r).forEach(function(n){r[n]=void 0,delete r[n]})},c.prototype.key=function(r){return r=r||0,Object.keys(this)[r]},c.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof Go<"u"&&Go.localStorage?ha.exports=Go.localStorage:typeof window<"u"&&window.localStorage?ha.exports=window.localStorage:ha.exports=new i})();function ow(c){var i;return[c[0],va((i=c[1])!=null?i:"")]}let cw=class{constructor(){this.localStorage=ha.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(ow)}async getItem(i){const r=this.localStorage.getItem(i);if(r!==null)return va(r)}async setItem(i,r){this.localStorage.setItem(i,Bs(r))}async removeItem(i){this.localStorage.removeItem(i)}};const uw="wc_storage_version",Lh=1,hw=async(c,i,r)=>{const n=uw,a=await i.getItem(n);if(a&&a>=Lh){r(i);return}const l=await c.getKeys();if(!l.length){r(i);return}const d=[];for(;l.length;){const y=l.shift();if(!y)continue;const w=y.toLowerCase();if(w.includes("wc@")||w.includes("walletconnect")||w.includes("wc_")||w.includes("wallet_connect")){const v=await c.getItem(y);await i.setItem(y,v),d.push(y)}}await i.setItem(n,Lh),r(i),lw(c,d)},lw=async(c,i)=>{i.length&&i.forEach(async r=>{await c.removeItem(r)})};let fw=class{constructor(){this.initialized=!1,this.setInitialized=r=>{this.storage=r,this.initialized=!0};const i=new cw;this.storage=i;try{const r=new aw;hw(i,r,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(i){return await this.initialize(),this.storage.getItem(i)}async setItem(i,r){return await this.initialize(),this.storage.setItem(i,r)}async removeItem(i){return await this.initialize(),this.storage.removeItem(i)}async initialize(){this.initialized||await new Promise(i=>{const r=setInterval(()=>{this.initialized&&(clearInterval(r),i())},20)})}};var ps={},$s={},Wo={},Ds={};class Hi{}const pw=Object.freeze(Object.defineProperty({__proto__:null,IEvents:Hi},Symbol.toStringTag,{value:"Module"})),dw=K0(pw);var qh;function gw(){if(qh)return Ds;qh=1,Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.IHeartBeat=void 0;const c=dw;class i extends c.IEvents{constructor(n){super()}}return Ds.IHeartBeat=i,Ds}var zh;function zl(){return zh||(zh=1,function(c){Object.defineProperty(c,"__esModule",{value:!0}),Fs.__exportStar(gw(),c)}(Wo)),Wo}var Jo={},Mi={},Mh;function vw(){if(Mh)return Mi;Mh=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.HEARTBEAT_EVENTS=Mi.HEARTBEAT_INTERVAL=void 0;const c=ie;return Mi.HEARTBEAT_INTERVAL=c.FIVE_SECONDS,Mi.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"},Mi}var jh;function Ml(){return jh||(jh=1,function(c){Object.defineProperty(c,"__esModule",{value:!0}),Fs.__exportStar(vw(),c)}(Jo)),Jo}var Uh;function yw(){if(Uh)return $s;Uh=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.HeartBeat=void 0;const c=Fs,i=Kr,r=ie,n=zl(),a=Ml();class l extends n.IHeartBeat{constructor(y){super(y),this.events=new i.EventEmitter,this.interval=a.HEARTBEAT_INTERVAL,this.interval=(y==null?void 0:y.interval)||a.HEARTBEAT_INTERVAL}static init(y){return c.__awaiter(this,void 0,void 0,function*(){const w=new l(y);return yield w.init(),w})}init(){return c.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(y,w){this.events.on(y,w)}once(y,w){this.events.once(y,w)}off(y,w){this.events.off(y,w)}removeListener(y,w){this.events.removeListener(y,w)}initialize(){return c.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),r.toMiliseconds(this.interval))})}pulse(){this.events.emit(a.HEARTBEAT_EVENTS.pulse)}}return $s.HeartBeat=l,$s}(function(c){Object.defineProperty(c,"__esModule",{value:!0});const i=Fs;i.__exportStar(yw(),c),i.__exportStar(zl(),c),i.__exportStar(Ml(),c)})(ps);var Oe={},Qo,Hh;function mw(){if(Hh)return Qo;Hh=1;function c(r){try{return JSON.stringify(r)}catch{return'"[Circular]"'}}Qo=i;function i(r,n,a){var l=a&&a.stringify||c,d=1;if(typeof r=="object"&&r!==null){var y=n.length+d;if(y===1)return r;var w=new Array(y);w[0]=l(r);for(var v=1;v-1?j:0,r.charCodeAt(V+1)){case 100:case 102:if(T>=E||n[T]==null)break;j=E||n[T]==null)break;j=E||n[T]===void 0)break;j",j=V+2,V++;break}C+=l(n[T]),j=V+2,V++;break;case 115:if(T>=E)break;j-1&&(Ee=!1);const Re=["error","fatal","warn","info","debug","trace"];typeof W=="function"&&(W.error=W.fatal=W.warn=W.info=W.debug=W.trace=W),$.enabled===!1&&($.level="silent");const et=$.level||"info",R=Object.create(W);R.log||(R.log=re),Object.defineProperty(R,"levelVal",{get:je}),Object.defineProperty(R,"level",{get:Te,set:J});const M={transmit:k,serialize:te,asObject:$.browser.asObject,levels:Re,timestamp:j($)};R.levels=a.levels,R.level=et,R.setMaxListeners=R.getMaxListeners=R.emit=R.addListener=R.on=R.prependListener=R.once=R.prependOnceListener=R.removeListener=R.removeAllListeners=R.listeners=R.listenerCount=R.eventNames=R.write=R.flush=re,R.serializers=ve,R._serialize=te,R._stdErrSerialize=Ee,R.child=F,k&&(R._logEvent=C());function je(){return this.level==="silent"?1/0:this.levels.values[this.level]}function Te(){return this._level}function J(K){if(K!=="silent"&&!this.levels.values[K])throw Error("unknown level "+K);this._level=K,l(M,R,"error","log"),l(M,R,"fatal","error"),l(M,R,"warn","error"),l(M,R,"info","log"),l(M,R,"debug","log"),l(M,R,"trace","log")}function F(K,B){if(!K)throw new Error("missing bindings for child Pino");B=B||{},te&&K.serializers&&(B.serializers=K.serializers);const ut=B.serializers;if(te&&ut){var ke=Object.assign({},ve,ut),Lr=$.browser.serialize===!0?Object.keys(ke):te;delete K.serializers,w([K],Lr,ke,this._stdErrSerialize)}function _e(It){this._childLevel=(It._childLevel|0)+1,this.error=v(It,K,"error"),this.fatal=v(It,K,"fatal"),this.warn=v(It,K,"warn"),this.info=v(It,K,"info"),this.debug=v(It,K,"debug"),this.trace=v(It,K,"trace"),ke&&(this.serializers=ke,this._serialize=Lr),k&&(this._logEvent=C([].concat(It._logEvent.bindings,K)))}return _e.prototype=this,new _e(this)}return R}a.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},a.stdSerializers=r,a.stdTimeFunctions=Object.assign({},{nullTime:ce,epochTime:ue,unixTime:he,isoTime:fe});function l($,k,W,ve){const te=Object.getPrototypeOf(k);k[W]=k.levelVal>k.levels.values[W]?re:te[W]?te[W]:i[W]||i[ve]||re,d($,k,W)}function d($,k,W){!$.transmit&&k[W]===re||(k[W]=function(ve){return function(){const Ee=$.timestamp(),Re=new Array(arguments.length),et=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var R=0;R-1&&Ee in W&&($[te][Ee]=W[Ee]($[te][Ee]))}function v($,k,W){return function(){const ve=new Array(1+arguments.length);ve[0]=k;for(var te=1;te"u"?v=r(y,w):v=y.bindings().context||"",v}er.getLoggerContext=a;function l(y,w,v=c.PINO_CUSTOM_CONTEXT_KEY){const E=a(y,v);return E.trim()?`${E}/${w}`:w}er.formatChildLoggerContext=l;function d(y,w,v=c.PINO_CUSTOM_CONTEXT_KEY){const E=l(y,w,v),C=y.child({context:E});return n(C,E,v)}return er.generateChildLogger=d,er}(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.pino=void 0;const i=Fs,r=i.__importDefault(ww());Object.defineProperty(c,"pino",{enumerable:!0,get:function(){return r.default}}),i.__exportStar(jl(),c),i.__exportStar(_w(),c)})(Oe);class bw extends Hi{constructor(i){super(),this.opts=i,this.protocol="wc",this.version=2}}class Ew extends Hi{constructor(i,r){super(),this.core=i,this.logger=r,this.records=new Map}}class Iw{constructor(i,r){this.logger=i,this.core=r}}let xw=class extends Hi{constructor(i,r){super(),this.relayer=i,this.logger=r}},Pw=class extends Hi{constructor(i){super()}},Sw=class{constructor(i,r,n,a){this.core=i,this.logger=r,this.name=n}};class Cw extends Hi{constructor(i,r){super(),this.relayer=i,this.logger=r}}let Ow=class extends Hi{constructor(i,r){super(),this.core=i,this.logger=r}},Rw=class{constructor(i,r){this.projectId=i,this.logger=r}},Tw=class{constructor(i){this.opts=i,this.protocol="wc",this.version=2}},Aw=class{constructor(i){this.client=i}};var bc={},Ul={};(function(c){Object.defineProperty(c,"__esModule",{value:!0});var i=V0,r=Cl;c.DIGEST_LENGTH=64,c.BLOCK_SIZE=128;var n=function(){function y(){this.digestLength=c.DIGEST_LENGTH,this.blockSize=c.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return y.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},y.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},y.prototype.clean=function(){r.wipe(this._buffer),r.wipe(this._tempHi),r.wipe(this._tempLo),this.reset()},y.prototype.update=function(w,v){if(v===void 0&&(v=w.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var E=0;if(this._bytesHashed+=v,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=w[E++],v--;this._bufferLength===this.blockSize&&(l(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(v>=this.blockSize&&(E=l(this._tempHi,this._tempLo,this._stateHi,this._stateLo,w,E,v),v%=this.blockSize);v>0;)this._buffer[this._bufferLength++]=w[E++],v--;return this},y.prototype.finish=function(w){if(!this._finished){var v=this._bytesHashed,E=this._bufferLength,C=v/536870912|0,T=v<<3,j=v%128<112?128:256;this._buffer[E]=128;for(var D=E+1;D0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},y.prototype.restoreState=function(w){return this._stateHi.set(w.stateHi),this._stateLo.set(w.stateLo),this._bufferLength=w.bufferLength,w.buffer&&this._buffer.set(w.buffer),this._bytesHashed=w.bytesHashed,this._finished=!1,this},y.prototype.cleanSavedState=function(w){r.wipe(w.stateHi),r.wipe(w.stateLo),w.buffer&&r.wipe(w.buffer),w.bufferLength=0,w.bytesHashed=0},y}();c.SHA512=n;var a=new Int32Array([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 l(y,w,v,E,C,T,j){for(var D=v[0],V=v[1],re=v[2],ce=v[3],ue=v[4],he=v[5],fe=v[6],pe=v[7],$=E[0],k=E[1],W=E[2],ve=E[3],te=E[4],Ee=E[5],Re=E[6],et=E[7],R,M,je,Te,J,F,K,B;j>=128;){for(var ut=0;ut<16;ut++){var ke=8*ut+T;y[ut]=i.readUint32BE(C,ke),w[ut]=i.readUint32BE(C,ke+4)}for(var ut=0;ut<80;ut++){var Lr=D,_e=V,It=re,N=ce,A=ue,S=he,u=fe,b=pe,Z=$,oe=k,me=W,Ae=ve,$e=te,xe=Ee,xt=Re,mt=et;if(R=pe,M=et,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=(ue>>>14|te<<18)^(ue>>>18|te<<14)^(te>>>9|ue<<23),M=(te>>>14|ue<<18)^(te>>>18|ue<<14)^(ue>>>9|te<<23),J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,R=ue&he^~ue&fe,M=te&Ee^~te&Re,J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,R=a[ut*2],M=a[ut*2+1],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,R=y[ut%16],M=w[ut%16],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,je=K&65535|B<<16,Te=J&65535|F<<16,R=je,M=Te,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=(D>>>28|$<<4)^($>>>2|D<<30)^($>>>7|D<<25),M=($>>>28|D<<4)^(D>>>2|$<<30)^(D>>>7|$<<25),J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,R=D&V^D&re^V&re,M=$&k^$&W^k&W,J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,b=K&65535|B<<16,mt=J&65535|F<<16,R=N,M=Ae,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=je,M=Te,J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,N=K&65535|B<<16,Ae=J&65535|F<<16,V=Lr,re=_e,ce=It,ue=N,he=A,fe=S,pe=u,D=b,k=Z,W=oe,ve=me,te=Ae,Ee=$e,Re=xe,et=xt,$=mt,ut%16===15)for(var ke=0;ke<16;ke++)R=y[ke],M=w[ke],J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=y[(ke+9)%16],M=w[(ke+9)%16],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,je=y[(ke+1)%16],Te=w[(ke+1)%16],R=(je>>>1|Te<<31)^(je>>>8|Te<<24)^je>>>7,M=(Te>>>1|je<<31)^(Te>>>8|je<<24)^(Te>>>7|je<<25),J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,je=y[(ke+14)%16],Te=w[(ke+14)%16],R=(je>>>19|Te<<13)^(Te>>>29|je<<3)^je>>>6,M=(Te>>>19|je<<13)^(je>>>29|Te<<3)^(Te>>>6|je<<26),J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,y[ke]=K&65535|B<<16,w[ke]=J&65535|F<<16}R=D,M=$,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[0],M=E[0],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[0]=D=K&65535|B<<16,E[0]=$=J&65535|F<<16,R=V,M=k,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[1],M=E[1],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[1]=V=K&65535|B<<16,E[1]=k=J&65535|F<<16,R=re,M=W,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[2],M=E[2],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[2]=re=K&65535|B<<16,E[2]=W=J&65535|F<<16,R=ce,M=ve,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[3],M=E[3],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[3]=ce=K&65535|B<<16,E[3]=ve=J&65535|F<<16,R=ue,M=te,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[4],M=E[4],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[4]=ue=K&65535|B<<16,E[4]=te=J&65535|F<<16,R=he,M=Ee,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[5],M=E[5],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[5]=he=K&65535|B<<16,E[5]=Ee=J&65535|F<<16,R=fe,M=Re,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[6],M=E[6],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[6]=fe=K&65535|B<<16,E[6]=Re=J&65535|F<<16,R=pe,M=et,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[7],M=E[7],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[7]=pe=K&65535|B<<16,E[7]=et=J&65535|F<<16,T+=128,j-=128}return T}function d(y){var w=new n;w.update(y);var v=w.digest();return w.clean(),v}c.hash=d})(Ul);(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.convertSecretKeyToX25519=c.convertPublicKeyToX25519=c.verify=c.sign=c.extractPublicKeyFromSecretKey=c.generateKeyPair=c.generateKeyPairFromSeed=c.SEED_LENGTH=c.SECRET_KEY_LENGTH=c.PUBLIC_KEY_LENGTH=c.SIGNATURE_LENGTH=void 0;const i=Ol,r=Ul,n=Cl;c.SIGNATURE_LENGTH=64,c.PUBLIC_KEY_LENGTH=32,c.SECRET_KEY_LENGTH=64,c.SEED_LENGTH=32;function a(N){const A=new Float64Array(16);if(N)for(let S=0;S>16&1),S[oe-1]&=65535;S[15]=u[15]-32767-(S[14]>>16&1);const Z=S[15]>>16&1;S[14]&=65535,V(u,S,1-Z)}for(let b=0;b<16;b++)N[2*b]=u[b]&255,N[2*b+1]=u[b]>>8}function ce(N,A){let S=0;for(let u=0;u<32;u++)S|=N[u]^A[u];return(1&S-1>>>8)-1}function ue(N,A){const S=new Uint8Array(32),u=new Uint8Array(32);return re(S,N),re(u,A),ce(S,u)}function he(N){const A=new Uint8Array(32);return re(A,N),A[0]&1}function fe(N,A){for(let S=0;S<16;S++)N[S]=A[2*S]+(A[2*S+1]<<8);N[15]&=32767}function pe(N,A,S){for(let u=0;u<16;u++)N[u]=A[u]+S[u]}function $(N,A,S){for(let u=0;u<16;u++)N[u]=A[u]-S[u]}function k(N,A,S){let u,b,Z=0,oe=0,me=0,Ae=0,$e=0,xe=0,xt=0,mt=0,nt=0,Le=0,Je=0,Qe=0,at=0,Ue=0,Ye=0,Ne=0,Ke=0,ht=0,ze=0,Pt=0,Dt=0,Ht=0,kt=0,zt=0,Wt=0,rr=0,qr=0,Jt=0,Vr=0,oi=0,xi=0,lt=S[0],tt=S[1],ft=S[2],pt=S[3],ot=S[4],rt=S[5],St=S[6],Ct=S[7],dt=S[8],Ot=S[9],gt=S[10],wt=S[11],vt=S[12],We=S[13],Rt=S[14],Tt=S[15];u=A[0],Z+=u*lt,oe+=u*tt,me+=u*ft,Ae+=u*pt,$e+=u*ot,xe+=u*rt,xt+=u*St,mt+=u*Ct,nt+=u*dt,Le+=u*Ot,Je+=u*gt,Qe+=u*wt,at+=u*vt,Ue+=u*We,Ye+=u*Rt,Ne+=u*Tt,u=A[1],oe+=u*lt,me+=u*tt,Ae+=u*ft,$e+=u*pt,xe+=u*ot,xt+=u*rt,mt+=u*St,nt+=u*Ct,Le+=u*dt,Je+=u*Ot,Qe+=u*gt,at+=u*wt,Ue+=u*vt,Ye+=u*We,Ne+=u*Rt,Ke+=u*Tt,u=A[2],me+=u*lt,Ae+=u*tt,$e+=u*ft,xe+=u*pt,xt+=u*ot,mt+=u*rt,nt+=u*St,Le+=u*Ct,Je+=u*dt,Qe+=u*Ot,at+=u*gt,Ue+=u*wt,Ye+=u*vt,Ne+=u*We,Ke+=u*Rt,ht+=u*Tt,u=A[3],Ae+=u*lt,$e+=u*tt,xe+=u*ft,xt+=u*pt,mt+=u*ot,nt+=u*rt,Le+=u*St,Je+=u*Ct,Qe+=u*dt,at+=u*Ot,Ue+=u*gt,Ye+=u*wt,Ne+=u*vt,Ke+=u*We,ht+=u*Rt,ze+=u*Tt,u=A[4],$e+=u*lt,xe+=u*tt,xt+=u*ft,mt+=u*pt,nt+=u*ot,Le+=u*rt,Je+=u*St,Qe+=u*Ct,at+=u*dt,Ue+=u*Ot,Ye+=u*gt,Ne+=u*wt,Ke+=u*vt,ht+=u*We,ze+=u*Rt,Pt+=u*Tt,u=A[5],xe+=u*lt,xt+=u*tt,mt+=u*ft,nt+=u*pt,Le+=u*ot,Je+=u*rt,Qe+=u*St,at+=u*Ct,Ue+=u*dt,Ye+=u*Ot,Ne+=u*gt,Ke+=u*wt,ht+=u*vt,ze+=u*We,Pt+=u*Rt,Dt+=u*Tt,u=A[6],xt+=u*lt,mt+=u*tt,nt+=u*ft,Le+=u*pt,Je+=u*ot,Qe+=u*rt,at+=u*St,Ue+=u*Ct,Ye+=u*dt,Ne+=u*Ot,Ke+=u*gt,ht+=u*wt,ze+=u*vt,Pt+=u*We,Dt+=u*Rt,Ht+=u*Tt,u=A[7],mt+=u*lt,nt+=u*tt,Le+=u*ft,Je+=u*pt,Qe+=u*ot,at+=u*rt,Ue+=u*St,Ye+=u*Ct,Ne+=u*dt,Ke+=u*Ot,ht+=u*gt,ze+=u*wt,Pt+=u*vt,Dt+=u*We,Ht+=u*Rt,kt+=u*Tt,u=A[8],nt+=u*lt,Le+=u*tt,Je+=u*ft,Qe+=u*pt,at+=u*ot,Ue+=u*rt,Ye+=u*St,Ne+=u*Ct,Ke+=u*dt,ht+=u*Ot,ze+=u*gt,Pt+=u*wt,Dt+=u*vt,Ht+=u*We,kt+=u*Rt,zt+=u*Tt,u=A[9],Le+=u*lt,Je+=u*tt,Qe+=u*ft,at+=u*pt,Ue+=u*ot,Ye+=u*rt,Ne+=u*St,Ke+=u*Ct,ht+=u*dt,ze+=u*Ot,Pt+=u*gt,Dt+=u*wt,Ht+=u*vt,kt+=u*We,zt+=u*Rt,Wt+=u*Tt,u=A[10],Je+=u*lt,Qe+=u*tt,at+=u*ft,Ue+=u*pt,Ye+=u*ot,Ne+=u*rt,Ke+=u*St,ht+=u*Ct,ze+=u*dt,Pt+=u*Ot,Dt+=u*gt,Ht+=u*wt,kt+=u*vt,zt+=u*We,Wt+=u*Rt,rr+=u*Tt,u=A[11],Qe+=u*lt,at+=u*tt,Ue+=u*ft,Ye+=u*pt,Ne+=u*ot,Ke+=u*rt,ht+=u*St,ze+=u*Ct,Pt+=u*dt,Dt+=u*Ot,Ht+=u*gt,kt+=u*wt,zt+=u*vt,Wt+=u*We,rr+=u*Rt,qr+=u*Tt,u=A[12],at+=u*lt,Ue+=u*tt,Ye+=u*ft,Ne+=u*pt,Ke+=u*ot,ht+=u*rt,ze+=u*St,Pt+=u*Ct,Dt+=u*dt,Ht+=u*Ot,kt+=u*gt,zt+=u*wt,Wt+=u*vt,rr+=u*We,qr+=u*Rt,Jt+=u*Tt,u=A[13],Ue+=u*lt,Ye+=u*tt,Ne+=u*ft,Ke+=u*pt,ht+=u*ot,ze+=u*rt,Pt+=u*St,Dt+=u*Ct,Ht+=u*dt,kt+=u*Ot,zt+=u*gt,Wt+=u*wt,rr+=u*vt,qr+=u*We,Jt+=u*Rt,Vr+=u*Tt,u=A[14],Ye+=u*lt,Ne+=u*tt,Ke+=u*ft,ht+=u*pt,ze+=u*ot,Pt+=u*rt,Dt+=u*St,Ht+=u*Ct,kt+=u*dt,zt+=u*Ot,Wt+=u*gt,rr+=u*wt,qr+=u*vt,Jt+=u*We,Vr+=u*Rt,oi+=u*Tt,u=A[15],Ne+=u*lt,Ke+=u*tt,ht+=u*ft,ze+=u*pt,Pt+=u*ot,Dt+=u*rt,Ht+=u*St,kt+=u*Ct,zt+=u*dt,Wt+=u*Ot,rr+=u*gt,qr+=u*wt,Jt+=u*vt,Vr+=u*We,oi+=u*Rt,xi+=u*Tt,Z+=38*Ke,oe+=38*ht,me+=38*ze,Ae+=38*Pt,$e+=38*Dt,xe+=38*Ht,xt+=38*kt,mt+=38*zt,nt+=38*Wt,Le+=38*rr,Je+=38*qr,Qe+=38*Jt,at+=38*Vr,Ue+=38*oi,Ye+=38*xi,b=1,u=Z+b+65535,b=Math.floor(u/65536),Z=u-b*65536,u=oe+b+65535,b=Math.floor(u/65536),oe=u-b*65536,u=me+b+65535,b=Math.floor(u/65536),me=u-b*65536,u=Ae+b+65535,b=Math.floor(u/65536),Ae=u-b*65536,u=$e+b+65535,b=Math.floor(u/65536),$e=u-b*65536,u=xe+b+65535,b=Math.floor(u/65536),xe=u-b*65536,u=xt+b+65535,b=Math.floor(u/65536),xt=u-b*65536,u=mt+b+65535,b=Math.floor(u/65536),mt=u-b*65536,u=nt+b+65535,b=Math.floor(u/65536),nt=u-b*65536,u=Le+b+65535,b=Math.floor(u/65536),Le=u-b*65536,u=Je+b+65535,b=Math.floor(u/65536),Je=u-b*65536,u=Qe+b+65535,b=Math.floor(u/65536),Qe=u-b*65536,u=at+b+65535,b=Math.floor(u/65536),at=u-b*65536,u=Ue+b+65535,b=Math.floor(u/65536),Ue=u-b*65536,u=Ye+b+65535,b=Math.floor(u/65536),Ye=u-b*65536,u=Ne+b+65535,b=Math.floor(u/65536),Ne=u-b*65536,Z+=b-1+37*(b-1),b=1,u=Z+b+65535,b=Math.floor(u/65536),Z=u-b*65536,u=oe+b+65535,b=Math.floor(u/65536),oe=u-b*65536,u=me+b+65535,b=Math.floor(u/65536),me=u-b*65536,u=Ae+b+65535,b=Math.floor(u/65536),Ae=u-b*65536,u=$e+b+65535,b=Math.floor(u/65536),$e=u-b*65536,u=xe+b+65535,b=Math.floor(u/65536),xe=u-b*65536,u=xt+b+65535,b=Math.floor(u/65536),xt=u-b*65536,u=mt+b+65535,b=Math.floor(u/65536),mt=u-b*65536,u=nt+b+65535,b=Math.floor(u/65536),nt=u-b*65536,u=Le+b+65535,b=Math.floor(u/65536),Le=u-b*65536,u=Je+b+65535,b=Math.floor(u/65536),Je=u-b*65536,u=Qe+b+65535,b=Math.floor(u/65536),Qe=u-b*65536,u=at+b+65535,b=Math.floor(u/65536),at=u-b*65536,u=Ue+b+65535,b=Math.floor(u/65536),Ue=u-b*65536,u=Ye+b+65535,b=Math.floor(u/65536),Ye=u-b*65536,u=Ne+b+65535,b=Math.floor(u/65536),Ne=u-b*65536,Z+=b-1+37*(b-1),N[0]=Z,N[1]=oe,N[2]=me,N[3]=Ae,N[4]=$e,N[5]=xe,N[6]=xt,N[7]=mt,N[8]=nt,N[9]=Le,N[10]=Je,N[11]=Qe,N[12]=at,N[13]=Ue,N[14]=Ye,N[15]=Ne}function W(N,A){k(N,A,A)}function ve(N,A){const S=a();let u;for(u=0;u<16;u++)S[u]=A[u];for(u=253;u>=0;u--)W(S,S),u!==2&&u!==4&&k(S,S,A);for(u=0;u<16;u++)N[u]=S[u]}function te(N,A){const S=a();let u;for(u=0;u<16;u++)S[u]=A[u];for(u=250;u>=0;u--)W(S,S),u!==1&&k(S,S,A);for(u=0;u<16;u++)N[u]=S[u]}function Ee(N,A){const S=a(),u=a(),b=a(),Z=a(),oe=a(),me=a(),Ae=a(),$e=a(),xe=a();$(S,N[1],N[0]),$(xe,A[1],A[0]),k(S,S,xe),pe(u,N[0],N[1]),pe(xe,A[0],A[1]),k(u,u,xe),k(b,N[3],A[3]),k(b,b,v),k(Z,N[2],A[2]),pe(Z,Z,Z),$(oe,u,S),$(me,Z,b),pe(Ae,Z,b),pe($e,u,S),k(N[0],oe,me),k(N[1],$e,Ae),k(N[2],Ae,me),k(N[3],oe,$e)}function Re(N,A,S){for(let u=0;u<4;u++)V(N[u],A[u],S)}function et(N,A){const S=a(),u=a(),b=a();ve(b,A[2]),k(S,A[0],b),k(u,A[1],b),re(N,u),N[31]^=he(S)<<7}function R(N,A,S){j(N[0],d),j(N[1],y),j(N[2],y),j(N[3],d);for(let u=255;u>=0;--u){const b=S[u/8|0]>>(u&7)&1;Re(N,A,b),Ee(A,N),Ee(N,N),Re(N,A,b)}}function M(N,A){const S=[a(),a(),a(),a()];j(S[0],E),j(S[1],C),j(S[2],y),k(S[3],E,C),R(N,S,A)}function je(N){if(N.length!==c.SEED_LENGTH)throw new Error(`ed25519: seed must be ${c.SEED_LENGTH} bytes`);const A=(0,r.hash)(N);A[0]&=248,A[31]&=127,A[31]|=64;const S=new Uint8Array(32),u=[a(),a(),a(),a()];M(u,A),et(S,u);const b=new Uint8Array(64);return b.set(N),b.set(S,32),{publicKey:S,secretKey:b}}c.generateKeyPairFromSeed=je;function Te(N){const A=(0,i.randomBytes)(32,N),S=je(A);return(0,n.wipe)(A),S}c.generateKeyPair=Te;function J(N){if(N.length!==c.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${c.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(N.subarray(32))}c.extractPublicKeyFromSecretKey=J;const F=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 K(N,A){let S,u,b,Z;for(u=63;u>=32;--u){for(S=0,b=u-32,Z=u-12;b>4)*F[b],S=A[b]>>8,A[b]&=255;for(b=0;b<32;b++)A[b]-=S*F[b];for(u=0;u<32;u++)A[u+1]+=A[u]>>8,N[u]=A[u]&255}function B(N){const A=new Float64Array(64);for(let S=0;S<64;S++)A[S]=N[S];for(let S=0;S<64;S++)N[S]=0;K(N,A)}function ut(N,A){const S=new Float64Array(64),u=[a(),a(),a(),a()],b=(0,r.hash)(N.subarray(0,32));b[0]&=248,b[31]&=127,b[31]|=64;const Z=new Uint8Array(64);Z.set(b.subarray(32),32);const oe=new r.SHA512;oe.update(Z.subarray(32)),oe.update(A);const me=oe.digest();oe.clean(),B(me),M(u,me),et(Z,u),oe.reset(),oe.update(Z.subarray(0,32)),oe.update(N.subarray(32)),oe.update(A);const Ae=oe.digest();B(Ae);for(let $e=0;$e<32;$e++)S[$e]=me[$e];for(let $e=0;$e<32;$e++)for(let xe=0;xe<32;xe++)S[$e+xe]+=Ae[$e]*b[xe];return K(Z.subarray(32),S),Z}c.sign=ut;function ke(N,A){const S=a(),u=a(),b=a(),Z=a(),oe=a(),me=a(),Ae=a();return j(N[2],y),fe(N[1],A),W(b,N[1]),k(Z,b,w),$(b,b,N[2]),pe(Z,N[2],Z),W(oe,Z),W(me,oe),k(Ae,me,oe),k(S,Ae,b),k(S,S,Z),te(S,S),k(S,S,b),k(S,S,Z),k(S,S,Z),k(N[0],S,Z),W(u,N[0]),k(u,u,Z),ue(u,b)&&k(N[0],N[0],T),W(u,N[0]),k(u,u,Z),ue(u,b)?-1:(he(N[0])===A[31]>>7&&$(N[0],d,N[0]),k(N[3],N[0],N[1]),0)}function Lr(N,A,S){const u=new Uint8Array(32),b=[a(),a(),a(),a()],Z=[a(),a(),a(),a()];if(S.length!==c.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${c.SIGNATURE_LENGTH} bytes`);if(ke(Z,N))return!1;const oe=new r.SHA512;oe.update(S.subarray(0,32)),oe.update(N),oe.update(A);const me=oe.digest();return B(me),R(b,Z,me),M(Z,S.subarray(32)),Ee(b,Z),et(u,b),!ce(S,u)}c.verify=Lr;function _e(N){let A=[a(),a(),a(),a()];if(ke(A,N))throw new Error("Ed25519: invalid public key");let S=a(),u=a(),b=A[1];pe(S,y,b),$(u,y,b),ve(u,u),k(S,S,u);let Z=new Uint8Array(32);return re(Z,S),Z}c.convertPublicKeyToX25519=_e;function It(N){const A=(0,r.hash)(N.subarray(0,32));A[0]&=248,A[31]&=127,A[31]|=64;const S=new Uint8Array(A.subarray(0,32));return(0,n.wipe)(A),S}c.convertSecretKeyToX25519=It})(bc);const Nw="EdDSA",$w="JWT",Hl=".",kl="base64url",Dw="utf8",Lw="utf8",qw=":",zw="did",Mw="key",Fh="base58btc",jw="z",Uw="K36",Hw=32;function fa(c){return ga(gc(Bs(c),Dw),kl)}function Kl(c){const i=gc(Uw,Fh),r=jw+ga(F0([i,c]),Fh);return[zw,Mw,r].join(qw)}function kw(c){return ga(c,kl)}function Kw(c){return gc([fa(c.header),fa(c.payload)].join(Hl),Lw)}function Vw(c){return[fa(c.header),fa(c.payload),kw(c.signature)].join(Hl)}function Bh(c=Ol.randomBytes(Hw)){return bc.generateKeyPairFromSeed(c)}async function Fw(c,i,r,n,a=ie.fromMiliseconds(Date.now())){const l={alg:Nw,typ:$w},d=Kl(n.publicKey),y=a+r,w={iss:d,sub:c,aud:i,iat:a,exp:y},v=Kw({header:l,payload:w}),E=bc.sign(n.secretKey,v);return Vw({header:l,payload:w,signature:E})}const Bw=()=>typeof WebSocket<"u"?WebSocket:typeof global<"u"&&typeof global.WebSocket<"u"?global.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:require("ws"),Gw=()=>typeof WebSocket<"u"||typeof global<"u"&&typeof global.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u",Gh=c=>c.split("?")[0],Wh=10,Ww=Bw();class Jw{constructor(i){if(this.url=i,this.events=new Kr.EventEmitter,this.registering=!1,!Ah(i))throw new Error(`Provided URL is not compatible with WebSocket connection: ${i}`);this.url=i}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}off(i,r){this.events.off(i,r)}removeListener(i,r){this.events.removeListener(i,r)}async open(i=this.url){await this.register(i)}async close(){return new Promise((i,r)=>{if(typeof this.socket>"u"){r(new Error("Connection already closed"));return}this.socket.onclose=n=>{this.onClose(n),i()},this.socket.close()})}async send(i,r){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(Bs(i))}catch(n){this.onError(i.id,n)}}register(i=this.url){if(!Ah(i))throw new Error(`Provided URL is not compatible with WebSocket connection: ${i}`);if(this.registering){const r=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=r||this.events.listenerCount("open")>=r)&&this.events.setMaxListeners(r+1),new Promise((n,a)=>{this.events.once("register_error",l=>{this.resetMaxListeners(),a(l)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return a(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=i,this.registering=!0,new Promise((r,n)=>{const a=Nm.isReactNative()?void 0:{rejectUnauthorized:!$m(i)},l=new Ww(i,[],a);Gw()?l.onerror=d=>{const y=d;n(this.emitError(y.error))}:l.on("error",d=>{n(this.emitError(d))}),l.onopen=()=>{this.onOpen(l),r(l)}})}onOpen(i){i.onmessage=r=>this.onPayload(r),i.onclose=r=>this.onClose(r),this.socket=i,this.registering=!1,this.events.emit("open")}onClose(i){this.socket=void 0,this.registering=!1,this.events.emit("close",i)}onPayload(i){if(typeof i.data>"u")return;const r=typeof i.data=="string"?va(i.data):i.data;this.events.emit("payload",r)}onError(i,r){const n=this.parseError(r),a=n.message||n.toString(),l=yc(i,a);this.events.emit("payload",l)}parseError(i,r=this.url){return Dm(i,Gh(r),"WS")}resetMaxListeners(){this.events.getMaxListeners()>Wh&&this.events.setMaxListeners(Wh)}emitError(i){const r=this.parseError(new Error((i==null?void 0:i.message)||`WebSocket connection failed for host: ${Gh(this.url)}`));return this.events.emit("register_error",r),r}}var pa={exports:{}};pa.exports;(function(c,i){var r=200,n="__lodash_hash_undefined__",a=1,l=2,d=9007199254740991,y="[object Arguments]",w="[object Array]",v="[object AsyncFunction]",E="[object Boolean]",C="[object Date]",T="[object Error]",j="[object Function]",D="[object GeneratorFunction]",V="[object Map]",re="[object Number]",ce="[object Null]",ue="[object Object]",he="[object Promise]",fe="[object Proxy]",pe="[object RegExp]",$="[object Set]",k="[object String]",W="[object Symbol]",ve="[object Undefined]",te="[object WeakMap]",Ee="[object ArrayBuffer]",Re="[object DataView]",et="[object Float32Array]",R="[object Float64Array]",M="[object Int8Array]",je="[object Int16Array]",Te="[object Int32Array]",J="[object Uint8Array]",F="[object Uint8ClampedArray]",K="[object Uint16Array]",B="[object Uint32Array]",ut=/[\\^$.*+?()[\]{}|]/g,ke=/^\[object .+?Constructor\]$/,Lr=/^(?:0|[1-9]\d*)$/,_e={};_e[et]=_e[R]=_e[M]=_e[je]=_e[Te]=_e[J]=_e[F]=_e[K]=_e[B]=!0,_e[y]=_e[w]=_e[Ee]=_e[E]=_e[Re]=_e[C]=_e[T]=_e[j]=_e[V]=_e[re]=_e[ue]=_e[pe]=_e[$]=_e[k]=_e[te]=!1;var It=typeof ea=="object"&&ea&&ea.Object===Object&&ea,N=typeof self=="object"&&self&&self.Object===Object&&self,A=It||N||Function("return this")(),S=i&&!i.nodeType&&i,u=S&&!0&&c&&!c.nodeType&&c,b=u&&u.exports===S,Z=b&&It.process,oe=function(){try{return Z&&Z.binding&&Z.binding("util")}catch{}}(),me=oe&&oe.isTypedArray;function Ae(g,I){for(var U=-1,Q=g==null?0:g.length,Fe=0,de=[];++U-1}function Sa(g,I){var U=this.__data__,Q=Pi(U,g);return Q<0?(++this.size,U.push([g,I])):U[Q][1]=I,this}yr.prototype.clear=Ea,yr.prototype.delete=Ia,yr.prototype.get=xa,yr.prototype.has=Pa,yr.prototype.set=Sa;function Fr(g){var I=-1,U=g==null?0:g.length;for(this.clear();++IAt))return!1;var Be=de.get(g);if(Be&&de.get(I))return Be==I;var _t=-1,ir=!0,Nt=U&l?new Fi:void 0;for(de.set(g,I),de.set(I,g);++_t-1&&g%1==0&&g-1&&g%1==0&&g<=d}function pn(g){var I=typeof g;return g!=null&&(I=="object"||I=="function")}function Oi(g){return g!=null&&typeof g=="object"}var dn=me?mt(me):en;function ja(g){return za(g)?Xs(g):tn(g)}function Ve(){return[]}function He(){return!1}c.exports=Ma})(pa,pa.exports);var Qw=pa.exports;const Yw=B0(Qw);var Xw={};function Zw(c,i){if(c.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,fe=new Uint8Array(he);ce!==ue;){for(var pe=D[ce],$=0,k=he-1;(pe!==0||$>>0,fe[k]=pe%y>>>0,pe=pe/y>>>0;if(pe!==0)throw new Error("Non-zero carry");re=$,ce++}for(var W=he-re;W!==he&&fe[W]===0;)W++;for(var ve=w.repeat(V);W>>0,he=new Uint8Array(ue);D[V];){var fe=r[D.charCodeAt(V)];if(fe===255)return;for(var pe=0,$=ue-1;(fe!==0||pe>>0,he[$]=fe%256>>>0,fe=fe/256>>>0;if(fe!==0)throw new Error("Non-zero carry");ce=pe,V++}if(D[V]!==" "){for(var k=ue-ce;k!==ue&&he[k]===0;)k++;for(var W=new Uint8Array(re+(ue-k)),ve=re;k!==ue;)W[ve++]=he[k++];return W}}}function j(D){var V=T(D);if(V)return V;throw new Error(`Non-${i} character`)}return{encode:C,decodeUnsafe:T,decode:j}}var e_=Zw,t_=e_;const Vl=c=>{if(c instanceof Uint8Array&&c.constructor.name==="Uint8Array")return c;if(c instanceof ArrayBuffer)return new Uint8Array(c);if(ArrayBuffer.isView(c))return new Uint8Array(c.buffer,c.byteOffset,c.byteLength);throw new Error("Unknown type, must be binary type")},r_=c=>new TextEncoder().encode(c),i_=c=>new TextDecoder().decode(c);class s_{constructor(i,r,n){this.name=i,this.prefix=r,this.baseEncode=n}encode(i){if(i instanceof Uint8Array)return`${this.prefix}${this.baseEncode(i)}`;throw Error("Unknown type, must be binary type")}}class n_{constructor(i,r,n){if(this.name=i,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(i){if(typeof i=="string"){if(i.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(i)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(i.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(i){return Fl(this,i)}}class a_{constructor(i){this.decoders=i}or(i){return Fl(this,i)}decode(i){const r=i[0],n=this.decoders[r];if(n)return n.decode(i);throw RangeError(`Unable to decode multibase string ${JSON.stringify(i)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const Fl=(c,i)=>new a_({...c.decoders||{[c.prefix]:c},...i.decoders||{[i.prefix]:i}});class o_{constructor(i,r,n,a){this.name=i,this.prefix=r,this.baseEncode=n,this.baseDecode=a,this.encoder=new s_(i,r,n),this.decoder=new n_(i,r,a)}encode(i){return this.encoder.encode(i)}decode(i){return this.decoder.decode(i)}}const ya=({name:c,prefix:i,encode:r,decode:n})=>new o_(c,i,r,n),Ws=({prefix:c,name:i,alphabet:r})=>{const{encode:n,decode:a}=t_(r,i);return ya({prefix:c,name:i,encode:n,decode:l=>Vl(a(l))})},c_=(c,i,r,n)=>{const a={};for(let E=0;E=8&&(y-=8,d[v++]=255&w>>y)}if(y>=r||255&w<<8-y)throw new SyntaxError("Unexpected end of data");return d},u_=(c,i,r)=>{const n=i[i.length-1]==="=",a=(1<r;)d-=r,l+=i[a&y>>d];if(d&&(l+=i[a&y<ya({prefix:i,name:c,encode(a){return u_(a,n,r)},decode(a){return c_(a,n,r,c)}}),h_=ya({prefix:"\0",name:"identity",encode:c=>i_(c),decode:c=>r_(c)});var l_=Object.freeze({__proto__:null,identity:h_});const f_=Vt({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var p_=Object.freeze({__proto__:null,base2:f_});const d_=Vt({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var g_=Object.freeze({__proto__:null,base8:d_});const v_=Ws({prefix:"9",name:"base10",alphabet:"0123456789"});var y_=Object.freeze({__proto__:null,base10:v_});const m_=Vt({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),w_=Vt({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var __=Object.freeze({__proto__:null,base16:m_,base16upper:w_});const b_=Vt({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),E_=Vt({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),I_=Vt({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),x_=Vt({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),P_=Vt({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),S_=Vt({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),C_=Vt({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),O_=Vt({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),R_=Vt({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var T_=Object.freeze({__proto__:null,base32:b_,base32upper:E_,base32pad:I_,base32padupper:x_,base32hex:P_,base32hexupper:S_,base32hexpad:C_,base32hexpadupper:O_,base32z:R_});const A_=Ws({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),N_=Ws({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var $_=Object.freeze({__proto__:null,base36:A_,base36upper:N_});const D_=Ws({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),L_=Ws({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var q_=Object.freeze({__proto__:null,base58btc:D_,base58flickr:L_});const z_=Vt({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),M_=Vt({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),j_=Vt({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),U_=Vt({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var H_=Object.freeze({__proto__:null,base64:z_,base64pad:M_,base64url:j_,base64urlpad:U_});const Bl=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),k_=Bl.reduce((c,i,r)=>(c[r]=i,c),[]),K_=Bl.reduce((c,i,r)=>(c[i.codePointAt(0)]=r,c),[]);function V_(c){return c.reduce((i,r)=>(i+=k_[r],i),"")}function F_(c){const i=[];for(const r of c){const n=K_[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);i.push(n)}return new Uint8Array(i)}const B_=ya({prefix:"🚀",name:"base256emoji",encode:V_,decode:F_});var G_=Object.freeze({__proto__:null,base256emoji:B_}),W_=Gl,Jh=128,J_=127,Q_=~J_,Y_=Math.pow(2,31);function Gl(c,i,r){i=i||[],r=r||0;for(var n=r;c>=Y_;)i[r++]=c&255|Jh,c/=128;for(;c&Q_;)i[r++]=c&255|Jh,c>>>=7;return i[r]=c|0,Gl.bytes=r-n+1,i}var X_=hc,Z_=128,Qh=127;function hc(c,n){var r=0,n=n||0,a=0,l=n,d,y=c.length;do{if(l>=y)throw hc.bytes=0,new RangeError("Could not decode varint");d=c[l++],r+=a<28?(d&Qh)<=Z_);return hc.bytes=l-n,r}var e1=Math.pow(2,7),t1=Math.pow(2,14),r1=Math.pow(2,21),i1=Math.pow(2,28),s1=Math.pow(2,35),n1=Math.pow(2,42),a1=Math.pow(2,49),o1=Math.pow(2,56),c1=Math.pow(2,63),u1=function(c){return c(Wl.encode(c,i,r),i),Xh=c=>Wl.encodingLength(c),lc=(c,i)=>{const r=i.byteLength,n=Xh(c),a=n+Xh(r),l=new Uint8Array(a+r);return Yh(c,l,0),Yh(r,l,n),l.set(i,a),new l1(c,r,i,l)};class l1{constructor(i,r,n,a){this.code=i,this.size=r,this.digest=n,this.bytes=a}}const Jl=({name:c,code:i,encode:r})=>new f1(c,i,r);class f1{constructor(i,r,n){this.name=i,this.code=r,this.encode=n}digest(i){if(i instanceof Uint8Array){const r=this.encode(i);return r instanceof Uint8Array?lc(this.code,r):r.then(n=>lc(this.code,n))}else throw Error("Unknown type, must be binary type")}}const Ql=c=>async i=>new Uint8Array(await crypto.subtle.digest(c,i)),p1=Jl({name:"sha2-256",code:18,encode:Ql("SHA-256")}),d1=Jl({name:"sha2-512",code:19,encode:Ql("SHA-512")});var g1=Object.freeze({__proto__:null,sha256:p1,sha512:d1});const Yl=0,v1="identity",Xl=Vl,y1=c=>lc(Yl,Xl(c)),m1={code:Yl,name:v1,encode:Xl,digest:y1};var w1=Object.freeze({__proto__:null,identity:m1});new TextEncoder,new TextDecoder;const Zh={...l_,...p_,...g_,...y_,...__,...T_,...$_,...q_,...H_,...G_};({...g1,...w1});function Zl(c){return globalThis.Buffer!=null?new Uint8Array(c.buffer,c.byteOffset,c.byteLength):c}function _1(c=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?Zl(globalThis.Buffer.allocUnsafe(c)):new Uint8Array(c)}function ef(c,i,r,n){return{name:c,prefix:i,encoder:{name:c,prefix:i,encode:r},decoder:{decode:n}}}const el=ef("utf8","u",c=>"u"+new TextDecoder("utf8").decode(c),c=>new TextEncoder().encode(c.substring(1))),Xo=ef("ascii","a",c=>{let i="a";for(let r=0;r{c=c.substring(1);const i=_1(c.length);for(let r=0;r{if(!this.initialized){const n=await this.getKeyChain();typeof n<"u"&&(this.keychain=n),this.initialized=!0}},this.has=n=>(this.isInitialized(),this.keychain.has(n)),this.set=async(n,a)=>{this.isInitialized(),this.keychain.set(n,a),await this.persist()},this.get=n=>{this.isInitialized();const a=this.keychain.get(n);if(typeof a>"u"){const{message:l}=X("NO_MATCHING_KEY",`${this.name}: ${n}`);throw new Error(l)}return a},this.del=async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()},this.core=i,this.logger=Oe.generateChildLogger(r,this.name)}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(i){await this.core.storage.setItem(this.storageKey,Nl(i))}async getKeyChain(){const i=await this.core.storage.getItem(this.storageKey);return typeof i<"u"?$l(i):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class X1{constructor(i,r,n){this.core=i,this.logger=r,this.name=S1,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=a=>(this.isInitialized(),this.keychain.has(a)),this.getClientId=async()=>{this.isInitialized();const a=await this.getClientSeed(),l=Bh(a);return Kl(l.publicKey)},this.generateKeyPair=()=>{this.isInitialized();const a=J0();return this.setPrivateKey(a.publicKey,a.privateKey)},this.signJWT=async a=>{this.isInitialized();const l=await this.getClientSeed(),d=Bh(l),y=oc();return await Fw(y,a,C1,d)},this.generateSharedKey=(a,l,d)=>{this.isInitialized();const y=this.getPrivateKey(a),w=Q0(y,l);return this.setSymKey(w,d)},this.setSymKey=async(a,l)=>{this.isInitialized();const d=l||Y0(a);return await this.keychain.set(d,a),d},this.deleteKeyPair=async a=>{this.isInitialized(),await this.keychain.del(a)},this.deleteSymKey=async a=>{this.isInitialized(),await this.keychain.del(a)},this.encode=async(a,l,d)=>{this.isInitialized();const y=X0(d),w=Bs(l);if(Sh(y)){const T=y.senderPublicKey,j=y.receiverPublicKey;a=await this.generateSharedKey(T,j)}const v=this.getSymKey(a),{type:E,senderPublicKey:C}=y;return Z0({type:E,symKey:v,message:w,senderPublicKey:C})},this.decode=async(a,l,d)=>{this.isInitialized();const y=em(l,d);if(Sh(y)){const w=y.receiverPublicKey,v=y.senderPublicKey;a=await this.generateSharedKey(w,v)}try{const w=this.getSymKey(a),v=tm({symKey:w,encoded:l});return va(v)}catch(w){this.logger.error(`Failed to decode message from topic: '${a}', clientId: '${await this.getClientId()}'`),this.logger.error(w)}},this.getPayloadType=a=>{const l=Ch(a);return rm(l.type)},this.getPayloadSenderPublicKey=a=>{const l=Ch(a);return l.senderPublicKey?ga(l.senderPublicKey,im):void 0},this.core=i,this.logger=Oe.generateChildLogger(r,this.name),this.keychain=n||new Y1(this.core,this.logger)}get context(){return Oe.getLoggerContext(this.logger)}async setPrivateKey(i,r){return await this.keychain.set(i,r),i}getPrivateKey(i){return this.keychain.get(i)}async getClientSeed(){let i="";try{i=this.keychain.get(tl)}catch{i=oc(),await this.keychain.set(tl,i)}return E1(i,"base16")}getSymKey(i){return this.keychain.get(i)}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class Z1 extends Iw{constructor(i,r){super(i,r),this.logger=i,this.core=r,this.messages=new Map,this.name=T1,this.version=A1,this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const n=await this.getRelayerMessages();typeof n<"u"&&(this.messages=n),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(n){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(n)}finally{this.initialized=!0}}},this.set=async(n,a)=>{this.isInitialized();const l=ls(a);let d=this.messages.get(n);return typeof d>"u"&&(d={}),typeof d[l]<"u"||(d[l]=a,this.messages.set(n,d),await this.persist()),l},this.get=n=>{this.isInitialized();let a=this.messages.get(n);return typeof a>"u"&&(a={}),a},this.has=(n,a)=>{this.isInitialized();const l=this.get(n),d=ls(a);return typeof l[d]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=Oe.generateChildLogger(i,this.name),this.core=r}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(i){await this.core.storage.setItem(this.storageKey,Nl(i))}async getRelayerMessages(){const i=await this.core.storage.getItem(this.storageKey);return typeof i<"u"?$l(i):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class eb extends xw{constructor(i,r){super(i,r),this.relayer=i,this.logger=r,this.events=new Kr.EventEmitter,this.name=$1,this.queue=new Map,this.publishTimeout=ie.toMiliseconds(ie.TEN_SECONDS),this.needsTransportRestart=!1,this.publish=async(n,a,l)=>{var d;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:l}});try{const y=(l==null?void 0:l.ttl)||N1,w=cc(l),v=(l==null?void 0:l.prompt)||!1,E=(l==null?void 0:l.tag)||0,C=(l==null?void 0:l.id)||Lm().toString(),T={topic:n,message:a,opts:{ttl:y,relay:w,prompt:v,tag:E,id:C}},j=setTimeout(()=>this.queue.set(C,T),this.publishTimeout);try{await await Vs(this.rpcPublish(n,a,y,w,v,E,C),this.publishTimeout,"Failed to publish payload, please try again."),this.removeRequestFromQueue(C),this.relayer.events.emit(Gt.publish,T)}catch(D){if(this.logger.debug("Publishing Payload stalled"),this.needsTransportRestart=!0,(d=l==null?void 0:l.internal)!=null&&d.throwOnFailedPublish)throw this.removeRequestFromQueue(C),D;return}finally{clearTimeout(j)}this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:l}})}catch(y){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(y),y}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.relayer=i,this.logger=Oe.generateChildLogger(r,this.name),this.registerEventListeners()}get context(){return Oe.getLoggerContext(this.logger)}rpcPublish(i,r,n,a,l,d,y){var w,v,E,C;const T={method:oa(a.protocol).publish,params:{topic:i,message:r,ttl:n,prompt:l,tag:d},id:y};return _i((w=T.params)==null?void 0:w.prompt)&&((v=T.params)==null||delete v.prompt),_i((E=T.params)==null?void 0:E.tag)&&((C=T.params)==null||delete C.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:T}),this.relayer.request(T)}removeRequestFromQueue(i){this.queue.delete(i)}checkQueue(){this.queue.forEach(async i=>{const{topic:r,message:n,opts:a}=i;await this.publish(r,n,a)})}registerEventListeners(){this.relayer.core.heartbeat.on(ps.HEARTBEAT_EVENTS.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(Gt.connection_stalled);return}this.checkQueue()}),this.relayer.on(Gt.message_ack,i=>{this.removeRequestFromQueue(i.id.toString())})}}class tb{constructor(){this.map=new Map,this.set=(i,r)=>{const n=this.get(i);this.exists(i,r)||this.map.set(i,[...n,r])},this.get=i=>this.map.get(i)||[],this.exists=(i,r)=>this.get(i).includes(r),this.delete=(i,r)=>{if(typeof r>"u"){this.map.delete(i);return}if(!this.map.has(i))return;const n=this.get(i);if(!this.exists(i,r))return;const a=n.filter(l=>l!==r);if(!a.length){this.map.delete(i);return}this.map.set(i,a)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var rb=Object.defineProperty,ib=Object.defineProperties,sb=Object.getOwnPropertyDescriptors,sl=Object.getOwnPropertySymbols,nb=Object.prototype.hasOwnProperty,ab=Object.prototype.propertyIsEnumerable,nl=(c,i,r)=>i in c?rb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,qs=(c,i)=>{for(var r in i||(i={}))nb.call(i,r)&&nl(c,r,i[r]);if(sl)for(var r of sl(i))ab.call(i,r)&&nl(c,r,i[r]);return c},ec=(c,i)=>ib(c,sb(i));class ob extends Cw{constructor(i,r){super(i,r),this.relayer=i,this.logger=r,this.subscriptions=new Map,this.topicMap=new tb,this.events=new Kr.EventEmitter,this.name=k1,this.version=K1,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=bi,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}});try{const l=cc(a),d={topic:n,relay:l};this.pending.set(n,d);const y=await this.rpcSubscribe(n,l);return this.onSubscribe(y,d),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}}),y}catch(l){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(l),l}},this.unsubscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),typeof(a==null?void 0:a.id)<"u"?await this.unsubscribeById(n,a.id,a):await this.unsubscribeByTopic(n,a)},this.isSubscribed=async n=>this.topics.includes(n)?!0:await new Promise((a,l)=>{const d=new ie.Watch;d.start(this.pendingSubscriptionWatchLabel);const y=setInterval(()=>{!this.pending.has(n)&&this.topics.includes(n)&&(clearInterval(y),d.stop(this.pendingSubscriptionWatchLabel),a(!0)),d.elapsed(this.pendingSubscriptionWatchLabel)>=V1&&(clearInterval(y),d.stop(this.pendingSubscriptionWatchLabel),l(new Error("Subscription resolution timeout")))},this.pollingInterval)}).catch(()=>!1),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=i,this.logger=Oe.generateChildLogger(r,this.name),this.clientId=""}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(i,r){let n=!1;try{n=this.getSubscription(i).topic===r}catch{}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(i,r){const n=this.topicMap.get(i);await Promise.all(n.map(async a=>await this.unsubscribeById(i,a,r)))}async unsubscribeById(i,r,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:i,id:r,opts:n}});try{const a=cc(n);await this.rpcUnsubscribe(i,r,a);const l=tr("USER_DISCONNECTED",`${this.name}, ${i}`);await this.onUnsubscribe(i,r,l),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:i,id:r,opts:n}})}catch(a){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(a),a}}async rpcSubscribe(i,r){const n={method:oa(r.protocol).subscribe,params:{topic:i}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{await await Vs(this.relayer.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(Gt.connection_stalled)}return ls(i+this.clientId)}async rpcBatchSubscribe(i){if(!i.length)return;const r=i[0].relay,n={method:oa(r.protocol).batchSubscribe,params:{topics:i.map(a=>a.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{return await await Vs(this.relayer.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(Gt.connection_stalled)}}rpcUnsubscribe(i,r,n){const a={method:oa(n.protocol).unsubscribe,params:{topic:i,id:r}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:a}),this.relayer.request(a)}onSubscribe(i,r){this.setSubscription(i,ec(qs({},r),{id:i})),this.pending.delete(r.topic)}onBatchSubscribe(i){i.length&&i.forEach(r=>{this.setSubscription(r.id,qs({},r)),this.pending.delete(r.topic)})}async onUnsubscribe(i,r,n){this.events.removeAllListeners(r),this.hasSubscription(r,i)&&this.deleteSubscription(r,n),await this.relayer.messages.del(i)}async setRelayerSubscriptions(i){await this.relayer.core.storage.setItem(this.storageKey,i)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(i,r){this.subscriptions.has(i)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:i,subscription:r}),this.addSubscription(i,r))}addSubscription(i,r){this.subscriptions.set(i,qs({},r)),this.topicMap.set(r.topic,i),this.events.emit($r.created,r)}getSubscription(i){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:i});const r=this.subscriptions.get(i);if(!r){const{message:n}=X("NO_MATCHING_KEY",`${this.name}: ${i}`);throw new Error(n)}return r}deleteSubscription(i,r){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:i,reason:r});const n=this.getSubscription(i);this.subscriptions.delete(i),this.topicMap.delete(n.topic,i),this.events.emit($r.deleted,ec(qs({},n),{reason:r}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit($r.sync)}async reset(){if(this.cached.length){const i=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let r=0;r"u"||!i.length)return;if(this.subscriptions.size){const{message:r}=X("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(r)}this.cached=i,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(i){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(i)}}async batchSubscribe(i){if(!i.length)return;const r=await this.rpcBatchSubscribe(i);fs(r)&&this.onBatchSubscribe(r.map((n,a)=>ec(qs({},i[a]),{id:n})))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||this.relayer.transportExplicitlyClosed)return;const i=[];this.pending.forEach(r=>{i.push(r)}),await this.batchSubscribe(i)}registerEventListeners(){this.relayer.core.heartbeat.on(ps.HEARTBEAT_EVENTS.pulse,async()=>{await this.checkPending()}),this.relayer.on(Gt.connect,async()=>{await this.onConnect()}),this.relayer.on(Gt.disconnect,()=>{this.onDisconnect()}),this.events.on($r.created,async i=>{const r=$r.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),await this.persist()}),this.events.on($r.deleted,async i=>{const r=$r.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),await this.persist()})}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}async restartToComplete(){this.restartInProgress&&await new Promise(i=>{const r=setInterval(()=>{this.restartInProgress||(clearInterval(r),i())},this.pollingInterval)})}}var cb=Object.defineProperty,al=Object.getOwnPropertySymbols,ub=Object.prototype.hasOwnProperty,hb=Object.prototype.propertyIsEnumerable,ol=(c,i,r)=>i in c?cb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,lb=(c,i)=>{for(var r in i||(i={}))ub.call(i,r)&&ol(c,r,i[r]);if(al)for(var r of al(i))hb.call(i,r)&&ol(c,r,i[r]);return c};class fb extends Pw{constructor(i){super(i),this.protocol="wc",this.version=2,this.events=new Kr.EventEmitter,this.name=L1,this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","socket stalled"],this.hasExperiencedNetworkDisruption=!1,this.request=async r=>{this.logger.debug("Publishing Request Payload");try{return await this.toEstablishConnection(),await this.provider.request(r)}catch(n){throw this.logger.debug("Failed to Publish Request"),this.logger.error(n),n}},this.onPayloadHandler=r=>{this.onProviderPayload(r)},this.onConnectHandler=()=>{this.events.emit(Gt.connect)},this.onDisconnectHandler=()=>{this.onProviderDisconnect()},this.onProviderErrorHandler=r=>{this.logger.error(r),this.events.emit(Gt.error,r),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(ri.payload,this.onPayloadHandler),this.provider.on(ri.connect,this.onConnectHandler),this.provider.on(ri.disconnect,this.onDisconnectHandler),this.provider.on(ri.error,this.onProviderErrorHandler)},this.core=i.core,this.logger=typeof i.logger<"u"&&typeof i.logger!="string"?Oe.generateChildLogger(i.logger,this.name):Oe.pino(Oe.getDefaultLoggerOptions({level:i.logger||D1})),this.messages=new Z1(this.logger,i.core),this.subscriber=new ob(this,this.logger),this.publisher=new eb(this,this.logger),this.relayUrl=(i==null?void 0:i.relayUrl)||sf,this.projectId=i.projectId,this.provider={}}async init(){this.logger.trace("Initialized"),this.registerEventListeners(),await this.createProvider(),await Promise.all([this.messages.init(),this.subscriber.init()]);try{await this.transportOpen()}catch{this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${rl}...`),await this.restartTransport(rl)}this.initialized=!0,setTimeout(async()=>{this.subscriber.topics.length===0&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)},j1)}get context(){return Oe.getLoggerContext(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(i,r,n){this.isInitialized(),await this.publisher.publish(i,r,n),await this.recordMessageEvent({topic:i,message:r,publishedAt:Date.now()})}async subscribe(i,r){var n;this.isInitialized();let a=((n=this.subscriber.topicMap.get(i))==null?void 0:n[0])||"";if(a)return a;let l;const d=y=>{y.topic===i&&(this.subscriber.off($r.created,d),l())};return await Promise.all([new Promise(y=>{l=y,this.subscriber.on($r.created,d)}),new Promise(async y=>{a=await this.subscriber.subscribe(i,r),y()})]),a}async unsubscribe(i,r){this.isInitialized(),await this.subscriber.unsubscribe(i,r)}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}off(i,r){this.events.off(i,r)}removeListener(i,r){this.events.removeListener(i,r)}async transportClose(){this.transportExplicitlyClosed=!0,this.hasExperiencedNetworkDisruption&&this.connected?await Vs(this.provider.disconnect(),1e3,"provider.disconnect()").catch(()=>this.onProviderDisconnect()):this.connected&&await this.provider.disconnect()}async transportOpen(i){if(this.transportExplicitlyClosed=!1,await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress){i&&i!==this.relayUrl&&(this.relayUrl=i,await this.transportClose(),await this.createProvider()),this.connectionAttemptInProgress=!0;try{await Promise.all([new Promise(r=>{if(!this.initialized)return r();this.subscriber.once($r.resubscribed,()=>{r()})}),new Promise(async(r,n)=>{try{await Vs(this.provider.connect(),1e4,`Socket stalled when trying to connect to ${this.relayUrl}`)}catch(a){n(a);return}r()})])}catch(r){this.logger.error(r);const n=r;if(!this.isConnectionStalled(n.message))throw r;this.provider.events.emit(ri.disconnect)}finally{this.connectionAttemptInProgress=!1,this.hasExperiencedNetworkDisruption=!1}}}async restartTransport(i){await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress&&(this.relayUrl=i||this.relayUrl,await this.transportClose(),await this.createProvider(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await Oh())throw new Error("No internet connection detected. Please restart your network and try again.")}isConnectionStalled(i){return this.staleConnectionErrors.some(r=>i.includes(r))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();const i=await this.core.crypto.signJWT(this.relayUrl);this.provider=new ni(new Jw(sm({sdkVersion:M1,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:i,useOnCloseEvent:!0}))),this.registerProviderListeners()}async recordMessageEvent(i){const{topic:r,message:n}=i;await this.messages.set(r,n)}async shouldIgnoreMessageEvent(i){const{topic:r,message:n}=i;if(!n||n.length===0)return this.logger.debug(`Ignoring invalid/empty message: ${n}`),!0;if(!await this.subscriber.isSubscribed(r))return this.logger.debug(`Ignoring message for non-subscribed topic ${r}`),!0;const a=this.messages.has(r,n);return a&&this.logger.debug(`Ignoring duplicate message: ${n}`),a}async onProviderPayload(i){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:i}),mc(i)){if(!i.method.endsWith(q1))return;const r=i.params,{topic:n,message:a,publishedAt:l}=r.data,d={topic:n,message:a,publishedAt:l};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(lb({type:"event",event:r.id},d)),this.events.emit(r.id,d),await this.acknowledgePayload(i),await this.onMessageEvent(d)}else wc(i)&&this.events.emit(Gt.message_ack,i)}async onMessageEvent(i){await this.shouldIgnoreMessageEvent(i)||(this.events.emit(Gt.message,i),await this.recordMessageEvent(i))}async acknowledgePayload(i){const r=_c(i.id,!0);await this.provider.connection.send(r)}unregisterProviderListeners(){this.provider.off(ri.payload,this.onPayloadHandler),this.provider.off(ri.connect,this.onConnectHandler),this.provider.off(ri.disconnect,this.onDisconnectHandler),this.provider.off(ri.error,this.onProviderErrorHandler)}async registerEventListeners(){this.events.on(Gt.connection_stalled,()=>{this.restartTransport().catch(r=>this.logger.error(r))});let i=await Oh();nm(async r=>{this.initialized&&i!==r&&(i=r,r?await this.restartTransport().catch(n=>this.logger.error(n)):(this.hasExperiencedNetworkDisruption=!0,await this.transportClose().catch(n=>this.logger.error(n))))})}onProviderDisconnect(){this.events.emit(Gt.disconnect),this.attemptToReconnect()}attemptToReconnect(){this.transportExplicitlyClosed||(this.logger.info("attemptToReconnect called. Connecting..."),setTimeout(async()=>{await this.restartTransport().catch(i=>this.logger.error(i))},ie.toMiliseconds(z1)))}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}async toEstablishConnection(){if(await this.confirmOnlineStateOrThrow(),!this.connected){if(this.connectionAttemptInProgress)return await new Promise(i=>{const r=setInterval(()=>{this.connected&&(clearInterval(r),i())},this.connectionStatusPollingInterval)});await this.restartTransport()}}}var pb=Object.defineProperty,cl=Object.getOwnPropertySymbols,db=Object.prototype.hasOwnProperty,gb=Object.prototype.propertyIsEnumerable,ul=(c,i,r)=>i in c?pb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,hl=(c,i)=>{for(var r in i||(i={}))db.call(i,r)&&ul(c,r,i[r]);if(cl)for(var r of cl(i))gb.call(i,r)&&ul(c,r,i[r]);return c};class ma extends Sw{constructor(i,r,n,a=bi,l=void 0){super(i,r,n,a),this.core=i,this.logger=r,this.name=n,this.map=new Map,this.version=U1,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(d=>{this.getKey&&d!==null&&!_i(d)?this.map.set(this.getKey(d),d):G0(d)?this.map.set(d.id,d):W0(d)&&this.map.set(d.topic,d)}),this.cached=[],this.initialized=!0)},this.set=async(d,y)=>{this.isInitialized(),this.map.has(d)?await this.update(d,y):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:d,value:y}),this.map.set(d,y),await this.persist())},this.get=d=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:d}),this.getData(d)),this.getAll=d=>(this.isInitialized(),d?this.values.filter(y=>Object.keys(d).every(w=>Yw(y[w],d[w]))):this.values),this.update=async(d,y)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:d,update:y});const w=hl(hl({},this.getData(d)),y);this.map.set(d,w),await this.persist()},this.delete=async(d,y)=>{this.isInitialized(),this.map.has(d)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:d,reason:y}),this.map.delete(d),await this.persist())},this.logger=Oe.generateChildLogger(r,this.name),this.storagePrefix=a,this.getKey=l}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(i){await this.core.storage.setItem(this.storageKey,i)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(i){const r=this.map.get(i);if(!r){const{message:n}=X("NO_MATCHING_KEY",`${this.name}: ${i}`);throw this.logger.error(n),new Error(n)}return r}async persist(){await this.setDataStore(this.values)}async restore(){try{const i=await this.getDataStore();if(typeof i>"u"||!i.length)return;if(this.map.size){const{message:r}=X("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=i,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(i){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(i)}}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class vb{constructor(i,r){this.core=i,this.logger=r,this.name=F1,this.version=B1,this.events=new vc,this.initialized=!1,this.storagePrefix=bi,this.ignoredPayloadTypes=[Rl],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:n})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...n])]},this.create=async()=>{this.isInitialized();const n=oc(),a=await this.core.crypto.setSymKey(n),l=Dr(ie.FIVE_MINUTES),d={protocol:rf},y={topic:a,expiry:l,relay:d,active:!1},w=am({protocol:this.core.protocol,version:this.core.version,topic:a,symKey:n,relay:d});return await this.pairings.set(a,y),await this.core.relayer.subscribe(a),this.core.expirer.set(a,l),{topic:a,uri:w}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);const{topic:a,symKey:l,relay:d}=om(n.uri);let y;if(this.pairings.keys.includes(a)&&(y=this.pairings.get(a),y.active))throw new Error(`Pairing already exists: ${a}. Please try again with a new connection URI.`);this.core.crypto.keychain.has(a)||(await this.core.crypto.setSymKey(l,a),await this.core.relayer.subscribe(a,{relay:d}));const w=Dr(ie.FIVE_MINUTES),v={topic:a,relay:d,expiry:w,active:!1};return await this.pairings.set(a,v),this.core.expirer.set(a,w),n.activatePairing&&await this.activate({topic:a}),this.events.emit(Hs.create,v),v},this.activate=async({topic:n})=>{this.isInitialized();const a=Dr(ie.THIRTY_DAYS);await this.pairings.update(n,{active:!0,expiry:a}),this.core.expirer.set(n,a)},this.ping=async n=>{this.isInitialized(),await this.isValidPing(n);const{topic:a}=n;if(this.pairings.keys.includes(a)){const l=await this.sendRequest(a,"wc_pairingPing",{}),{done:d,resolve:y,reject:w}=us();this.events.once($t("pairing_ping",l),({error:v})=>{v?w(v):y()}),await d()}},this.updateExpiry=async({topic:n,expiry:a})=>{this.isInitialized(),await this.pairings.update(n,{expiry:a})},this.updateMetadata=async({topic:n,metadata:a})=>{this.isInitialized(),await this.pairings.update(n,{peerMetadata:a})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async n=>{this.isInitialized(),await this.isValidDisconnect(n);const{topic:a}=n;this.pairings.keys.includes(a)&&(await this.sendRequest(a,"wc_pairingDelete",tr("USER_DISCONNECTED")),await this.deletePairing(a))},this.sendRequest=async(n,a,l)=>{const d=Ks(a,l),y=await this.core.crypto.encode(n,d),w=Ls[a].req;return this.core.history.set(n,d),this.core.relayer.publish(n,y,w),d.id},this.sendResult=async(n,a,l)=>{const d=_c(n,l),y=await this.core.crypto.encode(a,d),w=await this.core.history.get(a,n),v=Ls[w.request.method].res;await this.core.relayer.publish(a,y,v),await this.core.history.resolve(d)},this.sendError=async(n,a,l)=>{const d=yc(n,l),y=await this.core.crypto.encode(a,d),w=await this.core.history.get(a,n),v=Ls[w.request.method]?Ls[w.request.method].res:Ls.unregistered_method.res;await this.core.relayer.publish(a,y,v),await this.core.history.resolve(d)},this.deletePairing=async(n,a)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,tr("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(n),a?Promise.resolve():this.core.expirer.del(n)])},this.cleanup=async()=>{const n=this.pairings.getAll().filter(a=>wi(a.expiry));await Promise.all(n.map(a=>this.deletePairing(a.topic)))},this.onRelayEventRequest=n=>{const{topic:a,payload:l}=n;switch(l.method){case"wc_pairingPing":return this.onPairingPingRequest(a,l);case"wc_pairingDelete":return this.onPairingDeleteRequest(a,l);default:return this.onUnknownRpcMethodRequest(a,l)}},this.onRelayEventResponse=async n=>{const{topic:a,payload:l}=n,d=(await this.core.history.get(a,l.id)).request.method;switch(d){case"wc_pairingPing":return this.onPairingPingResponse(a,l);default:return this.onUnknownRpcMethodResponse(d)}},this.onPairingPingRequest=async(n,a)=>{const{id:l}=a;try{this.isValidPing({topic:n}),await this.sendResult(l,n,!0),this.events.emit(Hs.ping,{id:l,topic:n})}catch(d){await this.sendError(l,n,d),this.logger.error(d)}},this.onPairingPingResponse=(n,a)=>{const{id:l}=a;setTimeout(()=>{mi(a)?this.events.emit($t("pairing_ping",l),{}):si(a)&&this.events.emit($t("pairing_ping",l),{error:a.error})},500)},this.onPairingDeleteRequest=async(n,a)=>{const{id:l}=a;try{this.isValidDisconnect({topic:n}),await this.deletePairing(n),this.events.emit(Hs.delete,{id:l,topic:n})}catch(d){await this.sendError(l,n,d),this.logger.error(d)}},this.onUnknownRpcMethodRequest=async(n,a)=>{const{id:l,method:d}=a;try{if(this.registeredMethods.includes(d))return;const y=tr("WC_METHOD_UNSUPPORTED",d);await this.sendError(l,n,y),this.logger.error(y)}catch(y){await this.sendError(l,n,y),this.logger.error(y)}},this.onUnknownRpcMethodResponse=n=>{this.registeredMethods.includes(n)||this.logger.error(tr("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{if(!hr(n)){const{message:a}=X("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(a)}if(!cm(n.uri)){const{message:a}=X("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(a)}},this.isValidPing=async n=>{if(!hr(n)){const{message:l}=X("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(l)}const{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidDisconnect=async n=>{if(!hr(n)){const{message:l}=X("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(l)}const{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidPairingTopic=async n=>{if(!hs(n,!1)){const{message:a}=X("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(a)}if(!this.pairings.keys.includes(n)){const{message:a}=X("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(a)}if(wi(this.pairings.get(n).expiry)){await this.deletePairing(n);const{message:a}=X("EXPIRED",`pairing topic: ${n}`);throw new Error(a)}},this.core=i,this.logger=Oe.generateChildLogger(r,this.name),this.pairings=new ma(this.core,this.logger,this.name,this.storagePrefix)}get context(){return Oe.getLoggerContext(this.logger)}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}registerRelayerEvents(){this.core.relayer.on(Gt.message,async i=>{const{topic:r,message:n}=i;if(!this.pairings.keys.includes(r)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;const a=await this.core.crypto.decode(r,n);try{mc(a)?(this.core.history.set(r,a),this.onRelayEventRequest({topic:r,payload:a})):wc(a)&&(await this.core.history.resolve(a),await this.onRelayEventResponse({topic:r,payload:a}),this.core.history.delete(r,a.id))}catch(l){this.logger.error(l)}})}registerExpirerEvents(){this.core.expirer.on(Sr.expired,async i=>{const{topic:r}=Tl(i.target);r&&this.pairings.keys.includes(r)&&(await this.deletePairing(r,!0),this.events.emit(Hs.expire,{topic:r}))})}}class yb extends Ew{constructor(i,r){super(i,r),this.core=i,this.logger=r,this.records=new Map,this.events=new Kr.EventEmitter,this.name=G1,this.version=W1,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.records.set(n.id,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(n,a,l)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:n,request:a,chainId:l}),this.records.has(a.id))return;const d={id:a.id,topic:n,request:{method:a.method,params:a.params||null},chainId:l,expiry:Dr(ie.THIRTY_DAYS)};this.records.set(d.id,d),this.events.emit(kr.created,d)},this.resolve=async n=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:n}),!this.records.has(n.id))return;const a=await this.getRecord(n.id);typeof a.response>"u"&&(a.response=si(n)?{error:n.error}:{result:n.result},this.records.set(a.id,a),this.events.emit(kr.updated,a))},this.get=async(n,a)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:n,id:a}),await this.getRecord(a)),this.delete=(n,a)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:a}),this.values.forEach(l=>{if(l.topic===n){if(typeof a<"u"&&l.id!==a)return;this.records.delete(l.id),this.events.emit(kr.deleted,l)}})},this.exists=async(n,a)=>(this.isInitialized(),this.records.has(a)?(await this.getRecord(a)).topic===n:!1),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=Oe.generateChildLogger(r,this.name)}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const i=[];return this.values.forEach(r=>{if(typeof r.response<"u")return;const n={topic:r.topic,request:Ks(r.request.method,r.request.params,r.id),chainId:r.chainId};return i.push(n)}),i}async setJsonRpcRecords(i){await this.core.storage.setItem(this.storageKey,i)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(i){this.isInitialized();const r=this.records.get(i);if(!r){const{message:n}=X("NO_MATCHING_KEY",`${this.name}: ${i}`);throw new Error(n)}return r}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(kr.sync)}async restore(){try{const i=await this.getJsonRpcRecords();if(typeof i>"u"||!i.length)return;if(this.records.size){const{message:r}=X("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=i,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(i){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(i)}}registerEventListeners(){this.events.on(kr.created,i=>{const r=kr.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:i}),this.persist()}),this.events.on(kr.updated,i=>{const r=kr.updated;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:i}),this.persist()}),this.events.on(kr.deleted,i=>{const r=kr.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:i}),this.persist()}),this.core.heartbeat.on(ps.HEARTBEAT_EVENTS.pulse,()=>{this.cleanup()})}cleanup(){try{this.records.forEach(i=>{ie.toMiliseconds(i.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${i.id}`),this.delete(i.topic,i.id))})}catch(i){this.logger.warn(i)}}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class mb extends Ow{constructor(i,r){super(i,r),this.core=i,this.logger=r,this.expirations=new Map,this.events=new Kr.EventEmitter,this.name=J1,this.version=Q1,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.expirations.set(n.target,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=n=>{try{const a=this.formatTarget(n);return typeof this.getExpiration(a)<"u"}catch{return!1}},this.set=(n,a)=>{this.isInitialized();const l=this.formatTarget(n),d={target:l,expiry:a};this.expirations.set(l,d),this.checkExpiry(l,d),this.events.emit(Sr.created,{target:l,expiration:d})},this.get=n=>{this.isInitialized();const a=this.formatTarget(n);return this.getExpiration(a)},this.del=n=>{if(this.isInitialized(),this.has(n)){const a=this.formatTarget(n),l=this.getExpiration(a);this.expirations.delete(a),this.events.emit(Sr.deleted,{target:a,expiration:l})}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=Oe.generateChildLogger(r,this.name)}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(i){if(typeof i=="string")return um(i);if(typeof i=="number")return hm(i);const{message:r}=X("UNKNOWN_TYPE",`Target type: ${typeof i}`);throw new Error(r)}async setExpirations(i){await this.core.storage.setItem(this.storageKey,i)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(Sr.sync)}async restore(){try{const i=await this.getExpirations();if(typeof i>"u"||!i.length)return;if(this.expirations.size){const{message:r}=X("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=i,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(i){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(i)}}getExpiration(i){const r=this.expirations.get(i);if(!r){const{message:n}=X("NO_MATCHING_KEY",`${this.name}: ${i}`);throw this.logger.error(n),new Error(n)}return r}checkExpiry(i,r){const{expiry:n}=r;ie.toMiliseconds(n)-Date.now()<=0&&this.expire(i,r)}expire(i,r){this.expirations.delete(i),this.events.emit(Sr.expired,{target:i,expiration:r})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((i,r)=>this.checkExpiry(r,i))}registerEventListeners(){this.core.heartbeat.on(ps.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(Sr.created,i=>{const r=Sr.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),this.persist()}),this.events.on(Sr.expired,i=>{const r=Sr.expired;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),this.persist()}),this.events.on(Sr.deleted,i=>{const r=Sr.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),this.persist()})}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class wb extends Rw{constructor(i,r){super(i,r),this.projectId=i,this.logger=r,this.name=Zo,this.initialized=!1,this.queue=[],this.verifyDisabled=!1,this.init=async()=>{if(this.verifyDisabled||lm()||!Al())return;const n=la;this.verifyUrl!==n&&this.removeIframe(),this.verifyUrl=n;try{await this.createIframe()}catch(a){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(a)}if(!this.initialized){this.removeIframe(),this.verifyUrl=il;try{await this.createIframe()}catch(a){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(a),this.verifyDisabled=!0}}},this.register=async n=>{this.initialized?this.sendPost(n.attestationId):(this.addToQueue(n.attestationId),await this.init())},this.resolve=async n=>{if(this.isDevEnv)return"";const a=(n==null?void 0:n.verifyUrl)||la;let l;try{l=await this.fetchAttestation(n.attestationId,a)}catch(d){this.logger.info(`failed to resolve attestation: ${n.attestationId} from url: ${a}`),this.logger.info(d),l=await this.fetchAttestation(n.attestationId,il)}return l},this.fetchAttestation=async(n,a)=>{this.logger.info(`resolving attestation: ${n} from url: ${a}`);const l=this.startAbortTimer(ie.ONE_SECOND*2),d=await fetch(`${a}/attestation/${n}`,{signal:this.abortController.signal});return clearTimeout(l),d.status===200?await d.json():void 0},this.addToQueue=n=>{this.queue.push(n)},this.processQueue=()=>{this.queue.length!==0&&(this.queue.forEach(n=>this.sendPost(n)),this.queue=[])},this.sendPost=n=>{var a;try{if(!this.iframe)return;(a=this.iframe.contentWindow)==null||a.postMessage(n,"*"),this.logger.info(`postMessage sent: ${n} ${this.verifyUrl}`)}catch{}},this.createIframe=async()=>{let n;const a=l=>{l.data==="verify_ready"&&(this.initialized=!0,this.processQueue(),window.removeEventListener("message",a),n())};await Promise.race([new Promise(l=>{if(document.getElementById(Zo))return l();window.addEventListener("message",a);const d=document.createElement("iframe");d.id=Zo,d.src=`${this.verifyUrl}/${this.projectId}`,d.style.display="none",document.body.append(d),this.iframe=d,n=l}),new Promise((l,d)=>setTimeout(()=>{window.removeEventListener("message",a),d("verify iframe load timeout")},ie.toMiliseconds(ie.FIVE_SECONDS)))])},this.removeIframe=()=>{this.iframe&&(this.iframe.remove(),this.iframe=void 0,this.initialized=!1)},this.logger=Oe.generateChildLogger(r,this.name),this.verifyUrl=la,this.abortController=new AbortController,this.isDevEnv=fm()&&Xw.IS_VITEST}get context(){return Oe.getLoggerContext(this.logger)}startAbortTimer(i){return this.abortController=new AbortController,setTimeout(()=>this.abortController.abort(),ie.toMiliseconds(i))}}var _b=Object.defineProperty,ll=Object.getOwnPropertySymbols,bb=Object.prototype.hasOwnProperty,Eb=Object.prototype.propertyIsEnumerable,fl=(c,i,r)=>i in c?_b(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,pl=(c,i)=>{for(var r in i||(i={}))bb.call(i,r)&&fl(c,r,i[r]);if(ll)for(var r of ll(i))Eb.call(i,r)&&fl(c,r,i[r]);return c};class Ic extends bw{constructor(i){super(i),this.protocol=tf,this.version=I1,this.name=Ec,this.events=new Kr.EventEmitter,this.initialized=!1,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.projectId=i==null?void 0:i.projectId,this.relayUrl=(i==null?void 0:i.relayUrl)||sf,this.customStoragePrefix=i!=null&&i.customStoragePrefix?`:${i.customStoragePrefix}`:"";const r=typeof(i==null?void 0:i.logger)<"u"&&typeof(i==null?void 0:i.logger)!="string"?i.logger:Oe.pino(Oe.getDefaultLoggerOptions({level:(i==null?void 0:i.logger)||x1.logger}));this.logger=Oe.generateChildLogger(r,this.name),this.heartbeat=new ps.HeartBeat,this.crypto=new X1(this,this.logger,i==null?void 0:i.keychain),this.history=new yb(this,this.logger),this.expirer=new mb(this,this.logger),this.storage=i!=null&&i.storage?i.storage:new fw(pl(pl({},P1),i==null?void 0:i.storageOptions)),this.relayer=new fb({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new vb(this,this.logger),this.verify=new wb(this.projectId||"",this.logger)}static async init(i){const r=new Ic(i);await r.initialize();const n=await r.crypto.getClientId();return await r.storage.setItem(H1,n),r}get context(){return Oe.getLoggerContext(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(i){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,i),this.logger.error(i.message),i}}}const Ib=Ic,nf="wc",af=2,of="client",xc=`${nf}@${af}:${of}:`,tc={name:of,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"},dl="WALLETCONNECT_DEEPLINK_CHOICE",xb="proposal",cf="Proposal expired",Pb="session",sa=ie.SEVEN_DAYS,Sb="engine",zs={wc_sessionPropose:{req:{ttl:ie.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:ie.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:ie.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:ie.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:ie.ONE_DAY,prompt:!1,tag:1104},res:{ttl:ie.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:ie.ONE_DAY,prompt:!1,tag:1106},res:{ttl:ie.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:ie.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:ie.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:ie.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:ie.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:ie.ONE_DAY,prompt:!1,tag:1112},res:{ttl:ie.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:ie.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:ie.THIRTY_SECONDS,prompt:!1,tag:1115}}},rc={min:ie.FIVE_MINUTES,max:ie.SEVEN_DAYS},ii={idle:"IDLE",active:"ACTIVE"},Cb="request",Ob=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"];var Rb=Object.defineProperty,Tb=Object.defineProperties,Ab=Object.getOwnPropertyDescriptors,gl=Object.getOwnPropertySymbols,Nb=Object.prototype.hasOwnProperty,$b=Object.prototype.propertyIsEnumerable,vl=(c,i,r)=>i in c?Rb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,cr=(c,i)=>{for(var r in i||(i={}))Nb.call(i,r)&&vl(c,r,i[r]);if(gl)for(var r of gl(i))$b.call(i,r)&&vl(c,r,i[r]);return c},Ms=(c,i)=>Tb(c,Ab(i));class Db extends Aw{constructor(i){super(i),this.name=Sb,this.events=new vc,this.initialized=!1,this.ignoredPayloadTypes=[Rl],this.requestQueue={state:ii.idle,queue:[]},this.sessionRequestQueue={state:ii.idle,queue:[]},this.requestQueueDelay=ie.ONE_SECOND,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys(zs)}),this.initialized=!0,setTimeout(()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},ie.toMiliseconds(this.requestQueueDelay)))},this.connect=async r=>{await this.isInitialized();const n=Ms(cr({},r),{requiredNamespaces:r.requiredNamespaces||{},optionalNamespaces:r.optionalNamespaces||{}});await this.isValidConnect(n);const{pairingTopic:a,requiredNamespaces:l,optionalNamespaces:d,sessionProperties:y,relays:w}=n;let v=a,E,C=!1;if(v&&(C=this.client.core.pairing.pairings.get(v).active),!v||!C){const{topic:he,uri:fe}=await this.client.core.pairing.create();v=he,E=fe}const T=await this.client.core.crypto.generateKeyPair(),j=cr({requiredNamespaces:l,optionalNamespaces:d,relays:w??[{protocol:rf}],proposer:{publicKey:T,metadata:this.client.metadata}},y&&{sessionProperties:y}),{reject:D,resolve:V,done:re}=us(ie.FIVE_MINUTES,cf);if(this.events.once($t("session_connect"),async({error:he,session:fe})=>{if(he)D(he);else if(fe){fe.self.publicKey=T;const pe=Ms(cr({},fe),{requiredNamespaces:fe.requiredNamespaces,optionalNamespaces:fe.optionalNamespaces});await this.client.session.set(fe.topic,pe),await this.setExpiry(fe.topic,fe.expiry),v&&await this.client.core.pairing.updateMetadata({topic:v,metadata:fe.peer.metadata}),V(pe)}}),!v){const{message:he}=X("NO_MATCHING_KEY",`connect() pairing topic: ${v}`);throw new Error(he)}const ce=await this.sendRequest({topic:v,method:"wc_sessionPropose",params:j}),ue=Dr(ie.FIVE_MINUTES);return await this.setProposal(ce,cr({id:ce,expiry:ue},j)),{uri:E,approval:re}},this.pair=async r=>(await this.isInitialized(),await this.client.core.pairing.pair(r)),this.approve=async r=>{await this.isInitialized(),await this.isValidApprove(r);const{id:n,relayProtocol:a,namespaces:l,sessionProperties:d}=r,y=this.client.proposal.get(n);let{pairingTopic:w,proposer:v,requiredNamespaces:E,optionalNamespaces:C}=y;w=w||"",ca(E)||(E=dm(l,"approve()"));const T=await this.client.core.crypto.generateKeyPair(),j=v.publicKey,D=await this.client.core.crypto.generateSharedKey(T,j);w&&n&&(await this.client.core.pairing.updateMetadata({topic:w,metadata:v.metadata}),await this.sendResult({id:n,topic:w,result:{relay:{protocol:a??"irn"},responderPublicKey:T}}),await this.client.proposal.delete(n,tr("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:w}));const V=cr({relay:{protocol:a??"irn"},namespaces:l,requiredNamespaces:E,optionalNamespaces:C,pairingTopic:w,controller:{publicKey:T,metadata:this.client.metadata},expiry:Dr(sa)},d&&{sessionProperties:d});await this.client.core.relayer.subscribe(D),await this.sendRequest({topic:D,method:"wc_sessionSettle",params:V,throwOnFailedPublish:!0});const re=Ms(cr({},V),{topic:D,pairingTopic:w,acknowledged:!1,self:V.controller,peer:{publicKey:v.publicKey,metadata:v.metadata},controller:T});return await this.client.session.set(D,re),await this.setExpiry(D,Dr(sa)),{topic:D,acknowledged:()=>new Promise(ce=>setTimeout(()=>ce(this.client.session.get(D)),500))}},this.reject=async r=>{await this.isInitialized(),await this.isValidReject(r);const{id:n,reason:a}=r,{pairingTopic:l}=this.client.proposal.get(n);l&&(await this.sendError(n,l,a),await this.client.proposal.delete(n,tr("USER_DISCONNECTED")))},this.update=async r=>{await this.isInitialized(),await this.isValidUpdate(r);const{topic:n,namespaces:a}=r,l=await this.sendRequest({topic:n,method:"wc_sessionUpdate",params:{namespaces:a}}),{done:d,resolve:y,reject:w}=us();return this.events.once($t("session_update",l),({error:v})=>{v?w(v):y()}),await this.client.session.update(n,{namespaces:a}),{acknowledged:d}},this.extend=async r=>{await this.isInitialized(),await this.isValidExtend(r);const{topic:n}=r,a=await this.sendRequest({topic:n,method:"wc_sessionExtend",params:{}}),{done:l,resolve:d,reject:y}=us();return this.events.once($t("session_extend",a),({error:w})=>{w?y(w):d()}),await this.setExpiry(n,Dr(sa)),{acknowledged:l}},this.request=async r=>{await this.isInitialized(),await this.isValidRequest(r);const{chainId:n,request:a,topic:l,expiry:d}=r,y=qm(),{done:w,resolve:v,reject:E}=us(d,"Request expired. Please try again.");return this.events.once($t("session_request",y),({error:C,result:T})=>{C?E(C):v(T)}),await Promise.all([new Promise(async C=>{await this.sendRequest({clientRpcId:y,topic:l,method:"wc_sessionRequest",params:{request:a,chainId:n},expiry:d,throwOnFailedPublish:!0}).catch(T=>E(T)),this.client.events.emit("session_request_sent",{topic:l,request:a,chainId:n,id:y}),C()}),new Promise(async C=>{const T=await this.client.core.storage.getItem(dl);gm({id:y,topic:l,wcDeepLink:T}),C()}),w()]).then(C=>C[2])},this.respond=async r=>{await this.isInitialized(),await this.isValidRespond(r);const{topic:n,response:a}=r,{id:l}=a;mi(a)?await this.sendResult({id:l,topic:n,result:a.result,throwOnFailedPublish:!0}):si(a)&&await this.sendError(l,n,a.error),this.cleanupAfterResponse(r)},this.ping=async r=>{await this.isInitialized(),await this.isValidPing(r);const{topic:n}=r;if(this.client.session.keys.includes(n)){const a=await this.sendRequest({topic:n,method:"wc_sessionPing",params:{}}),{done:l,resolve:d,reject:y}=us();this.events.once($t("session_ping",a),({error:w})=>{w?y(w):d()}),await l()}else this.client.core.pairing.pairings.keys.includes(n)&&await this.client.core.pairing.ping({topic:n})},this.emit=async r=>{await this.isInitialized(),await this.isValidEmit(r);const{topic:n,event:a,chainId:l}=r;await this.sendRequest({topic:n,method:"wc_sessionEvent",params:{event:a,chainId:l}})},this.disconnect=async r=>{await this.isInitialized(),await this.isValidDisconnect(r);const{topic:n}=r;this.client.session.keys.includes(n)?(await this.sendRequest({topic:n,method:"wc_sessionDelete",params:tr("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession(n)):await this.client.core.pairing.disconnect({topic:n})},this.find=r=>(this.isInitialized(),this.client.session.getAll().filter(n=>vm(n,r))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.cleanupDuplicatePairings=async r=>{if(r.pairingTopic)try{const n=this.client.core.pairing.pairings.get(r.pairingTopic),a=this.client.core.pairing.pairings.getAll().filter(l=>{var d,y;return((d=l.peerMetadata)==null?void 0:d.url)&&((y=l.peerMetadata)==null?void 0:y.url)===r.peer.metadata.url&&l.topic&&l.topic!==n.topic});if(a.length===0)return;this.client.logger.info(`Cleaning up ${a.length} duplicate pairing(s)`),await Promise.all(a.map(l=>this.client.core.pairing.disconnect({topic:l.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(n){this.client.logger.error(n)}},this.deleteSession=async(r,n)=>{const{self:a}=this.client.session.get(r);await this.client.core.relayer.unsubscribe(r),this.client.session.delete(r,tr("USER_DISCONNECTED")),this.client.core.crypto.keychain.has(a.publicKey)&&await this.client.core.crypto.deleteKeyPair(a.publicKey),this.client.core.crypto.keychain.has(r)&&await this.client.core.crypto.deleteSymKey(r),n||this.client.core.expirer.del(r),this.client.core.storage.removeItem(dl).catch(l=>this.client.logger.warn(l))},this.deleteProposal=async(r,n)=>{await Promise.all([this.client.proposal.delete(r,tr("USER_DISCONNECTED")),n?Promise.resolve():this.client.core.expirer.del(r)])},this.deletePendingSessionRequest=async(r,n,a=!1)=>{await Promise.all([this.client.pendingRequest.delete(r,n),a?Promise.resolve():this.client.core.expirer.del(r)]),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(l=>l.id!==r),a&&(this.sessionRequestQueue.state=ii.idle)},this.setExpiry=async(r,n)=>{this.client.session.keys.includes(r)&&await this.client.session.update(r,{expiry:n}),this.client.core.expirer.set(r,n)},this.setProposal=async(r,n)=>{await this.client.proposal.set(r,n),this.client.core.expirer.set(r,n.expiry)},this.setPendingSessionRequest=async r=>{const n=zs.wc_sessionRequest.req.ttl,{id:a,topic:l,params:d,verifyContext:y}=r;await this.client.pendingRequest.set(a,{id:a,topic:l,params:d,verifyContext:y}),n&&this.client.core.expirer.set(a,Dr(n))},this.sendRequest=async r=>{const{topic:n,method:a,params:l,expiry:d,relayRpcId:y,clientRpcId:w,throwOnFailedPublish:v}=r,E=Ks(a,l,w);if(Al()&&Ob.includes(a)){const j=ls(JSON.stringify(E));this.client.core.verify.register({attestationId:j})}const C=await this.client.core.crypto.encode(n,E),T=zs[a].req;return d&&(T.ttl=d),y&&(T.id=y),this.client.core.history.set(n,E),v?(T.internal=Ms(cr({},T.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(n,C,T)):this.client.core.relayer.publish(n,C,T).catch(j=>this.client.logger.error(j)),E.id},this.sendResult=async r=>{const{id:n,topic:a,result:l,throwOnFailedPublish:d}=r,y=_c(n,l),w=await this.client.core.crypto.encode(a,y),v=await this.client.core.history.get(a,n),E=zs[v.request.method].res;d?(E.internal=Ms(cr({},E.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(a,w,E)):this.client.core.relayer.publish(a,w,E).catch(C=>this.client.logger.error(C)),await this.client.core.history.resolve(y)},this.sendError=async(r,n,a)=>{const l=yc(r,a),d=await this.client.core.crypto.encode(n,l),y=await this.client.core.history.get(n,r),w=zs[y.request.method].res;this.client.core.relayer.publish(n,d,w),await this.client.core.history.resolve(l)},this.cleanup=async()=>{const r=[],n=[];this.client.session.getAll().forEach(a=>{wi(a.expiry)&&r.push(a.topic)}),this.client.proposal.getAll().forEach(a=>{wi(a.expiry)&&n.push(a.id)}),await Promise.all([...r.map(a=>this.deleteSession(a)),...n.map(a=>this.deleteProposal(a))])},this.onRelayEventRequest=async r=>{this.requestQueue.queue.push(r),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state===ii.active){this.client.logger.info("Request queue already active, skipping...");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=ii.active;const r=this.requestQueue.queue.shift();if(r)try{this.processRequest(r),await new Promise(n=>setTimeout(n,300))}catch(n){this.client.logger.warn(n)}}this.requestQueue.state=ii.idle},this.processRequest=r=>{const{topic:n,payload:a}=r,l=a.method;switch(l){case"wc_sessionPropose":return this.onSessionProposeRequest(n,a);case"wc_sessionSettle":return this.onSessionSettleRequest(n,a);case"wc_sessionUpdate":return this.onSessionUpdateRequest(n,a);case"wc_sessionExtend":return this.onSessionExtendRequest(n,a);case"wc_sessionPing":return this.onSessionPingRequest(n,a);case"wc_sessionDelete":return this.onSessionDeleteRequest(n,a);case"wc_sessionRequest":return this.onSessionRequest(n,a);case"wc_sessionEvent":return this.onSessionEventRequest(n,a);default:return this.client.logger.info(`Unsupported request method ${l}`)}},this.onRelayEventResponse=async r=>{const{topic:n,payload:a}=r,l=(await this.client.core.history.get(n,a.id)).request.method;switch(l){case"wc_sessionPropose":return this.onSessionProposeResponse(n,a);case"wc_sessionSettle":return this.onSessionSettleResponse(n,a);case"wc_sessionUpdate":return this.onSessionUpdateResponse(n,a);case"wc_sessionExtend":return this.onSessionExtendResponse(n,a);case"wc_sessionPing":return this.onSessionPingResponse(n,a);case"wc_sessionRequest":return this.onSessionRequestResponse(n,a);default:return this.client.logger.info(`Unsupported response method ${l}`)}},this.onRelayEventUnknownPayload=r=>{const{topic:n}=r,{message:a}=X("MISSING_OR_INVALID",`Decoded payload on topic ${n} is not identifiable as a JSON-RPC request or a response.`);throw new Error(a)},this.onSessionProposeRequest=async(r,n)=>{const{params:a,id:l}=n;try{this.isValidConnect(cr({},n.params));const d=Dr(ie.FIVE_MINUTES),y=cr({id:l,pairingTopic:r,expiry:d},a);await this.setProposal(l,y);const w=ls(JSON.stringify(n)),v=await this.getVerifyContext(w,y.proposer.metadata);this.client.events.emit("session_proposal",{id:l,params:y,verifyContext:v})}catch(d){await this.sendError(l,r,d),this.client.logger.error(d)}},this.onSessionProposeResponse=async(r,n)=>{const{id:a}=n;if(mi(n)){const{result:l}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:l});const d=this.client.proposal.get(a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:d});const y=d.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:y});const w=l.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:w});const v=await this.client.core.crypto.generateSharedKey(y,w);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:v});const E=await this.client.core.relayer.subscribe(v);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:E}),await this.client.core.pairing.activate({topic:r})}else si(n)&&(await this.client.proposal.delete(a,tr("USER_DISCONNECTED")),this.events.emit($t("session_connect"),{error:n.error}))},this.onSessionSettleRequest=async(r,n)=>{const{id:a,params:l}=n;try{this.isValidSessionSettleRequest(l);const{relay:d,controller:y,expiry:w,namespaces:v,requiredNamespaces:E,optionalNamespaces:C,sessionProperties:T,pairingTopic:j}=n.params,D=cr({topic:r,relay:d,expiry:w,namespaces:v,acknowledged:!0,pairingTopic:j,requiredNamespaces:E,optionalNamespaces:C,controller:y.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:y.publicKey,metadata:y.metadata}},T&&{sessionProperties:T});await this.sendResult({id:n.id,topic:r,result:!0}),this.events.emit($t("session_connect"),{session:D}),this.cleanupDuplicatePairings(D)}catch(d){await this.sendError(a,r,d),this.client.logger.error(d)}},this.onSessionSettleResponse=async(r,n)=>{const{id:a}=n;mi(n)?(await this.client.session.update(r,{acknowledged:!0}),this.events.emit($t("session_approve",a),{})):si(n)&&(await this.client.session.delete(r,tr("USER_DISCONNECTED")),this.events.emit($t("session_approve",a),{error:n.error}))},this.onSessionUpdateRequest=async(r,n)=>{const{params:a,id:l}=n;try{const d=`${r}_session_update`,y=ta.get(d);if(y&&this.isRequestOutOfSync(y,l)){this.client.logger.info(`Discarding out of sync request - ${l}`);return}this.isValidUpdate(cr({topic:r},a)),await this.client.session.update(r,{namespaces:a.namespaces}),await this.sendResult({id:l,topic:r,result:!0}),this.client.events.emit("session_update",{id:l,topic:r,params:a}),ta.set(d,l)}catch(d){await this.sendError(l,r,d),this.client.logger.error(d)}},this.isRequestOutOfSync=(r,n)=>parseInt(n.toString().slice(0,-3))<=parseInt(r.toString().slice(0,-3)),this.onSessionUpdateResponse=(r,n)=>{const{id:a}=n;mi(n)?this.events.emit($t("session_update",a),{}):si(n)&&this.events.emit($t("session_update",a),{error:n.error})},this.onSessionExtendRequest=async(r,n)=>{const{id:a}=n;try{this.isValidExtend({topic:r}),await this.setExpiry(r,Dr(sa)),await this.sendResult({id:a,topic:r,result:!0}),this.client.events.emit("session_extend",{id:a,topic:r})}catch(l){await this.sendError(a,r,l),this.client.logger.error(l)}},this.onSessionExtendResponse=(r,n)=>{const{id:a}=n;mi(n)?this.events.emit($t("session_extend",a),{}):si(n)&&this.events.emit($t("session_extend",a),{error:n.error})},this.onSessionPingRequest=async(r,n)=>{const{id:a}=n;try{this.isValidPing({topic:r}),await this.sendResult({id:a,topic:r,result:!0}),this.client.events.emit("session_ping",{id:a,topic:r})}catch(l){await this.sendError(a,r,l),this.client.logger.error(l)}},this.onSessionPingResponse=(r,n)=>{const{id:a}=n;setTimeout(()=>{mi(n)?this.events.emit($t("session_ping",a),{}):si(n)&&this.events.emit($t("session_ping",a),{error:n.error})},500)},this.onSessionDeleteRequest=async(r,n)=>{const{id:a}=n;try{this.isValidDisconnect({topic:r,reason:n.params}),await Promise.all([new Promise(l=>{this.client.core.relayer.once(Gt.publish,async()=>{l(await this.deleteSession(r))})}),this.sendResult({id:a,topic:r,result:!0})]),this.client.events.emit("session_delete",{id:a,topic:r})}catch(l){this.client.logger.error(l)}},this.onSessionRequest=async(r,n)=>{const{id:a,params:l}=n;try{this.isValidRequest(cr({topic:r},l));const d=ls(JSON.stringify(Ks("wc_sessionRequest",l,a))),y=this.client.session.get(r),w=await this.getVerifyContext(d,y.peer.metadata),v={id:a,topic:r,params:l,verifyContext:w};await this.setPendingSessionRequest(v),this.addSessionRequestToSessionRequestQueue(v),this.processSessionRequestQueue()}catch(d){await this.sendError(a,r,d),this.client.logger.error(d)}},this.onSessionRequestResponse=(r,n)=>{const{id:a}=n;mi(n)?this.events.emit($t("session_request",a),{result:n.result}):si(n)&&this.events.emit($t("session_request",a),{error:n.error})},this.onSessionEventRequest=async(r,n)=>{const{id:a,params:l}=n;try{const d=`${r}_session_event_${l.event.name}`,y=ta.get(d);if(y&&this.isRequestOutOfSync(y,a)){this.client.logger.info(`Discarding out of sync request - ${a}`);return}this.isValidEmit(cr({topic:r},l)),this.client.events.emit("session_event",{id:a,topic:r,params:l}),ta.set(d,a)}catch(d){await this.sendError(a,r,d),this.client.logger.error(d)}},this.addSessionRequestToSessionRequestQueue=r=>{this.sessionRequestQueue.queue.push(r)},this.cleanupAfterResponse=r=>{this.deletePendingSessionRequest(r.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=ii.idle,this.processSessionRequestQueue()},ie.toMiliseconds(this.requestQueueDelay))},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===ii.active){this.client.logger.info("session request queue is already active.");return}const r=this.sessionRequestQueue.queue[0];if(!r){this.client.logger.info("session request queue is empty.");return}try{this.sessionRequestQueue.state=ii.active,this.client.events.emit("session_request",r)}catch(n){this.client.logger.error(n)}},this.onPairingCreated=r=>{if(r.active)return;const n=this.client.proposal.getAll().find(a=>a.pairingTopic===r.topic);n&&this.onSessionProposeRequest(r.topic,Ks("wc_sessionPropose",{requiredNamespaces:n.requiredNamespaces,optionalNamespaces:n.optionalNamespaces,relays:n.relays,proposer:n.proposer},n.id))},this.isValidConnect=async r=>{if(!hr(r)){const{message:w}=X("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(r)}`);throw new Error(w)}const{pairingTopic:n,requiredNamespaces:a,optionalNamespaces:l,sessionProperties:d,relays:y}=r;if(_i(n)||await this.isValidPairingTopic(n),!ym(y,!0)){const{message:w}=X("MISSING_OR_INVALID",`connect() relays: ${y}`);throw new Error(w)}!_i(a)&&ca(a)!==0&&this.validateNamespaces(a,"requiredNamespaces"),!_i(l)&&ca(l)!==0&&this.validateNamespaces(l,"optionalNamespaces"),_i(d)||this.validateSessionProps(d,"sessionProperties")},this.validateNamespaces=(r,n)=>{const a=mm(r,"connect()",n);if(a)throw new Error(a.message)},this.isValidApprove=async r=>{if(!hr(r))throw new Error(X("MISSING_OR_INVALID",`approve() params: ${r}`).message);const{id:n,namespaces:a,relayProtocol:l,sessionProperties:d}=r;await this.isValidProposalId(n);const y=this.client.proposal.get(n),w=Vo(a,"approve()");if(w)throw new Error(w.message);const v=Rh(y.requiredNamespaces,a,"approve()");if(v)throw new Error(v.message);if(!hs(l,!0)){const{message:E}=X("MISSING_OR_INVALID",`approve() relayProtocol: ${l}`);throw new Error(E)}_i(d)||this.validateSessionProps(d,"sessionProperties")},this.isValidReject=async r=>{if(!hr(r)){const{message:l}=X("MISSING_OR_INVALID",`reject() params: ${r}`);throw new Error(l)}const{id:n,reason:a}=r;if(await this.isValidProposalId(n),!wm(a)){const{message:l}=X("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(a)}`);throw new Error(l)}},this.isValidSessionSettleRequest=r=>{if(!hr(r)){const{message:v}=X("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${r}`);throw new Error(v)}const{relay:n,controller:a,namespaces:l,expiry:d}=r;if(!_m(n)){const{message:v}=X("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(v)}const y=bm(a,"onSessionSettleRequest()");if(y)throw new Error(y.message);const w=Vo(l,"onSessionSettleRequest()");if(w)throw new Error(w.message);if(wi(d)){const{message:v}=X("EXPIRED","onSessionSettleRequest()");throw new Error(v)}},this.isValidUpdate=async r=>{if(!hr(r)){const{message:w}=X("MISSING_OR_INVALID",`update() params: ${r}`);throw new Error(w)}const{topic:n,namespaces:a}=r;await this.isValidSessionTopic(n);const l=this.client.session.get(n),d=Vo(a,"update()");if(d)throw new Error(d.message);const y=Rh(l.requiredNamespaces,a,"update()");if(y)throw new Error(y.message)},this.isValidExtend=async r=>{if(!hr(r)){const{message:a}=X("MISSING_OR_INVALID",`extend() params: ${r}`);throw new Error(a)}const{topic:n}=r;await this.isValidSessionTopic(n)},this.isValidRequest=async r=>{if(!hr(r)){const{message:w}=X("MISSING_OR_INVALID",`request() params: ${r}`);throw new Error(w)}const{topic:n,request:a,chainId:l,expiry:d}=r;await this.isValidSessionTopic(n);const{namespaces:y}=this.client.session.get(n);if(!Th(y,l)){const{message:w}=X("MISSING_OR_INVALID",`request() chainId: ${l}`);throw new Error(w)}if(!Em(a)){const{message:w}=X("MISSING_OR_INVALID",`request() ${JSON.stringify(a)}`);throw new Error(w)}if(!Im(y,l,a.method)){const{message:w}=X("MISSING_OR_INVALID",`request() method: ${a.method}`);throw new Error(w)}if(d&&!xm(d,rc)){const{message:w}=X("MISSING_OR_INVALID",`request() expiry: ${d}. Expiry must be a number (in seconds) between ${rc.min} and ${rc.max}`);throw new Error(w)}},this.isValidRespond=async r=>{if(!hr(r)){const{message:l}=X("MISSING_OR_INVALID",`respond() params: ${r}`);throw new Error(l)}const{topic:n,response:a}=r;if(await this.isValidSessionTopic(n),!Pm(a)){const{message:l}=X("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(a)}`);throw new Error(l)}},this.isValidPing=async r=>{if(!hr(r)){const{message:a}=X("MISSING_OR_INVALID",`ping() params: ${r}`);throw new Error(a)}const{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async r=>{if(!hr(r)){const{message:y}=X("MISSING_OR_INVALID",`emit() params: ${r}`);throw new Error(y)}const{topic:n,event:a,chainId:l}=r;await this.isValidSessionTopic(n);const{namespaces:d}=this.client.session.get(n);if(!Th(d,l)){const{message:y}=X("MISSING_OR_INVALID",`emit() chainId: ${l}`);throw new Error(y)}if(!Sm(a)){const{message:y}=X("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(y)}if(!Cm(d,l,a.name)){const{message:y}=X("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(y)}},this.isValidDisconnect=async r=>{if(!hr(r)){const{message:a}=X("MISSING_OR_INVALID",`disconnect() params: ${r}`);throw new Error(a)}const{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.getVerifyContext=async(r,n)=>{const a={verified:{verifyUrl:n.verifyUrl||la,validation:"UNKNOWN",origin:n.url||""}};try{const l=await this.client.core.verify.resolve({attestationId:r,verifyUrl:n.verifyUrl});l&&(a.verified.origin=l.origin,a.verified.isScam=l.isScam,a.verified.validation=l.origin===new URL(n.url).origin?"VALID":"INVALID")}catch(l){this.client.logger.info(l)}return this.client.logger.info(`Verify context: ${JSON.stringify(a)}`),a},this.validateSessionProps=(r,n)=>{Object.values(r).forEach(a=>{if(!hs(a,!1)){const{message:l}=X("MISSING_OR_INVALID",`${n} must be in Record format. Received: ${JSON.stringify(a)}`);throw new Error(l)}})}}async isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(Gt.message,async i=>{const{topic:r,message:n}=i;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;const a=await this.client.core.crypto.decode(r,n);try{mc(a)?(this.client.core.history.set(r,a),this.onRelayEventRequest({topic:r,payload:a})):wc(a)?(await this.client.core.history.resolve(a),await this.onRelayEventResponse({topic:r,payload:a}),this.client.core.history.delete(r,a.id)):this.onRelayEventUnknownPayload({topic:r,payload:a})}catch(l){this.client.logger.error(l)}})}registerExpirerEvents(){this.client.core.expirer.on(Sr.expired,async i=>{const{topic:r,id:n}=Tl(i.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,X("EXPIRED"),!0);r?this.client.session.keys.includes(r)&&(await this.deleteSession(r,!0),this.client.events.emit("session_expire",{topic:r})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))})}registerPairingEvents(){this.client.core.pairing.events.on(Hs.create,i=>this.onPairingCreated(i))}isValidPairingTopic(i){if(!hs(i,!1)){const{message:r}=X("MISSING_OR_INVALID",`pairing topic should be a string: ${i}`);throw new Error(r)}if(!this.client.core.pairing.pairings.keys.includes(i)){const{message:r}=X("NO_MATCHING_KEY",`pairing topic doesn't exist: ${i}`);throw new Error(r)}if(wi(this.client.core.pairing.pairings.get(i).expiry)){const{message:r}=X("EXPIRED",`pairing topic: ${i}`);throw new Error(r)}}async isValidSessionTopic(i){if(!hs(i,!1)){const{message:r}=X("MISSING_OR_INVALID",`session topic should be a string: ${i}`);throw new Error(r)}if(!this.client.session.keys.includes(i)){const{message:r}=X("NO_MATCHING_KEY",`session topic doesn't exist: ${i}`);throw new Error(r)}if(wi(this.client.session.get(i).expiry)){await this.deleteSession(i);const{message:r}=X("EXPIRED",`session topic: ${i}`);throw new Error(r)}}async isValidSessionOrPairingTopic(i){if(this.client.session.keys.includes(i))await this.isValidSessionTopic(i);else if(this.client.core.pairing.pairings.keys.includes(i))this.isValidPairingTopic(i);else if(hs(i,!1)){const{message:r}=X("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${i}`);throw new Error(r)}else{const{message:r}=X("MISSING_OR_INVALID",`session or pairing topic should be a string: ${i}`);throw new Error(r)}}async isValidProposalId(i){if(!Om(i)){const{message:r}=X("MISSING_OR_INVALID",`proposal id should be a number: ${i}`);throw new Error(r)}if(!this.client.proposal.keys.includes(i)){const{message:r}=X("NO_MATCHING_KEY",`proposal id doesn't exist: ${i}`);throw new Error(r)}if(wi(this.client.proposal.get(i).expiry)){await this.deleteProposal(i);const{message:r}=X("EXPIRED",`proposal id: ${i}`);throw new Error(r)}}}class Lb extends ma{constructor(i,r){super(i,r,xb,xc),this.core=i,this.logger=r}}class qb extends ma{constructor(i,r){super(i,r,Pb,xc),this.core=i,this.logger=r}}class zb extends ma{constructor(i,r){super(i,r,Cb,xc,n=>n.id),this.core=i,this.logger=r}}let Mb=class uf extends Tw{constructor(i){super(i),this.protocol=nf,this.version=af,this.name=tc.name,this.events=new Kr.EventEmitter,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.removeAllListeners=n=>this.events.removeAllListeners(n),this.connect=async n=>{try{return await this.engine.connect(n)}catch(a){throw this.logger.error(a.message),a}},this.pair=async n=>{try{return await this.engine.pair(n)}catch(a){throw this.logger.error(a.message),a}},this.approve=async n=>{try{return await this.engine.approve(n)}catch(a){throw this.logger.error(a.message),a}},this.reject=async n=>{try{return await this.engine.reject(n)}catch(a){throw this.logger.error(a.message),a}},this.update=async n=>{try{return await this.engine.update(n)}catch(a){throw this.logger.error(a.message),a}},this.extend=async n=>{try{return await this.engine.extend(n)}catch(a){throw this.logger.error(a.message),a}},this.request=async n=>{try{return await this.engine.request(n)}catch(a){throw this.logger.error(a.message),a}},this.respond=async n=>{try{return await this.engine.respond(n)}catch(a){throw this.logger.error(a.message),a}},this.ping=async n=>{try{return await this.engine.ping(n)}catch(a){throw this.logger.error(a.message),a}},this.emit=async n=>{try{return await this.engine.emit(n)}catch(a){throw this.logger.error(a.message),a}},this.disconnect=async n=>{try{return await this.engine.disconnect(n)}catch(a){throw this.logger.error(a.message),a}},this.find=n=>{try{return this.engine.find(n)}catch(a){throw this.logger.error(a.message),a}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(n){throw this.logger.error(n.message),n}},this.name=(i==null?void 0:i.name)||tc.name,this.metadata=(i==null?void 0:i.metadata)||pm();const r=typeof(i==null?void 0:i.logger)<"u"&&typeof(i==null?void 0:i.logger)!="string"?i.logger:Oe.pino(Oe.getDefaultLoggerOptions({level:(i==null?void 0:i.logger)||tc.logger}));this.core=(i==null?void 0:i.core)||new Ib(i),this.logger=Oe.generateChildLogger(r,this.name),this.session=new qb(this.core,this.logger),this.proposal=new Lb(this.core,this.logger),this.pendingRequest=new zb(this.core,this.logger),this.engine=new Db(this)}static async init(i){const r=new uf(i);return await r.initialize(),r}get context(){return Oe.getLoggerContext(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(i){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(i.message),i}}};const yl="error",jb="wss://relay.walletconnect.com",Ub="wc",Hb="universal_provider",ml=`${Ub}@2:${Hb}:`,kb="https://rpc.walletconnect.com/v1/",ai={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};var js=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fc={exports:{}};/** +import{f as K0,r as Fs,h as ie,i as Kr,j as V0,w as Cl,k as Ol,m as gc,t as ga,o as F0,p as ea,q as B0,s as _i,D as G0,u as W0,N as X,v as J0,x as oc,y as Q0,V as Y0,R as X0,F as Sh,K as Z0,z as em,L as tm,A as Ch,$ as rm,B as im,C as Vs,Z as Oh,J as sm,X as nm,E as vc,_ as Rl,G as Dr,H as am,I as om,M as us,O as $t,U as tr,P as wi,Q as hr,S as cm,T as hs,W as Tl,Y as um,a0 as hm,a1 as lm,a2 as Al,a3 as fm,a4 as Nl,a5 as $l,a6 as ls,a7 as cc,a8 as oa,a9 as fs,aa as pm,ab as ca,ac as dm,ad as gm,ae as vm,af as ta,ag as ym,ah as mm,ai as Vo,aj as Rh,ak as wm,al as _m,am as bm,an as Th,ao as Em,ap as Im,aq as xm,ar as Pm,as as Sm,at as Cm,au as Om,av as Us,aw as Dl,ax as Fo,ay as Rm,az as Tm,aA as Am}from"./index-Mh1_DVck.js";import{s as Bs,a as va,i as Ah,c as Nm,b as $m,f as yc,p as Dm,J as ni,d as mc,e as wc,g as _c,h as mi,j as si,k as Ks,l as Lm,m as qm,H as Ii}from"./http-n9NI3oC7.js";const zm=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Mm=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,jm=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Um(c,i){if(c==="__proto__"||c==="constructor"&&i&&typeof i=="object"&&"prototype"in i){Hm(c);return}return i}function Hm(c){console.warn(`[destr] Dropping "${c}" key to prevent prototype pollution.`)}function ra(c,i={}){if(typeof c!="string")return c;const r=c.trim();if(c[0]==='"'&&c.at(-1)==='"'&&!c.includes("\\"))return r.slice(1,-1);if(r.length<=9){const n=r.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!jm.test(c)){if(i.strict)throw new SyntaxError("[destr] Invalid JSON");return c}try{if(zm.test(c)||Mm.test(c)){if(i.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(c,Um)}return JSON.parse(c)}catch(n){if(i.strict)throw n;return c}}function km(c){return!c||typeof c.then!="function"?Promise.resolve(c):c}function Ut(c,...i){try{return km(c(...i))}catch(r){return Promise.reject(r)}}function Km(c){const i=typeof c;return c===null||i!=="object"&&i!=="function"}function Vm(c){const i=Object.getPrototypeOf(c);return!i||i.isPrototypeOf(Object)}function ua(c){if(Km(c))return String(c);if(Vm(c)||Array.isArray(c))return JSON.stringify(c);if(typeof c.toJSON=="function")return ua(c.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function Ll(){if(typeof Buffer===void 0)throw new TypeError("[unstorage] Buffer is not supported!")}const uc="base64:";function Fm(c){if(typeof c=="string")return c;Ll();const i=Buffer.from(c).toString("base64");return uc+i}function Bm(c){return typeof c!="string"||!c.startsWith(uc)?c:(Ll(),Buffer.from(c.slice(uc.length),"base64"))}function ur(c){return c?c.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function Gm(...c){return ur(c.join(":"))}function ia(c){return c=ur(c),c?c+":":""}const Wm="memory",Jm=()=>{const c=new Map;return{name:Wm,options:{},hasItem(i){return c.has(i)},getItem(i){return c.get(i)??null},getItemRaw(i){return c.get(i)??null},setItem(i,r){c.set(i,r)},setItemRaw(i,r){c.set(i,r)},removeItem(i){c.delete(i)},getKeys(){return Array.from(c.keys())},clear(){c.clear()},dispose(){c.clear()}}};function Qm(c={}){const i={mounts:{"":c.driver||Jm()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=v=>{for(const E of i.mountpoints)if(v.startsWith(E))return{base:E,relativeKey:v.slice(E.length),driver:i.mounts[E]};return{base:"",relativeKey:v,driver:i.mounts[""]}},n=(v,E)=>i.mountpoints.filter(C=>C.startsWith(v)||E&&v.startsWith(C)).map(C=>({relativeBase:v.length>C.length?v.slice(C.length):void 0,mountpoint:C,driver:i.mounts[C]})),a=(v,E)=>{if(i.watching){E=ur(E);for(const C of i.watchListeners)C(v,E)}},l=async()=>{if(!i.watching){i.watching=!0;for(const v in i.mounts)i.unwatch[v]=await Nh(i.mounts[v],a,v)}},d=async()=>{if(i.watching){for(const v in i.unwatch)await i.unwatch[v]();i.unwatch={},i.watching=!1}},y=(v,E,C)=>{const T=new Map,j=D=>{let V=T.get(D.base);return V||(V={driver:D.driver,base:D.base,items:[]},T.set(D.base,V)),V};for(const D of v){const V=typeof D=="string",re=ur(V?D:D.key),ce=V?void 0:D.value,ue=V||!D.options?E:{...E,...D.options},he=r(re);j(he).items.push({key:re,value:ce,relativeKey:he.relativeKey,options:ue})}return Promise.all([...T.values()].map(D=>C(D))).then(D=>D.flat())},w={hasItem(v,E={}){v=ur(v);const{relativeKey:C,driver:T}=r(v);return Ut(T.hasItem,C,E)},getItem(v,E={}){v=ur(v);const{relativeKey:C,driver:T}=r(v);return Ut(T.getItem,C,E).then(j=>ra(j))},getItems(v,E){return y(v,E,C=>C.driver.getItems?Ut(C.driver.getItems,C.items.map(T=>({key:T.relativeKey,options:T.options})),E).then(T=>T.map(j=>({key:Gm(C.base,j.key),value:ra(j.value)}))):Promise.all(C.items.map(T=>Ut(C.driver.getItem,T.relativeKey,T.options).then(j=>({key:T.key,value:ra(j)})))))},getItemRaw(v,E={}){v=ur(v);const{relativeKey:C,driver:T}=r(v);return T.getItemRaw?Ut(T.getItemRaw,C,E):Ut(T.getItem,C,E).then(j=>Bm(j))},async setItem(v,E,C={}){if(E===void 0)return w.removeItem(v);v=ur(v);const{relativeKey:T,driver:j}=r(v);j.setItem&&(await Ut(j.setItem,T,ua(E),C),j.watch||a("update",v))},async setItems(v,E){await y(v,E,async C=>{C.driver.setItems&&await Ut(C.driver.setItems,C.items.map(T=>({key:T.relativeKey,value:ua(T.value),options:T.options})),E),C.driver.setItem&&await Promise.all(C.items.map(T=>Ut(C.driver.setItem,T.relativeKey,ua(T.value),T.options)))})},async setItemRaw(v,E,C={}){if(E===void 0)return w.removeItem(v,C);v=ur(v);const{relativeKey:T,driver:j}=r(v);if(j.setItemRaw)await Ut(j.setItemRaw,T,E,C);else if(j.setItem)await Ut(j.setItem,T,Fm(E),C);else return;j.watch||a("update",v)},async removeItem(v,E={}){typeof E=="boolean"&&(E={removeMeta:E}),v=ur(v);const{relativeKey:C,driver:T}=r(v);T.removeItem&&(await Ut(T.removeItem,C,E),(E.removeMeta||E.removeMata)&&await Ut(T.removeItem,C+"$",E),T.watch||a("remove",v))},async getMeta(v,E={}){typeof E=="boolean"&&(E={nativeOnly:E}),v=ur(v);const{relativeKey:C,driver:T}=r(v),j=Object.create(null);if(T.getMeta&&Object.assign(j,await Ut(T.getMeta,C,E)),!E.nativeOnly){const D=await Ut(T.getItem,C+"$",E).then(V=>ra(V));D&&typeof D=="object"&&(typeof D.atime=="string"&&(D.atime=new Date(D.atime)),typeof D.mtime=="string"&&(D.mtime=new Date(D.mtime)),Object.assign(j,D))}return j},setMeta(v,E,C={}){return this.setItem(v+"$",E,C)},removeMeta(v,E={}){return this.removeItem(v+"$",E)},async getKeys(v,E={}){v=ia(v);const C=n(v,!0);let T=[];const j=[];for(const D of C){const re=(await Ut(D.driver.getKeys,D.relativeBase,E)).map(ce=>D.mountpoint+ur(ce)).filter(ce=>!T.some(ue=>ce.startsWith(ue)));j.push(...re),T=[D.mountpoint,...T.filter(ce=>!ce.startsWith(D.mountpoint))]}return v?j.filter(D=>D.startsWith(v)&&!D.endsWith("$")):j.filter(D=>!D.endsWith("$"))},async clear(v,E={}){v=ia(v),await Promise.all(n(v,!1).map(async C=>{if(C.driver.clear)return Ut(C.driver.clear,C.relativeBase,E);if(C.driver.removeItem){const T=await C.driver.getKeys(C.relativeBase||"",E);return Promise.all(T.map(j=>C.driver.removeItem(j,E)))}}))},async dispose(){await Promise.all(Object.values(i.mounts).map(v=>$h(v)))},async watch(v){return await l(),i.watchListeners.push(v),async()=>{i.watchListeners=i.watchListeners.filter(E=>E!==v),i.watchListeners.length===0&&await d()}},async unwatch(){i.watchListeners=[],await d()},mount(v,E){if(v=ia(v),v&&i.mounts[v])throw new Error(`already mounted at ${v}`);return v&&(i.mountpoints.push(v),i.mountpoints.sort((C,T)=>T.length-C.length)),i.mounts[v]=E,i.watching&&Promise.resolve(Nh(E,a,v)).then(C=>{i.unwatch[v]=C}).catch(console.error),w},async unmount(v,E=!0){v=ia(v),!(!v||!i.mounts[v])&&(i.watching&&v in i.unwatch&&(i.unwatch[v](),delete i.unwatch[v]),E&&await $h(i.mounts[v]),i.mountpoints=i.mountpoints.filter(C=>C!==v),delete i.mounts[v])},getMount(v=""){v=ur(v)+":";const E=r(v);return{driver:E.driver,base:E.base}},getMounts(v="",E={}){return v=ur(v),n(v,E.parents).map(T=>({driver:T.driver,base:T.mountpoint}))}};return w}function Nh(c,i,r){return c.watch?c.watch((n,a)=>i(n,r+a)):()=>{}}async function $h(c){typeof c.dispose=="function"&&await Ut(c.dispose)}function Ui(c){return new Promise((i,r)=>{c.oncomplete=c.onsuccess=()=>i(c.result),c.onabort=c.onerror=()=>r(c.error)})}function ql(c,i){const r=indexedDB.open(c);r.onupgradeneeded=()=>r.result.createObjectStore(i);const n=Ui(r);return(a,l)=>n.then(d=>l(d.transaction(i,a).objectStore(i)))}let Bo;function Gs(){return Bo||(Bo=ql("keyval-store","keyval")),Bo}function Dh(c,i=Gs()){return i("readonly",r=>Ui(r.get(c)))}function Ym(c,i,r=Gs()){return r("readwrite",n=>(n.put(i,c),Ui(n.transaction)))}function Xm(c,i=Gs()){return i("readwrite",r=>(r.delete(c),Ui(r.transaction)))}function Zm(c=Gs()){return c("readwrite",i=>(i.clear(),Ui(i.transaction)))}function ew(c,i){return c.openCursor().onsuccess=function(){this.result&&(i(this.result),this.result.continue())},Ui(c.transaction)}function tw(c=Gs()){return c("readonly",i=>{if(i.getAllKeys)return Ui(i.getAllKeys());const r=[];return ew(i,n=>r.push(n.key)).then(()=>r)})}const rw="idb-keyval";var iw=(c={})=>{const i=c.base&&c.base.length>0?`${c.base}:`:"",r=a=>i+a;let n;return c.dbName&&c.storeName&&(n=ql(c.dbName,c.storeName)),{name:rw,options:c,async hasItem(a){return!(typeof await Dh(r(a),n)>"u")},async getItem(a){return await Dh(r(a),n)??null},setItem(a,l){return Ym(r(a),l,n)},removeItem(a){return Xm(r(a),n)},getKeys(){return tw(n)},clear(){return Zm(n)}}};const sw="WALLET_CONNECT_V2_INDEXED_DB",nw="keyvaluestorage";let aw=class{constructor(){this.indexedDb=Qm({driver:iw({dbName:sw,storeName:nw})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(i=>[i.key,i.value])}async getItem(i){const r=await this.indexedDb.getItem(i);if(r!==null)return r}async setItem(i,r){await this.indexedDb.setItem(i,Bs(r))}async removeItem(i){await this.indexedDb.removeItem(i)}};var Go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ha={exports:{}};(function(){let c;function i(){}c=i,c.prototype.getItem=function(r){return this.hasOwnProperty(r)?String(this[r]):null},c.prototype.setItem=function(r,n){this[r]=String(n)},c.prototype.removeItem=function(r){delete this[r]},c.prototype.clear=function(){const r=this;Object.keys(r).forEach(function(n){r[n]=void 0,delete r[n]})},c.prototype.key=function(r){return r=r||0,Object.keys(this)[r]},c.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof Go<"u"&&Go.localStorage?ha.exports=Go.localStorage:typeof window<"u"&&window.localStorage?ha.exports=window.localStorage:ha.exports=new i})();function ow(c){var i;return[c[0],va((i=c[1])!=null?i:"")]}let cw=class{constructor(){this.localStorage=ha.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(ow)}async getItem(i){const r=this.localStorage.getItem(i);if(r!==null)return va(r)}async setItem(i,r){this.localStorage.setItem(i,Bs(r))}async removeItem(i){this.localStorage.removeItem(i)}};const uw="wc_storage_version",Lh=1,hw=async(c,i,r)=>{const n=uw,a=await i.getItem(n);if(a&&a>=Lh){r(i);return}const l=await c.getKeys();if(!l.length){r(i);return}const d=[];for(;l.length;){const y=l.shift();if(!y)continue;const w=y.toLowerCase();if(w.includes("wc@")||w.includes("walletconnect")||w.includes("wc_")||w.includes("wallet_connect")){const v=await c.getItem(y);await i.setItem(y,v),d.push(y)}}await i.setItem(n,Lh),r(i),lw(c,d)},lw=async(c,i)=>{i.length&&i.forEach(async r=>{await c.removeItem(r)})};let fw=class{constructor(){this.initialized=!1,this.setInitialized=r=>{this.storage=r,this.initialized=!0};const i=new cw;this.storage=i;try{const r=new aw;hw(i,r,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(i){return await this.initialize(),this.storage.getItem(i)}async setItem(i,r){return await this.initialize(),this.storage.setItem(i,r)}async removeItem(i){return await this.initialize(),this.storage.removeItem(i)}async initialize(){this.initialized||await new Promise(i=>{const r=setInterval(()=>{this.initialized&&(clearInterval(r),i())},20)})}};var ps={},$s={},Wo={},Ds={};class Hi{}const pw=Object.freeze(Object.defineProperty({__proto__:null,IEvents:Hi},Symbol.toStringTag,{value:"Module"})),dw=K0(pw);var qh;function gw(){if(qh)return Ds;qh=1,Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.IHeartBeat=void 0;const c=dw;class i extends c.IEvents{constructor(n){super()}}return Ds.IHeartBeat=i,Ds}var zh;function zl(){return zh||(zh=1,function(c){Object.defineProperty(c,"__esModule",{value:!0}),Fs.__exportStar(gw(),c)}(Wo)),Wo}var Jo={},Mi={},Mh;function vw(){if(Mh)return Mi;Mh=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.HEARTBEAT_EVENTS=Mi.HEARTBEAT_INTERVAL=void 0;const c=ie;return Mi.HEARTBEAT_INTERVAL=c.FIVE_SECONDS,Mi.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"},Mi}var jh;function Ml(){return jh||(jh=1,function(c){Object.defineProperty(c,"__esModule",{value:!0}),Fs.__exportStar(vw(),c)}(Jo)),Jo}var Uh;function yw(){if(Uh)return $s;Uh=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.HeartBeat=void 0;const c=Fs,i=Kr,r=ie,n=zl(),a=Ml();class l extends n.IHeartBeat{constructor(y){super(y),this.events=new i.EventEmitter,this.interval=a.HEARTBEAT_INTERVAL,this.interval=(y==null?void 0:y.interval)||a.HEARTBEAT_INTERVAL}static init(y){return c.__awaiter(this,void 0,void 0,function*(){const w=new l(y);return yield w.init(),w})}init(){return c.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(y,w){this.events.on(y,w)}once(y,w){this.events.once(y,w)}off(y,w){this.events.off(y,w)}removeListener(y,w){this.events.removeListener(y,w)}initialize(){return c.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),r.toMiliseconds(this.interval))})}pulse(){this.events.emit(a.HEARTBEAT_EVENTS.pulse)}}return $s.HeartBeat=l,$s}(function(c){Object.defineProperty(c,"__esModule",{value:!0});const i=Fs;i.__exportStar(yw(),c),i.__exportStar(zl(),c),i.__exportStar(Ml(),c)})(ps);var Oe={},Qo,Hh;function mw(){if(Hh)return Qo;Hh=1;function c(r){try{return JSON.stringify(r)}catch{return'"[Circular]"'}}Qo=i;function i(r,n,a){var l=a&&a.stringify||c,d=1;if(typeof r=="object"&&r!==null){var y=n.length+d;if(y===1)return r;var w=new Array(y);w[0]=l(r);for(var v=1;v-1?j:0,r.charCodeAt(V+1)){case 100:case 102:if(T>=E||n[T]==null)break;j=E||n[T]==null)break;j=E||n[T]===void 0)break;j",j=V+2,V++;break}C+=l(n[T]),j=V+2,V++;break;case 115:if(T>=E)break;j-1&&(Ee=!1);const Re=["error","fatal","warn","info","debug","trace"];typeof W=="function"&&(W.error=W.fatal=W.warn=W.info=W.debug=W.trace=W),$.enabled===!1&&($.level="silent");const et=$.level||"info",R=Object.create(W);R.log||(R.log=re),Object.defineProperty(R,"levelVal",{get:je}),Object.defineProperty(R,"level",{get:Te,set:J});const M={transmit:k,serialize:te,asObject:$.browser.asObject,levels:Re,timestamp:j($)};R.levels=a.levels,R.level=et,R.setMaxListeners=R.getMaxListeners=R.emit=R.addListener=R.on=R.prependListener=R.once=R.prependOnceListener=R.removeListener=R.removeAllListeners=R.listeners=R.listenerCount=R.eventNames=R.write=R.flush=re,R.serializers=ve,R._serialize=te,R._stdErrSerialize=Ee,R.child=F,k&&(R._logEvent=C());function je(){return this.level==="silent"?1/0:this.levels.values[this.level]}function Te(){return this._level}function J(K){if(K!=="silent"&&!this.levels.values[K])throw Error("unknown level "+K);this._level=K,l(M,R,"error","log"),l(M,R,"fatal","error"),l(M,R,"warn","error"),l(M,R,"info","log"),l(M,R,"debug","log"),l(M,R,"trace","log")}function F(K,B){if(!K)throw new Error("missing bindings for child Pino");B=B||{},te&&K.serializers&&(B.serializers=K.serializers);const ut=B.serializers;if(te&&ut){var ke=Object.assign({},ve,ut),Lr=$.browser.serialize===!0?Object.keys(ke):te;delete K.serializers,w([K],Lr,ke,this._stdErrSerialize)}function _e(It){this._childLevel=(It._childLevel|0)+1,this.error=v(It,K,"error"),this.fatal=v(It,K,"fatal"),this.warn=v(It,K,"warn"),this.info=v(It,K,"info"),this.debug=v(It,K,"debug"),this.trace=v(It,K,"trace"),ke&&(this.serializers=ke,this._serialize=Lr),k&&(this._logEvent=C([].concat(It._logEvent.bindings,K)))}return _e.prototype=this,new _e(this)}return R}a.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},a.stdSerializers=r,a.stdTimeFunctions=Object.assign({},{nullTime:ce,epochTime:ue,unixTime:he,isoTime:fe});function l($,k,W,ve){const te=Object.getPrototypeOf(k);k[W]=k.levelVal>k.levels.values[W]?re:te[W]?te[W]:i[W]||i[ve]||re,d($,k,W)}function d($,k,W){!$.transmit&&k[W]===re||(k[W]=function(ve){return function(){const Ee=$.timestamp(),Re=new Array(arguments.length),et=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var R=0;R-1&&Ee in W&&($[te][Ee]=W[Ee]($[te][Ee]))}function v($,k,W){return function(){const ve=new Array(1+arguments.length);ve[0]=k;for(var te=1;te"u"?v=r(y,w):v=y.bindings().context||"",v}er.getLoggerContext=a;function l(y,w,v=c.PINO_CUSTOM_CONTEXT_KEY){const E=a(y,v);return E.trim()?`${E}/${w}`:w}er.formatChildLoggerContext=l;function d(y,w,v=c.PINO_CUSTOM_CONTEXT_KEY){const E=l(y,w,v),C=y.child({context:E});return n(C,E,v)}return er.generateChildLogger=d,er}(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.pino=void 0;const i=Fs,r=i.__importDefault(ww());Object.defineProperty(c,"pino",{enumerable:!0,get:function(){return r.default}}),i.__exportStar(jl(),c),i.__exportStar(_w(),c)})(Oe);class bw extends Hi{constructor(i){super(),this.opts=i,this.protocol="wc",this.version=2}}class Ew extends Hi{constructor(i,r){super(),this.core=i,this.logger=r,this.records=new Map}}class Iw{constructor(i,r){this.logger=i,this.core=r}}let xw=class extends Hi{constructor(i,r){super(),this.relayer=i,this.logger=r}},Pw=class extends Hi{constructor(i){super()}},Sw=class{constructor(i,r,n,a){this.core=i,this.logger=r,this.name=n}};class Cw extends Hi{constructor(i,r){super(),this.relayer=i,this.logger=r}}let Ow=class extends Hi{constructor(i,r){super(),this.core=i,this.logger=r}},Rw=class{constructor(i,r){this.projectId=i,this.logger=r}},Tw=class{constructor(i){this.opts=i,this.protocol="wc",this.version=2}},Aw=class{constructor(i){this.client=i}};var bc={},Ul={};(function(c){Object.defineProperty(c,"__esModule",{value:!0});var i=V0,r=Cl;c.DIGEST_LENGTH=64,c.BLOCK_SIZE=128;var n=function(){function y(){this.digestLength=c.DIGEST_LENGTH,this.blockSize=c.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return y.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},y.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},y.prototype.clean=function(){r.wipe(this._buffer),r.wipe(this._tempHi),r.wipe(this._tempLo),this.reset()},y.prototype.update=function(w,v){if(v===void 0&&(v=w.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var E=0;if(this._bytesHashed+=v,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=w[E++],v--;this._bufferLength===this.blockSize&&(l(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(v>=this.blockSize&&(E=l(this._tempHi,this._tempLo,this._stateHi,this._stateLo,w,E,v),v%=this.blockSize);v>0;)this._buffer[this._bufferLength++]=w[E++],v--;return this},y.prototype.finish=function(w){if(!this._finished){var v=this._bytesHashed,E=this._bufferLength,C=v/536870912|0,T=v<<3,j=v%128<112?128:256;this._buffer[E]=128;for(var D=E+1;D0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},y.prototype.restoreState=function(w){return this._stateHi.set(w.stateHi),this._stateLo.set(w.stateLo),this._bufferLength=w.bufferLength,w.buffer&&this._buffer.set(w.buffer),this._bytesHashed=w.bytesHashed,this._finished=!1,this},y.prototype.cleanSavedState=function(w){r.wipe(w.stateHi),r.wipe(w.stateLo),w.buffer&&r.wipe(w.buffer),w.bufferLength=0,w.bytesHashed=0},y}();c.SHA512=n;var a=new Int32Array([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 l(y,w,v,E,C,T,j){for(var D=v[0],V=v[1],re=v[2],ce=v[3],ue=v[4],he=v[5],fe=v[6],pe=v[7],$=E[0],k=E[1],W=E[2],ve=E[3],te=E[4],Ee=E[5],Re=E[6],et=E[7],R,M,je,Te,J,F,K,B;j>=128;){for(var ut=0;ut<16;ut++){var ke=8*ut+T;y[ut]=i.readUint32BE(C,ke),w[ut]=i.readUint32BE(C,ke+4)}for(var ut=0;ut<80;ut++){var Lr=D,_e=V,It=re,N=ce,A=ue,S=he,u=fe,b=pe,Z=$,oe=k,me=W,Ae=ve,$e=te,xe=Ee,xt=Re,mt=et;if(R=pe,M=et,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=(ue>>>14|te<<18)^(ue>>>18|te<<14)^(te>>>9|ue<<23),M=(te>>>14|ue<<18)^(te>>>18|ue<<14)^(ue>>>9|te<<23),J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,R=ue&he^~ue&fe,M=te&Ee^~te&Re,J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,R=a[ut*2],M=a[ut*2+1],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,R=y[ut%16],M=w[ut%16],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,je=K&65535|B<<16,Te=J&65535|F<<16,R=je,M=Te,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=(D>>>28|$<<4)^($>>>2|D<<30)^($>>>7|D<<25),M=($>>>28|D<<4)^(D>>>2|$<<30)^(D>>>7|$<<25),J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,R=D&V^D&re^V&re,M=$&k^$&W^k&W,J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,b=K&65535|B<<16,mt=J&65535|F<<16,R=N,M=Ae,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=je,M=Te,J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,N=K&65535|B<<16,Ae=J&65535|F<<16,V=Lr,re=_e,ce=It,ue=N,he=A,fe=S,pe=u,D=b,k=Z,W=oe,ve=me,te=Ae,Ee=$e,Re=xe,et=xt,$=mt,ut%16===15)for(var ke=0;ke<16;ke++)R=y[ke],M=w[ke],J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=y[(ke+9)%16],M=w[(ke+9)%16],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,je=y[(ke+1)%16],Te=w[(ke+1)%16],R=(je>>>1|Te<<31)^(je>>>8|Te<<24)^je>>>7,M=(Te>>>1|je<<31)^(Te>>>8|je<<24)^(Te>>>7|je<<25),J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,je=y[(ke+14)%16],Te=w[(ke+14)%16],R=(je>>>19|Te<<13)^(Te>>>29|je<<3)^je>>>6,M=(Te>>>19|je<<13)^(je>>>29|Te<<3)^(Te>>>6|je<<26),J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,y[ke]=K&65535|B<<16,w[ke]=J&65535|F<<16}R=D,M=$,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[0],M=E[0],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[0]=D=K&65535|B<<16,E[0]=$=J&65535|F<<16,R=V,M=k,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[1],M=E[1],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[1]=V=K&65535|B<<16,E[1]=k=J&65535|F<<16,R=re,M=W,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[2],M=E[2],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[2]=re=K&65535|B<<16,E[2]=W=J&65535|F<<16,R=ce,M=ve,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[3],M=E[3],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[3]=ce=K&65535|B<<16,E[3]=ve=J&65535|F<<16,R=ue,M=te,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[4],M=E[4],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[4]=ue=K&65535|B<<16,E[4]=te=J&65535|F<<16,R=he,M=Ee,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[5],M=E[5],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[5]=he=K&65535|B<<16,E[5]=Ee=J&65535|F<<16,R=fe,M=Re,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[6],M=E[6],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[6]=fe=K&65535|B<<16,E[6]=Re=J&65535|F<<16,R=pe,M=et,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[7],M=E[7],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[7]=pe=K&65535|B<<16,E[7]=et=J&65535|F<<16,T+=128,j-=128}return T}function d(y){var w=new n;w.update(y);var v=w.digest();return w.clean(),v}c.hash=d})(Ul);(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.convertSecretKeyToX25519=c.convertPublicKeyToX25519=c.verify=c.sign=c.extractPublicKeyFromSecretKey=c.generateKeyPair=c.generateKeyPairFromSeed=c.SEED_LENGTH=c.SECRET_KEY_LENGTH=c.PUBLIC_KEY_LENGTH=c.SIGNATURE_LENGTH=void 0;const i=Ol,r=Ul,n=Cl;c.SIGNATURE_LENGTH=64,c.PUBLIC_KEY_LENGTH=32,c.SECRET_KEY_LENGTH=64,c.SEED_LENGTH=32;function a(N){const A=new Float64Array(16);if(N)for(let S=0;S>16&1),S[oe-1]&=65535;S[15]=u[15]-32767-(S[14]>>16&1);const Z=S[15]>>16&1;S[14]&=65535,V(u,S,1-Z)}for(let b=0;b<16;b++)N[2*b]=u[b]&255,N[2*b+1]=u[b]>>8}function ce(N,A){let S=0;for(let u=0;u<32;u++)S|=N[u]^A[u];return(1&S-1>>>8)-1}function ue(N,A){const S=new Uint8Array(32),u=new Uint8Array(32);return re(S,N),re(u,A),ce(S,u)}function he(N){const A=new Uint8Array(32);return re(A,N),A[0]&1}function fe(N,A){for(let S=0;S<16;S++)N[S]=A[2*S]+(A[2*S+1]<<8);N[15]&=32767}function pe(N,A,S){for(let u=0;u<16;u++)N[u]=A[u]+S[u]}function $(N,A,S){for(let u=0;u<16;u++)N[u]=A[u]-S[u]}function k(N,A,S){let u,b,Z=0,oe=0,me=0,Ae=0,$e=0,xe=0,xt=0,mt=0,nt=0,Le=0,Je=0,Qe=0,at=0,Ue=0,Ye=0,Ne=0,Ke=0,ht=0,ze=0,Pt=0,Dt=0,Ht=0,kt=0,zt=0,Wt=0,rr=0,qr=0,Jt=0,Vr=0,oi=0,xi=0,lt=S[0],tt=S[1],ft=S[2],pt=S[3],ot=S[4],rt=S[5],St=S[6],Ct=S[7],dt=S[8],Ot=S[9],gt=S[10],wt=S[11],vt=S[12],We=S[13],Rt=S[14],Tt=S[15];u=A[0],Z+=u*lt,oe+=u*tt,me+=u*ft,Ae+=u*pt,$e+=u*ot,xe+=u*rt,xt+=u*St,mt+=u*Ct,nt+=u*dt,Le+=u*Ot,Je+=u*gt,Qe+=u*wt,at+=u*vt,Ue+=u*We,Ye+=u*Rt,Ne+=u*Tt,u=A[1],oe+=u*lt,me+=u*tt,Ae+=u*ft,$e+=u*pt,xe+=u*ot,xt+=u*rt,mt+=u*St,nt+=u*Ct,Le+=u*dt,Je+=u*Ot,Qe+=u*gt,at+=u*wt,Ue+=u*vt,Ye+=u*We,Ne+=u*Rt,Ke+=u*Tt,u=A[2],me+=u*lt,Ae+=u*tt,$e+=u*ft,xe+=u*pt,xt+=u*ot,mt+=u*rt,nt+=u*St,Le+=u*Ct,Je+=u*dt,Qe+=u*Ot,at+=u*gt,Ue+=u*wt,Ye+=u*vt,Ne+=u*We,Ke+=u*Rt,ht+=u*Tt,u=A[3],Ae+=u*lt,$e+=u*tt,xe+=u*ft,xt+=u*pt,mt+=u*ot,nt+=u*rt,Le+=u*St,Je+=u*Ct,Qe+=u*dt,at+=u*Ot,Ue+=u*gt,Ye+=u*wt,Ne+=u*vt,Ke+=u*We,ht+=u*Rt,ze+=u*Tt,u=A[4],$e+=u*lt,xe+=u*tt,xt+=u*ft,mt+=u*pt,nt+=u*ot,Le+=u*rt,Je+=u*St,Qe+=u*Ct,at+=u*dt,Ue+=u*Ot,Ye+=u*gt,Ne+=u*wt,Ke+=u*vt,ht+=u*We,ze+=u*Rt,Pt+=u*Tt,u=A[5],xe+=u*lt,xt+=u*tt,mt+=u*ft,nt+=u*pt,Le+=u*ot,Je+=u*rt,Qe+=u*St,at+=u*Ct,Ue+=u*dt,Ye+=u*Ot,Ne+=u*gt,Ke+=u*wt,ht+=u*vt,ze+=u*We,Pt+=u*Rt,Dt+=u*Tt,u=A[6],xt+=u*lt,mt+=u*tt,nt+=u*ft,Le+=u*pt,Je+=u*ot,Qe+=u*rt,at+=u*St,Ue+=u*Ct,Ye+=u*dt,Ne+=u*Ot,Ke+=u*gt,ht+=u*wt,ze+=u*vt,Pt+=u*We,Dt+=u*Rt,Ht+=u*Tt,u=A[7],mt+=u*lt,nt+=u*tt,Le+=u*ft,Je+=u*pt,Qe+=u*ot,at+=u*rt,Ue+=u*St,Ye+=u*Ct,Ne+=u*dt,Ke+=u*Ot,ht+=u*gt,ze+=u*wt,Pt+=u*vt,Dt+=u*We,Ht+=u*Rt,kt+=u*Tt,u=A[8],nt+=u*lt,Le+=u*tt,Je+=u*ft,Qe+=u*pt,at+=u*ot,Ue+=u*rt,Ye+=u*St,Ne+=u*Ct,Ke+=u*dt,ht+=u*Ot,ze+=u*gt,Pt+=u*wt,Dt+=u*vt,Ht+=u*We,kt+=u*Rt,zt+=u*Tt,u=A[9],Le+=u*lt,Je+=u*tt,Qe+=u*ft,at+=u*pt,Ue+=u*ot,Ye+=u*rt,Ne+=u*St,Ke+=u*Ct,ht+=u*dt,ze+=u*Ot,Pt+=u*gt,Dt+=u*wt,Ht+=u*vt,kt+=u*We,zt+=u*Rt,Wt+=u*Tt,u=A[10],Je+=u*lt,Qe+=u*tt,at+=u*ft,Ue+=u*pt,Ye+=u*ot,Ne+=u*rt,Ke+=u*St,ht+=u*Ct,ze+=u*dt,Pt+=u*Ot,Dt+=u*gt,Ht+=u*wt,kt+=u*vt,zt+=u*We,Wt+=u*Rt,rr+=u*Tt,u=A[11],Qe+=u*lt,at+=u*tt,Ue+=u*ft,Ye+=u*pt,Ne+=u*ot,Ke+=u*rt,ht+=u*St,ze+=u*Ct,Pt+=u*dt,Dt+=u*Ot,Ht+=u*gt,kt+=u*wt,zt+=u*vt,Wt+=u*We,rr+=u*Rt,qr+=u*Tt,u=A[12],at+=u*lt,Ue+=u*tt,Ye+=u*ft,Ne+=u*pt,Ke+=u*ot,ht+=u*rt,ze+=u*St,Pt+=u*Ct,Dt+=u*dt,Ht+=u*Ot,kt+=u*gt,zt+=u*wt,Wt+=u*vt,rr+=u*We,qr+=u*Rt,Jt+=u*Tt,u=A[13],Ue+=u*lt,Ye+=u*tt,Ne+=u*ft,Ke+=u*pt,ht+=u*ot,ze+=u*rt,Pt+=u*St,Dt+=u*Ct,Ht+=u*dt,kt+=u*Ot,zt+=u*gt,Wt+=u*wt,rr+=u*vt,qr+=u*We,Jt+=u*Rt,Vr+=u*Tt,u=A[14],Ye+=u*lt,Ne+=u*tt,Ke+=u*ft,ht+=u*pt,ze+=u*ot,Pt+=u*rt,Dt+=u*St,Ht+=u*Ct,kt+=u*dt,zt+=u*Ot,Wt+=u*gt,rr+=u*wt,qr+=u*vt,Jt+=u*We,Vr+=u*Rt,oi+=u*Tt,u=A[15],Ne+=u*lt,Ke+=u*tt,ht+=u*ft,ze+=u*pt,Pt+=u*ot,Dt+=u*rt,Ht+=u*St,kt+=u*Ct,zt+=u*dt,Wt+=u*Ot,rr+=u*gt,qr+=u*wt,Jt+=u*vt,Vr+=u*We,oi+=u*Rt,xi+=u*Tt,Z+=38*Ke,oe+=38*ht,me+=38*ze,Ae+=38*Pt,$e+=38*Dt,xe+=38*Ht,xt+=38*kt,mt+=38*zt,nt+=38*Wt,Le+=38*rr,Je+=38*qr,Qe+=38*Jt,at+=38*Vr,Ue+=38*oi,Ye+=38*xi,b=1,u=Z+b+65535,b=Math.floor(u/65536),Z=u-b*65536,u=oe+b+65535,b=Math.floor(u/65536),oe=u-b*65536,u=me+b+65535,b=Math.floor(u/65536),me=u-b*65536,u=Ae+b+65535,b=Math.floor(u/65536),Ae=u-b*65536,u=$e+b+65535,b=Math.floor(u/65536),$e=u-b*65536,u=xe+b+65535,b=Math.floor(u/65536),xe=u-b*65536,u=xt+b+65535,b=Math.floor(u/65536),xt=u-b*65536,u=mt+b+65535,b=Math.floor(u/65536),mt=u-b*65536,u=nt+b+65535,b=Math.floor(u/65536),nt=u-b*65536,u=Le+b+65535,b=Math.floor(u/65536),Le=u-b*65536,u=Je+b+65535,b=Math.floor(u/65536),Je=u-b*65536,u=Qe+b+65535,b=Math.floor(u/65536),Qe=u-b*65536,u=at+b+65535,b=Math.floor(u/65536),at=u-b*65536,u=Ue+b+65535,b=Math.floor(u/65536),Ue=u-b*65536,u=Ye+b+65535,b=Math.floor(u/65536),Ye=u-b*65536,u=Ne+b+65535,b=Math.floor(u/65536),Ne=u-b*65536,Z+=b-1+37*(b-1),b=1,u=Z+b+65535,b=Math.floor(u/65536),Z=u-b*65536,u=oe+b+65535,b=Math.floor(u/65536),oe=u-b*65536,u=me+b+65535,b=Math.floor(u/65536),me=u-b*65536,u=Ae+b+65535,b=Math.floor(u/65536),Ae=u-b*65536,u=$e+b+65535,b=Math.floor(u/65536),$e=u-b*65536,u=xe+b+65535,b=Math.floor(u/65536),xe=u-b*65536,u=xt+b+65535,b=Math.floor(u/65536),xt=u-b*65536,u=mt+b+65535,b=Math.floor(u/65536),mt=u-b*65536,u=nt+b+65535,b=Math.floor(u/65536),nt=u-b*65536,u=Le+b+65535,b=Math.floor(u/65536),Le=u-b*65536,u=Je+b+65535,b=Math.floor(u/65536),Je=u-b*65536,u=Qe+b+65535,b=Math.floor(u/65536),Qe=u-b*65536,u=at+b+65535,b=Math.floor(u/65536),at=u-b*65536,u=Ue+b+65535,b=Math.floor(u/65536),Ue=u-b*65536,u=Ye+b+65535,b=Math.floor(u/65536),Ye=u-b*65536,u=Ne+b+65535,b=Math.floor(u/65536),Ne=u-b*65536,Z+=b-1+37*(b-1),N[0]=Z,N[1]=oe,N[2]=me,N[3]=Ae,N[4]=$e,N[5]=xe,N[6]=xt,N[7]=mt,N[8]=nt,N[9]=Le,N[10]=Je,N[11]=Qe,N[12]=at,N[13]=Ue,N[14]=Ye,N[15]=Ne}function W(N,A){k(N,A,A)}function ve(N,A){const S=a();let u;for(u=0;u<16;u++)S[u]=A[u];for(u=253;u>=0;u--)W(S,S),u!==2&&u!==4&&k(S,S,A);for(u=0;u<16;u++)N[u]=S[u]}function te(N,A){const S=a();let u;for(u=0;u<16;u++)S[u]=A[u];for(u=250;u>=0;u--)W(S,S),u!==1&&k(S,S,A);for(u=0;u<16;u++)N[u]=S[u]}function Ee(N,A){const S=a(),u=a(),b=a(),Z=a(),oe=a(),me=a(),Ae=a(),$e=a(),xe=a();$(S,N[1],N[0]),$(xe,A[1],A[0]),k(S,S,xe),pe(u,N[0],N[1]),pe(xe,A[0],A[1]),k(u,u,xe),k(b,N[3],A[3]),k(b,b,v),k(Z,N[2],A[2]),pe(Z,Z,Z),$(oe,u,S),$(me,Z,b),pe(Ae,Z,b),pe($e,u,S),k(N[0],oe,me),k(N[1],$e,Ae),k(N[2],Ae,me),k(N[3],oe,$e)}function Re(N,A,S){for(let u=0;u<4;u++)V(N[u],A[u],S)}function et(N,A){const S=a(),u=a(),b=a();ve(b,A[2]),k(S,A[0],b),k(u,A[1],b),re(N,u),N[31]^=he(S)<<7}function R(N,A,S){j(N[0],d),j(N[1],y),j(N[2],y),j(N[3],d);for(let u=255;u>=0;--u){const b=S[u/8|0]>>(u&7)&1;Re(N,A,b),Ee(A,N),Ee(N,N),Re(N,A,b)}}function M(N,A){const S=[a(),a(),a(),a()];j(S[0],E),j(S[1],C),j(S[2],y),k(S[3],E,C),R(N,S,A)}function je(N){if(N.length!==c.SEED_LENGTH)throw new Error(`ed25519: seed must be ${c.SEED_LENGTH} bytes`);const A=(0,r.hash)(N);A[0]&=248,A[31]&=127,A[31]|=64;const S=new Uint8Array(32),u=[a(),a(),a(),a()];M(u,A),et(S,u);const b=new Uint8Array(64);return b.set(N),b.set(S,32),{publicKey:S,secretKey:b}}c.generateKeyPairFromSeed=je;function Te(N){const A=(0,i.randomBytes)(32,N),S=je(A);return(0,n.wipe)(A),S}c.generateKeyPair=Te;function J(N){if(N.length!==c.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${c.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(N.subarray(32))}c.extractPublicKeyFromSecretKey=J;const F=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 K(N,A){let S,u,b,Z;for(u=63;u>=32;--u){for(S=0,b=u-32,Z=u-12;b>4)*F[b],S=A[b]>>8,A[b]&=255;for(b=0;b<32;b++)A[b]-=S*F[b];for(u=0;u<32;u++)A[u+1]+=A[u]>>8,N[u]=A[u]&255}function B(N){const A=new Float64Array(64);for(let S=0;S<64;S++)A[S]=N[S];for(let S=0;S<64;S++)N[S]=0;K(N,A)}function ut(N,A){const S=new Float64Array(64),u=[a(),a(),a(),a()],b=(0,r.hash)(N.subarray(0,32));b[0]&=248,b[31]&=127,b[31]|=64;const Z=new Uint8Array(64);Z.set(b.subarray(32),32);const oe=new r.SHA512;oe.update(Z.subarray(32)),oe.update(A);const me=oe.digest();oe.clean(),B(me),M(u,me),et(Z,u),oe.reset(),oe.update(Z.subarray(0,32)),oe.update(N.subarray(32)),oe.update(A);const Ae=oe.digest();B(Ae);for(let $e=0;$e<32;$e++)S[$e]=me[$e];for(let $e=0;$e<32;$e++)for(let xe=0;xe<32;xe++)S[$e+xe]+=Ae[$e]*b[xe];return K(Z.subarray(32),S),Z}c.sign=ut;function ke(N,A){const S=a(),u=a(),b=a(),Z=a(),oe=a(),me=a(),Ae=a();return j(N[2],y),fe(N[1],A),W(b,N[1]),k(Z,b,w),$(b,b,N[2]),pe(Z,N[2],Z),W(oe,Z),W(me,oe),k(Ae,me,oe),k(S,Ae,b),k(S,S,Z),te(S,S),k(S,S,b),k(S,S,Z),k(S,S,Z),k(N[0],S,Z),W(u,N[0]),k(u,u,Z),ue(u,b)&&k(N[0],N[0],T),W(u,N[0]),k(u,u,Z),ue(u,b)?-1:(he(N[0])===A[31]>>7&&$(N[0],d,N[0]),k(N[3],N[0],N[1]),0)}function Lr(N,A,S){const u=new Uint8Array(32),b=[a(),a(),a(),a()],Z=[a(),a(),a(),a()];if(S.length!==c.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${c.SIGNATURE_LENGTH} bytes`);if(ke(Z,N))return!1;const oe=new r.SHA512;oe.update(S.subarray(0,32)),oe.update(N),oe.update(A);const me=oe.digest();return B(me),R(b,Z,me),M(Z,S.subarray(32)),Ee(b,Z),et(u,b),!ce(S,u)}c.verify=Lr;function _e(N){let A=[a(),a(),a(),a()];if(ke(A,N))throw new Error("Ed25519: invalid public key");let S=a(),u=a(),b=A[1];pe(S,y,b),$(u,y,b),ve(u,u),k(S,S,u);let Z=new Uint8Array(32);return re(Z,S),Z}c.convertPublicKeyToX25519=_e;function It(N){const A=(0,r.hash)(N.subarray(0,32));A[0]&=248,A[31]&=127,A[31]|=64;const S=new Uint8Array(A.subarray(0,32));return(0,n.wipe)(A),S}c.convertSecretKeyToX25519=It})(bc);const Nw="EdDSA",$w="JWT",Hl=".",kl="base64url",Dw="utf8",Lw="utf8",qw=":",zw="did",Mw="key",Fh="base58btc",jw="z",Uw="K36",Hw=32;function fa(c){return ga(gc(Bs(c),Dw),kl)}function Kl(c){const i=gc(Uw,Fh),r=jw+ga(F0([i,c]),Fh);return[zw,Mw,r].join(qw)}function kw(c){return ga(c,kl)}function Kw(c){return gc([fa(c.header),fa(c.payload)].join(Hl),Lw)}function Vw(c){return[fa(c.header),fa(c.payload),kw(c.signature)].join(Hl)}function Bh(c=Ol.randomBytes(Hw)){return bc.generateKeyPairFromSeed(c)}async function Fw(c,i,r,n,a=ie.fromMiliseconds(Date.now())){const l={alg:Nw,typ:$w},d=Kl(n.publicKey),y=a+r,w={iss:d,sub:c,aud:i,iat:a,exp:y},v=Kw({header:l,payload:w}),E=bc.sign(n.secretKey,v);return Vw({header:l,payload:w,signature:E})}const Bw=()=>typeof WebSocket<"u"?WebSocket:typeof global<"u"&&typeof global.WebSocket<"u"?global.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:require("ws"),Gw=()=>typeof WebSocket<"u"||typeof global<"u"&&typeof global.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u",Gh=c=>c.split("?")[0],Wh=10,Ww=Bw();class Jw{constructor(i){if(this.url=i,this.events=new Kr.EventEmitter,this.registering=!1,!Ah(i))throw new Error(`Provided URL is not compatible with WebSocket connection: ${i}`);this.url=i}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}off(i,r){this.events.off(i,r)}removeListener(i,r){this.events.removeListener(i,r)}async open(i=this.url){await this.register(i)}async close(){return new Promise((i,r)=>{if(typeof this.socket>"u"){r(new Error("Connection already closed"));return}this.socket.onclose=n=>{this.onClose(n),i()},this.socket.close()})}async send(i,r){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(Bs(i))}catch(n){this.onError(i.id,n)}}register(i=this.url){if(!Ah(i))throw new Error(`Provided URL is not compatible with WebSocket connection: ${i}`);if(this.registering){const r=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=r||this.events.listenerCount("open")>=r)&&this.events.setMaxListeners(r+1),new Promise((n,a)=>{this.events.once("register_error",l=>{this.resetMaxListeners(),a(l)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return a(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=i,this.registering=!0,new Promise((r,n)=>{const a=Nm.isReactNative()?void 0:{rejectUnauthorized:!$m(i)},l=new Ww(i,[],a);Gw()?l.onerror=d=>{const y=d;n(this.emitError(y.error))}:l.on("error",d=>{n(this.emitError(d))}),l.onopen=()=>{this.onOpen(l),r(l)}})}onOpen(i){i.onmessage=r=>this.onPayload(r),i.onclose=r=>this.onClose(r),this.socket=i,this.registering=!1,this.events.emit("open")}onClose(i){this.socket=void 0,this.registering=!1,this.events.emit("close",i)}onPayload(i){if(typeof i.data>"u")return;const r=typeof i.data=="string"?va(i.data):i.data;this.events.emit("payload",r)}onError(i,r){const n=this.parseError(r),a=n.message||n.toString(),l=yc(i,a);this.events.emit("payload",l)}parseError(i,r=this.url){return Dm(i,Gh(r),"WS")}resetMaxListeners(){this.events.getMaxListeners()>Wh&&this.events.setMaxListeners(Wh)}emitError(i){const r=this.parseError(new Error((i==null?void 0:i.message)||`WebSocket connection failed for host: ${Gh(this.url)}`));return this.events.emit("register_error",r),r}}var pa={exports:{}};pa.exports;(function(c,i){var r=200,n="__lodash_hash_undefined__",a=1,l=2,d=9007199254740991,y="[object Arguments]",w="[object Array]",v="[object AsyncFunction]",E="[object Boolean]",C="[object Date]",T="[object Error]",j="[object Function]",D="[object GeneratorFunction]",V="[object Map]",re="[object Number]",ce="[object Null]",ue="[object Object]",he="[object Promise]",fe="[object Proxy]",pe="[object RegExp]",$="[object Set]",k="[object String]",W="[object Symbol]",ve="[object Undefined]",te="[object WeakMap]",Ee="[object ArrayBuffer]",Re="[object DataView]",et="[object Float32Array]",R="[object Float64Array]",M="[object Int8Array]",je="[object Int16Array]",Te="[object Int32Array]",J="[object Uint8Array]",F="[object Uint8ClampedArray]",K="[object Uint16Array]",B="[object Uint32Array]",ut=/[\\^$.*+?()[\]{}|]/g,ke=/^\[object .+?Constructor\]$/,Lr=/^(?:0|[1-9]\d*)$/,_e={};_e[et]=_e[R]=_e[M]=_e[je]=_e[Te]=_e[J]=_e[F]=_e[K]=_e[B]=!0,_e[y]=_e[w]=_e[Ee]=_e[E]=_e[Re]=_e[C]=_e[T]=_e[j]=_e[V]=_e[re]=_e[ue]=_e[pe]=_e[$]=_e[k]=_e[te]=!1;var It=typeof ea=="object"&&ea&&ea.Object===Object&&ea,N=typeof self=="object"&&self&&self.Object===Object&&self,A=It||N||Function("return this")(),S=i&&!i.nodeType&&i,u=S&&!0&&c&&!c.nodeType&&c,b=u&&u.exports===S,Z=b&&It.process,oe=function(){try{return Z&&Z.binding&&Z.binding("util")}catch{}}(),me=oe&&oe.isTypedArray;function Ae(g,I){for(var U=-1,Q=g==null?0:g.length,Fe=0,de=[];++U-1}function Sa(g,I){var U=this.__data__,Q=Pi(U,g);return Q<0?(++this.size,U.push([g,I])):U[Q][1]=I,this}yr.prototype.clear=Ea,yr.prototype.delete=Ia,yr.prototype.get=xa,yr.prototype.has=Pa,yr.prototype.set=Sa;function Fr(g){var I=-1,U=g==null?0:g.length;for(this.clear();++IAt))return!1;var Be=de.get(g);if(Be&&de.get(I))return Be==I;var _t=-1,ir=!0,Nt=U&l?new Fi:void 0;for(de.set(g,I),de.set(I,g);++_t-1&&g%1==0&&g-1&&g%1==0&&g<=d}function pn(g){var I=typeof g;return g!=null&&(I=="object"||I=="function")}function Oi(g){return g!=null&&typeof g=="object"}var dn=me?mt(me):en;function ja(g){return za(g)?Xs(g):tn(g)}function Ve(){return[]}function He(){return!1}c.exports=Ma})(pa,pa.exports);var Qw=pa.exports;const Yw=B0(Qw);var Xw={};function Zw(c,i){if(c.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,fe=new Uint8Array(he);ce!==ue;){for(var pe=D[ce],$=0,k=he-1;(pe!==0||$>>0,fe[k]=pe%y>>>0,pe=pe/y>>>0;if(pe!==0)throw new Error("Non-zero carry");re=$,ce++}for(var W=he-re;W!==he&&fe[W]===0;)W++;for(var ve=w.repeat(V);W>>0,he=new Uint8Array(ue);D[V];){var fe=r[D.charCodeAt(V)];if(fe===255)return;for(var pe=0,$=ue-1;(fe!==0||pe>>0,he[$]=fe%256>>>0,fe=fe/256>>>0;if(fe!==0)throw new Error("Non-zero carry");ce=pe,V++}if(D[V]!==" "){for(var k=ue-ce;k!==ue&&he[k]===0;)k++;for(var W=new Uint8Array(re+(ue-k)),ve=re;k!==ue;)W[ve++]=he[k++];return W}}}function j(D){var V=T(D);if(V)return V;throw new Error(`Non-${i} character`)}return{encode:C,decodeUnsafe:T,decode:j}}var e_=Zw,t_=e_;const Vl=c=>{if(c instanceof Uint8Array&&c.constructor.name==="Uint8Array")return c;if(c instanceof ArrayBuffer)return new Uint8Array(c);if(ArrayBuffer.isView(c))return new Uint8Array(c.buffer,c.byteOffset,c.byteLength);throw new Error("Unknown type, must be binary type")},r_=c=>new TextEncoder().encode(c),i_=c=>new TextDecoder().decode(c);class s_{constructor(i,r,n){this.name=i,this.prefix=r,this.baseEncode=n}encode(i){if(i instanceof Uint8Array)return`${this.prefix}${this.baseEncode(i)}`;throw Error("Unknown type, must be binary type")}}class n_{constructor(i,r,n){if(this.name=i,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(i){if(typeof i=="string"){if(i.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(i)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(i.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(i){return Fl(this,i)}}class a_{constructor(i){this.decoders=i}or(i){return Fl(this,i)}decode(i){const r=i[0],n=this.decoders[r];if(n)return n.decode(i);throw RangeError(`Unable to decode multibase string ${JSON.stringify(i)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const Fl=(c,i)=>new a_({...c.decoders||{[c.prefix]:c},...i.decoders||{[i.prefix]:i}});class o_{constructor(i,r,n,a){this.name=i,this.prefix=r,this.baseEncode=n,this.baseDecode=a,this.encoder=new s_(i,r,n),this.decoder=new n_(i,r,a)}encode(i){return this.encoder.encode(i)}decode(i){return this.decoder.decode(i)}}const ya=({name:c,prefix:i,encode:r,decode:n})=>new o_(c,i,r,n),Ws=({prefix:c,name:i,alphabet:r})=>{const{encode:n,decode:a}=t_(r,i);return ya({prefix:c,name:i,encode:n,decode:l=>Vl(a(l))})},c_=(c,i,r,n)=>{const a={};for(let E=0;E=8&&(y-=8,d[v++]=255&w>>y)}if(y>=r||255&w<<8-y)throw new SyntaxError("Unexpected end of data");return d},u_=(c,i,r)=>{const n=i[i.length-1]==="=",a=(1<r;)d-=r,l+=i[a&y>>d];if(d&&(l+=i[a&y<ya({prefix:i,name:c,encode(a){return u_(a,n,r)},decode(a){return c_(a,n,r,c)}}),h_=ya({prefix:"\0",name:"identity",encode:c=>i_(c),decode:c=>r_(c)});var l_=Object.freeze({__proto__:null,identity:h_});const f_=Vt({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var p_=Object.freeze({__proto__:null,base2:f_});const d_=Vt({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var g_=Object.freeze({__proto__:null,base8:d_});const v_=Ws({prefix:"9",name:"base10",alphabet:"0123456789"});var y_=Object.freeze({__proto__:null,base10:v_});const m_=Vt({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),w_=Vt({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var __=Object.freeze({__proto__:null,base16:m_,base16upper:w_});const b_=Vt({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),E_=Vt({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),I_=Vt({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),x_=Vt({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),P_=Vt({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),S_=Vt({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),C_=Vt({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),O_=Vt({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),R_=Vt({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var T_=Object.freeze({__proto__:null,base32:b_,base32upper:E_,base32pad:I_,base32padupper:x_,base32hex:P_,base32hexupper:S_,base32hexpad:C_,base32hexpadupper:O_,base32z:R_});const A_=Ws({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),N_=Ws({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var $_=Object.freeze({__proto__:null,base36:A_,base36upper:N_});const D_=Ws({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),L_=Ws({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var q_=Object.freeze({__proto__:null,base58btc:D_,base58flickr:L_});const z_=Vt({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),M_=Vt({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),j_=Vt({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),U_=Vt({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var H_=Object.freeze({__proto__:null,base64:z_,base64pad:M_,base64url:j_,base64urlpad:U_});const Bl=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),k_=Bl.reduce((c,i,r)=>(c[r]=i,c),[]),K_=Bl.reduce((c,i,r)=>(c[i.codePointAt(0)]=r,c),[]);function V_(c){return c.reduce((i,r)=>(i+=k_[r],i),"")}function F_(c){const i=[];for(const r of c){const n=K_[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);i.push(n)}return new Uint8Array(i)}const B_=ya({prefix:"🚀",name:"base256emoji",encode:V_,decode:F_});var G_=Object.freeze({__proto__:null,base256emoji:B_}),W_=Gl,Jh=128,J_=127,Q_=~J_,Y_=Math.pow(2,31);function Gl(c,i,r){i=i||[],r=r||0;for(var n=r;c>=Y_;)i[r++]=c&255|Jh,c/=128;for(;c&Q_;)i[r++]=c&255|Jh,c>>>=7;return i[r]=c|0,Gl.bytes=r-n+1,i}var X_=hc,Z_=128,Qh=127;function hc(c,n){var r=0,n=n||0,a=0,l=n,d,y=c.length;do{if(l>=y)throw hc.bytes=0,new RangeError("Could not decode varint");d=c[l++],r+=a<28?(d&Qh)<=Z_);return hc.bytes=l-n,r}var e1=Math.pow(2,7),t1=Math.pow(2,14),r1=Math.pow(2,21),i1=Math.pow(2,28),s1=Math.pow(2,35),n1=Math.pow(2,42),a1=Math.pow(2,49),o1=Math.pow(2,56),c1=Math.pow(2,63),u1=function(c){return c(Wl.encode(c,i,r),i),Xh=c=>Wl.encodingLength(c),lc=(c,i)=>{const r=i.byteLength,n=Xh(c),a=n+Xh(r),l=new Uint8Array(a+r);return Yh(c,l,0),Yh(r,l,n),l.set(i,a),new l1(c,r,i,l)};class l1{constructor(i,r,n,a){this.code=i,this.size=r,this.digest=n,this.bytes=a}}const Jl=({name:c,code:i,encode:r})=>new f1(c,i,r);class f1{constructor(i,r,n){this.name=i,this.code=r,this.encode=n}digest(i){if(i instanceof Uint8Array){const r=this.encode(i);return r instanceof Uint8Array?lc(this.code,r):r.then(n=>lc(this.code,n))}else throw Error("Unknown type, must be binary type")}}const Ql=c=>async i=>new Uint8Array(await crypto.subtle.digest(c,i)),p1=Jl({name:"sha2-256",code:18,encode:Ql("SHA-256")}),d1=Jl({name:"sha2-512",code:19,encode:Ql("SHA-512")});var g1=Object.freeze({__proto__:null,sha256:p1,sha512:d1});const Yl=0,v1="identity",Xl=Vl,y1=c=>lc(Yl,Xl(c)),m1={code:Yl,name:v1,encode:Xl,digest:y1};var w1=Object.freeze({__proto__:null,identity:m1});new TextEncoder,new TextDecoder;const Zh={...l_,...p_,...g_,...y_,...__,...T_,...$_,...q_,...H_,...G_};({...g1,...w1});function Zl(c){return globalThis.Buffer!=null?new Uint8Array(c.buffer,c.byteOffset,c.byteLength):c}function _1(c=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?Zl(globalThis.Buffer.allocUnsafe(c)):new Uint8Array(c)}function ef(c,i,r,n){return{name:c,prefix:i,encoder:{name:c,prefix:i,encode:r},decoder:{decode:n}}}const el=ef("utf8","u",c=>"u"+new TextDecoder("utf8").decode(c),c=>new TextEncoder().encode(c.substring(1))),Xo=ef("ascii","a",c=>{let i="a";for(let r=0;r{c=c.substring(1);const i=_1(c.length);for(let r=0;r{if(!this.initialized){const n=await this.getKeyChain();typeof n<"u"&&(this.keychain=n),this.initialized=!0}},this.has=n=>(this.isInitialized(),this.keychain.has(n)),this.set=async(n,a)=>{this.isInitialized(),this.keychain.set(n,a),await this.persist()},this.get=n=>{this.isInitialized();const a=this.keychain.get(n);if(typeof a>"u"){const{message:l}=X("NO_MATCHING_KEY",`${this.name}: ${n}`);throw new Error(l)}return a},this.del=async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()},this.core=i,this.logger=Oe.generateChildLogger(r,this.name)}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(i){await this.core.storage.setItem(this.storageKey,Nl(i))}async getKeyChain(){const i=await this.core.storage.getItem(this.storageKey);return typeof i<"u"?$l(i):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class X1{constructor(i,r,n){this.core=i,this.logger=r,this.name=S1,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=a=>(this.isInitialized(),this.keychain.has(a)),this.getClientId=async()=>{this.isInitialized();const a=await this.getClientSeed(),l=Bh(a);return Kl(l.publicKey)},this.generateKeyPair=()=>{this.isInitialized();const a=J0();return this.setPrivateKey(a.publicKey,a.privateKey)},this.signJWT=async a=>{this.isInitialized();const l=await this.getClientSeed(),d=Bh(l),y=oc();return await Fw(y,a,C1,d)},this.generateSharedKey=(a,l,d)=>{this.isInitialized();const y=this.getPrivateKey(a),w=Q0(y,l);return this.setSymKey(w,d)},this.setSymKey=async(a,l)=>{this.isInitialized();const d=l||Y0(a);return await this.keychain.set(d,a),d},this.deleteKeyPair=async a=>{this.isInitialized(),await this.keychain.del(a)},this.deleteSymKey=async a=>{this.isInitialized(),await this.keychain.del(a)},this.encode=async(a,l,d)=>{this.isInitialized();const y=X0(d),w=Bs(l);if(Sh(y)){const T=y.senderPublicKey,j=y.receiverPublicKey;a=await this.generateSharedKey(T,j)}const v=this.getSymKey(a),{type:E,senderPublicKey:C}=y;return Z0({type:E,symKey:v,message:w,senderPublicKey:C})},this.decode=async(a,l,d)=>{this.isInitialized();const y=em(l,d);if(Sh(y)){const w=y.receiverPublicKey,v=y.senderPublicKey;a=await this.generateSharedKey(w,v)}try{const w=this.getSymKey(a),v=tm({symKey:w,encoded:l});return va(v)}catch(w){this.logger.error(`Failed to decode message from topic: '${a}', clientId: '${await this.getClientId()}'`),this.logger.error(w)}},this.getPayloadType=a=>{const l=Ch(a);return rm(l.type)},this.getPayloadSenderPublicKey=a=>{const l=Ch(a);return l.senderPublicKey?ga(l.senderPublicKey,im):void 0},this.core=i,this.logger=Oe.generateChildLogger(r,this.name),this.keychain=n||new Y1(this.core,this.logger)}get context(){return Oe.getLoggerContext(this.logger)}async setPrivateKey(i,r){return await this.keychain.set(i,r),i}getPrivateKey(i){return this.keychain.get(i)}async getClientSeed(){let i="";try{i=this.keychain.get(tl)}catch{i=oc(),await this.keychain.set(tl,i)}return E1(i,"base16")}getSymKey(i){return this.keychain.get(i)}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class Z1 extends Iw{constructor(i,r){super(i,r),this.logger=i,this.core=r,this.messages=new Map,this.name=T1,this.version=A1,this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const n=await this.getRelayerMessages();typeof n<"u"&&(this.messages=n),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(n){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(n)}finally{this.initialized=!0}}},this.set=async(n,a)=>{this.isInitialized();const l=ls(a);let d=this.messages.get(n);return typeof d>"u"&&(d={}),typeof d[l]<"u"||(d[l]=a,this.messages.set(n,d),await this.persist()),l},this.get=n=>{this.isInitialized();let a=this.messages.get(n);return typeof a>"u"&&(a={}),a},this.has=(n,a)=>{this.isInitialized();const l=this.get(n),d=ls(a);return typeof l[d]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=Oe.generateChildLogger(i,this.name),this.core=r}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(i){await this.core.storage.setItem(this.storageKey,Nl(i))}async getRelayerMessages(){const i=await this.core.storage.getItem(this.storageKey);return typeof i<"u"?$l(i):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class eb extends xw{constructor(i,r){super(i,r),this.relayer=i,this.logger=r,this.events=new Kr.EventEmitter,this.name=$1,this.queue=new Map,this.publishTimeout=ie.toMiliseconds(ie.TEN_SECONDS),this.needsTransportRestart=!1,this.publish=async(n,a,l)=>{var d;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:l}});try{const y=(l==null?void 0:l.ttl)||N1,w=cc(l),v=(l==null?void 0:l.prompt)||!1,E=(l==null?void 0:l.tag)||0,C=(l==null?void 0:l.id)||Lm().toString(),T={topic:n,message:a,opts:{ttl:y,relay:w,prompt:v,tag:E,id:C}},j=setTimeout(()=>this.queue.set(C,T),this.publishTimeout);try{await await Vs(this.rpcPublish(n,a,y,w,v,E,C),this.publishTimeout,"Failed to publish payload, please try again."),this.removeRequestFromQueue(C),this.relayer.events.emit(Gt.publish,T)}catch(D){if(this.logger.debug("Publishing Payload stalled"),this.needsTransportRestart=!0,(d=l==null?void 0:l.internal)!=null&&d.throwOnFailedPublish)throw this.removeRequestFromQueue(C),D;return}finally{clearTimeout(j)}this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:l}})}catch(y){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(y),y}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.relayer=i,this.logger=Oe.generateChildLogger(r,this.name),this.registerEventListeners()}get context(){return Oe.getLoggerContext(this.logger)}rpcPublish(i,r,n,a,l,d,y){var w,v,E,C;const T={method:oa(a.protocol).publish,params:{topic:i,message:r,ttl:n,prompt:l,tag:d},id:y};return _i((w=T.params)==null?void 0:w.prompt)&&((v=T.params)==null||delete v.prompt),_i((E=T.params)==null?void 0:E.tag)&&((C=T.params)==null||delete C.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:T}),this.relayer.request(T)}removeRequestFromQueue(i){this.queue.delete(i)}checkQueue(){this.queue.forEach(async i=>{const{topic:r,message:n,opts:a}=i;await this.publish(r,n,a)})}registerEventListeners(){this.relayer.core.heartbeat.on(ps.HEARTBEAT_EVENTS.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(Gt.connection_stalled);return}this.checkQueue()}),this.relayer.on(Gt.message_ack,i=>{this.removeRequestFromQueue(i.id.toString())})}}class tb{constructor(){this.map=new Map,this.set=(i,r)=>{const n=this.get(i);this.exists(i,r)||this.map.set(i,[...n,r])},this.get=i=>this.map.get(i)||[],this.exists=(i,r)=>this.get(i).includes(r),this.delete=(i,r)=>{if(typeof r>"u"){this.map.delete(i);return}if(!this.map.has(i))return;const n=this.get(i);if(!this.exists(i,r))return;const a=n.filter(l=>l!==r);if(!a.length){this.map.delete(i);return}this.map.set(i,a)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var rb=Object.defineProperty,ib=Object.defineProperties,sb=Object.getOwnPropertyDescriptors,sl=Object.getOwnPropertySymbols,nb=Object.prototype.hasOwnProperty,ab=Object.prototype.propertyIsEnumerable,nl=(c,i,r)=>i in c?rb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,qs=(c,i)=>{for(var r in i||(i={}))nb.call(i,r)&&nl(c,r,i[r]);if(sl)for(var r of sl(i))ab.call(i,r)&&nl(c,r,i[r]);return c},ec=(c,i)=>ib(c,sb(i));class ob extends Cw{constructor(i,r){super(i,r),this.relayer=i,this.logger=r,this.subscriptions=new Map,this.topicMap=new tb,this.events=new Kr.EventEmitter,this.name=k1,this.version=K1,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=bi,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}});try{const l=cc(a),d={topic:n,relay:l};this.pending.set(n,d);const y=await this.rpcSubscribe(n,l);return this.onSubscribe(y,d),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}}),y}catch(l){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(l),l}},this.unsubscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),typeof(a==null?void 0:a.id)<"u"?await this.unsubscribeById(n,a.id,a):await this.unsubscribeByTopic(n,a)},this.isSubscribed=async n=>this.topics.includes(n)?!0:await new Promise((a,l)=>{const d=new ie.Watch;d.start(this.pendingSubscriptionWatchLabel);const y=setInterval(()=>{!this.pending.has(n)&&this.topics.includes(n)&&(clearInterval(y),d.stop(this.pendingSubscriptionWatchLabel),a(!0)),d.elapsed(this.pendingSubscriptionWatchLabel)>=V1&&(clearInterval(y),d.stop(this.pendingSubscriptionWatchLabel),l(new Error("Subscription resolution timeout")))},this.pollingInterval)}).catch(()=>!1),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=i,this.logger=Oe.generateChildLogger(r,this.name),this.clientId=""}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(i,r){let n=!1;try{n=this.getSubscription(i).topic===r}catch{}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(i,r){const n=this.topicMap.get(i);await Promise.all(n.map(async a=>await this.unsubscribeById(i,a,r)))}async unsubscribeById(i,r,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:i,id:r,opts:n}});try{const a=cc(n);await this.rpcUnsubscribe(i,r,a);const l=tr("USER_DISCONNECTED",`${this.name}, ${i}`);await this.onUnsubscribe(i,r,l),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:i,id:r,opts:n}})}catch(a){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(a),a}}async rpcSubscribe(i,r){const n={method:oa(r.protocol).subscribe,params:{topic:i}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{await await Vs(this.relayer.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(Gt.connection_stalled)}return ls(i+this.clientId)}async rpcBatchSubscribe(i){if(!i.length)return;const r=i[0].relay,n={method:oa(r.protocol).batchSubscribe,params:{topics:i.map(a=>a.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{return await await Vs(this.relayer.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(Gt.connection_stalled)}}rpcUnsubscribe(i,r,n){const a={method:oa(n.protocol).unsubscribe,params:{topic:i,id:r}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:a}),this.relayer.request(a)}onSubscribe(i,r){this.setSubscription(i,ec(qs({},r),{id:i})),this.pending.delete(r.topic)}onBatchSubscribe(i){i.length&&i.forEach(r=>{this.setSubscription(r.id,qs({},r)),this.pending.delete(r.topic)})}async onUnsubscribe(i,r,n){this.events.removeAllListeners(r),this.hasSubscription(r,i)&&this.deleteSubscription(r,n),await this.relayer.messages.del(i)}async setRelayerSubscriptions(i){await this.relayer.core.storage.setItem(this.storageKey,i)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(i,r){this.subscriptions.has(i)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:i,subscription:r}),this.addSubscription(i,r))}addSubscription(i,r){this.subscriptions.set(i,qs({},r)),this.topicMap.set(r.topic,i),this.events.emit($r.created,r)}getSubscription(i){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:i});const r=this.subscriptions.get(i);if(!r){const{message:n}=X("NO_MATCHING_KEY",`${this.name}: ${i}`);throw new Error(n)}return r}deleteSubscription(i,r){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:i,reason:r});const n=this.getSubscription(i);this.subscriptions.delete(i),this.topicMap.delete(n.topic,i),this.events.emit($r.deleted,ec(qs({},n),{reason:r}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit($r.sync)}async reset(){if(this.cached.length){const i=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let r=0;r"u"||!i.length)return;if(this.subscriptions.size){const{message:r}=X("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(r)}this.cached=i,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(i){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(i)}}async batchSubscribe(i){if(!i.length)return;const r=await this.rpcBatchSubscribe(i);fs(r)&&this.onBatchSubscribe(r.map((n,a)=>ec(qs({},i[a]),{id:n})))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||this.relayer.transportExplicitlyClosed)return;const i=[];this.pending.forEach(r=>{i.push(r)}),await this.batchSubscribe(i)}registerEventListeners(){this.relayer.core.heartbeat.on(ps.HEARTBEAT_EVENTS.pulse,async()=>{await this.checkPending()}),this.relayer.on(Gt.connect,async()=>{await this.onConnect()}),this.relayer.on(Gt.disconnect,()=>{this.onDisconnect()}),this.events.on($r.created,async i=>{const r=$r.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),await this.persist()}),this.events.on($r.deleted,async i=>{const r=$r.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),await this.persist()})}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}async restartToComplete(){this.restartInProgress&&await new Promise(i=>{const r=setInterval(()=>{this.restartInProgress||(clearInterval(r),i())},this.pollingInterval)})}}var cb=Object.defineProperty,al=Object.getOwnPropertySymbols,ub=Object.prototype.hasOwnProperty,hb=Object.prototype.propertyIsEnumerable,ol=(c,i,r)=>i in c?cb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,lb=(c,i)=>{for(var r in i||(i={}))ub.call(i,r)&&ol(c,r,i[r]);if(al)for(var r of al(i))hb.call(i,r)&&ol(c,r,i[r]);return c};class fb extends Pw{constructor(i){super(i),this.protocol="wc",this.version=2,this.events=new Kr.EventEmitter,this.name=L1,this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","socket stalled"],this.hasExperiencedNetworkDisruption=!1,this.request=async r=>{this.logger.debug("Publishing Request Payload");try{return await this.toEstablishConnection(),await this.provider.request(r)}catch(n){throw this.logger.debug("Failed to Publish Request"),this.logger.error(n),n}},this.onPayloadHandler=r=>{this.onProviderPayload(r)},this.onConnectHandler=()=>{this.events.emit(Gt.connect)},this.onDisconnectHandler=()=>{this.onProviderDisconnect()},this.onProviderErrorHandler=r=>{this.logger.error(r),this.events.emit(Gt.error,r),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(ri.payload,this.onPayloadHandler),this.provider.on(ri.connect,this.onConnectHandler),this.provider.on(ri.disconnect,this.onDisconnectHandler),this.provider.on(ri.error,this.onProviderErrorHandler)},this.core=i.core,this.logger=typeof i.logger<"u"&&typeof i.logger!="string"?Oe.generateChildLogger(i.logger,this.name):Oe.pino(Oe.getDefaultLoggerOptions({level:i.logger||D1})),this.messages=new Z1(this.logger,i.core),this.subscriber=new ob(this,this.logger),this.publisher=new eb(this,this.logger),this.relayUrl=(i==null?void 0:i.relayUrl)||sf,this.projectId=i.projectId,this.provider={}}async init(){this.logger.trace("Initialized"),this.registerEventListeners(),await this.createProvider(),await Promise.all([this.messages.init(),this.subscriber.init()]);try{await this.transportOpen()}catch{this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${rl}...`),await this.restartTransport(rl)}this.initialized=!0,setTimeout(async()=>{this.subscriber.topics.length===0&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)},j1)}get context(){return Oe.getLoggerContext(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(i,r,n){this.isInitialized(),await this.publisher.publish(i,r,n),await this.recordMessageEvent({topic:i,message:r,publishedAt:Date.now()})}async subscribe(i,r){var n;this.isInitialized();let a=((n=this.subscriber.topicMap.get(i))==null?void 0:n[0])||"";if(a)return a;let l;const d=y=>{y.topic===i&&(this.subscriber.off($r.created,d),l())};return await Promise.all([new Promise(y=>{l=y,this.subscriber.on($r.created,d)}),new Promise(async y=>{a=await this.subscriber.subscribe(i,r),y()})]),a}async unsubscribe(i,r){this.isInitialized(),await this.subscriber.unsubscribe(i,r)}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}off(i,r){this.events.off(i,r)}removeListener(i,r){this.events.removeListener(i,r)}async transportClose(){this.transportExplicitlyClosed=!0,this.hasExperiencedNetworkDisruption&&this.connected?await Vs(this.provider.disconnect(),1e3,"provider.disconnect()").catch(()=>this.onProviderDisconnect()):this.connected&&await this.provider.disconnect()}async transportOpen(i){if(this.transportExplicitlyClosed=!1,await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress){i&&i!==this.relayUrl&&(this.relayUrl=i,await this.transportClose(),await this.createProvider()),this.connectionAttemptInProgress=!0;try{await Promise.all([new Promise(r=>{if(!this.initialized)return r();this.subscriber.once($r.resubscribed,()=>{r()})}),new Promise(async(r,n)=>{try{await Vs(this.provider.connect(),1e4,`Socket stalled when trying to connect to ${this.relayUrl}`)}catch(a){n(a);return}r()})])}catch(r){this.logger.error(r);const n=r;if(!this.isConnectionStalled(n.message))throw r;this.provider.events.emit(ri.disconnect)}finally{this.connectionAttemptInProgress=!1,this.hasExperiencedNetworkDisruption=!1}}}async restartTransport(i){await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress&&(this.relayUrl=i||this.relayUrl,await this.transportClose(),await this.createProvider(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await Oh())throw new Error("No internet connection detected. Please restart your network and try again.")}isConnectionStalled(i){return this.staleConnectionErrors.some(r=>i.includes(r))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();const i=await this.core.crypto.signJWT(this.relayUrl);this.provider=new ni(new Jw(sm({sdkVersion:M1,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:i,useOnCloseEvent:!0}))),this.registerProviderListeners()}async recordMessageEvent(i){const{topic:r,message:n}=i;await this.messages.set(r,n)}async shouldIgnoreMessageEvent(i){const{topic:r,message:n}=i;if(!n||n.length===0)return this.logger.debug(`Ignoring invalid/empty message: ${n}`),!0;if(!await this.subscriber.isSubscribed(r))return this.logger.debug(`Ignoring message for non-subscribed topic ${r}`),!0;const a=this.messages.has(r,n);return a&&this.logger.debug(`Ignoring duplicate message: ${n}`),a}async onProviderPayload(i){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:i}),mc(i)){if(!i.method.endsWith(q1))return;const r=i.params,{topic:n,message:a,publishedAt:l}=r.data,d={topic:n,message:a,publishedAt:l};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(lb({type:"event",event:r.id},d)),this.events.emit(r.id,d),await this.acknowledgePayload(i),await this.onMessageEvent(d)}else wc(i)&&this.events.emit(Gt.message_ack,i)}async onMessageEvent(i){await this.shouldIgnoreMessageEvent(i)||(this.events.emit(Gt.message,i),await this.recordMessageEvent(i))}async acknowledgePayload(i){const r=_c(i.id,!0);await this.provider.connection.send(r)}unregisterProviderListeners(){this.provider.off(ri.payload,this.onPayloadHandler),this.provider.off(ri.connect,this.onConnectHandler),this.provider.off(ri.disconnect,this.onDisconnectHandler),this.provider.off(ri.error,this.onProviderErrorHandler)}async registerEventListeners(){this.events.on(Gt.connection_stalled,()=>{this.restartTransport().catch(r=>this.logger.error(r))});let i=await Oh();nm(async r=>{this.initialized&&i!==r&&(i=r,r?await this.restartTransport().catch(n=>this.logger.error(n)):(this.hasExperiencedNetworkDisruption=!0,await this.transportClose().catch(n=>this.logger.error(n))))})}onProviderDisconnect(){this.events.emit(Gt.disconnect),this.attemptToReconnect()}attemptToReconnect(){this.transportExplicitlyClosed||(this.logger.info("attemptToReconnect called. Connecting..."),setTimeout(async()=>{await this.restartTransport().catch(i=>this.logger.error(i))},ie.toMiliseconds(z1)))}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}async toEstablishConnection(){if(await this.confirmOnlineStateOrThrow(),!this.connected){if(this.connectionAttemptInProgress)return await new Promise(i=>{const r=setInterval(()=>{this.connected&&(clearInterval(r),i())},this.connectionStatusPollingInterval)});await this.restartTransport()}}}var pb=Object.defineProperty,cl=Object.getOwnPropertySymbols,db=Object.prototype.hasOwnProperty,gb=Object.prototype.propertyIsEnumerable,ul=(c,i,r)=>i in c?pb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,hl=(c,i)=>{for(var r in i||(i={}))db.call(i,r)&&ul(c,r,i[r]);if(cl)for(var r of cl(i))gb.call(i,r)&&ul(c,r,i[r]);return c};class ma extends Sw{constructor(i,r,n,a=bi,l=void 0){super(i,r,n,a),this.core=i,this.logger=r,this.name=n,this.map=new Map,this.version=U1,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(d=>{this.getKey&&d!==null&&!_i(d)?this.map.set(this.getKey(d),d):G0(d)?this.map.set(d.id,d):W0(d)&&this.map.set(d.topic,d)}),this.cached=[],this.initialized=!0)},this.set=async(d,y)=>{this.isInitialized(),this.map.has(d)?await this.update(d,y):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:d,value:y}),this.map.set(d,y),await this.persist())},this.get=d=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:d}),this.getData(d)),this.getAll=d=>(this.isInitialized(),d?this.values.filter(y=>Object.keys(d).every(w=>Yw(y[w],d[w]))):this.values),this.update=async(d,y)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:d,update:y});const w=hl(hl({},this.getData(d)),y);this.map.set(d,w),await this.persist()},this.delete=async(d,y)=>{this.isInitialized(),this.map.has(d)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:d,reason:y}),this.map.delete(d),await this.persist())},this.logger=Oe.generateChildLogger(r,this.name),this.storagePrefix=a,this.getKey=l}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(i){await this.core.storage.setItem(this.storageKey,i)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(i){const r=this.map.get(i);if(!r){const{message:n}=X("NO_MATCHING_KEY",`${this.name}: ${i}`);throw this.logger.error(n),new Error(n)}return r}async persist(){await this.setDataStore(this.values)}async restore(){try{const i=await this.getDataStore();if(typeof i>"u"||!i.length)return;if(this.map.size){const{message:r}=X("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=i,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(i){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(i)}}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class vb{constructor(i,r){this.core=i,this.logger=r,this.name=F1,this.version=B1,this.events=new vc,this.initialized=!1,this.storagePrefix=bi,this.ignoredPayloadTypes=[Rl],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:n})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...n])]},this.create=async()=>{this.isInitialized();const n=oc(),a=await this.core.crypto.setSymKey(n),l=Dr(ie.FIVE_MINUTES),d={protocol:rf},y={topic:a,expiry:l,relay:d,active:!1},w=am({protocol:this.core.protocol,version:this.core.version,topic:a,symKey:n,relay:d});return await this.pairings.set(a,y),await this.core.relayer.subscribe(a),this.core.expirer.set(a,l),{topic:a,uri:w}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);const{topic:a,symKey:l,relay:d}=om(n.uri);let y;if(this.pairings.keys.includes(a)&&(y=this.pairings.get(a),y.active))throw new Error(`Pairing already exists: ${a}. Please try again with a new connection URI.`);this.core.crypto.keychain.has(a)||(await this.core.crypto.setSymKey(l,a),await this.core.relayer.subscribe(a,{relay:d}));const w=Dr(ie.FIVE_MINUTES),v={topic:a,relay:d,expiry:w,active:!1};return await this.pairings.set(a,v),this.core.expirer.set(a,w),n.activatePairing&&await this.activate({topic:a}),this.events.emit(Hs.create,v),v},this.activate=async({topic:n})=>{this.isInitialized();const a=Dr(ie.THIRTY_DAYS);await this.pairings.update(n,{active:!0,expiry:a}),this.core.expirer.set(n,a)},this.ping=async n=>{this.isInitialized(),await this.isValidPing(n);const{topic:a}=n;if(this.pairings.keys.includes(a)){const l=await this.sendRequest(a,"wc_pairingPing",{}),{done:d,resolve:y,reject:w}=us();this.events.once($t("pairing_ping",l),({error:v})=>{v?w(v):y()}),await d()}},this.updateExpiry=async({topic:n,expiry:a})=>{this.isInitialized(),await this.pairings.update(n,{expiry:a})},this.updateMetadata=async({topic:n,metadata:a})=>{this.isInitialized(),await this.pairings.update(n,{peerMetadata:a})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async n=>{this.isInitialized(),await this.isValidDisconnect(n);const{topic:a}=n;this.pairings.keys.includes(a)&&(await this.sendRequest(a,"wc_pairingDelete",tr("USER_DISCONNECTED")),await this.deletePairing(a))},this.sendRequest=async(n,a,l)=>{const d=Ks(a,l),y=await this.core.crypto.encode(n,d),w=Ls[a].req;return this.core.history.set(n,d),this.core.relayer.publish(n,y,w),d.id},this.sendResult=async(n,a,l)=>{const d=_c(n,l),y=await this.core.crypto.encode(a,d),w=await this.core.history.get(a,n),v=Ls[w.request.method].res;await this.core.relayer.publish(a,y,v),await this.core.history.resolve(d)},this.sendError=async(n,a,l)=>{const d=yc(n,l),y=await this.core.crypto.encode(a,d),w=await this.core.history.get(a,n),v=Ls[w.request.method]?Ls[w.request.method].res:Ls.unregistered_method.res;await this.core.relayer.publish(a,y,v),await this.core.history.resolve(d)},this.deletePairing=async(n,a)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,tr("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(n),a?Promise.resolve():this.core.expirer.del(n)])},this.cleanup=async()=>{const n=this.pairings.getAll().filter(a=>wi(a.expiry));await Promise.all(n.map(a=>this.deletePairing(a.topic)))},this.onRelayEventRequest=n=>{const{topic:a,payload:l}=n;switch(l.method){case"wc_pairingPing":return this.onPairingPingRequest(a,l);case"wc_pairingDelete":return this.onPairingDeleteRequest(a,l);default:return this.onUnknownRpcMethodRequest(a,l)}},this.onRelayEventResponse=async n=>{const{topic:a,payload:l}=n,d=(await this.core.history.get(a,l.id)).request.method;switch(d){case"wc_pairingPing":return this.onPairingPingResponse(a,l);default:return this.onUnknownRpcMethodResponse(d)}},this.onPairingPingRequest=async(n,a)=>{const{id:l}=a;try{this.isValidPing({topic:n}),await this.sendResult(l,n,!0),this.events.emit(Hs.ping,{id:l,topic:n})}catch(d){await this.sendError(l,n,d),this.logger.error(d)}},this.onPairingPingResponse=(n,a)=>{const{id:l}=a;setTimeout(()=>{mi(a)?this.events.emit($t("pairing_ping",l),{}):si(a)&&this.events.emit($t("pairing_ping",l),{error:a.error})},500)},this.onPairingDeleteRequest=async(n,a)=>{const{id:l}=a;try{this.isValidDisconnect({topic:n}),await this.deletePairing(n),this.events.emit(Hs.delete,{id:l,topic:n})}catch(d){await this.sendError(l,n,d),this.logger.error(d)}},this.onUnknownRpcMethodRequest=async(n,a)=>{const{id:l,method:d}=a;try{if(this.registeredMethods.includes(d))return;const y=tr("WC_METHOD_UNSUPPORTED",d);await this.sendError(l,n,y),this.logger.error(y)}catch(y){await this.sendError(l,n,y),this.logger.error(y)}},this.onUnknownRpcMethodResponse=n=>{this.registeredMethods.includes(n)||this.logger.error(tr("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{if(!hr(n)){const{message:a}=X("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(a)}if(!cm(n.uri)){const{message:a}=X("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(a)}},this.isValidPing=async n=>{if(!hr(n)){const{message:l}=X("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(l)}const{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidDisconnect=async n=>{if(!hr(n)){const{message:l}=X("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(l)}const{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidPairingTopic=async n=>{if(!hs(n,!1)){const{message:a}=X("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(a)}if(!this.pairings.keys.includes(n)){const{message:a}=X("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(a)}if(wi(this.pairings.get(n).expiry)){await this.deletePairing(n);const{message:a}=X("EXPIRED",`pairing topic: ${n}`);throw new Error(a)}},this.core=i,this.logger=Oe.generateChildLogger(r,this.name),this.pairings=new ma(this.core,this.logger,this.name,this.storagePrefix)}get context(){return Oe.getLoggerContext(this.logger)}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}registerRelayerEvents(){this.core.relayer.on(Gt.message,async i=>{const{topic:r,message:n}=i;if(!this.pairings.keys.includes(r)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;const a=await this.core.crypto.decode(r,n);try{mc(a)?(this.core.history.set(r,a),this.onRelayEventRequest({topic:r,payload:a})):wc(a)&&(await this.core.history.resolve(a),await this.onRelayEventResponse({topic:r,payload:a}),this.core.history.delete(r,a.id))}catch(l){this.logger.error(l)}})}registerExpirerEvents(){this.core.expirer.on(Sr.expired,async i=>{const{topic:r}=Tl(i.target);r&&this.pairings.keys.includes(r)&&(await this.deletePairing(r,!0),this.events.emit(Hs.expire,{topic:r}))})}}class yb extends Ew{constructor(i,r){super(i,r),this.core=i,this.logger=r,this.records=new Map,this.events=new Kr.EventEmitter,this.name=G1,this.version=W1,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.records.set(n.id,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(n,a,l)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:n,request:a,chainId:l}),this.records.has(a.id))return;const d={id:a.id,topic:n,request:{method:a.method,params:a.params||null},chainId:l,expiry:Dr(ie.THIRTY_DAYS)};this.records.set(d.id,d),this.events.emit(kr.created,d)},this.resolve=async n=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:n}),!this.records.has(n.id))return;const a=await this.getRecord(n.id);typeof a.response>"u"&&(a.response=si(n)?{error:n.error}:{result:n.result},this.records.set(a.id,a),this.events.emit(kr.updated,a))},this.get=async(n,a)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:n,id:a}),await this.getRecord(a)),this.delete=(n,a)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:a}),this.values.forEach(l=>{if(l.topic===n){if(typeof a<"u"&&l.id!==a)return;this.records.delete(l.id),this.events.emit(kr.deleted,l)}})},this.exists=async(n,a)=>(this.isInitialized(),this.records.has(a)?(await this.getRecord(a)).topic===n:!1),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=Oe.generateChildLogger(r,this.name)}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const i=[];return this.values.forEach(r=>{if(typeof r.response<"u")return;const n={topic:r.topic,request:Ks(r.request.method,r.request.params,r.id),chainId:r.chainId};return i.push(n)}),i}async setJsonRpcRecords(i){await this.core.storage.setItem(this.storageKey,i)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(i){this.isInitialized();const r=this.records.get(i);if(!r){const{message:n}=X("NO_MATCHING_KEY",`${this.name}: ${i}`);throw new Error(n)}return r}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(kr.sync)}async restore(){try{const i=await this.getJsonRpcRecords();if(typeof i>"u"||!i.length)return;if(this.records.size){const{message:r}=X("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=i,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(i){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(i)}}registerEventListeners(){this.events.on(kr.created,i=>{const r=kr.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:i}),this.persist()}),this.events.on(kr.updated,i=>{const r=kr.updated;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:i}),this.persist()}),this.events.on(kr.deleted,i=>{const r=kr.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:i}),this.persist()}),this.core.heartbeat.on(ps.HEARTBEAT_EVENTS.pulse,()=>{this.cleanup()})}cleanup(){try{this.records.forEach(i=>{ie.toMiliseconds(i.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${i.id}`),this.delete(i.topic,i.id))})}catch(i){this.logger.warn(i)}}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class mb extends Ow{constructor(i,r){super(i,r),this.core=i,this.logger=r,this.expirations=new Map,this.events=new Kr.EventEmitter,this.name=J1,this.version=Q1,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.expirations.set(n.target,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=n=>{try{const a=this.formatTarget(n);return typeof this.getExpiration(a)<"u"}catch{return!1}},this.set=(n,a)=>{this.isInitialized();const l=this.formatTarget(n),d={target:l,expiry:a};this.expirations.set(l,d),this.checkExpiry(l,d),this.events.emit(Sr.created,{target:l,expiration:d})},this.get=n=>{this.isInitialized();const a=this.formatTarget(n);return this.getExpiration(a)},this.del=n=>{if(this.isInitialized(),this.has(n)){const a=this.formatTarget(n),l=this.getExpiration(a);this.expirations.delete(a),this.events.emit(Sr.deleted,{target:a,expiration:l})}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=Oe.generateChildLogger(r,this.name)}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(i){if(typeof i=="string")return um(i);if(typeof i=="number")return hm(i);const{message:r}=X("UNKNOWN_TYPE",`Target type: ${typeof i}`);throw new Error(r)}async setExpirations(i){await this.core.storage.setItem(this.storageKey,i)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(Sr.sync)}async restore(){try{const i=await this.getExpirations();if(typeof i>"u"||!i.length)return;if(this.expirations.size){const{message:r}=X("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=i,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(i){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(i)}}getExpiration(i){const r=this.expirations.get(i);if(!r){const{message:n}=X("NO_MATCHING_KEY",`${this.name}: ${i}`);throw this.logger.error(n),new Error(n)}return r}checkExpiry(i,r){const{expiry:n}=r;ie.toMiliseconds(n)-Date.now()<=0&&this.expire(i,r)}expire(i,r){this.expirations.delete(i),this.events.emit(Sr.expired,{target:i,expiration:r})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((i,r)=>this.checkExpiry(r,i))}registerEventListeners(){this.core.heartbeat.on(ps.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(Sr.created,i=>{const r=Sr.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),this.persist()}),this.events.on(Sr.expired,i=>{const r=Sr.expired;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),this.persist()}),this.events.on(Sr.deleted,i=>{const r=Sr.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),this.persist()})}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class wb extends Rw{constructor(i,r){super(i,r),this.projectId=i,this.logger=r,this.name=Zo,this.initialized=!1,this.queue=[],this.verifyDisabled=!1,this.init=async()=>{if(this.verifyDisabled||lm()||!Al())return;const n=la;this.verifyUrl!==n&&this.removeIframe(),this.verifyUrl=n;try{await this.createIframe()}catch(a){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(a)}if(!this.initialized){this.removeIframe(),this.verifyUrl=il;try{await this.createIframe()}catch(a){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(a),this.verifyDisabled=!0}}},this.register=async n=>{this.initialized?this.sendPost(n.attestationId):(this.addToQueue(n.attestationId),await this.init())},this.resolve=async n=>{if(this.isDevEnv)return"";const a=(n==null?void 0:n.verifyUrl)||la;let l;try{l=await this.fetchAttestation(n.attestationId,a)}catch(d){this.logger.info(`failed to resolve attestation: ${n.attestationId} from url: ${a}`),this.logger.info(d),l=await this.fetchAttestation(n.attestationId,il)}return l},this.fetchAttestation=async(n,a)=>{this.logger.info(`resolving attestation: ${n} from url: ${a}`);const l=this.startAbortTimer(ie.ONE_SECOND*2),d=await fetch(`${a}/attestation/${n}`,{signal:this.abortController.signal});return clearTimeout(l),d.status===200?await d.json():void 0},this.addToQueue=n=>{this.queue.push(n)},this.processQueue=()=>{this.queue.length!==0&&(this.queue.forEach(n=>this.sendPost(n)),this.queue=[])},this.sendPost=n=>{var a;try{if(!this.iframe)return;(a=this.iframe.contentWindow)==null||a.postMessage(n,"*"),this.logger.info(`postMessage sent: ${n} ${this.verifyUrl}`)}catch{}},this.createIframe=async()=>{let n;const a=l=>{l.data==="verify_ready"&&(this.initialized=!0,this.processQueue(),window.removeEventListener("message",a),n())};await Promise.race([new Promise(l=>{if(document.getElementById(Zo))return l();window.addEventListener("message",a);const d=document.createElement("iframe");d.id=Zo,d.src=`${this.verifyUrl}/${this.projectId}`,d.style.display="none",document.body.append(d),this.iframe=d,n=l}),new Promise((l,d)=>setTimeout(()=>{window.removeEventListener("message",a),d("verify iframe load timeout")},ie.toMiliseconds(ie.FIVE_SECONDS)))])},this.removeIframe=()=>{this.iframe&&(this.iframe.remove(),this.iframe=void 0,this.initialized=!1)},this.logger=Oe.generateChildLogger(r,this.name),this.verifyUrl=la,this.abortController=new AbortController,this.isDevEnv=fm()&&Xw.IS_VITEST}get context(){return Oe.getLoggerContext(this.logger)}startAbortTimer(i){return this.abortController=new AbortController,setTimeout(()=>this.abortController.abort(),ie.toMiliseconds(i))}}var _b=Object.defineProperty,ll=Object.getOwnPropertySymbols,bb=Object.prototype.hasOwnProperty,Eb=Object.prototype.propertyIsEnumerable,fl=(c,i,r)=>i in c?_b(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,pl=(c,i)=>{for(var r in i||(i={}))bb.call(i,r)&&fl(c,r,i[r]);if(ll)for(var r of ll(i))Eb.call(i,r)&&fl(c,r,i[r]);return c};class Ic extends bw{constructor(i){super(i),this.protocol=tf,this.version=I1,this.name=Ec,this.events=new Kr.EventEmitter,this.initialized=!1,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.projectId=i==null?void 0:i.projectId,this.relayUrl=(i==null?void 0:i.relayUrl)||sf,this.customStoragePrefix=i!=null&&i.customStoragePrefix?`:${i.customStoragePrefix}`:"";const r=typeof(i==null?void 0:i.logger)<"u"&&typeof(i==null?void 0:i.logger)!="string"?i.logger:Oe.pino(Oe.getDefaultLoggerOptions({level:(i==null?void 0:i.logger)||x1.logger}));this.logger=Oe.generateChildLogger(r,this.name),this.heartbeat=new ps.HeartBeat,this.crypto=new X1(this,this.logger,i==null?void 0:i.keychain),this.history=new yb(this,this.logger),this.expirer=new mb(this,this.logger),this.storage=i!=null&&i.storage?i.storage:new fw(pl(pl({},P1),i==null?void 0:i.storageOptions)),this.relayer=new fb({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new vb(this,this.logger),this.verify=new wb(this.projectId||"",this.logger)}static async init(i){const r=new Ic(i);await r.initialize();const n=await r.crypto.getClientId();return await r.storage.setItem(H1,n),r}get context(){return Oe.getLoggerContext(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(i){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,i),this.logger.error(i.message),i}}}const Ib=Ic,nf="wc",af=2,of="client",xc=`${nf}@${af}:${of}:`,tc={name:of,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"},dl="WALLETCONNECT_DEEPLINK_CHOICE",xb="proposal",cf="Proposal expired",Pb="session",sa=ie.SEVEN_DAYS,Sb="engine",zs={wc_sessionPropose:{req:{ttl:ie.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:ie.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:ie.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:ie.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:ie.ONE_DAY,prompt:!1,tag:1104},res:{ttl:ie.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:ie.ONE_DAY,prompt:!1,tag:1106},res:{ttl:ie.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:ie.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:ie.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:ie.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:ie.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:ie.ONE_DAY,prompt:!1,tag:1112},res:{ttl:ie.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:ie.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:ie.THIRTY_SECONDS,prompt:!1,tag:1115}}},rc={min:ie.FIVE_MINUTES,max:ie.SEVEN_DAYS},ii={idle:"IDLE",active:"ACTIVE"},Cb="request",Ob=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"];var Rb=Object.defineProperty,Tb=Object.defineProperties,Ab=Object.getOwnPropertyDescriptors,gl=Object.getOwnPropertySymbols,Nb=Object.prototype.hasOwnProperty,$b=Object.prototype.propertyIsEnumerable,vl=(c,i,r)=>i in c?Rb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,cr=(c,i)=>{for(var r in i||(i={}))Nb.call(i,r)&&vl(c,r,i[r]);if(gl)for(var r of gl(i))$b.call(i,r)&&vl(c,r,i[r]);return c},Ms=(c,i)=>Tb(c,Ab(i));class Db extends Aw{constructor(i){super(i),this.name=Sb,this.events=new vc,this.initialized=!1,this.ignoredPayloadTypes=[Rl],this.requestQueue={state:ii.idle,queue:[]},this.sessionRequestQueue={state:ii.idle,queue:[]},this.requestQueueDelay=ie.ONE_SECOND,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys(zs)}),this.initialized=!0,setTimeout(()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},ie.toMiliseconds(this.requestQueueDelay)))},this.connect=async r=>{await this.isInitialized();const n=Ms(cr({},r),{requiredNamespaces:r.requiredNamespaces||{},optionalNamespaces:r.optionalNamespaces||{}});await this.isValidConnect(n);const{pairingTopic:a,requiredNamespaces:l,optionalNamespaces:d,sessionProperties:y,relays:w}=n;let v=a,E,C=!1;if(v&&(C=this.client.core.pairing.pairings.get(v).active),!v||!C){const{topic:he,uri:fe}=await this.client.core.pairing.create();v=he,E=fe}const T=await this.client.core.crypto.generateKeyPair(),j=cr({requiredNamespaces:l,optionalNamespaces:d,relays:w??[{protocol:rf}],proposer:{publicKey:T,metadata:this.client.metadata}},y&&{sessionProperties:y}),{reject:D,resolve:V,done:re}=us(ie.FIVE_MINUTES,cf);if(this.events.once($t("session_connect"),async({error:he,session:fe})=>{if(he)D(he);else if(fe){fe.self.publicKey=T;const pe=Ms(cr({},fe),{requiredNamespaces:fe.requiredNamespaces,optionalNamespaces:fe.optionalNamespaces});await this.client.session.set(fe.topic,pe),await this.setExpiry(fe.topic,fe.expiry),v&&await this.client.core.pairing.updateMetadata({topic:v,metadata:fe.peer.metadata}),V(pe)}}),!v){const{message:he}=X("NO_MATCHING_KEY",`connect() pairing topic: ${v}`);throw new Error(he)}const ce=await this.sendRequest({topic:v,method:"wc_sessionPropose",params:j}),ue=Dr(ie.FIVE_MINUTES);return await this.setProposal(ce,cr({id:ce,expiry:ue},j)),{uri:E,approval:re}},this.pair=async r=>(await this.isInitialized(),await this.client.core.pairing.pair(r)),this.approve=async r=>{await this.isInitialized(),await this.isValidApprove(r);const{id:n,relayProtocol:a,namespaces:l,sessionProperties:d}=r,y=this.client.proposal.get(n);let{pairingTopic:w,proposer:v,requiredNamespaces:E,optionalNamespaces:C}=y;w=w||"",ca(E)||(E=dm(l,"approve()"));const T=await this.client.core.crypto.generateKeyPair(),j=v.publicKey,D=await this.client.core.crypto.generateSharedKey(T,j);w&&n&&(await this.client.core.pairing.updateMetadata({topic:w,metadata:v.metadata}),await this.sendResult({id:n,topic:w,result:{relay:{protocol:a??"irn"},responderPublicKey:T}}),await this.client.proposal.delete(n,tr("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:w}));const V=cr({relay:{protocol:a??"irn"},namespaces:l,requiredNamespaces:E,optionalNamespaces:C,pairingTopic:w,controller:{publicKey:T,metadata:this.client.metadata},expiry:Dr(sa)},d&&{sessionProperties:d});await this.client.core.relayer.subscribe(D),await this.sendRequest({topic:D,method:"wc_sessionSettle",params:V,throwOnFailedPublish:!0});const re=Ms(cr({},V),{topic:D,pairingTopic:w,acknowledged:!1,self:V.controller,peer:{publicKey:v.publicKey,metadata:v.metadata},controller:T});return await this.client.session.set(D,re),await this.setExpiry(D,Dr(sa)),{topic:D,acknowledged:()=>new Promise(ce=>setTimeout(()=>ce(this.client.session.get(D)),500))}},this.reject=async r=>{await this.isInitialized(),await this.isValidReject(r);const{id:n,reason:a}=r,{pairingTopic:l}=this.client.proposal.get(n);l&&(await this.sendError(n,l,a),await this.client.proposal.delete(n,tr("USER_DISCONNECTED")))},this.update=async r=>{await this.isInitialized(),await this.isValidUpdate(r);const{topic:n,namespaces:a}=r,l=await this.sendRequest({topic:n,method:"wc_sessionUpdate",params:{namespaces:a}}),{done:d,resolve:y,reject:w}=us();return this.events.once($t("session_update",l),({error:v})=>{v?w(v):y()}),await this.client.session.update(n,{namespaces:a}),{acknowledged:d}},this.extend=async r=>{await this.isInitialized(),await this.isValidExtend(r);const{topic:n}=r,a=await this.sendRequest({topic:n,method:"wc_sessionExtend",params:{}}),{done:l,resolve:d,reject:y}=us();return this.events.once($t("session_extend",a),({error:w})=>{w?y(w):d()}),await this.setExpiry(n,Dr(sa)),{acknowledged:l}},this.request=async r=>{await this.isInitialized(),await this.isValidRequest(r);const{chainId:n,request:a,topic:l,expiry:d}=r,y=qm(),{done:w,resolve:v,reject:E}=us(d,"Request expired. Please try again.");return this.events.once($t("session_request",y),({error:C,result:T})=>{C?E(C):v(T)}),await Promise.all([new Promise(async C=>{await this.sendRequest({clientRpcId:y,topic:l,method:"wc_sessionRequest",params:{request:a,chainId:n},expiry:d,throwOnFailedPublish:!0}).catch(T=>E(T)),this.client.events.emit("session_request_sent",{topic:l,request:a,chainId:n,id:y}),C()}),new Promise(async C=>{const T=await this.client.core.storage.getItem(dl);gm({id:y,topic:l,wcDeepLink:T}),C()}),w()]).then(C=>C[2])},this.respond=async r=>{await this.isInitialized(),await this.isValidRespond(r);const{topic:n,response:a}=r,{id:l}=a;mi(a)?await this.sendResult({id:l,topic:n,result:a.result,throwOnFailedPublish:!0}):si(a)&&await this.sendError(l,n,a.error),this.cleanupAfterResponse(r)},this.ping=async r=>{await this.isInitialized(),await this.isValidPing(r);const{topic:n}=r;if(this.client.session.keys.includes(n)){const a=await this.sendRequest({topic:n,method:"wc_sessionPing",params:{}}),{done:l,resolve:d,reject:y}=us();this.events.once($t("session_ping",a),({error:w})=>{w?y(w):d()}),await l()}else this.client.core.pairing.pairings.keys.includes(n)&&await this.client.core.pairing.ping({topic:n})},this.emit=async r=>{await this.isInitialized(),await this.isValidEmit(r);const{topic:n,event:a,chainId:l}=r;await this.sendRequest({topic:n,method:"wc_sessionEvent",params:{event:a,chainId:l}})},this.disconnect=async r=>{await this.isInitialized(),await this.isValidDisconnect(r);const{topic:n}=r;this.client.session.keys.includes(n)?(await this.sendRequest({topic:n,method:"wc_sessionDelete",params:tr("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession(n)):await this.client.core.pairing.disconnect({topic:n})},this.find=r=>(this.isInitialized(),this.client.session.getAll().filter(n=>vm(n,r))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.cleanupDuplicatePairings=async r=>{if(r.pairingTopic)try{const n=this.client.core.pairing.pairings.get(r.pairingTopic),a=this.client.core.pairing.pairings.getAll().filter(l=>{var d,y;return((d=l.peerMetadata)==null?void 0:d.url)&&((y=l.peerMetadata)==null?void 0:y.url)===r.peer.metadata.url&&l.topic&&l.topic!==n.topic});if(a.length===0)return;this.client.logger.info(`Cleaning up ${a.length} duplicate pairing(s)`),await Promise.all(a.map(l=>this.client.core.pairing.disconnect({topic:l.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(n){this.client.logger.error(n)}},this.deleteSession=async(r,n)=>{const{self:a}=this.client.session.get(r);await this.client.core.relayer.unsubscribe(r),this.client.session.delete(r,tr("USER_DISCONNECTED")),this.client.core.crypto.keychain.has(a.publicKey)&&await this.client.core.crypto.deleteKeyPair(a.publicKey),this.client.core.crypto.keychain.has(r)&&await this.client.core.crypto.deleteSymKey(r),n||this.client.core.expirer.del(r),this.client.core.storage.removeItem(dl).catch(l=>this.client.logger.warn(l))},this.deleteProposal=async(r,n)=>{await Promise.all([this.client.proposal.delete(r,tr("USER_DISCONNECTED")),n?Promise.resolve():this.client.core.expirer.del(r)])},this.deletePendingSessionRequest=async(r,n,a=!1)=>{await Promise.all([this.client.pendingRequest.delete(r,n),a?Promise.resolve():this.client.core.expirer.del(r)]),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(l=>l.id!==r),a&&(this.sessionRequestQueue.state=ii.idle)},this.setExpiry=async(r,n)=>{this.client.session.keys.includes(r)&&await this.client.session.update(r,{expiry:n}),this.client.core.expirer.set(r,n)},this.setProposal=async(r,n)=>{await this.client.proposal.set(r,n),this.client.core.expirer.set(r,n.expiry)},this.setPendingSessionRequest=async r=>{const n=zs.wc_sessionRequest.req.ttl,{id:a,topic:l,params:d,verifyContext:y}=r;await this.client.pendingRequest.set(a,{id:a,topic:l,params:d,verifyContext:y}),n&&this.client.core.expirer.set(a,Dr(n))},this.sendRequest=async r=>{const{topic:n,method:a,params:l,expiry:d,relayRpcId:y,clientRpcId:w,throwOnFailedPublish:v}=r,E=Ks(a,l,w);if(Al()&&Ob.includes(a)){const j=ls(JSON.stringify(E));this.client.core.verify.register({attestationId:j})}const C=await this.client.core.crypto.encode(n,E),T=zs[a].req;return d&&(T.ttl=d),y&&(T.id=y),this.client.core.history.set(n,E),v?(T.internal=Ms(cr({},T.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(n,C,T)):this.client.core.relayer.publish(n,C,T).catch(j=>this.client.logger.error(j)),E.id},this.sendResult=async r=>{const{id:n,topic:a,result:l,throwOnFailedPublish:d}=r,y=_c(n,l),w=await this.client.core.crypto.encode(a,y),v=await this.client.core.history.get(a,n),E=zs[v.request.method].res;d?(E.internal=Ms(cr({},E.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(a,w,E)):this.client.core.relayer.publish(a,w,E).catch(C=>this.client.logger.error(C)),await this.client.core.history.resolve(y)},this.sendError=async(r,n,a)=>{const l=yc(r,a),d=await this.client.core.crypto.encode(n,l),y=await this.client.core.history.get(n,r),w=zs[y.request.method].res;this.client.core.relayer.publish(n,d,w),await this.client.core.history.resolve(l)},this.cleanup=async()=>{const r=[],n=[];this.client.session.getAll().forEach(a=>{wi(a.expiry)&&r.push(a.topic)}),this.client.proposal.getAll().forEach(a=>{wi(a.expiry)&&n.push(a.id)}),await Promise.all([...r.map(a=>this.deleteSession(a)),...n.map(a=>this.deleteProposal(a))])},this.onRelayEventRequest=async r=>{this.requestQueue.queue.push(r),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state===ii.active){this.client.logger.info("Request queue already active, skipping...");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=ii.active;const r=this.requestQueue.queue.shift();if(r)try{this.processRequest(r),await new Promise(n=>setTimeout(n,300))}catch(n){this.client.logger.warn(n)}}this.requestQueue.state=ii.idle},this.processRequest=r=>{const{topic:n,payload:a}=r,l=a.method;switch(l){case"wc_sessionPropose":return this.onSessionProposeRequest(n,a);case"wc_sessionSettle":return this.onSessionSettleRequest(n,a);case"wc_sessionUpdate":return this.onSessionUpdateRequest(n,a);case"wc_sessionExtend":return this.onSessionExtendRequest(n,a);case"wc_sessionPing":return this.onSessionPingRequest(n,a);case"wc_sessionDelete":return this.onSessionDeleteRequest(n,a);case"wc_sessionRequest":return this.onSessionRequest(n,a);case"wc_sessionEvent":return this.onSessionEventRequest(n,a);default:return this.client.logger.info(`Unsupported request method ${l}`)}},this.onRelayEventResponse=async r=>{const{topic:n,payload:a}=r,l=(await this.client.core.history.get(n,a.id)).request.method;switch(l){case"wc_sessionPropose":return this.onSessionProposeResponse(n,a);case"wc_sessionSettle":return this.onSessionSettleResponse(n,a);case"wc_sessionUpdate":return this.onSessionUpdateResponse(n,a);case"wc_sessionExtend":return this.onSessionExtendResponse(n,a);case"wc_sessionPing":return this.onSessionPingResponse(n,a);case"wc_sessionRequest":return this.onSessionRequestResponse(n,a);default:return this.client.logger.info(`Unsupported response method ${l}`)}},this.onRelayEventUnknownPayload=r=>{const{topic:n}=r,{message:a}=X("MISSING_OR_INVALID",`Decoded payload on topic ${n} is not identifiable as a JSON-RPC request or a response.`);throw new Error(a)},this.onSessionProposeRequest=async(r,n)=>{const{params:a,id:l}=n;try{this.isValidConnect(cr({},n.params));const d=Dr(ie.FIVE_MINUTES),y=cr({id:l,pairingTopic:r,expiry:d},a);await this.setProposal(l,y);const w=ls(JSON.stringify(n)),v=await this.getVerifyContext(w,y.proposer.metadata);this.client.events.emit("session_proposal",{id:l,params:y,verifyContext:v})}catch(d){await this.sendError(l,r,d),this.client.logger.error(d)}},this.onSessionProposeResponse=async(r,n)=>{const{id:a}=n;if(mi(n)){const{result:l}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:l});const d=this.client.proposal.get(a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:d});const y=d.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:y});const w=l.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:w});const v=await this.client.core.crypto.generateSharedKey(y,w);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:v});const E=await this.client.core.relayer.subscribe(v);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:E}),await this.client.core.pairing.activate({topic:r})}else si(n)&&(await this.client.proposal.delete(a,tr("USER_DISCONNECTED")),this.events.emit($t("session_connect"),{error:n.error}))},this.onSessionSettleRequest=async(r,n)=>{const{id:a,params:l}=n;try{this.isValidSessionSettleRequest(l);const{relay:d,controller:y,expiry:w,namespaces:v,requiredNamespaces:E,optionalNamespaces:C,sessionProperties:T,pairingTopic:j}=n.params,D=cr({topic:r,relay:d,expiry:w,namespaces:v,acknowledged:!0,pairingTopic:j,requiredNamespaces:E,optionalNamespaces:C,controller:y.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:y.publicKey,metadata:y.metadata}},T&&{sessionProperties:T});await this.sendResult({id:n.id,topic:r,result:!0}),this.events.emit($t("session_connect"),{session:D}),this.cleanupDuplicatePairings(D)}catch(d){await this.sendError(a,r,d),this.client.logger.error(d)}},this.onSessionSettleResponse=async(r,n)=>{const{id:a}=n;mi(n)?(await this.client.session.update(r,{acknowledged:!0}),this.events.emit($t("session_approve",a),{})):si(n)&&(await this.client.session.delete(r,tr("USER_DISCONNECTED")),this.events.emit($t("session_approve",a),{error:n.error}))},this.onSessionUpdateRequest=async(r,n)=>{const{params:a,id:l}=n;try{const d=`${r}_session_update`,y=ta.get(d);if(y&&this.isRequestOutOfSync(y,l)){this.client.logger.info(`Discarding out of sync request - ${l}`);return}this.isValidUpdate(cr({topic:r},a)),await this.client.session.update(r,{namespaces:a.namespaces}),await this.sendResult({id:l,topic:r,result:!0}),this.client.events.emit("session_update",{id:l,topic:r,params:a}),ta.set(d,l)}catch(d){await this.sendError(l,r,d),this.client.logger.error(d)}},this.isRequestOutOfSync=(r,n)=>parseInt(n.toString().slice(0,-3))<=parseInt(r.toString().slice(0,-3)),this.onSessionUpdateResponse=(r,n)=>{const{id:a}=n;mi(n)?this.events.emit($t("session_update",a),{}):si(n)&&this.events.emit($t("session_update",a),{error:n.error})},this.onSessionExtendRequest=async(r,n)=>{const{id:a}=n;try{this.isValidExtend({topic:r}),await this.setExpiry(r,Dr(sa)),await this.sendResult({id:a,topic:r,result:!0}),this.client.events.emit("session_extend",{id:a,topic:r})}catch(l){await this.sendError(a,r,l),this.client.logger.error(l)}},this.onSessionExtendResponse=(r,n)=>{const{id:a}=n;mi(n)?this.events.emit($t("session_extend",a),{}):si(n)&&this.events.emit($t("session_extend",a),{error:n.error})},this.onSessionPingRequest=async(r,n)=>{const{id:a}=n;try{this.isValidPing({topic:r}),await this.sendResult({id:a,topic:r,result:!0}),this.client.events.emit("session_ping",{id:a,topic:r})}catch(l){await this.sendError(a,r,l),this.client.logger.error(l)}},this.onSessionPingResponse=(r,n)=>{const{id:a}=n;setTimeout(()=>{mi(n)?this.events.emit($t("session_ping",a),{}):si(n)&&this.events.emit($t("session_ping",a),{error:n.error})},500)},this.onSessionDeleteRequest=async(r,n)=>{const{id:a}=n;try{this.isValidDisconnect({topic:r,reason:n.params}),await Promise.all([new Promise(l=>{this.client.core.relayer.once(Gt.publish,async()=>{l(await this.deleteSession(r))})}),this.sendResult({id:a,topic:r,result:!0})]),this.client.events.emit("session_delete",{id:a,topic:r})}catch(l){this.client.logger.error(l)}},this.onSessionRequest=async(r,n)=>{const{id:a,params:l}=n;try{this.isValidRequest(cr({topic:r},l));const d=ls(JSON.stringify(Ks("wc_sessionRequest",l,a))),y=this.client.session.get(r),w=await this.getVerifyContext(d,y.peer.metadata),v={id:a,topic:r,params:l,verifyContext:w};await this.setPendingSessionRequest(v),this.addSessionRequestToSessionRequestQueue(v),this.processSessionRequestQueue()}catch(d){await this.sendError(a,r,d),this.client.logger.error(d)}},this.onSessionRequestResponse=(r,n)=>{const{id:a}=n;mi(n)?this.events.emit($t("session_request",a),{result:n.result}):si(n)&&this.events.emit($t("session_request",a),{error:n.error})},this.onSessionEventRequest=async(r,n)=>{const{id:a,params:l}=n;try{const d=`${r}_session_event_${l.event.name}`,y=ta.get(d);if(y&&this.isRequestOutOfSync(y,a)){this.client.logger.info(`Discarding out of sync request - ${a}`);return}this.isValidEmit(cr({topic:r},l)),this.client.events.emit("session_event",{id:a,topic:r,params:l}),ta.set(d,a)}catch(d){await this.sendError(a,r,d),this.client.logger.error(d)}},this.addSessionRequestToSessionRequestQueue=r=>{this.sessionRequestQueue.queue.push(r)},this.cleanupAfterResponse=r=>{this.deletePendingSessionRequest(r.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=ii.idle,this.processSessionRequestQueue()},ie.toMiliseconds(this.requestQueueDelay))},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===ii.active){this.client.logger.info("session request queue is already active.");return}const r=this.sessionRequestQueue.queue[0];if(!r){this.client.logger.info("session request queue is empty.");return}try{this.sessionRequestQueue.state=ii.active,this.client.events.emit("session_request",r)}catch(n){this.client.logger.error(n)}},this.onPairingCreated=r=>{if(r.active)return;const n=this.client.proposal.getAll().find(a=>a.pairingTopic===r.topic);n&&this.onSessionProposeRequest(r.topic,Ks("wc_sessionPropose",{requiredNamespaces:n.requiredNamespaces,optionalNamespaces:n.optionalNamespaces,relays:n.relays,proposer:n.proposer},n.id))},this.isValidConnect=async r=>{if(!hr(r)){const{message:w}=X("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(r)}`);throw new Error(w)}const{pairingTopic:n,requiredNamespaces:a,optionalNamespaces:l,sessionProperties:d,relays:y}=r;if(_i(n)||await this.isValidPairingTopic(n),!ym(y,!0)){const{message:w}=X("MISSING_OR_INVALID",`connect() relays: ${y}`);throw new Error(w)}!_i(a)&&ca(a)!==0&&this.validateNamespaces(a,"requiredNamespaces"),!_i(l)&&ca(l)!==0&&this.validateNamespaces(l,"optionalNamespaces"),_i(d)||this.validateSessionProps(d,"sessionProperties")},this.validateNamespaces=(r,n)=>{const a=mm(r,"connect()",n);if(a)throw new Error(a.message)},this.isValidApprove=async r=>{if(!hr(r))throw new Error(X("MISSING_OR_INVALID",`approve() params: ${r}`).message);const{id:n,namespaces:a,relayProtocol:l,sessionProperties:d}=r;await this.isValidProposalId(n);const y=this.client.proposal.get(n),w=Vo(a,"approve()");if(w)throw new Error(w.message);const v=Rh(y.requiredNamespaces,a,"approve()");if(v)throw new Error(v.message);if(!hs(l,!0)){const{message:E}=X("MISSING_OR_INVALID",`approve() relayProtocol: ${l}`);throw new Error(E)}_i(d)||this.validateSessionProps(d,"sessionProperties")},this.isValidReject=async r=>{if(!hr(r)){const{message:l}=X("MISSING_OR_INVALID",`reject() params: ${r}`);throw new Error(l)}const{id:n,reason:a}=r;if(await this.isValidProposalId(n),!wm(a)){const{message:l}=X("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(a)}`);throw new Error(l)}},this.isValidSessionSettleRequest=r=>{if(!hr(r)){const{message:v}=X("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${r}`);throw new Error(v)}const{relay:n,controller:a,namespaces:l,expiry:d}=r;if(!_m(n)){const{message:v}=X("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(v)}const y=bm(a,"onSessionSettleRequest()");if(y)throw new Error(y.message);const w=Vo(l,"onSessionSettleRequest()");if(w)throw new Error(w.message);if(wi(d)){const{message:v}=X("EXPIRED","onSessionSettleRequest()");throw new Error(v)}},this.isValidUpdate=async r=>{if(!hr(r)){const{message:w}=X("MISSING_OR_INVALID",`update() params: ${r}`);throw new Error(w)}const{topic:n,namespaces:a}=r;await this.isValidSessionTopic(n);const l=this.client.session.get(n),d=Vo(a,"update()");if(d)throw new Error(d.message);const y=Rh(l.requiredNamespaces,a,"update()");if(y)throw new Error(y.message)},this.isValidExtend=async r=>{if(!hr(r)){const{message:a}=X("MISSING_OR_INVALID",`extend() params: ${r}`);throw new Error(a)}const{topic:n}=r;await this.isValidSessionTopic(n)},this.isValidRequest=async r=>{if(!hr(r)){const{message:w}=X("MISSING_OR_INVALID",`request() params: ${r}`);throw new Error(w)}const{topic:n,request:a,chainId:l,expiry:d}=r;await this.isValidSessionTopic(n);const{namespaces:y}=this.client.session.get(n);if(!Th(y,l)){const{message:w}=X("MISSING_OR_INVALID",`request() chainId: ${l}`);throw new Error(w)}if(!Em(a)){const{message:w}=X("MISSING_OR_INVALID",`request() ${JSON.stringify(a)}`);throw new Error(w)}if(!Im(y,l,a.method)){const{message:w}=X("MISSING_OR_INVALID",`request() method: ${a.method}`);throw new Error(w)}if(d&&!xm(d,rc)){const{message:w}=X("MISSING_OR_INVALID",`request() expiry: ${d}. Expiry must be a number (in seconds) between ${rc.min} and ${rc.max}`);throw new Error(w)}},this.isValidRespond=async r=>{if(!hr(r)){const{message:l}=X("MISSING_OR_INVALID",`respond() params: ${r}`);throw new Error(l)}const{topic:n,response:a}=r;if(await this.isValidSessionTopic(n),!Pm(a)){const{message:l}=X("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(a)}`);throw new Error(l)}},this.isValidPing=async r=>{if(!hr(r)){const{message:a}=X("MISSING_OR_INVALID",`ping() params: ${r}`);throw new Error(a)}const{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async r=>{if(!hr(r)){const{message:y}=X("MISSING_OR_INVALID",`emit() params: ${r}`);throw new Error(y)}const{topic:n,event:a,chainId:l}=r;await this.isValidSessionTopic(n);const{namespaces:d}=this.client.session.get(n);if(!Th(d,l)){const{message:y}=X("MISSING_OR_INVALID",`emit() chainId: ${l}`);throw new Error(y)}if(!Sm(a)){const{message:y}=X("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(y)}if(!Cm(d,l,a.name)){const{message:y}=X("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(y)}},this.isValidDisconnect=async r=>{if(!hr(r)){const{message:a}=X("MISSING_OR_INVALID",`disconnect() params: ${r}`);throw new Error(a)}const{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.getVerifyContext=async(r,n)=>{const a={verified:{verifyUrl:n.verifyUrl||la,validation:"UNKNOWN",origin:n.url||""}};try{const l=await this.client.core.verify.resolve({attestationId:r,verifyUrl:n.verifyUrl});l&&(a.verified.origin=l.origin,a.verified.isScam=l.isScam,a.verified.validation=l.origin===new URL(n.url).origin?"VALID":"INVALID")}catch(l){this.client.logger.info(l)}return this.client.logger.info(`Verify context: ${JSON.stringify(a)}`),a},this.validateSessionProps=(r,n)=>{Object.values(r).forEach(a=>{if(!hs(a,!1)){const{message:l}=X("MISSING_OR_INVALID",`${n} must be in Record format. Received: ${JSON.stringify(a)}`);throw new Error(l)}})}}async isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(Gt.message,async i=>{const{topic:r,message:n}=i;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;const a=await this.client.core.crypto.decode(r,n);try{mc(a)?(this.client.core.history.set(r,a),this.onRelayEventRequest({topic:r,payload:a})):wc(a)?(await this.client.core.history.resolve(a),await this.onRelayEventResponse({topic:r,payload:a}),this.client.core.history.delete(r,a.id)):this.onRelayEventUnknownPayload({topic:r,payload:a})}catch(l){this.client.logger.error(l)}})}registerExpirerEvents(){this.client.core.expirer.on(Sr.expired,async i=>{const{topic:r,id:n}=Tl(i.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,X("EXPIRED"),!0);r?this.client.session.keys.includes(r)&&(await this.deleteSession(r,!0),this.client.events.emit("session_expire",{topic:r})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))})}registerPairingEvents(){this.client.core.pairing.events.on(Hs.create,i=>this.onPairingCreated(i))}isValidPairingTopic(i){if(!hs(i,!1)){const{message:r}=X("MISSING_OR_INVALID",`pairing topic should be a string: ${i}`);throw new Error(r)}if(!this.client.core.pairing.pairings.keys.includes(i)){const{message:r}=X("NO_MATCHING_KEY",`pairing topic doesn't exist: ${i}`);throw new Error(r)}if(wi(this.client.core.pairing.pairings.get(i).expiry)){const{message:r}=X("EXPIRED",`pairing topic: ${i}`);throw new Error(r)}}async isValidSessionTopic(i){if(!hs(i,!1)){const{message:r}=X("MISSING_OR_INVALID",`session topic should be a string: ${i}`);throw new Error(r)}if(!this.client.session.keys.includes(i)){const{message:r}=X("NO_MATCHING_KEY",`session topic doesn't exist: ${i}`);throw new Error(r)}if(wi(this.client.session.get(i).expiry)){await this.deleteSession(i);const{message:r}=X("EXPIRED",`session topic: ${i}`);throw new Error(r)}}async isValidSessionOrPairingTopic(i){if(this.client.session.keys.includes(i))await this.isValidSessionTopic(i);else if(this.client.core.pairing.pairings.keys.includes(i))this.isValidPairingTopic(i);else if(hs(i,!1)){const{message:r}=X("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${i}`);throw new Error(r)}else{const{message:r}=X("MISSING_OR_INVALID",`session or pairing topic should be a string: ${i}`);throw new Error(r)}}async isValidProposalId(i){if(!Om(i)){const{message:r}=X("MISSING_OR_INVALID",`proposal id should be a number: ${i}`);throw new Error(r)}if(!this.client.proposal.keys.includes(i)){const{message:r}=X("NO_MATCHING_KEY",`proposal id doesn't exist: ${i}`);throw new Error(r)}if(wi(this.client.proposal.get(i).expiry)){await this.deleteProposal(i);const{message:r}=X("EXPIRED",`proposal id: ${i}`);throw new Error(r)}}}class Lb extends ma{constructor(i,r){super(i,r,xb,xc),this.core=i,this.logger=r}}class qb extends ma{constructor(i,r){super(i,r,Pb,xc),this.core=i,this.logger=r}}class zb extends ma{constructor(i,r){super(i,r,Cb,xc,n=>n.id),this.core=i,this.logger=r}}let Mb=class uf extends Tw{constructor(i){super(i),this.protocol=nf,this.version=af,this.name=tc.name,this.events=new Kr.EventEmitter,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.removeAllListeners=n=>this.events.removeAllListeners(n),this.connect=async n=>{try{return await this.engine.connect(n)}catch(a){throw this.logger.error(a.message),a}},this.pair=async n=>{try{return await this.engine.pair(n)}catch(a){throw this.logger.error(a.message),a}},this.approve=async n=>{try{return await this.engine.approve(n)}catch(a){throw this.logger.error(a.message),a}},this.reject=async n=>{try{return await this.engine.reject(n)}catch(a){throw this.logger.error(a.message),a}},this.update=async n=>{try{return await this.engine.update(n)}catch(a){throw this.logger.error(a.message),a}},this.extend=async n=>{try{return await this.engine.extend(n)}catch(a){throw this.logger.error(a.message),a}},this.request=async n=>{try{return await this.engine.request(n)}catch(a){throw this.logger.error(a.message),a}},this.respond=async n=>{try{return await this.engine.respond(n)}catch(a){throw this.logger.error(a.message),a}},this.ping=async n=>{try{return await this.engine.ping(n)}catch(a){throw this.logger.error(a.message),a}},this.emit=async n=>{try{return await this.engine.emit(n)}catch(a){throw this.logger.error(a.message),a}},this.disconnect=async n=>{try{return await this.engine.disconnect(n)}catch(a){throw this.logger.error(a.message),a}},this.find=n=>{try{return this.engine.find(n)}catch(a){throw this.logger.error(a.message),a}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(n){throw this.logger.error(n.message),n}},this.name=(i==null?void 0:i.name)||tc.name,this.metadata=(i==null?void 0:i.metadata)||pm();const r=typeof(i==null?void 0:i.logger)<"u"&&typeof(i==null?void 0:i.logger)!="string"?i.logger:Oe.pino(Oe.getDefaultLoggerOptions({level:(i==null?void 0:i.logger)||tc.logger}));this.core=(i==null?void 0:i.core)||new Ib(i),this.logger=Oe.generateChildLogger(r,this.name),this.session=new qb(this.core,this.logger),this.proposal=new Lb(this.core,this.logger),this.pendingRequest=new zb(this.core,this.logger),this.engine=new Db(this)}static async init(i){const r=new uf(i);return await r.initialize(),r}get context(){return Oe.getLoggerContext(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(i){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(i.message),i}}};const yl="error",jb="wss://relay.walletconnect.com",Ub="wc",Hb="universal_provider",ml=`${Ub}@2:${Hb}:`,kb="https://rpc.walletconnect.com/v1/",ai={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};var js=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fc={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors @@ -24,10 +24,10 @@ __p += '`),Ce&&(H+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+H+`return __p -}`;var we=Ih(function(){return De(p,ee+"return "+H).apply(r,m)});if(we.source=H,$o(we))throw we;return we}function Qy(e){return qe(e).toLowerCase()}function Yy(e){return qe(e).toUpperCase()}function Xy(e,t,s){if(e=qe(e),e&&(s||t===r))return Nc(e);if(!e||!(t=pr(t)))return e;var o=Rr(e),h=Rr(t),p=$c(o,h),m=Dc(o,h)+1;return vi(o,p,m).join("")}function Zy(e,t,s){if(e=qe(e),e&&(s||t===r))return e.slice(0,qc(e)+1);if(!e||!(t=pr(t)))return e;var o=Rr(e),h=Dc(o,Rr(t))+1;return vi(o,0,h).join("")}function e0(e,t,s){if(e=qe(e),e&&(s||t===r))return e.replace(gt,"");if(!e||!(t=pr(t)))return e;var o=Rr(e),h=$c(o,Rr(t));return vi(o,h).join("")}function t0(e,t){var s=te,o=Ee;if(ct(t)){var h="separator"in t?t.separator:h;s="length"in t?ye(t.length):s,o="omission"in t?pr(t.omission):o}e=qe(e);var p=e.length;if(Yi(e)){var m=Rr(e);p=m.length}if(s>=p)return e;var _=s-Xi(o);if(_<1)return o;var P=m?vi(m,0,_).join(""):e.slice(0,_);if(h===r)return P+o;if(m&&(_+=P.length-_),Do(h)){if(e.slice(_).search(h)){var q,z=P;for(h.global||(h=Ja(h.source,qe(yr.exec(h))+"g")),h.lastIndex=0;q=h.exec(z);)var H=q.index;P=P.slice(0,H===r?_:H)}}else if(e.indexOf(pr(h),_)!=_){var G=P.lastIndexOf(h);G>-1&&(P=P.slice(0,G))}return P+o}function r0(e){return e=qe(e),e&<.test(e)?e.replace(oi,Af):e}var i0=ns(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),zo=xu("toUpperCase");function Eh(e,t,s){return e=qe(e),t=s?r:t,t===r?Sf(e)?Df(e):yf(e):e.match(t)||[]}var Ih=be(function(e,t){try{return Mt(e,r,t)}catch(s){return $o(s)?s:new le(s)}}),s0=Yr(function(e,t){return wr(t,function(s){s=Hr(s),Jr(e,s,Ao(e[s],e))}),e});function n0(e){var t=e==null?0:e.length,s=se();return e=t?it(e,function(o){if(typeof o[1]!="function")throw new _r(d);return[s(o[0]),o[1]]}):[],be(function(o){for(var h=-1;++hJ)return[];var s=B,o=Ft(e,B);t=se(t),e-=B;for(var h=Ba(o,t);++s0||t<0)?new Pe(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==r&&(t=ye(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},Pe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Pe.prototype.toArray=function(){return this.take(B)},jr(Pe.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),h=f[o?"take"+(t=="last"?"Right":""):t],p=o||/^find/.test(t);h&&(f.prototype[t]=function(){var m=this.__wrapped__,_=o?[1]:arguments,P=m instanceof Pe,q=_[0],z=P||ge(m),H=function(Ie){var Ce=h.apply(f,hi([Ie],_));return o&&G?Ce[0]:Ce};z&&s&&typeof q=="function"&&q.length!=1&&(P=z=!1);var G=this.__chain__,ee=!!this.__actions__.length,ne=p&&!G,we=P&&!ee;if(!p&&z){m=we?m:new Pe(this);var ae=e.apply(m,_);return ae.__actions__.push({func:Bn,args:[H],thisArg:r}),new br(ae,G)}return ne&&we?e.apply(this,_):(ae=this.thru(H),ne?o?ae.value()[0]:ae.value():ae)})}),wr(["pop","push","shift","sort","splice","unshift"],function(e){var t=mn[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);f.prototype[e]=function(){var h=arguments;if(o&&!this.__chain__){var p=this.value();return t.apply(ge(p)?p:[],h)}return this[s](function(m){return t.apply(ge(m)?m:[],h)})}}),jr(Pe.prototype,function(e,t){var s=f[t];if(s){var o=s.name+"";Me.call(rs,o)||(rs[o]=[]),rs[o].push({name:t,func:s})}}),rs[jn(r,ce).name]=[{name:"wrapper",func:r}],Pe.prototype.clone=rp,Pe.prototype.reverse=ip,Pe.prototype.value=sp,f.prototype.at=$g,f.prototype.chain=Dg,f.prototype.commit=Lg,f.prototype.next=qg,f.prototype.plant=Mg,f.prototype.reverse=jg,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=Ug,f.prototype.first=f.prototype.head,ws&&(f.prototype[ws]=zg),f},Zi=Lf();_t?((_t.exports=Zi)._=Zi,Be._=Zi):Se._=Zi}).call(js)})(fc,fc.exports);var Kb=Object.defineProperty,Vb=Object.defineProperties,Fb=Object.getOwnPropertyDescriptors,wl=Object.getOwnPropertySymbols,Bb=Object.prototype.hasOwnProperty,Gb=Object.prototype.propertyIsEnumerable,_l=(c,i,r)=>i in c?Kb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,na=(c,i)=>{for(var r in i||(i={}))Bb.call(i,r)&&_l(c,r,i[r]);if(wl)for(var r of wl(i))Gb.call(i,r)&&_l(c,r,i[r]);return c},Wb=(c,i)=>Vb(c,Fb(i));function Ei(c,i,r){var n;const a=Rm(c);return((n=i.rpcMap)==null?void 0:n[a.reference])||`${kb}?chainId=${a.namespace}:${a.reference}&projectId=${r}`}function ki(c){return c.includes(":")?c.split(":")[1]:c}function hf(c){return c.map(i=>`${i.split(":")[0]}:${i.split(":")[1]}`)}function Jb(c,i){const r=Object.keys(i.namespaces).filter(a=>a.includes(c));if(!r.length)return[];const n=[];return r.forEach(a=>{const l=i.namespaces[a].accounts;n.push(...l)}),n}function Qb(c={},i={}){const r=bl(c),n=bl(i);return fc.exports.merge(r,n)}function bl(c){var i,r,n,a;const l={};if(!ca(c))return l;for(const[d,y]of Object.entries(c)){const w=Dl(d)?[d]:y.chains,v=y.methods||[],E=y.events||[],C=y.rpcMap||{},T=Us(d);l[T]=Wb(na(na({},l[T]),y),{chains:Fo(w,(i=l[T])==null?void 0:i.chains),methods:Fo(v,(r=l[T])==null?void 0:r.methods),events:Fo(E,(n=l[T])==null?void 0:n.events),rpcMap:na(na({},C),(a=l[T])==null?void 0:a.rpcMap)})}return l}function Yb(c){return c.includes(":")?c.split(":")[2]:c}function Xb(c){const i={};for(const[r,n]of Object.entries(c)){const a=n.methods||[],l=n.events||[],d=n.accounts||[],y=Dl(r)?[r]:n.chains?n.chains:hf(n.accounts);i[r]={chains:y,methods:a,events:l,accounts:d}}return i}function ic(c){return typeof c=="number"?c:c.includes("0x")?parseInt(c,16):c.includes(":")?Number(c.split(":")[1]):Number(c)}const lf={},st=c=>lf[c],sc=(c,i)=>{lf[c]=i};class Zb{constructor(i){this.name="polkadot",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}getAccounts(){const i=this.namespace.accounts;return i?i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2])||[]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=ki(r);i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class eE{constructor(i){this.name="eip155",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(i){switch(i.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(i);case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(i.request.method)?await this.client.request(i):this.getHttpProvider().request(i.request)}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(parseInt(i),r),this.chainId=parseInt(i),this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}createHttpProvider(i,r){const n=r||Ei(`${this.name}:${i}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=parseInt(ki(r));i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}getHttpProvider(){const i=this.chainId,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}async handleSwitchChain(i){var r,n;let a=i.request.params?(r=i.request.params[0])==null?void 0:r.chainId:"0x0";a=a.startsWith("0x")?a:`0x${a}`;const l=parseInt(a,16);if(this.isChainApproved(l))this.setDefaultChain(`${l}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:i.topic,request:{method:i.request.method,params:[{chainId:a}]},chainId:(n=this.namespace.chains)==null?void 0:n[0]}),this.setDefaultChain(`${l}`);else throw new Error(`Failed to switch to chain 'eip155:${l}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(i){return this.namespace.chains.includes(`${this.name}:${i}`)}}class tE{constructor(i){this.name="solana",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=ki(r);i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class rE{constructor(i){this.name="cosmos",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=ki(r);i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class iE{constructor(i){this.name="cip34",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{const n=this.getCardanoRPCUrl(r),a=ki(r);i[a]=this.createHttpProvider(a,n)}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}getCardanoRPCUrl(i){const r=this.namespace.rpcMap;if(r)return r[i]}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||this.getCardanoRPCUrl(i);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class sE{constructor(i){this.name="elrond",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=ki(r);i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class nE{constructor(i){this.name="multiversx",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=ki(r);i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class aE{constructor(i){this.name="near",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){if(this.chainId=i,!this.httpProviders[i]){const n=r||Ei(`${this.name}:${i}`,this.namespace);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);this.setHttpProvider(i,n)}this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const i=this.namespace.accounts;return i?i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2])||[]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;i[r]=this.createHttpProvider(r,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace);return typeof n>"u"?void 0:new ni(new Ii(n,st("disableProviderPing")))}}var oE=Object.defineProperty,cE=Object.defineProperties,uE=Object.getOwnPropertyDescriptors,El=Object.getOwnPropertySymbols,hE=Object.prototype.hasOwnProperty,lE=Object.prototype.propertyIsEnumerable,Il=(c,i,r)=>i in c?oE(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,aa=(c,i)=>{for(var r in i||(i={}))hE.call(i,r)&&Il(c,r,i[r]);if(El)for(var r of El(i))lE.call(i,r)&&Il(c,r,i[r]);return c},nc=(c,i)=>cE(c,uE(i));class Pc{constructor(i){this.events=new vc,this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=i,this.logger=typeof(i==null?void 0:i.logger)<"u"&&typeof(i==null?void 0:i.logger)!="string"?i.logger:Oe.pino(Oe.getDefaultLoggerOptions({level:(i==null?void 0:i.logger)||yl})),this.disableProviderPing=(i==null?void 0:i.disableProviderPing)||!1}static async init(i){const r=new Pc(i);return await r.initialize(),r}async request(i,r){const[n,a]=this.validateChain(r);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(n).request({request:aa({},i),chainId:`${n}:${a}`,topic:this.session.topic})}sendAsync(i,r,n){this.request(i,n).then(a=>r(null,a)).catch(a=>r(a,void 0))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var i;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(i=this.session)==null?void 0:i.topic,reason:tr("USER_DISCONNECTED")}),await this.cleanup()}async connect(i){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(i),await this.cleanupPendingPairings(),!i.skipPairing)return await this.pair(i.pairingTopic)}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}removeListener(i,r){this.events.removeListener(i,r)}off(i,r){this.events.off(i,r)}get isWalletConnect(){return!0}async pair(i){this.shouldAbortPairingAttempt=!1;let r=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(r>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");const{uri:n,approval:a}=await this.client.connect({pairingTopic:i,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});n&&(this.uri=n,this.events.emit("display_uri",n)),await a().then(l=>{this.session=l,this.namespaces||(this.namespaces=Xb(l.namespaces),this.persist("namespaces",this.namespaces))}).catch(l=>{if(l.message!==cf)throw l;r++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(i,r){try{if(!this.session)return;const[n,a]=this.validateChain(i);this.getProvider(n).setDefaultChain(a,r)}catch(n){if(!/Please call connect/.test(n.message))throw n}}async cleanupPendingPairings(i={}){this.logger.info("Cleaning up inactive pairings...");const r=this.client.pairing.getAll();if(fs(r)){for(const n of r)i.deletePairings?this.client.core.expirer.set(n.topic,0):await this.client.core.relayer.subscriber.unsubscribe(n.topic);this.logger.info(`Inactive pairings cleared: ${r.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){const i=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[i]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await Mb.init({logger:this.providerOpts.logger||yl,relayUrl:this.providerOpts.relayUrl||jb,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const i=[...new Set(Object.keys(this.session.namespaces).map(r=>Us(r)))];sc("client",this.client),sc("events",this.events),sc("disableProviderPing",this.disableProviderPing),i.forEach(r=>{if(!this.session)return;const n=Jb(r,this.session),a=hf(n),l=Qb(this.namespaces,this.optionalNamespaces),d=nc(aa({},l[r]),{accounts:n,chains:a});switch(r){case"eip155":this.rpcProviders[r]=new eE({namespace:d});break;case"solana":this.rpcProviders[r]=new tE({namespace:d});break;case"cosmos":this.rpcProviders[r]=new rE({namespace:d});break;case"polkadot":this.rpcProviders[r]=new Zb({namespace:d});break;case"cip34":this.rpcProviders[r]=new iE({namespace:d});break;case"elrond":this.rpcProviders[r]=new sE({namespace:d});break;case"multiversx":this.rpcProviders[r]=new nE({namespace:d});break;case"near":this.rpcProviders[r]=new aE({namespace:d});break}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",i=>{this.events.emit("session_ping",i)}),this.client.on("session_event",i=>{const{params:r}=i,{event:n}=r;if(n.name==="accountsChanged"){const a=n.data;a&&fs(a)&&this.events.emit("accountsChanged",a.map(Yb))}else if(n.name==="chainChanged"){const a=r.chainId,l=r.event.data,d=Us(a),y=ic(a)!==ic(l)?`${d}:${ic(l)}`:a;this.onChainChanged(y)}else this.events.emit(n.name,n.data);this.events.emit("session_event",i)}),this.client.on("session_update",({topic:i,params:r})=>{var n;const{namespaces:a}=r,l=(n=this.client)==null?void 0:n.session.get(i);this.session=nc(aa({},l),{namespaces:a}),this.onSessionUpdate(),this.events.emit("session_update",{topic:i,params:r})}),this.client.on("session_delete",async i=>{await this.cleanup(),this.events.emit("session_delete",i),this.events.emit("disconnect",nc(aa({},tr("USER_DISCONNECTED")),{data:i.topic}))}),this.on(ai.DEFAULT_CHAIN_CHANGED,i=>{this.onChainChanged(i,!0)})}getProvider(i){if(!this.rpcProviders[i])throw new Error(`Provider not found: ${i}`);return this.rpcProviders[i]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(i=>{var r;this.getProvider(i).updateNamespace((r=this.session)==null?void 0:r.namespaces[i])})}setNamespaces(i){const{namespaces:r,optionalNamespaces:n,sessionProperties:a}=i;r&&Object.keys(r).length&&(this.namespaces=r),n&&Object.keys(n).length&&(this.optionalNamespaces=n),this.sessionProperties=a,this.persist("namespaces",r),this.persist("optionalNamespaces",n)}validateChain(i){const[r,n]=(i==null?void 0:i.split(":"))||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[r,n];if(r&&!Object.keys(this.namespaces||{}).map(d=>Us(d)).includes(r))throw new Error(`Namespace '${r}' is not configured. Please call connect() first with namespace config.`);if(r&&n)return[r,n];const a=Us(Object.keys(this.namespaces)[0]),l=this.rpcProviders[a].getDefaultChain();return[a,l]}async requestAccounts(){const[i]=this.validateChain();return await this.getProvider(i).requestAccounts()}onChainChanged(i,r=!1){var n;if(!this.namespaces)return;const[a,l]=this.validateChain(i);r||this.getProvider(a).setDefaultChain(l),((n=this.namespaces[a])!=null?n:this.namespaces[`${a}:${l}`]).defaultChain=l,this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",l)}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(i,r){this.client.core.storage.setItem(`${ml}/${i}`,r)}async getFromStore(i){return await this.client.core.storage.getItem(`${ml}/${i}`)}}const fE=Pc,pE="wc",dE="ethereum_provider",gE=`${pE}@2:${dE}:`,vE="https://rpc.walletconnect.com/v1/",pc=["eth_sendTransaction","personal_sign"],yE=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],dc=["chainChanged","accountsChanged"],mE=["chainChanged","accountsChanged","message","disconnect","connect"];var wE=Object.defineProperty,_E=Object.defineProperties,bE=Object.getOwnPropertyDescriptors,xl=Object.getOwnPropertySymbols,EE=Object.prototype.hasOwnProperty,IE=Object.prototype.propertyIsEnumerable,Pl=(c,i,r)=>i in c?wE(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,ks=(c,i)=>{for(var r in i||(i={}))EE.call(i,r)&&Pl(c,r,i[r]);if(xl)for(var r of xl(i))IE.call(i,r)&&Pl(c,r,i[r]);return c},Sl=(c,i)=>_E(c,bE(i));function da(c){return Number(c[0].split(":")[1])}function ac(c){return`0x${c.toString(16)}`}function xE(c){const{chains:i,optionalChains:r,methods:n,optionalMethods:a,events:l,optionalEvents:d,rpcMap:y}=c;if(!fs(i))throw new Error("Invalid chains");const w={chains:i,methods:n||pc,events:l||dc,rpcMap:ks({},i.length?{[da(i)]:y[da(i)]}:{})},v=l==null?void 0:l.filter(j=>!dc.includes(j)),E=n==null?void 0:n.filter(j=>!pc.includes(j));if(!r&&!d&&!a&&!(v!=null&&v.length)&&!(E!=null&&E.length))return{required:i.length?w:void 0};const C=(v==null?void 0:v.length)&&(E==null?void 0:E.length)||!r,T={chains:[...new Set(C?w.chains.concat(r||[]):r)],methods:[...new Set(w.methods.concat(a!=null&&a.length?a:yE))],events:[...new Set(w.events.concat(d!=null&&d.length?d:mE))],rpcMap:y};return{required:i.length?w:void 0,optional:r.length?T:void 0}}class Sc{constructor(){this.events=new Kr.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY=gE,this.on=(i,r)=>(this.events.on(i,r),this),this.once=(i,r)=>(this.events.once(i,r),this),this.removeListener=(i,r)=>(this.events.removeListener(i,r),this),this.off=(i,r)=>(this.events.off(i,r),this),this.parseAccount=i=>this.isCompatibleChainId(i)?this.parseAccountId(i).address:i,this.signer={},this.rpc={}}static async init(i){const r=new Sc;return await r.initialize(i),r}async request(i){return await this.signer.request(i,this.formatChainId(this.chainId))}sendAsync(i,r){this.signer.sendAsync(i,r,this.formatChainId(this.chainId))}get connected(){return this.signer.client?this.signer.client.core.relayer.connected:!1}get connecting(){return this.signer.client?this.signer.client.core.relayer.connecting:!1}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(i){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(i);const{required:r,optional:n}=xE(this.rpc);try{const a=await new Promise(async(d,y)=>{var w;this.rpc.showQrModal&&((w=this.modal)==null||w.subscribeModal(v=>{!v.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),y(new Error("Connection request reset. Please try again.")))})),await this.signer.connect(Sl(ks({namespaces:ks({},r&&{[this.namespace]:r})},n&&{optionalNamespaces:{[this.namespace]:n}}),{pairingTopic:i==null?void 0:i.pairingTopic})).then(v=>{d(v)}).catch(v=>{y(new Error(v.message))})});if(!a)return;const l=Tm(a.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:l),this.setAccounts(l),this.events.emit("connect",{chainId:ac(this.chainId)})}catch(a){throw this.signer.logger.error(a),a}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",i=>{const{params:r}=i,{event:n}=r;n.name==="accountsChanged"?(this.accounts=this.parseAccounts(n.data),this.events.emit("accountsChanged",this.accounts)):n.name==="chainChanged"?this.setChainId(this.formatChainId(n.data)):this.events.emit(n.name,n.data),this.events.emit("session_event",i)}),this.signer.on("chainChanged",i=>{const r=parseInt(i);this.chainId=r,this.events.emit("chainChanged",ac(this.chainId)),this.persist()}),this.signer.on("session_update",i=>{this.events.emit("session_update",i)}),this.signer.on("session_delete",i=>{this.reset(),this.events.emit("session_delete",i),this.events.emit("disconnect",Sl(ks({},tr("USER_DISCONNECTED")),{data:i.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",i=>{var r,n;this.rpc.showQrModal&&((r=this.modal)==null||r.closeModal(),(n=this.modal)==null||n.openModal({uri:i})),this.events.emit("display_uri",i)})}switchEthereumChain(i){this.request({method:"wallet_switchEthereumChain",params:[{chainId:i.toString(16)}]})}isCompatibleChainId(i){return typeof i=="string"?i.startsWith(`${this.namespace}:`):!1}formatChainId(i){return`${this.namespace}:${i}`}parseChainId(i){return Number(i.split(":")[1])}setChainIds(i){const r=i.filter(n=>this.isCompatibleChainId(n)).map(n=>this.parseChainId(n));r.length&&(this.chainId=r[0],this.events.emit("chainChanged",ac(this.chainId)),this.persist())}setChainId(i){if(this.isCompatibleChainId(i)){const r=this.parseChainId(i);this.chainId=r,this.switchEthereumChain(r)}}parseAccountId(i){const[r,n,a]=i.split(":");return{chainId:`${r}:${n}`,address:a}}setAccounts(i){this.accounts=i.filter(r=>this.parseChainId(this.parseAccountId(r).chainId)===this.chainId).map(r=>this.parseAccountId(r).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(i){var r,n;const a=(r=i==null?void 0:i.chains)!=null?r:[],l=(n=i==null?void 0:i.optionalChains)!=null?n:[],d=a.concat(l);if(!d.length)throw new Error("No chains specified in either `chains` or `optionalChains`");const y=a.length?(i==null?void 0:i.methods)||pc:[],w=a.length?(i==null?void 0:i.events)||dc:[],v=(i==null?void 0:i.optionalMethods)||[],E=(i==null?void 0:i.optionalEvents)||[],C=(i==null?void 0:i.rpcMap)||this.buildRpcMap(d,i.projectId),T=(i==null?void 0:i.qrModalOptions)||void 0;return{chains:a==null?void 0:a.map(j=>this.formatChainId(j)),optionalChains:l.map(j=>this.formatChainId(j)),methods:y,events:w,optionalMethods:v,optionalEvents:E,rpcMap:C,showQrModal:!!(i!=null&&i.showQrModal),qrModalOptions:T,projectId:i.projectId,metadata:i.metadata}}buildRpcMap(i,r){const n={};return i.forEach(a=>{n[a]=this.getRpcUrl(a,r)}),n}async initialize(i){if(this.rpc=this.getRpcConfig(i),this.chainId=this.rpc.chains.length?da(this.rpc.chains):da(this.rpc.optionalChains),this.signer=await fE.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:i.disableProviderPing,relayUrl:i.relayUrl,storageOptions:i.storageOptions}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let r;try{const{WalletConnectModal:n}=await Am(()=>import("./index-Su3Bmzid.js").then(a=>a.i),__vite__mapDeps([0,1,2]));r=n}catch{throw new Error("To use QR modal, please install @walletconnect/modal package")}if(r)try{this.modal=new r(ks({walletConnectVersion:2,projectId:this.rpc.projectId,standaloneChains:this.rpc.chains},this.rpc.qrModalOptions))}catch(n){throw this.signer.logger.error(n),new Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(i){if(!i)return;const{chains:r,optionalChains:n,rpcMap:a}=i;r&&fs(r)&&(this.rpc.chains=r.map(l=>this.formatChainId(l)),r.forEach(l=>{this.rpc.rpcMap[l]=(a==null?void 0:a[l])||this.getRpcUrl(l)})),n&&fs(n)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=n==null?void 0:n.map(l=>this.formatChainId(l)),n.forEach(l=>{this.rpc.rpcMap[l]=(a==null?void 0:a[l])||this.getRpcUrl(l)}))}getRpcUrl(i,r){var n;return((n=this.rpc.rpcMap)==null?void 0:n[i])||`${vE}?chainId=eip155:${i}&projectId=${r||this.rpc.projectId}`}async loadPersistedSession(){if(!this.session)return;const i=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),r=this.session.namespaces[`${this.namespace}:${i}`]?this.session.namespaces[`${this.namespace}:${i}`]:this.session.namespaces[this.namespace];this.setChainIds(i?[this.formatChainId(i)]:r==null?void 0:r.accounts),this.setAccounts(r==null?void 0:r.accounts)}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(i){return typeof i=="string"||i instanceof String?[this.parseAccount(i)]:i.map(r=>this.parseAccount(r))}}const zE=Sc;export{zE as EthereumProvider,mE as OPTIONAL_EVENTS,yE as OPTIONAL_METHODS,dc as REQUIRED_EVENTS,pc as REQUIRED_METHODS,Sc as default}; +}`;var we=Ih(function(){return De(p,ee+"return "+H).apply(r,m)});if(we.source=H,$o(we))throw we;return we}function Qy(e){return qe(e).toLowerCase()}function Yy(e){return qe(e).toUpperCase()}function Xy(e,t,s){if(e=qe(e),e&&(s||t===r))return Nc(e);if(!e||!(t=pr(t)))return e;var o=Rr(e),h=Rr(t),p=$c(o,h),m=Dc(o,h)+1;return vi(o,p,m).join("")}function Zy(e,t,s){if(e=qe(e),e&&(s||t===r))return e.slice(0,qc(e)+1);if(!e||!(t=pr(t)))return e;var o=Rr(e),h=Dc(o,Rr(t))+1;return vi(o,0,h).join("")}function e0(e,t,s){if(e=qe(e),e&&(s||t===r))return e.replace(gt,"");if(!e||!(t=pr(t)))return e;var o=Rr(e),h=$c(o,Rr(t));return vi(o,h).join("")}function t0(e,t){var s=te,o=Ee;if(ct(t)){var h="separator"in t?t.separator:h;s="length"in t?ye(t.length):s,o="omission"in t?pr(t.omission):o}e=qe(e);var p=e.length;if(Yi(e)){var m=Rr(e);p=m.length}if(s>=p)return e;var _=s-Xi(o);if(_<1)return o;var P=m?vi(m,0,_).join(""):e.slice(0,_);if(h===r)return P+o;if(m&&(_+=P.length-_),Do(h)){if(e.slice(_).search(h)){var q,z=P;for(h.global||(h=Ja(h.source,qe(yr.exec(h))+"g")),h.lastIndex=0;q=h.exec(z);)var H=q.index;P=P.slice(0,H===r?_:H)}}else if(e.indexOf(pr(h),_)!=_){var G=P.lastIndexOf(h);G>-1&&(P=P.slice(0,G))}return P+o}function r0(e){return e=qe(e),e&<.test(e)?e.replace(oi,Af):e}var i0=ns(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),zo=xu("toUpperCase");function Eh(e,t,s){return e=qe(e),t=s?r:t,t===r?Sf(e)?Df(e):yf(e):e.match(t)||[]}var Ih=be(function(e,t){try{return Mt(e,r,t)}catch(s){return $o(s)?s:new le(s)}}),s0=Yr(function(e,t){return wr(t,function(s){s=Hr(s),Jr(e,s,Ao(e[s],e))}),e});function n0(e){var t=e==null?0:e.length,s=se();return e=t?it(e,function(o){if(typeof o[1]!="function")throw new _r(d);return[s(o[0]),o[1]]}):[],be(function(o){for(var h=-1;++hJ)return[];var s=B,o=Ft(e,B);t=se(t),e-=B;for(var h=Ba(o,t);++s0||t<0)?new Pe(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==r&&(t=ye(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},Pe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Pe.prototype.toArray=function(){return this.take(B)},jr(Pe.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),h=f[o?"take"+(t=="last"?"Right":""):t],p=o||/^find/.test(t);h&&(f.prototype[t]=function(){var m=this.__wrapped__,_=o?[1]:arguments,P=m instanceof Pe,q=_[0],z=P||ge(m),H=function(Ie){var Ce=h.apply(f,hi([Ie],_));return o&&G?Ce[0]:Ce};z&&s&&typeof q=="function"&&q.length!=1&&(P=z=!1);var G=this.__chain__,ee=!!this.__actions__.length,ne=p&&!G,we=P&&!ee;if(!p&&z){m=we?m:new Pe(this);var ae=e.apply(m,_);return ae.__actions__.push({func:Bn,args:[H],thisArg:r}),new br(ae,G)}return ne&&we?e.apply(this,_):(ae=this.thru(H),ne?o?ae.value()[0]:ae.value():ae)})}),wr(["pop","push","shift","sort","splice","unshift"],function(e){var t=mn[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);f.prototype[e]=function(){var h=arguments;if(o&&!this.__chain__){var p=this.value();return t.apply(ge(p)?p:[],h)}return this[s](function(m){return t.apply(ge(m)?m:[],h)})}}),jr(Pe.prototype,function(e,t){var s=f[t];if(s){var o=s.name+"";Me.call(rs,o)||(rs[o]=[]),rs[o].push({name:t,func:s})}}),rs[jn(r,ce).name]=[{name:"wrapper",func:r}],Pe.prototype.clone=rp,Pe.prototype.reverse=ip,Pe.prototype.value=sp,f.prototype.at=$g,f.prototype.chain=Dg,f.prototype.commit=Lg,f.prototype.next=qg,f.prototype.plant=Mg,f.prototype.reverse=jg,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=Ug,f.prototype.first=f.prototype.head,ws&&(f.prototype[ws]=zg),f},Zi=Lf();_t?((_t.exports=Zi)._=Zi,Be._=Zi):Se._=Zi}).call(js)})(fc,fc.exports);var Kb=Object.defineProperty,Vb=Object.defineProperties,Fb=Object.getOwnPropertyDescriptors,wl=Object.getOwnPropertySymbols,Bb=Object.prototype.hasOwnProperty,Gb=Object.prototype.propertyIsEnumerable,_l=(c,i,r)=>i in c?Kb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,na=(c,i)=>{for(var r in i||(i={}))Bb.call(i,r)&&_l(c,r,i[r]);if(wl)for(var r of wl(i))Gb.call(i,r)&&_l(c,r,i[r]);return c},Wb=(c,i)=>Vb(c,Fb(i));function Ei(c,i,r){var n;const a=Rm(c);return((n=i.rpcMap)==null?void 0:n[a.reference])||`${kb}?chainId=${a.namespace}:${a.reference}&projectId=${r}`}function ki(c){return c.includes(":")?c.split(":")[1]:c}function hf(c){return c.map(i=>`${i.split(":")[0]}:${i.split(":")[1]}`)}function Jb(c,i){const r=Object.keys(i.namespaces).filter(a=>a.includes(c));if(!r.length)return[];const n=[];return r.forEach(a=>{const l=i.namespaces[a].accounts;n.push(...l)}),n}function Qb(c={},i={}){const r=bl(c),n=bl(i);return fc.exports.merge(r,n)}function bl(c){var i,r,n,a;const l={};if(!ca(c))return l;for(const[d,y]of Object.entries(c)){const w=Dl(d)?[d]:y.chains,v=y.methods||[],E=y.events||[],C=y.rpcMap||{},T=Us(d);l[T]=Wb(na(na({},l[T]),y),{chains:Fo(w,(i=l[T])==null?void 0:i.chains),methods:Fo(v,(r=l[T])==null?void 0:r.methods),events:Fo(E,(n=l[T])==null?void 0:n.events),rpcMap:na(na({},C),(a=l[T])==null?void 0:a.rpcMap)})}return l}function Yb(c){return c.includes(":")?c.split(":")[2]:c}function Xb(c){const i={};for(const[r,n]of Object.entries(c)){const a=n.methods||[],l=n.events||[],d=n.accounts||[],y=Dl(r)?[r]:n.chains?n.chains:hf(n.accounts);i[r]={chains:y,methods:a,events:l,accounts:d}}return i}function ic(c){return typeof c=="number"?c:c.includes("0x")?parseInt(c,16):c.includes(":")?Number(c.split(":")[1]):Number(c)}const lf={},st=c=>lf[c],sc=(c,i)=>{lf[c]=i};class Zb{constructor(i){this.name="polkadot",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}getAccounts(){const i=this.namespace.accounts;return i?i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2])||[]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=ki(r);i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class eE{constructor(i){this.name="eip155",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(i){switch(i.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(i);case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(i.request.method)?await this.client.request(i):this.getHttpProvider().request(i.request)}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(parseInt(i),r),this.chainId=parseInt(i),this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}createHttpProvider(i,r){const n=r||Ei(`${this.name}:${i}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=parseInt(ki(r));i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}getHttpProvider(){const i=this.chainId,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}async handleSwitchChain(i){var r,n;let a=i.request.params?(r=i.request.params[0])==null?void 0:r.chainId:"0x0";a=a.startsWith("0x")?a:`0x${a}`;const l=parseInt(a,16);if(this.isChainApproved(l))this.setDefaultChain(`${l}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:i.topic,request:{method:i.request.method,params:[{chainId:a}]},chainId:(n=this.namespace.chains)==null?void 0:n[0]}),this.setDefaultChain(`${l}`);else throw new Error(`Failed to switch to chain 'eip155:${l}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(i){return this.namespace.chains.includes(`${this.name}:${i}`)}}class tE{constructor(i){this.name="solana",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=ki(r);i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class rE{constructor(i){this.name="cosmos",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=ki(r);i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class iE{constructor(i){this.name="cip34",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{const n=this.getCardanoRPCUrl(r),a=ki(r);i[a]=this.createHttpProvider(a,n)}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}getCardanoRPCUrl(i){const r=this.namespace.rpcMap;if(r)return r[i]}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||this.getCardanoRPCUrl(i);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class sE{constructor(i){this.name="elrond",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=ki(r);i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class nE{constructor(i){this.name="multiversx",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=ki(r);i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class aE{constructor(i){this.name="near",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){if(this.chainId=i,!this.httpProviders[i]){const n=r||Ei(`${this.name}:${i}`,this.namespace);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);this.setHttpProvider(i,n)}this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const i=this.namespace.accounts;return i?i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2])||[]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;i[r]=this.createHttpProvider(r,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace);return typeof n>"u"?void 0:new ni(new Ii(n,st("disableProviderPing")))}}var oE=Object.defineProperty,cE=Object.defineProperties,uE=Object.getOwnPropertyDescriptors,El=Object.getOwnPropertySymbols,hE=Object.prototype.hasOwnProperty,lE=Object.prototype.propertyIsEnumerable,Il=(c,i,r)=>i in c?oE(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,aa=(c,i)=>{for(var r in i||(i={}))hE.call(i,r)&&Il(c,r,i[r]);if(El)for(var r of El(i))lE.call(i,r)&&Il(c,r,i[r]);return c},nc=(c,i)=>cE(c,uE(i));class Pc{constructor(i){this.events=new vc,this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=i,this.logger=typeof(i==null?void 0:i.logger)<"u"&&typeof(i==null?void 0:i.logger)!="string"?i.logger:Oe.pino(Oe.getDefaultLoggerOptions({level:(i==null?void 0:i.logger)||yl})),this.disableProviderPing=(i==null?void 0:i.disableProviderPing)||!1}static async init(i){const r=new Pc(i);return await r.initialize(),r}async request(i,r){const[n,a]=this.validateChain(r);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(n).request({request:aa({},i),chainId:`${n}:${a}`,topic:this.session.topic})}sendAsync(i,r,n){this.request(i,n).then(a=>r(null,a)).catch(a=>r(a,void 0))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var i;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(i=this.session)==null?void 0:i.topic,reason:tr("USER_DISCONNECTED")}),await this.cleanup()}async connect(i){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(i),await this.cleanupPendingPairings(),!i.skipPairing)return await this.pair(i.pairingTopic)}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}removeListener(i,r){this.events.removeListener(i,r)}off(i,r){this.events.off(i,r)}get isWalletConnect(){return!0}async pair(i){this.shouldAbortPairingAttempt=!1;let r=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(r>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");const{uri:n,approval:a}=await this.client.connect({pairingTopic:i,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});n&&(this.uri=n,this.events.emit("display_uri",n)),await a().then(l=>{this.session=l,this.namespaces||(this.namespaces=Xb(l.namespaces),this.persist("namespaces",this.namespaces))}).catch(l=>{if(l.message!==cf)throw l;r++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(i,r){try{if(!this.session)return;const[n,a]=this.validateChain(i);this.getProvider(n).setDefaultChain(a,r)}catch(n){if(!/Please call connect/.test(n.message))throw n}}async cleanupPendingPairings(i={}){this.logger.info("Cleaning up inactive pairings...");const r=this.client.pairing.getAll();if(fs(r)){for(const n of r)i.deletePairings?this.client.core.expirer.set(n.topic,0):await this.client.core.relayer.subscriber.unsubscribe(n.topic);this.logger.info(`Inactive pairings cleared: ${r.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){const i=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[i]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await Mb.init({logger:this.providerOpts.logger||yl,relayUrl:this.providerOpts.relayUrl||jb,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const i=[...new Set(Object.keys(this.session.namespaces).map(r=>Us(r)))];sc("client",this.client),sc("events",this.events),sc("disableProviderPing",this.disableProviderPing),i.forEach(r=>{if(!this.session)return;const n=Jb(r,this.session),a=hf(n),l=Qb(this.namespaces,this.optionalNamespaces),d=nc(aa({},l[r]),{accounts:n,chains:a});switch(r){case"eip155":this.rpcProviders[r]=new eE({namespace:d});break;case"solana":this.rpcProviders[r]=new tE({namespace:d});break;case"cosmos":this.rpcProviders[r]=new rE({namespace:d});break;case"polkadot":this.rpcProviders[r]=new Zb({namespace:d});break;case"cip34":this.rpcProviders[r]=new iE({namespace:d});break;case"elrond":this.rpcProviders[r]=new sE({namespace:d});break;case"multiversx":this.rpcProviders[r]=new nE({namespace:d});break;case"near":this.rpcProviders[r]=new aE({namespace:d});break}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",i=>{this.events.emit("session_ping",i)}),this.client.on("session_event",i=>{const{params:r}=i,{event:n}=r;if(n.name==="accountsChanged"){const a=n.data;a&&fs(a)&&this.events.emit("accountsChanged",a.map(Yb))}else if(n.name==="chainChanged"){const a=r.chainId,l=r.event.data,d=Us(a),y=ic(a)!==ic(l)?`${d}:${ic(l)}`:a;this.onChainChanged(y)}else this.events.emit(n.name,n.data);this.events.emit("session_event",i)}),this.client.on("session_update",({topic:i,params:r})=>{var n;const{namespaces:a}=r,l=(n=this.client)==null?void 0:n.session.get(i);this.session=nc(aa({},l),{namespaces:a}),this.onSessionUpdate(),this.events.emit("session_update",{topic:i,params:r})}),this.client.on("session_delete",async i=>{await this.cleanup(),this.events.emit("session_delete",i),this.events.emit("disconnect",nc(aa({},tr("USER_DISCONNECTED")),{data:i.topic}))}),this.on(ai.DEFAULT_CHAIN_CHANGED,i=>{this.onChainChanged(i,!0)})}getProvider(i){if(!this.rpcProviders[i])throw new Error(`Provider not found: ${i}`);return this.rpcProviders[i]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(i=>{var r;this.getProvider(i).updateNamespace((r=this.session)==null?void 0:r.namespaces[i])})}setNamespaces(i){const{namespaces:r,optionalNamespaces:n,sessionProperties:a}=i;r&&Object.keys(r).length&&(this.namespaces=r),n&&Object.keys(n).length&&(this.optionalNamespaces=n),this.sessionProperties=a,this.persist("namespaces",r),this.persist("optionalNamespaces",n)}validateChain(i){const[r,n]=(i==null?void 0:i.split(":"))||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[r,n];if(r&&!Object.keys(this.namespaces||{}).map(d=>Us(d)).includes(r))throw new Error(`Namespace '${r}' is not configured. Please call connect() first with namespace config.`);if(r&&n)return[r,n];const a=Us(Object.keys(this.namespaces)[0]),l=this.rpcProviders[a].getDefaultChain();return[a,l]}async requestAccounts(){const[i]=this.validateChain();return await this.getProvider(i).requestAccounts()}onChainChanged(i,r=!1){var n;if(!this.namespaces)return;const[a,l]=this.validateChain(i);r||this.getProvider(a).setDefaultChain(l),((n=this.namespaces[a])!=null?n:this.namespaces[`${a}:${l}`]).defaultChain=l,this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",l)}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(i,r){this.client.core.storage.setItem(`${ml}/${i}`,r)}async getFromStore(i){return await this.client.core.storage.getItem(`${ml}/${i}`)}}const fE=Pc,pE="wc",dE="ethereum_provider",gE=`${pE}@2:${dE}:`,vE="https://rpc.walletconnect.com/v1/",pc=["eth_sendTransaction","personal_sign"],yE=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],dc=["chainChanged","accountsChanged"],mE=["chainChanged","accountsChanged","message","disconnect","connect"];var wE=Object.defineProperty,_E=Object.defineProperties,bE=Object.getOwnPropertyDescriptors,xl=Object.getOwnPropertySymbols,EE=Object.prototype.hasOwnProperty,IE=Object.prototype.propertyIsEnumerable,Pl=(c,i,r)=>i in c?wE(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,ks=(c,i)=>{for(var r in i||(i={}))EE.call(i,r)&&Pl(c,r,i[r]);if(xl)for(var r of xl(i))IE.call(i,r)&&Pl(c,r,i[r]);return c},Sl=(c,i)=>_E(c,bE(i));function da(c){return Number(c[0].split(":")[1])}function ac(c){return`0x${c.toString(16)}`}function xE(c){const{chains:i,optionalChains:r,methods:n,optionalMethods:a,events:l,optionalEvents:d,rpcMap:y}=c;if(!fs(i))throw new Error("Invalid chains");const w={chains:i,methods:n||pc,events:l||dc,rpcMap:ks({},i.length?{[da(i)]:y[da(i)]}:{})},v=l==null?void 0:l.filter(j=>!dc.includes(j)),E=n==null?void 0:n.filter(j=>!pc.includes(j));if(!r&&!d&&!a&&!(v!=null&&v.length)&&!(E!=null&&E.length))return{required:i.length?w:void 0};const C=(v==null?void 0:v.length)&&(E==null?void 0:E.length)||!r,T={chains:[...new Set(C?w.chains.concat(r||[]):r)],methods:[...new Set(w.methods.concat(a!=null&&a.length?a:yE))],events:[...new Set(w.events.concat(d!=null&&d.length?d:mE))],rpcMap:y};return{required:i.length?w:void 0,optional:r.length?T:void 0}}class Sc{constructor(){this.events=new Kr.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY=gE,this.on=(i,r)=>(this.events.on(i,r),this),this.once=(i,r)=>(this.events.once(i,r),this),this.removeListener=(i,r)=>(this.events.removeListener(i,r),this),this.off=(i,r)=>(this.events.off(i,r),this),this.parseAccount=i=>this.isCompatibleChainId(i)?this.parseAccountId(i).address:i,this.signer={},this.rpc={}}static async init(i){const r=new Sc;return await r.initialize(i),r}async request(i){return await this.signer.request(i,this.formatChainId(this.chainId))}sendAsync(i,r){this.signer.sendAsync(i,r,this.formatChainId(this.chainId))}get connected(){return this.signer.client?this.signer.client.core.relayer.connected:!1}get connecting(){return this.signer.client?this.signer.client.core.relayer.connecting:!1}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(i){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(i);const{required:r,optional:n}=xE(this.rpc);try{const a=await new Promise(async(d,y)=>{var w;this.rpc.showQrModal&&((w=this.modal)==null||w.subscribeModal(v=>{!v.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),y(new Error("Connection request reset. Please try again.")))})),await this.signer.connect(Sl(ks({namespaces:ks({},r&&{[this.namespace]:r})},n&&{optionalNamespaces:{[this.namespace]:n}}),{pairingTopic:i==null?void 0:i.pairingTopic})).then(v=>{d(v)}).catch(v=>{y(new Error(v.message))})});if(!a)return;const l=Tm(a.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:l),this.setAccounts(l),this.events.emit("connect",{chainId:ac(this.chainId)})}catch(a){throw this.signer.logger.error(a),a}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",i=>{const{params:r}=i,{event:n}=r;n.name==="accountsChanged"?(this.accounts=this.parseAccounts(n.data),this.events.emit("accountsChanged",this.accounts)):n.name==="chainChanged"?this.setChainId(this.formatChainId(n.data)):this.events.emit(n.name,n.data),this.events.emit("session_event",i)}),this.signer.on("chainChanged",i=>{const r=parseInt(i);this.chainId=r,this.events.emit("chainChanged",ac(this.chainId)),this.persist()}),this.signer.on("session_update",i=>{this.events.emit("session_update",i)}),this.signer.on("session_delete",i=>{this.reset(),this.events.emit("session_delete",i),this.events.emit("disconnect",Sl(ks({},tr("USER_DISCONNECTED")),{data:i.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",i=>{var r,n;this.rpc.showQrModal&&((r=this.modal)==null||r.closeModal(),(n=this.modal)==null||n.openModal({uri:i})),this.events.emit("display_uri",i)})}switchEthereumChain(i){this.request({method:"wallet_switchEthereumChain",params:[{chainId:i.toString(16)}]})}isCompatibleChainId(i){return typeof i=="string"?i.startsWith(`${this.namespace}:`):!1}formatChainId(i){return`${this.namespace}:${i}`}parseChainId(i){return Number(i.split(":")[1])}setChainIds(i){const r=i.filter(n=>this.isCompatibleChainId(n)).map(n=>this.parseChainId(n));r.length&&(this.chainId=r[0],this.events.emit("chainChanged",ac(this.chainId)),this.persist())}setChainId(i){if(this.isCompatibleChainId(i)){const r=this.parseChainId(i);this.chainId=r,this.switchEthereumChain(r)}}parseAccountId(i){const[r,n,a]=i.split(":");return{chainId:`${r}:${n}`,address:a}}setAccounts(i){this.accounts=i.filter(r=>this.parseChainId(this.parseAccountId(r).chainId)===this.chainId).map(r=>this.parseAccountId(r).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(i){var r,n;const a=(r=i==null?void 0:i.chains)!=null?r:[],l=(n=i==null?void 0:i.optionalChains)!=null?n:[],d=a.concat(l);if(!d.length)throw new Error("No chains specified in either `chains` or `optionalChains`");const y=a.length?(i==null?void 0:i.methods)||pc:[],w=a.length?(i==null?void 0:i.events)||dc:[],v=(i==null?void 0:i.optionalMethods)||[],E=(i==null?void 0:i.optionalEvents)||[],C=(i==null?void 0:i.rpcMap)||this.buildRpcMap(d,i.projectId),T=(i==null?void 0:i.qrModalOptions)||void 0;return{chains:a==null?void 0:a.map(j=>this.formatChainId(j)),optionalChains:l.map(j=>this.formatChainId(j)),methods:y,events:w,optionalMethods:v,optionalEvents:E,rpcMap:C,showQrModal:!!(i!=null&&i.showQrModal),qrModalOptions:T,projectId:i.projectId,metadata:i.metadata}}buildRpcMap(i,r){const n={};return i.forEach(a=>{n[a]=this.getRpcUrl(a,r)}),n}async initialize(i){if(this.rpc=this.getRpcConfig(i),this.chainId=this.rpc.chains.length?da(this.rpc.chains):da(this.rpc.optionalChains),this.signer=await fE.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:i.disableProviderPing,relayUrl:i.relayUrl,storageOptions:i.storageOptions}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let r;try{const{WalletConnectModal:n}=await Am(()=>import("./index-GY_DE3Uf.js").then(a=>a.i),__vite__mapDeps([0,1,2]));r=n}catch{throw new Error("To use QR modal, please install @walletconnect/modal package")}if(r)try{this.modal=new r(ks({walletConnectVersion:2,projectId:this.rpc.projectId,standaloneChains:this.rpc.chains},this.rpc.qrModalOptions))}catch(n){throw this.signer.logger.error(n),new Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(i){if(!i)return;const{chains:r,optionalChains:n,rpcMap:a}=i;r&&fs(r)&&(this.rpc.chains=r.map(l=>this.formatChainId(l)),r.forEach(l=>{this.rpc.rpcMap[l]=(a==null?void 0:a[l])||this.getRpcUrl(l)})),n&&fs(n)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=n==null?void 0:n.map(l=>this.formatChainId(l)),n.forEach(l=>{this.rpc.rpcMap[l]=(a==null?void 0:a[l])||this.getRpcUrl(l)}))}getRpcUrl(i,r){var n;return((n=this.rpc.rpcMap)==null?void 0:n[i])||`${vE}?chainId=eip155:${i}&projectId=${r||this.rpc.projectId}`}async loadPersistedSession(){if(!this.session)return;const i=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),r=this.session.namespaces[`${this.namespace}:${i}`]?this.session.namespaces[`${this.namespace}:${i}`]:this.session.namespaces[this.namespace];this.setChainIds(i?[this.formatChainId(i)]:r==null?void 0:r.accounts),this.setAccounts(r==null?void 0:r.accounts)}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(i){return typeof i=="string"||i instanceof String?[this.parseAccount(i)]:i.map(r=>this.parseAccount(r))}}const zE=Sc;export{zE as EthereumProvider,mE as OPTIONAL_EVENTS,yE as OPTIONAL_METHODS,dc as REQUIRED_EVENTS,pc as REQUIRED_METHODS,Sc as default}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/index-Su3Bmzid.js","assets/index-XxsA1De3.js","assets/index-bI5pgBhQ.css"] + __vite__mapDeps.viteFileDeps = ["assets/index-GY_DE3Uf.js","assets/index-Mh1_DVck.js","assets/index-bI5pgBhQ.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } \ No newline at end of file diff --git a/index.html b/index.html index 4ab0d7c..6616ab3 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Narpet - +