diff --git a/Cargo.lock b/Cargo.lock index 2de2f0796..f2ed34e20 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1719,7 +1719,7 @@ dependencies = [ "futures-core", "libc", "mio", - "parking_lot 0.12.3", + "parking_lot", "signal-hook", "signal-hook-mio", "winapi", @@ -1843,7 +1843,7 @@ dependencies = [ "hashbrown 0.14.5", "lock_api", "once_cell", - "parking_lot_core 0.9.10", + "parking_lot_core", ] [[package]] @@ -3013,15 +3013,6 @@ dependencies = [ "wit-bindgen", ] -[[package]] -name = "instant" -version = "0.1.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" -dependencies = [ - "cfg-if", -] - [[package]] name = "io-extras" version = "0.18.2" @@ -3212,7 +3203,7 @@ dependencies = [ [[package]] name = "kinode" -version = "0.8.4" +version = "0.8.5" dependencies = [ "aes-gcm", "alloy", @@ -3233,7 +3224,7 @@ dependencies = [ "hmac", "http 1.1.0", "jwt", - "kit 0.6.7", + "kit", "lazy_static", "lib", "nohash-hasher", @@ -3268,7 +3259,7 @@ dependencies = [ [[package]] name = "kinode_lib" -version = "0.8.4" +version = "0.8.5" dependencies = [ "lib", ] @@ -3319,45 +3310,8 @@ dependencies = [ [[package]] name = "kit" -version = "0.6.2" -source = "git+https://github.com/kinode-dao/kit?tag=v0.6.2#59ca74d4952998753bf5e64404d09f31a4424830" -dependencies = [ - "anyhow", - "base64 0.21.7", - "clap", - "color-eyre", - "dirs 5.0.1", - "fs-err", - "futures-util", - "git2", - "hex", - "kinode_process_lib 0.8.0 (git+https://github.com/kinode-dao/process_lib.git?rev=7eb3a04)", - "nix", - "regex", - "reqwest 0.11.27", - "rmp-serde", - "semver 1.0.23", - "serde", - "serde_json", - "sha2", - "ssh2", - "thiserror", - "tokio", - "tokio-tungstenite 0.23.1", - "toml", - "tracing", - "tracing-appender", - "tracing-error", - "tracing-subscriber", - "walkdir", - "wit-bindgen", - "zip 0.6.6", -] - -[[package]] -name = "kit" -version = "0.6.7" -source = "git+https://github.com/kinode-dao/kit?rev=4a8999f#4a8999f90b69381e94d11fb5aa1b62215a9db95b" +version = "0.6.8" +source = "git+https://github.com/kinode-dao/kit?tag=v0.6.8#7b636305bed2aae6fe36f5ced44181ec7cbdb7a3" dependencies = [ "anyhow", "base64 0.21.7", @@ -3422,10 +3376,10 @@ checksum = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67" [[package]] name = "lib" -version = "0.8.4" +version = "0.8.5" dependencies = [ "alloy", - "kit 0.6.2", + "kit", "lazy_static", "rand 0.8.5", "ring", @@ -4009,17 +3963,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "parking_lot" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99" -dependencies = [ - "instant", - "lock_api", - "parking_lot_core 0.8.6", -] - [[package]] name = "parking_lot" version = "0.12.3" @@ -4027,21 +3970,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" dependencies = [ "lock_api", - "parking_lot_core 0.9.10", -] - -[[package]] -name = "parking_lot_core" -version = "0.8.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60a2cfe6f0ad2bfc16aefa463b497d5c7a5ecd44a23efa72aa342d90177356dc" -dependencies = [ - "cfg-if", - "instant", - "libc", - "redox_syscall 0.2.16", - "smallvec", - "winapi", + "parking_lot_core", ] [[package]] @@ -4052,7 +3981,7 @@ checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" dependencies = [ "cfg-if", "libc", - "redox_syscall 0.5.2", + "redox_syscall", "smallvec", "windows-targets 0.52.5", ] @@ -4569,15 +4498,6 @@ dependencies = [ "rand_core 0.3.1", ] -[[package]] -name = "redox_syscall" -version = "0.2.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" -dependencies = [ - "bitflags 1.3.2", -] - [[package]] name = "redox_syscall" version = "0.5.2" @@ -5344,18 +5264,6 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3b9b39299b249ad65f3b7e96443bad61c02ca5cd3589f46cb6d610a0fd6c0d6a" -[[package]] -name = "ssh2" -version = "0.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7fe461910559f6d5604c3731d00d2aafc4a83d1665922e280f42f9a168d5455" -dependencies = [ - "bitflags 1.3.2", - "libc", - "libssh2-sys", - "parking_lot 0.11.2", -] - [[package]] name = "stable_deref_trait" version = "1.2.0" diff --git a/Cargo.toml b/Cargo.toml index 3e6c45fa0..8b1a7f811 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "kinode_lib" authors = ["KinodeDAO"] -version = "0.8.4" +version = "0.8.5" edition = "2021" description = "A general-purpose sovereign cloud computing platform" homepage = "https://kinode.org" diff --git a/kinode/Cargo.toml b/kinode/Cargo.toml index 9db52e9e2..054f596ff 100644 --- a/kinode/Cargo.toml +++ b/kinode/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "kinode" authors = ["KinodeDAO"] -version = "0.8.4" +version = "0.8.5" edition = "2021" description = "A general-purpose sovereign cloud computing platform" homepage = "https://kinode.org" @@ -14,7 +14,7 @@ path = "src/main.rs" [build-dependencies] anyhow = "1.0.71" -kit = { git = "https://github.com/kinode-dao/kit", rev = "4a8999f" } +kit = { git = "https://github.com/kinode-dao/kit", tag = "v0.6.8" } tokio = "1.28" walkdir = "2.4" zip = "0.6" diff --git a/kinode/src/register-ui/build/assets/index-BVotGXf3.js b/kinode/src/register-ui/build/assets/index-DS7Uobkv.js similarity index 92% rename from kinode/src/register-ui/build/assets/index-BVotGXf3.js rename to kinode/src/register-ui/build/assets/index-DS7Uobkv.js index 95fe377d1..7a061d350 100644 --- a/kinode/src/register-ui/build/assets/index-BVotGXf3.js +++ b/kinode/src/register-ui/build/assets/index-DS7Uobkv.js @@ -1,4 +1,4 @@ -var hm=Object.defineProperty;var pm=(t,e,r)=>e in t?hm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ct=(t,e,r)=>(pm(t,typeof e!="symbol"?e+"":e,r),r);function bm(t,e){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const u of i)if(u.type==="childList")for(const a of u.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const u={};return i.integrity&&(u.integrity=i.integrity),i.referrerPolicy&&(u.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?u.credentials="include":i.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function n(i){if(i.ep)return;i.ep=!0;const u=r(i);fetch(i.href,u)}})();var y1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function z1(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var kc={exports:{}},f8={},Sc={exports:{}},v1={};/** +var hm=Object.defineProperty;var pm=(t,e,r)=>e in t?hm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ct=(t,e,r)=>(pm(t,typeof e!="symbol"?e+"":e,r),r);function bm(t,e){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const u of i)if(u.type==="childList")for(const a of u.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const u={};return i.integrity&&(u.integrity=i.integrity),i.referrerPolicy&&(u.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?u.credentials="include":i.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function n(i){if(i.ep)return;i.ep=!0;const u=r(i);fetch(i.href,u)}})();var y1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function z1(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var kc={exports:{}},l8={},Sc={exports:{}},v1={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var hm=Object.defineProperty;var pm=(t,e,r)=>e in t?hm(t,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 qu=Symbol.for("react.element"),mm=Symbol.for("react.portal"),ym=Symbol.for("react.fragment"),gm=Symbol.for("react.strict_mode"),xm=Symbol.for("react.profiler"),vm=Symbol.for("react.provider"),Am=Symbol.for("react.context"),wm=Symbol.for("react.forward_ref"),Em=Symbol.for("react.suspense"),Cm=Symbol.for("react.memo"),Fm=Symbol.for("react.lazy"),A3=Symbol.iterator;function Bm(t){return t===null||typeof t!="object"?null:(t=A3&&t[A3]||t["@@iterator"],typeof t=="function"?t:null)}var Tc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Pc=Object.assign,Nc={};function X6(t,e,r){this.props=t,this.context=e,this.refs=Nc,this.updater=r||Tc}X6.prototype.isReactComponent={};X6.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};X6.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Mc(){}Mc.prototype=X6.prototype;function xs(t,e,r){this.props=t,this.context=e,this.refs=Nc,this.updater=r||Tc}var vs=xs.prototype=new Mc;vs.constructor=xs;Pc(vs,X6.prototype);vs.isPureReactComponent=!0;var w3=Array.isArray,Uc=Object.prototype.hasOwnProperty,As={current:null},Ic={key:!0,ref:!0,__self:!0,__source:!0};function Rc(t,e,r){var n,i={},u=null,a=null;if(e!=null)for(n in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(u=""+e.key),e)Uc.call(e,n)&&!Ic.hasOwnProperty(n)&&(i[n]=e[n]);var o=arguments.length-2;if(o===1)i.children=r;else if(1e in t?hm(t,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 Pm=f0,Nm=Symbol.for("react.element"),Mm=Symbol.for("react.fragment"),Um=Object.prototype.hasOwnProperty,Im=Pm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Rm={key:!0,ref:!0,__self:!0,__source:!0};function Oc(t,e,r){var n,i={},u=null,a=null;r!==void 0&&(u=""+r),e.key!==void 0&&(u=""+e.key),e.ref!==void 0&&(a=e.ref);for(n in e)Um.call(e,n)&&!Rm.hasOwnProperty(n)&&(i[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)i[n]===void 0&&(i[n]=e[n]);return{$$typeof:Nm,type:t,key:u,ref:a,props:i,_owner:Im.current}}f8.Fragment=Mm;f8.jsx=Oc;f8.jsxs=Oc;kc.exports=f8;var X=kc.exports,Xa={},Lc={exports:{}},vt={},jc={exports:{}},zc={};/** + */var Pm=l0,Nm=Symbol.for("react.element"),Mm=Symbol.for("react.fragment"),Um=Object.prototype.hasOwnProperty,Im=Pm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Rm={key:!0,ref:!0,__self:!0,__source:!0};function Oc(t,e,r){var n,i={},u=null,a=null;r!==void 0&&(u=""+r),e.key!==void 0&&(u=""+e.key),e.ref!==void 0&&(a=e.ref);for(n in e)Um.call(e,n)&&!Rm.hasOwnProperty(n)&&(i[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)i[n]===void 0&&(i[n]=e[n]);return{$$typeof:Nm,type:t,key:u,ref:a,props:i,_owner:Im.current}}l8.Fragment=Mm;l8.jsx=Oc;l8.jsxs=Oc;kc.exports=l8;var X=kc.exports,Xa={},Lc={exports:{}},vt={},jc={exports:{}},zc={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var hm=Object.defineProperty;var pm=(t,e,r)=>e in t?hm(t,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(t){function e(I,z){var V=I.length;I.push(z);e:for(;0>>1,f=I[b];if(0>>1;bi(l,V))Si(O,l)?(I[b]=O,I[S]=V,b=S):(I[b]=l,I[D]=V,b=D);else if(Si(O,V))I[b]=O,I[S]=V,b=S;else break e}}return z}function i(I,z){var V=I.sortIndex-z.sortIndex;return V!==0?V:I.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var a=Date,o=a.now();t.unstable_now=function(){return a.now()-o}}var s=[],c=[],d=1,y=null,A=3,C=!1,T=!1,U=!1,P=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(I){for(var z=r(c);z!==null;){if(z.callback===null)n(c);else if(z.startTime<=I)n(c),z.sortIndex=z.expirationTime,e(s,z);else break;z=r(c)}}function W(I){if(U=!1,N(I),!T)if(r(s)!==null)T=!0,M(G);else{var z=r(c);z!==null&&k(W,z.startTime-I)}}function G(I,z){T=!1,U&&(U=!1,_(e0),e0=-1),C=!0;var V=A;try{for(N(z),y=r(s);y!==null&&(!(y.expirationTime>z)||I&&!c0());){var b=y.callback;if(typeof b=="function"){y.callback=null,A=y.priorityLevel;var f=b(y.expirationTime<=z);z=t.unstable_now(),typeof f=="function"?y.callback=f:y===r(s)&&n(s),N(z)}else n(s);y=r(s)}if(y!==null)var m=!0;else{var D=r(c);D!==null&&k(W,D.startTime-z),m=!1}return m}finally{y=null,A=V,C=!1}}var t0=!1,Z=null,e0=-1,o0=5,d0=-1;function c0(){return!(t.unstable_now()-d0I||125b?(I.sortIndex=V,e(c,I),r(s)===null&&I===r(c)&&(U?(_(e0),e0=-1):U=!0,k(W,V-b))):(I.sortIndex=f,e(s,I),T||C||(T=!0,M(G))),I},t.unstable_shouldYield=c0,t.unstable_wrapCallback=function(I){var z=A;return function(){var V=A;A=z;try{return I.apply(this,arguments)}finally{A=V}}}})(zc);jc.exports=zc;var Om=jc.exports;/** + */(function(t){function e(I,z){var V=I.length;I.push(z);e:for(;0>>1,l=I[b];if(0>>1;bi(f,V))Si(O,f)?(I[b]=O,I[S]=V,b=S):(I[b]=f,I[D]=V,b=D);else if(Si(O,V))I[b]=O,I[S]=V,b=S;else break e}}return z}function i(I,z){var V=I.sortIndex-z.sortIndex;return V!==0?V:I.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var a=Date,o=a.now();t.unstable_now=function(){return a.now()-o}}var s=[],c=[],d=1,y=null,A=3,C=!1,T=!1,U=!1,P=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(I){for(var z=r(c);z!==null;){if(z.callback===null)n(c);else if(z.startTime<=I)n(c),z.sortIndex=z.expirationTime,e(s,z);else break;z=r(c)}}function W(I){if(U=!1,N(I),!T)if(r(s)!==null)T=!0,M(G);else{var z=r(c);z!==null&&k(W,z.startTime-I)}}function G(I,z){T=!1,U&&(U=!1,_(e0),e0=-1),C=!0;var V=A;try{for(N(z),y=r(s);y!==null&&(!(y.expirationTime>z)||I&&!c0());){var b=y.callback;if(typeof b=="function"){y.callback=null,A=y.priorityLevel;var l=b(y.expirationTime<=z);z=t.unstable_now(),typeof l=="function"?y.callback=l:y===r(s)&&n(s),N(z)}else n(s);y=r(s)}if(y!==null)var m=!0;else{var D=r(c);D!==null&&k(W,D.startTime-z),m=!1}return m}finally{y=null,A=V,C=!1}}var t0=!1,Z=null,e0=-1,o0=5,d0=-1;function c0(){return!(t.unstable_now()-d0I||125b?(I.sortIndex=V,e(c,I),r(s)===null&&I===r(c)&&(U?(_(e0),e0=-1):U=!0,k(W,V-b))):(I.sortIndex=l,e(s,I),T||C||(T=!0,M(G))),I},t.unstable_shouldYield=c0,t.unstable_wrapCallback=function(I){var z=A;return function(){var V=A;A=z;try{return I.apply(this,arguments)}finally{A=V}}}})(zc);jc.exports=zc;var Om=jc.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var hm=Object.defineProperty;var pm=(t,e,r)=>e in t?hm(t,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 $c=f0,yt=Om;function T0(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Za=Object.prototype.hasOwnProperty,Lm=/^[: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]*$/,C3={},F3={};function jm(t){return Za.call(F3,t)?!0:Za.call(C3,t)?!1:Lm.test(t)?F3[t]=!0:(C3[t]=!0,!1)}function zm(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function $m(t,e,r,n){if(e===null||typeof e>"u"||zm(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 Xe(t,e,r,n,i,u,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=u,this.removeEmptyString=a}var ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){ke[t]=new Xe(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];ke[e]=new Xe(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){ke[t]=new Xe(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ke[t]=new Xe(t,2,!1,t,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(t){ke[t]=new Xe(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){ke[t]=new Xe(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){ke[t]=new Xe(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){ke[t]=new Xe(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){ke[t]=new Xe(t,5,!1,t.toLowerCase(),null,!1,!1)});var Es=/[\-:]([a-z])/g;function Cs(t){return t[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(t){var e=t.replace(Es,Cs);ke[e]=new Xe(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Es,Cs);ke[e]=new Xe(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Es,Cs);ke[e]=new Xe(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){ke[t]=new Xe(t,1,!1,t.toLowerCase(),null,!1,!1)});ke.xlinkHref=new Xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){ke[t]=new Xe(t,1,!1,t.toLowerCase(),null,!0,!0)});function Fs(t,e,r,n){var i=ke.hasOwnProperty(e)?ke[e]:null;(i!==null?i.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Za=Object.prototype.hasOwnProperty,Lm=/^[: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]*$/,C3={},F3={};function jm(t){return Za.call(F3,t)?!0:Za.call(C3,t)?!1:Lm.test(t)?F3[t]=!0:(C3[t]=!0,!1)}function zm(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function $m(t,e,r,n){if(e===null||typeof e>"u"||zm(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 Xe(t,e,r,n,i,u,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=u,this.removeEmptyString=a}var ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){ke[t]=new Xe(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];ke[e]=new Xe(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){ke[t]=new Xe(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ke[t]=new Xe(t,2,!1,t,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(t){ke[t]=new Xe(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){ke[t]=new Xe(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){ke[t]=new Xe(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){ke[t]=new Xe(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){ke[t]=new Xe(t,5,!1,t.toLowerCase(),null,!1,!1)});var Es=/[\-:]([a-z])/g;function Cs(t){return t[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(t){var e=t.replace(Es,Cs);ke[e]=new Xe(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Es,Cs);ke[e]=new Xe(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Es,Cs);ke[e]=new Xe(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){ke[t]=new Xe(t,1,!1,t.toLowerCase(),null,!1,!1)});ke.xlinkHref=new Xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){ke[t]=new Xe(t,1,!1,t.toLowerCase(),null,!0,!0)});function Fs(t,e,r,n){var i=ke.hasOwnProperty(e)?ke[e]:null;(i!==null?i.type!==0:n||!(2o||i[a]!==u[o]){var s=` -`+i[a].replace(" at new "," at ");return t.displayName&&s.includes("")&&(s=s.replace("",t.displayName)),s}while(1<=a&&0<=o);break}}}finally{Y8=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Pi(t):""}function qm(t){switch(t.tag){case 5:return Pi(t.type);case 16:return Pi("Lazy");case 13:return Pi("Suspense");case 19:return Pi("SuspenseList");case 0:case 2:case 15:return t=X8(t.type,!1),t;case 11:return t=X8(t.type.render,!1),t;case 1:return t=X8(t.type,!0),t;default:return""}}function no(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case s6:return"Fragment";case o6:return"Portal";case eo:return"Profiler";case Bs:return"StrictMode";case to:return"Suspense";case ro:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Kc:return(t.displayName||"Context")+".Consumer";case Hc:return(t._context.displayName||"Context")+".Provider";case Ds:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case _s:return e=t.displayName||null,e!==null?e:no(t.type)||"Memo";case p2:e=t._payload,t=t._init;try{return no(t(e))}catch{}}return null}function Hm(t){var e=t.type;switch(t.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 t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return no(e);case 8:return e===Bs?"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 L2(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Wc(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Km(t){var e=Wc(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,u=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,u.call(this,a)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function f5(t){t._valueTracker||(t._valueTracker=Km(t))}function Vc(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=Wc(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function y9(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function io(t,e){var r=e.checked;return X1({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function D3(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=L2(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Jc(t,e){e=e.checked,e!=null&&Fs(t,"checked",e,!1)}function uo(t,e){Jc(t,e);var r=L2(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?ao(t,e.type,r):e.hasOwnProperty("defaultValue")&&ao(t,e.type,L2(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function _3(t,e,r){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=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function ao(t,e,r){(e!=="number"||y9(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var Ni=Array.isArray;function C6(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=c5.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function fu(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var Li={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},Gm=["Webkit","ms","Moz","O"];Object.keys(Li).forEach(function(t){Gm.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Li[e]=Li[t]})});function Zc(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||Li.hasOwnProperty(t)&&Li[t]?(""+e).trim():e+"px"}function e7(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Zc(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}var Wm=X1({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 lo(t,e){if(e){if(Wm[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(T0(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(T0(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(T0(61))}if(e.style!=null&&typeof e.style!="object")throw Error(T0(62))}}function fo(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 co=null;function ks(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ho=null,F6=null,B6=null;function T3(t){if(t=Gu(t)){if(typeof ho!="function")throw Error(T0(280));var e=t.stateNode;e&&(e=b8(e),ho(t.stateNode,t.type,e))}}function t7(t){F6?B6?B6.push(t):B6=[t]:F6=t}function r7(){if(F6){var t=F6,e=B6;if(B6=F6=null,T3(t),e)for(t=0;t>>=0,t===0?32:31-(iy(t)/uy|0)|0}var d5=64,h5=4194304;function Mi(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function A9(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,i=t.suspendedLanes,u=t.pingedLanes,a=r&268435455;if(a!==0){var o=a&~i;o!==0?n=Mi(o):(u&=a,u!==0&&(n=Mi(u)))}else a=r&~i,a!==0?n=Mi(a):u!==0&&(n=Mi(u));if(n===0)return 0;if(e!==0&&e!==n&&!(e&i)&&(i=n&-n,u=e&-e,i>=u||i===16&&(u&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0r;r++)e.push(t);return e}function Hu(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Yt(e),t[e]=r}function ly(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0=zi),j3=" ",z3=!1;function w7(t,e){switch(t){case"keyup":return Ry.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E7(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var l6=!1;function Ly(t,e){switch(t){case"compositionend":return E7(e);case"keypress":return e.which!==32?null:(z3=!0,j3);case"textInput":return t=e.data,t===j3&&z3?null:t;default:return null}}function jy(t,e){if(l6)return t==="compositionend"||!Rs&&w7(t,e)?(t=v7(),Z5=Ms=A2=null,l6=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=K3(r)}}function D7(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?D7(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function _7(){for(var t=window,e=y9();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=y9(t.document)}return e}function Os(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Jy(t){var e=_7(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&D7(r.ownerDocument.documentElement,r)){if(n!==null&&Os(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=r.textContent.length,u=Math.min(n.start,i);n=n.end===void 0?u:Math.min(n.end,i),!t.extend&&u>n&&(i=n,n=u,u=i),i=G3(r,u);var a=G3(r,n);i&&a&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),u>n?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,f6=null,xo=null,qi=null,vo=!1;function W3(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;vo||f6==null||f6!==y9(n)||(n=f6,"selectionStart"in n&&Os(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}),qi&&mu(qi,n)||(qi=n,n=C9(xo,"onSelect"),0h6||(t.current=Bo[h6],Bo[h6]=null,h6--)}function $1(t,e){h6++,Bo[h6]=t.current,t.current=e}var j2={},Le=G2(j2),ot=G2(!1),Fn=j2;function R6(t,e){var r=t.type.contextTypes;if(!r)return j2;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var i={},u;for(u in r)i[u]=e[u];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function st(t){return t=t.childContextTypes,t!=null}function B9(){G1(ot),G1(Le)}function el(t,e,r){if(Le.current!==j2)throw Error(T0(168));$1(Le,e),$1(ot,r)}function R7(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(T0(108,Hm(t)||"Unknown",i));return X1({},r,n)}function D9(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||j2,Fn=Le.current,$1(Le,t),$1(ot,ot.current),!0}function tl(t,e,r){var n=t.stateNode;if(!n)throw Error(T0(169));r?(t=R7(t,e,Fn),n.__reactInternalMemoizedMergedChildContext=t,G1(ot),G1(Le),$1(Le,t)):G1(ot),$1(ot,r)}var jr=null,m8=!1,da=!1;function O7(t){jr===null?jr=[t]:jr.push(t)}function og(t){m8=!0,O7(t)}function W2(){if(!da&&jr!==null){da=!0;var t=0,e=U1;try{var r=jr;for(U1=1;t>=a,i-=a,Hr=1<<32-Yt(e)+i|r<e0?(o0=Z,Z=null):o0=Z.sibling;var d0=A(_,Z,N[e0],W);if(d0===null){Z===null&&(Z=o0);break}t&&Z&&d0.alternate===null&&e(_,Z),B=u(d0,B,e0),t0===null?G=d0:t0.sibling=d0,t0=d0,Z=o0}if(e0===N.length)return r(_,Z),W1&&sn(_,e0),G;if(Z===null){for(;e0e0?(o0=Z,Z=null):o0=Z.sibling;var c0=A(_,Z,d0.value,W);if(c0===null){Z===null&&(Z=o0);break}t&&Z&&c0.alternate===null&&e(_,Z),B=u(c0,B,e0),t0===null?G=c0:t0.sibling=c0,t0=c0,Z=o0}if(d0.done)return r(_,Z),W1&&sn(_,e0),G;if(Z===null){for(;!d0.done;e0++,d0=N.next())d0=y(_,d0.value,W),d0!==null&&(B=u(d0,B,e0),t0===null?G=d0:t0.sibling=d0,t0=d0);return W1&&sn(_,e0),G}for(Z=n(_,Z);!d0.done;e0++,d0=N.next())d0=C(Z,_,e0,d0.value,W),d0!==null&&(t&&d0.alternate!==null&&Z.delete(d0.key===null?e0:d0.key),B=u(d0,B,e0),t0===null?G=d0:t0.sibling=d0,t0=d0);return t&&Z.forEach(function(h0){return e(_,h0)}),W1&&sn(_,e0),G}function P(_,B,N,W){if(typeof N=="object"&&N!==null&&N.type===s6&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case l5:e:{for(var G=N.key,t0=B;t0!==null;){if(t0.key===G){if(G=N.type,G===s6){if(t0.tag===7){r(_,t0.sibling),B=i(t0,N.props.children),B.return=_,_=B;break e}}else if(t0.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===p2&&sl(G)===t0.type){r(_,t0.sibling),B=i(t0,N.props),B.ref=wi(_,t0,N),B.return=_,_=B;break e}r(_,t0);break}else e(_,t0);t0=t0.sibling}N.type===s6?(B=xn(N.props.children,_.mode,W,N.key),B.return=_,_=B):(W=o9(N.type,N.key,N.props,null,_.mode,W),W.ref=wi(_,B,N),W.return=_,_=W)}return a(_);case o6:e:{for(t0=N.key;B!==null;){if(B.key===t0)if(B.tag===4&&B.stateNode.containerInfo===N.containerInfo&&B.stateNode.implementation===N.implementation){r(_,B.sibling),B=i(B,N.children||[]),B.return=_,_=B;break e}else{r(_,B);break}else e(_,B);B=B.sibling}B=va(N,_.mode,W),B.return=_,_=B}return a(_);case p2:return t0=N._init,P(_,B,t0(N._payload),W)}if(Ni(N))return T(_,B,N,W);if(yi(N))return U(_,B,N,W);v5(_,N)}return typeof N=="string"&&N!==""||typeof N=="number"?(N=""+N,B!==null&&B.tag===6?(r(_,B.sibling),B=i(B,N),B.return=_,_=B):(r(_,B),B=xa(N,_.mode,W),B.return=_,_=B),a(_)):r(_,B)}return P}var L6=G7(!0),W7=G7(!1),Wu={},wr=G2(Wu),vu=G2(Wu),Au=G2(Wu);function bn(t){if(t===Wu)throw Error(T0(174));return t}function Ws(t,e){switch($1(Au,e),$1(vu,t),$1(wr,Wu),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:so(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=so(e,t)}G1(wr),$1(wr,e)}function j6(){G1(wr),G1(vu),G1(Au)}function V7(t){bn(Au.current);var e=bn(wr.current),r=so(e,t.type);e!==r&&($1(vu,t),$1(wr,r))}function Vs(t){vu.current===t&&(G1(wr),G1(vu))}var Q1=G2(0);function N9(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.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===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ha=[];function Js(){for(var t=0;tr?r:4,t(!0);var n=pa.transition;pa.transition={};try{t(!1),e()}finally{U1=r,pa.transition=n}}function fd(){return Mt().memoizedState}function cg(t,e,r){var n=N2(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},cd(t))dd(e,r);else if(r=$7(t,e,r,n),r!==null){var i=Je();Xt(r,t,n,i),hd(r,e,n)}}function dg(t,e,r){var n=N2(t),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(cd(t))dd(e,i);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var a=e.lastRenderedState,o=u(a,r);if(i.hasEagerState=!0,i.eagerState=o,er(o,a)){var s=e.interleaved;s===null?(i.next=i,Ks(e)):(i.next=s.next,s.next=i),e.interleaved=i;return}}catch{}finally{}r=$7(t,e,i,n),r!==null&&(i=Je(),Xt(r,t,n,i),hd(r,e,n))}}function cd(t){var e=t.alternate;return t===Y1||e!==null&&e===Y1}function dd(t,e){Hi=M9=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function hd(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Ts(t,r)}}var U9={readContext:Nt,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useInsertionEffect:Pe,useLayoutEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useMutableSource:Pe,useSyncExternalStore:Pe,useId:Pe,unstable_isNewReconciler:!1},hg={readContext:Nt,useCallback:function(t,e){return lr().memoizedState=[t,e===void 0?null:e],t},useContext:Nt,useEffect:fl,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,n9(4194308,4,ud.bind(null,e,t),r)},useLayoutEffect:function(t,e){return n9(4194308,4,t,e)},useInsertionEffect:function(t,e){return n9(4,2,t,e)},useMemo:function(t,e){var r=lr();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=lr();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=cg.bind(null,Y1,t),[n.memoizedState,t]},useRef:function(t){var e=lr();return t={current:t},e.memoizedState=t},useState:ll,useDebugValue:e4,useDeferredValue:function(t){return lr().memoizedState=t},useTransition:function(){var t=ll(!1),e=t[0];return t=fg.bind(null,t[1]),lr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=Y1,i=lr();if(W1){if(r===void 0)throw Error(T0(407));r=r()}else{if(r=e(),ge===null)throw Error(T0(349));Dn&30||Y7(n,e,r)}i.memoizedState=r;var u={value:r,getSnapshot:e};return i.queue=u,fl(Z7.bind(null,n,u,t),[t]),n.flags|=2048,Cu(9,X7.bind(null,n,u,r,e),void 0,null),r},useId:function(){var t=lr(),e=ge.identifierPrefix;if(W1){var r=Kr,n=Hr;r=(n&~(1<<32-Yt(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=wu++,0")&&(s=s.replace("",t.displayName)),s}while(1<=a&&0<=o);break}}}finally{Y8=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Pi(t):""}function qm(t){switch(t.tag){case 5:return Pi(t.type);case 16:return Pi("Lazy");case 13:return Pi("Suspense");case 19:return Pi("SuspenseList");case 0:case 2:case 15:return t=X8(t.type,!1),t;case 11:return t=X8(t.type.render,!1),t;case 1:return t=X8(t.type,!0),t;default:return""}}function no(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case s6:return"Fragment";case o6:return"Portal";case eo:return"Profiler";case Bs:return"StrictMode";case to:return"Suspense";case ro:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Kc:return(t.displayName||"Context")+".Consumer";case Hc:return(t._context.displayName||"Context")+".Provider";case Ds:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case _s:return e=t.displayName||null,e!==null?e:no(t.type)||"Memo";case p2:e=t._payload,t=t._init;try{return no(t(e))}catch{}}return null}function Hm(t){var e=t.type;switch(t.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 t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return no(e);case 8:return e===Bs?"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 L2(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Wc(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Km(t){var e=Wc(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,u=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,u.call(this,a)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function l5(t){t._valueTracker||(t._valueTracker=Km(t))}function Vc(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=Wc(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function y9(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function io(t,e){var r=e.checked;return X1({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function D3(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=L2(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Jc(t,e){e=e.checked,e!=null&&Fs(t,"checked",e,!1)}function uo(t,e){Jc(t,e);var r=L2(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?ao(t,e.type,r):e.hasOwnProperty("defaultValue")&&ao(t,e.type,L2(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function _3(t,e,r){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=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function ao(t,e,r){(e!=="number"||y9(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var Ni=Array.isArray;function C6(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=c5.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function lu(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var Li={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},Gm=["Webkit","ms","Moz","O"];Object.keys(Li).forEach(function(t){Gm.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Li[e]=Li[t]})});function Zc(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||Li.hasOwnProperty(t)&&Li[t]?(""+e).trim():e+"px"}function e7(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Zc(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}var Wm=X1({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 fo(t,e){if(e){if(Wm[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(T0(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(T0(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(T0(61))}if(e.style!=null&&typeof e.style!="object")throw Error(T0(62))}}function lo(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 co=null;function ks(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ho=null,F6=null,B6=null;function T3(t){if(t=Gu(t)){if(typeof ho!="function")throw Error(T0(280));var e=t.stateNode;e&&(e=b8(e),ho(t.stateNode,t.type,e))}}function t7(t){F6?B6?B6.push(t):B6=[t]:F6=t}function r7(){if(F6){var t=F6,e=B6;if(B6=F6=null,T3(t),e)for(t=0;t>>=0,t===0?32:31-(iy(t)/uy|0)|0}var d5=64,h5=4194304;function Mi(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function A9(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,i=t.suspendedLanes,u=t.pingedLanes,a=r&268435455;if(a!==0){var o=a&~i;o!==0?n=Mi(o):(u&=a,u!==0&&(n=Mi(u)))}else a=r&~i,a!==0?n=Mi(a):u!==0&&(n=Mi(u));if(n===0)return 0;if(e!==0&&e!==n&&!(e&i)&&(i=n&-n,u=e&-e,i>=u||i===16&&(u&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0r;r++)e.push(t);return e}function Hu(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Yt(e),t[e]=r}function fy(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0=zi),j3=" ",z3=!1;function w7(t,e){switch(t){case"keyup":return Ry.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E7(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var f6=!1;function Ly(t,e){switch(t){case"compositionend":return E7(e);case"keypress":return e.which!==32?null:(z3=!0,j3);case"textInput":return t=e.data,t===j3&&z3?null:t;default:return null}}function jy(t,e){if(f6)return t==="compositionend"||!Rs&&w7(t,e)?(t=v7(),Z5=Ms=A2=null,f6=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=K3(r)}}function D7(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?D7(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function _7(){for(var t=window,e=y9();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=y9(t.document)}return e}function Os(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Jy(t){var e=_7(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&D7(r.ownerDocument.documentElement,r)){if(n!==null&&Os(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=r.textContent.length,u=Math.min(n.start,i);n=n.end===void 0?u:Math.min(n.end,i),!t.extend&&u>n&&(i=n,n=u,u=i),i=G3(r,u);var a=G3(r,n);i&&a&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),u>n?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,l6=null,xo=null,qi=null,vo=!1;function W3(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;vo||l6==null||l6!==y9(n)||(n=l6,"selectionStart"in n&&Os(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}),qi&&mu(qi,n)||(qi=n,n=C9(xo,"onSelect"),0h6||(t.current=Bo[h6],Bo[h6]=null,h6--)}function $1(t,e){h6++,Bo[h6]=t.current,t.current=e}var j2={},Le=G2(j2),ot=G2(!1),Fn=j2;function R6(t,e){var r=t.type.contextTypes;if(!r)return j2;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var i={},u;for(u in r)i[u]=e[u];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function st(t){return t=t.childContextTypes,t!=null}function B9(){G1(ot),G1(Le)}function ef(t,e,r){if(Le.current!==j2)throw Error(T0(168));$1(Le,e),$1(ot,r)}function R7(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(T0(108,Hm(t)||"Unknown",i));return X1({},r,n)}function D9(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||j2,Fn=Le.current,$1(Le,t),$1(ot,ot.current),!0}function tf(t,e,r){var n=t.stateNode;if(!n)throw Error(T0(169));r?(t=R7(t,e,Fn),n.__reactInternalMemoizedMergedChildContext=t,G1(ot),G1(Le),$1(Le,t)):G1(ot),$1(ot,r)}var jr=null,m8=!1,da=!1;function O7(t){jr===null?jr=[t]:jr.push(t)}function og(t){m8=!0,O7(t)}function W2(){if(!da&&jr!==null){da=!0;var t=0,e=U1;try{var r=jr;for(U1=1;t>=a,i-=a,Hr=1<<32-Yt(e)+i|r<e0?(o0=Z,Z=null):o0=Z.sibling;var d0=A(_,Z,N[e0],W);if(d0===null){Z===null&&(Z=o0);break}t&&Z&&d0.alternate===null&&e(_,Z),B=u(d0,B,e0),t0===null?G=d0:t0.sibling=d0,t0=d0,Z=o0}if(e0===N.length)return r(_,Z),W1&&sn(_,e0),G;if(Z===null){for(;e0e0?(o0=Z,Z=null):o0=Z.sibling;var c0=A(_,Z,d0.value,W);if(c0===null){Z===null&&(Z=o0);break}t&&Z&&c0.alternate===null&&e(_,Z),B=u(c0,B,e0),t0===null?G=c0:t0.sibling=c0,t0=c0,Z=o0}if(d0.done)return r(_,Z),W1&&sn(_,e0),G;if(Z===null){for(;!d0.done;e0++,d0=N.next())d0=y(_,d0.value,W),d0!==null&&(B=u(d0,B,e0),t0===null?G=d0:t0.sibling=d0,t0=d0);return W1&&sn(_,e0),G}for(Z=n(_,Z);!d0.done;e0++,d0=N.next())d0=C(Z,_,e0,d0.value,W),d0!==null&&(t&&d0.alternate!==null&&Z.delete(d0.key===null?e0:d0.key),B=u(d0,B,e0),t0===null?G=d0:t0.sibling=d0,t0=d0);return t&&Z.forEach(function(h0){return e(_,h0)}),W1&&sn(_,e0),G}function P(_,B,N,W){if(typeof N=="object"&&N!==null&&N.type===s6&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case f5:e:{for(var G=N.key,t0=B;t0!==null;){if(t0.key===G){if(G=N.type,G===s6){if(t0.tag===7){r(_,t0.sibling),B=i(t0,N.props.children),B.return=_,_=B;break e}}else if(t0.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===p2&&ff(G)===t0.type){r(_,t0.sibling),B=i(t0,N.props),B.ref=wi(_,t0,N),B.return=_,_=B;break e}r(_,t0);break}else e(_,t0);t0=t0.sibling}N.type===s6?(B=xn(N.props.children,_.mode,W,N.key),B.return=_,_=B):(W=o9(N.type,N.key,N.props,null,_.mode,W),W.ref=wi(_,B,N),W.return=_,_=W)}return a(_);case o6:e:{for(t0=N.key;B!==null;){if(B.key===t0)if(B.tag===4&&B.stateNode.containerInfo===N.containerInfo&&B.stateNode.implementation===N.implementation){r(_,B.sibling),B=i(B,N.children||[]),B.return=_,_=B;break e}else{r(_,B);break}else e(_,B);B=B.sibling}B=va(N,_.mode,W),B.return=_,_=B}return a(_);case p2:return t0=N._init,P(_,B,t0(N._payload),W)}if(Ni(N))return T(_,B,N,W);if(yi(N))return U(_,B,N,W);v5(_,N)}return typeof N=="string"&&N!==""||typeof N=="number"?(N=""+N,B!==null&&B.tag===6?(r(_,B.sibling),B=i(B,N),B.return=_,_=B):(r(_,B),B=xa(N,_.mode,W),B.return=_,_=B),a(_)):r(_,B)}return P}var L6=G7(!0),W7=G7(!1),Wu={},wr=G2(Wu),vu=G2(Wu),Au=G2(Wu);function bn(t){if(t===Wu)throw Error(T0(174));return t}function Ws(t,e){switch($1(Au,e),$1(vu,t),$1(wr,Wu),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:so(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=so(e,t)}G1(wr),$1(wr,e)}function j6(){G1(wr),G1(vu),G1(Au)}function V7(t){bn(Au.current);var e=bn(wr.current),r=so(e,t.type);e!==r&&($1(vu,t),$1(wr,r))}function Vs(t){vu.current===t&&(G1(wr),G1(vu))}var Q1=G2(0);function N9(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.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===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ha=[];function Js(){for(var t=0;tr?r:4,t(!0);var n=pa.transition;pa.transition={};try{t(!1),e()}finally{U1=r,pa.transition=n}}function ld(){return Mt().memoizedState}function cg(t,e,r){var n=N2(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},cd(t))dd(e,r);else if(r=$7(t,e,r,n),r!==null){var i=Je();Xt(r,t,n,i),hd(r,e,n)}}function dg(t,e,r){var n=N2(t),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(cd(t))dd(e,i);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var a=e.lastRenderedState,o=u(a,r);if(i.hasEagerState=!0,i.eagerState=o,er(o,a)){var s=e.interleaved;s===null?(i.next=i,Ks(e)):(i.next=s.next,s.next=i),e.interleaved=i;return}}catch{}finally{}r=$7(t,e,i,n),r!==null&&(i=Je(),Xt(r,t,n,i),hd(r,e,n))}}function cd(t){var e=t.alternate;return t===Y1||e!==null&&e===Y1}function dd(t,e){Hi=M9=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function hd(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Ts(t,r)}}var U9={readContext:Nt,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useInsertionEffect:Pe,useLayoutEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useMutableSource:Pe,useSyncExternalStore:Pe,useId:Pe,unstable_isNewReconciler:!1},hg={readContext:Nt,useCallback:function(t,e){return fr().memoizedState=[t,e===void 0?null:e],t},useContext:Nt,useEffect:cf,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,n9(4194308,4,ud.bind(null,e,t),r)},useLayoutEffect:function(t,e){return n9(4194308,4,t,e)},useInsertionEffect:function(t,e){return n9(4,2,t,e)},useMemo:function(t,e){var r=fr();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=fr();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=cg.bind(null,Y1,t),[n.memoizedState,t]},useRef:function(t){var e=fr();return t={current:t},e.memoizedState=t},useState:lf,useDebugValue:e4,useDeferredValue:function(t){return fr().memoizedState=t},useTransition:function(){var t=lf(!1),e=t[0];return t=lg.bind(null,t[1]),fr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=Y1,i=fr();if(W1){if(r===void 0)throw Error(T0(407));r=r()}else{if(r=e(),ge===null)throw Error(T0(349));Dn&30||Y7(n,e,r)}i.memoizedState=r;var u={value:r,getSnapshot:e};return i.queue=u,cf(Z7.bind(null,n,u,t),[t]),n.flags|=2048,Cu(9,X7.bind(null,n,u,r,e),void 0,null),r},useId:function(){var t=fr(),e=ge.identifierPrefix;if(W1){var r=Kr,n=Hr;r=(n&~(1<<32-Yt(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=wu++,0<\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=a.createElement(r,{is:n.is}):(t=a.createElement(r),r==="select"&&(a=t,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):t=a.createElementNS(t,r),t[dr]=e,t[xu]=n,wd(t,e,!1,!1),e.stateNode=t;e:{switch(a=fo(r,n),r){case"dialog":K1("cancel",t),K1("close",t),i=n;break;case"iframe":case"object":case"embed":K1("load",t),i=n;break;case"video":case"audio":for(i=0;i$6&&(e.flags|=128,n=!0,Ei(u,!1),e.lanes=4194304)}else{if(!n)if(t=N9(a),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Ei(u,!0),u.tail===null&&u.tailMode==="hidden"&&!a.alternate&&!W1)return Ne(e),null}else 2*ae()-u.renderingStartTime>$6&&r!==1073741824&&(e.flags|=128,n=!0,Ei(u,!1),e.lanes=4194304);u.isBackwards?(a.sibling=e.child,e.child=a):(r=u.last,r!==null?r.sibling=a:e.child=a,u.last=a)}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=ae(),e.sibling=null,r=Q1.current,$1(Q1,n?r&1|2:r&1),e):(Ne(e),null);case 22:case 23:return a4(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?dt&1073741824&&(Ne(e),e.subtreeFlags&6&&(e.flags|=8192)):Ne(e),null;case 24:return null;case 25:return null}throw Error(T0(156,e.tag))}function Ag(t,e){switch(js(e),e.tag){case 1:return st(e.type)&&B9(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return j6(),G1(ot),G1(Le),Js(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Vs(e),null;case 13:if(G1(Q1),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(T0(340));O6()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return G1(Q1),null;case 4:return j6(),null;case 10:return Hs(e.type._context),null;case 22:case 23:return a4(),null;case 24:return null;default:return null}}var w5=!1,Ue=!1,wg=typeof WeakSet=="function"?WeakSet:Set,L0=null;function y6(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){re(t,e,n)}else r.current=null}function Oo(t,e,r){try{r()}catch(n){re(t,e,n)}}var xl=!1;function Eg(t,e){if(Ao=w9,t=_7(),Os(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,u=n.focusNode;n=n.focusOffset;try{r.nodeType,u.nodeType}catch{r=null;break e}var a=0,o=-1,s=-1,c=0,d=0,y=t,A=null;t:for(;;){for(var C;y!==r||i!==0&&y.nodeType!==3||(o=a+i),y!==u||n!==0&&y.nodeType!==3||(s=a+n),y.nodeType===3&&(a+=y.nodeValue.length),(C=y.firstChild)!==null;)A=y,y=C;for(;;){if(y===t)break t;if(A===r&&++c===i&&(o=a),A===u&&++d===n&&(s=a),(C=y.nextSibling)!==null)break;y=A,A=y.parentNode}y=C}r=o===-1||s===-1?null:{start:o,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(wo={focusedElem:t,selectionRange:r},w9=!1,L0=e;L0!==null;)if(e=L0,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,L0=t;else for(;L0!==null;){e=L0;try{var T=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(T!==null){var U=T.memoizedProps,P=T.memoizedState,_=e.stateNode,B=_.getSnapshotBeforeUpdate(e.elementType===e.type?U:qt(e.type,U),P);_.__reactInternalSnapshotBeforeUpdate=B}break;case 3:var N=e.stateNode.containerInfo;N.nodeType===1?N.textContent="":N.nodeType===9&&N.documentElement&&N.removeChild(N.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T0(163))}}catch(W){re(e,e.return,W)}if(t=e.sibling,t!==null){t.return=e.return,L0=t;break}L0=e.return}return T=xl,xl=!1,T}function Ki(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&t)===t){var u=i.destroy;i.destroy=void 0,u!==void 0&&Oo(e,r,u)}i=i.next}while(i!==n)}}function x8(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function Lo(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function Fd(t){var e=t.alternate;e!==null&&(t.alternate=null,Fd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[dr],delete e[xu],delete e[Fo],delete e[ug],delete e[ag])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Bd(t){return t.tag===5||t.tag===3||t.tag===4}function vl(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Bd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function jo(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=F9));else if(n!==4&&(t=t.child,t!==null))for(jo(t,e,r),t=t.sibling;t!==null;)jo(t,e,r),t=t.sibling}function zo(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(zo(t,e,r),t=t.sibling;t!==null;)zo(t,e,r),t=t.sibling}var Fe=null,Gt=!1;function c2(t,e,r){for(r=r.child;r!==null;)Dd(t,e,r),r=r.sibling}function Dd(t,e,r){if(Ar&&typeof Ar.onCommitFiberUnmount=="function")try{Ar.onCommitFiberUnmount(c8,r)}catch{}switch(r.tag){case 5:Ue||y6(r,e);case 6:var n=Fe,i=Gt;Fe=null,c2(t,e,r),Fe=n,Gt=i,Fe!==null&&(Gt?(t=Fe,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):Fe.removeChild(r.stateNode));break;case 18:Fe!==null&&(Gt?(t=Fe,r=r.stateNode,t.nodeType===8?ca(t.parentNode,r):t.nodeType===1&&ca(t,r),pu(t)):ca(Fe,r.stateNode));break;case 4:n=Fe,i=Gt,Fe=r.stateNode.containerInfo,Gt=!0,c2(t,e,r),Fe=n,Gt=i;break;case 0:case 11:case 14:case 15:if(!Ue&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var u=i,a=u.destroy;u=u.tag,a!==void 0&&(u&2||u&4)&&Oo(r,e,a),i=i.next}while(i!==n)}c2(t,e,r);break;case 1:if(!Ue&&(y6(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(o){re(r,e,o)}c2(t,e,r);break;case 21:c2(t,e,r);break;case 22:r.mode&1?(Ue=(n=Ue)||r.memoizedState!==null,c2(t,e,r),Ue=n):c2(t,e,r);break;default:c2(t,e,r)}}function Al(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new wg),e.forEach(function(n){var i=Pg.bind(null,t,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Lt(t,e){var r=e.deletions;if(r!==null)for(var n=0;ni&&(i=a),n&=~u}if(n=i,n=ae()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Fg(n/1960))-n,10t?16:t,w2===null)var n=!1;else{if(t=w2,w2=null,O9=0,k1&6)throw Error(T0(331));var i=k1;for(k1|=4,L0=t.current;L0!==null;){var u=L0,a=u.child;if(L0.flags&16){var o=u.deletions;if(o!==null){for(var s=0;sae()-i4?gn(t,0):n4|=r),lt(t,e)}function Ud(t,e){e===0&&(t.mode&1?(e=h5,h5<<=1,!(h5&130023424)&&(h5=4194304)):e=1);var r=Je();t=Yr(t,e),t!==null&&(Hu(t,e,r),lt(t,r))}function Tg(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),Ud(t,r)}function Pg(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,i=t.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(T0(314))}n!==null&&n.delete(e),Ud(t,r)}var Id;Id=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||ot.current)at=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return at=!1,xg(t,e,r);at=!!(t.flags&131072)}else at=!1,W1&&e.flags&1048576&&L7(e,k9,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;i9(t,e),t=e.pendingProps;var i=R6(e,Le.current);_6(e,r),i=Ys(null,e,n,t,i,r);var u=Xs();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,st(n)?(u=!0,D9(e)):u=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Gs(e),i.updater=y8,e.stateNode=i,i._reactInternals=e,To(e,n,t,r),e=Mo(null,e,n,!0,u,r)):(e.tag=0,W1&&u&&Ls(e),qe(null,e,i,r),e=e.child),e;case 16:n=e.elementType;e:{switch(i9(t,e),t=e.pendingProps,i=n._init,n=i(n._payload),e.type=n,i=e.tag=Mg(n),t=qt(n,t),i){case 0:e=No(null,e,n,t,r);break e;case 1:e=ml(null,e,n,t,r);break e;case 11:e=pl(null,e,n,t,r);break e;case 14:e=bl(null,e,n,qt(n.type,t),r);break e}throw Error(T0(306,n,""))}return e;case 0:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:qt(n,i),No(t,e,n,i,r);case 1:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:qt(n,i),ml(t,e,n,i,r);case 3:e:{if(xd(e),t===null)throw Error(T0(387));n=e.pendingProps,u=e.memoizedState,i=u.element,q7(t,e),P9(e,n,null,r);var a=e.memoizedState;if(n=a.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){i=z6(Error(T0(423)),e),e=yl(t,e,n,r,i);break e}else if(n!==i){i=z6(Error(T0(424)),e),e=yl(t,e,n,r,i);break e}else for(bt=S2(e.stateNode.containerInfo.firstChild),mt=e,W1=!0,Wt=null,r=W7(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(O6(),n===i){e=Xr(t,e,r);break e}qe(t,e,n,r)}e=e.child}return e;case 5:return V7(e),t===null&&_o(e),n=e.type,i=e.pendingProps,u=t!==null?t.memoizedProps:null,a=i.children,Eo(n,i)?a=null:u!==null&&Eo(n,u)&&(e.flags|=32),gd(t,e),qe(t,e,a,r),e.child;case 6:return t===null&&_o(e),null;case 13:return vd(t,e,r);case 4:return Ws(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=L6(e,null,n,r):qe(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:qt(n,i),pl(t,e,n,i,r);case 7:return qe(t,e,e.pendingProps,r),e.child;case 8:return qe(t,e,e.pendingProps.children,r),e.child;case 12:return qe(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,i=e.pendingProps,u=e.memoizedProps,a=i.value,$1(S9,n._currentValue),n._currentValue=a,u!==null)if(er(u.value,a)){if(u.children===i.children&&!ot.current){e=Xr(t,e,r);break e}}else for(u=e.child,u!==null&&(u.return=e);u!==null;){var o=u.dependencies;if(o!==null){a=u.child;for(var s=o.firstContext;s!==null;){if(s.context===n){if(u.tag===1){s=Wr(-1,r&-r),s.tag=2;var c=u.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?s.next=s:(s.next=d.next,d.next=s),c.pending=s}}u.lanes|=r,s=u.alternate,s!==null&&(s.lanes|=r),ko(u.return,r,e),o.lanes|=r;break}s=s.next}}else if(u.tag===10)a=u.type===e.type?null:u.child;else if(u.tag===18){if(a=u.return,a===null)throw Error(T0(341));a.lanes|=r,o=a.alternate,o!==null&&(o.lanes|=r),ko(a,r,e),a=u.sibling}else a=u.child;if(a!==null)a.return=u;else for(a=u;a!==null;){if(a===e){a=null;break}if(u=a.sibling,u!==null){u.return=a.return,a=u;break}a=a.return}u=a}qe(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,n=e.pendingProps.children,_6(e,r),i=Nt(i),n=n(i),e.flags|=1,qe(t,e,n,r),e.child;case 14:return n=e.type,i=qt(n,e.pendingProps),i=qt(n.type,i),bl(t,e,n,i,r);case 15:return md(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:qt(n,i),i9(t,e),e.tag=1,st(n)?(t=!0,D9(e)):t=!1,_6(e,r),K7(e,n,i),To(e,n,i,r),Mo(null,e,n,!0,t,r);case 19:return Ad(t,e,r);case 22:return yd(t,e,r)}throw Error(T0(156,e.tag))};function Rd(t,e){return l7(t,e)}function Ng(t,e,r,n){this.tag=t,this.key=r,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 Tt(t,e,r,n){return new Ng(t,e,r,n)}function s4(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Mg(t){if(typeof t=="function")return s4(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Ds)return 11;if(t===_s)return 14}return 2}function M2(t,e){var r=t.alternate;return r===null?(r=Tt(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function o9(t,e,r,n,i,u){var a=2;if(n=t,typeof t=="function")s4(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case s6:return xn(r.children,i,u,e);case Bs:a=8,i|=8;break;case eo:return t=Tt(12,r,e,i|2),t.elementType=eo,t.lanes=u,t;case to:return t=Tt(13,r,e,i),t.elementType=to,t.lanes=u,t;case ro:return t=Tt(19,r,e,i),t.elementType=ro,t.lanes=u,t;case Gc:return A8(r,i,u,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Hc:a=10;break e;case Kc:a=9;break e;case Ds:a=11;break e;case _s:a=14;break e;case p2:a=16,n=null;break e}throw Error(T0(130,t==null?t:typeof t,""))}return e=Tt(a,r,e,i),e.elementType=t,e.type=n,e.lanes=u,e}function xn(t,e,r,n){return t=Tt(7,t,n,e),t.lanes=r,t}function A8(t,e,r,n){return t=Tt(22,t,n,e),t.elementType=Gc,t.lanes=r,t.stateNode={isHidden:!1},t}function xa(t,e,r){return t=Tt(6,t,null,e),t.lanes=r,t}function va(t,e,r){return e=Tt(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Ug(t,e,r,n,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ea(0),this.expirationTimes=ea(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ea(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function l4(t,e,r,n,i,u,a,o,s){return t=new Ug(t,e,r,o,s),e===1?(e=1,u===!0&&(e|=8)):e=0,u=Tt(3,null,null,e),t.current=u,u.stateNode=t,u.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gs(u),t}function Ig(t,e,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zd)}catch(t){console.error(t)}}zd(),Lc.exports=vt;var $d=Lc.exports,kl=$d;Xa.createRoot=kl.createRoot,Xa.hydrateRoot=kl.hydrateRoot;/** +`+u.stack}return{value:t,source:e,stack:i,digest:null}}function ya(t,e,r){return{value:t,source:null,stack:r??null,digest:e??null}}function Po(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var mg=typeof WeakMap=="function"?WeakMap:Map;function pd(t,e,r){r=Wr(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){R9||(R9=!0,$o=n),Po(t,e)},r}function bd(t,e,r){r=Wr(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var i=e.value;r.payload=function(){return n(i)},r.callback=function(){Po(t,e)}}var u=t.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(r.callback=function(){Po(t,e),typeof n!="function"&&(P2===null?P2=new Set([this]):P2.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),r}function df(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new mg;var i=new Set;n.set(e,i)}else i=n.get(e),i===void 0&&(i=new Set,n.set(e,i));i.has(r)||(i.add(r),t=Sg.bind(null,t,e,r),e.then(t,t))}function hf(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function pf(t,e,r,n,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=Wr(-1,1),e.tag=2,T2(r,e,1))),r.lanes|=1),t)}var yg=r2.ReactCurrentOwner,at=!1;function qe(t,e,r,n){e.child=t===null?W7(e,null,r,n):L6(e,t.child,r,n)}function bf(t,e,r,n,i){r=r.render;var u=e.ref;return _6(e,i),n=Ys(t,e,r,n,u,i),r=Xs(),t!==null&&!at?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Xr(t,e,i)):(W1&&r&&Ls(e),e.flags|=1,qe(t,e,n,i),e.child)}function mf(t,e,r,n,i){if(t===null){var u=r.type;return typeof u=="function"&&!s4(u)&&u.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=u,md(t,e,u,n,i)):(t=o9(r.type,null,n,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!(t.lanes&i)){var a=u.memoizedProps;if(r=r.compare,r=r!==null?r:mu,r(a,n)&&t.ref===e.ref)return Xr(t,e,i)}return e.flags|=1,t=M2(u,n),t.ref=e.ref,t.return=e,e.child=t}function md(t,e,r,n,i){if(t!==null){var u=t.memoizedProps;if(mu(u,n)&&t.ref===e.ref)if(at=!1,e.pendingProps=n=u,(t.lanes&i)!==0)t.flags&131072&&(at=!0);else return e.lanes=t.lanes,Xr(t,e,i)}return No(t,e,r,n,i)}function yd(t,e,r){var n=e.pendingProps,i=n.children,u=t!==null?t.memoizedState:null;if(n.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},$1(g6,dt),dt|=r;else{if(!(r&1073741824))return t=u!==null?u.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,$1(g6,dt),dt|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=u!==null?u.baseLanes:r,$1(g6,dt),dt|=n}else u!==null?(n=u.baseLanes|r,e.memoizedState=null):n=r,$1(g6,dt),dt|=n;return qe(t,e,i,r),e.child}function gd(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function No(t,e,r,n,i){var u=st(r)?Fn:Le.current;return u=R6(e,u),_6(e,i),r=Ys(t,e,r,n,u,i),n=Xs(),t!==null&&!at?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Xr(t,e,i)):(W1&&n&&Ls(e),e.flags|=1,qe(t,e,r,i),e.child)}function yf(t,e,r,n,i){if(st(r)){var u=!0;D9(e)}else u=!1;if(_6(e,i),e.stateNode===null)i9(t,e),K7(e,r,n),To(e,r,n,i),n=!0;else if(t===null){var a=e.stateNode,o=e.memoizedProps;a.props=o;var s=a.context,c=r.contextType;typeof c=="object"&&c!==null?c=Nt(c):(c=st(r)?Fn:Le.current,c=R6(e,c));var d=r.getDerivedStateFromProps,y=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";y||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==n||s!==c)&&sf(e,a,n,c),b2=!1;var A=e.memoizedState;a.state=A,P9(e,n,a,i),s=e.memoizedState,o!==n||A!==s||ot.current||b2?(typeof d=="function"&&(So(e,r,d,n),s=e.memoizedState),(o=b2||of(e,r,o,n,A,s,c))?(y||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=s),a.props=n,a.state=s,a.context=c,n=o):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{a=e.stateNode,q7(t,e),o=e.memoizedProps,c=e.type===e.elementType?o:qt(e.type,o),a.props=c,y=e.pendingProps,A=a.context,s=r.contextType,typeof s=="object"&&s!==null?s=Nt(s):(s=st(r)?Fn:Le.current,s=R6(e,s));var C=r.getDerivedStateFromProps;(d=typeof C=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==y||A!==s)&&sf(e,a,n,s),b2=!1,A=e.memoizedState,a.state=A,P9(e,n,a,i);var T=e.memoizedState;o!==y||A!==T||ot.current||b2?(typeof C=="function"&&(So(e,r,C,n),T=e.memoizedState),(c=b2||of(e,r,c,n,A,T,s)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,T,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,T,s)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=T),a.props=n,a.state=T,a.context=s,n=c):(typeof a.componentDidUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),n=!1)}return Mo(t,e,r,n,u,i)}function Mo(t,e,r,n,i,u){gd(t,e);var a=(e.flags&128)!==0;if(!n&&!a)return i&&tf(e,r,!1),Xr(t,e,u);n=e.stateNode,yg.current=e;var o=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&a?(e.child=L6(e,t.child,null,u),e.child=L6(e,null,o,u)):qe(t,e,o,u),e.memoizedState=n.state,i&&tf(e,r,!0),e.child}function xd(t){var e=t.stateNode;e.pendingContext?ef(t,e.pendingContext,e.pendingContext!==e.context):e.context&&ef(t,e.context,!1),Ws(t,e.containerInfo)}function gf(t,e,r,n,i){return O6(),zs(i),e.flags|=256,qe(t,e,r,n),e.child}var Uo={dehydrated:null,treeContext:null,retryLane:0};function Io(t){return{baseLanes:t,cachePool:null,transitions:null}}function vd(t,e,r){var n=e.pendingProps,i=Q1.current,u=!1,a=(e.flags&128)!==0,o;if((o=a)||(o=t!==null&&t.memoizedState===null?!1:(i&2)!==0),o?(u=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),$1(Q1,i&1),t===null)return _o(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(a=n.children,t=n.fallback,u?(n=e.mode,u=e.child,a={mode:"hidden",children:a},!(n&1)&&u!==null?(u.childLanes=0,u.pendingProps=a):u=A8(a,n,0,null),t=xn(t,n,r,null),u.return=e,t.return=e,u.sibling=t,e.child=u,e.child.memoizedState=Io(r),e.memoizedState=Uo,t):t4(e,a));if(i=t.memoizedState,i!==null&&(o=i.dehydrated,o!==null))return gg(t,e,a,n,o,i,r);if(u){u=n.fallback,a=e.mode,i=t.child,o=i.sibling;var s={mode:"hidden",children:n.children};return!(a&1)&&e.child!==i?(n=e.child,n.childLanes=0,n.pendingProps=s,e.deletions=null):(n=M2(i,s),n.subtreeFlags=i.subtreeFlags&14680064),o!==null?u=M2(o,u):(u=xn(u,a,r,null),u.flags|=2),u.return=e,n.return=e,n.sibling=u,e.child=n,n=u,u=e.child,a=t.child.memoizedState,a=a===null?Io(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},u.memoizedState=a,u.childLanes=t.childLanes&~r,e.memoizedState=Uo,n}return u=t.child,t=u.sibling,n=M2(u,{mode:"visible",children:n.children}),!(e.mode&1)&&(n.lanes=r),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n}function t4(t,e){return e=A8({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function A5(t,e,r,n){return n!==null&&zs(n),L6(e,t.child,null,r),t=t4(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function gg(t,e,r,n,i,u,a){if(r)return e.flags&256?(e.flags&=-257,n=ya(Error(T0(422))),A5(t,e,a,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(u=n.fallback,i=e.mode,n=A8({mode:"visible",children:n.children},i,0,null),u=xn(u,i,a,null),u.flags|=2,n.return=e,u.return=e,n.sibling=u,e.child=n,e.mode&1&&L6(e,t.child,null,a),e.child.memoizedState=Io(a),e.memoizedState=Uo,u);if(!(e.mode&1))return A5(t,e,a,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var o=n.dgst;return n=o,u=Error(T0(419)),n=ya(u,n,void 0),A5(t,e,a,n)}if(o=(a&t.childLanes)!==0,at||o){if(n=ge,n!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|a)?0:i,i!==0&&i!==u.retryLane&&(u.retryLane=i,Yr(t,i),Xt(n,t,i,-1))}return o4(),n=ya(Error(T0(421))),A5(t,e,a,n)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=Tg.bind(null,t),i._reactRetry=e,null):(t=u.treeContext,bt=S2(i.nextSibling),mt=e,W1=!0,Wt=null,t!==null&&(kt[St++]=Hr,kt[St++]=Kr,kt[St++]=Bn,Hr=t.id,Kr=t.overflow,Bn=e),e=t4(e,n.children),e.flags|=4096,e)}function xf(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),ko(t.return,e,r)}function ga(t,e,r,n,i){var u=t.memoizedState;u===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(u.isBackwards=e,u.rendering=null,u.renderingStartTime=0,u.last=n,u.tail=r,u.tailMode=i)}function Ad(t,e,r){var n=e.pendingProps,i=n.revealOrder,u=n.tail;if(qe(t,e,n.children,r),n=Q1.current,n&2)n=n&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&xf(t,r,e);else if(t.tag===19)xf(t,r,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if($1(Q1,n),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(r=e.child,i=null;r!==null;)t=r.alternate,t!==null&&N9(t)===null&&(i=r),r=r.sibling;r=i,r===null?(i=e.child,e.child=null):(i=r.sibling,r.sibling=null),ga(e,!1,i,r,u);break;case"backwards":for(r=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&N9(t)===null){e.child=i;break}t=i.sibling,i.sibling=r,r=i,i=t}ga(e,!0,r,null,u);break;case"together":ga(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function i9(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Xr(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),_n|=e.lanes,!(r&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(T0(153));if(e.child!==null){for(t=e.child,r=M2(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=M2(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function xg(t,e,r){switch(e.tag){case 3:xd(e),O6();break;case 5:V7(e);break;case 1:st(e.type)&&D9(e);break;case 4:Ws(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,i=e.memoizedProps.value;$1(S9,n._currentValue),n._currentValue=i;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?($1(Q1,Q1.current&1),e.flags|=128,null):r&e.child.childLanes?vd(t,e,r):($1(Q1,Q1.current&1),t=Xr(t,e,r),t!==null?t.sibling:null);$1(Q1,Q1.current&1);break;case 19:if(n=(r&e.childLanes)!==0,t.flags&128){if(n)return Ad(t,e,r);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),$1(Q1,Q1.current),n)break;return null;case 22:case 23:return e.lanes=0,yd(t,e,r)}return Xr(t,e,r)}var wd,Ro,Ed,Cd;wd=function(t,e){for(var r=e.child;r!==null;){if(r.tag===5||r.tag===6)t.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Ro=function(){};Ed=function(t,e,r,n){var i=t.memoizedProps;if(i!==n){t=e.stateNode,bn(wr.current);var u=null;switch(r){case"input":i=io(t,i),n=io(t,n),u=[];break;case"select":i=X1({},i,{value:void 0}),n=X1({},n,{value:void 0}),u=[];break;case"textarea":i=oo(t,i),n=oo(t,n),u=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=F9)}fo(r,n);var a;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var o=i[c];for(a in o)o.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(fu.hasOwnProperty(c)?u||(u=[]):(u=u||[]).push(c,null));for(c in n){var s=n[c];if(o=i!=null?i[c]:void 0,n.hasOwnProperty(c)&&s!==o&&(s!=null||o!=null))if(c==="style")if(o){for(a in o)!o.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in s)s.hasOwnProperty(a)&&o[a]!==s[a]&&(r||(r={}),r[a]=s[a])}else r||(u||(u=[]),u.push(c,r)),r=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,o=o?o.__html:void 0,s!=null&&o!==s&&(u=u||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(u=u||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(fu.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&K1("scroll",t),u||o===s||(u=[])):(u=u||[]).push(c,s))}r&&(u=u||[]).push("style",r);var c=u;(e.updateQueue=c)&&(e.flags|=4)}};Cd=function(t,e,r,n){r!==n&&(e.flags|=4)};function Ei(t,e){if(!W1)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Ne(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var i=t.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function vg(t,e,r){var n=e.pendingProps;switch(js(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ne(e),null;case 1:return st(e.type)&&B9(),Ne(e),null;case 3:return n=e.stateNode,j6(),G1(ot),G1(Le),Js(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(x5(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Wt!==null&&(Ko(Wt),Wt=null))),Ro(t,e),Ne(e),null;case 5:Vs(e);var i=bn(Au.current);if(r=e.type,t!==null&&e.stateNode!=null)Ed(t,e,r,n,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(T0(166));return Ne(e),null}if(t=bn(wr.current),x5(e)){n=e.stateNode,r=e.type;var u=e.memoizedProps;switch(n[dr]=e,n[xu]=u,t=(e.mode&1)!==0,r){case"dialog":K1("cancel",n),K1("close",n);break;case"iframe":case"object":case"embed":K1("load",n);break;case"video":case"audio":for(i=0;i<\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=a.createElement(r,{is:n.is}):(t=a.createElement(r),r==="select"&&(a=t,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):t=a.createElementNS(t,r),t[dr]=e,t[xu]=n,wd(t,e,!1,!1),e.stateNode=t;e:{switch(a=lo(r,n),r){case"dialog":K1("cancel",t),K1("close",t),i=n;break;case"iframe":case"object":case"embed":K1("load",t),i=n;break;case"video":case"audio":for(i=0;i$6&&(e.flags|=128,n=!0,Ei(u,!1),e.lanes=4194304)}else{if(!n)if(t=N9(a),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Ei(u,!0),u.tail===null&&u.tailMode==="hidden"&&!a.alternate&&!W1)return Ne(e),null}else 2*ae()-u.renderingStartTime>$6&&r!==1073741824&&(e.flags|=128,n=!0,Ei(u,!1),e.lanes=4194304);u.isBackwards?(a.sibling=e.child,e.child=a):(r=u.last,r!==null?r.sibling=a:e.child=a,u.last=a)}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=ae(),e.sibling=null,r=Q1.current,$1(Q1,n?r&1|2:r&1),e):(Ne(e),null);case 22:case 23:return a4(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?dt&1073741824&&(Ne(e),e.subtreeFlags&6&&(e.flags|=8192)):Ne(e),null;case 24:return null;case 25:return null}throw Error(T0(156,e.tag))}function Ag(t,e){switch(js(e),e.tag){case 1:return st(e.type)&&B9(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return j6(),G1(ot),G1(Le),Js(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Vs(e),null;case 13:if(G1(Q1),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(T0(340));O6()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return G1(Q1),null;case 4:return j6(),null;case 10:return Hs(e.type._context),null;case 22:case 23:return a4(),null;case 24:return null;default:return null}}var w5=!1,Ue=!1,wg=typeof WeakSet=="function"?WeakSet:Set,L0=null;function y6(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){re(t,e,n)}else r.current=null}function Oo(t,e,r){try{r()}catch(n){re(t,e,n)}}var vf=!1;function Eg(t,e){if(Ao=w9,t=_7(),Os(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,u=n.focusNode;n=n.focusOffset;try{r.nodeType,u.nodeType}catch{r=null;break e}var a=0,o=-1,s=-1,c=0,d=0,y=t,A=null;t:for(;;){for(var C;y!==r||i!==0&&y.nodeType!==3||(o=a+i),y!==u||n!==0&&y.nodeType!==3||(s=a+n),y.nodeType===3&&(a+=y.nodeValue.length),(C=y.firstChild)!==null;)A=y,y=C;for(;;){if(y===t)break t;if(A===r&&++c===i&&(o=a),A===u&&++d===n&&(s=a),(C=y.nextSibling)!==null)break;y=A,A=y.parentNode}y=C}r=o===-1||s===-1?null:{start:o,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(wo={focusedElem:t,selectionRange:r},w9=!1,L0=e;L0!==null;)if(e=L0,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,L0=t;else for(;L0!==null;){e=L0;try{var T=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(T!==null){var U=T.memoizedProps,P=T.memoizedState,_=e.stateNode,B=_.getSnapshotBeforeUpdate(e.elementType===e.type?U:qt(e.type,U),P);_.__reactInternalSnapshotBeforeUpdate=B}break;case 3:var N=e.stateNode.containerInfo;N.nodeType===1?N.textContent="":N.nodeType===9&&N.documentElement&&N.removeChild(N.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T0(163))}}catch(W){re(e,e.return,W)}if(t=e.sibling,t!==null){t.return=e.return,L0=t;break}L0=e.return}return T=vf,vf=!1,T}function Ki(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&t)===t){var u=i.destroy;i.destroy=void 0,u!==void 0&&Oo(e,r,u)}i=i.next}while(i!==n)}}function x8(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function Lo(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function Fd(t){var e=t.alternate;e!==null&&(t.alternate=null,Fd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[dr],delete e[xu],delete e[Fo],delete e[ug],delete e[ag])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Bd(t){return t.tag===5||t.tag===3||t.tag===4}function Af(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Bd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function jo(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=F9));else if(n!==4&&(t=t.child,t!==null))for(jo(t,e,r),t=t.sibling;t!==null;)jo(t,e,r),t=t.sibling}function zo(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(zo(t,e,r),t=t.sibling;t!==null;)zo(t,e,r),t=t.sibling}var Fe=null,Gt=!1;function c2(t,e,r){for(r=r.child;r!==null;)Dd(t,e,r),r=r.sibling}function Dd(t,e,r){if(Ar&&typeof Ar.onCommitFiberUnmount=="function")try{Ar.onCommitFiberUnmount(c8,r)}catch{}switch(r.tag){case 5:Ue||y6(r,e);case 6:var n=Fe,i=Gt;Fe=null,c2(t,e,r),Fe=n,Gt=i,Fe!==null&&(Gt?(t=Fe,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):Fe.removeChild(r.stateNode));break;case 18:Fe!==null&&(Gt?(t=Fe,r=r.stateNode,t.nodeType===8?ca(t.parentNode,r):t.nodeType===1&&ca(t,r),pu(t)):ca(Fe,r.stateNode));break;case 4:n=Fe,i=Gt,Fe=r.stateNode.containerInfo,Gt=!0,c2(t,e,r),Fe=n,Gt=i;break;case 0:case 11:case 14:case 15:if(!Ue&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var u=i,a=u.destroy;u=u.tag,a!==void 0&&(u&2||u&4)&&Oo(r,e,a),i=i.next}while(i!==n)}c2(t,e,r);break;case 1:if(!Ue&&(y6(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(o){re(r,e,o)}c2(t,e,r);break;case 21:c2(t,e,r);break;case 22:r.mode&1?(Ue=(n=Ue)||r.memoizedState!==null,c2(t,e,r),Ue=n):c2(t,e,r);break;default:c2(t,e,r)}}function wf(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new wg),e.forEach(function(n){var i=Pg.bind(null,t,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Lt(t,e){var r=e.deletions;if(r!==null)for(var n=0;ni&&(i=a),n&=~u}if(n=i,n=ae()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Fg(n/1960))-n,10t?16:t,w2===null)var n=!1;else{if(t=w2,w2=null,O9=0,k1&6)throw Error(T0(331));var i=k1;for(k1|=4,L0=t.current;L0!==null;){var u=L0,a=u.child;if(L0.flags&16){var o=u.deletions;if(o!==null){for(var s=0;sae()-i4?gn(t,0):n4|=r),ft(t,e)}function Ud(t,e){e===0&&(t.mode&1?(e=h5,h5<<=1,!(h5&130023424)&&(h5=4194304)):e=1);var r=Je();t=Yr(t,e),t!==null&&(Hu(t,e,r),ft(t,r))}function Tg(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),Ud(t,r)}function Pg(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,i=t.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(T0(314))}n!==null&&n.delete(e),Ud(t,r)}var Id;Id=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||ot.current)at=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return at=!1,xg(t,e,r);at=!!(t.flags&131072)}else at=!1,W1&&e.flags&1048576&&L7(e,k9,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;i9(t,e),t=e.pendingProps;var i=R6(e,Le.current);_6(e,r),i=Ys(null,e,n,t,i,r);var u=Xs();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,st(n)?(u=!0,D9(e)):u=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Gs(e),i.updater=y8,e.stateNode=i,i._reactInternals=e,To(e,n,t,r),e=Mo(null,e,n,!0,u,r)):(e.tag=0,W1&&u&&Ls(e),qe(null,e,i,r),e=e.child),e;case 16:n=e.elementType;e:{switch(i9(t,e),t=e.pendingProps,i=n._init,n=i(n._payload),e.type=n,i=e.tag=Mg(n),t=qt(n,t),i){case 0:e=No(null,e,n,t,r);break e;case 1:e=yf(null,e,n,t,r);break e;case 11:e=bf(null,e,n,t,r);break e;case 14:e=mf(null,e,n,qt(n.type,t),r);break e}throw Error(T0(306,n,""))}return e;case 0:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:qt(n,i),No(t,e,n,i,r);case 1:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:qt(n,i),yf(t,e,n,i,r);case 3:e:{if(xd(e),t===null)throw Error(T0(387));n=e.pendingProps,u=e.memoizedState,i=u.element,q7(t,e),P9(e,n,null,r);var a=e.memoizedState;if(n=a.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){i=z6(Error(T0(423)),e),e=gf(t,e,n,r,i);break e}else if(n!==i){i=z6(Error(T0(424)),e),e=gf(t,e,n,r,i);break e}else for(bt=S2(e.stateNode.containerInfo.firstChild),mt=e,W1=!0,Wt=null,r=W7(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(O6(),n===i){e=Xr(t,e,r);break e}qe(t,e,n,r)}e=e.child}return e;case 5:return V7(e),t===null&&_o(e),n=e.type,i=e.pendingProps,u=t!==null?t.memoizedProps:null,a=i.children,Eo(n,i)?a=null:u!==null&&Eo(n,u)&&(e.flags|=32),gd(t,e),qe(t,e,a,r),e.child;case 6:return t===null&&_o(e),null;case 13:return vd(t,e,r);case 4:return Ws(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=L6(e,null,n,r):qe(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:qt(n,i),bf(t,e,n,i,r);case 7:return qe(t,e,e.pendingProps,r),e.child;case 8:return qe(t,e,e.pendingProps.children,r),e.child;case 12:return qe(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,i=e.pendingProps,u=e.memoizedProps,a=i.value,$1(S9,n._currentValue),n._currentValue=a,u!==null)if(er(u.value,a)){if(u.children===i.children&&!ot.current){e=Xr(t,e,r);break e}}else for(u=e.child,u!==null&&(u.return=e);u!==null;){var o=u.dependencies;if(o!==null){a=u.child;for(var s=o.firstContext;s!==null;){if(s.context===n){if(u.tag===1){s=Wr(-1,r&-r),s.tag=2;var c=u.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?s.next=s:(s.next=d.next,d.next=s),c.pending=s}}u.lanes|=r,s=u.alternate,s!==null&&(s.lanes|=r),ko(u.return,r,e),o.lanes|=r;break}s=s.next}}else if(u.tag===10)a=u.type===e.type?null:u.child;else if(u.tag===18){if(a=u.return,a===null)throw Error(T0(341));a.lanes|=r,o=a.alternate,o!==null&&(o.lanes|=r),ko(a,r,e),a=u.sibling}else a=u.child;if(a!==null)a.return=u;else for(a=u;a!==null;){if(a===e){a=null;break}if(u=a.sibling,u!==null){u.return=a.return,a=u;break}a=a.return}u=a}qe(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,n=e.pendingProps.children,_6(e,r),i=Nt(i),n=n(i),e.flags|=1,qe(t,e,n,r),e.child;case 14:return n=e.type,i=qt(n,e.pendingProps),i=qt(n.type,i),mf(t,e,n,i,r);case 15:return md(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:qt(n,i),i9(t,e),e.tag=1,st(n)?(t=!0,D9(e)):t=!1,_6(e,r),K7(e,n,i),To(e,n,i,r),Mo(null,e,n,!0,t,r);case 19:return Ad(t,e,r);case 22:return yd(t,e,r)}throw Error(T0(156,e.tag))};function Rd(t,e){return f7(t,e)}function Ng(t,e,r,n){this.tag=t,this.key=r,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 Tt(t,e,r,n){return new Ng(t,e,r,n)}function s4(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Mg(t){if(typeof t=="function")return s4(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Ds)return 11;if(t===_s)return 14}return 2}function M2(t,e){var r=t.alternate;return r===null?(r=Tt(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function o9(t,e,r,n,i,u){var a=2;if(n=t,typeof t=="function")s4(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case s6:return xn(r.children,i,u,e);case Bs:a=8,i|=8;break;case eo:return t=Tt(12,r,e,i|2),t.elementType=eo,t.lanes=u,t;case to:return t=Tt(13,r,e,i),t.elementType=to,t.lanes=u,t;case ro:return t=Tt(19,r,e,i),t.elementType=ro,t.lanes=u,t;case Gc:return A8(r,i,u,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Hc:a=10;break e;case Kc:a=9;break e;case Ds:a=11;break e;case _s:a=14;break e;case p2:a=16,n=null;break e}throw Error(T0(130,t==null?t:typeof t,""))}return e=Tt(a,r,e,i),e.elementType=t,e.type=n,e.lanes=u,e}function xn(t,e,r,n){return t=Tt(7,t,n,e),t.lanes=r,t}function A8(t,e,r,n){return t=Tt(22,t,n,e),t.elementType=Gc,t.lanes=r,t.stateNode={isHidden:!1},t}function xa(t,e,r){return t=Tt(6,t,null,e),t.lanes=r,t}function va(t,e,r){return e=Tt(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Ug(t,e,r,n,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ea(0),this.expirationTimes=ea(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ea(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function f4(t,e,r,n,i,u,a,o,s){return t=new Ug(t,e,r,o,s),e===1?(e=1,u===!0&&(e|=8)):e=0,u=Tt(3,null,null,e),t.current=u,u.stateNode=t,u.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gs(u),t}function Ig(t,e,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zd)}catch(t){console.error(t)}}zd(),Lc.exports=vt;var $d=Lc.exports,Sf=$d;Xa.createRoot=Sf.createRoot,Xa.hydrateRoot=Sf.hydrateRoot;/** * @remix-run/router v1.15.3 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ Error generating stack: `+u.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Bu(){return Bu=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function qd(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function $g(){return Math.random().toString(36).substr(2,8)}function Tl(t,e){return{usr:t.state,key:t.key,idx:e}}function Go(t,e,r,n){return r===void 0&&(r=null),Bu({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?ti(e):e,{state:r,key:e&&e.key||n||$g()})}function z9(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ti(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function qg(t,e,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:u=!1}=n,a=i.history,o=E2.Pop,s=null,c=d();c==null&&(c=0,a.replaceState(Bu({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function y(){o=E2.Pop;let P=d(),_=P==null?null:P-c;c=P,s&&s({action:o,location:U.location,delta:_})}function A(P,_){o=E2.Push;let B=Go(U.location,P,_);c=d()+1;let N=Tl(B,c),W=U.createHref(B);try{a.pushState(N,"",W)}catch(G){if(G instanceof DOMException&&G.name==="DataCloneError")throw G;i.location.assign(W)}u&&s&&s({action:o,location:U.location,delta:1})}function C(P,_){o=E2.Replace;let B=Go(U.location,P,_);c=d();let N=Tl(B,c),W=U.createHref(B);a.replaceState(N,"",W),u&&s&&s({action:o,location:U.location,delta:0})}function T(P){let _=i.location.origin!=="null"?i.location.origin:i.location.href,B=typeof P=="string"?P:z9(P);return B=B.replace(/ $/,"%20"),oe(_,"No window.location.(origin|href) available to create URL for href: "+B),new URL(B,_)}let U={get action(){return o},get location(){return t(i,a)},listen(P){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(Sl,y),s=P,()=>{i.removeEventListener(Sl,y),s=null}},createHref(P){return e(i,P)},createURL:T,encodeLocation(P){let _=T(P);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:A,replace:C,go(P){return a.go(P)}};return U}var Pl;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Pl||(Pl={}));function Hg(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?ti(e):e,i=h4(n.pathname||"/",r);if(i==null)return null;let u=Hd(t);Kg(u);let a=null;for(let o=0;a==null&&o{let s={relativePath:o===void 0?u.path||"":o,caseSensitive:u.caseSensitive===!0,childrenIndex:a,route:u};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 c=U2([n,s.relativePath]),d=r.concat(s);u.children&&u.children.length>0&&(oe(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Hd(u.children,e,d,c)),!(u.path==null&&!u.index)&&e.push({path:c,score:Xg(c,u.index),routesMeta:d})};return t.forEach((u,a)=>{var o;if(u.path===""||!((o=u.path)!=null&&o.includes("?")))i(u,a);else for(let s of Kd(u.path))i(u,a,s)}),e}function Kd(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,i=r.endsWith("?"),u=r.replace(/\?$/,"");if(n.length===0)return i?[u,""]:[u];let a=Kd(n.join("/")),o=[];return o.push(...a.map(s=>s===""?u:[u,s].join("/"))),i&&o.push(...a),o.map(s=>t.startsWith("/")&&s===""?"/":s)}function Kg(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:Zg(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Gg=/^:[\w-]+$/,Wg=3,Vg=2,Jg=1,Qg=10,Yg=-2,Nl=t=>t==="*";function Xg(t,e){let r=t.split("/"),n=r.length;return r.some(Nl)&&(n+=Yg),e&&(n+=Vg),r.filter(i=>!Nl(i)).reduce((i,u)=>i+(Gg.test(u)?Wg:u===""?Jg:Qg),n)}function Zg(t,e){return t.length===e.length&&t.slice(0,-1).every((n,i)=>n===e[i])?t[t.length-1]-e[e.length-1]:0}function ex(t,e){let{routesMeta:r}=t,n={},i="/",u=[];for(let a=0;a{let{paramName:A,isOptional:C}=d;if(A==="*"){let U=o[y]||"";a=u.slice(0,u.length-U.length).replace(/(.)\/+$/,"$1")}const T=o[y];return C&&!T?c[A]=void 0:c[A]=(T||"").replace(/%2F/g,"/"),c},{}),pathname:u,pathnameBase:a,pattern:t}}function rx(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),qd(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,o,s)=>(n.push({paramName:o,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function nx(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return qd(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function h4(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function ix(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:i=""}=typeof t=="string"?ti(t):t;return{pathname:r?r.startsWith("/")?r:ux(r,e):e,search:sx(n),hash:lx(i)}}function ux(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Aa(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function ax(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function p4(t,e){let r=ax(t);return e?r.map((n,i)=>i===t.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function b4(t,e,r,n){n===void 0&&(n=!1);let i;typeof t=="string"?i=ti(t):(i=Bu({},t),oe(!i.pathname||!i.pathname.includes("?"),Aa("?","pathname","search",i)),oe(!i.pathname||!i.pathname.includes("#"),Aa("#","pathname","hash",i)),oe(!i.search||!i.search.includes("#"),Aa("#","search","hash",i)));let u=t===""||i.pathname==="",a=u?"/":i.pathname,o;if(a==null)o=r;else{let y=e.length-1;if(!n&&a.startsWith("..")){let A=a.split("/");for(;A[0]==="..";)A.shift(),y-=1;i.pathname=A.join("/")}o=y>=0?e[y]:"/"}let s=ix(i,o),c=a&&a!=="/"&&a.endsWith("/"),d=(u||a===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(c||d)&&(s.pathname+="/"),s}const U2=t=>t.join("/").replace(/\/\/+/g,"/"),ox=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),sx=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,lx=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function fx(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const Gd=["post","put","patch","delete"];new Set(Gd);const cx=["get",...Gd];new Set(cx);/** + */function Bu(){return Bu=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function qd(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function $g(){return Math.random().toString(36).substr(2,8)}function Pf(t,e){return{usr:t.state,key:t.key,idx:e}}function Go(t,e,r,n){return r===void 0&&(r=null),Bu({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?ti(e):e,{state:r,key:e&&e.key||n||$g()})}function z9(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ti(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function qg(t,e,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:u=!1}=n,a=i.history,o=E2.Pop,s=null,c=d();c==null&&(c=0,a.replaceState(Bu({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function y(){o=E2.Pop;let P=d(),_=P==null?null:P-c;c=P,s&&s({action:o,location:U.location,delta:_})}function A(P,_){o=E2.Push;let B=Go(U.location,P,_);c=d()+1;let N=Pf(B,c),W=U.createHref(B);try{a.pushState(N,"",W)}catch(G){if(G instanceof DOMException&&G.name==="DataCloneError")throw G;i.location.assign(W)}u&&s&&s({action:o,location:U.location,delta:1})}function C(P,_){o=E2.Replace;let B=Go(U.location,P,_);c=d();let N=Pf(B,c),W=U.createHref(B);a.replaceState(N,"",W),u&&s&&s({action:o,location:U.location,delta:0})}function T(P){let _=i.location.origin!=="null"?i.location.origin:i.location.href,B=typeof P=="string"?P:z9(P);return B=B.replace(/ $/,"%20"),oe(_,"No window.location.(origin|href) available to create URL for href: "+B),new URL(B,_)}let U={get action(){return o},get location(){return t(i,a)},listen(P){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(Tf,y),s=P,()=>{i.removeEventListener(Tf,y),s=null}},createHref(P){return e(i,P)},createURL:T,encodeLocation(P){let _=T(P);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:A,replace:C,go(P){return a.go(P)}};return U}var Nf;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Nf||(Nf={}));function Hg(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?ti(e):e,i=h4(n.pathname||"/",r);if(i==null)return null;let u=Hd(t);Kg(u);let a=null;for(let o=0;a==null&&o{let s={relativePath:o===void 0?u.path||"":o,caseSensitive:u.caseSensitive===!0,childrenIndex:a,route:u};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 c=U2([n,s.relativePath]),d=r.concat(s);u.children&&u.children.length>0&&(oe(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Hd(u.children,e,d,c)),!(u.path==null&&!u.index)&&e.push({path:c,score:Xg(c,u.index),routesMeta:d})};return t.forEach((u,a)=>{var o;if(u.path===""||!((o=u.path)!=null&&o.includes("?")))i(u,a);else for(let s of Kd(u.path))i(u,a,s)}),e}function Kd(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,i=r.endsWith("?"),u=r.replace(/\?$/,"");if(n.length===0)return i?[u,""]:[u];let a=Kd(n.join("/")),o=[];return o.push(...a.map(s=>s===""?u:[u,s].join("/"))),i&&o.push(...a),o.map(s=>t.startsWith("/")&&s===""?"/":s)}function Kg(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:Zg(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Gg=/^:[\w-]+$/,Wg=3,Vg=2,Jg=1,Qg=10,Yg=-2,Mf=t=>t==="*";function Xg(t,e){let r=t.split("/"),n=r.length;return r.some(Mf)&&(n+=Yg),e&&(n+=Vg),r.filter(i=>!Mf(i)).reduce((i,u)=>i+(Gg.test(u)?Wg:u===""?Jg:Qg),n)}function Zg(t,e){return t.length===e.length&&t.slice(0,-1).every((n,i)=>n===e[i])?t[t.length-1]-e[e.length-1]:0}function ex(t,e){let{routesMeta:r}=t,n={},i="/",u=[];for(let a=0;a{let{paramName:A,isOptional:C}=d;if(A==="*"){let U=o[y]||"";a=u.slice(0,u.length-U.length).replace(/(.)\/+$/,"$1")}const T=o[y];return C&&!T?c[A]=void 0:c[A]=(T||"").replace(/%2F/g,"/"),c},{}),pathname:u,pathnameBase:a,pattern:t}}function rx(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),qd(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,o,s)=>(n.push({paramName:o,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function nx(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return qd(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function h4(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function ix(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:i=""}=typeof t=="string"?ti(t):t;return{pathname:r?r.startsWith("/")?r:ux(r,e):e,search:sx(n),hash:fx(i)}}function ux(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Aa(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function ax(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function p4(t,e){let r=ax(t);return e?r.map((n,i)=>i===t.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function b4(t,e,r,n){n===void 0&&(n=!1);let i;typeof t=="string"?i=ti(t):(i=Bu({},t),oe(!i.pathname||!i.pathname.includes("?"),Aa("?","pathname","search",i)),oe(!i.pathname||!i.pathname.includes("#"),Aa("#","pathname","hash",i)),oe(!i.search||!i.search.includes("#"),Aa("#","search","hash",i)));let u=t===""||i.pathname==="",a=u?"/":i.pathname,o;if(a==null)o=r;else{let y=e.length-1;if(!n&&a.startsWith("..")){let A=a.split("/");for(;A[0]==="..";)A.shift(),y-=1;i.pathname=A.join("/")}o=y>=0?e[y]:"/"}let s=ix(i,o),c=a&&a!=="/"&&a.endsWith("/"),d=(u||a===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(c||d)&&(s.pathname+="/"),s}const U2=t=>t.join("/").replace(/\/\/+/g,"/"),ox=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),sx=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,fx=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function lx(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const Gd=["post","put","patch","delete"];new Set(Gd);const cx=["get",...Gd];new Set(cx);/** * React Router v6.22.3 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+u.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Du(){return Du=Object.assign?Object.assign.bind():function(t){for(var e=1;e{o.current=!0}),f0.useCallback(function(c,d){if(d===void 0&&(d={}),!o.current)return;if(typeof c=="number"){n.go(c);return}let y=b4(c,JSON.parse(a),u,d.relative==="path");t==null&&e!=="/"&&(y.pathname=y.pathname==="/"?e:U2([e,y.pathname])),(d.replace?n.replace:n.push)(y,d.state,d)},[e,n,a,u,t])}function bx(){let{matches:t}=f0.useContext(n2),e=t[t.length-1];return e?e.params:{}}function Jd(t,e){let{relative:r}=e===void 0?{}:e,{future:n}=f0.useContext(V2),{matches:i}=f0.useContext(n2),{pathname:u}=Vu(),a=JSON.stringify(p4(i,n.v7_relativeSplatPath));return f0.useMemo(()=>b4(t,JSON.parse(a),u,r==="path"),[t,a,u,r])}function mx(t,e){return yx(t,e)}function yx(t,e,r,n){ri()||oe(!1);let{navigator:i}=f0.useContext(V2),{matches:u}=f0.useContext(n2),a=u[u.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let c=Vu(),d;if(e){var y;let P=typeof e=="string"?ti(e):e;s==="/"||(y=P.pathname)!=null&&y.startsWith(s)||oe(!1),d=P}else d=c;let A=d.pathname||"/",C=A;if(s!=="/"){let P=s.replace(/^\//,"").split("/");C="/"+A.replace(/^\//,"").split("/").slice(P.length).join("/")}let T=Hg(t,{pathname:C}),U=wx(T&&T.map(P=>Object.assign({},P,{params:Object.assign({},o,P.params),pathname:U2([s,i.encodeLocation?i.encodeLocation(P.pathname).pathname:P.pathname]),pathnameBase:P.pathnameBase==="/"?s:U2([s,i.encodeLocation?i.encodeLocation(P.pathnameBase).pathname:P.pathnameBase])})),u,r,n);return e&&U?f0.createElement(B8.Provider,{value:{location:Du({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:E2.Pop}},U):U}function gx(){let t=Bx(),e=fx(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return f0.createElement(f0.Fragment,null,f0.createElement("h2",null,"Unexpected Application Error!"),f0.createElement("h3",{style:{fontStyle:"italic"}},e),r?f0.createElement("pre",{style:i},r):null,null)}const xx=f0.createElement(gx,null);class vx extends f0.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,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?f0.createElement(n2.Provider,{value:this.props.routeContext},f0.createElement(Wd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ax(t){let{routeContext:e,match:r,children:n}=t,i=f0.useContext(m4);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),f0.createElement(n2.Provider,{value:e},n)}function wx(t,e,r,n){var i;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var u;if((u=r)!=null&&u.errors)t=r.matches;else return null}let a=t,o=(i=r)==null?void 0:i.errors;if(o!=null){let d=a.findIndex(y=>y.route.id&&(o==null?void 0:o[y.route.id]));d>=0||oe(!1),a=a.slice(0,Math.min(a.length,d+1))}let s=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,y,A)=>{let C,T=!1,U=null,P=null;r&&(C=o&&y.route.id?o[y.route.id]:void 0,U=y.route.errorElement||xx,s&&(c<0&&A===0?(T=!0,P=null):c===A&&(T=!0,P=y.route.hydrateFallbackElement||null)));let _=e.concat(a.slice(0,A+1)),B=()=>{let N;return C?N=U:T?N=P:y.route.Component?N=f0.createElement(y.route.Component,null):y.route.element?N=y.route.element:N=d,f0.createElement(Ax,{match:y,routeContext:{outlet:d,matches:_,isDataRoute:r!=null},children:N})};return r&&(y.route.ErrorBoundary||y.route.errorElement||A===0)?f0.createElement(vx,{location:r.location,revalidation:r.revalidation,component:U,error:C,children:B(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):B()},null)}var Qd=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Qd||{}),$9=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}($9||{});function Ex(t){let e=f0.useContext(m4);return e||oe(!1),e}function Cx(t){let e=f0.useContext(dx);return e||oe(!1),e}function Fx(t){let e=f0.useContext(n2);return e||oe(!1),e}function Yd(t){let e=Fx(),r=e.matches[e.matches.length-1];return r.route.id||oe(!1),r.route.id}function Bx(){var t;let e=f0.useContext(Wd),r=Cx($9.UseRouteError),n=Yd($9.UseRouteError);return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}function Dx(){let{router:t}=Ex(Qd.UseNavigateStable),e=Yd($9.UseNavigateStable),r=f0.useRef(!1);return Vd(()=>{r.current=!0}),f0.useCallback(function(i,u){u===void 0&&(u={}),r.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,Du({fromRouteId:e},u)))},[t,e])}function _x(t){let{to:e,replace:r,state:n,relative:i}=t;ri()||oe(!1);let{future:u,static:a}=f0.useContext(V2),{matches:o}=f0.useContext(n2),{pathname:s}=Vu(),c=i2(),d=b4(e,p4(o,u.v7_relativeSplatPath),s,i==="path"),y=JSON.stringify(d);return f0.useEffect(()=>c(JSON.parse(y),{replace:r,state:n,relative:i}),[c,y,i,r,n]),null}function or(t){oe(!1)}function kx(t){let{basename:e="/",children:r=null,location:n,navigationType:i=E2.Pop,navigator:u,static:a=!1,future:o}=t;ri()&&oe(!1);let s=e.replace(/^\/*/,"/"),c=f0.useMemo(()=>({basename:s,navigator:u,static:a,future:Du({v7_relativeSplatPath:!1},o)}),[s,o,u,a]);typeof n=="string"&&(n=ti(n));let{pathname:d="/",search:y="",hash:A="",state:C=null,key:T="default"}=n,U=f0.useMemo(()=>{let P=h4(d,s);return P==null?null:{location:{pathname:P,search:y,hash:A,state:C,key:T},navigationType:i}},[s,d,y,A,C,T,i]);return U==null?null:f0.createElement(V2.Provider,{value:c},f0.createElement(B8.Provider,{children:r,value:U}))}function Sx(t){let{children:e,location:r}=t;return mx(Wo(e),r)}new Promise(()=>{});function Wo(t,e){e===void 0&&(e=[]);let r=[];return f0.Children.forEach(t,(n,i)=>{if(!f0.isValidElement(n))return;let u=[...e,i];if(n.type===f0.Fragment){r.push.apply(r,Wo(n.props.children,u));return}n.type!==or&&oe(!1),!n.props.index||!n.props.children||oe(!1);let a={id:n.props.id||u.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=Wo(n.props.children,u)),r.push(a)}),r}/** + */function Du(){return Du=Object.assign?Object.assign.bind():function(t){for(var e=1;e{o.current=!0}),l0.useCallback(function(c,d){if(d===void 0&&(d={}),!o.current)return;if(typeof c=="number"){n.go(c);return}let y=b4(c,JSON.parse(a),u,d.relative==="path");t==null&&e!=="/"&&(y.pathname=y.pathname==="/"?e:U2([e,y.pathname])),(d.replace?n.replace:n.push)(y,d.state,d)},[e,n,a,u,t])}function bx(){let{matches:t}=l0.useContext(n2),e=t[t.length-1];return e?e.params:{}}function Jd(t,e){let{relative:r}=e===void 0?{}:e,{future:n}=l0.useContext(V2),{matches:i}=l0.useContext(n2),{pathname:u}=Vu(),a=JSON.stringify(p4(i,n.v7_relativeSplatPath));return l0.useMemo(()=>b4(t,JSON.parse(a),u,r==="path"),[t,a,u,r])}function mx(t,e){return yx(t,e)}function yx(t,e,r,n){ri()||oe(!1);let{navigator:i}=l0.useContext(V2),{matches:u}=l0.useContext(n2),a=u[u.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let c=Vu(),d;if(e){var y;let P=typeof e=="string"?ti(e):e;s==="/"||(y=P.pathname)!=null&&y.startsWith(s)||oe(!1),d=P}else d=c;let A=d.pathname||"/",C=A;if(s!=="/"){let P=s.replace(/^\//,"").split("/");C="/"+A.replace(/^\//,"").split("/").slice(P.length).join("/")}let T=Hg(t,{pathname:C}),U=wx(T&&T.map(P=>Object.assign({},P,{params:Object.assign({},o,P.params),pathname:U2([s,i.encodeLocation?i.encodeLocation(P.pathname).pathname:P.pathname]),pathnameBase:P.pathnameBase==="/"?s:U2([s,i.encodeLocation?i.encodeLocation(P.pathnameBase).pathname:P.pathnameBase])})),u,r,n);return e&&U?l0.createElement(B8.Provider,{value:{location:Du({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:E2.Pop}},U):U}function gx(){let t=Bx(),e=lx(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return l0.createElement(l0.Fragment,null,l0.createElement("h2",null,"Unexpected Application Error!"),l0.createElement("h3",{style:{fontStyle:"italic"}},e),r?l0.createElement("pre",{style:i},r):null,null)}const xx=l0.createElement(gx,null);class vx extends l0.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,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?l0.createElement(n2.Provider,{value:this.props.routeContext},l0.createElement(Wd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ax(t){let{routeContext:e,match:r,children:n}=t,i=l0.useContext(m4);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),l0.createElement(n2.Provider,{value:e},n)}function wx(t,e,r,n){var i;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var u;if((u=r)!=null&&u.errors)t=r.matches;else return null}let a=t,o=(i=r)==null?void 0:i.errors;if(o!=null){let d=a.findIndex(y=>y.route.id&&(o==null?void 0:o[y.route.id]));d>=0||oe(!1),a=a.slice(0,Math.min(a.length,d+1))}let s=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,y,A)=>{let C,T=!1,U=null,P=null;r&&(C=o&&y.route.id?o[y.route.id]:void 0,U=y.route.errorElement||xx,s&&(c<0&&A===0?(T=!0,P=null):c===A&&(T=!0,P=y.route.hydrateFallbackElement||null)));let _=e.concat(a.slice(0,A+1)),B=()=>{let N;return C?N=U:T?N=P:y.route.Component?N=l0.createElement(y.route.Component,null):y.route.element?N=y.route.element:N=d,l0.createElement(Ax,{match:y,routeContext:{outlet:d,matches:_,isDataRoute:r!=null},children:N})};return r&&(y.route.ErrorBoundary||y.route.errorElement||A===0)?l0.createElement(vx,{location:r.location,revalidation:r.revalidation,component:U,error:C,children:B(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):B()},null)}var Qd=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Qd||{}),$9=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}($9||{});function Ex(t){let e=l0.useContext(m4);return e||oe(!1),e}function Cx(t){let e=l0.useContext(dx);return e||oe(!1),e}function Fx(t){let e=l0.useContext(n2);return e||oe(!1),e}function Yd(t){let e=Fx(),r=e.matches[e.matches.length-1];return r.route.id||oe(!1),r.route.id}function Bx(){var t;let e=l0.useContext(Wd),r=Cx($9.UseRouteError),n=Yd($9.UseRouteError);return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}function Dx(){let{router:t}=Ex(Qd.UseNavigateStable),e=Yd($9.UseNavigateStable),r=l0.useRef(!1);return Vd(()=>{r.current=!0}),l0.useCallback(function(i,u){u===void 0&&(u={}),r.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,Du({fromRouteId:e},u)))},[t,e])}function _x(t){let{to:e,replace:r,state:n,relative:i}=t;ri()||oe(!1);let{future:u,static:a}=l0.useContext(V2),{matches:o}=l0.useContext(n2),{pathname:s}=Vu(),c=i2(),d=b4(e,p4(o,u.v7_relativeSplatPath),s,i==="path"),y=JSON.stringify(d);return l0.useEffect(()=>c(JSON.parse(y),{replace:r,state:n,relative:i}),[c,y,i,r,n]),null}function or(t){oe(!1)}function kx(t){let{basename:e="/",children:r=null,location:n,navigationType:i=E2.Pop,navigator:u,static:a=!1,future:o}=t;ri()&&oe(!1);let s=e.replace(/^\/*/,"/"),c=l0.useMemo(()=>({basename:s,navigator:u,static:a,future:Du({v7_relativeSplatPath:!1},o)}),[s,o,u,a]);typeof n=="string"&&(n=ti(n));let{pathname:d="/",search:y="",hash:A="",state:C=null,key:T="default"}=n,U=l0.useMemo(()=>{let P=h4(d,s);return P==null?null:{location:{pathname:P,search:y,hash:A,state:C,key:T},navigationType:i}},[s,d,y,A,C,T,i]);return U==null?null:l0.createElement(V2.Provider,{value:c},l0.createElement(B8.Provider,{children:r,value:U}))}function Sx(t){let{children:e,location:r}=t;return mx(Wo(e),r)}new Promise(()=>{});function Wo(t,e){e===void 0&&(e=[]);let r=[];return l0.Children.forEach(t,(n,i)=>{if(!l0.isValidElement(n))return;let u=[...e,i];if(n.type===l0.Fragment){r.push.apply(r,Wo(n.props.children,u));return}n.type!==or&&oe(!1),!n.props.index||!n.props.children||oe(!1);let a={id:n.props.id||u.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=Wo(n.props.children,u)),r.push(a)}),r}/** * React Router DOM v6.22.3 * * Copyright (c) Remix Software Inc. @@ -64,14 +64,14 @@ Error generating stack: `+u.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Vo(){return Vo=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(r[i]=t[i]);return r}function Px(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Nx(t,e){return t.button===0&&(!e||e==="_self")&&!Px(t)}const Mx=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Ux="6";try{window.__reactRouterVersion=Ux}catch{}const Ix="startTransition",Ml=Tm[Ix];function Rx(t){let{basename:e,children:r,future:n,window:i}=t,u=f0.useRef();u.current==null&&(u.current=zg({window:i,v5Compat:!0}));let a=u.current,[o,s]=f0.useState({action:a.action,location:a.location}),{v7_startTransition:c}=n||{},d=f0.useCallback(y=>{c&&Ml?Ml(()=>s(y)):s(y)},[s,c]);return f0.useLayoutEffect(()=>a.listen(d),[a,d]),f0.createElement(kx,{basename:e,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}const Ox=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Lx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,y4=f0.forwardRef(function(e,r){let{onClick:n,relative:i,reloadDocument:u,replace:a,state:o,target:s,to:c,preventScrollReset:d,unstable_viewTransition:y}=e,A=Tx(e,Mx),{basename:C}=f0.useContext(V2),T,U=!1;if(typeof c=="string"&&Lx.test(c)&&(T=c,Ox))try{let N=new URL(window.location.href),W=c.startsWith("//")?new URL(N.protocol+c):new URL(c),G=h4(W.pathname,C);W.origin===N.origin&&G!=null?c=G+W.search+W.hash:U=!0}catch{}let P=hx(c,{relative:i}),_=jx(c,{replace:a,state:o,target:s,preventScrollReset:d,relative:i,unstable_viewTransition:y});function B(N){n&&n(N),N.defaultPrevented||_(N)}return f0.createElement("a",Vo({},A,{href:T||P,onClick:U||u?n:B,ref:r,target:s}))});var Ul;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Ul||(Ul={}));var Il;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Il||(Il={}));function jx(t,e){let{target:r,replace:n,state:i,preventScrollReset:u,relative:a,unstable_viewTransition:o}=e===void 0?{}:e,s=i2(),c=Vu(),d=Jd(t,{relative:a});return f0.useCallback(y=>{if(Nx(y,r)){y.preventDefault();let A=n!==void 0?n:z9(c)===z9(d);s(t,{replace:A,state:i,preventScrollReset:u,relative:a,unstable_viewTransition:o})}},[c,s,d,n,i,r,t,u,a,o])}var D8={},Vr={},Xd={};const zx="logger/5.7.0";let Rl=!1,Ol=!1;const s9={debug:1,default:2,info:2,warning:3,error:4,off:5};let Ll=s9.default,wa=null;function $x(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{t.push(e)}}),t.length)throw new Error("missing "+t.join(", "));if("é".normalize("NFD")!=="é")throw new Error("broken implementation")}catch(t){return t.message}return null}const jl=$x();var q9;(function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"})(q9||(q9={}));var Dt;(function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"})(Dt||(Dt={}));const zl="0123456789abcdef";class r0{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,r){const n=e.toLowerCase();s9[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(Ll>s9[n])&&console.log.apply(console,r)}debug(...e){this._log(r0.levels.DEBUG,e)}info(...e){this._log(r0.levels.INFO,e)}warn(...e){this._log(r0.levels.WARNING,e)}makeError(e,r,n){if(Ol)return this.makeError("censored error",r,{});r||(r=r0.errors.UNKNOWN_ERROR),n||(n={});const i=[];Object.keys(n).forEach(s=>{const c=n[s];try{if(c instanceof Uint8Array){let d="";for(let y=0;y>4],d+=zl[c[y]&15];i.push(s+"=Uint8Array(0x"+d+")")}else i.push(s+"="+JSON.stringify(c))}catch{i.push(s+"="+JSON.stringify(n[s].toString()))}}),i.push(`code=${r}`),i.push(`version=${this.version}`);const u=e;let a="";switch(r){case Dt.NUMERIC_FAULT:{a="NUMERIC_FAULT";const s=e;switch(s){case"overflow":case"underflow":case"division-by-zero":a+="-"+s;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result";break}break}case Dt.CALL_EXCEPTION:case Dt.INSUFFICIENT_FUNDS:case Dt.MISSING_NEW:case Dt.NONCE_EXPIRED:case Dt.REPLACEMENT_UNDERPRICED:case Dt.TRANSACTION_REPLACED:case Dt.UNPREDICTABLE_GAS_LIMIT:a=r;break}a&&(e+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),i.length&&(e+=" ("+i.join(", ")+")");const o=new Error(e);return o.reason=u,o.code=r,Object.keys(n).forEach(function(s){o[s]=n[s]}),o}throwError(e,r,n){throw this.makeError(e,r,n)}throwArgumentError(e,r,n){return this.throwError(e,r0.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(e,r,n,i){e||this.throwError(r,n,i)}assertArgument(e,r,n,i){e||this.throwArgumentError(r,n,i)}checkNormalize(e){jl&&this.throwError("platform missing String.prototype.normalize",r0.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:jl})}checkSafeUint53(e,r){typeof e=="number"&&(r==null&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,r0.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,r0.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,r,n){n?n=": "+n:n="",er&&this.throwError("too many arguments"+n,r0.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}checkNew(e,r){(e===Object||e==null)&&this.throwError("missing new",r0.errors.MISSING_NEW,{name:r.name})}checkAbstract(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",r0.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",r0.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return wa||(wa=new r0(zx)),wa}static setCensorship(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",r0.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Rl){if(!e)return;this.globalLogger().throwError("error censorship permanent",r0.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Ol=!!e,Rl=!!r}static setLogLevel(e){const r=s9[e.toLowerCase()];if(r==null){r0.globalLogger().warn("invalid log level - "+e);return}Ll=r}static from(e){return new r0(e)}}r0.errors=Dt;r0.levels=q9;const qx=Object.freeze(Object.defineProperty({__proto__:null,get ErrorCode(){return Dt},get LogLevel(){return q9},Logger:r0},Symbol.toStringTag,{value:"Module"})),Hx="bytes/5.7.0",ee=new r0(Hx);function Zd(t){return!!t.toHexString}function S6(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return S6(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function Ju(t){return s1(t)&&!(t.length%2)||J2(t)}function $l(t){return typeof t=="number"&&t==t&&t%1===0}function J2(t){if(t==null)return!1;if(t.constructor===Uint8Array)return!0;if(typeof t=="string"||!$l(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function k0(t,e){if(e||(e={}),typeof t=="number"){ee.checkSafeUint53(t,"invalid arrayify value");const r=[];for(;t;)r.unshift(t&255),t=parseInt(String(t/256));return r.length===0&&r.push(0),S6(new Uint8Array(r))}if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),Zd(t)&&(t=t.toHexString()),s1(t)){let r=t.substring(2);r.length%2&&(e.hexPad==="left"?r="0"+r:e.hexPad==="right"?r+="0":ee.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let i=0;ik0(i)),r=e.reduce((i,u)=>i+u.length,0),n=new Uint8Array(r);return e.reduce((i,u)=>(n.set(u,i),i+u.length),0),S6(n)}function Er(t){let e=k0(t);if(e.length===0)return e;let r=0;for(;re&&ee.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(e);return r.set(t,e-t.length),S6(r)}function s1(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}const Ea="0123456789abcdef";function N0(t,e){if(e||(e={}),typeof t=="number"){ee.checkSafeUint53(t,"invalid hexlify value");let r="";for(;t;)r=Ea[t&15]+r,t=Math.floor(t/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof t=="bigint")return t=t.toString(16),t.length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),Zd(t))return t.toHexString();if(s1(t))return t.length%2&&(e.hexPad==="left"?t="0x0"+t.substring(2):e.hexPad==="right"?t+="0":ee.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(J2(t)){let r="0x";for(let n=0;n>4]+Ea[i&15]}return r}return ee.throwArgumentError("invalid hexlify value","value",t)}function kr(t){if(typeof t!="string")t=N0(t);else if(!s1(t)||t.length%2)return null;return(t.length-2)/2}function ue(t,e,r){return typeof t!="string"?t=N0(t):(!s1(t)||t.length%2)&&ee.throwArgumentError("invalid hexData","value",t),e=2+2*e,r!=null?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function Ge(t){let e="0x";return t.forEach(r=>{e+=N0(r).substring(2)}),e}function Qu(t){const e=eh(N0(t,{hexPad:"left"}));return e==="0x"?"0x0":e}function eh(t){typeof t!="string"&&(t=N0(t)),s1(t)||ee.throwArgumentError("invalid hex string","value",t),t=t.substring(2);let e=0;for(;e2*e+2&&ee.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function In(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(Ju(t)){let r=k0(t);r.length===64?(e.v=27+(r[32]>>7),r[32]&=127,e.r=N0(r.slice(0,32)),e.s=N0(r.slice(32,64))):r.length===65?(e.r=N0(r.slice(0,32)),e.s=N0(r.slice(32,64)),e.v=r[64]):ee.throwArgumentError("invalid signature string","signature",t),e.v<27&&(e.v===0||e.v===1?e.v+=27:ee.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=N0(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,e._vs!=null){const i=Vi(k0(e._vs),32);e._vs=N0(i);const u=i[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=u:e.recoveryParam!==u&&ee.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),i[0]&=127;const a=N0(i);e.s==null?e.s=a:e.s!==a&&ee.throwArgumentError("signature v mismatch _vs","signature",t)}if(e.recoveryParam==null)e.v==null?ee.throwArgumentError("signature missing v and recoveryParam","signature",t):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{const i=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==i&&ee.throwArgumentError("signature recoveryParam mismatch v","signature",t)}e.r==null||!s1(e.r)?ee.throwArgumentError("signature missing or invalid r","signature",t):e.r=j1(e.r,32),e.s==null||!s1(e.s)?ee.throwArgumentError("signature missing or invalid s","signature",t):e.s=j1(e.s,32);const r=k0(e.s);r[0]>=128&&ee.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);const n=N0(r);e._vs&&(s1(e._vs)||ee.throwArgumentError("signature invalid _vs","signature",t),e._vs=j1(e._vs,32)),e._vs==null?e._vs=n:e._vs!==n&&ee.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function Jo(t){return t=In(t),N0(L1([t.r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}const Kx=Object.freeze(Object.defineProperty({__proto__:null,arrayify:k0,concat:L1,hexConcat:Ge,hexDataLength:kr,hexDataSlice:ue,hexStripZeros:eh,hexValue:Qu,hexZeroPad:j1,hexlify:N0,isBytes:J2,isBytesLike:Ju,isHexString:s1,joinSignature:Jo,splitSignature:In,stripZeros:Er,zeroPad:Vi},Symbol.toStringTag,{value:"Module"}));var g4={exports:{}};const Gx={},Wx=Object.freeze(Object.defineProperty({__proto__:null,default:Gx},Symbol.toStringTag,{value:"Module"})),Vx=z1(Wx);g4.exports;(function(t){(function(e,r){function n(j,p){if(!j)throw new Error(p||"Assertion failed")}function i(j,p){j.super_=p;var v=function(){};v.prototype=p.prototype,j.prototype=new v,j.prototype.constructor=j}function u(j,p,v){if(u.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((p==="le"||p==="be")&&(v=p,p=10),this._init(j||0,p||10,v||"be"))}typeof e=="object"?e.exports=u:r.BN=u,u.BN=u,u.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=Vx.Buffer}catch{}u.isBN=function(p){return p instanceof u?!0:p!==null&&typeof p=="object"&&p.constructor.wordSize===u.wordSize&&Array.isArray(p.words)},u.max=function(p,v){return p.cmp(v)>0?p:v},u.min=function(p,v){return p.cmp(v)<0?p:v},u.prototype._init=function(p,v,M){if(typeof p=="number")return this._initNumber(p,v,M);if(typeof p=="object")return this._initArray(p,v,M);v==="hex"&&(v=16),n(v===(v|0)&&v>=2&&v<=36),p=p.toString().replace(/\s+/g,"");var k=0;p[0]==="-"&&(k++,this.negative=1),k=0;k-=3)z=p[k]|p[k-1]<<8|p[k-2]<<16,this.words[I]|=z<>>26-V&67108863,V+=24,V>=26&&(V-=26,I++);else if(M==="le")for(k=0,I=0;k>>26-V&67108863,V+=24,V>=26&&(V-=26,I++);return this._strip()};function o(j,p){var v=j.charCodeAt(p);if(v>=48&&v<=57)return v-48;if(v>=65&&v<=70)return v-55;if(v>=97&&v<=102)return v-87;n(!1,"Invalid character in "+j)}function s(j,p,v){var M=o(j,v);return v-1>=p&&(M|=o(j,v-1)<<4),M}u.prototype._parseHex=function(p,v,M){this.length=Math.ceil((p.length-v)/6),this.words=new Array(this.length);for(var k=0;k=v;k-=2)V=s(p,v,k)<=18?(I-=18,z+=1,this.words[z]|=V>>>26):I+=8;else{var b=p.length-v;for(k=b%2===0?v+1:v;k=18?(I-=18,z+=1,this.words[z]|=V>>>26):I+=8}this._strip()};function c(j,p,v,M){for(var k=0,I=0,z=Math.min(j.length,v),V=p;V=49?I=b-49+10:b>=17?I=b-17+10:I=b,n(b>=0&&I1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},u.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{u.prototype[Symbol.for("nodejs.util.inspect.custom")]=y}catch{u.prototype.inspect=y}else u.prototype.inspect=y;function y(){return(this.red?""}var A=["","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"],C=[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],T=[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];u.prototype.toString=function(p,v){p=p||10,v=v|0||1;var M;if(p===16||p==="hex"){M="";for(var k=0,I=0,z=0;z>>24-k&16777215,k+=2,k>=26&&(k-=26,z--),I!==0||z!==this.length-1?M=A[6-b.length]+b+M:M=b+M}for(I!==0&&(M=I.toString(16)+M);M.length%v!==0;)M="0"+M;return this.negative!==0&&(M="-"+M),M}if(p===(p|0)&&p>=2&&p<=36){var f=C[p],m=T[p];M="";var D=this.clone();for(D.negative=0;!D.isZero();){var l=D.modrn(m).toString(p);D=D.idivn(m),D.isZero()?M=l+M:M=A[f-l.length]+l+M}for(this.isZero()&&(M="0"+M);M.length%v!==0;)M="0"+M;return this.negative!==0&&(M="-"+M),M}n(!1,"Base should be between 2 and 36")},u.prototype.toNumber=function(){var p=this.words[0];return this.length===2?p+=this.words[1]*67108864:this.length===3&&this.words[2]===1?p+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-p:p},u.prototype.toJSON=function(){return this.toString(16,2)},a&&(u.prototype.toBuffer=function(p,v){return this.toArrayLike(a,p,v)}),u.prototype.toArray=function(p,v){return this.toArrayLike(Array,p,v)};var U=function(p,v){return p.allocUnsafe?p.allocUnsafe(v):new p(v)};u.prototype.toArrayLike=function(p,v,M){this._strip();var k=this.byteLength(),I=M||Math.max(1,k);n(k<=I,"byte array longer than desired length"),n(I>0,"Requested array length <= 0");var z=U(p,I),V=v==="le"?"LE":"BE";return this["_toArrayLike"+V](z,k),z},u.prototype._toArrayLikeLE=function(p,v){for(var M=0,k=0,I=0,z=0;I>8&255),M>16&255),z===6?(M>24&255),k=0,z=0):(k=V>>>24,z+=2)}if(M=0&&(p[M--]=V>>8&255),M>=0&&(p[M--]=V>>16&255),z===6?(M>=0&&(p[M--]=V>>24&255),k=0,z=0):(k=V>>>24,z+=2)}if(M>=0)for(p[M--]=k;M>=0;)p[M--]=0},Math.clz32?u.prototype._countBits=function(p){return 32-Math.clz32(p)}:u.prototype._countBits=function(p){var v=p,M=0;return v>=4096&&(M+=13,v>>>=13),v>=64&&(M+=7,v>>>=7),v>=8&&(M+=4,v>>>=4),v>=2&&(M+=2,v>>>=2),M+v},u.prototype._zeroBits=function(p){if(p===0)return 26;var v=p,M=0;return v&8191||(M+=13,v>>>=13),v&127||(M+=7,v>>>=7),v&15||(M+=4,v>>>=4),v&3||(M+=2,v>>>=2),v&1||M++,M},u.prototype.bitLength=function(){var p=this.words[this.length-1],v=this._countBits(p);return(this.length-1)*26+v};function P(j){for(var p=new Array(j.bitLength()),v=0;v>>k&1}return p}u.prototype.zeroBits=function(){if(this.isZero())return 0;for(var p=0,v=0;vp.length?this.clone().ior(p):p.clone().ior(this)},u.prototype.uor=function(p){return this.length>p.length?this.clone().iuor(p):p.clone().iuor(this)},u.prototype.iuand=function(p){var v;this.length>p.length?v=p:v=this;for(var M=0;Mp.length?this.clone().iand(p):p.clone().iand(this)},u.prototype.uand=function(p){return this.length>p.length?this.clone().iuand(p):p.clone().iuand(this)},u.prototype.iuxor=function(p){var v,M;this.length>p.length?(v=this,M=p):(v=p,M=this);for(var k=0;kp.length?this.clone().ixor(p):p.clone().ixor(this)},u.prototype.uxor=function(p){return this.length>p.length?this.clone().iuxor(p):p.clone().iuxor(this)},u.prototype.inotn=function(p){n(typeof p=="number"&&p>=0);var v=Math.ceil(p/26)|0,M=p%26;this._expand(v),M>0&&v--;for(var k=0;k0&&(this.words[k]=~this.words[k]&67108863>>26-M),this._strip()},u.prototype.notn=function(p){return this.clone().inotn(p)},u.prototype.setn=function(p,v){n(typeof p=="number"&&p>=0);var M=p/26|0,k=p%26;return this._expand(M+1),v?this.words[M]=this.words[M]|1<p.length?(M=this,k=p):(M=p,k=this);for(var I=0,z=0;z>>26;for(;I!==0&&z>>26;if(this.length=M.length,I!==0)this.words[this.length]=I,this.length++;else if(M!==this)for(;zp.length?this.clone().iadd(p):p.clone().iadd(this)},u.prototype.isub=function(p){if(p.negative!==0){p.negative=0;var v=this.iadd(p);return p.negative=1,v._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(p),this.negative=1,this._normSign();var M=this.cmp(p);if(M===0)return this.negative=0,this.length=1,this.words[0]=0,this;var k,I;M>0?(k=this,I=p):(k=p,I=this);for(var z=0,V=0;V>26,this.words[V]=v&67108863;for(;z!==0&&V>26,this.words[V]=v&67108863;if(z===0&&V>>26,D=b&67108863,l=Math.min(f,p.length-1),S=Math.max(0,f-j.length+1);S<=l;S++){var O=f-S|0;k=j.words[O]|0,I=p.words[S]|0,z=k*I+D,m+=z/67108864|0,D=z&67108863}v.words[f]=D|0,b=m|0}return b!==0?v.words[f]=b|0:v.length--,v._strip()}var B=function(p,v,M){var k=p.words,I=v.words,z=M.words,V=0,b,f,m,D=k[0]|0,l=D&8191,S=D>>>13,O=k[1]|0,$=O&8191,H=O>>>13,n0=k[2]|0,u0=n0&8191,s0=n0>>>13,g0=k[3]|0,y0=g0&8191,_0=g0>>>13,z0=k[4]|0,M0=z0&8191,I0=z0>>>13,R0=k[5]|0,V0=R0&8191,G0=R0>>>13,X0=k[6]|0,$0=X0&8191,Z0=X0>>>13,p1=k[7]|0,l1=p1&8191,L=p1>>>13,x=k[8]|0,w=x&8191,q=x>>>13,i0=k[9]|0,l0=i0&8191,p0=i0>>>13,O0=I[0]|0,H0=O0&8191,K0=O0>>>13,Y0=I[1]|0,j0=Y0&8191,o1=Y0>>>13,be=I[2]|0,b1=be&8191,g1=be>>>13,ne=I[3]|0,e1=ne&8191,F1=ne>>>13,ce=I[4]|0,m1=ce&8191,f1=ce>>>13,ve=I[5]|0,d1=ve&8191,w1=ve>>>13,me=I[6]|0,E1=me&8191,S1=me>>>13,ze=I[7]|0,B1=ze&8191,T1=ze>>>13,se=I[8]|0,P1=se&8191,N1=se>>>13,Ze=I[9]|0,M1=Ze&8191,D1=Ze>>>13;M.negative=p.negative^v.negative,M.length=19,b=Math.imul(l,H0),f=Math.imul(l,K0),f=f+Math.imul(S,H0)|0,m=Math.imul(S,K0);var $e=(V+b|0)+((f&8191)<<13)|0;V=(m+(f>>>13)|0)+($e>>>26)|0,$e&=67108863,b=Math.imul($,H0),f=Math.imul($,K0),f=f+Math.imul(H,H0)|0,m=Math.imul(H,K0),b=b+Math.imul(l,j0)|0,f=f+Math.imul(l,o1)|0,f=f+Math.imul(S,j0)|0,m=m+Math.imul(S,o1)|0;var Z1=(V+b|0)+((f&8191)<<13)|0;V=(m+(f>>>13)|0)+(Z1>>>26)|0,Z1&=67108863,b=Math.imul(u0,H0),f=Math.imul(u0,K0),f=f+Math.imul(s0,H0)|0,m=Math.imul(s0,K0),b=b+Math.imul($,j0)|0,f=f+Math.imul($,o1)|0,f=f+Math.imul(H,j0)|0,m=m+Math.imul(H,o1)|0,b=b+Math.imul(l,b1)|0,f=f+Math.imul(l,g1)|0,f=f+Math.imul(S,b1)|0,m=m+Math.imul(S,g1)|0;var Ae=(V+b|0)+((f&8191)<<13)|0;V=(m+(f>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,b=Math.imul(y0,H0),f=Math.imul(y0,K0),f=f+Math.imul(_0,H0)|0,m=Math.imul(_0,K0),b=b+Math.imul(u0,j0)|0,f=f+Math.imul(u0,o1)|0,f=f+Math.imul(s0,j0)|0,m=m+Math.imul(s0,o1)|0,b=b+Math.imul($,b1)|0,f=f+Math.imul($,g1)|0,f=f+Math.imul(H,b1)|0,m=m+Math.imul(H,g1)|0,b=b+Math.imul(l,e1)|0,f=f+Math.imul(l,F1)|0,f=f+Math.imul(S,e1)|0,m=m+Math.imul(S,F1)|0;var we=(V+b|0)+((f&8191)<<13)|0;V=(m+(f>>>13)|0)+(we>>>26)|0,we&=67108863,b=Math.imul(M0,H0),f=Math.imul(M0,K0),f=f+Math.imul(I0,H0)|0,m=Math.imul(I0,K0),b=b+Math.imul(y0,j0)|0,f=f+Math.imul(y0,o1)|0,f=f+Math.imul(_0,j0)|0,m=m+Math.imul(_0,o1)|0,b=b+Math.imul(u0,b1)|0,f=f+Math.imul(u0,g1)|0,f=f+Math.imul(s0,b1)|0,m=m+Math.imul(s0,g1)|0,b=b+Math.imul($,e1)|0,f=f+Math.imul($,F1)|0,f=f+Math.imul(H,e1)|0,m=m+Math.imul(H,F1)|0,b=b+Math.imul(l,m1)|0,f=f+Math.imul(l,f1)|0,f=f+Math.imul(S,m1)|0,m=m+Math.imul(S,f1)|0;var t1=(V+b|0)+((f&8191)<<13)|0;V=(m+(f>>>13)|0)+(t1>>>26)|0,t1&=67108863,b=Math.imul(V0,H0),f=Math.imul(V0,K0),f=f+Math.imul(G0,H0)|0,m=Math.imul(G0,K0),b=b+Math.imul(M0,j0)|0,f=f+Math.imul(M0,o1)|0,f=f+Math.imul(I0,j0)|0,m=m+Math.imul(I0,o1)|0,b=b+Math.imul(y0,b1)|0,f=f+Math.imul(y0,g1)|0,f=f+Math.imul(_0,b1)|0,m=m+Math.imul(_0,g1)|0,b=b+Math.imul(u0,e1)|0,f=f+Math.imul(u0,F1)|0,f=f+Math.imul(s0,e1)|0,m=m+Math.imul(s0,F1)|0,b=b+Math.imul($,m1)|0,f=f+Math.imul($,f1)|0,f=f+Math.imul(H,m1)|0,m=m+Math.imul(H,f1)|0,b=b+Math.imul(l,d1)|0,f=f+Math.imul(l,w1)|0,f=f+Math.imul(S,d1)|0,m=m+Math.imul(S,w1)|0;var zn=(V+b|0)+((f&8191)<<13)|0;V=(m+(f>>>13)|0)+(zn>>>26)|0,zn&=67108863,b=Math.imul($0,H0),f=Math.imul($0,K0),f=f+Math.imul(Z0,H0)|0,m=Math.imul(Z0,K0),b=b+Math.imul(V0,j0)|0,f=f+Math.imul(V0,o1)|0,f=f+Math.imul(G0,j0)|0,m=m+Math.imul(G0,o1)|0,b=b+Math.imul(M0,b1)|0,f=f+Math.imul(M0,g1)|0,f=f+Math.imul(I0,b1)|0,m=m+Math.imul(I0,g1)|0,b=b+Math.imul(y0,e1)|0,f=f+Math.imul(y0,F1)|0,f=f+Math.imul(_0,e1)|0,m=m+Math.imul(_0,F1)|0,b=b+Math.imul(u0,m1)|0,f=f+Math.imul(u0,f1)|0,f=f+Math.imul(s0,m1)|0,m=m+Math.imul(s0,f1)|0,b=b+Math.imul($,d1)|0,f=f+Math.imul($,w1)|0,f=f+Math.imul(H,d1)|0,m=m+Math.imul(H,w1)|0,b=b+Math.imul(l,E1)|0,f=f+Math.imul(l,S1)|0,f=f+Math.imul(S,E1)|0,m=m+Math.imul(S,S1)|0;var ir=(V+b|0)+((f&8191)<<13)|0;V=(m+(f>>>13)|0)+(ir>>>26)|0,ir&=67108863,b=Math.imul(l1,H0),f=Math.imul(l1,K0),f=f+Math.imul(L,H0)|0,m=Math.imul(L,K0),b=b+Math.imul($0,j0)|0,f=f+Math.imul($0,o1)|0,f=f+Math.imul(Z0,j0)|0,m=m+Math.imul(Z0,o1)|0,b=b+Math.imul(V0,b1)|0,f=f+Math.imul(V0,g1)|0,f=f+Math.imul(G0,b1)|0,m=m+Math.imul(G0,g1)|0,b=b+Math.imul(M0,e1)|0,f=f+Math.imul(M0,F1)|0,f=f+Math.imul(I0,e1)|0,m=m+Math.imul(I0,F1)|0,b=b+Math.imul(y0,m1)|0,f=f+Math.imul(y0,f1)|0,f=f+Math.imul(_0,m1)|0,m=m+Math.imul(_0,f1)|0,b=b+Math.imul(u0,d1)|0,f=f+Math.imul(u0,w1)|0,f=f+Math.imul(s0,d1)|0,m=m+Math.imul(s0,w1)|0,b=b+Math.imul($,E1)|0,f=f+Math.imul($,S1)|0,f=f+Math.imul(H,E1)|0,m=m+Math.imul(H,S1)|0,b=b+Math.imul(l,B1)|0,f=f+Math.imul(l,T1)|0,f=f+Math.imul(S,B1)|0,m=m+Math.imul(S,T1)|0;var $n=(V+b|0)+((f&8191)<<13)|0;V=(m+(f>>>13)|0)+($n>>>26)|0,$n&=67108863,b=Math.imul(w,H0),f=Math.imul(w,K0),f=f+Math.imul(q,H0)|0,m=Math.imul(q,K0),b=b+Math.imul(l1,j0)|0,f=f+Math.imul(l1,o1)|0,f=f+Math.imul(L,j0)|0,m=m+Math.imul(L,o1)|0,b=b+Math.imul($0,b1)|0,f=f+Math.imul($0,g1)|0,f=f+Math.imul(Z0,b1)|0,m=m+Math.imul(Z0,g1)|0,b=b+Math.imul(V0,e1)|0,f=f+Math.imul(V0,F1)|0,f=f+Math.imul(G0,e1)|0,m=m+Math.imul(G0,F1)|0,b=b+Math.imul(M0,m1)|0,f=f+Math.imul(M0,f1)|0,f=f+Math.imul(I0,m1)|0,m=m+Math.imul(I0,f1)|0,b=b+Math.imul(y0,d1)|0,f=f+Math.imul(y0,w1)|0,f=f+Math.imul(_0,d1)|0,m=m+Math.imul(_0,w1)|0,b=b+Math.imul(u0,E1)|0,f=f+Math.imul(u0,S1)|0,f=f+Math.imul(s0,E1)|0,m=m+Math.imul(s0,S1)|0,b=b+Math.imul($,B1)|0,f=f+Math.imul($,T1)|0,f=f+Math.imul(H,B1)|0,m=m+Math.imul(H,T1)|0,b=b+Math.imul(l,P1)|0,f=f+Math.imul(l,N1)|0,f=f+Math.imul(S,P1)|0,m=m+Math.imul(S,N1)|0;var en=(V+b|0)+((f&8191)<<13)|0;V=(m+(f>>>13)|0)+(en>>>26)|0,en&=67108863,b=Math.imul(l0,H0),f=Math.imul(l0,K0),f=f+Math.imul(p0,H0)|0,m=Math.imul(p0,K0),b=b+Math.imul(w,j0)|0,f=f+Math.imul(w,o1)|0,f=f+Math.imul(q,j0)|0,m=m+Math.imul(q,o1)|0,b=b+Math.imul(l1,b1)|0,f=f+Math.imul(l1,g1)|0,f=f+Math.imul(L,b1)|0,m=m+Math.imul(L,g1)|0,b=b+Math.imul($0,e1)|0,f=f+Math.imul($0,F1)|0,f=f+Math.imul(Z0,e1)|0,m=m+Math.imul(Z0,F1)|0,b=b+Math.imul(V0,m1)|0,f=f+Math.imul(V0,f1)|0,f=f+Math.imul(G0,m1)|0,m=m+Math.imul(G0,f1)|0,b=b+Math.imul(M0,d1)|0,f=f+Math.imul(M0,w1)|0,f=f+Math.imul(I0,d1)|0,m=m+Math.imul(I0,w1)|0,b=b+Math.imul(y0,E1)|0,f=f+Math.imul(y0,S1)|0,f=f+Math.imul(_0,E1)|0,m=m+Math.imul(_0,S1)|0,b=b+Math.imul(u0,B1)|0,f=f+Math.imul(u0,T1)|0,f=f+Math.imul(s0,B1)|0,m=m+Math.imul(s0,T1)|0,b=b+Math.imul($,P1)|0,f=f+Math.imul($,N1)|0,f=f+Math.imul(H,P1)|0,m=m+Math.imul(H,N1)|0,b=b+Math.imul(l,M1)|0,f=f+Math.imul(l,D1)|0,f=f+Math.imul(S,M1)|0,m=m+Math.imul(S,D1)|0;var tn=(V+b|0)+((f&8191)<<13)|0;V=(m+(f>>>13)|0)+(tn>>>26)|0,tn&=67108863,b=Math.imul(l0,j0),f=Math.imul(l0,o1),f=f+Math.imul(p0,j0)|0,m=Math.imul(p0,o1),b=b+Math.imul(w,b1)|0,f=f+Math.imul(w,g1)|0,f=f+Math.imul(q,b1)|0,m=m+Math.imul(q,g1)|0,b=b+Math.imul(l1,e1)|0,f=f+Math.imul(l1,F1)|0,f=f+Math.imul(L,e1)|0,m=m+Math.imul(L,F1)|0,b=b+Math.imul($0,m1)|0,f=f+Math.imul($0,f1)|0,f=f+Math.imul(Z0,m1)|0,m=m+Math.imul(Z0,f1)|0,b=b+Math.imul(V0,d1)|0,f=f+Math.imul(V0,w1)|0,f=f+Math.imul(G0,d1)|0,m=m+Math.imul(G0,w1)|0,b=b+Math.imul(M0,E1)|0,f=f+Math.imul(M0,S1)|0,f=f+Math.imul(I0,E1)|0,m=m+Math.imul(I0,S1)|0,b=b+Math.imul(y0,B1)|0,f=f+Math.imul(y0,T1)|0,f=f+Math.imul(_0,B1)|0,m=m+Math.imul(_0,T1)|0,b=b+Math.imul(u0,P1)|0,f=f+Math.imul(u0,N1)|0,f=f+Math.imul(s0,P1)|0,m=m+Math.imul(s0,N1)|0,b=b+Math.imul($,M1)|0,f=f+Math.imul($,D1)|0,f=f+Math.imul(H,M1)|0,m=m+Math.imul(H,D1)|0;var qn=(V+b|0)+((f&8191)<<13)|0;V=(m+(f>>>13)|0)+(qn>>>26)|0,qn&=67108863,b=Math.imul(l0,b1),f=Math.imul(l0,g1),f=f+Math.imul(p0,b1)|0,m=Math.imul(p0,g1),b=b+Math.imul(w,e1)|0,f=f+Math.imul(w,F1)|0,f=f+Math.imul(q,e1)|0,m=m+Math.imul(q,F1)|0,b=b+Math.imul(l1,m1)|0,f=f+Math.imul(l1,f1)|0,f=f+Math.imul(L,m1)|0,m=m+Math.imul(L,f1)|0,b=b+Math.imul($0,d1)|0,f=f+Math.imul($0,w1)|0,f=f+Math.imul(Z0,d1)|0,m=m+Math.imul(Z0,w1)|0,b=b+Math.imul(V0,E1)|0,f=f+Math.imul(V0,S1)|0,f=f+Math.imul(G0,E1)|0,m=m+Math.imul(G0,S1)|0,b=b+Math.imul(M0,B1)|0,f=f+Math.imul(M0,T1)|0,f=f+Math.imul(I0,B1)|0,m=m+Math.imul(I0,T1)|0,b=b+Math.imul(y0,P1)|0,f=f+Math.imul(y0,N1)|0,f=f+Math.imul(_0,P1)|0,m=m+Math.imul(_0,N1)|0,b=b+Math.imul(u0,M1)|0,f=f+Math.imul(u0,D1)|0,f=f+Math.imul(s0,M1)|0,m=m+Math.imul(s0,D1)|0;var Hn=(V+b|0)+((f&8191)<<13)|0;V=(m+(f>>>13)|0)+(Hn>>>26)|0,Hn&=67108863,b=Math.imul(l0,e1),f=Math.imul(l0,F1),f=f+Math.imul(p0,e1)|0,m=Math.imul(p0,F1),b=b+Math.imul(w,m1)|0,f=f+Math.imul(w,f1)|0,f=f+Math.imul(q,m1)|0,m=m+Math.imul(q,f1)|0,b=b+Math.imul(l1,d1)|0,f=f+Math.imul(l1,w1)|0,f=f+Math.imul(L,d1)|0,m=m+Math.imul(L,w1)|0,b=b+Math.imul($0,E1)|0,f=f+Math.imul($0,S1)|0,f=f+Math.imul(Z0,E1)|0,m=m+Math.imul(Z0,S1)|0,b=b+Math.imul(V0,B1)|0,f=f+Math.imul(V0,T1)|0,f=f+Math.imul(G0,B1)|0,m=m+Math.imul(G0,T1)|0,b=b+Math.imul(M0,P1)|0,f=f+Math.imul(M0,N1)|0,f=f+Math.imul(I0,P1)|0,m=m+Math.imul(I0,N1)|0,b=b+Math.imul(y0,M1)|0,f=f+Math.imul(y0,D1)|0,f=f+Math.imul(_0,M1)|0,m=m+Math.imul(_0,D1)|0;var rn=(V+b|0)+((f&8191)<<13)|0;V=(m+(f>>>13)|0)+(rn>>>26)|0,rn&=67108863,b=Math.imul(l0,m1),f=Math.imul(l0,f1),f=f+Math.imul(p0,m1)|0,m=Math.imul(p0,f1),b=b+Math.imul(w,d1)|0,f=f+Math.imul(w,w1)|0,f=f+Math.imul(q,d1)|0,m=m+Math.imul(q,w1)|0,b=b+Math.imul(l1,E1)|0,f=f+Math.imul(l1,S1)|0,f=f+Math.imul(L,E1)|0,m=m+Math.imul(L,S1)|0,b=b+Math.imul($0,B1)|0,f=f+Math.imul($0,T1)|0,f=f+Math.imul(Z0,B1)|0,m=m+Math.imul(Z0,T1)|0,b=b+Math.imul(V0,P1)|0,f=f+Math.imul(V0,N1)|0,f=f+Math.imul(G0,P1)|0,m=m+Math.imul(G0,N1)|0,b=b+Math.imul(M0,M1)|0,f=f+Math.imul(M0,D1)|0,f=f+Math.imul(I0,M1)|0,m=m+Math.imul(I0,D1)|0;var Ee=(V+b|0)+((f&8191)<<13)|0;V=(m+(f>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,b=Math.imul(l0,d1),f=Math.imul(l0,w1),f=f+Math.imul(p0,d1)|0,m=Math.imul(p0,w1),b=b+Math.imul(w,E1)|0,f=f+Math.imul(w,S1)|0,f=f+Math.imul(q,E1)|0,m=m+Math.imul(q,S1)|0,b=b+Math.imul(l1,B1)|0,f=f+Math.imul(l1,T1)|0,f=f+Math.imul(L,B1)|0,m=m+Math.imul(L,T1)|0,b=b+Math.imul($0,P1)|0,f=f+Math.imul($0,N1)|0,f=f+Math.imul(Z0,P1)|0,m=m+Math.imul(Z0,N1)|0,b=b+Math.imul(V0,M1)|0,f=f+Math.imul(V0,D1)|0,f=f+Math.imul(G0,M1)|0,m=m+Math.imul(G0,D1)|0;var c1=(V+b|0)+((f&8191)<<13)|0;V=(m+(f>>>13)|0)+(c1>>>26)|0,c1&=67108863,b=Math.imul(l0,E1),f=Math.imul(l0,S1),f=f+Math.imul(p0,E1)|0,m=Math.imul(p0,S1),b=b+Math.imul(w,B1)|0,f=f+Math.imul(w,T1)|0,f=f+Math.imul(q,B1)|0,m=m+Math.imul(q,T1)|0,b=b+Math.imul(l1,P1)|0,f=f+Math.imul(l1,N1)|0,f=f+Math.imul(L,P1)|0,m=m+Math.imul(L,N1)|0,b=b+Math.imul($0,M1)|0,f=f+Math.imul($0,D1)|0,f=f+Math.imul(Z0,M1)|0,m=m+Math.imul(Z0,D1)|0;var Kn=(V+b|0)+((f&8191)<<13)|0;V=(m+(f>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,b=Math.imul(l0,B1),f=Math.imul(l0,T1),f=f+Math.imul(p0,B1)|0,m=Math.imul(p0,T1),b=b+Math.imul(w,P1)|0,f=f+Math.imul(w,N1)|0,f=f+Math.imul(q,P1)|0,m=m+Math.imul(q,N1)|0,b=b+Math.imul(l1,M1)|0,f=f+Math.imul(l1,D1)|0,f=f+Math.imul(L,M1)|0,m=m+Math.imul(L,D1)|0;var nn=(V+b|0)+((f&8191)<<13)|0;V=(m+(f>>>13)|0)+(nn>>>26)|0,nn&=67108863,b=Math.imul(l0,P1),f=Math.imul(l0,N1),f=f+Math.imul(p0,P1)|0,m=Math.imul(p0,N1),b=b+Math.imul(w,M1)|0,f=f+Math.imul(w,D1)|0,f=f+Math.imul(q,M1)|0,m=m+Math.imul(q,D1)|0;var un=(V+b|0)+((f&8191)<<13)|0;V=(m+(f>>>13)|0)+(un>>>26)|0,un&=67108863,b=Math.imul(l0,M1),f=Math.imul(l0,D1),f=f+Math.imul(p0,M1)|0,m=Math.imul(p0,D1);var hi=(V+b|0)+((f&8191)<<13)|0;return V=(m+(f>>>13)|0)+(hi>>>26)|0,hi&=67108863,z[0]=$e,z[1]=Z1,z[2]=Ae,z[3]=we,z[4]=t1,z[5]=zn,z[6]=ir,z[7]=$n,z[8]=en,z[9]=tn,z[10]=qn,z[11]=Hn,z[12]=rn,z[13]=Ee,z[14]=c1,z[15]=Kn,z[16]=nn,z[17]=un,z[18]=hi,V!==0&&(z[19]=V,M.length++),M};Math.imul||(B=_);function N(j,p,v){v.negative=p.negative^j.negative,v.length=j.length+p.length;for(var M=0,k=0,I=0;I>>26)|0,k+=z>>>26,z&=67108863}v.words[I]=V,M=z,z=k}return M!==0?v.words[I]=M:v.length--,v._strip()}function W(j,p,v){return N(j,p,v)}u.prototype.mulTo=function(p,v){var M,k=this.length+p.length;return this.length===10&&p.length===10?M=B(this,p,v):k<63?M=_(this,p,v):k<1024?M=N(this,p,v):M=W(this,p,v),M},u.prototype.mul=function(p){var v=new u(null);return v.words=new Array(this.length+p.length),this.mulTo(p,v)},u.prototype.mulf=function(p){var v=new u(null);return v.words=new Array(this.length+p.length),W(this,p,v)},u.prototype.imul=function(p){return this.clone().mulTo(p,this)},u.prototype.imuln=function(p){var v=p<0;v&&(p=-p),n(typeof p=="number"),n(p<67108864);for(var M=0,k=0;k>=26,M+=I/67108864|0,M+=z>>>26,this.words[k]=z&67108863}return M!==0&&(this.words[k]=M,this.length++),v?this.ineg():this},u.prototype.muln=function(p){return this.clone().imuln(p)},u.prototype.sqr=function(){return this.mul(this)},u.prototype.isqr=function(){return this.imul(this.clone())},u.prototype.pow=function(p){var v=P(p);if(v.length===0)return new u(1);for(var M=this,k=0;k=0);var v=p%26,M=(p-v)/26,k=67108863>>>26-v<<26-v,I;if(v!==0){var z=0;for(I=0;I>>26-v}z&&(this.words[I]=z,this.length++)}if(M!==0){for(I=this.length-1;I>=0;I--)this.words[I+M]=this.words[I];for(I=0;I=0);var k;v?k=(v-v%26)/26:k=0;var I=p%26,z=Math.min((p-I)/26,this.length),V=67108863^67108863>>>I<z)for(this.length-=z,f=0;f=0&&(m!==0||f>=k);f--){var D=this.words[f]|0;this.words[f]=m<<26-I|D>>>I,m=D&V}return b&&m!==0&&(b.words[b.length++]=m),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},u.prototype.ishrn=function(p,v,M){return n(this.negative===0),this.iushrn(p,v,M)},u.prototype.shln=function(p){return this.clone().ishln(p)},u.prototype.ushln=function(p){return this.clone().iushln(p)},u.prototype.shrn=function(p){return this.clone().ishrn(p)},u.prototype.ushrn=function(p){return this.clone().iushrn(p)},u.prototype.testn=function(p){n(typeof p=="number"&&p>=0);var v=p%26,M=(p-v)/26,k=1<=0);var v=p%26,M=(p-v)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=M)return this;if(v!==0&&M++,this.length=Math.min(M,this.length),v!==0){var k=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},u.prototype.isubn=function(p){if(n(typeof p=="number"),n(p<67108864),p<0)return this.iaddn(-p);if(this.negative!==0)return this.negative=0,this.iaddn(p),this.negative=1,this;if(this.words[0]-=p,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-(b/67108864|0),this.words[I+M]=z&67108863}for(;I>26,this.words[I+M]=z&67108863;if(V===0)return this._strip();for(n(V===-1),V=0,I=0;I>26,this.words[I]=z&67108863;return this.negative=1,this._strip()},u.prototype._wordDiv=function(p,v){var M=this.length-p.length,k=this.clone(),I=p,z=I.words[I.length-1]|0,V=this._countBits(z);M=26-V,M!==0&&(I=I.ushln(M),k.iushln(M),z=I.words[I.length-1]|0);var b=k.length-I.length,f;if(v!=="mod"){f=new u(null),f.length=b+1,f.words=new Array(f.length);for(var m=0;m=0;l--){var S=(k.words[I.length+l]|0)*67108864+(k.words[I.length+l-1]|0);for(S=Math.min(S/z|0,67108863),k._ishlnsubmul(I,S,l);k.negative!==0;)S--,k.negative=0,k._ishlnsubmul(I,1,l),k.isZero()||(k.negative^=1);f&&(f.words[l]=S)}return f&&f._strip(),k._strip(),v!=="div"&&M!==0&&k.iushrn(M),{div:f||null,mod:k}},u.prototype.divmod=function(p,v,M){if(n(!p.isZero()),this.isZero())return{div:new u(0),mod:new u(0)};var k,I,z;return this.negative!==0&&p.negative===0?(z=this.neg().divmod(p,v),v!=="mod"&&(k=z.div.neg()),v!=="div"&&(I=z.mod.neg(),M&&I.negative!==0&&I.iadd(p)),{div:k,mod:I}):this.negative===0&&p.negative!==0?(z=this.divmod(p.neg(),v),v!=="mod"&&(k=z.div.neg()),{div:k,mod:z.mod}):this.negative&p.negative?(z=this.neg().divmod(p.neg(),v),v!=="div"&&(I=z.mod.neg(),M&&I.negative!==0&&I.isub(p)),{div:z.div,mod:I}):p.length>this.length||this.cmp(p)<0?{div:new u(0),mod:this}:p.length===1?v==="div"?{div:this.divn(p.words[0]),mod:null}:v==="mod"?{div:null,mod:new u(this.modrn(p.words[0]))}:{div:this.divn(p.words[0]),mod:new u(this.modrn(p.words[0]))}:this._wordDiv(p,v)},u.prototype.div=function(p){return this.divmod(p,"div",!1).div},u.prototype.mod=function(p){return this.divmod(p,"mod",!1).mod},u.prototype.umod=function(p){return this.divmod(p,"mod",!0).mod},u.prototype.divRound=function(p){var v=this.divmod(p);if(v.mod.isZero())return v.div;var M=v.div.negative!==0?v.mod.isub(p):v.mod,k=p.ushrn(1),I=p.andln(1),z=M.cmp(k);return z<0||I===1&&z===0?v.div:v.div.negative!==0?v.div.isubn(1):v.div.iaddn(1)},u.prototype.modrn=function(p){var v=p<0;v&&(p=-p),n(p<=67108863);for(var M=(1<<26)%p,k=0,I=this.length-1;I>=0;I--)k=(M*k+(this.words[I]|0))%p;return v?-k:k},u.prototype.modn=function(p){return this.modrn(p)},u.prototype.idivn=function(p){var v=p<0;v&&(p=-p),n(p<=67108863);for(var M=0,k=this.length-1;k>=0;k--){var I=(this.words[k]|0)+M*67108864;this.words[k]=I/p|0,M=I%p}return this._strip(),v?this.ineg():this},u.prototype.divn=function(p){return this.clone().idivn(p)},u.prototype.egcd=function(p){n(p.negative===0),n(!p.isZero());var v=this,M=p.clone();v.negative!==0?v=v.umod(p):v=v.clone();for(var k=new u(1),I=new u(0),z=new u(0),V=new u(1),b=0;v.isEven()&&M.isEven();)v.iushrn(1),M.iushrn(1),++b;for(var f=M.clone(),m=v.clone();!v.isZero();){for(var D=0,l=1;!(v.words[0]&l)&&D<26;++D,l<<=1);if(D>0)for(v.iushrn(D);D-- >0;)(k.isOdd()||I.isOdd())&&(k.iadd(f),I.isub(m)),k.iushrn(1),I.iushrn(1);for(var S=0,O=1;!(M.words[0]&O)&&S<26;++S,O<<=1);if(S>0)for(M.iushrn(S);S-- >0;)(z.isOdd()||V.isOdd())&&(z.iadd(f),V.isub(m)),z.iushrn(1),V.iushrn(1);v.cmp(M)>=0?(v.isub(M),k.isub(z),I.isub(V)):(M.isub(v),z.isub(k),V.isub(I))}return{a:z,b:V,gcd:M.iushln(b)}},u.prototype._invmp=function(p){n(p.negative===0),n(!p.isZero());var v=this,M=p.clone();v.negative!==0?v=v.umod(p):v=v.clone();for(var k=new u(1),I=new u(0),z=M.clone();v.cmpn(1)>0&&M.cmpn(1)>0;){for(var V=0,b=1;!(v.words[0]&b)&&V<26;++V,b<<=1);if(V>0)for(v.iushrn(V);V-- >0;)k.isOdd()&&k.iadd(z),k.iushrn(1);for(var f=0,m=1;!(M.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(M.iushrn(f);f-- >0;)I.isOdd()&&I.iadd(z),I.iushrn(1);v.cmp(M)>=0?(v.isub(M),k.isub(I)):(M.isub(v),I.isub(k))}var D;return v.cmpn(1)===0?D=k:D=I,D.cmpn(0)<0&&D.iadd(p),D},u.prototype.gcd=function(p){if(this.isZero())return p.abs();if(p.isZero())return this.abs();var v=this.clone(),M=p.clone();v.negative=0,M.negative=0;for(var k=0;v.isEven()&&M.isEven();k++)v.iushrn(1),M.iushrn(1);do{for(;v.isEven();)v.iushrn(1);for(;M.isEven();)M.iushrn(1);var I=v.cmp(M);if(I<0){var z=v;v=M,M=z}else if(I===0||M.cmpn(1)===0)break;v.isub(M)}while(!0);return M.iushln(k)},u.prototype.invm=function(p){return this.egcd(p).a.umod(p)},u.prototype.isEven=function(){return(this.words[0]&1)===0},u.prototype.isOdd=function(){return(this.words[0]&1)===1},u.prototype.andln=function(p){return this.words[0]&p},u.prototype.bincn=function(p){n(typeof p=="number");var v=p%26,M=(p-v)/26,k=1<>>26,V&=67108863,this.words[z]=V}return I!==0&&(this.words[z]=I,this.length++),this},u.prototype.isZero=function(){return this.length===1&&this.words[0]===0},u.prototype.cmpn=function(p){var v=p<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;this._strip();var M;if(this.length>1)M=1;else{v&&(p=-p),n(p<=67108863,"Number is too big");var k=this.words[0]|0;M=k===p?0:kp.length)return 1;if(this.length=0;M--){var k=this.words[M]|0,I=p.words[M]|0;if(k!==I){kI&&(v=1);break}}return v},u.prototype.gtn=function(p){return this.cmpn(p)===1},u.prototype.gt=function(p){return this.cmp(p)===1},u.prototype.gten=function(p){return this.cmpn(p)>=0},u.prototype.gte=function(p){return this.cmp(p)>=0},u.prototype.ltn=function(p){return this.cmpn(p)===-1},u.prototype.lt=function(p){return this.cmp(p)===-1},u.prototype.lten=function(p){return this.cmpn(p)<=0},u.prototype.lte=function(p){return this.cmp(p)<=0},u.prototype.eqn=function(p){return this.cmpn(p)===0},u.prototype.eq=function(p){return this.cmp(p)===0},u.red=function(p){return new c0(p)},u.prototype.toRed=function(p){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),p.convertTo(this)._forceRed(p)},u.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},u.prototype._forceRed=function(p){return this.red=p,this},u.prototype.forceRed=function(p){return n(!this.red,"Already a number in reduction context"),this._forceRed(p)},u.prototype.redAdd=function(p){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,p)},u.prototype.redIAdd=function(p){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,p)},u.prototype.redSub=function(p){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,p)},u.prototype.redISub=function(p){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,p)},u.prototype.redShl=function(p){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,p)},u.prototype.redMul=function(p){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,p),this.red.mul(this,p)},u.prototype.redIMul=function(p){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,p),this.red.imul(this,p)},u.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},u.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},u.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},u.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},u.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},u.prototype.redPow=function(p){return n(this.red&&!p.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,p)};var G={k256:null,p224:null,p192:null,p25519:null};function t0(j,p){this.name=j,this.p=new u(p,16),this.n=this.p.bitLength(),this.k=new u(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}t0.prototype._tmp=function(){var p=new u(null);return p.words=new Array(Math.ceil(this.n/13)),p},t0.prototype.ireduce=function(p){var v=p,M;do this.split(v,this.tmp),v=this.imulK(v),v=v.iadd(this.tmp),M=v.bitLength();while(M>this.n);var k=M0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},t0.prototype.split=function(p,v){p.iushrn(this.n,0,v)},t0.prototype.imulK=function(p){return p.imul(this.k)};function Z(){t0.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(Z,t0),Z.prototype.split=function(p,v){for(var M=4194303,k=Math.min(p.length,9),I=0;I>>22,z=V}z>>>=22,p.words[I-10]=z,z===0&&p.length>10?p.length-=10:p.length-=9},Z.prototype.imulK=function(p){p.words[p.length]=0,p.words[p.length+1]=0,p.length+=2;for(var v=0,M=0;M>>=26,p.words[M]=I,v=k}return v!==0&&(p.words[p.length++]=v),p},u._prime=function(p){if(G[p])return G[p];var v;if(p==="k256")v=new Z;else if(p==="p224")v=new e0;else if(p==="p192")v=new o0;else if(p==="p25519")v=new d0;else throw new Error("Unknown prime "+p);return G[p]=v,v};function c0(j){if(typeof j=="string"){var p=u._prime(j);this.m=p.p,this.prime=p}else n(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}c0.prototype._verify1=function(p){n(p.negative===0,"red works only with positives"),n(p.red,"red works only with red numbers")},c0.prototype._verify2=function(p,v){n((p.negative|v.negative)===0,"red works only with positives"),n(p.red&&p.red===v.red,"red works only with red numbers")},c0.prototype.imod=function(p){return this.prime?this.prime.ireduce(p)._forceRed(this):(d(p,p.umod(this.m)._forceRed(this)),p)},c0.prototype.neg=function(p){return p.isZero()?p.clone():this.m.sub(p)._forceRed(this)},c0.prototype.add=function(p,v){this._verify2(p,v);var M=p.add(v);return M.cmp(this.m)>=0&&M.isub(this.m),M._forceRed(this)},c0.prototype.iadd=function(p,v){this._verify2(p,v);var M=p.iadd(v);return M.cmp(this.m)>=0&&M.isub(this.m),M},c0.prototype.sub=function(p,v){this._verify2(p,v);var M=p.sub(v);return M.cmpn(0)<0&&M.iadd(this.m),M._forceRed(this)},c0.prototype.isub=function(p,v){this._verify2(p,v);var M=p.isub(v);return M.cmpn(0)<0&&M.iadd(this.m),M},c0.prototype.shl=function(p,v){return this._verify1(p),this.imod(p.ushln(v))},c0.prototype.imul=function(p,v){return this._verify2(p,v),this.imod(p.imul(v))},c0.prototype.mul=function(p,v){return this._verify2(p,v),this.imod(p.mul(v))},c0.prototype.isqr=function(p){return this.imul(p,p.clone())},c0.prototype.sqr=function(p){return this.mul(p,p)},c0.prototype.sqrt=function(p){if(p.isZero())return p.clone();var v=this.m.andln(3);if(n(v%2===1),v===3){var M=this.m.add(new u(1)).iushrn(2);return this.pow(p,M)}for(var k=this.m.subn(1),I=0;!k.isZero()&&k.andln(1)===0;)I++,k.iushrn(1);n(!k.isZero());var z=new u(1).toRed(this),V=z.redNeg(),b=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new u(2*f*f).toRed(this);this.pow(f,b).cmp(V)!==0;)f.redIAdd(V);for(var m=this.pow(f,k),D=this.pow(p,k.addn(1).iushrn(1)),l=this.pow(p,k),S=I;l.cmp(z)!==0;){for(var O=l,$=0;O.cmp(z)!==0;$++)O=O.redSqr();n($=0;I--){for(var m=v.words[I],D=f-1;D>=0;D--){var l=m>>D&1;if(z!==k[0]&&(z=this.sqr(z)),l===0&&V===0){b=0;continue}V<<=1,V|=l,b++,!(b!==M&&(I!==0||D!==0))&&(z=this.mul(z,k[V]),b=0,V=0)}f=26}return z},c0.prototype.convertTo=function(p){var v=p.umod(this.m);return v===p?v.clone():v},c0.prototype.convertFrom=function(p){var v=p.clone();return v.red=null,v},u.mont=function(p){return new h0(p)};function h0(j){c0.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new u(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(h0,c0),h0.prototype.convertTo=function(p){return this.imod(p.ushln(this.shift))},h0.prototype.convertFrom=function(p){var v=this.imod(p.mul(this.rinv));return v.red=null,v},h0.prototype.imul=function(p,v){if(p.isZero()||v.isZero())return p.words[0]=0,p.length=1,p;var M=p.imul(v),k=M.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),I=M.isub(k).iushrn(this.shift),z=I;return I.cmp(this.m)>=0?z=I.isub(this.m):I.cmpn(0)<0&&(z=I.iadd(this.m)),z._forceRed(this)},h0.prototype.mul=function(p,v){if(p.isZero()||v.isZero())return new u(0)._forceRed(this);var M=p.mul(v),k=M.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),I=M.isub(k).iushrn(this.shift),z=I;return I.cmp(this.m)>=0?z=I.isub(this.m):I.cmpn(0)<0&&(z=I.iadd(this.m)),z._forceRed(this)},h0.prototype.invm=function(p){var v=this.imod(p._invmp(this.m).mul(this.r2));return v._forceRed(this)}})(t,y1)})(g4);var Jx=g4.exports;const a1=xt(Jx),th="bignumber/5.7.0";var _u=a1.BN;const Or=new r0(th),Ca={},ql=9007199254740991;function Qx(t){return t!=null&&(P0.isBigNumber(t)||typeof t=="number"&&t%1===0||typeof t=="string"&&!!t.match(/^-?[0-9]+$/)||s1(t)||typeof t=="bigint"||J2(t))}let Hl=!1;class P0{constructor(e,r){e!==Ca&&Or.throwError("cannot call constructor directly; use BigNumber.from",r0.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return tt(x1(this).fromTwos(e))}toTwos(e){return tt(x1(this).toTwos(e))}abs(){return this._hex[0]==="-"?P0.from(this._hex.substring(1)):this}add(e){return tt(x1(this).add(x1(e)))}sub(e){return tt(x1(this).sub(x1(e)))}div(e){return P0.from(e).isZero()&&Et("division-by-zero","div"),tt(x1(this).div(x1(e)))}mul(e){return tt(x1(this).mul(x1(e)))}mod(e){const r=x1(e);return r.isNeg()&&Et("division-by-zero","mod"),tt(x1(this).umod(r))}pow(e){const r=x1(e);return r.isNeg()&&Et("negative-power","pow"),tt(x1(this).pow(r))}and(e){const r=x1(e);return(this.isNegative()||r.isNeg())&&Et("unbound-bitwise-result","and"),tt(x1(this).and(r))}or(e){const r=x1(e);return(this.isNegative()||r.isNeg())&&Et("unbound-bitwise-result","or"),tt(x1(this).or(r))}xor(e){const r=x1(e);return(this.isNegative()||r.isNeg())&&Et("unbound-bitwise-result","xor"),tt(x1(this).xor(r))}mask(e){return(this.isNegative()||e<0)&&Et("negative-width","mask"),tt(x1(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&Et("negative-width","shl"),tt(x1(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&Et("negative-width","shr"),tt(x1(this).shrn(e))}eq(e){return x1(this).eq(x1(e))}lt(e){return x1(this).lt(x1(e))}lte(e){return x1(this).lte(x1(e))}gt(e){return x1(this).gt(x1(e))}gte(e){return x1(this).gte(x1(e))}isNegative(){return this._hex[0]==="-"}isZero(){return x1(this).isZero()}toNumber(){try{return x1(this).toNumber()}catch{Et("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Or.throwError("this platform does not support BigInt",r0.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?Hl||(Hl=!0,Or.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Or.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",r0.errors.UNEXPECTED_ARGUMENT,{}):Or.throwError("BigNumber.toString does not accept parameters",r0.errors.UNEXPECTED_ARGUMENT,{})),x1(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof P0)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new P0(Ca,ku(e)):e.match(/^-?[0-9]+$/)?new P0(Ca,ku(new _u(e))):Or.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&Et("underflow","BigNumber.from",e),(e>=ql||e<=-ql)&&Et("overflow","BigNumber.from",e),P0.from(String(e));const r=e;if(typeof r=="bigint")return P0.from(r.toString());if(J2(r))return P0.from(N0(r));if(r)if(r.toHexString){const n=r.toHexString();if(typeof n=="string")return P0.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(s1(n)||n[0]==="-"&&s1(n.substring(1))))return P0.from(n)}return Or.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function ku(t){if(typeof t!="string")return ku(t.toString(16));if(t[0]==="-")return t=t.substring(1),t[0]==="-"&&Or.throwArgumentError("invalid hex","value",t),t=ku(t),t==="0x00"?t:"-"+t;if(t.substring(0,2)!=="0x"&&(t="0x"+t),t==="0x")return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&t.substring(0,4)==="0x00";)t="0x"+t.substring(4);return t}function tt(t){return P0.from(ku(t))}function x1(t){const e=P0.from(t).toHexString();return e[0]==="-"?new _u("-"+e.substring(3),16):new _u(e.substring(2),16)}function Et(t,e,r){const n={fault:t,operation:e};return r!=null&&(n.value=r),Or.throwError(t,r0.errors.NUMERIC_FAULT,n)}function Yx(t){return new _u(t,36).toString(16)}function Xx(t){return new _u(t,16).toString(36)}const We=new r0(th),Ji={},rh=P0.from(0),nh=P0.from(-1);function ih(t,e,r,n){const i={fault:e,operation:r};return n!==void 0&&(i.value=n),We.throwError(t,r0.errors.NUMERIC_FAULT,i)}let Qi="0";for(;Qi.length<256;)Qi+=Qi;function x4(t){if(typeof t!="number")try{t=P0.from(t).toNumber()}catch{}return typeof t=="number"&&t>=0&&t<=256&&!(t%1)?"1"+Qi.substring(0,t):We.throwArgumentError("invalid decimal size","decimals",t)}function l9(t,e){e==null&&(e=0);const r=x4(e);t=P0.from(t);const n=t.lt(rh);n&&(t=t.mul(nh));let i=t.mod(r).toString();for(;i.length2&&We.throwArgumentError("too many decimal points","value",t);let u=i[0],a=i[1];for(u||(u="0"),a||(a="0");a[a.length-1]==="0";)a=a.substring(0,a.length-1);for(a.length>r.length-1&&ih("fractional component exceeds decimals","underflow","parseFixed"),a===""&&(a="0");a.lengthe[a]==null?s:(typeof e[a]!==o&&We.throwArgumentError("invalid fixed format ("+a+" not "+o+")","format."+a,e[a]),e[a]);r=u("signed","boolean",r),n=u("width","number",n),i=u("decimals","number",i)}return n%8&&We.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),i>80&&We.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new T6(Ji,r,n,i)}}class Ce{constructor(e,r,n,i){e!==Ji&&We.throwError("cannot use FixedNumber constructor; use FixedNumber.from",r0.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&We.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const r=sr(this._value,this.format.decimals),n=sr(e._value,e.format.decimals);return Ce.fromValue(r.add(n),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const r=sr(this._value,this.format.decimals),n=sr(e._value,e.format.decimals);return Ce.fromValue(r.sub(n),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const r=sr(this._value,this.format.decimals),n=sr(e._value,e.format.decimals);return Ce.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const r=sr(this._value,this.format.decimals),n=sr(e._value,e.format.decimals);return Ce.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");e.length===1&&e.push("0");let r=Ce.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(Kl.toFormat(r.format))),r}ceiling(){const e=this.toString().split(".");e.length===1&&e.push("0");let r=Ce.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(Kl.toFormat(r.format))),r}round(e){e==null&&(e=0);const r=this.toString().split(".");if(r.length===1&&r.push("0"),(e<0||e>80||e%1)&&We.throwArgumentError("invalid decimal count","decimals",e),r[1].length<=e)return this;const n=Ce.from("1"+Qi.substring(0,e),this.format),i=Zx.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n)}isZero(){return this._value==="0.0"||this._value==="0"}isNegative(){return this._value[0]==="-"}toString(){return this._value}toHexString(e){if(e==null)return this._hex;e%8&&We.throwArgumentError("invalid byte width","width",e);const r=P0.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return j1(r,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return Ce.fromString(this._value,e)}static fromValue(e,r,n){return n==null&&r!=null&&!Qx(r)&&(n=r,r=null),r==null&&(r=0),n==null&&(n="fixed"),Ce.fromString(l9(e,r),T6.from(n))}static fromString(e,r){r==null&&(r="fixed");const n=T6.from(r),i=sr(e,n.decimals);!n.signed&&i.lt(rh)&&ih("unsigned value cannot be negative","overflow","value",e);let u=null;n.signed?u=i.toTwos(n.width).toHexString():(u=i.toHexString(),u=j1(u,n.width/8));const a=l9(i,n.decimals);return new Ce(Ji,u,a,n)}static fromBytes(e,r){r==null&&(r="fixed");const n=T6.from(r);if(k0(e).length>n.width/8)throw new Error("overflow");let i=P0.from(e);n.signed&&(i=i.fromTwos(n.width));const u=i.toTwos((n.signed?0:1)+n.width).toHexString(),a=l9(i,n.decimals);return new Ce(Ji,u,a,n)}static from(e,r){if(typeof e=="string")return Ce.fromString(e,r);if(J2(e))return Ce.fromBytes(e,r);try{return Ce.fromValue(e,0,r)}catch(n){if(n.code!==r0.errors.INVALID_ARGUMENT)throw n}return We.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}const Kl=Ce.from(1),Zx=Ce.from("0.5");var uh={exports:{}};/** + */function Vo(){return Vo=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(r[i]=t[i]);return r}function Px(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Nx(t,e){return t.button===0&&(!e||e==="_self")&&!Px(t)}const Mx=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Ux="6";try{window.__reactRouterVersion=Ux}catch{}const Ix="startTransition",Uf=Tm[Ix];function Rx(t){let{basename:e,children:r,future:n,window:i}=t,u=l0.useRef();u.current==null&&(u.current=zg({window:i,v5Compat:!0}));let a=u.current,[o,s]=l0.useState({action:a.action,location:a.location}),{v7_startTransition:c}=n||{},d=l0.useCallback(y=>{c&&Uf?Uf(()=>s(y)):s(y)},[s,c]);return l0.useLayoutEffect(()=>a.listen(d),[a,d]),l0.createElement(kx,{basename:e,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}const Ox=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Lx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,y4=l0.forwardRef(function(e,r){let{onClick:n,relative:i,reloadDocument:u,replace:a,state:o,target:s,to:c,preventScrollReset:d,unstable_viewTransition:y}=e,A=Tx(e,Mx),{basename:C}=l0.useContext(V2),T,U=!1;if(typeof c=="string"&&Lx.test(c)&&(T=c,Ox))try{let N=new URL(window.location.href),W=c.startsWith("//")?new URL(N.protocol+c):new URL(c),G=h4(W.pathname,C);W.origin===N.origin&&G!=null?c=G+W.search+W.hash:U=!0}catch{}let P=hx(c,{relative:i}),_=jx(c,{replace:a,state:o,target:s,preventScrollReset:d,relative:i,unstable_viewTransition:y});function B(N){n&&n(N),N.defaultPrevented||_(N)}return l0.createElement("a",Vo({},A,{href:T||P,onClick:U||u?n:B,ref:r,target:s}))});var If;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(If||(If={}));var Rf;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Rf||(Rf={}));function jx(t,e){let{target:r,replace:n,state:i,preventScrollReset:u,relative:a,unstable_viewTransition:o}=e===void 0?{}:e,s=i2(),c=Vu(),d=Jd(t,{relative:a});return l0.useCallback(y=>{if(Nx(y,r)){y.preventDefault();let A=n!==void 0?n:z9(c)===z9(d);s(t,{replace:A,state:i,preventScrollReset:u,relative:a,unstable_viewTransition:o})}},[c,s,d,n,i,r,t,u,a,o])}var D8={},Vr={},Xd={};const zx="logger/5.7.0";let Of=!1,Lf=!1;const s9={debug:1,default:2,info:2,warning:3,error:4,off:5};let jf=s9.default,wa=null;function $x(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{t.push(e)}}),t.length)throw new Error("missing "+t.join(", "));if("é".normalize("NFD")!=="é")throw new Error("broken implementation")}catch(t){return t.message}return null}const zf=$x();var q9;(function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"})(q9||(q9={}));var Dt;(function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"})(Dt||(Dt={}));const $f="0123456789abcdef";class r0{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,r){const n=e.toLowerCase();s9[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(jf>s9[n])&&console.log.apply(console,r)}debug(...e){this._log(r0.levels.DEBUG,e)}info(...e){this._log(r0.levels.INFO,e)}warn(...e){this._log(r0.levels.WARNING,e)}makeError(e,r,n){if(Lf)return this.makeError("censored error",r,{});r||(r=r0.errors.UNKNOWN_ERROR),n||(n={});const i=[];Object.keys(n).forEach(s=>{const c=n[s];try{if(c instanceof Uint8Array){let d="";for(let y=0;y>4],d+=$f[c[y]&15];i.push(s+"=Uint8Array(0x"+d+")")}else i.push(s+"="+JSON.stringify(c))}catch{i.push(s+"="+JSON.stringify(n[s].toString()))}}),i.push(`code=${r}`),i.push(`version=${this.version}`);const u=e;let a="";switch(r){case Dt.NUMERIC_FAULT:{a="NUMERIC_FAULT";const s=e;switch(s){case"overflow":case"underflow":case"division-by-zero":a+="-"+s;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result";break}break}case Dt.CALL_EXCEPTION:case Dt.INSUFFICIENT_FUNDS:case Dt.MISSING_NEW:case Dt.NONCE_EXPIRED:case Dt.REPLACEMENT_UNDERPRICED:case Dt.TRANSACTION_REPLACED:case Dt.UNPREDICTABLE_GAS_LIMIT:a=r;break}a&&(e+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),i.length&&(e+=" ("+i.join(", ")+")");const o=new Error(e);return o.reason=u,o.code=r,Object.keys(n).forEach(function(s){o[s]=n[s]}),o}throwError(e,r,n){throw this.makeError(e,r,n)}throwArgumentError(e,r,n){return this.throwError(e,r0.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(e,r,n,i){e||this.throwError(r,n,i)}assertArgument(e,r,n,i){e||this.throwArgumentError(r,n,i)}checkNormalize(e){zf&&this.throwError("platform missing String.prototype.normalize",r0.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:zf})}checkSafeUint53(e,r){typeof e=="number"&&(r==null&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,r0.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,r0.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,r,n){n?n=": "+n:n="",er&&this.throwError("too many arguments"+n,r0.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}checkNew(e,r){(e===Object||e==null)&&this.throwError("missing new",r0.errors.MISSING_NEW,{name:r.name})}checkAbstract(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",r0.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",r0.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return wa||(wa=new r0(zx)),wa}static setCensorship(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",r0.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Of){if(!e)return;this.globalLogger().throwError("error censorship permanent",r0.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Lf=!!e,Of=!!r}static setLogLevel(e){const r=s9[e.toLowerCase()];if(r==null){r0.globalLogger().warn("invalid log level - "+e);return}jf=r}static from(e){return new r0(e)}}r0.errors=Dt;r0.levels=q9;const qx=Object.freeze(Object.defineProperty({__proto__:null,get ErrorCode(){return Dt},get LogLevel(){return q9},Logger:r0},Symbol.toStringTag,{value:"Module"})),Hx="bytes/5.7.0",ee=new r0(Hx);function Zd(t){return!!t.toHexString}function S6(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return S6(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function Ju(t){return s1(t)&&!(t.length%2)||J2(t)}function qf(t){return typeof t=="number"&&t==t&&t%1===0}function J2(t){if(t==null)return!1;if(t.constructor===Uint8Array)return!0;if(typeof t=="string"||!qf(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function k0(t,e){if(e||(e={}),typeof t=="number"){ee.checkSafeUint53(t,"invalid arrayify value");const r=[];for(;t;)r.unshift(t&255),t=parseInt(String(t/256));return r.length===0&&r.push(0),S6(new Uint8Array(r))}if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),Zd(t)&&(t=t.toHexString()),s1(t)){let r=t.substring(2);r.length%2&&(e.hexPad==="left"?r="0"+r:e.hexPad==="right"?r+="0":ee.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let i=0;ik0(i)),r=e.reduce((i,u)=>i+u.length,0),n=new Uint8Array(r);return e.reduce((i,u)=>(n.set(u,i),i+u.length),0),S6(n)}function Er(t){let e=k0(t);if(e.length===0)return e;let r=0;for(;re&&ee.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(e);return r.set(t,e-t.length),S6(r)}function s1(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}const Ea="0123456789abcdef";function N0(t,e){if(e||(e={}),typeof t=="number"){ee.checkSafeUint53(t,"invalid hexlify value");let r="";for(;t;)r=Ea[t&15]+r,t=Math.floor(t/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof t=="bigint")return t=t.toString(16),t.length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),Zd(t))return t.toHexString();if(s1(t))return t.length%2&&(e.hexPad==="left"?t="0x0"+t.substring(2):e.hexPad==="right"?t+="0":ee.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(J2(t)){let r="0x";for(let n=0;n>4]+Ea[i&15]}return r}return ee.throwArgumentError("invalid hexlify value","value",t)}function kr(t){if(typeof t!="string")t=N0(t);else if(!s1(t)||t.length%2)return null;return(t.length-2)/2}function ue(t,e,r){return typeof t!="string"?t=N0(t):(!s1(t)||t.length%2)&&ee.throwArgumentError("invalid hexData","value",t),e=2+2*e,r!=null?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function Ge(t){let e="0x";return t.forEach(r=>{e+=N0(r).substring(2)}),e}function Qu(t){const e=eh(N0(t,{hexPad:"left"}));return e==="0x"?"0x0":e}function eh(t){typeof t!="string"&&(t=N0(t)),s1(t)||ee.throwArgumentError("invalid hex string","value",t),t=t.substring(2);let e=0;for(;e2*e+2&&ee.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function In(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(Ju(t)){let r=k0(t);r.length===64?(e.v=27+(r[32]>>7),r[32]&=127,e.r=N0(r.slice(0,32)),e.s=N0(r.slice(32,64))):r.length===65?(e.r=N0(r.slice(0,32)),e.s=N0(r.slice(32,64)),e.v=r[64]):ee.throwArgumentError("invalid signature string","signature",t),e.v<27&&(e.v===0||e.v===1?e.v+=27:ee.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=N0(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,e._vs!=null){const i=Vi(k0(e._vs),32);e._vs=N0(i);const u=i[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=u:e.recoveryParam!==u&&ee.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),i[0]&=127;const a=N0(i);e.s==null?e.s=a:e.s!==a&&ee.throwArgumentError("signature v mismatch _vs","signature",t)}if(e.recoveryParam==null)e.v==null?ee.throwArgumentError("signature missing v and recoveryParam","signature",t):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{const i=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==i&&ee.throwArgumentError("signature recoveryParam mismatch v","signature",t)}e.r==null||!s1(e.r)?ee.throwArgumentError("signature missing or invalid r","signature",t):e.r=j1(e.r,32),e.s==null||!s1(e.s)?ee.throwArgumentError("signature missing or invalid s","signature",t):e.s=j1(e.s,32);const r=k0(e.s);r[0]>=128&&ee.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);const n=N0(r);e._vs&&(s1(e._vs)||ee.throwArgumentError("signature invalid _vs","signature",t),e._vs=j1(e._vs,32)),e._vs==null?e._vs=n:e._vs!==n&&ee.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function Jo(t){return t=In(t),N0(L1([t.r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}const Kx=Object.freeze(Object.defineProperty({__proto__:null,arrayify:k0,concat:L1,hexConcat:Ge,hexDataLength:kr,hexDataSlice:ue,hexStripZeros:eh,hexValue:Qu,hexZeroPad:j1,hexlify:N0,isBytes:J2,isBytesLike:Ju,isHexString:s1,joinSignature:Jo,splitSignature:In,stripZeros:Er,zeroPad:Vi},Symbol.toStringTag,{value:"Module"}));var g4={exports:{}};const Gx={},Wx=Object.freeze(Object.defineProperty({__proto__:null,default:Gx},Symbol.toStringTag,{value:"Module"})),Vx=z1(Wx);g4.exports;(function(t){(function(e,r){function n(j,p){if(!j)throw new Error(p||"Assertion failed")}function i(j,p){j.super_=p;var v=function(){};v.prototype=p.prototype,j.prototype=new v,j.prototype.constructor=j}function u(j,p,v){if(u.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((p==="le"||p==="be")&&(v=p,p=10),this._init(j||0,p||10,v||"be"))}typeof e=="object"?e.exports=u:r.BN=u,u.BN=u,u.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=Vx.Buffer}catch{}u.isBN=function(p){return p instanceof u?!0:p!==null&&typeof p=="object"&&p.constructor.wordSize===u.wordSize&&Array.isArray(p.words)},u.max=function(p,v){return p.cmp(v)>0?p:v},u.min=function(p,v){return p.cmp(v)<0?p:v},u.prototype._init=function(p,v,M){if(typeof p=="number")return this._initNumber(p,v,M);if(typeof p=="object")return this._initArray(p,v,M);v==="hex"&&(v=16),n(v===(v|0)&&v>=2&&v<=36),p=p.toString().replace(/\s+/g,"");var k=0;p[0]==="-"&&(k++,this.negative=1),k=0;k-=3)z=p[k]|p[k-1]<<8|p[k-2]<<16,this.words[I]|=z<>>26-V&67108863,V+=24,V>=26&&(V-=26,I++);else if(M==="le")for(k=0,I=0;k>>26-V&67108863,V+=24,V>=26&&(V-=26,I++);return this._strip()};function o(j,p){var v=j.charCodeAt(p);if(v>=48&&v<=57)return v-48;if(v>=65&&v<=70)return v-55;if(v>=97&&v<=102)return v-87;n(!1,"Invalid character in "+j)}function s(j,p,v){var M=o(j,v);return v-1>=p&&(M|=o(j,v-1)<<4),M}u.prototype._parseHex=function(p,v,M){this.length=Math.ceil((p.length-v)/6),this.words=new Array(this.length);for(var k=0;k=v;k-=2)V=s(p,v,k)<=18?(I-=18,z+=1,this.words[z]|=V>>>26):I+=8;else{var b=p.length-v;for(k=b%2===0?v+1:v;k=18?(I-=18,z+=1,this.words[z]|=V>>>26):I+=8}this._strip()};function c(j,p,v,M){for(var k=0,I=0,z=Math.min(j.length,v),V=p;V=49?I=b-49+10:b>=17?I=b-17+10:I=b,n(b>=0&&I1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},u.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{u.prototype[Symbol.for("nodejs.util.inspect.custom")]=y}catch{u.prototype.inspect=y}else u.prototype.inspect=y;function y(){return(this.red?""}var A=["","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"],C=[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],T=[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];u.prototype.toString=function(p,v){p=p||10,v=v|0||1;var M;if(p===16||p==="hex"){M="";for(var k=0,I=0,z=0;z>>24-k&16777215,k+=2,k>=26&&(k-=26,z--),I!==0||z!==this.length-1?M=A[6-b.length]+b+M:M=b+M}for(I!==0&&(M=I.toString(16)+M);M.length%v!==0;)M="0"+M;return this.negative!==0&&(M="-"+M),M}if(p===(p|0)&&p>=2&&p<=36){var l=C[p],m=T[p];M="";var D=this.clone();for(D.negative=0;!D.isZero();){var f=D.modrn(m).toString(p);D=D.idivn(m),D.isZero()?M=f+M:M=A[l-f.length]+f+M}for(this.isZero()&&(M="0"+M);M.length%v!==0;)M="0"+M;return this.negative!==0&&(M="-"+M),M}n(!1,"Base should be between 2 and 36")},u.prototype.toNumber=function(){var p=this.words[0];return this.length===2?p+=this.words[1]*67108864:this.length===3&&this.words[2]===1?p+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-p:p},u.prototype.toJSON=function(){return this.toString(16,2)},a&&(u.prototype.toBuffer=function(p,v){return this.toArrayLike(a,p,v)}),u.prototype.toArray=function(p,v){return this.toArrayLike(Array,p,v)};var U=function(p,v){return p.allocUnsafe?p.allocUnsafe(v):new p(v)};u.prototype.toArrayLike=function(p,v,M){this._strip();var k=this.byteLength(),I=M||Math.max(1,k);n(k<=I,"byte array longer than desired length"),n(I>0,"Requested array length <= 0");var z=U(p,I),V=v==="le"?"LE":"BE";return this["_toArrayLike"+V](z,k),z},u.prototype._toArrayLikeLE=function(p,v){for(var M=0,k=0,I=0,z=0;I>8&255),M>16&255),z===6?(M>24&255),k=0,z=0):(k=V>>>24,z+=2)}if(M=0&&(p[M--]=V>>8&255),M>=0&&(p[M--]=V>>16&255),z===6?(M>=0&&(p[M--]=V>>24&255),k=0,z=0):(k=V>>>24,z+=2)}if(M>=0)for(p[M--]=k;M>=0;)p[M--]=0},Math.clz32?u.prototype._countBits=function(p){return 32-Math.clz32(p)}:u.prototype._countBits=function(p){var v=p,M=0;return v>=4096&&(M+=13,v>>>=13),v>=64&&(M+=7,v>>>=7),v>=8&&(M+=4,v>>>=4),v>=2&&(M+=2,v>>>=2),M+v},u.prototype._zeroBits=function(p){if(p===0)return 26;var v=p,M=0;return v&8191||(M+=13,v>>>=13),v&127||(M+=7,v>>>=7),v&15||(M+=4,v>>>=4),v&3||(M+=2,v>>>=2),v&1||M++,M},u.prototype.bitLength=function(){var p=this.words[this.length-1],v=this._countBits(p);return(this.length-1)*26+v};function P(j){for(var p=new Array(j.bitLength()),v=0;v>>k&1}return p}u.prototype.zeroBits=function(){if(this.isZero())return 0;for(var p=0,v=0;vp.length?this.clone().ior(p):p.clone().ior(this)},u.prototype.uor=function(p){return this.length>p.length?this.clone().iuor(p):p.clone().iuor(this)},u.prototype.iuand=function(p){var v;this.length>p.length?v=p:v=this;for(var M=0;Mp.length?this.clone().iand(p):p.clone().iand(this)},u.prototype.uand=function(p){return this.length>p.length?this.clone().iuand(p):p.clone().iuand(this)},u.prototype.iuxor=function(p){var v,M;this.length>p.length?(v=this,M=p):(v=p,M=this);for(var k=0;kp.length?this.clone().ixor(p):p.clone().ixor(this)},u.prototype.uxor=function(p){return this.length>p.length?this.clone().iuxor(p):p.clone().iuxor(this)},u.prototype.inotn=function(p){n(typeof p=="number"&&p>=0);var v=Math.ceil(p/26)|0,M=p%26;this._expand(v),M>0&&v--;for(var k=0;k0&&(this.words[k]=~this.words[k]&67108863>>26-M),this._strip()},u.prototype.notn=function(p){return this.clone().inotn(p)},u.prototype.setn=function(p,v){n(typeof p=="number"&&p>=0);var M=p/26|0,k=p%26;return this._expand(M+1),v?this.words[M]=this.words[M]|1<p.length?(M=this,k=p):(M=p,k=this);for(var I=0,z=0;z>>26;for(;I!==0&&z>>26;if(this.length=M.length,I!==0)this.words[this.length]=I,this.length++;else if(M!==this)for(;zp.length?this.clone().iadd(p):p.clone().iadd(this)},u.prototype.isub=function(p){if(p.negative!==0){p.negative=0;var v=this.iadd(p);return p.negative=1,v._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(p),this.negative=1,this._normSign();var M=this.cmp(p);if(M===0)return this.negative=0,this.length=1,this.words[0]=0,this;var k,I;M>0?(k=this,I=p):(k=p,I=this);for(var z=0,V=0;V>26,this.words[V]=v&67108863;for(;z!==0&&V>26,this.words[V]=v&67108863;if(z===0&&V>>26,D=b&67108863,f=Math.min(l,p.length-1),S=Math.max(0,l-j.length+1);S<=f;S++){var O=l-S|0;k=j.words[O]|0,I=p.words[S]|0,z=k*I+D,m+=z/67108864|0,D=z&67108863}v.words[l]=D|0,b=m|0}return b!==0?v.words[l]=b|0:v.length--,v._strip()}var B=function(p,v,M){var k=p.words,I=v.words,z=M.words,V=0,b,l,m,D=k[0]|0,f=D&8191,S=D>>>13,O=k[1]|0,$=O&8191,H=O>>>13,n0=k[2]|0,u0=n0&8191,s0=n0>>>13,g0=k[3]|0,y0=g0&8191,_0=g0>>>13,z0=k[4]|0,M0=z0&8191,I0=z0>>>13,R0=k[5]|0,V0=R0&8191,G0=R0>>>13,X0=k[6]|0,$0=X0&8191,Z0=X0>>>13,p1=k[7]|0,f1=p1&8191,L=p1>>>13,x=k[8]|0,w=x&8191,q=x>>>13,i0=k[9]|0,f0=i0&8191,p0=i0>>>13,O0=I[0]|0,H0=O0&8191,K0=O0>>>13,Y0=I[1]|0,j0=Y0&8191,o1=Y0>>>13,be=I[2]|0,b1=be&8191,g1=be>>>13,ne=I[3]|0,e1=ne&8191,F1=ne>>>13,ce=I[4]|0,m1=ce&8191,l1=ce>>>13,ve=I[5]|0,d1=ve&8191,w1=ve>>>13,me=I[6]|0,E1=me&8191,S1=me>>>13,ze=I[7]|0,B1=ze&8191,T1=ze>>>13,se=I[8]|0,P1=se&8191,N1=se>>>13,Ze=I[9]|0,M1=Ze&8191,D1=Ze>>>13;M.negative=p.negative^v.negative,M.length=19,b=Math.imul(f,H0),l=Math.imul(f,K0),l=l+Math.imul(S,H0)|0,m=Math.imul(S,K0);var $e=(V+b|0)+((l&8191)<<13)|0;V=(m+(l>>>13)|0)+($e>>>26)|0,$e&=67108863,b=Math.imul($,H0),l=Math.imul($,K0),l=l+Math.imul(H,H0)|0,m=Math.imul(H,K0),b=b+Math.imul(f,j0)|0,l=l+Math.imul(f,o1)|0,l=l+Math.imul(S,j0)|0,m=m+Math.imul(S,o1)|0;var Z1=(V+b|0)+((l&8191)<<13)|0;V=(m+(l>>>13)|0)+(Z1>>>26)|0,Z1&=67108863,b=Math.imul(u0,H0),l=Math.imul(u0,K0),l=l+Math.imul(s0,H0)|0,m=Math.imul(s0,K0),b=b+Math.imul($,j0)|0,l=l+Math.imul($,o1)|0,l=l+Math.imul(H,j0)|0,m=m+Math.imul(H,o1)|0,b=b+Math.imul(f,b1)|0,l=l+Math.imul(f,g1)|0,l=l+Math.imul(S,b1)|0,m=m+Math.imul(S,g1)|0;var Ae=(V+b|0)+((l&8191)<<13)|0;V=(m+(l>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,b=Math.imul(y0,H0),l=Math.imul(y0,K0),l=l+Math.imul(_0,H0)|0,m=Math.imul(_0,K0),b=b+Math.imul(u0,j0)|0,l=l+Math.imul(u0,o1)|0,l=l+Math.imul(s0,j0)|0,m=m+Math.imul(s0,o1)|0,b=b+Math.imul($,b1)|0,l=l+Math.imul($,g1)|0,l=l+Math.imul(H,b1)|0,m=m+Math.imul(H,g1)|0,b=b+Math.imul(f,e1)|0,l=l+Math.imul(f,F1)|0,l=l+Math.imul(S,e1)|0,m=m+Math.imul(S,F1)|0;var we=(V+b|0)+((l&8191)<<13)|0;V=(m+(l>>>13)|0)+(we>>>26)|0,we&=67108863,b=Math.imul(M0,H0),l=Math.imul(M0,K0),l=l+Math.imul(I0,H0)|0,m=Math.imul(I0,K0),b=b+Math.imul(y0,j0)|0,l=l+Math.imul(y0,o1)|0,l=l+Math.imul(_0,j0)|0,m=m+Math.imul(_0,o1)|0,b=b+Math.imul(u0,b1)|0,l=l+Math.imul(u0,g1)|0,l=l+Math.imul(s0,b1)|0,m=m+Math.imul(s0,g1)|0,b=b+Math.imul($,e1)|0,l=l+Math.imul($,F1)|0,l=l+Math.imul(H,e1)|0,m=m+Math.imul(H,F1)|0,b=b+Math.imul(f,m1)|0,l=l+Math.imul(f,l1)|0,l=l+Math.imul(S,m1)|0,m=m+Math.imul(S,l1)|0;var t1=(V+b|0)+((l&8191)<<13)|0;V=(m+(l>>>13)|0)+(t1>>>26)|0,t1&=67108863,b=Math.imul(V0,H0),l=Math.imul(V0,K0),l=l+Math.imul(G0,H0)|0,m=Math.imul(G0,K0),b=b+Math.imul(M0,j0)|0,l=l+Math.imul(M0,o1)|0,l=l+Math.imul(I0,j0)|0,m=m+Math.imul(I0,o1)|0,b=b+Math.imul(y0,b1)|0,l=l+Math.imul(y0,g1)|0,l=l+Math.imul(_0,b1)|0,m=m+Math.imul(_0,g1)|0,b=b+Math.imul(u0,e1)|0,l=l+Math.imul(u0,F1)|0,l=l+Math.imul(s0,e1)|0,m=m+Math.imul(s0,F1)|0,b=b+Math.imul($,m1)|0,l=l+Math.imul($,l1)|0,l=l+Math.imul(H,m1)|0,m=m+Math.imul(H,l1)|0,b=b+Math.imul(f,d1)|0,l=l+Math.imul(f,w1)|0,l=l+Math.imul(S,d1)|0,m=m+Math.imul(S,w1)|0;var zn=(V+b|0)+((l&8191)<<13)|0;V=(m+(l>>>13)|0)+(zn>>>26)|0,zn&=67108863,b=Math.imul($0,H0),l=Math.imul($0,K0),l=l+Math.imul(Z0,H0)|0,m=Math.imul(Z0,K0),b=b+Math.imul(V0,j0)|0,l=l+Math.imul(V0,o1)|0,l=l+Math.imul(G0,j0)|0,m=m+Math.imul(G0,o1)|0,b=b+Math.imul(M0,b1)|0,l=l+Math.imul(M0,g1)|0,l=l+Math.imul(I0,b1)|0,m=m+Math.imul(I0,g1)|0,b=b+Math.imul(y0,e1)|0,l=l+Math.imul(y0,F1)|0,l=l+Math.imul(_0,e1)|0,m=m+Math.imul(_0,F1)|0,b=b+Math.imul(u0,m1)|0,l=l+Math.imul(u0,l1)|0,l=l+Math.imul(s0,m1)|0,m=m+Math.imul(s0,l1)|0,b=b+Math.imul($,d1)|0,l=l+Math.imul($,w1)|0,l=l+Math.imul(H,d1)|0,m=m+Math.imul(H,w1)|0,b=b+Math.imul(f,E1)|0,l=l+Math.imul(f,S1)|0,l=l+Math.imul(S,E1)|0,m=m+Math.imul(S,S1)|0;var ir=(V+b|0)+((l&8191)<<13)|0;V=(m+(l>>>13)|0)+(ir>>>26)|0,ir&=67108863,b=Math.imul(f1,H0),l=Math.imul(f1,K0),l=l+Math.imul(L,H0)|0,m=Math.imul(L,K0),b=b+Math.imul($0,j0)|0,l=l+Math.imul($0,o1)|0,l=l+Math.imul(Z0,j0)|0,m=m+Math.imul(Z0,o1)|0,b=b+Math.imul(V0,b1)|0,l=l+Math.imul(V0,g1)|0,l=l+Math.imul(G0,b1)|0,m=m+Math.imul(G0,g1)|0,b=b+Math.imul(M0,e1)|0,l=l+Math.imul(M0,F1)|0,l=l+Math.imul(I0,e1)|0,m=m+Math.imul(I0,F1)|0,b=b+Math.imul(y0,m1)|0,l=l+Math.imul(y0,l1)|0,l=l+Math.imul(_0,m1)|0,m=m+Math.imul(_0,l1)|0,b=b+Math.imul(u0,d1)|0,l=l+Math.imul(u0,w1)|0,l=l+Math.imul(s0,d1)|0,m=m+Math.imul(s0,w1)|0,b=b+Math.imul($,E1)|0,l=l+Math.imul($,S1)|0,l=l+Math.imul(H,E1)|0,m=m+Math.imul(H,S1)|0,b=b+Math.imul(f,B1)|0,l=l+Math.imul(f,T1)|0,l=l+Math.imul(S,B1)|0,m=m+Math.imul(S,T1)|0;var $n=(V+b|0)+((l&8191)<<13)|0;V=(m+(l>>>13)|0)+($n>>>26)|0,$n&=67108863,b=Math.imul(w,H0),l=Math.imul(w,K0),l=l+Math.imul(q,H0)|0,m=Math.imul(q,K0),b=b+Math.imul(f1,j0)|0,l=l+Math.imul(f1,o1)|0,l=l+Math.imul(L,j0)|0,m=m+Math.imul(L,o1)|0,b=b+Math.imul($0,b1)|0,l=l+Math.imul($0,g1)|0,l=l+Math.imul(Z0,b1)|0,m=m+Math.imul(Z0,g1)|0,b=b+Math.imul(V0,e1)|0,l=l+Math.imul(V0,F1)|0,l=l+Math.imul(G0,e1)|0,m=m+Math.imul(G0,F1)|0,b=b+Math.imul(M0,m1)|0,l=l+Math.imul(M0,l1)|0,l=l+Math.imul(I0,m1)|0,m=m+Math.imul(I0,l1)|0,b=b+Math.imul(y0,d1)|0,l=l+Math.imul(y0,w1)|0,l=l+Math.imul(_0,d1)|0,m=m+Math.imul(_0,w1)|0,b=b+Math.imul(u0,E1)|0,l=l+Math.imul(u0,S1)|0,l=l+Math.imul(s0,E1)|0,m=m+Math.imul(s0,S1)|0,b=b+Math.imul($,B1)|0,l=l+Math.imul($,T1)|0,l=l+Math.imul(H,B1)|0,m=m+Math.imul(H,T1)|0,b=b+Math.imul(f,P1)|0,l=l+Math.imul(f,N1)|0,l=l+Math.imul(S,P1)|0,m=m+Math.imul(S,N1)|0;var en=(V+b|0)+((l&8191)<<13)|0;V=(m+(l>>>13)|0)+(en>>>26)|0,en&=67108863,b=Math.imul(f0,H0),l=Math.imul(f0,K0),l=l+Math.imul(p0,H0)|0,m=Math.imul(p0,K0),b=b+Math.imul(w,j0)|0,l=l+Math.imul(w,o1)|0,l=l+Math.imul(q,j0)|0,m=m+Math.imul(q,o1)|0,b=b+Math.imul(f1,b1)|0,l=l+Math.imul(f1,g1)|0,l=l+Math.imul(L,b1)|0,m=m+Math.imul(L,g1)|0,b=b+Math.imul($0,e1)|0,l=l+Math.imul($0,F1)|0,l=l+Math.imul(Z0,e1)|0,m=m+Math.imul(Z0,F1)|0,b=b+Math.imul(V0,m1)|0,l=l+Math.imul(V0,l1)|0,l=l+Math.imul(G0,m1)|0,m=m+Math.imul(G0,l1)|0,b=b+Math.imul(M0,d1)|0,l=l+Math.imul(M0,w1)|0,l=l+Math.imul(I0,d1)|0,m=m+Math.imul(I0,w1)|0,b=b+Math.imul(y0,E1)|0,l=l+Math.imul(y0,S1)|0,l=l+Math.imul(_0,E1)|0,m=m+Math.imul(_0,S1)|0,b=b+Math.imul(u0,B1)|0,l=l+Math.imul(u0,T1)|0,l=l+Math.imul(s0,B1)|0,m=m+Math.imul(s0,T1)|0,b=b+Math.imul($,P1)|0,l=l+Math.imul($,N1)|0,l=l+Math.imul(H,P1)|0,m=m+Math.imul(H,N1)|0,b=b+Math.imul(f,M1)|0,l=l+Math.imul(f,D1)|0,l=l+Math.imul(S,M1)|0,m=m+Math.imul(S,D1)|0;var tn=(V+b|0)+((l&8191)<<13)|0;V=(m+(l>>>13)|0)+(tn>>>26)|0,tn&=67108863,b=Math.imul(f0,j0),l=Math.imul(f0,o1),l=l+Math.imul(p0,j0)|0,m=Math.imul(p0,o1),b=b+Math.imul(w,b1)|0,l=l+Math.imul(w,g1)|0,l=l+Math.imul(q,b1)|0,m=m+Math.imul(q,g1)|0,b=b+Math.imul(f1,e1)|0,l=l+Math.imul(f1,F1)|0,l=l+Math.imul(L,e1)|0,m=m+Math.imul(L,F1)|0,b=b+Math.imul($0,m1)|0,l=l+Math.imul($0,l1)|0,l=l+Math.imul(Z0,m1)|0,m=m+Math.imul(Z0,l1)|0,b=b+Math.imul(V0,d1)|0,l=l+Math.imul(V0,w1)|0,l=l+Math.imul(G0,d1)|0,m=m+Math.imul(G0,w1)|0,b=b+Math.imul(M0,E1)|0,l=l+Math.imul(M0,S1)|0,l=l+Math.imul(I0,E1)|0,m=m+Math.imul(I0,S1)|0,b=b+Math.imul(y0,B1)|0,l=l+Math.imul(y0,T1)|0,l=l+Math.imul(_0,B1)|0,m=m+Math.imul(_0,T1)|0,b=b+Math.imul(u0,P1)|0,l=l+Math.imul(u0,N1)|0,l=l+Math.imul(s0,P1)|0,m=m+Math.imul(s0,N1)|0,b=b+Math.imul($,M1)|0,l=l+Math.imul($,D1)|0,l=l+Math.imul(H,M1)|0,m=m+Math.imul(H,D1)|0;var qn=(V+b|0)+((l&8191)<<13)|0;V=(m+(l>>>13)|0)+(qn>>>26)|0,qn&=67108863,b=Math.imul(f0,b1),l=Math.imul(f0,g1),l=l+Math.imul(p0,b1)|0,m=Math.imul(p0,g1),b=b+Math.imul(w,e1)|0,l=l+Math.imul(w,F1)|0,l=l+Math.imul(q,e1)|0,m=m+Math.imul(q,F1)|0,b=b+Math.imul(f1,m1)|0,l=l+Math.imul(f1,l1)|0,l=l+Math.imul(L,m1)|0,m=m+Math.imul(L,l1)|0,b=b+Math.imul($0,d1)|0,l=l+Math.imul($0,w1)|0,l=l+Math.imul(Z0,d1)|0,m=m+Math.imul(Z0,w1)|0,b=b+Math.imul(V0,E1)|0,l=l+Math.imul(V0,S1)|0,l=l+Math.imul(G0,E1)|0,m=m+Math.imul(G0,S1)|0,b=b+Math.imul(M0,B1)|0,l=l+Math.imul(M0,T1)|0,l=l+Math.imul(I0,B1)|0,m=m+Math.imul(I0,T1)|0,b=b+Math.imul(y0,P1)|0,l=l+Math.imul(y0,N1)|0,l=l+Math.imul(_0,P1)|0,m=m+Math.imul(_0,N1)|0,b=b+Math.imul(u0,M1)|0,l=l+Math.imul(u0,D1)|0,l=l+Math.imul(s0,M1)|0,m=m+Math.imul(s0,D1)|0;var Hn=(V+b|0)+((l&8191)<<13)|0;V=(m+(l>>>13)|0)+(Hn>>>26)|0,Hn&=67108863,b=Math.imul(f0,e1),l=Math.imul(f0,F1),l=l+Math.imul(p0,e1)|0,m=Math.imul(p0,F1),b=b+Math.imul(w,m1)|0,l=l+Math.imul(w,l1)|0,l=l+Math.imul(q,m1)|0,m=m+Math.imul(q,l1)|0,b=b+Math.imul(f1,d1)|0,l=l+Math.imul(f1,w1)|0,l=l+Math.imul(L,d1)|0,m=m+Math.imul(L,w1)|0,b=b+Math.imul($0,E1)|0,l=l+Math.imul($0,S1)|0,l=l+Math.imul(Z0,E1)|0,m=m+Math.imul(Z0,S1)|0,b=b+Math.imul(V0,B1)|0,l=l+Math.imul(V0,T1)|0,l=l+Math.imul(G0,B1)|0,m=m+Math.imul(G0,T1)|0,b=b+Math.imul(M0,P1)|0,l=l+Math.imul(M0,N1)|0,l=l+Math.imul(I0,P1)|0,m=m+Math.imul(I0,N1)|0,b=b+Math.imul(y0,M1)|0,l=l+Math.imul(y0,D1)|0,l=l+Math.imul(_0,M1)|0,m=m+Math.imul(_0,D1)|0;var rn=(V+b|0)+((l&8191)<<13)|0;V=(m+(l>>>13)|0)+(rn>>>26)|0,rn&=67108863,b=Math.imul(f0,m1),l=Math.imul(f0,l1),l=l+Math.imul(p0,m1)|0,m=Math.imul(p0,l1),b=b+Math.imul(w,d1)|0,l=l+Math.imul(w,w1)|0,l=l+Math.imul(q,d1)|0,m=m+Math.imul(q,w1)|0,b=b+Math.imul(f1,E1)|0,l=l+Math.imul(f1,S1)|0,l=l+Math.imul(L,E1)|0,m=m+Math.imul(L,S1)|0,b=b+Math.imul($0,B1)|0,l=l+Math.imul($0,T1)|0,l=l+Math.imul(Z0,B1)|0,m=m+Math.imul(Z0,T1)|0,b=b+Math.imul(V0,P1)|0,l=l+Math.imul(V0,N1)|0,l=l+Math.imul(G0,P1)|0,m=m+Math.imul(G0,N1)|0,b=b+Math.imul(M0,M1)|0,l=l+Math.imul(M0,D1)|0,l=l+Math.imul(I0,M1)|0,m=m+Math.imul(I0,D1)|0;var Ee=(V+b|0)+((l&8191)<<13)|0;V=(m+(l>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,b=Math.imul(f0,d1),l=Math.imul(f0,w1),l=l+Math.imul(p0,d1)|0,m=Math.imul(p0,w1),b=b+Math.imul(w,E1)|0,l=l+Math.imul(w,S1)|0,l=l+Math.imul(q,E1)|0,m=m+Math.imul(q,S1)|0,b=b+Math.imul(f1,B1)|0,l=l+Math.imul(f1,T1)|0,l=l+Math.imul(L,B1)|0,m=m+Math.imul(L,T1)|0,b=b+Math.imul($0,P1)|0,l=l+Math.imul($0,N1)|0,l=l+Math.imul(Z0,P1)|0,m=m+Math.imul(Z0,N1)|0,b=b+Math.imul(V0,M1)|0,l=l+Math.imul(V0,D1)|0,l=l+Math.imul(G0,M1)|0,m=m+Math.imul(G0,D1)|0;var c1=(V+b|0)+((l&8191)<<13)|0;V=(m+(l>>>13)|0)+(c1>>>26)|0,c1&=67108863,b=Math.imul(f0,E1),l=Math.imul(f0,S1),l=l+Math.imul(p0,E1)|0,m=Math.imul(p0,S1),b=b+Math.imul(w,B1)|0,l=l+Math.imul(w,T1)|0,l=l+Math.imul(q,B1)|0,m=m+Math.imul(q,T1)|0,b=b+Math.imul(f1,P1)|0,l=l+Math.imul(f1,N1)|0,l=l+Math.imul(L,P1)|0,m=m+Math.imul(L,N1)|0,b=b+Math.imul($0,M1)|0,l=l+Math.imul($0,D1)|0,l=l+Math.imul(Z0,M1)|0,m=m+Math.imul(Z0,D1)|0;var Kn=(V+b|0)+((l&8191)<<13)|0;V=(m+(l>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,b=Math.imul(f0,B1),l=Math.imul(f0,T1),l=l+Math.imul(p0,B1)|0,m=Math.imul(p0,T1),b=b+Math.imul(w,P1)|0,l=l+Math.imul(w,N1)|0,l=l+Math.imul(q,P1)|0,m=m+Math.imul(q,N1)|0,b=b+Math.imul(f1,M1)|0,l=l+Math.imul(f1,D1)|0,l=l+Math.imul(L,M1)|0,m=m+Math.imul(L,D1)|0;var nn=(V+b|0)+((l&8191)<<13)|0;V=(m+(l>>>13)|0)+(nn>>>26)|0,nn&=67108863,b=Math.imul(f0,P1),l=Math.imul(f0,N1),l=l+Math.imul(p0,P1)|0,m=Math.imul(p0,N1),b=b+Math.imul(w,M1)|0,l=l+Math.imul(w,D1)|0,l=l+Math.imul(q,M1)|0,m=m+Math.imul(q,D1)|0;var un=(V+b|0)+((l&8191)<<13)|0;V=(m+(l>>>13)|0)+(un>>>26)|0,un&=67108863,b=Math.imul(f0,M1),l=Math.imul(f0,D1),l=l+Math.imul(p0,M1)|0,m=Math.imul(p0,D1);var hi=(V+b|0)+((l&8191)<<13)|0;return V=(m+(l>>>13)|0)+(hi>>>26)|0,hi&=67108863,z[0]=$e,z[1]=Z1,z[2]=Ae,z[3]=we,z[4]=t1,z[5]=zn,z[6]=ir,z[7]=$n,z[8]=en,z[9]=tn,z[10]=qn,z[11]=Hn,z[12]=rn,z[13]=Ee,z[14]=c1,z[15]=Kn,z[16]=nn,z[17]=un,z[18]=hi,V!==0&&(z[19]=V,M.length++),M};Math.imul||(B=_);function N(j,p,v){v.negative=p.negative^j.negative,v.length=j.length+p.length;for(var M=0,k=0,I=0;I>>26)|0,k+=z>>>26,z&=67108863}v.words[I]=V,M=z,z=k}return M!==0?v.words[I]=M:v.length--,v._strip()}function W(j,p,v){return N(j,p,v)}u.prototype.mulTo=function(p,v){var M,k=this.length+p.length;return this.length===10&&p.length===10?M=B(this,p,v):k<63?M=_(this,p,v):k<1024?M=N(this,p,v):M=W(this,p,v),M},u.prototype.mul=function(p){var v=new u(null);return v.words=new Array(this.length+p.length),this.mulTo(p,v)},u.prototype.mulf=function(p){var v=new u(null);return v.words=new Array(this.length+p.length),W(this,p,v)},u.prototype.imul=function(p){return this.clone().mulTo(p,this)},u.prototype.imuln=function(p){var v=p<0;v&&(p=-p),n(typeof p=="number"),n(p<67108864);for(var M=0,k=0;k>=26,M+=I/67108864|0,M+=z>>>26,this.words[k]=z&67108863}return M!==0&&(this.words[k]=M,this.length++),v?this.ineg():this},u.prototype.muln=function(p){return this.clone().imuln(p)},u.prototype.sqr=function(){return this.mul(this)},u.prototype.isqr=function(){return this.imul(this.clone())},u.prototype.pow=function(p){var v=P(p);if(v.length===0)return new u(1);for(var M=this,k=0;k=0);var v=p%26,M=(p-v)/26,k=67108863>>>26-v<<26-v,I;if(v!==0){var z=0;for(I=0;I>>26-v}z&&(this.words[I]=z,this.length++)}if(M!==0){for(I=this.length-1;I>=0;I--)this.words[I+M]=this.words[I];for(I=0;I=0);var k;v?k=(v-v%26)/26:k=0;var I=p%26,z=Math.min((p-I)/26,this.length),V=67108863^67108863>>>I<z)for(this.length-=z,l=0;l=0&&(m!==0||l>=k);l--){var D=this.words[l]|0;this.words[l]=m<<26-I|D>>>I,m=D&V}return b&&m!==0&&(b.words[b.length++]=m),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},u.prototype.ishrn=function(p,v,M){return n(this.negative===0),this.iushrn(p,v,M)},u.prototype.shln=function(p){return this.clone().ishln(p)},u.prototype.ushln=function(p){return this.clone().iushln(p)},u.prototype.shrn=function(p){return this.clone().ishrn(p)},u.prototype.ushrn=function(p){return this.clone().iushrn(p)},u.prototype.testn=function(p){n(typeof p=="number"&&p>=0);var v=p%26,M=(p-v)/26,k=1<=0);var v=p%26,M=(p-v)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=M)return this;if(v!==0&&M++,this.length=Math.min(M,this.length),v!==0){var k=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},u.prototype.isubn=function(p){if(n(typeof p=="number"),n(p<67108864),p<0)return this.iaddn(-p);if(this.negative!==0)return this.negative=0,this.iaddn(p),this.negative=1,this;if(this.words[0]-=p,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-(b/67108864|0),this.words[I+M]=z&67108863}for(;I>26,this.words[I+M]=z&67108863;if(V===0)return this._strip();for(n(V===-1),V=0,I=0;I>26,this.words[I]=z&67108863;return this.negative=1,this._strip()},u.prototype._wordDiv=function(p,v){var M=this.length-p.length,k=this.clone(),I=p,z=I.words[I.length-1]|0,V=this._countBits(z);M=26-V,M!==0&&(I=I.ushln(M),k.iushln(M),z=I.words[I.length-1]|0);var b=k.length-I.length,l;if(v!=="mod"){l=new u(null),l.length=b+1,l.words=new Array(l.length);for(var m=0;m=0;f--){var S=(k.words[I.length+f]|0)*67108864+(k.words[I.length+f-1]|0);for(S=Math.min(S/z|0,67108863),k._ishlnsubmul(I,S,f);k.negative!==0;)S--,k.negative=0,k._ishlnsubmul(I,1,f),k.isZero()||(k.negative^=1);l&&(l.words[f]=S)}return l&&l._strip(),k._strip(),v!=="div"&&M!==0&&k.iushrn(M),{div:l||null,mod:k}},u.prototype.divmod=function(p,v,M){if(n(!p.isZero()),this.isZero())return{div:new u(0),mod:new u(0)};var k,I,z;return this.negative!==0&&p.negative===0?(z=this.neg().divmod(p,v),v!=="mod"&&(k=z.div.neg()),v!=="div"&&(I=z.mod.neg(),M&&I.negative!==0&&I.iadd(p)),{div:k,mod:I}):this.negative===0&&p.negative!==0?(z=this.divmod(p.neg(),v),v!=="mod"&&(k=z.div.neg()),{div:k,mod:z.mod}):this.negative&p.negative?(z=this.neg().divmod(p.neg(),v),v!=="div"&&(I=z.mod.neg(),M&&I.negative!==0&&I.isub(p)),{div:z.div,mod:I}):p.length>this.length||this.cmp(p)<0?{div:new u(0),mod:this}:p.length===1?v==="div"?{div:this.divn(p.words[0]),mod:null}:v==="mod"?{div:null,mod:new u(this.modrn(p.words[0]))}:{div:this.divn(p.words[0]),mod:new u(this.modrn(p.words[0]))}:this._wordDiv(p,v)},u.prototype.div=function(p){return this.divmod(p,"div",!1).div},u.prototype.mod=function(p){return this.divmod(p,"mod",!1).mod},u.prototype.umod=function(p){return this.divmod(p,"mod",!0).mod},u.prototype.divRound=function(p){var v=this.divmod(p);if(v.mod.isZero())return v.div;var M=v.div.negative!==0?v.mod.isub(p):v.mod,k=p.ushrn(1),I=p.andln(1),z=M.cmp(k);return z<0||I===1&&z===0?v.div:v.div.negative!==0?v.div.isubn(1):v.div.iaddn(1)},u.prototype.modrn=function(p){var v=p<0;v&&(p=-p),n(p<=67108863);for(var M=(1<<26)%p,k=0,I=this.length-1;I>=0;I--)k=(M*k+(this.words[I]|0))%p;return v?-k:k},u.prototype.modn=function(p){return this.modrn(p)},u.prototype.idivn=function(p){var v=p<0;v&&(p=-p),n(p<=67108863);for(var M=0,k=this.length-1;k>=0;k--){var I=(this.words[k]|0)+M*67108864;this.words[k]=I/p|0,M=I%p}return this._strip(),v?this.ineg():this},u.prototype.divn=function(p){return this.clone().idivn(p)},u.prototype.egcd=function(p){n(p.negative===0),n(!p.isZero());var v=this,M=p.clone();v.negative!==0?v=v.umod(p):v=v.clone();for(var k=new u(1),I=new u(0),z=new u(0),V=new u(1),b=0;v.isEven()&&M.isEven();)v.iushrn(1),M.iushrn(1),++b;for(var l=M.clone(),m=v.clone();!v.isZero();){for(var D=0,f=1;!(v.words[0]&f)&&D<26;++D,f<<=1);if(D>0)for(v.iushrn(D);D-- >0;)(k.isOdd()||I.isOdd())&&(k.iadd(l),I.isub(m)),k.iushrn(1),I.iushrn(1);for(var S=0,O=1;!(M.words[0]&O)&&S<26;++S,O<<=1);if(S>0)for(M.iushrn(S);S-- >0;)(z.isOdd()||V.isOdd())&&(z.iadd(l),V.isub(m)),z.iushrn(1),V.iushrn(1);v.cmp(M)>=0?(v.isub(M),k.isub(z),I.isub(V)):(M.isub(v),z.isub(k),V.isub(I))}return{a:z,b:V,gcd:M.iushln(b)}},u.prototype._invmp=function(p){n(p.negative===0),n(!p.isZero());var v=this,M=p.clone();v.negative!==0?v=v.umod(p):v=v.clone();for(var k=new u(1),I=new u(0),z=M.clone();v.cmpn(1)>0&&M.cmpn(1)>0;){for(var V=0,b=1;!(v.words[0]&b)&&V<26;++V,b<<=1);if(V>0)for(v.iushrn(V);V-- >0;)k.isOdd()&&k.iadd(z),k.iushrn(1);for(var l=0,m=1;!(M.words[0]&m)&&l<26;++l,m<<=1);if(l>0)for(M.iushrn(l);l-- >0;)I.isOdd()&&I.iadd(z),I.iushrn(1);v.cmp(M)>=0?(v.isub(M),k.isub(I)):(M.isub(v),I.isub(k))}var D;return v.cmpn(1)===0?D=k:D=I,D.cmpn(0)<0&&D.iadd(p),D},u.prototype.gcd=function(p){if(this.isZero())return p.abs();if(p.isZero())return this.abs();var v=this.clone(),M=p.clone();v.negative=0,M.negative=0;for(var k=0;v.isEven()&&M.isEven();k++)v.iushrn(1),M.iushrn(1);do{for(;v.isEven();)v.iushrn(1);for(;M.isEven();)M.iushrn(1);var I=v.cmp(M);if(I<0){var z=v;v=M,M=z}else if(I===0||M.cmpn(1)===0)break;v.isub(M)}while(!0);return M.iushln(k)},u.prototype.invm=function(p){return this.egcd(p).a.umod(p)},u.prototype.isEven=function(){return(this.words[0]&1)===0},u.prototype.isOdd=function(){return(this.words[0]&1)===1},u.prototype.andln=function(p){return this.words[0]&p},u.prototype.bincn=function(p){n(typeof p=="number");var v=p%26,M=(p-v)/26,k=1<>>26,V&=67108863,this.words[z]=V}return I!==0&&(this.words[z]=I,this.length++),this},u.prototype.isZero=function(){return this.length===1&&this.words[0]===0},u.prototype.cmpn=function(p){var v=p<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;this._strip();var M;if(this.length>1)M=1;else{v&&(p=-p),n(p<=67108863,"Number is too big");var k=this.words[0]|0;M=k===p?0:kp.length)return 1;if(this.length=0;M--){var k=this.words[M]|0,I=p.words[M]|0;if(k!==I){kI&&(v=1);break}}return v},u.prototype.gtn=function(p){return this.cmpn(p)===1},u.prototype.gt=function(p){return this.cmp(p)===1},u.prototype.gten=function(p){return this.cmpn(p)>=0},u.prototype.gte=function(p){return this.cmp(p)>=0},u.prototype.ltn=function(p){return this.cmpn(p)===-1},u.prototype.lt=function(p){return this.cmp(p)===-1},u.prototype.lten=function(p){return this.cmpn(p)<=0},u.prototype.lte=function(p){return this.cmp(p)<=0},u.prototype.eqn=function(p){return this.cmpn(p)===0},u.prototype.eq=function(p){return this.cmp(p)===0},u.red=function(p){return new c0(p)},u.prototype.toRed=function(p){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),p.convertTo(this)._forceRed(p)},u.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},u.prototype._forceRed=function(p){return this.red=p,this},u.prototype.forceRed=function(p){return n(!this.red,"Already a number in reduction context"),this._forceRed(p)},u.prototype.redAdd=function(p){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,p)},u.prototype.redIAdd=function(p){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,p)},u.prototype.redSub=function(p){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,p)},u.prototype.redISub=function(p){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,p)},u.prototype.redShl=function(p){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,p)},u.prototype.redMul=function(p){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,p),this.red.mul(this,p)},u.prototype.redIMul=function(p){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,p),this.red.imul(this,p)},u.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},u.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},u.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},u.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},u.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},u.prototype.redPow=function(p){return n(this.red&&!p.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,p)};var G={k256:null,p224:null,p192:null,p25519:null};function t0(j,p){this.name=j,this.p=new u(p,16),this.n=this.p.bitLength(),this.k=new u(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}t0.prototype._tmp=function(){var p=new u(null);return p.words=new Array(Math.ceil(this.n/13)),p},t0.prototype.ireduce=function(p){var v=p,M;do this.split(v,this.tmp),v=this.imulK(v),v=v.iadd(this.tmp),M=v.bitLength();while(M>this.n);var k=M0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},t0.prototype.split=function(p,v){p.iushrn(this.n,0,v)},t0.prototype.imulK=function(p){return p.imul(this.k)};function Z(){t0.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(Z,t0),Z.prototype.split=function(p,v){for(var M=4194303,k=Math.min(p.length,9),I=0;I>>22,z=V}z>>>=22,p.words[I-10]=z,z===0&&p.length>10?p.length-=10:p.length-=9},Z.prototype.imulK=function(p){p.words[p.length]=0,p.words[p.length+1]=0,p.length+=2;for(var v=0,M=0;M>>=26,p.words[M]=I,v=k}return v!==0&&(p.words[p.length++]=v),p},u._prime=function(p){if(G[p])return G[p];var v;if(p==="k256")v=new Z;else if(p==="p224")v=new e0;else if(p==="p192")v=new o0;else if(p==="p25519")v=new d0;else throw new Error("Unknown prime "+p);return G[p]=v,v};function c0(j){if(typeof j=="string"){var p=u._prime(j);this.m=p.p,this.prime=p}else n(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}c0.prototype._verify1=function(p){n(p.negative===0,"red works only with positives"),n(p.red,"red works only with red numbers")},c0.prototype._verify2=function(p,v){n((p.negative|v.negative)===0,"red works only with positives"),n(p.red&&p.red===v.red,"red works only with red numbers")},c0.prototype.imod=function(p){return this.prime?this.prime.ireduce(p)._forceRed(this):(d(p,p.umod(this.m)._forceRed(this)),p)},c0.prototype.neg=function(p){return p.isZero()?p.clone():this.m.sub(p)._forceRed(this)},c0.prototype.add=function(p,v){this._verify2(p,v);var M=p.add(v);return M.cmp(this.m)>=0&&M.isub(this.m),M._forceRed(this)},c0.prototype.iadd=function(p,v){this._verify2(p,v);var M=p.iadd(v);return M.cmp(this.m)>=0&&M.isub(this.m),M},c0.prototype.sub=function(p,v){this._verify2(p,v);var M=p.sub(v);return M.cmpn(0)<0&&M.iadd(this.m),M._forceRed(this)},c0.prototype.isub=function(p,v){this._verify2(p,v);var M=p.isub(v);return M.cmpn(0)<0&&M.iadd(this.m),M},c0.prototype.shl=function(p,v){return this._verify1(p),this.imod(p.ushln(v))},c0.prototype.imul=function(p,v){return this._verify2(p,v),this.imod(p.imul(v))},c0.prototype.mul=function(p,v){return this._verify2(p,v),this.imod(p.mul(v))},c0.prototype.isqr=function(p){return this.imul(p,p.clone())},c0.prototype.sqr=function(p){return this.mul(p,p)},c0.prototype.sqrt=function(p){if(p.isZero())return p.clone();var v=this.m.andln(3);if(n(v%2===1),v===3){var M=this.m.add(new u(1)).iushrn(2);return this.pow(p,M)}for(var k=this.m.subn(1),I=0;!k.isZero()&&k.andln(1)===0;)I++,k.iushrn(1);n(!k.isZero());var z=new u(1).toRed(this),V=z.redNeg(),b=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new u(2*l*l).toRed(this);this.pow(l,b).cmp(V)!==0;)l.redIAdd(V);for(var m=this.pow(l,k),D=this.pow(p,k.addn(1).iushrn(1)),f=this.pow(p,k),S=I;f.cmp(z)!==0;){for(var O=f,$=0;O.cmp(z)!==0;$++)O=O.redSqr();n($=0;I--){for(var m=v.words[I],D=l-1;D>=0;D--){var f=m>>D&1;if(z!==k[0]&&(z=this.sqr(z)),f===0&&V===0){b=0;continue}V<<=1,V|=f,b++,!(b!==M&&(I!==0||D!==0))&&(z=this.mul(z,k[V]),b=0,V=0)}l=26}return z},c0.prototype.convertTo=function(p){var v=p.umod(this.m);return v===p?v.clone():v},c0.prototype.convertFrom=function(p){var v=p.clone();return v.red=null,v},u.mont=function(p){return new h0(p)};function h0(j){c0.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new u(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(h0,c0),h0.prototype.convertTo=function(p){return this.imod(p.ushln(this.shift))},h0.prototype.convertFrom=function(p){var v=this.imod(p.mul(this.rinv));return v.red=null,v},h0.prototype.imul=function(p,v){if(p.isZero()||v.isZero())return p.words[0]=0,p.length=1,p;var M=p.imul(v),k=M.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),I=M.isub(k).iushrn(this.shift),z=I;return I.cmp(this.m)>=0?z=I.isub(this.m):I.cmpn(0)<0&&(z=I.iadd(this.m)),z._forceRed(this)},h0.prototype.mul=function(p,v){if(p.isZero()||v.isZero())return new u(0)._forceRed(this);var M=p.mul(v),k=M.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),I=M.isub(k).iushrn(this.shift),z=I;return I.cmp(this.m)>=0?z=I.isub(this.m):I.cmpn(0)<0&&(z=I.iadd(this.m)),z._forceRed(this)},h0.prototype.invm=function(p){var v=this.imod(p._invmp(this.m).mul(this.r2));return v._forceRed(this)}})(t,y1)})(g4);var Jx=g4.exports;const a1=xt(Jx),th="bignumber/5.7.0";var _u=a1.BN;const Or=new r0(th),Ca={},Hf=9007199254740991;function Qx(t){return t!=null&&(P0.isBigNumber(t)||typeof t=="number"&&t%1===0||typeof t=="string"&&!!t.match(/^-?[0-9]+$/)||s1(t)||typeof t=="bigint"||J2(t))}let Kf=!1;class P0{constructor(e,r){e!==Ca&&Or.throwError("cannot call constructor directly; use BigNumber.from",r0.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return tt(x1(this).fromTwos(e))}toTwos(e){return tt(x1(this).toTwos(e))}abs(){return this._hex[0]==="-"?P0.from(this._hex.substring(1)):this}add(e){return tt(x1(this).add(x1(e)))}sub(e){return tt(x1(this).sub(x1(e)))}div(e){return P0.from(e).isZero()&&Et("division-by-zero","div"),tt(x1(this).div(x1(e)))}mul(e){return tt(x1(this).mul(x1(e)))}mod(e){const r=x1(e);return r.isNeg()&&Et("division-by-zero","mod"),tt(x1(this).umod(r))}pow(e){const r=x1(e);return r.isNeg()&&Et("negative-power","pow"),tt(x1(this).pow(r))}and(e){const r=x1(e);return(this.isNegative()||r.isNeg())&&Et("unbound-bitwise-result","and"),tt(x1(this).and(r))}or(e){const r=x1(e);return(this.isNegative()||r.isNeg())&&Et("unbound-bitwise-result","or"),tt(x1(this).or(r))}xor(e){const r=x1(e);return(this.isNegative()||r.isNeg())&&Et("unbound-bitwise-result","xor"),tt(x1(this).xor(r))}mask(e){return(this.isNegative()||e<0)&&Et("negative-width","mask"),tt(x1(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&Et("negative-width","shl"),tt(x1(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&Et("negative-width","shr"),tt(x1(this).shrn(e))}eq(e){return x1(this).eq(x1(e))}lt(e){return x1(this).lt(x1(e))}lte(e){return x1(this).lte(x1(e))}gt(e){return x1(this).gt(x1(e))}gte(e){return x1(this).gte(x1(e))}isNegative(){return this._hex[0]==="-"}isZero(){return x1(this).isZero()}toNumber(){try{return x1(this).toNumber()}catch{Et("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Or.throwError("this platform does not support BigInt",r0.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?Kf||(Kf=!0,Or.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Or.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",r0.errors.UNEXPECTED_ARGUMENT,{}):Or.throwError("BigNumber.toString does not accept parameters",r0.errors.UNEXPECTED_ARGUMENT,{})),x1(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof P0)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new P0(Ca,ku(e)):e.match(/^-?[0-9]+$/)?new P0(Ca,ku(new _u(e))):Or.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&Et("underflow","BigNumber.from",e),(e>=Hf||e<=-Hf)&&Et("overflow","BigNumber.from",e),P0.from(String(e));const r=e;if(typeof r=="bigint")return P0.from(r.toString());if(J2(r))return P0.from(N0(r));if(r)if(r.toHexString){const n=r.toHexString();if(typeof n=="string")return P0.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(s1(n)||n[0]==="-"&&s1(n.substring(1))))return P0.from(n)}return Or.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function ku(t){if(typeof t!="string")return ku(t.toString(16));if(t[0]==="-")return t=t.substring(1),t[0]==="-"&&Or.throwArgumentError("invalid hex","value",t),t=ku(t),t==="0x00"?t:"-"+t;if(t.substring(0,2)!=="0x"&&(t="0x"+t),t==="0x")return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&t.substring(0,4)==="0x00";)t="0x"+t.substring(4);return t}function tt(t){return P0.from(ku(t))}function x1(t){const e=P0.from(t).toHexString();return e[0]==="-"?new _u("-"+e.substring(3),16):new _u(e.substring(2),16)}function Et(t,e,r){const n={fault:t,operation:e};return r!=null&&(n.value=r),Or.throwError(t,r0.errors.NUMERIC_FAULT,n)}function Yx(t){return new _u(t,36).toString(16)}function Xx(t){return new _u(t,16).toString(36)}const We=new r0(th),Ji={},rh=P0.from(0),nh=P0.from(-1);function ih(t,e,r,n){const i={fault:e,operation:r};return n!==void 0&&(i.value=n),We.throwError(t,r0.errors.NUMERIC_FAULT,i)}let Qi="0";for(;Qi.length<256;)Qi+=Qi;function x4(t){if(typeof t!="number")try{t=P0.from(t).toNumber()}catch{}return typeof t=="number"&&t>=0&&t<=256&&!(t%1)?"1"+Qi.substring(0,t):We.throwArgumentError("invalid decimal size","decimals",t)}function f9(t,e){e==null&&(e=0);const r=x4(e);t=P0.from(t);const n=t.lt(rh);n&&(t=t.mul(nh));let i=t.mod(r).toString();for(;i.length2&&We.throwArgumentError("too many decimal points","value",t);let u=i[0],a=i[1];for(u||(u="0"),a||(a="0");a[a.length-1]==="0";)a=a.substring(0,a.length-1);for(a.length>r.length-1&&ih("fractional component exceeds decimals","underflow","parseFixed"),a===""&&(a="0");a.lengthe[a]==null?s:(typeof e[a]!==o&&We.throwArgumentError("invalid fixed format ("+a+" not "+o+")","format."+a,e[a]),e[a]);r=u("signed","boolean",r),n=u("width","number",n),i=u("decimals","number",i)}return n%8&&We.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),i>80&&We.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new T6(Ji,r,n,i)}}class Ce{constructor(e,r,n,i){e!==Ji&&We.throwError("cannot use FixedNumber constructor; use FixedNumber.from",r0.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&We.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const r=sr(this._value,this.format.decimals),n=sr(e._value,e.format.decimals);return Ce.fromValue(r.add(n),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const r=sr(this._value,this.format.decimals),n=sr(e._value,e.format.decimals);return Ce.fromValue(r.sub(n),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const r=sr(this._value,this.format.decimals),n=sr(e._value,e.format.decimals);return Ce.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const r=sr(this._value,this.format.decimals),n=sr(e._value,e.format.decimals);return Ce.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");e.length===1&&e.push("0");let r=Ce.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(Gf.toFormat(r.format))),r}ceiling(){const e=this.toString().split(".");e.length===1&&e.push("0");let r=Ce.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(Gf.toFormat(r.format))),r}round(e){e==null&&(e=0);const r=this.toString().split(".");if(r.length===1&&r.push("0"),(e<0||e>80||e%1)&&We.throwArgumentError("invalid decimal count","decimals",e),r[1].length<=e)return this;const n=Ce.from("1"+Qi.substring(0,e),this.format),i=Zx.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n)}isZero(){return this._value==="0.0"||this._value==="0"}isNegative(){return this._value[0]==="-"}toString(){return this._value}toHexString(e){if(e==null)return this._hex;e%8&&We.throwArgumentError("invalid byte width","width",e);const r=P0.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return j1(r,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return Ce.fromString(this._value,e)}static fromValue(e,r,n){return n==null&&r!=null&&!Qx(r)&&(n=r,r=null),r==null&&(r=0),n==null&&(n="fixed"),Ce.fromString(f9(e,r),T6.from(n))}static fromString(e,r){r==null&&(r="fixed");const n=T6.from(r),i=sr(e,n.decimals);!n.signed&&i.lt(rh)&&ih("unsigned value cannot be negative","overflow","value",e);let u=null;n.signed?u=i.toTwos(n.width).toHexString():(u=i.toHexString(),u=j1(u,n.width/8));const a=f9(i,n.decimals);return new Ce(Ji,u,a,n)}static fromBytes(e,r){r==null&&(r="fixed");const n=T6.from(r);if(k0(e).length>n.width/8)throw new Error("overflow");let i=P0.from(e);n.signed&&(i=i.fromTwos(n.width));const u=i.toTwos((n.signed?0:1)+n.width).toHexString(),a=f9(i,n.decimals);return new Ce(Ji,u,a,n)}static from(e,r){if(typeof e=="string")return Ce.fromString(e,r);if(J2(e))return Ce.fromBytes(e,r);try{return Ce.fromValue(e,0,r)}catch(n){if(n.code!==r0.errors.INVALID_ARGUMENT)throw n}return We.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}const Gf=Ce.from(1),Zx=Ce.from("0.5");var uh={exports:{}};/** * [js-sha3]{@link https://github.com/emn178/js-sha3} * * @version 0.8.0 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2015-2018 * @license MIT - */(function(t){(function(){var e="input is invalid type",r="finalize already called",n=typeof window=="object",i=n?window:{};i.JS_SHA3_NO_WINDOW&&(n=!1);var u=!n&&typeof self=="object",a=!i.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;a?i=y1:u&&(i=self);var o=!i.JS_SHA3_NO_COMMON_JS&&!0&&t.exports,s=!i.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",c="0123456789abcdef".split(""),d=[31,7936,2031616,520093696],y=[4,1024,262144,67108864],A=[1,256,65536,16777216],C=[6,1536,393216,100663296],T=[0,8,16,24],U=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],P=[224,256,384,512],_=[128,256],B=["hex","buffer","arrayBuffer","array","digest"],N={128:168,256:136};(i.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(l){return Object.prototype.toString.call(l)==="[object Array]"}),s&&(i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(l){return typeof l=="object"&&l.buffer&&l.buffer.constructor===ArrayBuffer});for(var W=function(l,S,O){return function($){return new f(l,S,l).update($)[O]()}},G=function(l,S,O){return function($,H){return new f(l,S,H).update($)[O]()}},t0=function(l,S,O){return function($,H,n0,u0){return p["cshake"+l].update($,H,n0,u0)[O]()}},Z=function(l,S,O){return function($,H,n0,u0){return p["kmac"+l].update($,H,n0,u0)[O]()}},e0=function(l,S,O,$){for(var H=0;H>5,this.byteCount=this.blockCount<<2,this.outputBlocks=O>>5,this.extraBytes=(O&31)>>3;for(var $=0;$<50;++$)this.s[$]=0}f.prototype.update=function(l){if(this.finalized)throw new Error(r);var S,O=typeof l;if(O!=="string"){if(O==="object"){if(l===null)throw new Error(e);if(s&&l.constructor===ArrayBuffer)l=new Uint8Array(l);else if(!Array.isArray(l)&&(!s||!ArrayBuffer.isView(l)))throw new Error(e)}else throw new Error(e);S=!0}for(var $=this.blocks,H=this.byteCount,n0=l.length,u0=this.blockCount,s0=0,g0=this.s,y0,_0;s0>2]|=l[s0]<>2]|=_0<>2]|=(192|_0>>6)<>2]|=(128|_0&63)<=57344?($[y0>>2]|=(224|_0>>12)<>2]|=(128|_0>>6&63)<>2]|=(128|_0&63)<>2]|=(240|_0>>18)<>2]|=(128|_0>>12&63)<>2]|=(128|_0>>6&63)<>2]|=(128|_0&63)<=H){for(this.start=y0-H,this.block=$[u0],y0=0;y0>8,O=l&255;O>0;)H.unshift(O),l=l>>8,O=l&255,++$;return S?H.push($):H.unshift($),this.update(H),H.length},f.prototype.encodeString=function(l){var S,O=typeof l;if(O!=="string"){if(O==="object"){if(l===null)throw new Error(e);if(s&&l.constructor===ArrayBuffer)l=new Uint8Array(l);else if(!Array.isArray(l)&&(!s||!ArrayBuffer.isView(l)))throw new Error(e)}else throw new Error(e);S=!0}var $=0,H=l.length;if(S)$=H;else for(var n0=0;n0=57344?$+=3:(u0=65536+((u0&1023)<<10|l.charCodeAt(++n0)&1023),$+=4)}return $+=this.encode($*8),this.update(l),$},f.prototype.bytepad=function(l,S){for(var O=this.encode(S),$=0;$>2]|=this.padding[S&3],this.lastByteIndex===this.byteCount)for(l[0]=l[O],S=1;S>4&15]+c[s0&15]+c[s0>>12&15]+c[s0>>8&15]+c[s0>>20&15]+c[s0>>16&15]+c[s0>>28&15]+c[s0>>24&15];n0%l===0&&(D(S),H=0)}return $&&(s0=S[H],u0+=c[s0>>4&15]+c[s0&15],$>1&&(u0+=c[s0>>12&15]+c[s0>>8&15]),$>2&&(u0+=c[s0>>20&15]+c[s0>>16&15])),u0},f.prototype.arrayBuffer=function(){this.finalize();var l=this.blockCount,S=this.s,O=this.outputBlocks,$=this.extraBytes,H=0,n0=0,u0=this.outputBits>>3,s0;$?s0=new ArrayBuffer(O+1<<2):s0=new ArrayBuffer(u0);for(var g0=new Uint32Array(s0);n0>8&255,u0[s0+2]=g0>>16&255,u0[s0+3]=g0>>24&255;n0%l===0&&D(S)}return $&&(s0=n0<<2,g0=S[H],u0[s0]=g0&255,$>1&&(u0[s0+1]=g0>>8&255),$>2&&(u0[s0+2]=g0>>16&255)),u0};function m(l,S,O){f.call(this,l,S,O)}m.prototype=new f,m.prototype.finalize=function(){return this.encode(this.outputBits,!0),f.prototype.finalize.call(this)};var D=function(l){var S,O,$,H,n0,u0,s0,g0,y0,_0,z0,M0,I0,R0,V0,G0,X0,$0,Z0,p1,l1,L,x,w,q,i0,l0,p0,O0,H0,K0,Y0,j0,o1,be,b1,g1,ne,e1,F1,ce,m1,f1,ve,d1,w1,me,E1,S1,ze,B1,T1,se,P1,N1,Ze,M1,D1,$e,Z1,Ae,we,t1;for($=0;$<48;$+=2)H=l[0]^l[10]^l[20]^l[30]^l[40],n0=l[1]^l[11]^l[21]^l[31]^l[41],u0=l[2]^l[12]^l[22]^l[32]^l[42],s0=l[3]^l[13]^l[23]^l[33]^l[43],g0=l[4]^l[14]^l[24]^l[34]^l[44],y0=l[5]^l[15]^l[25]^l[35]^l[45],_0=l[6]^l[16]^l[26]^l[36]^l[46],z0=l[7]^l[17]^l[27]^l[37]^l[47],M0=l[8]^l[18]^l[28]^l[38]^l[48],I0=l[9]^l[19]^l[29]^l[39]^l[49],S=M0^(u0<<1|s0>>>31),O=I0^(s0<<1|u0>>>31),l[0]^=S,l[1]^=O,l[10]^=S,l[11]^=O,l[20]^=S,l[21]^=O,l[30]^=S,l[31]^=O,l[40]^=S,l[41]^=O,S=H^(g0<<1|y0>>>31),O=n0^(y0<<1|g0>>>31),l[2]^=S,l[3]^=O,l[12]^=S,l[13]^=O,l[22]^=S,l[23]^=O,l[32]^=S,l[33]^=O,l[42]^=S,l[43]^=O,S=u0^(_0<<1|z0>>>31),O=s0^(z0<<1|_0>>>31),l[4]^=S,l[5]^=O,l[14]^=S,l[15]^=O,l[24]^=S,l[25]^=O,l[34]^=S,l[35]^=O,l[44]^=S,l[45]^=O,S=g0^(M0<<1|I0>>>31),O=y0^(I0<<1|M0>>>31),l[6]^=S,l[7]^=O,l[16]^=S,l[17]^=O,l[26]^=S,l[27]^=O,l[36]^=S,l[37]^=O,l[46]^=S,l[47]^=O,S=_0^(H<<1|n0>>>31),O=z0^(n0<<1|H>>>31),l[8]^=S,l[9]^=O,l[18]^=S,l[19]^=O,l[28]^=S,l[29]^=O,l[38]^=S,l[39]^=O,l[48]^=S,l[49]^=O,R0=l[0],V0=l[1],w1=l[11]<<4|l[10]>>>28,me=l[10]<<4|l[11]>>>28,p0=l[20]<<3|l[21]>>>29,O0=l[21]<<3|l[20]>>>29,Z1=l[31]<<9|l[30]>>>23,Ae=l[30]<<9|l[31]>>>23,m1=l[40]<<18|l[41]>>>14,f1=l[41]<<18|l[40]>>>14,o1=l[2]<<1|l[3]>>>31,be=l[3]<<1|l[2]>>>31,G0=l[13]<<12|l[12]>>>20,X0=l[12]<<12|l[13]>>>20,E1=l[22]<<10|l[23]>>>22,S1=l[23]<<10|l[22]>>>22,H0=l[33]<<13|l[32]>>>19,K0=l[32]<<13|l[33]>>>19,we=l[42]<<2|l[43]>>>30,t1=l[43]<<2|l[42]>>>30,P1=l[5]<<30|l[4]>>>2,N1=l[4]<<30|l[5]>>>2,b1=l[14]<<6|l[15]>>>26,g1=l[15]<<6|l[14]>>>26,$0=l[25]<<11|l[24]>>>21,Z0=l[24]<<11|l[25]>>>21,ze=l[34]<<15|l[35]>>>17,B1=l[35]<<15|l[34]>>>17,Y0=l[45]<<29|l[44]>>>3,j0=l[44]<<29|l[45]>>>3,w=l[6]<<28|l[7]>>>4,q=l[7]<<28|l[6]>>>4,Ze=l[17]<<23|l[16]>>>9,M1=l[16]<<23|l[17]>>>9,ne=l[26]<<25|l[27]>>>7,e1=l[27]<<25|l[26]>>>7,p1=l[36]<<21|l[37]>>>11,l1=l[37]<<21|l[36]>>>11,T1=l[47]<<24|l[46]>>>8,se=l[46]<<24|l[47]>>>8,ve=l[8]<<27|l[9]>>>5,d1=l[9]<<27|l[8]>>>5,i0=l[18]<<20|l[19]>>>12,l0=l[19]<<20|l[18]>>>12,D1=l[29]<<7|l[28]>>>25,$e=l[28]<<7|l[29]>>>25,F1=l[38]<<8|l[39]>>>24,ce=l[39]<<8|l[38]>>>24,L=l[48]<<14|l[49]>>>18,x=l[49]<<14|l[48]>>>18,l[0]=R0^~G0&$0,l[1]=V0^~X0&Z0,l[10]=w^~i0&p0,l[11]=q^~l0&O0,l[20]=o1^~b1&ne,l[21]=be^~g1&e1,l[30]=ve^~w1&E1,l[31]=d1^~me&S1,l[40]=P1^~Ze&D1,l[41]=N1^~M1&$e,l[2]=G0^~$0&p1,l[3]=X0^~Z0&l1,l[12]=i0^~p0&H0,l[13]=l0^~O0&K0,l[22]=b1^~ne&F1,l[23]=g1^~e1&ce,l[32]=w1^~E1&ze,l[33]=me^~S1&B1,l[42]=Ze^~D1&Z1,l[43]=M1^~$e&Ae,l[4]=$0^~p1&L,l[5]=Z0^~l1&x,l[14]=p0^~H0&Y0,l[15]=O0^~K0&j0,l[24]=ne^~F1&m1,l[25]=e1^~ce&f1,l[34]=E1^~ze&T1,l[35]=S1^~B1&se,l[44]=D1^~Z1&we,l[45]=$e^~Ae&t1,l[6]=p1^~L&R0,l[7]=l1^~x&V0,l[16]=H0^~Y0&w,l[17]=K0^~j0&q,l[26]=F1^~m1&o1,l[27]=ce^~f1&be,l[36]=ze^~T1&ve,l[37]=B1^~se&d1,l[46]=Z1^~we&P1,l[47]=Ae^~t1&N1,l[8]=L^~R0&G0,l[9]=x^~V0&X0,l[18]=Y0^~w&i0,l[19]=j0^~q&l0,l[28]=m1^~o1&b1,l[29]=f1^~be&g1,l[38]=T1^~ve&w1,l[39]=se^~d1&me,l[48]=we^~P1&Ze,l[49]=t1^~N1&M1,l[0]^=U[$],l[1]^=U[$+1]};if(o)t.exports=p;else for(M=0;M>=8;return e}function Wl(t,e,r){let n=0;for(let i=0;ie+1+n&&fr.throwError("child data too short",r0.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function oh(t,e){if(t.length===0&&fr.throwError("data too short",r0.errors.BUFFER_OVERRUN,{}),t[e]>=248){const r=t[e]-247;e+1+r>t.length&&fr.throwError("data short segment too short",r0.errors.BUFFER_OVERRUN,{});const n=Wl(t,e+1,r);return e+1+r+n>t.length&&fr.throwError("data long segment too short",r0.errors.BUFFER_OVERRUN,{}),Vl(t,e,e+1+r,r+n)}else if(t[e]>=192){const r=t[e]-192;return e+1+r>t.length&&fr.throwError("data array too short",r0.errors.BUFFER_OVERRUN,{}),Vl(t,e,e+1,r)}else if(t[e]>=184){const r=t[e]-183;e+1+r>t.length&&fr.throwError("data array too short",r0.errors.BUFFER_OVERRUN,{});const n=Wl(t,e+1,r);e+1+r+n>t.length&&fr.throwError("data array too short",r0.errors.BUFFER_OVERRUN,{});const i=N0(t.slice(e+1+r,e+1+r+n));return{consumed:1+r+n,result:i}}else if(t[e]>=128){const r=t[e]-128;e+1+r>t.length&&fr.throwError("data too short",r0.errors.BUFFER_OVERRUN,{});const n=N0(t.slice(e+1,e+1+r));return{consumed:1+r,result:n}}return{consumed:1,result:N0(t[e])}}function _8(t){const e=k0(t),r=oh(e,0);return r.consumed!==e.length&&fr.throwArgumentError("invalid rlp data","data",t),r.result}const iv=Object.freeze(Object.defineProperty({__proto__:null,decode:_8,encode:Sn},Symbol.toStringTag,{value:"Module"})),uv="address/5.7.0",C2=new r0(uv);function Jl(t){s1(t,20)||C2.throwArgumentError("invalid address","address",t),t=t.toLowerCase();const e=t.substring(2).split(""),r=new Uint8Array(40);for(let i=0;i<40;i++)r[i]=e[i].charCodeAt(0);const n=k0(O1(r));for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&(e[i]=e[i].toUpperCase()),(n[i>>1]&15)>=8&&(e[i+1]=e[i+1].toUpperCase());return"0x"+e.join("")}const av=9007199254740991;function ov(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}const v4={};for(let t=0;t<10;t++)v4[String(t)]=String(t);for(let t=0;t<26;t++)v4[String.fromCharCode(65+t)]=String(10+t);const Ql=Math.floor(ov(av));function sh(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>v4[n]).join("");for(;e.length>=Ql;){let n=e.substring(0,Ql);e=parseInt(n,10)%97+e.substring(n.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}function I1(t){let e=null;if(typeof t!="string"&&C2.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))t.substring(0,2)!=="0x"&&(t="0x"+t),e=Jl(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&C2.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==sh(t)&&C2.throwArgumentError("bad icap checksum","address",t),e=Yx(t.substring(4));e.length<40;)e="0"+e;e=Jl("0x"+e)}else C2.throwArgumentError("invalid address","address",t);return e}function sv(t){try{return I1(t),!0}catch{}return!1}function lv(t){let e=Xx(I1(t).substring(2)).toUpperCase();for(;e.length<30;)e="0"+e;return"XE"+sh("XE00"+e)+e}function k8(t){let e=null;try{e=I1(t.from)}catch{C2.throwArgumentError("missing from address","transaction",t)}const r=Er(k0(P0.from(t.nonce).toHexString()));return I1(ue(O1(Sn([e,r])),12))}function fv(t,e,r){return kr(e)!==32&&C2.throwArgumentError("salt must be 32 bytes","salt",e),kr(r)!==32&&C2.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),I1(ue(O1(L1(["0xff",I1(t),e,r])),12))}const cv=Object.freeze(Object.defineProperty({__proto__:null,getAddress:I1,getContractAddress:k8,getCreate2Address:fv,getIcapAddress:lv,isAddress:sv},Symbol.toStringTag,{value:"Module"})),lh=z1(cv);var dv={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Yl=t=>{let e;const r=new Set,n=(s,c)=>{const d=typeof s=="function"?s(e):s;if(!Object.is(d,e)){const y=e;e=c??typeof d!="object"?d:Object.assign({},e,d),r.forEach(A=>A(e,y))}},i=()=>e,o={setState:n,getState:i,subscribe:s=>(r.add(s),()=>r.delete(s)),destroy:()=>{(dv?"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."),r.clear()}};return e=t(n,i,o),o},A4=t=>t?Yl(t):Yl;var fh={exports:{}},ch={},dh={exports:{}},hh={};/** + */(function(t){(function(){var e="input is invalid type",r="finalize already called",n=typeof window=="object",i=n?window:{};i.JS_SHA3_NO_WINDOW&&(n=!1);var u=!n&&typeof self=="object",a=!i.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;a?i=y1:u&&(i=self);var o=!i.JS_SHA3_NO_COMMON_JS&&!0&&t.exports,s=!i.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",c="0123456789abcdef".split(""),d=[31,7936,2031616,520093696],y=[4,1024,262144,67108864],A=[1,256,65536,16777216],C=[6,1536,393216,100663296],T=[0,8,16,24],U=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],P=[224,256,384,512],_=[128,256],B=["hex","buffer","arrayBuffer","array","digest"],N={128:168,256:136};(i.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(f){return Object.prototype.toString.call(f)==="[object Array]"}),s&&(i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(f){return typeof f=="object"&&f.buffer&&f.buffer.constructor===ArrayBuffer});for(var W=function(f,S,O){return function($){return new l(f,S,f).update($)[O]()}},G=function(f,S,O){return function($,H){return new l(f,S,H).update($)[O]()}},t0=function(f,S,O){return function($,H,n0,u0){return p["cshake"+f].update($,H,n0,u0)[O]()}},Z=function(f,S,O){return function($,H,n0,u0){return p["kmac"+f].update($,H,n0,u0)[O]()}},e0=function(f,S,O,$){for(var H=0;H>5,this.byteCount=this.blockCount<<2,this.outputBlocks=O>>5,this.extraBytes=(O&31)>>3;for(var $=0;$<50;++$)this.s[$]=0}l.prototype.update=function(f){if(this.finalized)throw new Error(r);var S,O=typeof f;if(O!=="string"){if(O==="object"){if(f===null)throw new Error(e);if(s&&f.constructor===ArrayBuffer)f=new Uint8Array(f);else if(!Array.isArray(f)&&(!s||!ArrayBuffer.isView(f)))throw new Error(e)}else throw new Error(e);S=!0}for(var $=this.blocks,H=this.byteCount,n0=f.length,u0=this.blockCount,s0=0,g0=this.s,y0,_0;s0>2]|=f[s0]<>2]|=_0<>2]|=(192|_0>>6)<>2]|=(128|_0&63)<=57344?($[y0>>2]|=(224|_0>>12)<>2]|=(128|_0>>6&63)<>2]|=(128|_0&63)<>2]|=(240|_0>>18)<>2]|=(128|_0>>12&63)<>2]|=(128|_0>>6&63)<>2]|=(128|_0&63)<=H){for(this.start=y0-H,this.block=$[u0],y0=0;y0>8,O=f&255;O>0;)H.unshift(O),f=f>>8,O=f&255,++$;return S?H.push($):H.unshift($),this.update(H),H.length},l.prototype.encodeString=function(f){var S,O=typeof f;if(O!=="string"){if(O==="object"){if(f===null)throw new Error(e);if(s&&f.constructor===ArrayBuffer)f=new Uint8Array(f);else if(!Array.isArray(f)&&(!s||!ArrayBuffer.isView(f)))throw new Error(e)}else throw new Error(e);S=!0}var $=0,H=f.length;if(S)$=H;else for(var n0=0;n0=57344?$+=3:(u0=65536+((u0&1023)<<10|f.charCodeAt(++n0)&1023),$+=4)}return $+=this.encode($*8),this.update(f),$},l.prototype.bytepad=function(f,S){for(var O=this.encode(S),$=0;$>2]|=this.padding[S&3],this.lastByteIndex===this.byteCount)for(f[0]=f[O],S=1;S>4&15]+c[s0&15]+c[s0>>12&15]+c[s0>>8&15]+c[s0>>20&15]+c[s0>>16&15]+c[s0>>28&15]+c[s0>>24&15];n0%f===0&&(D(S),H=0)}return $&&(s0=S[H],u0+=c[s0>>4&15]+c[s0&15],$>1&&(u0+=c[s0>>12&15]+c[s0>>8&15]),$>2&&(u0+=c[s0>>20&15]+c[s0>>16&15])),u0},l.prototype.arrayBuffer=function(){this.finalize();var f=this.blockCount,S=this.s,O=this.outputBlocks,$=this.extraBytes,H=0,n0=0,u0=this.outputBits>>3,s0;$?s0=new ArrayBuffer(O+1<<2):s0=new ArrayBuffer(u0);for(var g0=new Uint32Array(s0);n0>8&255,u0[s0+2]=g0>>16&255,u0[s0+3]=g0>>24&255;n0%f===0&&D(S)}return $&&(s0=n0<<2,g0=S[H],u0[s0]=g0&255,$>1&&(u0[s0+1]=g0>>8&255),$>2&&(u0[s0+2]=g0>>16&255)),u0};function m(f,S,O){l.call(this,f,S,O)}m.prototype=new l,m.prototype.finalize=function(){return this.encode(this.outputBits,!0),l.prototype.finalize.call(this)};var D=function(f){var S,O,$,H,n0,u0,s0,g0,y0,_0,z0,M0,I0,R0,V0,G0,X0,$0,Z0,p1,f1,L,x,w,q,i0,f0,p0,O0,H0,K0,Y0,j0,o1,be,b1,g1,ne,e1,F1,ce,m1,l1,ve,d1,w1,me,E1,S1,ze,B1,T1,se,P1,N1,Ze,M1,D1,$e,Z1,Ae,we,t1;for($=0;$<48;$+=2)H=f[0]^f[10]^f[20]^f[30]^f[40],n0=f[1]^f[11]^f[21]^f[31]^f[41],u0=f[2]^f[12]^f[22]^f[32]^f[42],s0=f[3]^f[13]^f[23]^f[33]^f[43],g0=f[4]^f[14]^f[24]^f[34]^f[44],y0=f[5]^f[15]^f[25]^f[35]^f[45],_0=f[6]^f[16]^f[26]^f[36]^f[46],z0=f[7]^f[17]^f[27]^f[37]^f[47],M0=f[8]^f[18]^f[28]^f[38]^f[48],I0=f[9]^f[19]^f[29]^f[39]^f[49],S=M0^(u0<<1|s0>>>31),O=I0^(s0<<1|u0>>>31),f[0]^=S,f[1]^=O,f[10]^=S,f[11]^=O,f[20]^=S,f[21]^=O,f[30]^=S,f[31]^=O,f[40]^=S,f[41]^=O,S=H^(g0<<1|y0>>>31),O=n0^(y0<<1|g0>>>31),f[2]^=S,f[3]^=O,f[12]^=S,f[13]^=O,f[22]^=S,f[23]^=O,f[32]^=S,f[33]^=O,f[42]^=S,f[43]^=O,S=u0^(_0<<1|z0>>>31),O=s0^(z0<<1|_0>>>31),f[4]^=S,f[5]^=O,f[14]^=S,f[15]^=O,f[24]^=S,f[25]^=O,f[34]^=S,f[35]^=O,f[44]^=S,f[45]^=O,S=g0^(M0<<1|I0>>>31),O=y0^(I0<<1|M0>>>31),f[6]^=S,f[7]^=O,f[16]^=S,f[17]^=O,f[26]^=S,f[27]^=O,f[36]^=S,f[37]^=O,f[46]^=S,f[47]^=O,S=_0^(H<<1|n0>>>31),O=z0^(n0<<1|H>>>31),f[8]^=S,f[9]^=O,f[18]^=S,f[19]^=O,f[28]^=S,f[29]^=O,f[38]^=S,f[39]^=O,f[48]^=S,f[49]^=O,R0=f[0],V0=f[1],w1=f[11]<<4|f[10]>>>28,me=f[10]<<4|f[11]>>>28,p0=f[20]<<3|f[21]>>>29,O0=f[21]<<3|f[20]>>>29,Z1=f[31]<<9|f[30]>>>23,Ae=f[30]<<9|f[31]>>>23,m1=f[40]<<18|f[41]>>>14,l1=f[41]<<18|f[40]>>>14,o1=f[2]<<1|f[3]>>>31,be=f[3]<<1|f[2]>>>31,G0=f[13]<<12|f[12]>>>20,X0=f[12]<<12|f[13]>>>20,E1=f[22]<<10|f[23]>>>22,S1=f[23]<<10|f[22]>>>22,H0=f[33]<<13|f[32]>>>19,K0=f[32]<<13|f[33]>>>19,we=f[42]<<2|f[43]>>>30,t1=f[43]<<2|f[42]>>>30,P1=f[5]<<30|f[4]>>>2,N1=f[4]<<30|f[5]>>>2,b1=f[14]<<6|f[15]>>>26,g1=f[15]<<6|f[14]>>>26,$0=f[25]<<11|f[24]>>>21,Z0=f[24]<<11|f[25]>>>21,ze=f[34]<<15|f[35]>>>17,B1=f[35]<<15|f[34]>>>17,Y0=f[45]<<29|f[44]>>>3,j0=f[44]<<29|f[45]>>>3,w=f[6]<<28|f[7]>>>4,q=f[7]<<28|f[6]>>>4,Ze=f[17]<<23|f[16]>>>9,M1=f[16]<<23|f[17]>>>9,ne=f[26]<<25|f[27]>>>7,e1=f[27]<<25|f[26]>>>7,p1=f[36]<<21|f[37]>>>11,f1=f[37]<<21|f[36]>>>11,T1=f[47]<<24|f[46]>>>8,se=f[46]<<24|f[47]>>>8,ve=f[8]<<27|f[9]>>>5,d1=f[9]<<27|f[8]>>>5,i0=f[18]<<20|f[19]>>>12,f0=f[19]<<20|f[18]>>>12,D1=f[29]<<7|f[28]>>>25,$e=f[28]<<7|f[29]>>>25,F1=f[38]<<8|f[39]>>>24,ce=f[39]<<8|f[38]>>>24,L=f[48]<<14|f[49]>>>18,x=f[49]<<14|f[48]>>>18,f[0]=R0^~G0&$0,f[1]=V0^~X0&Z0,f[10]=w^~i0&p0,f[11]=q^~f0&O0,f[20]=o1^~b1&ne,f[21]=be^~g1&e1,f[30]=ve^~w1&E1,f[31]=d1^~me&S1,f[40]=P1^~Ze&D1,f[41]=N1^~M1&$e,f[2]=G0^~$0&p1,f[3]=X0^~Z0&f1,f[12]=i0^~p0&H0,f[13]=f0^~O0&K0,f[22]=b1^~ne&F1,f[23]=g1^~e1&ce,f[32]=w1^~E1&ze,f[33]=me^~S1&B1,f[42]=Ze^~D1&Z1,f[43]=M1^~$e&Ae,f[4]=$0^~p1&L,f[5]=Z0^~f1&x,f[14]=p0^~H0&Y0,f[15]=O0^~K0&j0,f[24]=ne^~F1&m1,f[25]=e1^~ce&l1,f[34]=E1^~ze&T1,f[35]=S1^~B1&se,f[44]=D1^~Z1&we,f[45]=$e^~Ae&t1,f[6]=p1^~L&R0,f[7]=f1^~x&V0,f[16]=H0^~Y0&w,f[17]=K0^~j0&q,f[26]=F1^~m1&o1,f[27]=ce^~l1&be,f[36]=ze^~T1&ve,f[37]=B1^~se&d1,f[46]=Z1^~we&P1,f[47]=Ae^~t1&N1,f[8]=L^~R0&G0,f[9]=x^~V0&X0,f[18]=Y0^~w&i0,f[19]=j0^~q&f0,f[28]=m1^~o1&b1,f[29]=l1^~be&g1,f[38]=T1^~ve&w1,f[39]=se^~d1&me,f[48]=we^~P1&Ze,f[49]=t1^~N1&M1,f[0]^=U[$],f[1]^=U[$+1]};if(o)t.exports=p;else for(M=0;M>=8;return e}function Vf(t,e,r){let n=0;for(let i=0;ie+1+n&&lr.throwError("child data too short",r0.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function oh(t,e){if(t.length===0&&lr.throwError("data too short",r0.errors.BUFFER_OVERRUN,{}),t[e]>=248){const r=t[e]-247;e+1+r>t.length&&lr.throwError("data short segment too short",r0.errors.BUFFER_OVERRUN,{});const n=Vf(t,e+1,r);return e+1+r+n>t.length&&lr.throwError("data long segment too short",r0.errors.BUFFER_OVERRUN,{}),Jf(t,e,e+1+r,r+n)}else if(t[e]>=192){const r=t[e]-192;return e+1+r>t.length&&lr.throwError("data array too short",r0.errors.BUFFER_OVERRUN,{}),Jf(t,e,e+1,r)}else if(t[e]>=184){const r=t[e]-183;e+1+r>t.length&&lr.throwError("data array too short",r0.errors.BUFFER_OVERRUN,{});const n=Vf(t,e+1,r);e+1+r+n>t.length&&lr.throwError("data array too short",r0.errors.BUFFER_OVERRUN,{});const i=N0(t.slice(e+1+r,e+1+r+n));return{consumed:1+r+n,result:i}}else if(t[e]>=128){const r=t[e]-128;e+1+r>t.length&&lr.throwError("data too short",r0.errors.BUFFER_OVERRUN,{});const n=N0(t.slice(e+1,e+1+r));return{consumed:1+r,result:n}}return{consumed:1,result:N0(t[e])}}function _8(t){const e=k0(t),r=oh(e,0);return r.consumed!==e.length&&lr.throwArgumentError("invalid rlp data","data",t),r.result}const iv=Object.freeze(Object.defineProperty({__proto__:null,decode:_8,encode:Sn},Symbol.toStringTag,{value:"Module"})),uv="address/5.7.0",C2=new r0(uv);function Qf(t){s1(t,20)||C2.throwArgumentError("invalid address","address",t),t=t.toLowerCase();const e=t.substring(2).split(""),r=new Uint8Array(40);for(let i=0;i<40;i++)r[i]=e[i].charCodeAt(0);const n=k0(O1(r));for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&(e[i]=e[i].toUpperCase()),(n[i>>1]&15)>=8&&(e[i+1]=e[i+1].toUpperCase());return"0x"+e.join("")}const av=9007199254740991;function ov(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}const v4={};for(let t=0;t<10;t++)v4[String(t)]=String(t);for(let t=0;t<26;t++)v4[String.fromCharCode(65+t)]=String(10+t);const Yf=Math.floor(ov(av));function sh(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>v4[n]).join("");for(;e.length>=Yf;){let n=e.substring(0,Yf);e=parseInt(n,10)%97+e.substring(n.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}function I1(t){let e=null;if(typeof t!="string"&&C2.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))t.substring(0,2)!=="0x"&&(t="0x"+t),e=Qf(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&C2.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==sh(t)&&C2.throwArgumentError("bad icap checksum","address",t),e=Yx(t.substring(4));e.length<40;)e="0"+e;e=Qf("0x"+e)}else C2.throwArgumentError("invalid address","address",t);return e}function sv(t){try{return I1(t),!0}catch{}return!1}function fv(t){let e=Xx(I1(t).substring(2)).toUpperCase();for(;e.length<30;)e="0"+e;return"XE"+sh("XE00"+e)+e}function k8(t){let e=null;try{e=I1(t.from)}catch{C2.throwArgumentError("missing from address","transaction",t)}const r=Er(k0(P0.from(t.nonce).toHexString()));return I1(ue(O1(Sn([e,r])),12))}function lv(t,e,r){return kr(e)!==32&&C2.throwArgumentError("salt must be 32 bytes","salt",e),kr(r)!==32&&C2.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),I1(ue(O1(L1(["0xff",I1(t),e,r])),12))}const cv=Object.freeze(Object.defineProperty({__proto__:null,getAddress:I1,getContractAddress:k8,getCreate2Address:lv,getIcapAddress:fv,isAddress:sv},Symbol.toStringTag,{value:"Module"})),fh=z1(cv);var dv={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Xf=t=>{let e;const r=new Set,n=(s,c)=>{const d=typeof s=="function"?s(e):s;if(!Object.is(d,e)){const y=e;e=c??typeof d!="object"?d:Object.assign({},e,d),r.forEach(A=>A(e,y))}},i=()=>e,o={setState:n,getState:i,subscribe:s=>(r.add(s),()=>r.delete(s)),destroy:()=>{(dv?"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."),r.clear()}};return e=t(n,i,o),o},A4=t=>t?Xf(t):Xf;var lh={exports:{}},ch={},dh={exports:{}},hh={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -79,7 +79,7 @@ Error generating stack: `+u.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var q6=f0;function hv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var pv=typeof Object.is=="function"?Object.is:hv,bv=q6.useState,mv=q6.useEffect,yv=q6.useLayoutEffect,gv=q6.useDebugValue;function xv(t,e){var r=e(),n=bv({inst:{value:r,getSnapshot:e}}),i=n[0].inst,u=n[1];return yv(function(){i.value=r,i.getSnapshot=e,Fa(i)&&u({inst:i})},[t,r,e]),mv(function(){return Fa(i)&&u({inst:i}),t(function(){Fa(i)&&u({inst:i})})},[t]),gv(r),r}function Fa(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!pv(t,r)}catch{return!0}}function vv(t,e){return e()}var Av=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?vv:xv;hh.useSyncExternalStore=q6.useSyncExternalStore!==void 0?q6.useSyncExternalStore:Av;dh.exports=hh;var wv=dh.exports;/** + */var q6=l0;function hv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var pv=typeof Object.is=="function"?Object.is:hv,bv=q6.useState,mv=q6.useEffect,yv=q6.useLayoutEffect,gv=q6.useDebugValue;function xv(t,e){var r=e(),n=bv({inst:{value:r,getSnapshot:e}}),i=n[0].inst,u=n[1];return yv(function(){i.value=r,i.getSnapshot=e,Fa(i)&&u({inst:i})},[t,r,e]),mv(function(){return Fa(i)&&u({inst:i}),t(function(){Fa(i)&&u({inst:i})})},[t]),gv(r),r}function Fa(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!pv(t,r)}catch{return!0}}function vv(t,e){return e()}var Av=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?vv:xv;hh.useSyncExternalStore=q6.useSyncExternalStore!==void 0?q6.useSyncExternalStore:Av;dh.exports=hh;var wv=dh.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -87,10 +87,10 @@ Error generating stack: `+u.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var S8=f0,Ev=wv;function Cv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Fv=typeof Object.is=="function"?Object.is:Cv,Bv=Ev.useSyncExternalStore,Dv=S8.useRef,_v=S8.useEffect,kv=S8.useMemo,Sv=S8.useDebugValue;ch.useSyncExternalStoreWithSelector=function(t,e,r,n,i){var u=Dv(null);if(u.current===null){var a={hasValue:!1,value:null};u.current=a}else a=u.current;u=kv(function(){function s(C){if(!c){if(c=!0,d=C,C=n(C),i!==void 0&&a.hasValue){var T=a.value;if(i(T,C))return y=T}return y=C}if(T=y,Fv(d,C))return T;var U=n(C);return i!==void 0&&i(T,U)?T:(d=C,y=U)}var c=!1,d,y,A=r===void 0?null:r;return[function(){return s(e())},A===null?void 0:function(){return s(A())}]},[e,r,n,i]);var o=Bv(t,u[0],u[1]);return _v(function(){a.hasValue=!0,a.value=o},[o]),Sv(o),o};fh.exports=ch;var Tv=fh.exports;const ph=xt(Tv),{useSyncExternalStoreWithSelector:Pv}=ph;function bh(t,e=t.getState,r){const n=Pv(t.subscribe,t.getState,t.getServerState||t.getState,e,r);return f0.useDebugValue(n),n}const Xl=t=>{const e=typeof t=="function"?A4(t):t,r=(n,i)=>bh(e,n,i);return Object.assign(r,e),r},mh=t=>t?Xl(t):Xl;var Nv=t=>mh(t);const Mv=Object.freeze(Object.defineProperty({__proto__:null,create:mh,createStore:A4,default:Nv,useStore:bh},Symbol.toStringTag,{value:"Module"})),yh=z1(Mv);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.createWeb3ReactStoreAndActions=t.MAX_SAFE_CHAIN_ID=void 0;const e=lh,r=yh;t.MAX_SAFE_CHAIN_ID=0xfffffffffffec;function n(o){if(!Number.isInteger(o)||o<=0||o>t.MAX_SAFE_CHAIN_ID)throw new Error(`Invalid chainId ${o}`)}function i(o){return(0,e.getAddress)(o)}const u={chainId:void 0,accounts:void 0,activating:!1};function a(){const o=(0,r.createStore)()(()=>u);let s=0;function c(){const A=++s;return o.setState(Object.assign(Object.assign({},u),{activating:!0})),()=>{s===A&&o.setState({activating:!1})}}function d(A){if(A.chainId!==void 0&&n(A.chainId),A.accounts!==void 0)for(let C=0;C{var T,U;const P=(T=A.chainId)!==null&&T!==void 0?T:C.chainId,_=(U=A.accounts)!==null&&U!==void 0?U:C.accounts;let B=C.activating;return B&&P&&_&&(B=!1),{chainId:P,accounts:_,activating:B}})}function y(){s++,o.setState(u)}return[o,{startActivation:c,update:d,resetState:y}]}t.createWeb3ReactStoreAndActions=a})(Xd);const{useSyncExternalStoreWithSelector:Uv}=ph;function gh(t,e=t.getState,r){const n=Uv(t.subscribe,t.getState,t.getServerState||t.getState,e,r);return f0.useDebugValue(n),n}const Zl=(t,e)=>{const r=A4(t),n=(i,u=e)=>gh(r,i,u);return Object.assign(n,r),n},Iv=(t,e)=>t?Zl(t,e):Zl,Rv=Object.freeze(Object.defineProperty({__proto__:null,createWithEqualityFn:Iv,useStoreWithEqualityFn:gh},Symbol.toStringTag,{value:"Module"})),Ov=z1(Rv),Lv="properties/5.7.0";var jv=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const H9=new r0(Lv);function b0(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function De(t,e){for(let r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||typeof t.prototype!="object")break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function te(t){return jv(this,void 0,void 0,function*(){const e=Object.keys(t).map(n=>{const i=t[n];return Promise.resolve(i).then(u=>({key:n,value:u}))});return(yield Promise.all(e)).reduce((n,i)=>(n[i.key]=i.value,n),{})})}function w4(t,e){(!t||typeof t!="object")&&H9.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(r=>{e[r]||H9.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)})}function q1(t){const e={};for(const r in t)e[r]=t[r];return e}const zv={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function xh(t){if(t==null||zv[typeof t])return!0;if(Array.isArray(t)||typeof t=="object"){if(!Object.isFrozen(t))return!1;const e=Object.keys(t);for(let r=0;rQe(e)));if(typeof t=="object"){const e={};for(const r in t){const n=t[r];n!==void 0&&b0(e,r,Qe(n))}return e}return H9.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}function Qe(t){return $v(t)}class Q2{constructor(e){for(const r in e)this[r]=Qe(e[r])}}const qv=Object.freeze(Object.defineProperty({__proto__:null,Description:Q2,checkProperties:w4,deepCopy:Qe,defineReadOnly:b0,getStatic:De,resolveProperties:te,shallowCopy:q1},Symbol.toStringTag,{value:"Module"})),Hv="abstract-provider/5.7.0";var Kv=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const Gv=new r0(Hv);class Wv extends Q2{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class Rn{constructor(){Gv.checkAbstract(new.target,Rn),b0(this,"_isProvider",!0)}getFeeData(){return Kv(this,void 0,void 0,function*(){const{block:e,gasPrice:r}=yield te({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(a=>null)});let n=null,i=null,u=null;return e&&e.baseFeePerGas&&(n=e.baseFeePerGas,u=P0.from("1500000000"),i=e.baseFeePerGas.mul(2).add(u)),{lastBaseFeePerGas:n,maxFeePerGas:i,maxPriorityFeePerGas:u,gasPrice:r}})}addListener(e,r){return this.on(e,r)}removeListener(e,r){return this.off(e,r)}static isProvider(e){return!!(e&&e._isProvider)}}const Vv="networks/5.7.1",ef=new r0(Vv);function Jv(t){return t&&typeof t.renetwork=="function"}function zr(t){const e=function(r,n){n==null&&(n={});const i=[];if(r.InfuraProvider&&n.infura!=="-")try{i.push(new r.InfuraProvider(t,n.infura))}catch{}if(r.EtherscanProvider&&n.etherscan!=="-")try{i.push(new r.EtherscanProvider(t,n.etherscan))}catch{}if(r.AlchemyProvider&&n.alchemy!=="-")try{i.push(new r.AlchemyProvider(t,n.alchemy))}catch{}if(r.PocketProvider&&n.pocket!=="-"){const u=["goerli","ropsten","rinkeby","sepolia"];try{const a=new r.PocketProvider(t,n.pocket);a.network&&u.indexOf(a.network.name)===-1&&i.push(a)}catch{}}if(r.CloudflareProvider&&n.cloudflare!=="-")try{i.push(new r.CloudflareProvider(t))}catch{}if(r.AnkrProvider&&n.ankr!=="-")try{const u=["ropsten"],a=new r.AnkrProvider(t,n.ankr);a.network&&u.indexOf(a.network.name)===-1&&i.push(a)}catch{}if(i.length===0)return null;if(r.FallbackProvider){let u=1;return n.quorum!=null?u=n.quorum:t==="homestead"&&(u=2),new r.FallbackProvider(i,u)}return i[0]};return e.renetwork=function(r){return zr(r)},e}function K9(t,e){const r=function(n,i){return n.JsonRpcProvider?new n.JsonRpcProvider(t,e):null};return r.renetwork=function(n){return K9(t,n)},r}const tf={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:zr("homestead")},rf={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:zr("ropsten")},nf={chainId:63,name:"classicMordor",_defaultProvider:K9("https://www.ethercluster.com/mordor","classicMordor")},F5={unspecified:{chainId:0,name:"unspecified"},homestead:tf,mainnet:tf,morden:{chainId:2,name:"morden"},ropsten:rf,testnet:rf,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:zr("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:zr("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:zr("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:zr("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:K9("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:nf,classicTestnet:nf,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:K9("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:zr("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:zr("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function E4(t){if(t==null)return null;if(typeof t=="number"){for(const n in F5){const i=F5[n];if(i.chainId===t)return{name:i.name,chainId:i.chainId,ensAddress:i.ensAddress||null,_defaultProvider:i._defaultProvider||null}}return{chainId:t,name:"unknown"}}if(typeof t=="string"){const n=F5[t];return n==null?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}const e=F5[t.name];if(!e)return typeof t.chainId!="number"&&ef.throwArgumentError("invalid network chainId","network",t),t;t.chainId!==0&&t.chainId!==e.chainId&&ef.throwArgumentError("network chainId mismatch","network",t);let r=t._defaultProvider||null;return r==null&&e._defaultProvider&&(Jv(e._defaultProvider)?r=e._defaultProvider.renetwork(t):r=e._defaultProvider),{name:t.name,chainId:e.chainId,ensAddress:t.ensAddress||e.ensAddress||null,_defaultProvider:r}}function C4(t){t=atob(t);const e=[];for(let r=0;r0;)n.push(a%this.base),a=a/this.base|0}let i="";for(let u=0;r[u]===0&&u=0;--u)i+=this.alphabet[n[u]];return i}decode(e){if(typeof e!="string")throw new TypeError("Expected String");let r=[];if(e.length===0)return new Uint8Array(r);r.push(0);for(let n=0;n>=8;for(;u>0;)r.push(u&255),u>>=8}for(let n=0;e[n]===this._leader&&n>6===2;a++)u++;return u}return t===it.OVERRUN?r.length-e-1:0}function uA(t,e,r,n,i){return t===it.OVERLONG?(n.push(i),0):(n.push(65533),Eh(t,e,r))}const Ch=Object.freeze({error:iA,ignore:Eh,replace:uA});function D4(t,e){e==null&&(e=Ch.error),t=k0(t);const r=[];let n=0;for(;n>7)){r.push(i);continue}let u=null,a=null;if((i&224)===192)u=1,a=127;else if((i&240)===224)u=2,a=2047;else if((i&248)===240)u=3,a=65535;else{(i&192)===128?n+=e(it.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(it.BAD_PREFIX,n-1,t,r);continue}if(n-1+u>=t.length){n+=e(it.OVERRUN,n-1,t,r);continue}let o=i&(1<<8-u-1)-1;for(let s=0;s1114111){n+=e(it.OUT_OF_RANGE,n-1-u,t,r,o);continue}if(o>=55296&&o<=57343){n+=e(it.UTF16_SURROGATE,n-1-u,t,r,o);continue}if(o<=a){n+=e(it.OVERLONG,n-1-u,t,r,o);continue}r.push(o)}}return r}function H1(t,e=Sr.current){e!=Sr.current&&(wh.checkNormalize(),t=t.normalize(e));let r=[];for(let n=0;n>6|192),r.push(i&63|128);else if((i&64512)==55296){n++;const u=t.charCodeAt(n);if(n>=t.length||(u&64512)!==56320)throw new Error("invalid utf-8 string");const a=65536+((i&1023)<<10)+(u&1023);r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(a&63|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128)}return k0(r)}function Ba(t){const e="0000"+t.toString(16);return"\\u"+e.substring(e.length-4)}function aA(t,e){return'"'+D4(t,e).map(r=>{if(r<256){switch(r){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(r>=32&&r<127)return String.fromCharCode(r)}return r<=65535?Ba(r):(r-=65536,Ba((r>>10&1023)+55296)+Ba((r&1023)+56320))}).join("")+'"'}function Qo(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function Y2(t,e){return Qo(D4(t,e))}function G9(t,e=Sr.current){return D4(H1(t,e))}function oA(t){const e=H1(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return N0(L1([e,Ah]).slice(0,32))}function sA(t){const e=k0(t);if(e.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(e[31]!==0)throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;e[r-1]===0;)r--;return Y2(e.slice(0,r))}function lA(t){if(t.length%4!==0)throw new Error("bad data");let e=[];for(let r=0;r{let u=i.split(":");r+=parseInt(u[0],16),n[r]=e(u[1])}),n}function Fh(t){let e=0;return t.split(",").map(r=>{let n=r.split("-");n.length===1?n[1]="0":n[1]===""&&(n[1]="1");let i=e+parseInt(n[0],16);return e=parseInt(n[1],16),{l:i,h:e}})}function k4(t,e){let r=0;for(let n=0;n=r&&t<=r+i.h&&(t-r)%(i.d||1)===0){if(i.e&&i.e.indexOf(t-r)!==-1)continue;return i}}return null}const fA=Fh("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),cA="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(t=>parseInt(t,16)),dA=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],hA=_4("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),pA=_4("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),bA=_4("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",lA),mA=Fh("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function yA(t){return t.reduce((e,r)=>(r.forEach(n=>{e.push(n)}),e),[])}function gA(t){return!!k4(t,fA)}function xA(t){let e=k4(t,dA);if(e)return[t+e.s];let r=hA[t];if(r)return r;let n=pA[t];if(n)return[t+n[0]];let i=bA[t];return i||null}function vA(t){return!!k4(t,mA)}function AA(t){if(t.match(/^[a-z0-9-]*$/i)&&t.length<=59)return t.toLowerCase();let e=G9(t);e=yA(e.map(n=>{if(cA.indexOf(n)>=0)return[];if(n>=65024&&n<=65039)return[];let i=xA(n);return i||[n]})),e=G9(Qo(e),Sr.NFKC),e.forEach(n=>{if(vA(n))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),e.forEach(n=>{if(gA(n))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});let r=Qo(e);if(r.substring(0,1)==="-"||r.substring(2,4)==="--"||r.substring(r.length-1)==="-")throw new Error("invalid hyphen");return r}const wA=Object.freeze(Object.defineProperty({__proto__:null,get UnicodeNormalizationForm(){return Sr},Utf8ErrorFuncs:Ch,get Utf8ErrorReason(){return it},_toEscapedUtf8String:aA,formatBytes32String:oA,nameprep:AA,parseBytes32String:sA,toUtf8Bytes:H1,toUtf8CodePoints:G9,toUtf8String:Y2},Symbol.toStringTag,{value:"Module"}));function F2(t){return O1(H1(t))}const Bh="hash/5.7.0";function Dh(t,e){e==null&&(e=1);const r=[],n=r.forEach,i=function(u,a){n.call(u,function(o){a>0&&Array.isArray(o)?i(o,a-1):r.push(o)})};return i(t,e),r}function EA(t){const e={};for(let r=0;r>--s&1}const y=31,A=Math.pow(2,y),C=A>>>1,T=C>>1,U=A-1;let P=0;for(let G=0;G1;){let d0=t0+Z>>>1;G>>1|d(),e0=e0<<1^C,o0=(o0^C)<<1|C|1;B=e0,N=1+o0-e0}let W=n-4;return _.map(G=>{switch(G-W){case 3:return W+65792+(t[o++]<<16|t[o++]<<8|t[o++]);case 2:return W+256+(t[o++]<<8|t[o++]);case 1:return W+t[o++];default:return G-1}})}function FA(t){let e=0;return()=>t[e++]}function BA(t){return FA(CA(t))}function DA(t){return t&1?~t>>1:t>>1}function _A(t,e){let r=Array(t);for(let n=0;ne[a]):r}function SA(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(PA(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(NA(r,t))}return EA(Dh(e))}function TA(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(r)}return e}function _h(t,e,r){let n=Array(t).fill(void 0).map(()=>[]);for(let i=0;in[a].push(u));return n}function PA(t,e){let r=1+e(),n=e(),i=TA(e),u=_h(i.length,1+t,e);return Dh(u.map((a,o)=>{const s=a[0],c=a.slice(1);return Array(i[o]).fill(void 0).map((d,y)=>{let A=y*n;return[s+y*r,c.map(C=>C+A)]})}))}function NA(t,e){let r=1+e();return _h(r,1+t,e).map(i=>[i[0],i.slice(1)])}function MA(t){let e=W9(t).sort((n,i)=>n-i);return r();function r(){let n=[];for(;;){let c=W9(t,e);if(c.length==0)break;n.push({set:new Set(c),node:r()})}n.sort((c,d)=>d.set.size-c.set.size);let i=t(),u=i%3;i=i/3|0;let a=!!(i&1);i>>=1;let o=i==1,s=i==2;return{branches:n,valid:u,fe0f:a,save:o,check:s}}}function UA(){return BA(C4("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}const T8=UA(),IA=new Set(W9(T8)),RA=new Set(W9(T8)),OA=SA(T8),LA=MA(T8),af=45,of=95;function kh(t){return G9(t)}function jA(t){return t.filter(e=>e!=65039)}function Sh(t){for(let e of t.split(".")){let r=kh(e);try{for(let n=r.lastIndexOf(of)-1;n>=0;n--)if(r[n]!==of)throw new Error("underscore only allowed at start");if(r.length>=4&&r.every(n=>n<128)&&r[2]===af&&r[3]===af)throw new Error("invalid label extension")}catch(n){throw new Error(`Invalid label "${e}": ${n.message}`)}}return t}function zA(t){return Sh($A(t,jA))}function $A(t,e){let r=kh(t).reverse(),n=[];for(;r.length;){let i=HA(r);if(i){n.push(...e(i));continue}let u=r.pop();if(IA.has(u)){n.push(u);continue}if(RA.has(u))continue;let a=OA[u];if(a){n.push(...a);continue}throw new Error(`Disallowed codepoint: 0x${u.toString(16).toUpperCase()}`)}return Sh(qA(String.fromCodePoint(...n)))}function qA(t){return t.normalize("NFC")}function HA(t,e){var r;let n=LA,i,u,a=[],o=t.length;for(;o;){let s=t[--o];if(n=(r=n.branches.find(c=>c.set.has(s)))===null||r===void 0?void 0:r.node,!n)break;if(n.save)u=s;else if(n.check&&s===u)break;a.push(s),n.fe0f&&(a.push(65039),o>0&&t[o-1]==65039&&o--),n.valid&&(i=a.slice(),n.valid==2&&i.splice(1,1),t.length=o)}return i}const KA=new r0(Bh),Th=new Uint8Array(32);Th.fill(0);function sf(t){if(t.length===0)throw new Error("invalid ENS name; empty component");return t}function P8(t){const e=H1(zA(t)),r=[];if(t.length===0)return r;let n=0;for(let i=0;i=e.length)throw new Error("invalid ENS name; empty component");return r.push(sf(e.slice(n))),r}function GA(t){return P8(t).map(e=>Y2(e)).join(".")}function WA(t){try{return P8(t).length!==0}catch{}return!1}function Cr(t){typeof t!="string"&&KA.throwArgumentError("invalid ENS name; not a string","name",t);let e=Th;const r=P8(t);for(;r.length;)e=O1(L1([e,O1(r.pop())]));return N0(e)}function Ph(t){return N0(L1(P8(t).map(e=>{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const r=new Uint8Array(e.length+1);return r.set(e,1),r[0]=r.length-1,r})))+"00"}const Nh=`Ethereum Signed Message: -`;function S4(t){return typeof t=="string"&&(t=H1(t)),O1(L1([H1(Nh),H1(String(t.length)),t]))}var VA=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const J1=new r0(Bh),Mh=new Uint8Array(32);Mh.fill(0);const JA=P0.from(-1),Uh=P0.from(0),Ih=P0.from(1),QA=P0.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function YA(t){const e=k0(t),r=e.length%32;return r?Ge([e,Mh.slice(r)]):N0(e)}const XA=j1(Ih.toHexString(),32),ZA=j1(Uh.toHexString(),32),lf={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Da=["name","version","chainId","verifyingContract","salt"];function ff(t){return function(e){return typeof e!="string"&&J1.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const ew={name:ff("name"),version:ff("version"),chainId:function(t){try{return P0.from(t).toString()}catch{}return J1.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return I1(t).toLowerCase()}catch{}return J1.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{const e=k0(t);if(e.length!==32)throw new Error("bad length");return N0(e)}catch{}return J1.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function _a(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const r=e[1]==="",n=parseInt(e[2]||"256");(n%8!==0||n>256||e[2]&&e[2]!==String(n))&&J1.throwArgumentError("invalid numeric width","type",t);const i=QA.mask(r?n-1:n),u=r?i.add(Ih).mul(JA):Uh;return function(a){const o=P0.from(a);return(o.lt(u)||o.gt(i))&&J1.throwArgumentError(`value out-of-bounds for ${t}`,"value",a),j1(o.toTwos(256).toHexString(),32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return(r===0||r>32||e[1]!==String(r))&&J1.throwArgumentError("invalid bytes width","type",t),function(n){return k0(n).length!==r&&J1.throwArgumentError(`invalid length for ${t}`,"value",n),YA(n)}}}switch(t){case"address":return function(e){return j1(I1(e),32)};case"bool":return function(e){return e?XA:ZA};case"bytes":return function(e){return O1(e)};case"string":return function(e){return F2(e)}}return null}function cf(t,e){return`${t}(${e.map(({name:r,type:n})=>n+" "+r).join(",")})`}class Be{constructor(e){b0(this,"types",Object.freeze(Qe(e))),b0(this,"_encoderCache",{}),b0(this,"_types",{});const r={},n={},i={};Object.keys(e).forEach(o=>{r[o]={},n[o]=[],i[o]={}});for(const o in e){const s={};e[o].forEach(c=>{s[c.name]&&J1.throwArgumentError(`duplicate variable name ${JSON.stringify(c.name)} in ${JSON.stringify(o)}`,"types",e),s[c.name]=!0;const d=c.type.match(/^([^\x5b]*)(\x5b|$)/)[1];d===o&&J1.throwArgumentError(`circular type reference to ${JSON.stringify(d)}`,"types",e),!_a(d)&&(n[d]||J1.throwArgumentError(`unknown type ${JSON.stringify(d)}`,"types",e),n[d].push(o),r[o][d]=!0)})}const u=Object.keys(n).filter(o=>n[o].length===0);u.length===0?J1.throwArgumentError("missing primary type","types",e):u.length>1&&J1.throwArgumentError(`ambiguous primary types or unused types: ${u.map(o=>JSON.stringify(o)).join(", ")}`,"types",e),b0(this,"primaryType",u[0]);function a(o,s){s[o]&&J1.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,"types",e),s[o]=!0,Object.keys(r[o]).forEach(c=>{n[c]&&(a(c,s),Object.keys(s).forEach(d=>{i[d][c]=!0}))}),delete s[o]}a(this.primaryType,{});for(const o in i){const s=Object.keys(i[o]);s.sort(),this._types[o]=cf(o,e[o])+s.map(c=>cf(c,e[c])).join("")}}getEncoder(e){let r=this._encoderCache[e];return r||(r=this._encoderCache[e]=this._getEncoder(e)),r}_getEncoder(e){{const i=_a(e);if(i)return i}const r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const i=r[1],u=this.getEncoder(i),a=parseInt(r[3]);return o=>{a>=0&&o.length!==a&&J1.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",o);let s=o.map(u);return this._types[i]&&(s=s.map(O1)),O1(Ge(s))}}const n=this.types[e];if(n){const i=F2(this._types[e]);return u=>{const a=n.map(({name:o,type:s})=>{const c=this.getEncoder(s)(u[o]);return this._types[s]?O1(c):c});return a.unshift(i),Ge(a)}}return J1.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const r=this._types[e];return r||J1.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),r}encodeData(e,r){return this.getEncoder(e)(r)}hashStruct(e,r){return O1(this.encodeData(e,r))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,r,n){if(_a(e))return n(e,r);const i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){const a=i[1],o=parseInt(i[3]);return o>=0&&r.length!==o&&J1.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",r),r.map(s=>this._visit(a,s,n))}const u=this.types[e];return u?u.reduce((a,{name:o,type:s})=>(a[o]=this._visit(s,r[o],n),a),{}):J1.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,r){return this._visit(this.primaryType,e,r)}static from(e){return new Be(e)}static getPrimaryType(e){return Be.from(e).primaryType}static hashStruct(e,r,n){return Be.from(r).hashStruct(e,n)}static hashDomain(e){const r=[];for(const n in e){const i=lf[n];i||J1.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),r.push({name:n,type:i})}return r.sort((n,i)=>Da.indexOf(n.name)-Da.indexOf(i.name)),Be.hashStruct("EIP712Domain",{EIP712Domain:r},e)}static encode(e,r,n){return Ge(["0x1901",Be.hashDomain(e),Be.from(r).hash(n)])}static hash(e,r,n){return O1(Be.encode(e,r,n))}static resolveNames(e,r,n,i){return VA(this,void 0,void 0,function*(){e=q1(e);const u={};e.verifyingContract&&!s1(e.verifyingContract,20)&&(u[e.verifyingContract]="0x");const a=Be.from(r);a.visit(n,(o,s)=>(o==="address"&&!s1(s,20)&&(u[s]="0x"),s));for(const o in u)u[o]=yield i(o);return e.verifyingContract&&u[e.verifyingContract]&&(e.verifyingContract=u[e.verifyingContract]),n=a.visit(n,(o,s)=>o==="address"&&u[s]?u[s]:s),{domain:e,value:n}})}static getPayload(e,r,n){Be.hashDomain(e);const i={},u=[];Da.forEach(s=>{const c=e[s];c!=null&&(i[s]=ew[s](c),u.push({name:s,type:lf[s]}))});const a=Be.from(r),o=q1(r);return o.EIP712Domain?J1.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):o.EIP712Domain=u,a.encode(n),{types:o,domain:i,primaryType:a.primaryType,message:a.visit(n,(s,c)=>{if(s.match(/^bytes(\d*)/))return N0(k0(c));if(s.match(/^u?int/))return P0.from(c).toString();switch(s){case"address":return c.toLowerCase();case"bool":return!!c;case"string":return typeof c!="string"&&J1.throwArgumentError("invalid string","value",c),c}return J1.throwArgumentError("unsupported type","type",s)})}}}const tw=Object.freeze(Object.defineProperty({__proto__:null,_TypedDataEncoder:Be,dnsEncode:Ph,ensNormalize:GA,hashMessage:S4,id:F2,isValidName:WA,messagePrefix:Nh,namehash:Cr},Symbol.toStringTag,{value:"Module"}));var Rh={},A1={},Yu=Oh;function Oh(t,e){if(!t)throw new Error(e||"Assertion failed")}Oh.equal=function(e,r,n){if(e!=r)throw new Error(n||"Assertion failed: "+e+" != "+r)};var Yo={exports:{}};typeof Object.create=="function"?Yo.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Yo.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 rw=Yo.exports,nw=Yu,iw=rw;A1.inherits=iw;function uw(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function aw(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t=="string")if(e){if(e==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t),i=0;i>6|192,r[n++]=u&63|128):uw(t,i)?(u=65536+((u&1023)<<10)+(t.charCodeAt(++i)&1023),r[n++]=u>>18|240,r[n++]=u>>12&63|128,r[n++]=u>>6&63|128,r[n++]=u&63|128):(r[n++]=u>>12|224,r[n++]=u>>6&63|128,r[n++]=u&63|128)}else for(i=0;i>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}A1.htonl=Lh;function sw(t,e){for(var r="",n=0;n>>0}return u}A1.join32=lw;function fw(t,e){for(var r=new Array(t.length*4),n=0,i=0;n>>24,r[i+1]=u>>>16&255,r[i+2]=u>>>8&255,r[i+3]=u&255):(r[i+3]=u>>>24,r[i+2]=u>>>16&255,r[i+1]=u>>>8&255,r[i]=u&255)}return r}A1.split32=fw;function cw(t,e){return t>>>e|t<<32-e}A1.rotr32=cw;function dw(t,e){return t<>>32-e}A1.rotl32=dw;function hw(t,e){return t+e>>>0}A1.sum32=hw;function pw(t,e,r){return t+e+r>>>0}A1.sum32_3=pw;function bw(t,e,r,n){return t+e+r+n>>>0}A1.sum32_4=bw;function mw(t,e,r,n,i){return t+e+r+n+i>>>0}A1.sum32_5=mw;function yw(t,e,r,n){var i=t[e],u=t[e+1],a=n+u>>>0,o=(a>>0,t[e+1]=a}A1.sum64=yw;function gw(t,e,r,n){var i=e+n>>>0,u=(i>>0}A1.sum64_hi=gw;function xw(t,e,r,n){var i=e+n;return i>>>0}A1.sum64_lo=xw;function vw(t,e,r,n,i,u,a,o){var s=0,c=e;c=c+n>>>0,s+=c>>0,s+=c>>0,s+=c>>0}A1.sum64_4_hi=vw;function Aw(t,e,r,n,i,u,a,o){var s=e+n+u+o;return s>>>0}A1.sum64_4_lo=Aw;function ww(t,e,r,n,i,u,a,o,s,c){var d=0,y=e;y=y+n>>>0,d+=y>>0,d+=y>>0,d+=y>>0,d+=y>>0}A1.sum64_5_hi=ww;function Ew(t,e,r,n,i,u,a,o,s,c){var d=e+n+u+o+c;return d>>>0}A1.sum64_5_lo=Ew;function Cw(t,e,r){var n=e<<32-r|t>>>r;return n>>>0}A1.rotr64_hi=Cw;function Fw(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}A1.rotr64_lo=Fw;function Bw(t,e,r){return t>>>r}A1.shr64_hi=Bw;function Dw(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}A1.shr64_lo=Dw;var ni={},df=A1,_w=Yu;function N8(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}ni.BlockHash=N8;N8.prototype.update=function(e,r){if(e=df.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=df.join32(e,0,e.length-n,this.endian);for(var i=0;i>>24&255,i[u++]=e>>>16&255,i[u++]=e>>>8&255,i[u++]=e&255}else for(i[u++]=e&255,i[u++]=e>>>8&255,i[u++]=e>>>16&255,i[u++]=e>>>24&255,i[u++]=0,i[u++]=0,i[u++]=0,i[u++]=0,a=8;a>>3}Mr.g0_256=Nw;function Mw(t){return Fr(t,17)^Fr(t,19)^t>>>10}Mr.g1_256=Mw;var K6=A1,Uw=ni,Iw=Mr,ka=K6.rotl32,Fi=K6.sum32,Rw=K6.sum32_5,Ow=Iw.ft_1,Kh=Uw.BlockHash,Lw=[1518500249,1859775393,2400959708,3395469782];function Tr(){if(!(this instanceof Tr))return new Tr;Kh.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}K6.inherits(Tr,Kh);var jw=Tr;Tr.blockSize=512;Tr.outSize=160;Tr.hmacStrength=80;Tr.padLength=64;Tr.prototype._update=function(e,r){for(var n=this.W,i=0;i<16;i++)n[i]=e[r+i];for(;ithis.blockSize&&(e=new this.Hash().update(e).digest()),DE(e.length<=this.blockSize);for(var r=e.length;r{u[o.toLowerCase()]=a}):n.headers.keys().forEach(a=>{u[a.toLowerCase()]=n.headers.get(a)}),{headers:u,statusCode:n.status,statusMessage:n.statusText,body:k0(new Uint8Array(i))}})}var IE=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const $t=new r0(NE);function mf(t){return new Promise(e=>{setTimeout(e,t)})}function h2(t,e){if(t==null)return null;if(typeof t=="string")return t;if(Ju(t)){if(e&&(e.split("/")[0]==="text"||e.split(";")[0].trim()==="application/json"))try{return Y2(t)}catch{}return N0(t)}return t}function RE(t){return H1(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,r)=>String.fromCharCode(parseInt(r,16))))}function np(t,e,r){const n=typeof t=="object"&&t.throttleLimit!=null?t.throttleLimit:12;$t.assertArgument(n>0&&n%1===0,"invalid connection throttle limit","connection.throttleLimit",n);const i=typeof t=="object"?t.throttleCallback:null,u=typeof t=="object"&&typeof t.throttleSlotInterval=="number"?t.throttleSlotInterval:100;$t.assertArgument(u>0&&u%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",u);const a=typeof t=="object"?!!t.errorPassThrough:!1,o={};let s=null;const c={method:"GET"};let d=!1,y=2*60*1e3;if(typeof t=="string")s=t;else if(typeof t=="object"){if((t==null||t.url==null)&&$t.throwArgumentError("missing URL","connection.url",t),s=t.url,typeof t.timeout=="number"&&t.timeout>0&&(y=t.timeout),t.headers)for(const _ in t.headers)o[_.toLowerCase()]={key:_,value:String(t.headers[_])},["if-none-match","if-modified-since"].indexOf(_.toLowerCase())>=0&&(d=!0);if(c.allowGzip=!!t.allowGzip,t.user!=null&&t.password!=null){s.substring(0,6)!=="https:"&&t.allowInsecureAuthentication!==!0&&$t.throwError("basic authentication requires a secure https url",r0.errors.INVALID_ARGUMENT,{argument:"url",url:s,user:t.user,password:"[REDACTED]"});const _=t.user+":"+t.password;o.authorization={key:"Authorization",value:"Basic "+F4(H1(_))}}t.skipFetchSetup!=null&&(c.skipFetchSetup=!!t.skipFetchSetup),t.fetchOptions!=null&&(c.fetchOptions=q1(t.fetchOptions))}const A=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),C=s?s.match(A):null;if(C)try{const _={statusCode:200,statusMessage:"OK",headers:{"content-type":C[1]||"text/plain"},body:C[2]?C4(C[3]):RE(C[3])};let B=_.body;return r&&(B=r(_.body,_)),Promise.resolve(B)}catch(_){$t.throwError("processing response error",r0.errors.SERVER_ERROR,{body:h2(C[1],C[2]),error:_,requestBody:null,requestMethod:"GET",url:s})}e&&(c.method="POST",c.body=e,o["content-type"]==null&&(o["content-type"]={key:"Content-Type",value:"application/octet-stream"}),o["content-length"]==null&&(o["content-length"]={key:"Content-Length",value:String(e.length)}));const T={};Object.keys(o).forEach(_=>{const B=o[_];T[B.key]=B.value}),c.headers=T;const U=function(){let _=null;return{promise:new Promise(function(W,G){y&&(_=setTimeout(()=>{_!=null&&(_=null,G($t.makeError("timeout",r0.errors.TIMEOUT,{requestBody:h2(c.body,T["content-type"]),requestMethod:c.method,timeout:y,url:s})))},y))}),cancel:function(){_!=null&&(clearTimeout(_),_=null)}}}(),P=function(){return IE(this,void 0,void 0,function*(){for(let _=0;_=300)&&(U.cancel(),$t.throwError("bad response",r0.errors.SERVER_ERROR,{status:B.statusCode,headers:B.headers,body:h2(N,B.headers?B.headers["content-type"]:null),requestBody:h2(c.body,T["content-type"]),requestMethod:c.method,url:s})),r)try{const W=yield r(N,B);return U.cancel(),W}catch(W){if(W.throttleRetry&&_{let o=null;if(u!=null)try{o=JSON.parse(Y2(u))}catch(s){$t.throwError("invalid JSON",r0.errors.SERVER_ERROR,{body:u,error:s})}return r&&(o=r(o,a)),o},i=null;if(e!=null){i=H1(e);const u=typeof t=="string"?{url:t}:q1(t);u.headers?Object.keys(u.headers).filter(o=>o.toLowerCase()==="content-type").length!==0||(u.headers=q1(u.headers),u.headers["content-type"]="application/json"):u.headers={"content-type":"application/json"},t=u}return np(t,i,n)}function mn(t,e){return e||(e={}),e=q1(e),e.floor==null&&(e.floor=0),e.ceiling==null&&(e.ceiling=1e4),e.interval==null&&(e.interval=250),new Promise(function(r,n){let i=null,u=!1;const a=()=>u?!1:(u=!0,i&&clearTimeout(i),!0);e.timeout&&(i=setTimeout(()=>{a()&&n(new Error("timeout"))},e.timeout));const o=e.retryLimit;let s=0;function c(){return t().then(function(d){if(d!==void 0)a()&&r(d);else if(e.oncePoll)e.oncePoll.once("poll",c);else if(e.onceBlock)e.onceBlock.once("block",c);else if(!u){if(s++,s>o){a()&&n(new Error("retry limit reached"));return}let y=e.interval*parseInt(String(Math.random()*Math.pow(2,s)));ye.ceiling&&(y=e.ceiling),setTimeout(c,y)}return null},function(d){a()&&n(d)})}c()})}const OE=Object.freeze(Object.defineProperty({__proto__:null,_fetchData:np,fetchJson:ai,poll:mn},Symbol.toStringTag,{value:"Module"}));var V9="qpzry9x8gf2tvdw0s3jn54khce6mua7l",es={};for(var D5=0;D5>25;return(t&33554431)<<5^-(e>>0&1)&996825010^-(e>>1&1)&642813549^-(e>>2&1)&513874426^-(e>>3&1)&1027748829^-(e>>4&1)&705979059}function ip(t){for(var e=1,r=0;r126)return"Invalid prefix ("+t+")";e=P6(e)^n>>5}for(e=P6(e),r=0;rr)throw new TypeError("Exceeds length limit");t=t.toLowerCase();var n=ip(t);if(typeof n=="string")throw new Error(n);for(var i=t+"1",u=0;u>5)throw new Error("Non 5-bit word");n=P6(n)^a,i+=V9.charAt(a)}for(u=0;u<6;++u)n=P6(n);for(n^=1,u=0;u<6;++u){var o=n>>(5-u)*5&31;i+=V9.charAt(o)}return i}function up(t,e){if(e=e||90,t.length<8)return t+" too short";if(t.length>e)return"Exceeds length limit";var r=t.toLowerCase(),n=t.toUpperCase();if(t!==r&&t!==n)return"Mixed-case string "+t;t=r;var i=t.lastIndexOf("1");if(i===-1)return"No separator character for "+t;if(i===0)return"Missing prefix for "+t;var u=t.slice(0,i),a=t.slice(i+1);if(a.length<6)return"Data too short";var o=ip(u);if(typeof o=="string")return o;for(var s=[],c=0;c=a.length)&&s.push(y)}return o!==1?"Invalid checksum for "+t:{prefix:u,words:s}}function jE(){var t=up.apply(null,arguments);if(typeof t=="object")return t}function zE(t){var e=up.apply(null,arguments);if(typeof e=="object")return e;throw new Error(e)}function M8(t,e,r,n){for(var i=0,u=0,a=(1<=r;)u-=r,o.push(i>>u&a);if(n)u>0&&o.push(i<=e)return"Excess padding";if(i<>8,A=d&255;y?s.push(y,A):s.push(A)}return s}r.toArray=n;function i(a){return a.length===1?"0"+a:a}r.zero2=i;function u(a){for(var o="",s=0;s(A>>1)-1?U=(A>>1)-P:U=P,C.isubn(U)):U=0,y[T]=U,C.iushrn(1)}return y}r.getNAF=n;function i(s,c){var d=[[],[]];s=s.clone(),c=c.clone();for(var y=0,A=0,C;s.cmpn(-y)>0||c.cmpn(-A)>0;){var T=s.andln(3)+y&3,U=c.andln(3)+A&3;T===3&&(T=-1),U===3&&(U=-1);var P;T&1?(C=s.andln(7)+y&7,(C===3||C===5)&&U===2?P=-T:P=T):P=0,d[0].push(P);var _;U&1?(C=c.andln(7)+A&7,(C===3||C===5)&&T===2?_=-U:_=U):_=0,d[1].push(_),2*y===P+1&&(y=1-y),2*A===_+1&&(A=1-A),s.iushrn(1),c.iushrn(1)}return d}r.getJSF=i;function u(s,c,d){var y="_"+c;s.prototype[c]=function(){return this[y]!==void 0?this[y]:this[y]=d.call(this)}}r.cachedProperty=u;function a(s){return typeof s=="string"?r.toArray(s,"hex"):s}r.parseBytes=a;function o(s){return new a1(s,"hex","le")}r.intFromLE=o}),J9=wt.getNAF,VE=wt.getJSF,Q9=wt.assert;function X2(t,e){this.type=t,this.p=new a1(e.p,16),this.red=e.prime?a1.red(e.prime):a1.mont(this.p),this.zero=new a1(0).toRed(this.red),this.one=new a1(1).toRed(this.red),this.two=new a1(2).toRed(this.red),this.n=e.n&&new a1(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var On=X2;X2.prototype.point=function(){throw new Error("Not implemented")};X2.prototype.validate=function(){throw new Error("Not implemented")};X2.prototype._fixedNafMul=function(e,r){Q9(e.precomputed);var n=e._getDoubles(),i=J9(r,1,this._bitLength),u=(1<=o;c--)s=(s<<1)+i[c];a.push(s)}for(var d=this.jpoint(null,null,null),y=this.jpoint(null,null,null),A=u;A>0;A--){for(o=0;o=0;s--){for(var c=0;s>=0&&a[s]===0;s--)c++;if(s>=0&&c++,o=o.dblp(c),s<0)break;var d=a[s];Q9(d!==0),e.type==="affine"?d>0?o=o.mixedAdd(u[d-1>>1]):o=o.mixedAdd(u[-d-1>>1].neg()):d>0?o=o.add(u[d-1>>1]):o=o.add(u[-d-1>>1].neg())}return e.type==="affine"?o.toP():o};X2.prototype._wnafMulAdd=function(e,r,n,i,u){var a=this._wnafT1,o=this._wnafT2,s=this._wnafT3,c=0,d,y,A;for(d=0;d=1;d-=2){var T=d-1,U=d;if(a[T]!==1||a[U]!==1){s[T]=J9(n[T],a[T],this._bitLength),s[U]=J9(n[U],a[U],this._bitLength),c=Math.max(s[T].length,c),c=Math.max(s[U].length,c);continue}var P=[r[T],null,null,r[U]];r[T].y.cmp(r[U].y)===0?(P[1]=r[T].add(r[U]),P[2]=r[T].toJ().mixedAdd(r[U].neg())):r[T].y.cmp(r[U].y.redNeg())===0?(P[1]=r[T].toJ().mixedAdd(r[U]),P[2]=r[T].add(r[U].neg())):(P[1]=r[T].toJ().mixedAdd(r[U]),P[2]=r[T].toJ().mixedAdd(r[U].neg()));var _=[-3,-1,-5,-7,0,7,5,1,3],B=VE(n[T],n[U]);for(c=Math.max(B[0].length,c),s[T]=new Array(c),s[U]=new Array(c),y=0;y=0;d--){for(var Z=0;d>=0;){var e0=!0;for(y=0;y=0&&Z++,G=G.dblp(Z),d<0)break;for(y=0;y0?A=o[y][o0-1>>1]:o0<0&&(A=o[y][-o0-1>>1].neg()),A.type==="affine"?G=G.mixedAdd(A):G=G.add(A))}}for(d=0;d=Math.ceil((e.bitLength()+1)/r.step):!1};It.prototype._getDoubles=function(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,u=0;u=0&&(C=c,T=d),y.negative&&(y=y.neg(),A=A.neg()),C.negative&&(C=C.neg(),T=T.neg()),[{a:y,b:A},{a:C,b:T}]};Rt.prototype._endoSplit=function(e){var r=this.endo.basis,n=r[0],i=r[1],u=i.b.mul(e).divRound(this.n),a=n.b.neg().mul(e).divRound(this.n),o=u.mul(n.a),s=a.mul(i.a),c=u.mul(n.b),d=a.mul(i.b),y=e.sub(o).sub(s),A=c.add(d).neg();return{k1:y,k2:A}};Rt.prototype.pointFromX=function(e,r){e=new a1(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(i.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var u=i.fromRed().isOdd();return(r&&!u||!r&&u)&&(i=i.redNeg()),this.point(e,i)};Rt.prototype.validate=function(e){if(e.inf)return!0;var r=e.x,n=e.y,i=this.a.redMul(r),u=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return n.redSqr().redISub(u).cmpn(0)===0};Rt.prototype._endoWnafMulAdd=function(e,r,n){for(var i=this._endoWnafT1,u=this._endoWnafT2,a=0;a":""};xe.prototype.isInfinity=function(){return this.inf};xe.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var r=this.y.redSub(e.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(e.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(e.x),i=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)};xe.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),i=e.redInvm(),u=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(i),a=u.redSqr().redISub(this.x.redAdd(this.x)),o=u.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)};xe.prototype.getX=function(){return this.x.fromRed()};xe.prototype.getY=function(){return this.y.fromRed()};xe.prototype.mul=function(e){return e=new a1(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};xe.prototype.mulAdd=function(e,r,n){var i=[this,r],u=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,u):this.curve._wnafMulAdd(1,i,u,2)};xe.prototype.jmulAdd=function(e,r,n){var i=[this,r],u=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,u,!0):this.curve._wnafMulAdd(1,i,u,2,!0)};xe.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};xe.prototype.neg=function(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,i=function(u){return u.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return r};xe.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function Se(t,e,r,n){On.BasePoint.call(this,t,"jacobian"),e===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new a1(0)):(this.x=new a1(e,16),this.y=new a1(r,16),this.z=new a1(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}P4(Se,On.BasePoint);Rt.prototype.jpoint=function(e,r,n){return new Se(this,e,r,n)};Se.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),r=e.redSqr(),n=this.x.redMul(r),i=this.y.redMul(r).redMul(e);return this.curve.point(n,i)};Se.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Se.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(r),u=e.x.redMul(n),a=this.y.redMul(r.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=i.redSub(u),c=a.redSub(o);if(s.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var d=s.redSqr(),y=d.redMul(s),A=i.redMul(d),C=c.redSqr().redIAdd(y).redISub(A).redISub(A),T=c.redMul(A.redISub(C)).redISub(a.redMul(y)),U=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(C,T,U)};Se.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr(),n=this.x,i=e.x.redMul(r),u=this.y,a=e.y.redMul(r).redMul(this.z),o=n.redSub(i),s=u.redSub(a);if(o.cmpn(0)===0)return s.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),d=c.redMul(o),y=n.redMul(c),A=s.redSqr().redIAdd(d).redISub(y).redISub(y),C=s.redMul(y.redISub(A)).redISub(u.redMul(d)),T=this.z.redMul(o);return this.curve.jpoint(A,C,T)};Se.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r=0)return!1;if(n.redIAdd(u),this.x.cmp(n)===0)return!0}};Se.prototype.inspect=function(){return this.isInfinity()?"":""};Se.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var f9=oi(function(t,e){var r=e;r.base=On,r.short=QE,r.mont=null,r.edwards=null}),c9=oi(function(t,e){var r=e,n=wt.assert;function i(o){o.type==="short"?this.curve=new f9.short(o):o.type==="edwards"?this.curve=new f9.edwards(o):this.curve=new f9.mont(o),this.g=this.curve.g,this.n=this.curve.n,this.hash=o.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}r.PresetCurve=i;function u(o,s){Object.defineProperty(r,o,{configurable:!0,enumerable:!0,get:function(){var c=new i(s);return Object.defineProperty(r,o,{configurable:!0,enumerable:!0,value:c}),c}})}u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:nt.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:nt.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:nt.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:nt.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:nt.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:nt.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:nt.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var a;try{a=null.crash()}catch{a=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:nt.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",a]})});function z2(t){if(!(this instanceof z2))return new z2(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Qt.toArray(t.entropy,t.entropyEnc||"hex"),r=Qt.toArray(t.nonce,t.nonceEnc||"hex"),n=Qt.toArray(t.pers,t.persEnc||"hex");T4(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var op=z2;z2.prototype._init=function(e,r,n){var i=e.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var u=0;u=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};z2.prototype.generate=function(e,r,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(i=n,n=r,r=null),n&&(n=Qt.toArray(n,i||"hex"),this._update(n));for(var u=[];u.length"};var YE=wt.assert;function U8(t,e){if(t instanceof U8)return t;this._importDER(t,e)||(YE(t.r&&t.s,"Signature without r or s"),this.r=new a1(t.r,16),this.s=new a1(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var I8=U8;function XE(){this.place=0}function Na(t,e){var r=t[e.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var i=0,u=0,a=e.place;u>>=0;return i<=127?!1:(e.place=a,i)}function gf(t){for(var e=0,r=t.length-1;!t[e]&&!(t[e+1]&128)&&e>>3);for(t.push(r|128);--r;)t.push(e>>>(r<<3)&255);t.push(e)}U8.prototype.toDER=function(e){var r=this.r.toArray(),n=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),n[0]&128&&(n=[0].concat(n)),r=gf(r),n=gf(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];Ma(i,r.length),i=i.concat(r),i.push(2),Ma(i,n.length);var u=i.concat(n),a=[48];return Ma(a,u.length),a=a.concat(u),wt.encode(a,e)};var ZE=function(){throw new Error("unsupported")},sp=wt.assert;function Ut(t){if(!(this instanceof Ut))return new Ut(t);typeof t=="string"&&(sp(Object.prototype.hasOwnProperty.call(c9,t),"Unknown curve "+t),t=c9[t]),t instanceof c9.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var eC=Ut;Ut.prototype.keyPair=function(e){return new N4(this,e)};Ut.prototype.keyFromPrivate=function(e,r){return N4.fromPrivate(this,e,r)};Ut.prototype.keyFromPublic=function(e,r){return N4.fromPublic(this,e,r)};Ut.prototype.genKeyPair=function(e){e||(e={});for(var r=new op({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||ZE(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new a1(2));;){var u=new a1(r.generate(n));if(!(u.cmp(i)>0))return u.iaddn(1),this.keyFromPrivate(u)}};Ut.prototype._truncateToN=function(e,r){var n=e.byteLength()*8-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!r&&e.cmp(this.n)>=0?e.sub(this.n):e};Ut.prototype.sign=function(e,r,n,i){typeof n=="object"&&(i=n,n=null),i||(i={}),r=this.keyFromPrivate(r,n),e=this._truncateToN(new a1(e,16));for(var u=this.n.byteLength(),a=r.getPrivate().toArray("be",u),o=e.toArray("be",u),s=new op({hash:this.hash,entropy:a,nonce:o,pers:i.pers,persEnc:i.persEnc||"utf8"}),c=this.n.sub(new a1(1)),d=0;;d++){var y=i.k?i.k(d):new a1(s.generate(this.n.byteLength()));if(y=this._truncateToN(y,!0),!(y.cmpn(1)<=0||y.cmp(c)>=0)){var A=this.g.mul(y);if(!A.isInfinity()){var C=A.getX(),T=C.umod(this.n);if(T.cmpn(0)!==0){var U=y.invm(this.n).mul(T.mul(r.getPrivate()).iadd(e));if(U=U.umod(this.n),U.cmpn(0)!==0){var P=(A.getY().isOdd()?1:0)|(C.cmp(T)!==0?2:0);return i.canonical&&U.cmp(this.nh)>0&&(U=this.n.sub(U),P^=1),new I8({r:T,s:U,recoveryParam:P})}}}}}};Ut.prototype.verify=function(e,r,n,i){e=this._truncateToN(new a1(e,16)),n=this.keyFromPublic(n,i),r=new I8(r,"hex");var u=r.r,a=r.s;if(u.cmpn(1)<0||u.cmp(this.n)>=0||a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var o=a.invm(this.n),s=o.mul(e).umod(this.n),c=o.mul(u).umod(this.n),d;return this.curve._maxwellTrick?(d=this.g.jmulAdd(s,n.getPublic(),c),d.isInfinity()?!1:d.eqXToP(u)):(d=this.g.mulAdd(s,n.getPublic(),c),d.isInfinity()?!1:d.getX().umod(this.n).cmp(u)===0)};Ut.prototype.recoverPubKey=function(t,e,r,n){sp((3&r)===r,"The recovery param is more than two bits"),e=new I8(e,n);var i=this.n,u=new a1(t),a=e.r,o=e.s,s=r&1,c=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");c?a=this.curve.pointFromX(a.add(this.curve.n),s):a=this.curve.pointFromX(a,s);var d=e.r.invm(i),y=i.sub(u).mul(d).umod(i),A=o.mul(d).umod(i);return this.g.mulAdd(y,a,A)};Ut.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new I8(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var i=0;i<4;i++){var u;try{u=this.recoverPubKey(t,e,i)}catch{continue}if(u.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var tC=oi(function(t,e){var r=e;r.version="6.5.4",r.utils=wt,r.rand=function(){throw new Error("unsupported")},r.curve=f9,r.curves=c9,r.ec=eC,r.eddsa=null}),rC=tC.ec;const nC="signing-key/5.7.0",rs=new r0(nC);let Ua=null;function cr(){return Ua||(Ua=new rC("secp256k1")),Ua}class vn{constructor(e){b0(this,"curve","secp256k1"),b0(this,"privateKey",N0(e)),kr(this.privateKey)!==32&&rs.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const r=cr().keyFromPrivate(k0(this.privateKey));b0(this,"publicKey","0x"+r.getPublic(!1,"hex")),b0(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),b0(this,"_isSigningKey",!0)}_addPoint(e){const r=cr().keyFromPublic(k0(this.publicKey)),n=cr().keyFromPublic(k0(e));return"0x"+r.pub.add(n.pub).encodeCompressed("hex")}signDigest(e){const r=cr().keyFromPrivate(k0(this.privateKey)),n=k0(e);n.length!==32&&rs.throwArgumentError("bad digest length","digest",e);const i=r.sign(n,{canonical:!0});return In({recoveryParam:i.recoveryParam,r:j1("0x"+i.r.toString(16),32),s:j1("0x"+i.s.toString(16),32)})}computeSharedSecret(e){const r=cr().keyFromPrivate(k0(this.privateKey)),n=cr().keyFromPublic(k0(M4(e)));return j1("0x"+r.derive(n.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function lp(t,e){const r=In(e),n={r:k0(r.r),s:k0(r.s)};return"0x"+cr().recoverPubKey(k0(t),n,r.recoveryParam).encode("hex",!1)}function M4(t,e){const r=k0(t);if(r.length===32){const n=new vn(r);return e?"0x"+cr().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}else{if(r.length===33)return e?N0(r):"0x"+cr().keyFromPublic(r).getPublic(!1,"hex");if(r.length===65)return e?"0x"+cr().keyFromPublic(r).getPublic(!0,"hex"):N0(r)}return rs.throwArgumentError("invalid public or private key","key","[REDACTED]")}const iC=Object.freeze(Object.defineProperty({__proto__:null,SigningKey:vn,computePublicKey:M4,recoverPublicKey:lp},Symbol.toStringTag,{value:"Module"})),uC="transactions/5.7.0",Re=new r0(uC);var ns;(function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"})(ns||(ns={}));function U4(t){return t==="0x"?null:I1(t)}function Ie(t){return t==="0x"?vh:P0.from(t)}const aC=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],oC={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function I2(t){const e=M4(t);return I1(ue(O1(ue(e,1)),12))}function Xu(t,e){return I2(lp(k0(t),e))}function ht(t,e){const r=Er(P0.from(t).toHexString());return r.length>32&&Re.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function Ia(t,e){return{address:I1(t),storageKeys:(e||[]).map((r,n)=>(kr(r)!==32&&Re.throwArgumentError("invalid access list storageKey",`accessList[${t}:${n}]`,r),r.toLowerCase()))}}function Z2(t){if(Array.isArray(t))return t.map((r,n)=>Array.isArray(r)?(r.length>2&&Re.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${n}]`,r),Ia(r[0],r[1])):Ia(r.address,r.storageKeys));const e=Object.keys(t).map(r=>{const n=t[r].reduce((i,u)=>(i[u]=!0,i),{});return Ia(r,Object.keys(n).sort())});return e.sort((r,n)=>r.address.localeCompare(n.address)),e}function fp(t){return Z2(t).map(e=>[e.address,e.storageKeys])}function cp(t,e){if(t.gasPrice!=null){const n=P0.from(t.gasPrice),i=P0.from(t.maxFeePerGas||0);n.eq(i)||Re.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:i})}const r=[ht(t.chainId||0,"chainId"),ht(t.nonce||0,"nonce"),ht(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),ht(t.maxFeePerGas||0,"maxFeePerGas"),ht(t.gasLimit||0,"gasLimit"),t.to!=null?I1(t.to):"0x",ht(t.value||0,"value"),t.data||"0x",fp(t.accessList||[])];if(e){const n=In(e);r.push(ht(n.recoveryParam,"recoveryParam")),r.push(Er(n.r)),r.push(Er(n.s))}return Ge(["0x02",Sn(r)])}function dp(t,e){const r=[ht(t.chainId||0,"chainId"),ht(t.nonce||0,"nonce"),ht(t.gasPrice||0,"gasPrice"),ht(t.gasLimit||0,"gasLimit"),t.to!=null?I1(t.to):"0x",ht(t.value||0,"value"),t.data||"0x",fp(t.accessList||[])];if(e){const n=In(e);r.push(ht(n.recoveryParam,"recoveryParam")),r.push(Er(n.r)),r.push(Er(n.s))}return Ge(["0x01",Sn(r)])}function sC(t,e){w4(t,oC);const r=[];aC.forEach(function(a){let o=t[a.name]||[];const s={};a.numeric&&(s.hexPad="left"),o=k0(N0(o,s)),a.length&&o.length!==a.length&&o.length>0&&Re.throwArgumentError("invalid length for "+a.name,"transaction:"+a.name,o),a.maxLength&&(o=Er(o),o.length>a.maxLength&&Re.throwArgumentError("invalid length for "+a.name,"transaction:"+a.name,o)),r.push(N0(o))});let n=0;if(t.chainId!=null?(n=t.chainId,typeof n!="number"&&Re.throwArgumentError("invalid transaction.chainId","transaction",t)):e&&!Ju(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),n!==0&&(r.push(N0(n)),r.push("0x"),r.push("0x")),!e)return Sn(r);const i=In(e);let u=27+i.recoveryParam;return n!==0?(r.pop(),r.pop(),r.pop(),u+=n*2+8,i.v>28&&i.v!==u&&Re.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):i.v!==u&&Re.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),r.push(N0(u)),r.push(Er(k0(i.r))),r.push(Er(k0(i.s))),Sn(r)}function is(t,e){if(t.type==null||t.type===0)return t.accessList!=null&&Re.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",t),sC(t,e);switch(t.type){case 1:return dp(t,e);case 2:return cp(t,e)}return Re.throwError(`unsupported transaction type: ${t.type}`,r0.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:t.type})}function hp(t,e,r){try{const n=Ie(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");t.v=n}catch{Re.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=j1(e[1],32),t.s=j1(e[2],32);try{const n=O1(r(t));t.from=Xu(n,{r:t.r,s:t.s,recoveryParam:t.v})}catch{}}function lC(t){const e=_8(t.slice(1));e.length!==9&&e.length!==12&&Re.throwArgumentError("invalid component count for transaction type: 2","payload",N0(t));const r=Ie(e[2]),n=Ie(e[3]),i={type:2,chainId:Ie(e[0]).toNumber(),nonce:Ie(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:Ie(e[4]),to:U4(e[5]),value:Ie(e[6]),data:e[7],accessList:Z2(e[8])};return e.length===9||(i.hash=O1(t),hp(i,e.slice(9),cp)),i}function fC(t){const e=_8(t.slice(1));e.length!==8&&e.length!==11&&Re.throwArgumentError("invalid component count for transaction type: 1","payload",N0(t));const r={type:1,chainId:Ie(e[0]).toNumber(),nonce:Ie(e[1]).toNumber(),gasPrice:Ie(e[2]),gasLimit:Ie(e[3]),to:U4(e[4]),value:Ie(e[5]),data:e[6],accessList:Z2(e[7])};return e.length===8||(r.hash=O1(t),hp(r,e.slice(8),dp)),r}function cC(t){const e=_8(t);e.length!==9&&e.length!==6&&Re.throwArgumentError("invalid raw transaction","rawTransaction",t);const r={nonce:Ie(e[0]).toNumber(),gasPrice:Ie(e[1]),gasLimit:Ie(e[2]),to:U4(e[3]),value:Ie(e[4]),data:e[5],chainId:0};if(e.length===6)return r;try{r.v=P0.from(e[6]).toNumber()}catch{return r}if(r.r=j1(e[7],32),r.s=j1(e[8],32),P0.from(r.r).isZero()&&P0.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27;const i=e.slice(0,6);r.chainId!==0&&(i.push(N0(r.chainId)),i.push("0x"),i.push("0x"),n-=r.chainId*2+8);const u=O1(Sn(i));try{r.from=Xu(u,{r:N0(r.r),s:N0(r.s),recoveryParam:n})}catch{}r.hash=O1(t)}return r.type=null,r}function pp(t){const e=k0(t);if(e[0]>127)return cC(e);switch(e[0]){case 1:return fC(e);case 2:return lC(e)}return Re.throwError(`unsupported transaction type: ${e[0]}`,r0.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}const dC=Object.freeze(Object.defineProperty({__proto__:null,get TransactionTypes(){return ns},accessListify:Z2,computeAddress:I2,parse:pp,recoverAddress:Xu,serialize:is},Symbol.toStringTag,{value:"Module"})),Di=new r0(je);class q0{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},r=this.address.bind(this),n=this.bigNumber.bind(this),i=this.blockTag.bind(this),u=this.data.bind(this),a=this.hash.bind(this),o=this.hex.bind(this),s=this.number.bind(this),c=this.type.bind(this),d=y=>this.data(y,!0);return e.transaction={hash:a,type:c,accessList:q0.allowNull(this.accessList.bind(this),null),blockHash:q0.allowNull(a,null),blockNumber:q0.allowNull(s,null),transactionIndex:q0.allowNull(s,null),confirmations:q0.allowNull(s,null),from:r,gasPrice:q0.allowNull(n),maxPriorityFeePerGas:q0.allowNull(n),maxFeePerGas:q0.allowNull(n),gasLimit:n,to:q0.allowNull(r,null),value:n,nonce:s,data:u,r:q0.allowNull(this.uint256),s:q0.allowNull(this.uint256),v:q0.allowNull(s),creates:q0.allowNull(r,null),raw:q0.allowNull(u)},e.transactionRequest={from:q0.allowNull(r),nonce:q0.allowNull(s),gasLimit:q0.allowNull(n),gasPrice:q0.allowNull(n),maxPriorityFeePerGas:q0.allowNull(n),maxFeePerGas:q0.allowNull(n),to:q0.allowNull(r),value:q0.allowNull(n),data:q0.allowNull(d),type:q0.allowNull(s),accessList:q0.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:s,blockNumber:s,transactionHash:a,address:r,topics:q0.arrayOf(a),data:u,logIndex:s,blockHash:a},e.receipt={to:q0.allowNull(this.address,null),from:q0.allowNull(this.address,null),contractAddress:q0.allowNull(r,null),transactionIndex:s,root:q0.allowNull(o),gasUsed:n,logsBloom:q0.allowNull(u),blockHash:a,transactionHash:a,logs:q0.arrayOf(this.receiptLog.bind(this)),blockNumber:s,confirmations:q0.allowNull(s,null),cumulativeGasUsed:n,effectiveGasPrice:q0.allowNull(n),status:q0.allowNull(s),type:c},e.block={hash:q0.allowNull(a),parentHash:a,number:s,timestamp:s,nonce:q0.allowNull(o),difficulty:this.difficulty.bind(this),gasLimit:n,gasUsed:n,miner:q0.allowNull(r),extraData:u,transactions:q0.allowNull(q0.arrayOf(a)),baseFeePerGas:q0.allowNull(n)},e.blockWithTransactions=q1(e.block),e.blockWithTransactions.transactions=q0.allowNull(q0.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:q0.allowNull(i,void 0),toBlock:q0.allowNull(i,void 0),blockHash:q0.allowNull(a,void 0),address:q0.allowNull(r,void 0),topics:q0.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:q0.allowNull(s),blockHash:q0.allowNull(a),transactionIndex:s,removed:q0.allowNull(this.boolean.bind(this)),address:r,data:q0.allowFalsish(u,"0x"),topics:q0.arrayOf(a),transactionHash:a,logIndex:s},e}accessList(e){return Z2(e||[])}number(e){return e==="0x"?0:P0.from(e).toNumber()}type(e){return e==="0x"||e==null?0:P0.from(e).toNumber()}bigNumber(e){return P0.from(e)}boolean(e){if(typeof e=="boolean")return e;if(typeof e=="string"){if(e=e.toLowerCase(),e==="true")return!0;if(e==="false")return!1}throw new Error("invalid boolean - "+e)}hex(e,r){return typeof e=="string"&&(!r&&e.substring(0,2)!=="0x"&&(e="0x"+e),s1(e))?e.toLowerCase():Di.throwArgumentError("invalid hash","value",e)}data(e,r){const n=this.hex(e,r);if(n.length%2!==0)throw new Error("invalid data; odd-length - "+e);return n}address(e){return I1(e)}callAddress(e){if(!s1(e,32))return null;const r=I1(ue(e,12));return r===Zv?null:r}contractAddress(e){return k8(e)}blockTag(e){if(e==null)return"latest";if(e==="earliest")return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if(typeof e=="number"||s1(e))return Qu(e);throw new Error("invalid blockTag")}hash(e,r){const n=this.hex(e,r);return kr(n)!==32?Di.throwArgumentError("invalid hash","value",e):n}difficulty(e){if(e==null)return null;const r=P0.from(e);try{return r.toNumber()}catch{}return null}uint256(e){if(!s1(e))throw new Error("invalid uint256");return j1(e,32)}_block(e,r){e.author!=null&&e.miner==null&&(e.miner=e.author);const n=e._difficulty!=null?e._difficulty:e.difficulty,i=q0.check(r,e);return i._difficulty=n==null?null:P0.from(n),i}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return q0.check(this.formats.transactionRequest,e)}transactionResponse(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&P0.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),e.input!=null&&e.data==null&&(e.data=e.input),e.to==null&&e.creates==null&&(e.creates=this.contractAddress(e)),(e.type===1||e.type===2)&&e.accessList==null&&(e.accessList=[]);const r=q0.check(this.formats.transaction,e);if(e.chainId!=null){let n=e.chainId;s1(n)&&(n=P0.from(n).toNumber()),r.chainId=n}else{let n=e.networkId;n==null&&r.v==null&&(n=e.chainId),s1(n)&&(n=P0.from(n).toNumber()),typeof n!="number"&&r.v!=null&&(n=(r.v-35)/2,n<0&&(n=0),n=parseInt(n)),typeof n!="number"&&(n=0),r.chainId=n}return r.blockHash&&r.blockHash.replace(/0/g,"")==="x"&&(r.blockHash=null),r}transaction(e){return pp(e)}receiptLog(e){return q0.check(this.formats.receiptLog,e)}receipt(e){const r=q0.check(this.formats.receipt,e);if(r.root!=null)if(r.root.length<=4){const n=P0.from(r.root).toNumber();n===0||n===1?(r.status!=null&&r.status!==n&&Di.throwArgumentError("alt-root-status/status mismatch","value",{root:r.root,status:r.status}),r.status=n,delete r.root):Di.throwArgumentError("invalid alt-root-status","value.root",r.root)}else r.root.length!==66&&Di.throwArgumentError("invalid root hash","value.root",r.root);return r.status!=null&&(r.byzantium=!0),r}topics(e){return Array.isArray(e)?e.map(r=>this.topics(r)):e!=null?this.hash(e,!0):null}filter(e){return q0.check(this.formats.filter,e)}filterLog(e){return q0.check(this.formats.filterLog,e)}static check(e,r){const n={};for(const i in e)try{const u=e[i](r[i]);u!==void 0&&(n[i]=u)}catch(u){throw u.checkKey=i,u.checkValue=r[i],u}return n}static allowNull(e,r){return function(n){return n==null?r:e(n)}}static allowFalsish(e,r){return function(n){return n?e(n):r}}static arrayOf(e){return function(r){if(!Array.isArray(r))throw new Error("not an array");const n=[];return r.forEach(function(i){n.push(e(i))}),n}}}function bp(t){return t&&typeof t.isCommunityResource=="function"}function us(t){return bp(t)&&t.isCommunityResource()}let xf=!1;function Zu(){xf||(xf=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}var u1=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const h1=new r0(je),hC=10;function vf(t){return t==null?"null":(kr(t)!==32&&h1.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function Af(t){for(t=t.slice();t.length>0&&t[t.length-1]==null;)t.pop();return t.map(e=>{if(Array.isArray(e)){const r={};e.forEach(i=>{r[vf(i)]=!0});const n=Object.keys(r);return n.sort(),n.join("|")}else return vf(e)}).join("&")}function pC(t){return t===""?[]:t.split(/&/g).map(e=>{if(e==="")return[];const r=e.split("|").map(n=>n==="null"?null:n);return r.length===1?r[0]:r})}function Yn(t){if(typeof t=="string"){if(t=t.toLowerCase(),kr(t)===32)return"tx:"+t;if(t.indexOf(":")===-1)return t}else{if(Array.isArray(t))return"filter:*:"+Af(t);if(Wv.isForkEvent(t))throw h1.warn("not implemented"),new Error("not implemented");if(t&&typeof t=="object")return"filter:"+(t.address||"*")+":"+Af(t.topics||[])}throw new Error("invalid event - "+t)}function _i(){return new Date().getTime()}function wf(t){return new Promise(e=>{setTimeout(e,t)})}const bC=["block","network","pending","poll"];class mC{constructor(e,r,n){b0(this,"tag",e),b0(this,"listener",r),b0(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return e[0]!=="tx"?null:e[1]}get filter(){const e=this.tag.split(":");if(e[0]!=="filter")return null;const r=e[1],n=pC(e[2]),i={};return n.length>0&&(i.topics=n),r&&r!=="*"&&(i.address=r),i}pollable(){return this.tag.indexOf(":")>=0||bC.indexOf(this.tag)>=0}}const yC={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function Ra(t){return j1(P0.from(t).toHexString(),32)}function Ef(t){return H6.encode(L1([t,ue(gt(gt(t)),0,4)]))}const mp=new RegExp("^(ipfs)://(.*)$","i"),Cf=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),mp,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function d9(t,e){try{return Y2(Tu(t,e))}catch{}return null}function Tu(t,e){if(t==="0x")return null;const r=P0.from(ue(t,e,e+32)).toNumber(),n=P0.from(ue(t,r,r+32)).toNumber();return ue(t,r+32,r+32+n)}function Oa(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):h1.throwArgumentError("unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}function Ff(t){const e=k0(t);if(e.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(e,32-e.length),r}function gC(t){if(t.length%32===0)return t;const e=new Uint8Array(Math.ceil(t.length/32)*32);return e.set(t),e}function yp(t){const e=[];let r=0;for(let n=0;nP0.from(e).eq(1)).catch(e=>{if(e.code===r0.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,r){return u1(this,void 0,void 0,function*(){const n={to:this.address,ccipReadEnabled:!0,data:Ge([e,Cr(this.name),r||"0x"])};let i=!1;(yield this.supportsWildcard())&&(i=!0,n.data=Ge(["0x9061b923",yp([Ph(this.name),n.data])]));try{let u=yield this.provider.call(n);return k0(u).length%32===4&&h1.throwError("resolver threw error",r0.errors.CALL_EXCEPTION,{transaction:n,data:u}),i&&(u=Tu(u,0)),u}catch(u){if(u.code===r0.errors.CALL_EXCEPTION)return null;throw u}})}_fetchBytes(e,r){return u1(this,void 0,void 0,function*(){const n=yield this._fetch(e,r);return n!=null?Tu(n,0):null})}_getAddress(e,r){const n=yC[String(e)];if(n==null&&h1.throwError(`unsupported coin type: ${e}`,r0.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),n.ilk==="eth")return this.provider.formatter.address(r);const i=k0(r);if(n.p2pkh!=null){const u=r.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(u){const a=parseInt(u[1],16);if(u[2].length===a*2&&a>=1&&a<=75)return Ef(L1([[n.p2pkh],"0x"+u[2]]))}}if(n.p2sh!=null){const u=r.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(u){const a=parseInt(u[1],16);if(u[2].length===a*2&&a>=1&&a<=75)return Ef(L1([[n.p2sh],"0x"+u[2]]))}}if(n.prefix!=null){const u=i[1];let a=i[0];if(a===0?u!==20&&u!==32&&(a=-1):a=-1,a>=0&&i.length===2+u&&u>=1&&u<=75){const o=yf.toWords(i.slice(2));return o.unshift(a),yf.encode(n.prefix,o)}}return null}getAddress(e){return u1(this,void 0,void 0,function*(){if(e==null&&(e=60),e===60)try{const i=yield this._fetch("0x3b3b57de");return i==="0x"||i===Ah?null:this.provider.formatter.callAddress(i)}catch(i){if(i.code===r0.errors.CALL_EXCEPTION)return null;throw i}const r=yield this._fetchBytes("0xf1cb7e06",Ra(e));if(r==null||r==="0x")return null;const n=this._getAddress(e,r);return n==null&&h1.throwError("invalid or unsupported coin data",r0.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:r}),n})}getAvatar(){return u1(this,void 0,void 0,function*(){const e=[{type:"name",content:this.name}];try{const r=yield this.getText("avatar");if(r==null)return null;for(let n=0;na[s])}return h1.throwError("invalid or unsupported content hash data",r0.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return u1(this,void 0,void 0,function*(){let r=H1(e);r=L1([Ra(64),Ra(r.length),r]),r.length%32!==0&&(r=L1([r,j1("0x",32-e.length%32)]));const n=yield this._fetchBytes("0x59d1d43c",N0(r));return n==null||n==="0x"?null:Y2(n)})}}let La=null,xC=1;class R8 extends Rn{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),b0(this,"anyNetwork",e==="any"),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(r=>{}),this._ready().catch(r=>{});else{const r=De(new.target,"getNetwork")(e);r?(b0(this,"_network",r),this.emit("network",r,null)):h1.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return u1(this,void 0,void 0,function*(){if(this._network==null){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch{}e==null&&(e=yield this.detectNetwork()),e||h1.throwError("no network detected",r0.errors.UNKNOWN_ERROR,{}),this._network==null&&(this.anyNetwork?this._network=e:b0(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return mn(()=>this._ready().then(e=>e,e=>{if(!(e.code===r0.errors.NETWORK_ERROR&&e.event==="noNetwork"))throw e}))}static getFormatter(){return La==null&&(La=new q0),La}static getNetwork(e){return E4(e??"homestead")}ccipReadFetch(e,r,n){return u1(this,void 0,void 0,function*(){if(this.disableCcipRead||n.length===0)return null;const i=e.to.toLowerCase(),u=r.toLowerCase(),a=[];for(let o=0;o=0?null:JSON.stringify({data:u,sender:i}),y=yield ai({url:c,errorPassThrough:!0},d,(C,T)=>(C.status=T.statusCode,C));if(y.data)return y.data;const A=y.message||"unknown error";if(y.status>=400&&y.status<500)return h1.throwError(`response not found during CCIP fetch: ${A}`,r0.errors.SERVER_ERROR,{url:s,errorMessage:A});a.push(A)}return h1.throwError(`error encountered during CCIP fetch: ${a.map(o=>JSON.stringify(o)).join(", ")}`,r0.errors.SERVER_ERROR,{urls:n,errorMessages:a})})}_getInternalBlockNumber(e){return u1(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const i=this._internalBlockNumber;try{const u=yield i;if(_i()-u.respTime<=e)return u.blockNumber;break}catch{if(this._internalBlockNumber===i)break}}const r=_i(),n=te({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(i=>null,i=>i)}).then(({blockNumber:i,networkError:u})=>{if(u)throw this._internalBlockNumber===n&&(this._internalBlockNumber=null),u;const a=_i();return i=P0.from(i).toNumber(),i{this._internalBlockNumber===n&&(this._internalBlockNumber=null)}),(yield n).blockNumber})}poll(){return u1(this,void 0,void 0,function*(){const e=xC++,r=[];let n=null;try{n=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(i){this.emit("error",i);return}if(this._setFastBlockNumber(n),this.emit("poll",e,n),n===this._lastBlockNumber){this.emit("didPoll",e);return}if(this._emitted.block===-2&&(this._emitted.block=n-1),Math.abs(this._emitted.block-n)>1e3)h1.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${n})`),this.emit("error",h1.makeError("network block skew detected",r0.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(let i=this._emitted.block+1;i<=n;i++)this.emit("block",i);this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach(i=>{if(i==="block")return;const u=this._emitted[i];u!=="pending"&&n-u>12&&delete this._emitted[i]})),this._lastBlockNumber===-2&&(this._lastBlockNumber=n-1),this._events.forEach(i=>{switch(i.type){case"tx":{const u=i.hash;let a=this.getTransactionReceipt(u).then(o=>(!o||o.blockNumber==null||(this._emitted["t:"+u]=o.blockNumber,this.emit(u,o)),null)).catch(o=>{this.emit("error",o)});r.push(a);break}case"filter":{if(!i._inflight){i._inflight=!0,i._lastBlockNumber===-2&&(i._lastBlockNumber=n-1);const u=i.filter;u.fromBlock=i._lastBlockNumber+1,u.toBlock=n;const a=u.toBlock-this._maxFilterBlockRange;a>u.fromBlock&&(u.fromBlock=a),u.fromBlock<0&&(u.fromBlock=0);const o=this.getLogs(u).then(s=>{i._inflight=!1,s.length!==0&&s.forEach(c=>{c.blockNumber>i._lastBlockNumber&&(i._lastBlockNumber=c.blockNumber),this._emitted["b:"+c.blockHash]=c.blockNumber,this._emitted["t:"+c.transactionHash]=c.blockNumber,this.emit(u,c)})}).catch(s=>{this.emit("error",s),i._inflight=!1});r.push(o)}break}}}),this._lastBlockNumber=n,Promise.all(r).then(()=>{this.emit("didPoll",e)}).catch(i=>{this.emit("error",i)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return u1(this,void 0,void 0,function*(){return h1.throwError("provider does not support network detection",r0.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return u1(this,void 0,void 0,function*(){const e=yield this._ready(),r=yield this.detectNetwork();if(e.chainId!==r.chainId){if(this.anyNetwork)return this._network=r,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",r,e),yield wf(0),this._network;const n=h1.makeError("underlying network changed",r0.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:r});throw this.emit("error",n),n}return e})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),this._fastBlockNumber!=null?this._fastBlockNumber:-1}get polling(){return this._poller!=null}set polling(e){e&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if(typeof e!="number"||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const e=_i();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(r=>((this._fastBlockNumber==null||r>this._fastBlockNumber)&&(this._fastBlockNumber=r),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){this._fastBlockNumber!=null&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,r,n){return u1(this,void 0,void 0,function*(){return this._waitForTransaction(e,r??1,n||0,null)})}_waitForTransaction(e,r,n,i){return u1(this,void 0,void 0,function*(){const u=yield this.getTransactionReceipt(e);return(u?u.confirmations:0)>=r?u:new Promise((a,o)=>{const s=[];let c=!1;const d=function(){return c?!0:(c=!0,s.forEach(A=>{A()}),!1)},y=A=>{A.confirmations{this.removeListener(e,y)}),i){let A=i.startBlock,C=null;const T=U=>u1(this,void 0,void 0,function*(){c||(yield wf(1e3),this.getTransactionCount(i.from).then(P=>u1(this,void 0,void 0,function*(){if(!c){if(P<=i.nonce)A=U;else{{const _=yield this.getTransaction(e);if(_&&_.blockNumber!=null)return}for(C==null&&(C=A-3,C{c||this.once("block",T)}))});if(c)return;this.once("block",T),s.push(()=>{this.removeListener("block",T)})}if(typeof n=="number"&&n>0){const A=setTimeout(()=>{d()||o(h1.makeError("timeout exceeded",r0.errors.TIMEOUT,{timeout:n}))},n);A.unref&&A.unref(),s.push(()=>{clearTimeout(A)})}})})}getBlockNumber(){return u1(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return u1(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return P0.from(e)}catch(r){return h1.throwError("bad result from backend",r0.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:r})}})}getBalance(e,r){return u1(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield te({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getBalance",n);try{return P0.from(i)}catch(u){return h1.throwError("bad result from backend",r0.errors.SERVER_ERROR,{method:"getBalance",params:n,result:i,error:u})}})}getTransactionCount(e,r){return u1(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield te({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getTransactionCount",n);try{return P0.from(i).toNumber()}catch(u){return h1.throwError("bad result from backend",r0.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:i,error:u})}})}getCode(e,r){return u1(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield te({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getCode",n);try{return N0(i)}catch(u){return h1.throwError("bad result from backend",r0.errors.SERVER_ERROR,{method:"getCode",params:n,result:i,error:u})}})}getStorageAt(e,r,n){return u1(this,void 0,void 0,function*(){yield this.getNetwork();const i=yield te({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Promise.resolve(r).then(a=>Qu(a))}),u=yield this.perform("getStorageAt",i);try{return N0(u)}catch(a){return h1.throwError("bad result from backend",r0.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:u,error:a})}})}_wrapTransaction(e,r,n){if(r!=null&&kr(r)!==32)throw new Error("invalid response - sendTransaction");const i=e;return r!=null&&e.hash!==r&&h1.throwError("Transaction hash mismatch from Provider.sendTransaction.",r0.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:r}),i.wait=(u,a)=>u1(this,void 0,void 0,function*(){u==null&&(u=1),a==null&&(a=0);let o;u!==0&&n!=null&&(o={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:n});const s=yield this._waitForTransaction(e.hash,u,a,o);return s==null&&u===0?null:(this._emitted["t:"+e.hash]=s.blockNumber,s.status===0&&h1.throwError("transaction failed",r0.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:s}),s)}),i}sendTransaction(e){return u1(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Promise.resolve(e).then(u=>N0(u)),n=this.formatter.transaction(e);n.confirmations==null&&(n.confirmations=0);const i=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const u=yield this.perform("sendTransaction",{signedTransaction:r});return this._wrapTransaction(n,u,i)}catch(u){throw u.transaction=n,u.transactionHash=n.hash,u}})}_getTransactionRequest(e){return u1(this,void 0,void 0,function*(){const r=yield e,n={};return["from","to"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(u=>u?this._getAddress(u):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(u=>u?P0.from(u):null))}),["type"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(u=>u??null))}),r.accessList&&(n.accessList=this.formatter.accessList(r.accessList)),["data"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(u=>u?N0(u):null))}),this.formatter.transactionRequest(yield te(n))})}_getFilter(e){return u1(this,void 0,void 0,function*(){e=yield e;const r={};return e.address!=null&&(r.address=this._getAddress(e.address)),["blockHash","topics"].forEach(n=>{e[n]!=null&&(r[n]=e[n])}),["fromBlock","toBlock"].forEach(n=>{e[n]!=null&&(r[n]=this._getBlockTag(e[n]))}),this.formatter.filter(yield te(r))})}_call(e,r,n){return u1(this,void 0,void 0,function*(){n>=hC&&h1.throwError("CCIP read exceeded maximum redirections",r0.errors.SERVER_ERROR,{redirects:n,transaction:e});const i=e.to,u=yield this.perform("call",{transaction:e,blockTag:r});if(n>=0&&r==="latest"&&i!=null&&u.substring(0,10)==="0x556f1830"&&kr(u)%32===4)try{const a=ue(u,4),o=ue(a,0,32);P0.from(o).eq(i)||h1.throwError("CCIP Read sender did not match",r0.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:u});const s=[],c=P0.from(ue(a,32,64)).toNumber(),d=P0.from(ue(a,c,c+32)).toNumber(),y=ue(a,c+32);for(let _=0;_u1(this,void 0,void 0,function*(){const u=yield this.perform("getBlock",i);if(u==null)return i.blockHash!=null&&this._emitted["b:"+i.blockHash]==null||i.blockTag!=null&&n>this._emitted.block?null:void 0;if(r){let a=null;for(let s=0;sthis._wrapTransaction(s)),o}return this.formatter.block(u)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return u1(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return mn(()=>u1(this,void 0,void 0,function*(){const n=yield this.perform("getTransaction",r);if(n==null)return this._emitted["t:"+e]==null?null:void 0;const i=this.formatter.transactionResponse(n);if(i.blockNumber==null)i.confirmations=0;else if(i.confirmations==null){let a=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;a<=0&&(a=1),i.confirmations=a}return this._wrapTransaction(i)}),{oncePoll:this})})}getTransactionReceipt(e){return u1(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return mn(()=>u1(this,void 0,void 0,function*(){const n=yield this.perform("getTransactionReceipt",r);if(n==null)return this._emitted["t:"+e]==null?null:void 0;if(n.blockHash==null)return;const i=this.formatter.receipt(n);if(i.blockNumber==null)i.confirmations=0;else if(i.confirmations==null){let a=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;a<=0&&(a=1),i.confirmations=a}return i}),{oncePoll:this})})}getLogs(e){return u1(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield te({filter:this._getFilter(e)}),n=yield this.perform("getLogs",r);return n.forEach(i=>{i.removed==null&&(i.removed=!1)}),q0.arrayOf(this.formatter.filterLog.bind(this.formatter))(n)})}getEtherPrice(){return u1(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return u1(this,void 0,void 0,function*(){if(e=yield e,typeof e=="number"&&e<0){e%1&&h1.throwArgumentError("invalid BlockTag","blockTag",e);let r=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return r+=e,r<0&&(r=0),this.formatter.blockTag(r)}return this.formatter.blockTag(e)})}getResolver(e){return u1(this,void 0,void 0,function*(){let r=e;for(;;){if(r===""||r==="."||e!=="eth"&&r==="eth")return null;const n=yield this._getResolver(r,"getResolver");if(n!=null){const i=new as(this,n,e);return r!==e&&!(yield i.supportsWildcard())?null:i}r=r.split(".").slice(1).join(".")}})}_getResolver(e,r){return u1(this,void 0,void 0,function*(){r==null&&(r="ENS");const n=yield this.getNetwork();n.ensAddress||h1.throwError("network does not support ENS",r0.errors.UNSUPPORTED_OPERATION,{operation:r,network:n.name});try{const i=yield this.call({to:n.ensAddress,data:"0x0178b8bf"+Cr(e).substring(2)});return this.formatter.callAddress(i)}catch{}return null})}resolveName(e){return u1(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(n){if(s1(e))throw n}typeof e!="string"&&h1.throwArgumentError("invalid ENS name","name",e);const r=yield this.getResolver(e);return r?yield r.getAddress():null})}lookupAddress(e){return u1(this,void 0,void 0,function*(){e=yield e,e=this.formatter.address(e);const r=e.substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(r,"lookupAddress");if(n==null)return null;const i=d9(yield this.call({to:n,data:"0x691f3431"+Cr(r).substring(2)}),0);return(yield this.resolveName(i))!=e?null:i})}getAvatar(e){return u1(this,void 0,void 0,function*(){let r=null;if(s1(e)){const u=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",a=yield this._getResolver(u,"getAvatar");if(!a)return null;r=new as(this,a,u);try{const o=yield r.getAvatar();if(o)return o.url}catch(o){if(o.code!==r0.errors.CALL_EXCEPTION)throw o}try{const o=d9(yield this.call({to:a,data:"0x691f3431"+Cr(u).substring(2)}),0);r=yield this.getResolver(o)}catch(o){if(o.code!==r0.errors.CALL_EXCEPTION)throw o;return null}}else if(r=yield this.getResolver(e),!r)return null;const n=yield r.getAvatar();return n==null?null:n.url})}perform(e,r){return h1.throwError(e+" not implemented",r0.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter(r=>r.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(r=>r.pollable()).length>0}_addEventListener(e,r,n){const i=new mC(Yn(e),r,n);return this._events.push(i),this._startEvent(i),this}on(e,r){return this._addEventListener(e,r,!1)}once(e,r){return this._addEventListener(e,r,!0)}emit(e,...r){let n=!1,i=[],u=Yn(e);return this._events=this._events.filter(a=>a.tag!==u?!0:(setTimeout(()=>{a.listener.apply(this,r)},0),n=!0,a.once?(i.push(a),!1):!0)),i.forEach(a=>{this._stopEvent(a)}),n}listenerCount(e){if(!e)return this._events.length;let r=Yn(e);return this._events.filter(n=>n.tag===r).length}listeners(e){if(e==null)return this._events.map(n=>n.listener);let r=Yn(e);return this._events.filter(n=>n.tag===r).map(n=>n.listener)}off(e,r){if(r==null)return this.removeAllListeners(e);const n=[];let i=!1,u=Yn(e);return this._events=this._events.filter(a=>a.tag!==u||a.listener!=r||i?!0:(i=!0,n.push(a),!1)),n.forEach(a=>{this._stopEvent(a)}),this}removeAllListeners(e){let r=[];if(e==null)r=this._events,this._events=[];else{const n=Yn(e);this._events=this._events.filter(i=>i.tag!==n?!0:(r.push(i),!1))}return r.forEach(n=>{this._stopEvent(n)}),this}}const vC="abstract-signer/5.7.0";var zt=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const Ct=new r0(vC),AC=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],wC=[r0.errors.INSUFFICIENT_FUNDS,r0.errors.NONCE_EXPIRED,r0.errors.REPLACEMENT_UNDERPRICED];class Ln{constructor(){Ct.checkAbstract(new.target,Ln),b0(this,"_isSigner",!0)}getBalance(e){return zt(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return zt(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return zt(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const r=yield te(this.checkTransaction(e));return yield this.provider.estimateGas(r)})}call(e,r){return zt(this,void 0,void 0,function*(){this._checkProvider("call");const n=yield te(this.checkTransaction(e));return yield this.provider.call(n,r)})}sendTransaction(e){return zt(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const r=yield this.populateTransaction(e),n=yield this.signTransaction(r);return yield this.provider.sendTransaction(n)})}getChainId(){return zt(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return zt(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return zt(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return zt(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(const n in e)AC.indexOf(n)===-1&&Ct.throwArgumentError("invalid transaction key: "+n,"transaction",e);const r=q1(e);return r.from==null?r.from=this.getAddress():r.from=Promise.all([Promise.resolve(r.from),this.getAddress()]).then(n=>(n[0].toLowerCase()!==n[1].toLowerCase()&&Ct.throwArgumentError("from address mismatch","transaction",e),n[0])),r}populateTransaction(e){return zt(this,void 0,void 0,function*(){const r=yield te(this.checkTransaction(e));r.to!=null&&(r.to=Promise.resolve(r.to).then(i=>zt(this,void 0,void 0,function*(){if(i==null)return null;const u=yield this.resolveName(i);return u==null&&Ct.throwArgumentError("provided ENS name resolves to null","tx.to",i),u})),r.to.catch(i=>{}));const n=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null;if(r.gasPrice!=null&&(r.type===2||n)?Ct.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(r.type===0||r.type===1)&&n&&Ct.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null)r.type=2;else if(r.type===0||r.type===1)r.gasPrice==null&&(r.gasPrice=this.getGasPrice());else{const i=yield this.getFeeData();if(r.type==null)if(i.maxFeePerGas!=null&&i.maxPriorityFeePerGas!=null)if(r.type=2,r.gasPrice!=null){const u=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=u,r.maxPriorityFeePerGas=u}else r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas);else i.gasPrice!=null?(n&&Ct.throwError("network does not support EIP-1559",r0.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=i.gasPrice),r.type=0):Ct.throwError("failed to get consistent fee data",r0.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else r.type===2&&(r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas))}return r.nonce==null&&(r.nonce=this.getTransactionCount("pending")),r.gasLimit==null&&(r.gasLimit=this.estimateGas(r).catch(i=>{if(wC.indexOf(i.code)>=0)throw i;return Ct.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",r0.errors.UNPREDICTABLE_GAS_LIMIT,{error:i,tx:r})})),r.chainId==null?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then(i=>(i[1]!==0&&i[0]!==i[1]&&Ct.throwArgumentError("chainId address mismatch","transaction",e),i[0])),yield te(r)})}_checkProvider(e){this.provider||Ct.throwError("missing provider",r0.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class I4 extends Ln{constructor(e,r){super(),b0(this,"address",e),b0(this,"provider",r||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,r){return Promise.resolve().then(()=>{Ct.throwError(e,r0.errors.UNSUPPORTED_OPERATION,{operation:r})})}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,r,n){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new I4(this.address,e)}}var Lr=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const le=new r0(je),EC=["call","estimateGas"];function Yi(t,e){if(t==null)return null;if(typeof t.message=="string"&&t.message.match("reverted")){const r=s1(t.data)?t.data:null;if(!e||r)return{message:t.message,data:r}}if(typeof t=="object"){for(const r in t){const n=Yi(t[r],e);if(n)return n}return null}if(typeof t=="string")try{return Yi(JSON.parse(t),e)}catch{}return null}function gp(t,e,r){const n=r.transaction||r.signedTransaction;if(t==="call"){const u=Yi(e,!0);if(u)return u.data;le.throwError("missing revert data in call exception; Transaction reverted without a reason string",r0.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:e})}if(t==="estimateGas"){let u=Yi(e.body,!1);u==null&&(u=Yi(e,!1)),u&&le.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",r0.errors.UNPREDICTABLE_GAS_LIMIT,{reason:u.message,method:t,transaction:n,error:e})}let i=e.message;throw e.code===r0.errors.SERVER_ERROR&&e.error&&typeof e.error.message=="string"?i=e.error.message:typeof e.body=="string"?i=e.body:typeof e.responseText=="string"&&(i=e.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&le.throwError("insufficient funds for intrinsic transaction cost",r0.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:n}),i.match(/nonce (is )?too low/i)&&le.throwError("nonce has already been used",r0.errors.NONCE_EXPIRED,{error:e,method:t,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&le.throwError("replacement fee too low",r0.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:n}),i.match(/only replay-protected/i)&&le.throwError("legacy pre-eip-155 transactions not supported",r0.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:n}),EC.indexOf(t)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&le.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",r0.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:n}),e}function Bf(t){return new Promise(function(e){setTimeout(e,t)})}function CC(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}function ki(t){return t&&t.toLowerCase()}const os={};class R4 extends Ln{constructor(e,r,n){if(super(),e!==os)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");b0(this,"provider",r),n==null&&(n=0),typeof n=="string"?(b0(this,"_address",this.provider.formatter.address(n)),b0(this,"_index",null)):typeof n=="number"?(b0(this,"_index",n),b0(this,"_address",null)):le.throwArgumentError("invalid address or index","addressOrIndex",n)}connect(e){return le.throwError("cannot alter JSON-RPC Signer connection",r0.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new FC(os,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(e=>(e.length<=this._index&&le.throwError("unknown account #"+this._index,r0.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=q1(e);const r=this.getAddress().then(n=>(n&&(n=n.toLowerCase()),n));if(e.gasLimit==null){const n=q1(e);n.from=r,e.gasLimit=this.provider.estimateGas(n)}return e.to!=null&&(e.to=Promise.resolve(e.to).then(n=>Lr(this,void 0,void 0,function*(){if(n==null)return null;const i=yield this.provider.resolveName(n);return i==null&&le.throwArgumentError("provided ENS name resolves to null","tx.to",n),i}))),te({tx:te(e),sender:r}).then(({tx:n,sender:i})=>{n.from!=null?n.from.toLowerCase()!==i&&le.throwArgumentError("from address mismatch","transaction",e):n.from=i;const u=this.provider.constructor.hexlifyTransaction(n,{from:!0});return this.provider.send("eth_sendTransaction",[u]).then(a=>a,a=>(typeof a.message=="string"&&a.message.match(/user denied/i)&&le.throwError("user rejected transaction",r0.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:n}),gp("sendTransaction",a,u)))})}signTransaction(e){return le.throwError("signing transactions is unsupported",r0.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return Lr(this,void 0,void 0,function*(){const r=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),n=yield this.sendUncheckedTransaction(e);try{return yield mn(()=>Lr(this,void 0,void 0,function*(){const i=yield this.provider.getTransaction(n);if(i!==null)return this.provider._wrapTransaction(i,n,r)}),{oncePoll:this.provider})}catch(i){throw i.transactionHash=n,i}})}signMessage(e){return Lr(this,void 0,void 0,function*(){const r=typeof e=="string"?H1(e):e,n=yield this.getAddress();try{return yield this.provider.send("personal_sign",[N0(r),n.toLowerCase()])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&le.throwError("user rejected signing",r0.errors.ACTION_REJECTED,{action:"signMessage",from:n,messageData:e}),i}})}_legacySignMessage(e){return Lr(this,void 0,void 0,function*(){const r=typeof e=="string"?H1(e):e,n=yield this.getAddress();try{return yield this.provider.send("eth_sign",[n.toLowerCase(),N0(r)])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&le.throwError("user rejected signing",r0.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:n,messageData:e}),i}})}_signTypedData(e,r,n){return Lr(this,void 0,void 0,function*(){const i=yield Be.resolveNames(e,r,n,a=>this.provider.resolveName(a)),u=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[u.toLowerCase(),JSON.stringify(Be.getPayload(i.domain,r,i.value))])}catch(a){throw typeof a.message=="string"&&a.message.match(/user denied/i)&&le.throwError("user rejected signing",r0.errors.ACTION_REJECTED,{action:"_signTypedData",from:u,messageData:{domain:i.domain,types:r,value:i.value}}),a}})}unlock(e){return Lr(this,void 0,void 0,function*(){const r=this.provider,n=yield this.getAddress();return r.send("personal_unlockAccount",[n.toLowerCase(),e,null])})}}class FC extends R4{sendTransaction(e){return this.sendUncheckedTransaction(e).then(r=>({hash:r,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:n=>this.provider.waitForTransaction(r,n)}))}}const BC={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class He extends R8{constructor(e,r){let n=r;n==null&&(n=new Promise((i,u)=>{setTimeout(()=>{this.detectNetwork().then(a=>{i(a)},a=>{u(a)})},0)})),super(n),e||(e=De(this.constructor,"defaultUrl")()),typeof e=="string"?b0(this,"connection",Object.freeze({url:e})):b0(this,"connection",Object.freeze(q1(e))),this._nextId=42}get _cache(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return Lr(this,void 0,void 0,function*(){yield Bf(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch{try{e=yield this.send("net_version",[])}catch{}}if(e!=null){const r=De(this.constructor,"getNetwork");try{return r(P0.from(e).toNumber())}catch(n){return le.throwError("could not detect network",r0.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:n})}}return le.throwError("could not detect network",r0.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new R4(os,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(e=>e.map(r=>this.formatter.address(r)))}send(e,r){const n={method:e,params:r,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:Qe(n),provider:this});const i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(i&&this._cache[e])return this._cache[e];const u=ai(this.connection,JSON.stringify(n),CC).then(a=>(this.emit("debug",{action:"response",request:n,response:a,provider:this}),a),a=>{throw this.emit("debug",{action:"response",error:a,request:n,provider:this}),a});return i&&(this._cache[e]=u,setTimeout(()=>{this._cache[e]=null},0)),u}prepareRequest(e,r){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[ki(r.address),r.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[ki(r.address),r.blockTag]];case"getCode":return["eth_getCode",[ki(r.address),r.blockTag]];case"getStorageAt":return["eth_getStorageAt",[ki(r.address),j1(r.position,32),r.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[r.signedTransaction]];case"getBlock":return r.blockTag?["eth_getBlockByNumber",[r.blockTag,!!r.includeTransactions]]:r.blockHash?["eth_getBlockByHash",[r.blockHash,!!r.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[r.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[r.transactionHash]];case"call":return["eth_call",[De(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0}),r.blockTag]];case"estimateGas":return["eth_estimateGas",[De(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0})]];case"getLogs":return r.filter&&r.filter.address!=null&&(r.filter.address=ki(r.filter.address)),["eth_getLogs",[r.filter]]}return null}perform(e,r){return Lr(this,void 0,void 0,function*(){if(e==="call"||e==="estimateGas"){const i=r.transaction;if(i&&i.type!=null&&P0.from(i.type).isZero()&&i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null){const u=yield this.getFeeData();u.maxFeePerGas==null&&u.maxPriorityFeePerGas==null&&(r=q1(r),r.transaction=q1(i),delete r.transaction.type)}}const n=this.prepareRequest(e,r);n==null&&le.throwError(e+" not implemented",r0.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(n[0],n[1])}catch(i){return gp(e,i,r)}})}_startEvent(e){e.tag==="pending"&&this._startPending(),super._startEvent(e)}_startPending(){if(this._pendingFilter!=null)return;const e=this,r=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=r,r.then(function(n){function i(){e.send("eth_getFilterChanges",[n]).then(function(u){if(e._pendingFilter!=r)return null;let a=Promise.resolve();return u.forEach(function(o){e._emitted["t:"+o.toLowerCase()]="pending",a=a.then(function(){return e.getTransaction(o).then(function(s){return e.emit("pending",s),null})})}),a.then(function(){return Bf(1e3)})}).then(function(){if(e._pendingFilter!=r){e.send("eth_uninstallFilter",[n]);return}return setTimeout(function(){i()},0),null}).catch(u=>{})}return i(),n}).catch(n=>{})}_stopEvent(e){e.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,r){const n=q1(BC);if(r)for(const u in r)r[u]&&(n[u]=!0);w4(e,n);const i={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(u){if(e[u]==null)return;const a=Qu(P0.from(e[u]));u==="gasLimit"&&(u="gas"),i[u]=a}),["from","to","data"].forEach(function(u){e[u]!=null&&(i[u]=N0(e[u]))}),e.accessList&&(i.accessList=Z2(e.accessList)),i}}let Xi=null;try{if(Xi=WebSocket,Xi==null)throw new Error("inject please")}catch{const e=new r0(je);Xi=function(){e.throwError("WebSockets not supported in this environment",r0.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var ja=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const _5=new r0(je);let DC=1;class O8 extends He{constructor(e,r){r==="any"&&_5.throwError("WebSocketProvider does not support 'any' network yet",r0.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),typeof e=="string"?super(e,r):super("_websocket",r),this._pollingInterval=-1,this._wsReady=!1,typeof e=="string"?b0(this,"_websocket",new Xi(this.connection.url)):b0(this,"_websocket",e),b0(this,"_requests",{}),b0(this,"_subs",{}),b0(this,"_subIds",{}),b0(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach(i=>{this.websocket.send(this._requests[i].payload)})},this.websocket.onmessage=i=>{const u=i.data,a=JSON.parse(u);if(a.id!=null){const o=String(a.id),s=this._requests[o];if(delete this._requests[o],a.result!==void 0)s.callback(null,a.result),this.emit("debug",{action:"response",request:JSON.parse(s.payload),response:a.result,provider:this});else{let c=null;a.error?(c=new Error(a.error.message||"unknown error"),b0(c,"code",a.error.code||null),b0(c,"response",u)):c=new Error("unknown error"),s.callback(c,void 0),this.emit("debug",{action:"response",error:c,request:JSON.parse(s.payload),provider:this})}}else if(a.method==="eth_subscription"){const o=this._subs[a.params.subscription];o&&o.processFunc(a.params.result)}else console.warn("this should not happen")};const n=setInterval(()=>{this.emit("poll")},1e3);n.unref&&n.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(e){_5.throwError("cannot reset events block on WebSocketProvider",r0.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(e){_5.throwError("cannot set polling interval on WebSocketProvider",r0.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return ja(this,void 0,void 0,function*(){return null})}set polling(e){e&&_5.throwError("cannot set polling on WebSocketProvider",r0.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(e,r){const n=DC++;return new Promise((i,u)=>{function a(s,c){return s?u(s):i(c)}const o=JSON.stringify({method:e,params:r,id:n,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(o),provider:this}),this._requests[String(n)]={callback:a,payload:o},this._wsReady&&this.websocket.send(o)})}static defaultUrl(){return"ws://localhost:8546"}_subscribe(e,r,n){return ja(this,void 0,void 0,function*(){let i=this._subIds[e];i==null&&(i=Promise.all(r).then(a=>this.send("eth_subscribe",a)),this._subIds[e]=i);const u=yield i;this._subs[u]={tag:e,processFunc:n}})}_startEvent(e){switch(e.type){case"block":this._subscribe("block",["newHeads"],r=>{const n=P0.from(r.number).toNumber();this._emitted.block=n,this.emit("block",n)});break;case"pending":this._subscribe("pending",["newPendingTransactions"],r=>{this.emit("pending",r)});break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],r=>{r.removed==null&&(r.removed=!1),this.emit(e.filter,this.formatter.filterLog(r))});break;case"tx":{const r=n=>{const i=n.hash;this.getTransactionReceipt(i).then(u=>{u&&this.emit(i,u)})};r(e),this._subscribe("tx",["newHeads"],n=>{this._events.filter(i=>i.type==="tx").forEach(r)});break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e);break}}_stopEvent(e){let r=e.tag;if(e.type==="tx"){if(this._events.filter(i=>i.type==="tx").length)return;r="tx"}else if(this.listenerCount(e.event))return;const n=this._subIds[r];n&&(delete this._subIds[r],n.then(i=>{this._subs[i]&&(delete this._subs[i],this.send("eth_unsubscribe",[i]))}))}destroy(){return ja(this,void 0,void 0,function*(){this.websocket.readyState===Xi.CONNECTING&&(yield new Promise(e=>{this.websocket.onopen=function(){e(!0)},this.websocket.onerror=function(){e(!1)}})),this.websocket.close(1e3)})}}var _C=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const Ii=new r0(je);class xp extends He{detectNetwork(){const e=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return _C(this,void 0,void 0,function*(){let r=this.network;return r==null&&(r=yield e.detectNetwork.call(this),r||Ii.throwError("no network detected",r0.errors.UNKNOWN_ERROR,{}),this._network==null&&(b0(this,"_network",r),this.emit("network",r,null))),r})}}class u2 extends xp{constructor(e,r){Ii.checkAbstract(new.target,u2),e=De(new.target,"getNetwork")(e),r=De(new.target,"getApiKey")(r);const n=De(new.target,"getUrl")(e,r);super(n,e),typeof r=="string"?b0(this,"apiKey",r):r!=null&&Object.keys(r).forEach(i=>{b0(this,i,r[i])})}_startPending(){Ii.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(e){return Ii.throwError("API provider does not support signing",r0.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(e){return e}static getUrl(e,r){return Ii.throwError("not implemented; sub-classes must override getUrl",r0.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}const Df=new r0(je),h9="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class vp extends O8{constructor(e,r){const n=new O4(e,r),i=n.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");super(i,n.network),b0(this,"apiKey",n.apiKey)}isCommunityResource(){return this.apiKey===h9}}class O4 extends u2{static getWebSocketProvider(e,r){return new vp(e,r)}static getApiKey(e){return e==null?h9:(e&&typeof e!="string"&&Df.throwArgumentError("invalid apiKey","apiKey",e),e)}static getUrl(e,r){let n=null;switch(e.name){case"homestead":n="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":n="eth-goerli.g.alchemy.com/v2/";break;case"matic":n="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":n="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":n="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":n="arb-goerli.g.alchemy.com/v2/";break;case"optimism":n="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":n="opt-goerli.g.alchemy.com/v2/";break;default:Df.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+n+r,throttleCallback:(i,u)=>(r===h9&&Zu(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===h9}}const kC=new r0(je),k5="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function SC(t){switch(t){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return kC.throwArgumentError("unsupported network","name",t)}class Ap extends u2{isCommunityResource(){return this.apiKey===k5}static getApiKey(e){return e??k5}static getUrl(e,r){r==null&&(r=k5);const n={allowGzip:!0,url:"https://"+SC(e.name)+r,throttleCallback:(i,u)=>(r.apiKey===k5&&Zu(),Promise.resolve(!0))};return r.projectSecret!=null&&(n.user="",n.password=r.projectSecret),n}}var TC=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const _f=new r0(je);class wp extends u2{static getApiKey(e){return e!=null&&_f.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}static getUrl(e,r){let n=null;switch(e.name){case"homestead":n="https://cloudflare-eth.com/";break;default:_f.throwArgumentError("unsupported network","network",arguments[0])}return n}perform(e,r){const n=Object.create(null,{perform:{get:()=>super.perform}});return TC(this,void 0,void 0,function*(){return e==="getBlockNumber"?(yield n.perform.call(this,"getBlock",{blockTag:"latest"})).number:n.perform.call(this,e,r)})}}var S5=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const v2=new r0(je);function kf(t){const e={};for(let r in t){if(t[r]==null)continue;let n=t[r];r==="type"&&n===0||({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[r]?n=Qu(N0(n)):r==="accessList"?n="["+Z2(n).map(i=>`{address:"${i.address}",storageKeys:["${i.storageKeys.join('","')}"]}`).join(",")+"]":n=N0(n),e[r]=n)}return e}function PC(t){if(t.status==0&&(t.message==="No records found"||t.message==="No transactions found"))return t.result;if(t.status!=1||typeof t.message!="string"||!t.message.match(/^OK/)){const e=new Error("invalid response");throw e.result=JSON.stringify(t),(t.result||"").toLowerCase().indexOf("rate limit")>=0&&(e.throttleRetry=!0),e}return t.result}function Sf(t){if(t&&t.status==0&&t.message=="NOTOK"&&(t.result||"").toLowerCase().indexOf("rate limit")>=0){const e=new Error("throttled response");throw e.result=JSON.stringify(t),e.throttleRetry=!0,e}if(t.jsonrpc!="2.0"){const e=new Error("invalid response");throw e.result=JSON.stringify(t),e}if(t.error){const e=new Error(t.error.message||"unknown error");throw t.error.code&&(e.code=t.error.code),t.error.data&&(e.data=t.error.data),e}return t.result}function Tf(t){if(t==="pending")throw new Error("pending not supported");return t==="latest"?t:parseInt(t.substring(2),16)}function za(t,e,r){if(t==="call"&&e.code===r0.errors.SERVER_ERROR){const i=e.error;if(i&&(i.message.match(/reverted/i)||i.message.match(/VM execution error/i))){let u=i.data;if(u&&(u="0x"+u.replace(/^.*0x/i,"")),s1(u))return u;v2.throwError("missing revert data in call exception",r0.errors.CALL_EXCEPTION,{error:e,data:"0x"})}}let n=e.message;throw e.code===r0.errors.SERVER_ERROR&&(e.error&&typeof e.error.message=="string"?n=e.error.message:typeof e.body=="string"?n=e.body:typeof e.responseText=="string"&&(n=e.responseText)),n=(n||"").toLowerCase(),n.match(/insufficient funds/)&&v2.throwError("insufficient funds for intrinsic transaction cost",r0.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:r}),n.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&v2.throwError("nonce has already been used",r0.errors.NONCE_EXPIRED,{error:e,method:t,transaction:r}),n.match(/another transaction with same nonce/)&&v2.throwError("replacement fee too low",r0.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:r}),n.match(/execution failed due to an exception|execution reverted/)&&v2.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",r0.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:r}),e}class Ep extends R8{constructor(e,r){super(e),b0(this,"baseUrl",this.getBaseUrl()),b0(this,"apiKey",r||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return v2.throwArgumentError("unsupported network","network",this.network.name)}getUrl(e,r){const n=Object.keys(r).reduce((u,a)=>{const o=r[a];return o!=null&&(u+=`&${a}=${o}`),u},""),i=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${e}${n}${i}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(e,r){return r.module=e,r.apikey=this.apiKey,r}fetch(e,r,n){return S5(this,void 0,void 0,function*(){const i=n?this.getPostUrl():this.getUrl(e,r),u=n?this.getPostData(e,r):null,a=e==="proxy"?Sf:PC;this.emit("debug",{action:"request",request:i,provider:this});const o={url:i,throttleSlotInterval:1e3,throttleCallback:(d,y)=>(this.isCommunityResource()&&Zu(),Promise.resolve(!0))};let s=null;u&&(o.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},s=Object.keys(u).map(d=>`${d}=${u[d]}`).join("&"));const c=yield ai(o,s,a||Sf);return this.emit("debug",{action:"response",request:i,response:Qe(c),provider:this}),c})}detectNetwork(){return S5(this,void 0,void 0,function*(){return this.network})}perform(e,r){const n=Object.create(null,{perform:{get:()=>super.perform}});return S5(this,void 0,void 0,function*(){switch(e){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:r.address,tag:r.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:r.address,tag:r.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:r.address,tag:r.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:r.address,position:r.position,tag:r.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:r.signedTransaction},!0).catch(i=>za("sendTransaction",i,r.signedTransaction));case"getBlock":if(r.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:r.blockTag,boolean:r.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:r.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:r.transactionHash});case"call":{if(r.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");const i=kf(r.transaction);i.module="proxy",i.action="eth_call";try{return yield this.fetch("proxy",i,!0)}catch(u){return za("call",u,r.transaction)}}case"estimateGas":{const i=kf(r.transaction);i.module="proxy",i.action="eth_estimateGas";try{return yield this.fetch("proxy",i,!0)}catch(u){return za("estimateGas",u,r.transaction)}}case"getLogs":{const i={action:"getLogs"};if(r.filter.fromBlock&&(i.fromBlock=Tf(r.filter.fromBlock)),r.filter.toBlock&&(i.toBlock=Tf(r.filter.toBlock)),r.filter.address&&(i.address=r.filter.address),r.filter.topics&&r.filter.topics.length>0&&(r.filter.topics.length>1&&v2.throwError("unsupported topic count",r0.errors.UNSUPPORTED_OPERATION,{topics:r.filter.topics}),r.filter.topics.length===1)){const o=r.filter.topics[0];(typeof o!="string"||o.length!==66)&&v2.throwError("unsupported topic format",r0.errors.UNSUPPORTED_OPERATION,{topic0:o}),i.topic0=o}const u=yield this.fetch("logs",i);let a={};for(let o=0;o{["contractAddress","to"].forEach(function(s){a[s]==""&&delete a[s]}),a.creates==null&&a.contractAddress!=null&&(a.creates=a.contractAddress);const o=this.formatter.transactionResponse(a);return a.timeStamp&&(o.timestamp=parseInt(a.timeStamp)),o})})}isCommunityResource(){return this.apiKey==null}}const NC="random/5.7.0",ss=new r0(NC);function MC(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const Pf=MC();let p9=Pf.crypto||Pf.msCrypto;(!p9||!p9.getRandomValues)&&(ss.warn("WARNING: Missing strong random number source"),p9={getRandomValues:function(t){return ss.throwError("no secure random source avaialble",r0.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function x6(t){(t<=0||t>1024||t%1||t!=t)&&ss.throwArgumentError("invalid length","length",t);const e=new Uint8Array(t);return p9.getRandomValues(e),k0(e)}function Cp(t){t=t.slice();for(let e=t.length-1;e>0;e--){const r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n}return t}const UC=Object.freeze(Object.defineProperty({__proto__:null,randomBytes:x6,shuffled:Cp},Symbol.toStringTag,{value:"Module"}));var Y9=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const cn=new r0(je);function T5(){return new Date().getTime()}function Nf(t){let e=null;for(let r=0;re?null:(n+i)/2}function v6(t){if(t===null)return"null";if(typeof t=="number"||typeof t=="boolean")return JSON.stringify(t);if(typeof t=="string")return t;if(P0.isBigNumber(t))return t.toString();if(Array.isArray(t))return JSON.stringify(t.map(e=>v6(e)));if(typeof t=="object"){const e=Object.keys(t);return e.sort(),"{"+e.map(r=>{let n=t[r];return typeof n=="function"?n="[function]":n=v6(n),JSON.stringify(r)+":"+n}).join(",")+"}"}throw new Error("unknown value type: "+typeof t)}let IC=1;function Uf(t){let e=null,r=null,n=new Promise(a=>{e=function(){r&&(clearTimeout(r),r=null),a()},r=setTimeout(e,t)});const i=a=>(n=n.then(a),n);function u(){return n}return{cancel:e,getPromise:u,wait:i}}const RC=[r0.errors.CALL_EXCEPTION,r0.errors.INSUFFICIENT_FUNDS,r0.errors.NONCE_EXPIRED,r0.errors.REPLACEMENT_UNDERPRICED,r0.errors.UNPREDICTABLE_GAS_LIMIT],OC=["address","args","errorArgs","errorSignature","method","transaction"];function P5(t,e){const r={weight:t.weight};return Object.defineProperty(r,"provider",{get:()=>t.provider}),t.start&&(r.start=t.start),e&&(r.duration=e-t.start),t.done&&(t.error?r.error=t.error:r.result=t.result||null),r}function LC(t,e){return function(r){const n={};r.forEach(u=>{const a=t(u.result);n[a]||(n[a]={count:0,result:u.result}),n[a].count++});const i=Object.keys(n);for(let u=0;u=e)return a.result}}}function jC(t,e,r){let n=v6;switch(e){case"getBlockNumber":return function(i){const u=i.map(o=>o.result);let a=Mf(i.map(o=>o.result),2);if(a!=null)return a=Math.ceil(a),u.indexOf(a+1)>=0&&a++,a>=t._highestBlockNumber&&(t._highestBlockNumber=a),t._highestBlockNumber};case"getGasPrice":return function(i){const u=i.map(a=>a.result);return u.sort(),u[Math.floor(u.length/2)]};case"getEtherPrice":return function(i){return Mf(i.map(u=>u.result))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(i){return i==null?null:(i=q1(i),i.confirmations=-1,v6(i))};break;case"getBlock":r.includeTransactions?n=function(i){return i==null?null:(i=q1(i),i.transactions=i.transactions.map(u=>(u=q1(u),u.confirmations=-1,u)),v6(i))}:n=function(i){return i==null?null:v6(i)};break;default:throw new Error("unknown method: "+e)}return LC(n,t.quorum)}function Si(t,e){return Y9(this,void 0,void 0,function*(){const r=t.provider;return r.blockNumber!=null&&r.blockNumber>=e||e===-1?r:mn(()=>new Promise((n,i)=>{setTimeout(function(){return r.blockNumber>=e?n(r):t.cancelled?n(null):n(void 0)},0)}),{oncePoll:r})})}function zC(t,e,r,n){return Y9(this,void 0,void 0,function*(){let i=t.provider;switch(r){case"getBlockNumber":case"getGasPrice":return i[r]();case"getEtherPrice":if(i.getEtherPrice)return i.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return n.blockTag&&s1(n.blockTag)&&(i=yield Si(t,e)),i[r](n.address,n.blockTag||"latest");case"getStorageAt":return n.blockTag&&s1(n.blockTag)&&(i=yield Si(t,e)),i.getStorageAt(n.address,n.position,n.blockTag||"latest");case"getBlock":return n.blockTag&&s1(n.blockTag)&&(i=yield Si(t,e)),i[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash);case"call":case"estimateGas":return n.blockTag&&s1(n.blockTag)&&(i=yield Si(t,e)),r==="call"&&n.blockTag?i[r](n.transaction,n.blockTag):i[r](n.transaction);case"getTransaction":case"getTransactionReceipt":return i[r](n.transactionHash);case"getLogs":{let u=n.filter;return(u.fromBlock&&s1(u.fromBlock)||u.toBlock&&s1(u.toBlock))&&(i=yield Si(t,e)),i.getLogs(u)}}return cn.throwError("unknown method error",r0.errors.UNKNOWN_ERROR,{method:r,params:n})})}class Fp extends R8{constructor(e,r){e.length===0&&cn.throwArgumentError("missing providers","providers",e);const n=e.map((a,o)=>{if(Rn.isProvider(a)){const d=us(a)?2e3:750;return Object.freeze({provider:a,weight:1,stallTimeout:d,priority:1})}const s=q1(a);s.priority==null&&(s.priority=1),s.stallTimeout==null&&(s.stallTimeout=us(a)?2e3:750),s.weight==null&&(s.weight=1);const c=s.weight;return(c%1||c>512||c<1)&&cn.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${o}].weight`,c),Object.freeze(s)}),i=n.reduce((a,o)=>a+o.weight,0);r==null?r=i/2:r>i&&cn.throwArgumentError("quorum will always fail; larger than total weight","quorum",r);let u=Nf(n.map(a=>a.provider.network));u==null&&(u=new Promise((a,o)=>{setTimeout(()=>{this.detectNetwork().then(a,o)},0)})),super(u),b0(this,"providerConfigs",Object.freeze(n)),b0(this,"quorum",r),this._highestBlockNumber=-1}detectNetwork(){return Y9(this,void 0,void 0,function*(){const e=yield Promise.all(this.providerConfigs.map(r=>r.provider.getNetwork()));return Nf(e)})}perform(e,r){return Y9(this,void 0,void 0,function*(){if(e==="sendTransaction"){const s=yield Promise.all(this.providerConfigs.map(c=>c.provider.sendTransaction(r.signedTransaction).then(d=>d.hash,d=>d)));for(let c=0;cs.priority-c.priority);const u=this._highestBlockNumber;let a=0,o=!0;for(;;){const s=T5();let c=i.filter(C=>C.runner&&s-C.startC+T.weight,0);for(;c{C.staller=null}),C.runner=zC(C,u,e,r).then(U=>{C.done=!0,C.result=U,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:T,backend:P5(C,T5()),request:{method:e,params:Qe(r)},provider:this})},U=>{C.done=!0,C.error=U,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:T,backend:P5(C,T5()),request:{method:e,params:Qe(r)},provider:this})}),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:T,backend:P5(C,null),request:{method:e,params:Qe(r)},provider:this}),c+=C.weight}const d=[];i.forEach(C=>{C.done||!C.runner||(d.push(C.runner),C.staller&&d.push(C.staller.getPromise()))}),d.length&&(yield Promise.race(d));const y=i.filter(C=>C.done&&C.error==null);if(y.length>=this.quorum){const C=n(y);if(C!==void 0)return i.forEach(T=>{T.staller&&T.staller.cancel(),T.cancelled=!0}),C;o||(yield Uf(100).getPromise()),o=!1}const A=i.reduce((C,T)=>{if(!T.done||T.error==null)return C;const U=T.error.code;return RC.indexOf(U)>=0&&(C[U]||(C[U]={error:T.error,weight:0}),C[U].weight+=T.weight),C},{});if(Object.keys(A).forEach(C=>{const T=A[C];if(T.weight{_.staller&&_.staller.cancel(),_.cancelled=!0});const U=T.error,P={};OC.forEach(_=>{U[_]!=null&&(P[_]=U[_])}),cn.throwError(U.reason||U.message,C,P)}),i.filter(C=>!C.done).length===0)break}return i.forEach(s=>{s.staller&&s.staller.cancel(),s.cancelled=!0}),cn.throwError("failed to meet quorum",r0.errors.SERVER_ERROR,{method:e,params:r,results:i.map(s=>P5(s)),provider:this})})}}const Bp=null,b9=new r0(je),Ri="84842078b09946638c03157f83405213";class Dp extends O8{constructor(e,r){const n=new L4(e,r),i=n.connection;i.password&&b9.throwError("INFURA WebSocket project secrets unsupported",r0.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});const u=i.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(u,e),b0(this,"apiKey",n.projectId),b0(this,"projectId",n.projectId),b0(this,"projectSecret",n.projectSecret)}isCommunityResource(){return this.projectId===Ri}}class L4 extends u2{static getWebSocketProvider(e,r){return new Dp(e,r)}static getApiKey(e){const r={apiKey:Ri,projectId:Ri,projectSecret:null};return e==null||(typeof e=="string"?r.projectId=e:e.projectSecret!=null?(b9.assertArgument(typeof e.projectId=="string","projectSecret requires a projectId","projectId",e.projectId),b9.assertArgument(typeof e.projectSecret=="string","invalid projectSecret","projectSecret","[REDACTED]"),r.projectId=e.projectId,r.projectSecret=e.projectSecret):e.projectId&&(r.projectId=e.projectId),r.apiKey=r.projectId),r}static getUrl(e,r){let n=null;switch(e?e.name:"unknown"){case"homestead":n="mainnet.infura.io";break;case"goerli":n="goerli.infura.io";break;case"sepolia":n="sepolia.infura.io";break;case"matic":n="polygon-mainnet.infura.io";break;case"maticmum":n="polygon-mumbai.infura.io";break;case"optimism":n="optimism-mainnet.infura.io";break;case"optimism-goerli":n="optimism-goerli.infura.io";break;case"arbitrum":n="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":n="arbitrum-goerli.infura.io";break;default:b9.throwError("unsupported network",r0.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const i={allowGzip:!0,url:"https://"+n+"/v3/"+r.projectId,throttleCallback:(u,a)=>(r.projectId===Ri&&Zu(),Promise.resolve(!0))};return r.projectSecret!=null&&(i.user="",i.password=r.projectSecret),i}isCommunityResource(){return this.projectId===Ri}}class $C extends He{send(e,r){const n={method:e,params:r,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch==null&&(this._pendingBatch=[]);const i={request:n,resolve:null,reject:null},u=new Promise((a,o)=>{i.resolve=a,i.reject=o});return this._pendingBatch.push(i),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{const a=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;const o=a.map(s=>s.request);return this.emit("debug",{action:"requestBatch",request:Qe(o),provider:this}),ai(this.connection,JSON.stringify(o)).then(s=>{this.emit("debug",{action:"response",request:o,response:s,provider:this}),a.forEach((c,d)=>{const y=s[d];if(y.error){const A=new Error(y.error.message);A.code=y.error.code,A.data=y.error.data,c.reject(A)}else c.resolve(y.result)})},s=>{this.emit("debug",{action:"response",error:s,request:o,provider:this}),a.forEach(c=>{c.reject(s)})})},10)),u}}const $a=new r0(je),qC="ETHERS_JS_SHARED";class _p extends u2{static getApiKey(e){return e&&typeof e!="string"&&$a.throwArgumentError("invalid apiKey","apiKey",e),e||qC}static getUrl(e,r){$a.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let n=null;switch(e.name){case"homestead":n="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":n="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":n="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":n="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":n="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:$a.throwArgumentError("unsupported network","network",arguments[0])}return n+"?apiKey="+r}}const If=new r0(je),Rf="62e1ad51b37b8e00394bda3b";class kp extends u2{static getApiKey(e){const r={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return e==null?r.applicationId=Rf:typeof e=="string"?r.applicationId=e:e.applicationSecretKey!=null?(r.applicationId=e.applicationId,r.applicationSecretKey=e.applicationSecretKey):e.applicationId?r.applicationId=e.applicationId:If.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),r}static getUrl(e,r){let n=null;switch(e?e.name:"unknown"){case"goerli":n="eth-goerli.gateway.pokt.network";break;case"homestead":n="eth-mainnet.gateway.pokt.network";break;case"kovan":n="poa-kovan.gateway.pokt.network";break;case"matic":n="poly-mainnet.gateway.pokt.network";break;case"maticmum":n="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":n="eth-rinkeby.gateway.pokt.network";break;case"ropsten":n="eth-ropsten.gateway.pokt.network";break;default:If.throwError("unsupported network",r0.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const i=`https://${n}/v1/lb/${r.applicationId}`,u={headers:{},url:i};return r.applicationSecretKey!=null&&(u.user="",u.password=r.applicationSecretKey),u}isCommunityResource(){return this.applicationId===Rf}}const Of=new r0(je);let HC=1;function Lf(t,e){const r="Web3LegacyFetcher";return function(n,i){const u={method:n,params:i,id:HC++,jsonrpc:"2.0"};return new Promise((a,o)=>{this.emit("debug",{action:"request",fetcher:r,request:Qe(u),provider:this}),e(u,(s,c)=>{if(s)return this.emit("debug",{action:"response",fetcher:r,error:s,request:u,provider:this}),o(s);if(this.emit("debug",{action:"response",fetcher:r,request:u,response:c,provider:this}),c.error){const d=new Error(c.error.message);return d.code=c.error.code,d.data=c.error.data,o(d)}a(c.result)})})}}function KC(t){return function(e,r){r==null&&(r=[]);const n={method:e,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:Qe(n),provider:this}),t.request(n).then(i=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,response:i,provider:this}),i),i=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,error:i,provider:this}),i})}}class Sp extends He{constructor(e,r){e==null&&Of.throwArgumentError("missing provider","provider",e);let n=null,i=null,u=null;typeof e=="function"?(n="unknown:",i=e):(n=e.host||e.path||"",!n&&e.isMetaMask&&(n="metamask"),u=e,e.request?(n===""&&(n="eip-1193:"),i=KC(e)):e.sendAsync?i=Lf(e,e.sendAsync.bind(e)):e.send?i=Lf(e,e.send.bind(e)):Of.throwArgumentError("unsupported provider","provider",e),n||(n="unknown:")),super(n,r),b0(this,"jsonRpcFetchFunc",i),b0(this,"provider",u)}send(e,r){return this.jsonRpcFetchFunc(e,r)}}const jf=new r0(je);function GC(t,e){if(t==null&&(t="homestead"),typeof t=="string"){const n=t.match(/^(ws|http)s?:/i);if(n)switch(n[1].toLowerCase()){case"http":case"https":return new He(t);case"ws":case"wss":return new O8(t);default:jf.throwArgumentError("unsupported URL scheme","network",t)}}const r=E4(t);return(!r||!r._defaultProvider)&&jf.throwError("unsupported getDefaultProvider network",r0.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:t}),r._defaultProvider({FallbackProvider:Fp,AlchemyProvider:O4,AnkrProvider:Ap,CloudflareProvider:wp,EtherscanProvider:Ep,InfuraProvider:L4,JsonRpcProvider:He,NodesmithProvider:_p,PocketProvider:kp,Web3Provider:Sp,IpcProvider:Bp},e)}const WC=Object.freeze(Object.defineProperty({__proto__:null,AlchemyProvider:O4,AlchemyWebSocketProvider:vp,AnkrProvider:Ap,BaseProvider:R8,CloudflareProvider:wp,EtherscanProvider:Ep,FallbackProvider:Fp,Formatter:q0,InfuraProvider:L4,InfuraWebSocketProvider:Dp,IpcProvider:Bp,JsonRpcBatchProvider:$C,JsonRpcProvider:He,JsonRpcSigner:R4,NodesmithProvider:_p,PocketProvider:kp,Provider:Rn,Resolver:as,StaticJsonRpcProvider:xp,UrlJsonRpcProvider:u2,Web3Provider:Sp,WebSocketProvider:O8,getDefaultProvider:GC,getNetwork:E4,isCommunityResourcable:bp,isCommunityResource:us,showThrottleMessage:Zu},Symbol.toStringTag,{value:"Module"})),VC=z1(WC);var JC=y1&&y1.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),QC=y1&&y1.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),YC=y1&&y1.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&JC(e,t,r);return QC(e,t),e},XC=y1&&y1.__awaiter||function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.getPriorityConnector=Vr.getSelectedConnector=Vr.initializeConnector=void 0;const ZC=Xd,A6=f0,zf=yh,eF=Ov;let N6;function tF(){return XC(this,void 0,void 0,function*(){if(N6===void 0)try{const{Web3Provider:t}=yield Promise.resolve().then(()=>YC(VC));N6=t}catch{console.debug("@ethersproject/providers not available"),N6=null}})}function rF(t){const[e,r]=(0,ZC.createWeb3ReactStoreAndActions)(),n=t(r),i=lF(e),u=fF(i),a=cF(n,i,u);return[n,Object.assign(Object.assign(Object.assign({},i),u),a),e]}Vr.initializeConnector=rF;function nF({chainId:t,accounts:e,activating:r}){return!!(t&&e&&!r)}function Tp(...t){function e(y){const A=t.findIndex(([C])=>y===C);if(A===-1)throw new Error("Connector not found");return A}function r(y){const A=t[e(y)][2];if(!A)throw new Error("Stores not passed");return A}function n(y){return t.map(([,{useChainId:C}])=>C())[e(y)]}function i(y){return t.map(([,{useAccounts:C}])=>C())[e(y)]}function u(y){return t.map(([,{useIsActivating:C}])=>C())[e(y)]}function a(y){return t.map(([,{useAccount:C}])=>C())[e(y)]}function o(y){return t.map(([,{useIsActive:C}])=>C())[e(y)]}function s(y,A){const C=e(y);return t.map(([,{useProvider:U}],P)=>U(A,P===C))[C]}function c(y,A){const C=e(y);return t.map(([,{useENSNames:U}],P)=>U(P===C?A:void 0))[C]}function d(y,A){const C=e(y);return t.map(([,{useENSName:U}],P)=>U(P===C?A:void 0))[C]}return{useSelectedStore:r,useSelectedChainId:n,useSelectedAccounts:i,useSelectedIsActivating:u,useSelectedAccount:a,useSelectedIsActive:o,useSelectedProvider:s,useSelectedENSNames:c,useSelectedENSName:d}}Vr.getSelectedConnector=Tp;function iF(...t){const{useSelectedStore:e,useSelectedChainId:r,useSelectedAccounts:n,useSelectedIsActivating:i,useSelectedAccount:u,useSelectedIsActive:a,useSelectedProvider:o,useSelectedENSNames:s,useSelectedENSName:c}=Tp(...t);function d(){const G=t.map(([,{useIsActive:t0}])=>t0()).findIndex(t0=>t0);return t[G===-1?0:G][0]}function y(){return e(d())}function A(){return r(d())}function C(){return n(d())}function T(){return i(d())}function U(){return u(d())}function P(){return a(d())}function _(W){return o(d(),W)}function B(W){return s(d(),W)}function N(W){return c(d(),W)}return{useSelectedStore:e,useSelectedChainId:r,useSelectedAccounts:n,useSelectedIsActivating:i,useSelectedAccount:u,useSelectedIsActive:a,useSelectedProvider:o,useSelectedENSNames:s,useSelectedENSName:c,usePriorityConnector:d,usePriorityStore:y,usePriorityChainId:A,usePriorityAccounts:C,usePriorityIsActivating:T,usePriorityAccount:U,usePriorityIsActive:P,usePriorityProvider:_,usePriorityENSNames:B,usePriorityENSName:N}}Vr.getPriorityConnector=iF;const uF=({chainId:t})=>t,aF=({accounts:t})=>t,oF=({activating:t})=>t,sF=(t,e)=>t===void 0&&e===void 0||t!==void 0&&t.length===(e==null?void 0:e.length)&&t.every((r,n)=>r===e[n]);function lF(t){function e(){return(0,zf.useStore)(t,uF)}function r(){return(0,eF.useStoreWithEqualityFn)(t,aF,sF)}function n(){return(0,zf.useStore)(t,oF)}return{useChainId:e,useAccounts:r,useIsActivating:n}}function fF({useChainId:t,useAccounts:e,useIsActivating:r}){function n(){var u;return(u=e())===null||u===void 0?void 0:u[0]}function i(){const u=t(),a=e(),o=r();return nF({chainId:u,accounts:a,activating:o})}return{useAccount:n,useIsActive:i}}function $f(t,e=[]){const[r,n]=(0,A6.useState)();return(0,A6.useEffect)(()=>{if(t&&e.length){let i=!1;return Promise.all(e.map(u=>t.lookupAddress(u))).then(u=>{i||n(u)}).catch(u=>{i||(console.debug("Could not fetch ENS names",u),n(new Array(e.length).fill(null)))}),()=>{i=!0,n(void 0)}}},[t,e]),r??new Array(e.length).fill(void 0)}function cF(t,{useAccounts:e,useChainId:r},{useAccount:n,useIsActive:i}){function u(s,c=!0){const d=i(),y=r(),[A,C]=(0,A6.useState)(N6!==void 0);return(0,A6.useEffect)(()=>{if(A)return;let T=!1;return tF().then(()=>{T||C(!0)}),()=>{T=!0}},[A]),(0,A6.useMemo)(()=>{if(c){if(t.customProvider)return t.customProvider;if(N6&&t.provider)return new N6(t.provider,s)}},[A,c,d,y,s])}function a(s){const c=e();return $f(s,c)}function o(s){var c;const d=n(),y=(0,A6.useMemo)(()=>d===void 0?void 0:[d],[d]);return(c=$f(s,y))===null||c===void 0?void 0:c[0]}return{useProvider:u,useENSNames:a,useENSName:o}}var L8={},Pp={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,c,d){this.fn=s,this.context=c,this.once=d||!1}function u(s,c,d,y,A){if(typeof d!="function")throw new TypeError("The listener must be a function");var C=new i(d,y||s,A),T=r?r+c:c;return s._events[T]?s._events[T].fn?s._events[T]=[s._events[T],C]:s._events[T].push(C):(s._events[T]=C,s._eventsCount++),s}function a(s,c){--s._eventsCount===0?s._events=new n:delete s._events[c]}function o(){this._events=new n,this._eventsCount=0}o.prototype.eventNames=function(){var c=[],d,y;if(this._eventsCount===0)return c;for(y in d=this._events)e.call(d,y)&&c.push(r?y.slice(1):y);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(d)):c},o.prototype.listeners=function(c){var d=r?r+c:c,y=this._events[d];if(!y)return[];if(y.fn)return[y.fn];for(var A=0,C=y.length,T=new Array(C);Ae),this.eth_accounts=jest.fn(e=>e),this.eth_requestAccounts=jest.fn(e=>e)}request(e){if(!this.chainId)return Promise.reject(new Error);switch(e.method){case"eth_chainId":return Promise.resolve(this.eth_chainId(this.chainId));case"eth_accounts":return Promise.resolve(this.eth_accounts(this.accounts));case"eth_requestAccounts":return Promise.resolve(this.eth_requestAccounts(this.accounts));default:throw new Error(`Method not supported on mock: ${JSON.stringify(e)}`)}}emitConnect(e){this.emit("connect",{chainId:e})}emitDisconnect(e){this.emit("disconnect",e)}emitChainChanged(e){this.emit("chainChanged",e)}emitAccountsChanged(e){this.emit("accountsChanged",e)}}L8.MockEIP1193Provider=pF;var J6={},bF=y1&&y1.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),mF=y1&&y1.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),yF=y1&&y1.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&bF(e,t,r);return mF(e,t),e};Object.defineProperty(J6,"__esModule",{value:!0});J6.useWeb3React=J6.Web3ReactProvider=void 0;const X9=yF(f0),gF=Vr,Np=(0,X9.createContext)(void 0);function xF({children:t,connectors:e,connectorOverride:r,network:n,lookupENS:i=!0}){const u=(0,X9.useRef)(e);if(e.length!=u.current.length||e.some((d0,c0)=>{const h0=u.current[c0];return d0[0]!==h0[0]}))throw new Error("The connectors prop passed to Web3ReactProvider must be referentially static. If connectors is changing, try providing a key prop to Web3ReactProvider that changes every time connectors changes.");const a=(0,gF.getPriorityConnector)(...e),{usePriorityConnector:o,useSelectedChainId:s,useSelectedAccounts:c,useSelectedIsActivating:d,useSelectedAccount:y,useSelectedIsActive:A,useSelectedProvider:C,useSelectedENSNames:T,useSelectedENSName:U}=a,P=o(),_=r??P,B=s(_),N=c(_),W=d(_),G=y(_),t0=A(_),Z=C(_,n),e0=T(_,i?Z:void 0),o0=U(_,i?Z:void 0);return X9.default.createElement(Np.Provider,{value:{connector:_,chainId:B,accounts:N,isActivating:W,account:G,isActive:t0,provider:Z,ENSNames:e0,ENSName:o0,hooks:a}},t)}J6.Web3ReactProvider=xF;function vF(){const t=(0,X9.useContext)(Np);if(!t)throw Error("useWeb3React can only be used within the Web3ReactProvider component");return t}J6.useWeb3React=vF;(function(t){var e=y1&&y1.__createBinding||(Object.create?function(n,i,u,a){a===void 0&&(a=u);var o=Object.getOwnPropertyDescriptor(i,u);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[u]}}),Object.defineProperty(n,a,o)}:function(n,i,u,a){a===void 0&&(a=u),n[a]=i[u]}),r=y1&&y1.__exportStar||function(n,i){for(var u in n)u!=="default"&&!Object.prototype.hasOwnProperty.call(i,u)&&e(i,n,u)};Object.defineProperty(t,"__esModule",{value:!0}),r(Vr,t),r(L8,t),r(J6,t)})(D8);var Pu={},j8={};Object.defineProperty(j8,"__esModule",{value:!0});j8.Connector=void 0;class AF{constructor(e,r){this.actions=e,this.onError=r}resetState(){this.actions.resetState()}}j8.Connector=AF;var qa,qf;function wF(){if(qf)return qa;qf=1;function t({mustBeMetaMask:e=!1,silent:r=!1,timeout:n=3e3}={}){u();let i=!1;return new Promise(a=>{window.ethereum?o():(window.addEventListener("ethereum#initialized",o,{once:!0}),setTimeout(()=>{o()},n));function o(){if(i)return;i=!0,window.removeEventListener("ethereum#initialized",o);const{ethereum:s}=window;s&&(!e||s.isMetaMask)?a(s):(!r&&console.error("@metamask/detect-provider:",e&&s?"Non-MetaMask window.ethereum detected.":"Unable to detect window.ethereum."),a(null))}});function u(){if(typeof e!="boolean")throw new Error("@metamask/detect-provider: Expected option 'mustBeMetaMask' to be a boolean.");if(typeof r!="boolean")throw new Error("@metamask/detect-provider: Expected option 'silent' to be a boolean.");if(typeof n!="number")throw new Error("@metamask/detect-provider: Expected option 'timeout' to be a number.")}}return qa=t,qa}var EF=y1&&y1.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),CF=y1&&y1.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),FF=y1&&y1.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&EF(e,t,r);return CF(e,t),e},Xn=y1&&y1.__awaiter||function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(Pu,"__esModule",{value:!0});var Mp=Pu.MetaMask=Pu.NoMetaMaskError=void 0;const BF=j8;class Nu extends Error{constructor(){super("MetaMask not installed"),this.name=Nu.name,Object.setPrototypeOf(this,Nu.prototype)}}Pu.NoMetaMaskError=Nu;function N5(t){return Number.parseInt(t,16)}class DF extends BF.Connector{constructor({actions:e,options:r,onError:n}){super(e,n),this.options=r}isomorphicInitialize(){return Xn(this,void 0,void 0,function*(){if(!this.eagerConnection)return this.eagerConnection=Promise.resolve().then(()=>FF(wF())).then(e=>Xn(this,void 0,void 0,function*(){var r,n;const i=yield e.default(this.options);i&&(this.provider=i,!((r=this.provider.providers)===null||r===void 0)&&r.length&&(this.provider=(n=this.provider.providers.find(u=>u.isMetaMask))!==null&&n!==void 0?n:this.provider.providers[0]),this.provider.on("connect",({chainId:u})=>{this.actions.update({chainId:N5(u)})}),this.provider.on("disconnect",u=>{var a;if(u.code===1013){console.debug('MetaMask logged connection error 1013: "Try again later"');return}this.actions.resetState(),(a=this.onError)===null||a===void 0||a.call(this,u)}),this.provider.on("chainChanged",u=>{this.actions.update({chainId:N5(u)})}),this.provider.on("accountsChanged",u=>{u.length===0?this.actions.resetState():this.actions.update({accounts:u})}))}))})}connectEagerly(){return Xn(this,void 0,void 0,function*(){const e=this.actions.startActivation();try{if(yield this.isomorphicInitialize(),!this.provider)return e();const r=yield this.provider.request({method:"eth_accounts"});if(!r.length)throw new Error("No accounts returned");const n=yield this.provider.request({method:"eth_chainId"});this.actions.update({chainId:N5(n),accounts:r})}catch(r){console.debug("Could not connect eagerly",r),this.actions.resetState()}})}activate(e){var r,n;return Xn(this,void 0,void 0,function*(){let i;return!((n=(r=this.provider)===null||r===void 0?void 0:r.isConnected)===null||n===void 0)&&n.call(r)||(i=this.actions.startActivation()),this.isomorphicInitialize().then(()=>Xn(this,void 0,void 0,function*(){if(!this.provider)throw new Nu;const u=yield this.provider.request({method:"eth_requestAccounts"}),a=yield this.provider.request({method:"eth_chainId"}),o=N5(a),s=typeof e=="number"?e:e==null?void 0:e.chainId;if(!s||o===s)return this.actions.update({chainId:o,accounts:u});const c=`0x${s.toString(16)}`;return this.provider.request({method:"wallet_switchEthereumChain",params:[{chainId:c}]}).catch(d=>{var y,A;if((((A=(y=d.data)===null||y===void 0?void 0:y.originalError)===null||A===void 0?void 0:A.code)||d.code)===4902&&typeof e!="number"){if(!this.provider)throw new Error("No provider");return this.provider.request({method:"wallet_addEthereumChain",params:[Object.assign(Object.assign({},e),{chainId:c})]})}throw d}).then(()=>this.activate(s))})).catch(u=>{throw i==null||i(),u})})}watchAsset({address:e,symbol:r,decimals:n,image:i}){return Xn(this,void 0,void 0,function*(){if(!this.provider)throw new Error("No provider");return this.provider.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:e,symbol:r,decimals:n,image:i}}}).then(u=>{if(!u)throw new Error("Rejected");return!0})})}}Mp=Pu.MetaMask=DF;const[j4,Ot]=D8.initializeConnector(t=>new Mp({actions:t}));var Q0=(t=>(t[t.LOCAL=1337]="LOCAL",t[t.MAINNET=1]="MAINNET",t[t.SEPOLIA=11155111]="SEPOLIA",t[t.OPTIMISM=10]="OPTIMISM",t[t.OPTIMISM_GOERLI=420]="OPTIMISM_GOERLI",t[t.GOERLI=5]="GOERLI",t))(Q0||{});const yn="0xaa36a7",R2="0xa",Z9="0x1",_F="11155111",Oi={[Q0.SEPOLIA]:"0x3807fBD692Aa5c96F1D8D7c59a1346a885F40B1C",[Q0.OPTIMISM]:"0xca5b5811c0C40aAB3295f932b1B5112Eb7bb4bD6"},M5={[Q0.SEPOLIA]:"0xC5a939923E0B336642024b479502E039338bEd00",[Q0.OPTIMISM]:"0x66929F55Ea1E38591f9430E5013C92cdC01F6cAd"},U5={[Q0.SEPOLIA]:"0x0635513f179D50A207757E05759CbD106d7dFcE8",[Q0.MAINNET]:"0xD4416b13d2b3a9aBae7AcD5D6C2BbDBE25686401"},I5={[Q0.SEPOLIA]:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",[Q0.MAINNET]:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},R5={[Q0.SEPOLIA]:"0xD4583DFd73B382B7e3230aa29Be774C1843FB7d2",[Q0.GOERLI]:"0xD4583DFd73B382B7e3230aa29Be774C1843FB7d2",[Q0.MAINNET]:"0xa1F47fBBa93574DB4a049C1c5bA03471A21EE01D"},O5={[Q0.SEPOLIA]:"0x528bA1BA3186d8CABD2c4E8758a98fAf64eD8Af0",[Q0.OPTIMISM]:"0x0b35664aB5950cE92bce7222be165BB575D9b7c5"},e5="abi/5.7.0",C1=new r0(e5),Pn={};let Hf={calldata:!0,memory:!0,storage:!0},kF={calldata:!0,memory:!0};function L5(t,e){if(t==="bytes"||t==="string"){if(Hf[e])return!0}else if(t==="address"){if(e==="payable")return!0}else if((t.indexOf("[")>=0||t==="tuple")&&kF[e])return!0;return(Hf[e]||e==="payable")&&C1.throwArgumentError("invalid modifier","name",e),!1}function SF(t,e){let r=t;function n(o){C1.throwArgumentError(`unexpected character at position ${o}`,"param",t)}t=t.replace(/\s/g," ");function i(o){let s={type:"",name:"",parent:o,state:{allowType:!0}};return e&&(s.indexed=!1),s}let u={type:"",name:"",state:{allowType:!0}},a=u;for(let o=0;oJSON.parse(i.format(e)))),JSON.stringify(n)}let r="";return this.baseType==="array"?(r+=this.arrayChildren.format(e),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(e!==_1.sighash&&(r+=this.type),r+="("+this.components.map(n=>n.format(e)).join(e===_1.full?", ":",")+")"):r+=this.type,e!==_1.sighash&&(this.indexed===!0&&(r+=" indexed"),e===_1.full&&this.name&&(r+=" "+this.name)),r}static from(e,r){return typeof e=="string"?he.fromString(e,r):he.fromObject(e)}static fromObject(e){return he.isParamType(e)?e:new he(Pn,{name:e.name||null,type:n6(e.type),indexed:e.indexed==null?null:!!e.indexed,components:e.components?e.components.map(he.fromObject):null})}static fromString(e,r){function n(i){return he.fromObject({name:i.name,type:i.type,indexed:i.indexed,components:i.components})}return n(SF(e,!!r))}static isParamType(e){return!!(e!=null&&e._isParamType)}}function Mu(t,e){return NF(t).map(r=>he.fromString(r,e))}class br{constructor(e,r){e!==Pn&&C1.throwError("use a static from method",r0.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),m9(this,r),this._isFragment=!0,Object.freeze(this)}static from(e){return br.isFragment(e)?e:typeof e=="string"?br.fromString(e):br.fromObject(e)}static fromObject(e){if(br.isFragment(e))return e;switch(e.type){case"function":return Jt.fromObject(e);case"event":return hr.fromObject(e);case"constructor":return Vt.fromObject(e);case"error":return $r.fromObject(e);case"fallback":case"receive":return null}return C1.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return e=e.replace(/\s/g," "),e=e.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),e=e.trim(),e.split(" ")[0]==="event"?hr.fromString(e.substring(5).trim()):e.split(" ")[0]==="function"?Jt.fromString(e.substring(8).trim()):e.split("(")[0].trim()==="constructor"?Vt.fromString(e.trim()):e.split(" ")[0]==="error"?$r.fromString(e.substring(5).trim()):C1.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class hr extends br{format(e){if(e||(e=_1.sighash),_1[e]||C1.throwArgumentError("invalid format type","format",e),e===_1.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==_1.sighash&&(r+="event "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===_1.full?", ":",")+") ",e!==_1.sighash&&this.anonymous&&(r+="anonymous "),r.trim()}static from(e){return typeof e=="string"?hr.fromString(e):hr.fromObject(e)}static fromObject(e){if(hr.isEventFragment(e))return e;e.type!=="event"&&C1.throwArgumentError("invalid event object","value",e);const r={name:Uu(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(he.fromObject):[],type:"event"};return new hr(Pn,r)}static fromString(e){let r=e.match(Iu);r||C1.throwArgumentError("invalid event string","value",e);let n=!1;return r[3].split(" ").forEach(i=>{switch(i.trim()){case"anonymous":n=!0;break;case"":break;default:C1.warn("unknown modifier: "+i)}}),hr.fromObject({name:r[1].trim(),anonymous:n,inputs:Mu(r[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&e.type==="event"}}function Up(t,e){e.gas=null;let r=t.split("@");return r.length!==1?(r.length>2&&C1.throwArgumentError("invalid human-readable ABI signature","value",t),r[1].match(/^[0-9]+$/)||C1.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=P0.from(r[1]),r[0]):t}function Ip(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach(r=>{switch(r.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+r)}})}function Rp(t){let e={constant:!1,payable:!0,stateMutability:"payable"};return t.stateMutability!=null?(e.stateMutability=t.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",t.constant!=null&&!!t.constant!==e.constant&&C1.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable=e.stateMutability==="payable",t.payable!=null&&!!t.payable!==e.payable&&C1.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):t.payable!=null?(e.payable=!!t.payable,t.constant==null&&!e.payable&&t.type!=="constructor"&&C1.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&C1.throwArgumentError("cannot have constant payable function","value",t)):t.constant!=null?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):t.type!=="constructor"&&C1.throwArgumentError("unable to determine stateMutability","value",t),e}class Vt extends br{format(e){if(e||(e=_1.sighash),_1[e]||C1.throwArgumentError("invalid format type","format",e),e===_1.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});e===_1.sighash&&C1.throwError("cannot format a constructor for sighash",r0.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let r="constructor("+this.inputs.map(n=>n.format(e)).join(e===_1.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "),r.trim()}static from(e){return typeof e=="string"?Vt.fromString(e):Vt.fromObject(e)}static fromObject(e){if(Vt.isConstructorFragment(e))return e;e.type!=="constructor"&&C1.throwArgumentError("invalid constructor object","value",e);let r=Rp(e);r.constant&&C1.throwArgumentError("constructor cannot be constant","value",e);const n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(he.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?P0.from(e.gas):null};return new Vt(Pn,n)}static fromString(e){let r={type:"constructor"};e=Up(e,r);let n=e.match(Iu);return(!n||n[1].trim()!=="constructor")&&C1.throwArgumentError("invalid constructor string","value",e),r.inputs=Mu(n[2].trim(),!1),Ip(n[3].trim(),r),Vt.fromObject(r)}static isConstructorFragment(e){return e&&e._isFragment&&e.type==="constructor"}}class Jt extends Vt{format(e){if(e||(e=_1.sighash),_1[e]||C1.throwArgumentError("invalid format type","format",e),e===_1.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?this.gas.toNumber():void 0,inputs:this.inputs.map(n=>JSON.parse(n.format(e))),outputs:this.outputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==_1.sighash&&(r+="function "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===_1.full?", ":",")+") ",e!==_1.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "):this.constant&&(r+="view "),this.outputs&&this.outputs.length&&(r+="returns ("+this.outputs.map(n=>n.format(e)).join(", ")+") "),this.gas!=null&&(r+="@"+this.gas.toString()+" ")),r.trim()}static from(e){return typeof e=="string"?Jt.fromString(e):Jt.fromObject(e)}static fromObject(e){if(Jt.isFunctionFragment(e))return e;e.type!=="function"&&C1.throwArgumentError("invalid function object","value",e);let r=Rp(e);const n={type:e.type,name:Uu(e.name),constant:r.constant,inputs:e.inputs?e.inputs.map(he.fromObject):[],outputs:e.outputs?e.outputs.map(he.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?P0.from(e.gas):null};return new Jt(Pn,n)}static fromString(e){let r={type:"function"};e=Up(e,r);let n=e.split(" returns ");n.length>2&&C1.throwArgumentError("invalid function string","value",e);let i=n[0].match(Iu);if(i||C1.throwArgumentError("invalid function signature","value",e),r.name=i[1].trim(),r.name&&Uu(r.name),r.inputs=Mu(i[2],!1),Ip(i[3].trim(),r),n.length>1){let u=n[1].match(Iu);(u[1].trim()!=""||u[3].trim()!="")&&C1.throwArgumentError("unexpected tokens","value",e),r.outputs=Mu(u[2],!1)}else r.outputs=[];return Jt.fromObject(r)}static isFunctionFragment(e){return e&&e._isFragment&&e.type==="function"}}function Kf(t){const e=t.format();return(e==="Error(string)"||e==="Panic(uint256)")&&C1.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class $r extends br{format(e){if(e||(e=_1.sighash),_1[e]||C1.throwArgumentError("invalid format type","format",e),e===_1.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==_1.sighash&&(r+="error "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===_1.full?", ":",")+") ",r.trim()}static from(e){return typeof e=="string"?$r.fromString(e):$r.fromObject(e)}static fromObject(e){if($r.isErrorFragment(e))return e;e.type!=="error"&&C1.throwArgumentError("invalid error object","value",e);const r={type:e.type,name:Uu(e.name),inputs:e.inputs?e.inputs.map(he.fromObject):[]};return Kf(new $r(Pn,r))}static fromString(e){let r={type:"error"},n=e.match(Iu);return n||C1.throwArgumentError("invalid error signature","value",e),r.name=n[1].trim(),r.name&&Uu(r.name),r.inputs=Mu(n[2],!1),Kf($r.fromObject(r))}static isErrorFragment(e){return e&&e._isFragment&&e.type==="error"}}function n6(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const PF=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function Uu(t){return(!t||!t.match(PF))&&C1.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const Iu=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function NF(t){t=t.trim();let e=[],r="",n=0;for(let i=0;ithis.wordSize&&z4.throwError("value out-of-bounds",r0.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:r.length}),r.length%this.wordSize&&(r=L1([this._padding.slice(r.length%this.wordSize),r])),r}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,r=>{this._data[e]=this._getValue(r)}}}class e8{constructor(e,r,n,i){b0(this,"_data",k0(e)),b0(this,"wordSize",r||32),b0(this,"_coerceFunc",n),b0(this,"allowLoose",i),this._offset=0}get data(){return N0(this._data)}get consumed(){return this._offset}static coerce(e,r){let n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(r=r.toNumber()),r}coerce(e,r){return this._coerceFunc?this._coerceFunc(e,r):e8.coerce(e,r)}_peekBytes(e,r,n){let i=Math.ceil(r/this.wordSize)*this.wordSize;return this._offset+i>this._data.length&&(this.allowLoose&&n&&this._offset+r<=this._data.length?i=r:z4.throwError("data out-of-bounds",r0.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+i})),this._data.slice(this._offset,this._offset+i)}subReader(e){return new e8(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,r){let n=this._peekBytes(0,e,!!r);return this._offset+=n.length,n.slice(0,e)}readValue(){return P0.from(this.readBytes(this.wordSize))}}class MF extends a2{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,r){try{r=I1(r)}catch(n){this._throwError(n.message,r)}return e.writeValue(r)}decode(e){return I1(j1(e.readValue().toHexString(),20))}}class UF extends a2{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,r){return this.coder.encode(e,r)}decode(e){return this.coder.decode(e)}}const w6=new r0(e5);function Lp(t,e,r){let n=null;if(Array.isArray(r))n=r;else if(r&&typeof r=="object"){let s={};n=e.map(c=>{const d=c.localName;return d||w6.throwError("cannot encode object for signature with missing names",r0.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),s[d]&&w6.throwError("cannot encode object for signature with duplicate names",r0.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),s[d]=!0,r[d]})}else w6.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&w6.throwArgumentError("types/value length mismatch","tuple",r);let i=new ls(t.wordSize),u=new ls(t.wordSize),a=[];e.forEach((s,c)=>{let d=n[c];if(s.dynamic){let y=u.length;s.encode(u,d);let A=i.writeUpdatableValue();a.push(C=>{A(C+y)})}else s.encode(i,d)}),a.forEach(s=>{s(i.length)});let o=t.appendWriter(i);return o+=t.appendWriter(u),o}function jp(t,e){let r=[],n=t.subReader(0);e.forEach(u=>{let a=null;if(u.dynamic){let o=t.readValue(),s=n.subReader(o.toNumber());try{a=u.decode(s)}catch(c){if(c.code===r0.errors.BUFFER_OVERRUN)throw c;a=c,a.baseType=u.name,a.name=u.localName,a.type=u.type}}else try{a=u.decode(t)}catch(o){if(o.code===r0.errors.BUFFER_OVERRUN)throw o;a=o,a.baseType=u.name,a.name=u.localName,a.type=u.type}a!=null&&r.push(a)});const i=e.reduce((u,a)=>{const o=a.localName;return o&&(u[o]||(u[o]=0),u[o]++),u},{});e.forEach((u,a)=>{let o=u.localName;if(!o||i[o]!==1||(o==="length"&&(o="_length"),r[o]!=null))return;const s=r[a];s instanceof Error?Object.defineProperty(r,o,{enumerable:!0,get:()=>{throw s}}):r[o]=s});for(let u=0;u{throw a}})}return Object.freeze(r)}class IF extends a2{constructor(e,r,n){const i=e.type+"["+(r>=0?r:"")+"]",u=r===-1||e.dynamic;super("array",i,n,u),this.coder=e,this.length=r}defaultValue(){const e=this.coder.defaultValue(),r=[];for(let n=0;ne._data.length&&w6.throwError("insufficient data length",r0.errors.BUFFER_OVERRUN,{length:e._data.length,count:r}));let n=[];for(let i=0;i{a.dynamic&&(n=!0),i.push(a.type)});const u="tuple("+i.join(",")+")";super("tuple",u,r,n),this.coders=e}defaultValue(){const e=[];this.coders.forEach(n=>{e.push(n.defaultValue())});const r=this.coders.reduce((n,i)=>{const u=i.localName;return u&&(n[u]||(n[u]=0),n[u]++),n},{});return this.coders.forEach((n,i)=>{let u=n.localName;!u||r[u]!==1||(u==="length"&&(u="_length"),e[u]==null&&(e[u]=e[i]))}),Object.freeze(e)}encode(e,r){return Lp(e,this.coders,r)}decode(e){return e.coerce(this.name,jp(e,this.coders))}}const z5=new r0(e5),qF=new RegExp(/^bytes([0-9]*)$/),HF=new RegExp(/^(u?int)([0-9]*)$/);class $p{constructor(e){b0(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new MF(e.name);case"bool":return new RF(e.name);case"string":return new $F(e.name);case"bytes":return new OF(e.name);case"array":return new IF(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new j5((e.components||[]).map(n=>this._getCoder(n)),e.name);case"":return new jF(e.name)}let r=e.type.match(HF);if(r){let n=parseInt(r[2]||"256");return(n===0||n>256||n%8!==0)&&z5.throwArgumentError("invalid "+r[1]+" bit length","param",e),new zF(n/8,r[1]==="int",e.name)}if(r=e.type.match(qF),r){let n=parseInt(r[1]);return(n===0||n>32)&&z5.throwArgumentError("invalid bytes length","param",e),new LF(n,e.name)}return z5.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,r){return new e8(e,this._getWordSize(),this.coerceFunc,r)}_getWriter(){return new ls(this._getWordSize())}getDefaultValue(e){const r=e.map(i=>this._getCoder(he.from(i)));return new j5(r,"_").defaultValue()}encode(e,r){e.length!==r.length&&z5.throwError("types/values length mismatch",r0.errors.INVALID_ARGUMENT,{count:{types:e.length,values:r.length},value:{types:e,values:r}});const n=e.map(a=>this._getCoder(he.from(a))),i=new j5(n,"_"),u=this._getWriter();return i.encode(u,r),u.data}decode(e,r,n){const i=e.map(a=>this._getCoder(he.from(a)));return new j5(i,"_").decode(this._getReader(k0(r),n))}}const qp=new $p,V1=new r0(e5);class Hp extends Q2{}class Kp extends Q2{}class KF extends Q2{}class t8 extends Q2{static isIndexed(e){return!!(e&&e._isIndexed)}}const GF={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function Gf(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);return r.error=e,r}class t2{constructor(e){let r=[];typeof e=="string"?r=JSON.parse(e):r=e,b0(this,"fragments",r.map(n=>br.from(n)).filter(n=>n!=null)),b0(this,"_abiCoder",De(new.target,"getAbiCoder")()),b0(this,"functions",{}),b0(this,"errors",{}),b0(this,"events",{}),b0(this,"structs",{}),this.fragments.forEach(n=>{let i=null;switch(n.type){case"constructor":if(this.deploy){V1.warn("duplicate definition - constructor");return}b0(this,"deploy",n);return;case"function":i=this.functions;break;case"event":i=this.events;break;case"error":i=this.errors;break;default:return}let u=n.format();if(i[u]){V1.warn("duplicate definition - "+u);return}i[u]=n}),this.deploy||b0(this,"deploy",Vt.from({payable:!1,type:"constructor"})),b0(this,"_isInterface",!0)}format(e){e||(e=_1.full),e===_1.sighash&&V1.throwArgumentError("interface does not support formatting sighash","format",e);const r=this.fragments.map(n=>n.format(e));return e===_1.json?JSON.stringify(r.map(n=>JSON.parse(n))):r}static getAbiCoder(){return qp}static getAddress(e){return I1(e)}static getSighash(e){return ue(F2(e.format()),0,4)}static getEventTopic(e){return F2(e.format())}getFunction(e){if(s1(e)){for(const n in this.functions)if(e===this.getSighash(n))return this.functions[n];V1.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.functions).filter(u=>u.split("(")[0]===n);return i.length===0?V1.throwArgumentError("no matching function","name",n):i.length>1&&V1.throwArgumentError("multiple matching functions","name",n),this.functions[i[0]]}const r=this.functions[Jt.fromString(e).format()];return r||V1.throwArgumentError("no matching function","signature",e),r}getEvent(e){if(s1(e)){const n=e.toLowerCase();for(const i in this.events)if(n===this.getEventTopic(i))return this.events[i];V1.throwArgumentError("no matching event","topichash",n)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.events).filter(u=>u.split("(")[0]===n);return i.length===0?V1.throwArgumentError("no matching event","name",n):i.length>1&&V1.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}const r=this.events[hr.fromString(e).format()];return r||V1.throwArgumentError("no matching event","signature",e),r}getError(e){if(s1(e)){const n=De(this.constructor,"getSighash");for(const i in this.errors){const u=this.errors[i];if(e===n(u))return this.errors[i]}V1.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.errors).filter(u=>u.split("(")[0]===n);return i.length===0?V1.throwArgumentError("no matching error","name",n):i.length>1&&V1.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}const r=this.errors[Jt.fromString(e).format()];return r||V1.throwArgumentError("no matching error","signature",e),r}getSighash(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(r){try{e=this.getError(e)}catch{throw r}}return De(this.constructor,"getSighash")(e)}getEventTopic(e){return typeof e=="string"&&(e=this.getEvent(e)),De(this.constructor,"getEventTopic")(e)}_decodeParams(e,r){return this._abiCoder.decode(e,r)}_encodeParams(e,r){return this._abiCoder.encode(e,r)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,r){typeof e=="string"&&(e=this.getError(e));const n=k0(r);return N0(n.slice(0,4))!==this.getSighash(e)&&V1.throwArgumentError(`data signature does not match error ${e.name}.`,"data",N0(n)),this._decodeParams(e.inputs,n.slice(4))}encodeErrorResult(e,r){return typeof e=="string"&&(e=this.getError(e)),N0(L1([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionData(e,r){typeof e=="string"&&(e=this.getFunction(e));const n=k0(r);return N0(n.slice(0,4))!==this.getSighash(e)&&V1.throwArgumentError(`data signature does not match function ${e.name}.`,"data",N0(n)),this._decodeParams(e.inputs,n.slice(4))}encodeFunctionData(e,r){return typeof e=="string"&&(e=this.getFunction(e)),N0(L1([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionResult(e,r){typeof e=="string"&&(e=this.getFunction(e));let n=k0(r),i=null,u="",a=null,o=null,s=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch{}break;case 4:{const c=N0(n.slice(0,4)),d=GF[c];if(d)a=this._abiCoder.decode(d.inputs,n.slice(4)),o=d.name,s=d.signature,d.reason&&(i=a[0]),o==="Error"?u=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(a[0])}`:o==="Panic"&&(u=`; VM Exception while processing transaction: reverted with panic code ${a[0]}`);else try{const y=this.getError(c);a=this._abiCoder.decode(y.inputs,n.slice(4)),o=y.name,s=y.format()}catch{}break}}return V1.throwError("call revert exception"+u,r0.errors.CALL_EXCEPTION,{method:e.format(),data:N0(r),errorArgs:a,errorName:o,errorSignature:s,reason:i})}encodeFunctionResult(e,r){return typeof e=="string"&&(e=this.getFunction(e)),N0(this._abiCoder.encode(e.outputs,r||[]))}encodeFilterTopics(e,r){typeof e=="string"&&(e=this.getEvent(e)),r.length>e.inputs.length&&V1.throwError("too many arguments for "+e.format(),r0.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:r});let n=[];e.anonymous||n.push(this.getEventTopic(e));const i=(u,a)=>u.type==="string"?F2(a):u.type==="bytes"?O1(N0(a)):(u.type==="bool"&&typeof a=="boolean"&&(a=a?"0x01":"0x00"),u.type.match(/^u?int/)&&(a=P0.from(a).toHexString()),u.type==="address"&&this._abiCoder.encode(["address"],[a]),j1(N0(a),32));for(r.forEach((u,a)=>{let o=e.inputs[a];if(!o.indexed){u!=null&&V1.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,u);return}u==null?n.push(null):o.baseType==="array"||o.baseType==="tuple"?V1.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,u):Array.isArray(u)?n.push(u.map(s=>i(o,s))):n.push(i(o,u))});n.length&&n[n.length-1]===null;)n.pop();return n}encodeEventLog(e,r){typeof e=="string"&&(e=this.getEvent(e));const n=[],i=[],u=[];return e.anonymous||n.push(this.getEventTopic(e)),r.length!==e.inputs.length&&V1.throwArgumentError("event arguments/values mismatch","values",r),e.inputs.forEach((a,o)=>{const s=r[o];if(a.indexed)if(a.type==="string")n.push(F2(s));else if(a.type==="bytes")n.push(O1(s));else{if(a.baseType==="tuple"||a.baseType==="array")throw new Error("not implemented");n.push(this._abiCoder.encode([a.type],[s]))}else i.push(a),u.push(s)}),{data:this._abiCoder.encode(i,u),topics:n}}decodeEventLog(e,r,n){if(typeof e=="string"&&(e=this.getEvent(e)),n!=null&&!e.anonymous){let A=this.getEventTopic(e);(!s1(n[0],32)||n[0].toLowerCase()!==A)&&V1.throwError("fragment/topic mismatch",r0.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:A,value:n[0]}),n=n.slice(1)}let i=[],u=[],a=[];e.inputs.forEach((A,C)=>{A.indexed?A.type==="string"||A.type==="bytes"||A.baseType==="tuple"||A.baseType==="array"?(i.push(he.fromObject({type:"bytes32",name:A.name})),a.push(!0)):(i.push(A),a.push(!1)):(u.push(A),a.push(!1))});let o=n!=null?this._abiCoder.decode(i,L1(n)):null,s=this._abiCoder.decode(u,r,!0),c=[],d=0,y=0;e.inputs.forEach((A,C)=>{if(A.indexed)if(o==null)c[C]=new t8({_isIndexed:!0,hash:null});else if(a[C])c[C]=new t8({_isIndexed:!0,hash:o[y++]});else try{c[C]=o[y++]}catch(T){c[C]=T}else try{c[C]=s[d++]}catch(T){c[C]=T}if(A.name&&c[A.name]==null){const T=c[C];T instanceof Error?Object.defineProperty(c,A.name,{enumerable:!0,get:()=>{throw Gf(`property ${JSON.stringify(A.name)}`,T)}}):c[A.name]=T}});for(let A=0;A{throw Gf(`index ${A}`,C)}})}return Object.freeze(c)}parseTransaction(e){let r=this.getFunction(e.data.substring(0,10).toLowerCase());return r?new Kp({args:this._abiCoder.decode(r.inputs,"0x"+e.data.substring(10)),functionFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r),value:P0.from(e.value||"0")}):null}parseLog(e){let r=this.getEvent(e.topics[0]);return!r||r.anonymous?null:new Hp({eventFragment:r,name:r.name,signature:r.format(),topic:this.getEventTopic(r),args:this.decodeEventLog(r,e.data,e.topics)})}parseError(e){const r=N0(e);let n=this.getError(r.substring(0,10).toLowerCase());return n?new KF({args:this._abiCoder.decode(n.inputs,"0x"+r.substring(10)),errorFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n)}):null}static isInterface(e){return!!(e&&e._isInterface)}}const WF=Object.freeze(Object.defineProperty({__proto__:null,AbiCoder:$p,ConstructorFragment:Vt,ErrorFragment:$r,EventFragment:hr,FormatTypes:_1,Fragment:br,FunctionFragment:Jt,Indexed:t8,Interface:t2,LogDescription:Hp,ParamType:he,TransactionDescription:Kp,checkResultErrors:Op,defaultAbiCoder:qp},Symbol.toStringTag,{value:"Module"})),VF="contracts/5.7.0";var $2=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const R1=new r0(VF),JF={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function r8(t,e){return $2(this,void 0,void 0,function*(){const r=yield e;typeof r!="string"&&R1.throwArgumentError("invalid address or ENS name","name",r);try{return I1(r)}catch{}t||R1.throwError("a provider or signer is needed to resolve ENS names",r0.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield t.resolveName(r);return n==null&&R1.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n})}function Zi(t,e,r){return $2(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((n,i)=>Zi(t,Array.isArray(e)?e[i]:e[n.name],n))):r.type==="address"?yield r8(t,e):r.type==="tuple"?yield Zi(t,e,r.components):r.baseType==="array"?Array.isArray(e)?yield Promise.all(e.map(n=>Zi(t,n,r.arrayChildren))):Promise.reject(R1.makeError("invalid value for array",r0.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e})}function z8(t,e,r){return $2(this,void 0,void 0,function*(){let n={};r.length===e.inputs.length+1&&typeof r[r.length-1]=="object"&&(n=q1(r.pop())),R1.checkArgumentCount(r.length,e.inputs.length,"passed to contract"),t.signer?n.from?n.from=te({override:r8(t.signer,n.from),signer:t.signer.getAddress()}).then(c=>$2(this,void 0,void 0,function*(){return I1(c.signer)!==c.override&&R1.throwError("Contract with a Signer cannot override from",r0.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),c.override})):n.from=t.signer.getAddress():n.from&&(n.from=r8(t.provider,n.from));const i=yield te({args:Zi(t.signer||t.provider,r,e.inputs),address:t.resolvedAddress,overrides:te(n)||{}}),u=t.interface.encodeFunctionData(e,i.args),a={data:u,to:i.address},o=i.overrides;if(o.nonce!=null&&(a.nonce=P0.from(o.nonce).toNumber()),o.gasLimit!=null&&(a.gasLimit=P0.from(o.gasLimit)),o.gasPrice!=null&&(a.gasPrice=P0.from(o.gasPrice)),o.maxFeePerGas!=null&&(a.maxFeePerGas=P0.from(o.maxFeePerGas)),o.maxPriorityFeePerGas!=null&&(a.maxPriorityFeePerGas=P0.from(o.maxPriorityFeePerGas)),o.from!=null&&(a.from=o.from),o.type!=null&&(a.type=o.type),o.accessList!=null&&(a.accessList=Z2(o.accessList)),a.gasLimit==null&&e.gas!=null){let c=21e3;const d=k0(u);for(let y=0;yn[c]!=null);return s.length&&R1.throwError(`cannot override ${s.map(c=>JSON.stringify(c)).join(",")}`,r0.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:s}),a})}function QF(t,e){return function(...r){return z8(t,e,r)}}function YF(t,e){const r=t.signer||t.provider;return function(...n){return $2(this,void 0,void 0,function*(){r||R1.throwError("estimate require a provider or signer",r0.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield z8(t,e,n);return yield r.estimateGas(i)})}}function Gp(t,e){const r=e.wait.bind(e);e.wait=n=>r(n).then(i=>(i.events=i.logs.map(u=>{let a=Qe(u),o=null;try{o=t.interface.parseLog(u)}catch{}return o&&(a.args=o.args,a.decode=(s,c)=>t.interface.decodeEventLog(o.eventFragment,s,c),a.event=o.name,a.eventSignature=o.signature),a.removeListener=()=>t.provider,a.getBlock=()=>t.provider.getBlock(i.blockHash),a.getTransaction=()=>t.provider.getTransaction(i.transactionHash),a.getTransactionReceipt=()=>Promise.resolve(i),a}),i))}function Wp(t,e,r){const n=t.signer||t.provider;return function(...i){return $2(this,void 0,void 0,function*(){let u;if(i.length===e.inputs.length+1&&typeof i[i.length-1]=="object"){const s=q1(i.pop());s.blockTag!=null&&(u=yield s.blockTag),delete s.blockTag,i.push(s)}t.deployTransaction!=null&&(yield t._deployed(u));const a=yield z8(t,e,i),o=yield n.call(a,u);try{let s=t.interface.decodeFunctionResult(e,o);return r&&e.outputs.length===1&&(s=s[0]),s}catch(s){throw s.code===r0.errors.CALL_EXCEPTION&&(s.address=t.address,s.args=i,s.transaction=a),s}})}}function XF(t,e){return function(...r){return $2(this,void 0,void 0,function*(){t.signer||R1.throwError("sending a transaction requires a signer",r0.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),t.deployTransaction!=null&&(yield t._deployed());const n=yield z8(t,e,r),i=yield t.signer.sendTransaction(n);return Gp(t,i),i})}}function Wf(t,e,r){return e.constant?Wp(t,e,r):XF(t,e)}function Vp(t){return t.address&&(t.topics==null||t.topics.length===0)?"*":(t.address||"*")+"@"+(t.topics?t.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):"")}class Ru{constructor(e,r){b0(this,"tag",e),b0(this,"filter",r),this._listeners=[]}addListener(e,r){this._listeners.push({listener:e,once:r})}removeListener(e){let r=!1;this._listeners=this._listeners.filter(n=>r||n.listener!==e?!0:(r=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){const r=this.listenerCount();return this._listeners=this._listeners.filter(n=>{const i=e.slice();return setTimeout(()=>{n.listener.apply(this,i)},0),!n.once}),r}prepareEvent(e){}getEmit(e){return[e]}}class ZF extends Ru{constructor(){super("error",null)}}class Vf extends Ru{constructor(e,r,n,i){const u={address:e};let a=r.getEventTopic(n);i?(a!==i[0]&&R1.throwArgumentError("topic mismatch","topics",i),u.topics=i.slice()):u.topics=[a],super(Vp(u),u),b0(this,"address",e),b0(this,"interface",r),b0(this,"fragment",n)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(r,n)=>this.interface.decodeEventLog(this.fragment,r,n);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(r){e.args=null,e.decodeError=r}}getEmit(e){const r=Op(e.args);if(r.length)throw r[0].error;const n=(e.args||[]).slice();return n.push(e),n}}class Jf extends Ru{constructor(e,r){super("*",{address:e}),b0(this,"address",e),b0(this,"interface",r)}prepareEvent(e){super.prepareEvent(e);try{const r=this.interface.parseLog(e);e.event=r.name,e.eventSignature=r.signature,e.decode=(n,i)=>this.interface.decodeEventLog(r.eventFragment,n,i),e.args=r.args}catch{}}}class eB{constructor(e,r,n){b0(this,"interface",De(new.target,"getInterface")(r)),n==null?(b0(this,"provider",null),b0(this,"signer",null)):Ln.isSigner(n)?(b0(this,"provider",n.provider||null),b0(this,"signer",n)):Rn.isProvider(n)?(b0(this,"provider",n),b0(this,"signer",null)):R1.throwArgumentError("invalid signer or provider","signerOrProvider",n),b0(this,"callStatic",{}),b0(this,"estimateGas",{}),b0(this,"functions",{}),b0(this,"populateTransaction",{}),b0(this,"filters",{});{const a={};Object.keys(this.interface.events).forEach(o=>{const s=this.interface.events[o];b0(this.filters,o,(...c)=>({address:this.address,topics:this.interface.encodeFilterTopics(s,c)})),a[s.name]||(a[s.name]=[]),a[s.name].push(o)}),Object.keys(a).forEach(o=>{const s=a[o];s.length===1?b0(this.filters,o,this.filters[s[0]]):R1.warn(`Duplicate definition of ${o} (${s.join(", ")})`)})}if(b0(this,"_runningEvents",{}),b0(this,"_wrappedEmits",{}),e==null&&R1.throwArgumentError("invalid contract address or ENS name","addressOrName",e),b0(this,"address",e),this.provider)b0(this,"resolvedAddress",r8(this.provider,e));else try{b0(this,"resolvedAddress",Promise.resolve(I1(e)))}catch{R1.throwError("provider is required to use ENS name as contract address",r0.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(a=>{});const i={},u={};Object.keys(this.interface.functions).forEach(a=>{const o=this.interface.functions[a];if(u[a]){R1.warn(`Duplicate ABI entry for ${JSON.stringify(a)}`);return}u[a]=!0;{const s=o.name;i[`%${s}`]||(i[`%${s}`]=[]),i[`%${s}`].push(a)}this[a]==null&&b0(this,a,Wf(this,o,!0)),this.functions[a]==null&&b0(this.functions,a,Wf(this,o,!1)),this.callStatic[a]==null&&b0(this.callStatic,a,Wp(this,o,!0)),this.populateTransaction[a]==null&&b0(this.populateTransaction,a,QF(this,o)),this.estimateGas[a]==null&&b0(this.estimateGas,a,YF(this,o))}),Object.keys(i).forEach(a=>{const o=i[a];if(o.length>1)return;a=a.substring(1);const s=o[0];try{this[a]==null&&b0(this,a,this[s])}catch{}this.functions[a]==null&&b0(this.functions,a,this.functions[s]),this.callStatic[a]==null&&b0(this.callStatic,a,this.callStatic[s]),this.populateTransaction[a]==null&&b0(this.populateTransaction,a,this.populateTransaction[s]),this.estimateGas[a]==null&&b0(this.estimateGas,a,this.estimateGas[s])})}static getContractAddress(e){return k8(e)}static getInterface(e){return t2.isInterface(e)?e:new t2(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,e).then(r=>(r==="0x"&&R1.throwError("contract not deployed",r0.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||R1.throwError("sending a transactions require a signer",r0.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const r=q1(e||{});return["from","to"].forEach(function(n){r[n]!=null&&R1.throwError("cannot override "+n,r0.errors.UNSUPPORTED_OPERATION,{operation:n})}),r.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(r))}connect(e){typeof e=="string"&&(e=new I4(e,this.provider));const r=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&b0(r,"deployTransaction",this.deployTransaction),r}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return t8.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if(typeof e=="string"){if(e==="error")return this._normalizeRunningEvent(new ZF);if(e==="event")return this._normalizeRunningEvent(new Ru("event",null));if(e==="*")return this._normalizeRunningEvent(new Jf(this.address,this.interface));const r=this.interface.getEvent(e);return this._normalizeRunningEvent(new Vf(this.address,this.interface,r))}if(e.topics&&e.topics.length>0){try{const n=e.topics[0];if(typeof n!="string")throw new Error("invalid topic");const i=this.interface.getEvent(n);return this._normalizeRunningEvent(new Vf(this.address,this.interface,i,e.topics))}catch{}const r={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new Ru(Vp(r),r))}return this._normalizeRunningEvent(new Jf(this.address,this.interface))}_checkRunningEvents(e){if(e.listenerCount()===0){delete this._runningEvents[e.tag];const r=this._wrappedEmits[e.tag];r&&e.filter&&(this.provider.off(e.filter,r),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,r,n){const i=Qe(r);return i.removeListener=()=>{n&&(e.removeListener(n),this._checkRunningEvents(e))},i.getBlock=()=>this.provider.getBlock(r.blockHash),i.getTransaction=()=>this.provider.getTransaction(r.transactionHash),i.getTransactionReceipt=()=>this.provider.getTransactionReceipt(r.transactionHash),e.prepareEvent(i),i}_addEventListener(e,r,n){if(this.provider||R1.throwError("events require a provider or a signer with a provider",r0.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(r,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const i=u=>{let a=this._wrapEvent(e,u,r);if(a.decodeError==null)try{const o=e.getEmit(a);this.emit(e.filter,...o)}catch(o){a.decodeError=o.error}e.filter!=null&&this.emit("event",a),a.decodeError!=null&&this.emit("error",a.decodeError,a)};this._wrappedEmits[e.tag]=i,e.filter!=null&&this.provider.on(e.filter,i)}}queryFilter(e,r,n){const i=this._getRunningEvent(e),u=q1(i.filter);return typeof r=="string"&&s1(r,32)?(n!=null&&R1.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),u.blockHash=r):(u.fromBlock=r??0,u.toBlock=n??"latest"),this.provider.getLogs(u).then(a=>a.map(o=>this._wrapEvent(i,o,null)))}on(e,r){return this._addEventListener(this._getRunningEvent(e),r,!1),this}once(e,r){return this._addEventListener(this._getRunningEvent(e),r,!0),this}emit(e,...r){if(!this.provider)return!1;const n=this._getRunningEvent(e),i=n.run(r)>0;return this._checkRunningEvents(n),i}listenerCount(e){return this.provider?e==null?Object.keys(this._runningEvents).reduce((r,n)=>r+this._runningEvents[n].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(e==null){const r=[];for(let n in this._runningEvents)this._runningEvents[n].listeners().forEach(i=>{r.push(i)});return r}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(e==null){for(const n in this._runningEvents){const i=this._runningEvents[n];i.removeAllListeners(),this._checkRunningEvents(i)}return this}const r=this._getRunningEvent(e);return r.removeAllListeners(),this._checkRunningEvents(r),this}off(e,r){if(!this.provider)return this;const n=this._getRunningEvent(e);return n.removeListener(r),this._checkRunningEvents(n),this}removeListener(e,r){return this.off(e,r)}}class q2 extends eB{}class si{constructor(e,r,n){let i=null;typeof r=="string"?i=r:J2(r)?i=N0(r):r&&typeof r.object=="string"?i=r.object:i="!",i.substring(0,2)!=="0x"&&(i="0x"+i),(!s1(i)||i.length%2)&&R1.throwArgumentError("invalid bytecode","bytecode",r),n&&!Ln.isSigner(n)&&R1.throwArgumentError("invalid signer","signer",n),b0(this,"bytecode",i),b0(this,"interface",De(new.target,"getInterface")(e)),b0(this,"signer",n||null)}getDeployTransaction(...e){let r={};if(e.length===this.interface.deploy.inputs.length+1&&typeof e[e.length-1]=="object"){r=q1(e.pop());for(const n in r)if(!JF[n])throw new Error("unknown transaction override "+n)}return["data","from","to"].forEach(n=>{r[n]!=null&&R1.throwError("cannot override "+n,r0.errors.UNSUPPORTED_OPERATION,{operation:n})}),r.value&&!P0.from(r.value).isZero()&&!this.interface.deploy.payable&&R1.throwError("non-payable constructor cannot override value",r0.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:r.value}),R1.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor"),r.data=N0(L1([this.bytecode,this.interface.encodeDeploy(e)])),r}deploy(...e){return $2(this,void 0,void 0,function*(){let r={};e.length===this.interface.deploy.inputs.length+1&&(r=e.pop()),R1.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor");const n=yield Zi(this.signer,e,this.interface.deploy.inputs);n.push(r);const i=this.getDeployTransaction(...n),u=yield this.signer.sendTransaction(i),a=De(this.constructor,"getContractAddress")(u),o=De(this.constructor,"getContract")(a,this.interface,this.signer);return Gp(o,u),b0(o,"deployTransaction",u),o})}attach(e){return this.constructor.getContract(e,this.interface,this.signer)}connect(e){return new this.constructor(this.interface,this.bytecode,e)}static fromSolidity(e,r){e==null&&R1.throwError("missing compiler output",r0.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),typeof e=="string"&&(e=JSON.parse(e));const n=e.abi;let i=null;return e.bytecode?i=e.bytecode:e.evm&&e.evm.bytecode&&(i=e.evm.bytecode),new this(n,i,r)}static getInterface(e){return q2.getInterface(e)}static getContractAddress(e){return k8(e)}static getContract(e,r,n){return new q2(e,r,n)}}function $4(t,e,r,n,i){t=k0(t),e=k0(e);let u,a=1;const o=new Uint8Array(n),s=new Uint8Array(e.length+4);s.set(e);let c,d;for(let y=1;y<=a;y++){s[e.length]=y>>24&255,s[e.length+1]=y>>16&255,s[e.length+2]=y>>8&255,s[e.length+3]=y&255;let A=k0(Su(i,t,s));u||(u=A.length,d=new Uint8Array(u),a=Math.ceil(n/u),c=n-(a-1)*u),d.set(A);for(let U=1;U{const e=typeof t=="function"?A4(t):t,r=(n,i)=>bh(e,n,i);return Object.assign(r,e),r},mh=t=>t?Zf(t):Zf;var Nv=t=>mh(t);const Mv=Object.freeze(Object.defineProperty({__proto__:null,create:mh,createStore:A4,default:Nv,useStore:bh},Symbol.toStringTag,{value:"Module"})),yh=z1(Mv);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.createWeb3ReactStoreAndActions=t.MAX_SAFE_CHAIN_ID=void 0;const e=fh,r=yh;t.MAX_SAFE_CHAIN_ID=0xfffffffffffec;function n(o){if(!Number.isInteger(o)||o<=0||o>t.MAX_SAFE_CHAIN_ID)throw new Error(`Invalid chainId ${o}`)}function i(o){return(0,e.getAddress)(o)}const u={chainId:void 0,accounts:void 0,activating:!1};function a(){const o=(0,r.createStore)()(()=>u);let s=0;function c(){const A=++s;return o.setState(Object.assign(Object.assign({},u),{activating:!0})),()=>{s===A&&o.setState({activating:!1})}}function d(A){if(A.chainId!==void 0&&n(A.chainId),A.accounts!==void 0)for(let C=0;C{var T,U;const P=(T=A.chainId)!==null&&T!==void 0?T:C.chainId,_=(U=A.accounts)!==null&&U!==void 0?U:C.accounts;let B=C.activating;return B&&P&&_&&(B=!1),{chainId:P,accounts:_,activating:B}})}function y(){s++,o.setState(u)}return[o,{startActivation:c,update:d,resetState:y}]}t.createWeb3ReactStoreAndActions=a})(Xd);const{useSyncExternalStoreWithSelector:Uv}=ph;function gh(t,e=t.getState,r){const n=Uv(t.subscribe,t.getState,t.getServerState||t.getState,e,r);return l0.useDebugValue(n),n}const el=(t,e)=>{const r=A4(t),n=(i,u=e)=>gh(r,i,u);return Object.assign(n,r),n},Iv=(t,e)=>t?el(t,e):el,Rv=Object.freeze(Object.defineProperty({__proto__:null,createWithEqualityFn:Iv,useStoreWithEqualityFn:gh},Symbol.toStringTag,{value:"Module"})),Ov=z1(Rv),Lv="properties/5.7.0";var jv=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const H9=new r0(Lv);function b0(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function De(t,e){for(let r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||typeof t.prototype!="object")break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function te(t){return jv(this,void 0,void 0,function*(){const e=Object.keys(t).map(n=>{const i=t[n];return Promise.resolve(i).then(u=>({key:n,value:u}))});return(yield Promise.all(e)).reduce((n,i)=>(n[i.key]=i.value,n),{})})}function w4(t,e){(!t||typeof t!="object")&&H9.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(r=>{e[r]||H9.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)})}function q1(t){const e={};for(const r in t)e[r]=t[r];return e}const zv={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function xh(t){if(t==null||zv[typeof t])return!0;if(Array.isArray(t)||typeof t=="object"){if(!Object.isFrozen(t))return!1;const e=Object.keys(t);for(let r=0;rQe(e)));if(typeof t=="object"){const e={};for(const r in t){const n=t[r];n!==void 0&&b0(e,r,Qe(n))}return e}return H9.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}function Qe(t){return $v(t)}class Q2{constructor(e){for(const r in e)this[r]=Qe(e[r])}}const qv=Object.freeze(Object.defineProperty({__proto__:null,Description:Q2,checkProperties:w4,deepCopy:Qe,defineReadOnly:b0,getStatic:De,resolveProperties:te,shallowCopy:q1},Symbol.toStringTag,{value:"Module"})),Hv="abstract-provider/5.7.0";var Kv=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const Gv=new r0(Hv);class Wv extends Q2{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class Rn{constructor(){Gv.checkAbstract(new.target,Rn),b0(this,"_isProvider",!0)}getFeeData(){return Kv(this,void 0,void 0,function*(){const{block:e,gasPrice:r}=yield te({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(a=>null)});let n=null,i=null,u=null;return e&&e.baseFeePerGas&&(n=e.baseFeePerGas,u=P0.from("1500000000"),i=e.baseFeePerGas.mul(2).add(u)),{lastBaseFeePerGas:n,maxFeePerGas:i,maxPriorityFeePerGas:u,gasPrice:r}})}addListener(e,r){return this.on(e,r)}removeListener(e,r){return this.off(e,r)}static isProvider(e){return!!(e&&e._isProvider)}}const Vv="networks/5.7.1",tl=new r0(Vv);function Jv(t){return t&&typeof t.renetwork=="function"}function zr(t){const e=function(r,n){n==null&&(n={});const i=[];if(r.InfuraProvider&&n.infura!=="-")try{i.push(new r.InfuraProvider(t,n.infura))}catch{}if(r.EtherscanProvider&&n.etherscan!=="-")try{i.push(new r.EtherscanProvider(t,n.etherscan))}catch{}if(r.AlchemyProvider&&n.alchemy!=="-")try{i.push(new r.AlchemyProvider(t,n.alchemy))}catch{}if(r.PocketProvider&&n.pocket!=="-"){const u=["goerli","ropsten","rinkeby","sepolia"];try{const a=new r.PocketProvider(t,n.pocket);a.network&&u.indexOf(a.network.name)===-1&&i.push(a)}catch{}}if(r.CloudflareProvider&&n.cloudflare!=="-")try{i.push(new r.CloudflareProvider(t))}catch{}if(r.AnkrProvider&&n.ankr!=="-")try{const u=["ropsten"],a=new r.AnkrProvider(t,n.ankr);a.network&&u.indexOf(a.network.name)===-1&&i.push(a)}catch{}if(i.length===0)return null;if(r.FallbackProvider){let u=1;return n.quorum!=null?u=n.quorum:t==="homestead"&&(u=2),new r.FallbackProvider(i,u)}return i[0]};return e.renetwork=function(r){return zr(r)},e}function K9(t,e){const r=function(n,i){return n.JsonRpcProvider?new n.JsonRpcProvider(t,e):null};return r.renetwork=function(n){return K9(t,n)},r}const rl={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:zr("homestead")},nl={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:zr("ropsten")},il={chainId:63,name:"classicMordor",_defaultProvider:K9("https://www.ethercluster.com/mordor","classicMordor")},F5={unspecified:{chainId:0,name:"unspecified"},homestead:rl,mainnet:rl,morden:{chainId:2,name:"morden"},ropsten:nl,testnet:nl,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:zr("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:zr("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:zr("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:zr("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:K9("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:il,classicTestnet:il,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:K9("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:zr("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:zr("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function E4(t){if(t==null)return null;if(typeof t=="number"){for(const n in F5){const i=F5[n];if(i.chainId===t)return{name:i.name,chainId:i.chainId,ensAddress:i.ensAddress||null,_defaultProvider:i._defaultProvider||null}}return{chainId:t,name:"unknown"}}if(typeof t=="string"){const n=F5[t];return n==null?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}const e=F5[t.name];if(!e)return typeof t.chainId!="number"&&tl.throwArgumentError("invalid network chainId","network",t),t;t.chainId!==0&&t.chainId!==e.chainId&&tl.throwArgumentError("network chainId mismatch","network",t);let r=t._defaultProvider||null;return r==null&&e._defaultProvider&&(Jv(e._defaultProvider)?r=e._defaultProvider.renetwork(t):r=e._defaultProvider),{name:t.name,chainId:e.chainId,ensAddress:t.ensAddress||e.ensAddress||null,_defaultProvider:r}}function C4(t){t=atob(t);const e=[];for(let r=0;r0;)n.push(a%this.base),a=a/this.base|0}let i="";for(let u=0;r[u]===0&&u=0;--u)i+=this.alphabet[n[u]];return i}decode(e){if(typeof e!="string")throw new TypeError("Expected String");let r=[];if(e.length===0)return new Uint8Array(r);r.push(0);for(let n=0;n>=8;for(;u>0;)r.push(u&255),u>>=8}for(let n=0;e[n]===this._leader&&n>6===2;a++)u++;return u}return t===it.OVERRUN?r.length-e-1:0}function uA(t,e,r,n,i){return t===it.OVERLONG?(n.push(i),0):(n.push(65533),Eh(t,e,r))}const Ch=Object.freeze({error:iA,ignore:Eh,replace:uA});function D4(t,e){e==null&&(e=Ch.error),t=k0(t);const r=[];let n=0;for(;n>7)){r.push(i);continue}let u=null,a=null;if((i&224)===192)u=1,a=127;else if((i&240)===224)u=2,a=2047;else if((i&248)===240)u=3,a=65535;else{(i&192)===128?n+=e(it.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(it.BAD_PREFIX,n-1,t,r);continue}if(n-1+u>=t.length){n+=e(it.OVERRUN,n-1,t,r);continue}let o=i&(1<<8-u-1)-1;for(let s=0;s1114111){n+=e(it.OUT_OF_RANGE,n-1-u,t,r,o);continue}if(o>=55296&&o<=57343){n+=e(it.UTF16_SURROGATE,n-1-u,t,r,o);continue}if(o<=a){n+=e(it.OVERLONG,n-1-u,t,r,o);continue}r.push(o)}}return r}function H1(t,e=Sr.current){e!=Sr.current&&(wh.checkNormalize(),t=t.normalize(e));let r=[];for(let n=0;n>6|192),r.push(i&63|128);else if((i&64512)==55296){n++;const u=t.charCodeAt(n);if(n>=t.length||(u&64512)!==56320)throw new Error("invalid utf-8 string");const a=65536+((i&1023)<<10)+(u&1023);r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(a&63|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128)}return k0(r)}function Ba(t){const e="0000"+t.toString(16);return"\\u"+e.substring(e.length-4)}function aA(t,e){return'"'+D4(t,e).map(r=>{if(r<256){switch(r){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(r>=32&&r<127)return String.fromCharCode(r)}return r<=65535?Ba(r):(r-=65536,Ba((r>>10&1023)+55296)+Ba((r&1023)+56320))}).join("")+'"'}function Qo(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function Y2(t,e){return Qo(D4(t,e))}function G9(t,e=Sr.current){return D4(H1(t,e))}function oA(t){const e=H1(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return N0(L1([e,Ah]).slice(0,32))}function sA(t){const e=k0(t);if(e.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(e[31]!==0)throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;e[r-1]===0;)r--;return Y2(e.slice(0,r))}function fA(t){if(t.length%4!==0)throw new Error("bad data");let e=[];for(let r=0;r{let u=i.split(":");r+=parseInt(u[0],16),n[r]=e(u[1])}),n}function Fh(t){let e=0;return t.split(",").map(r=>{let n=r.split("-");n.length===1?n[1]="0":n[1]===""&&(n[1]="1");let i=e+parseInt(n[0],16);return e=parseInt(n[1],16),{l:i,h:e}})}function k4(t,e){let r=0;for(let n=0;n=r&&t<=r+i.h&&(t-r)%(i.d||1)===0){if(i.e&&i.e.indexOf(t-r)!==-1)continue;return i}}return null}const lA=Fh("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),cA="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(t=>parseInt(t,16)),dA=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],hA=_4("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),pA=_4("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),bA=_4("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",fA),mA=Fh("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function yA(t){return t.reduce((e,r)=>(r.forEach(n=>{e.push(n)}),e),[])}function gA(t){return!!k4(t,lA)}function xA(t){let e=k4(t,dA);if(e)return[t+e.s];let r=hA[t];if(r)return r;let n=pA[t];if(n)return[t+n[0]];let i=bA[t];return i||null}function vA(t){return!!k4(t,mA)}function AA(t){if(t.match(/^[a-z0-9-]*$/i)&&t.length<=59)return t.toLowerCase();let e=G9(t);e=yA(e.map(n=>{if(cA.indexOf(n)>=0)return[];if(n>=65024&&n<=65039)return[];let i=xA(n);return i||[n]})),e=G9(Qo(e),Sr.NFKC),e.forEach(n=>{if(vA(n))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),e.forEach(n=>{if(gA(n))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});let r=Qo(e);if(r.substring(0,1)==="-"||r.substring(2,4)==="--"||r.substring(r.length-1)==="-")throw new Error("invalid hyphen");return r}const wA=Object.freeze(Object.defineProperty({__proto__:null,get UnicodeNormalizationForm(){return Sr},Utf8ErrorFuncs:Ch,get Utf8ErrorReason(){return it},_toEscapedUtf8String:aA,formatBytes32String:oA,nameprep:AA,parseBytes32String:sA,toUtf8Bytes:H1,toUtf8CodePoints:G9,toUtf8String:Y2},Symbol.toStringTag,{value:"Module"}));function F2(t){return O1(H1(t))}const Bh="hash/5.7.0";function Dh(t,e){e==null&&(e=1);const r=[],n=r.forEach,i=function(u,a){n.call(u,function(o){a>0&&Array.isArray(o)?i(o,a-1):r.push(o)})};return i(t,e),r}function EA(t){const e={};for(let r=0;r>--s&1}const y=31,A=Math.pow(2,y),C=A>>>1,T=C>>1,U=A-1;let P=0;for(let G=0;G1;){let d0=t0+Z>>>1;G>>1|d(),e0=e0<<1^C,o0=(o0^C)<<1|C|1;B=e0,N=1+o0-e0}let W=n-4;return _.map(G=>{switch(G-W){case 3:return W+65792+(t[o++]<<16|t[o++]<<8|t[o++]);case 2:return W+256+(t[o++]<<8|t[o++]);case 1:return W+t[o++];default:return G-1}})}function FA(t){let e=0;return()=>t[e++]}function BA(t){return FA(CA(t))}function DA(t){return t&1?~t>>1:t>>1}function _A(t,e){let r=Array(t);for(let n=0;ne[a]):r}function SA(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(PA(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(NA(r,t))}return EA(Dh(e))}function TA(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(r)}return e}function _h(t,e,r){let n=Array(t).fill(void 0).map(()=>[]);for(let i=0;in[a].push(u));return n}function PA(t,e){let r=1+e(),n=e(),i=TA(e),u=_h(i.length,1+t,e);return Dh(u.map((a,o)=>{const s=a[0],c=a.slice(1);return Array(i[o]).fill(void 0).map((d,y)=>{let A=y*n;return[s+y*r,c.map(C=>C+A)]})}))}function NA(t,e){let r=1+e();return _h(r,1+t,e).map(i=>[i[0],i.slice(1)])}function MA(t){let e=W9(t).sort((n,i)=>n-i);return r();function r(){let n=[];for(;;){let c=W9(t,e);if(c.length==0)break;n.push({set:new Set(c),node:r()})}n.sort((c,d)=>d.set.size-c.set.size);let i=t(),u=i%3;i=i/3|0;let a=!!(i&1);i>>=1;let o=i==1,s=i==2;return{branches:n,valid:u,fe0f:a,save:o,check:s}}}function UA(){return BA(C4("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}const T8=UA(),IA=new Set(W9(T8)),RA=new Set(W9(T8)),OA=SA(T8),LA=MA(T8),al=45,ol=95;function kh(t){return G9(t)}function jA(t){return t.filter(e=>e!=65039)}function Sh(t){for(let e of t.split(".")){let r=kh(e);try{for(let n=r.lastIndexOf(ol)-1;n>=0;n--)if(r[n]!==ol)throw new Error("underscore only allowed at start");if(r.length>=4&&r.every(n=>n<128)&&r[2]===al&&r[3]===al)throw new Error("invalid label extension")}catch(n){throw new Error(`Invalid label "${e}": ${n.message}`)}}return t}function zA(t){return Sh($A(t,jA))}function $A(t,e){let r=kh(t).reverse(),n=[];for(;r.length;){let i=HA(r);if(i){n.push(...e(i));continue}let u=r.pop();if(IA.has(u)){n.push(u);continue}if(RA.has(u))continue;let a=OA[u];if(a){n.push(...a);continue}throw new Error(`Disallowed codepoint: 0x${u.toString(16).toUpperCase()}`)}return Sh(qA(String.fromCodePoint(...n)))}function qA(t){return t.normalize("NFC")}function HA(t,e){var r;let n=LA,i,u,a=[],o=t.length;for(;o;){let s=t[--o];if(n=(r=n.branches.find(c=>c.set.has(s)))===null||r===void 0?void 0:r.node,!n)break;if(n.save)u=s;else if(n.check&&s===u)break;a.push(s),n.fe0f&&(a.push(65039),o>0&&t[o-1]==65039&&o--),n.valid&&(i=a.slice(),n.valid==2&&i.splice(1,1),t.length=o)}return i}const KA=new r0(Bh),Th=new Uint8Array(32);Th.fill(0);function sl(t){if(t.length===0)throw new Error("invalid ENS name; empty component");return t}function P8(t){const e=H1(zA(t)),r=[];if(t.length===0)return r;let n=0;for(let i=0;i=e.length)throw new Error("invalid ENS name; empty component");return r.push(sl(e.slice(n))),r}function GA(t){return P8(t).map(e=>Y2(e)).join(".")}function WA(t){try{return P8(t).length!==0}catch{}return!1}function Cr(t){typeof t!="string"&&KA.throwArgumentError("invalid ENS name; not a string","name",t);let e=Th;const r=P8(t);for(;r.length;)e=O1(L1([e,O1(r.pop())]));return N0(e)}function Ph(t){return N0(L1(P8(t).map(e=>{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const r=new Uint8Array(e.length+1);return r.set(e,1),r[0]=r.length-1,r})))+"00"}const Nh=`Ethereum Signed Message: +`;function S4(t){return typeof t=="string"&&(t=H1(t)),O1(L1([H1(Nh),H1(String(t.length)),t]))}var VA=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const J1=new r0(Bh),Mh=new Uint8Array(32);Mh.fill(0);const JA=P0.from(-1),Uh=P0.from(0),Ih=P0.from(1),QA=P0.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function YA(t){const e=k0(t),r=e.length%32;return r?Ge([e,Mh.slice(r)]):N0(e)}const XA=j1(Ih.toHexString(),32),ZA=j1(Uh.toHexString(),32),fl={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Da=["name","version","chainId","verifyingContract","salt"];function ll(t){return function(e){return typeof e!="string"&&J1.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const ew={name:ll("name"),version:ll("version"),chainId:function(t){try{return P0.from(t).toString()}catch{}return J1.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return I1(t).toLowerCase()}catch{}return J1.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{const e=k0(t);if(e.length!==32)throw new Error("bad length");return N0(e)}catch{}return J1.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function _a(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const r=e[1]==="",n=parseInt(e[2]||"256");(n%8!==0||n>256||e[2]&&e[2]!==String(n))&&J1.throwArgumentError("invalid numeric width","type",t);const i=QA.mask(r?n-1:n),u=r?i.add(Ih).mul(JA):Uh;return function(a){const o=P0.from(a);return(o.lt(u)||o.gt(i))&&J1.throwArgumentError(`value out-of-bounds for ${t}`,"value",a),j1(o.toTwos(256).toHexString(),32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return(r===0||r>32||e[1]!==String(r))&&J1.throwArgumentError("invalid bytes width","type",t),function(n){return k0(n).length!==r&&J1.throwArgumentError(`invalid length for ${t}`,"value",n),YA(n)}}}switch(t){case"address":return function(e){return j1(I1(e),32)};case"bool":return function(e){return e?XA:ZA};case"bytes":return function(e){return O1(e)};case"string":return function(e){return F2(e)}}return null}function cl(t,e){return`${t}(${e.map(({name:r,type:n})=>n+" "+r).join(",")})`}class Be{constructor(e){b0(this,"types",Object.freeze(Qe(e))),b0(this,"_encoderCache",{}),b0(this,"_types",{});const r={},n={},i={};Object.keys(e).forEach(o=>{r[o]={},n[o]=[],i[o]={}});for(const o in e){const s={};e[o].forEach(c=>{s[c.name]&&J1.throwArgumentError(`duplicate variable name ${JSON.stringify(c.name)} in ${JSON.stringify(o)}`,"types",e),s[c.name]=!0;const d=c.type.match(/^([^\x5b]*)(\x5b|$)/)[1];d===o&&J1.throwArgumentError(`circular type reference to ${JSON.stringify(d)}`,"types",e),!_a(d)&&(n[d]||J1.throwArgumentError(`unknown type ${JSON.stringify(d)}`,"types",e),n[d].push(o),r[o][d]=!0)})}const u=Object.keys(n).filter(o=>n[o].length===0);u.length===0?J1.throwArgumentError("missing primary type","types",e):u.length>1&&J1.throwArgumentError(`ambiguous primary types or unused types: ${u.map(o=>JSON.stringify(o)).join(", ")}`,"types",e),b0(this,"primaryType",u[0]);function a(o,s){s[o]&&J1.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,"types",e),s[o]=!0,Object.keys(r[o]).forEach(c=>{n[c]&&(a(c,s),Object.keys(s).forEach(d=>{i[d][c]=!0}))}),delete s[o]}a(this.primaryType,{});for(const o in i){const s=Object.keys(i[o]);s.sort(),this._types[o]=cl(o,e[o])+s.map(c=>cl(c,e[c])).join("")}}getEncoder(e){let r=this._encoderCache[e];return r||(r=this._encoderCache[e]=this._getEncoder(e)),r}_getEncoder(e){{const i=_a(e);if(i)return i}const r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const i=r[1],u=this.getEncoder(i),a=parseInt(r[3]);return o=>{a>=0&&o.length!==a&&J1.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",o);let s=o.map(u);return this._types[i]&&(s=s.map(O1)),O1(Ge(s))}}const n=this.types[e];if(n){const i=F2(this._types[e]);return u=>{const a=n.map(({name:o,type:s})=>{const c=this.getEncoder(s)(u[o]);return this._types[s]?O1(c):c});return a.unshift(i),Ge(a)}}return J1.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const r=this._types[e];return r||J1.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),r}encodeData(e,r){return this.getEncoder(e)(r)}hashStruct(e,r){return O1(this.encodeData(e,r))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,r,n){if(_a(e))return n(e,r);const i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){const a=i[1],o=parseInt(i[3]);return o>=0&&r.length!==o&&J1.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",r),r.map(s=>this._visit(a,s,n))}const u=this.types[e];return u?u.reduce((a,{name:o,type:s})=>(a[o]=this._visit(s,r[o],n),a),{}):J1.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,r){return this._visit(this.primaryType,e,r)}static from(e){return new Be(e)}static getPrimaryType(e){return Be.from(e).primaryType}static hashStruct(e,r,n){return Be.from(r).hashStruct(e,n)}static hashDomain(e){const r=[];for(const n in e){const i=fl[n];i||J1.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),r.push({name:n,type:i})}return r.sort((n,i)=>Da.indexOf(n.name)-Da.indexOf(i.name)),Be.hashStruct("EIP712Domain",{EIP712Domain:r},e)}static encode(e,r,n){return Ge(["0x1901",Be.hashDomain(e),Be.from(r).hash(n)])}static hash(e,r,n){return O1(Be.encode(e,r,n))}static resolveNames(e,r,n,i){return VA(this,void 0,void 0,function*(){e=q1(e);const u={};e.verifyingContract&&!s1(e.verifyingContract,20)&&(u[e.verifyingContract]="0x");const a=Be.from(r);a.visit(n,(o,s)=>(o==="address"&&!s1(s,20)&&(u[s]="0x"),s));for(const o in u)u[o]=yield i(o);return e.verifyingContract&&u[e.verifyingContract]&&(e.verifyingContract=u[e.verifyingContract]),n=a.visit(n,(o,s)=>o==="address"&&u[s]?u[s]:s),{domain:e,value:n}})}static getPayload(e,r,n){Be.hashDomain(e);const i={},u=[];Da.forEach(s=>{const c=e[s];c!=null&&(i[s]=ew[s](c),u.push({name:s,type:fl[s]}))});const a=Be.from(r),o=q1(r);return o.EIP712Domain?J1.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):o.EIP712Domain=u,a.encode(n),{types:o,domain:i,primaryType:a.primaryType,message:a.visit(n,(s,c)=>{if(s.match(/^bytes(\d*)/))return N0(k0(c));if(s.match(/^u?int/))return P0.from(c).toString();switch(s){case"address":return c.toLowerCase();case"bool":return!!c;case"string":return typeof c!="string"&&J1.throwArgumentError("invalid string","value",c),c}return J1.throwArgumentError("unsupported type","type",s)})}}}const tw=Object.freeze(Object.defineProperty({__proto__:null,_TypedDataEncoder:Be,dnsEncode:Ph,ensNormalize:GA,hashMessage:S4,id:F2,isValidName:WA,messagePrefix:Nh,namehash:Cr},Symbol.toStringTag,{value:"Module"}));var Rh={},A1={},Yu=Oh;function Oh(t,e){if(!t)throw new Error(e||"Assertion failed")}Oh.equal=function(e,r,n){if(e!=r)throw new Error(n||"Assertion failed: "+e+" != "+r)};var Yo={exports:{}};typeof Object.create=="function"?Yo.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Yo.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 rw=Yo.exports,nw=Yu,iw=rw;A1.inherits=iw;function uw(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function aw(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t=="string")if(e){if(e==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t),i=0;i>6|192,r[n++]=u&63|128):uw(t,i)?(u=65536+((u&1023)<<10)+(t.charCodeAt(++i)&1023),r[n++]=u>>18|240,r[n++]=u>>12&63|128,r[n++]=u>>6&63|128,r[n++]=u&63|128):(r[n++]=u>>12|224,r[n++]=u>>6&63|128,r[n++]=u&63|128)}else for(i=0;i>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}A1.htonl=Lh;function sw(t,e){for(var r="",n=0;n>>0}return u}A1.join32=fw;function lw(t,e){for(var r=new Array(t.length*4),n=0,i=0;n>>24,r[i+1]=u>>>16&255,r[i+2]=u>>>8&255,r[i+3]=u&255):(r[i+3]=u>>>24,r[i+2]=u>>>16&255,r[i+1]=u>>>8&255,r[i]=u&255)}return r}A1.split32=lw;function cw(t,e){return t>>>e|t<<32-e}A1.rotr32=cw;function dw(t,e){return t<>>32-e}A1.rotl32=dw;function hw(t,e){return t+e>>>0}A1.sum32=hw;function pw(t,e,r){return t+e+r>>>0}A1.sum32_3=pw;function bw(t,e,r,n){return t+e+r+n>>>0}A1.sum32_4=bw;function mw(t,e,r,n,i){return t+e+r+n+i>>>0}A1.sum32_5=mw;function yw(t,e,r,n){var i=t[e],u=t[e+1],a=n+u>>>0,o=(a>>0,t[e+1]=a}A1.sum64=yw;function gw(t,e,r,n){var i=e+n>>>0,u=(i>>0}A1.sum64_hi=gw;function xw(t,e,r,n){var i=e+n;return i>>>0}A1.sum64_lo=xw;function vw(t,e,r,n,i,u,a,o){var s=0,c=e;c=c+n>>>0,s+=c>>0,s+=c>>0,s+=c>>0}A1.sum64_4_hi=vw;function Aw(t,e,r,n,i,u,a,o){var s=e+n+u+o;return s>>>0}A1.sum64_4_lo=Aw;function ww(t,e,r,n,i,u,a,o,s,c){var d=0,y=e;y=y+n>>>0,d+=y>>0,d+=y>>0,d+=y>>0,d+=y>>0}A1.sum64_5_hi=ww;function Ew(t,e,r,n,i,u,a,o,s,c){var d=e+n+u+o+c;return d>>>0}A1.sum64_5_lo=Ew;function Cw(t,e,r){var n=e<<32-r|t>>>r;return n>>>0}A1.rotr64_hi=Cw;function Fw(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}A1.rotr64_lo=Fw;function Bw(t,e,r){return t>>>r}A1.shr64_hi=Bw;function Dw(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}A1.shr64_lo=Dw;var ni={},dl=A1,_w=Yu;function N8(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}ni.BlockHash=N8;N8.prototype.update=function(e,r){if(e=dl.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=dl.join32(e,0,e.length-n,this.endian);for(var i=0;i>>24&255,i[u++]=e>>>16&255,i[u++]=e>>>8&255,i[u++]=e&255}else for(i[u++]=e&255,i[u++]=e>>>8&255,i[u++]=e>>>16&255,i[u++]=e>>>24&255,i[u++]=0,i[u++]=0,i[u++]=0,i[u++]=0,a=8;a>>3}Mr.g0_256=Nw;function Mw(t){return Fr(t,17)^Fr(t,19)^t>>>10}Mr.g1_256=Mw;var K6=A1,Uw=ni,Iw=Mr,ka=K6.rotl32,Fi=K6.sum32,Rw=K6.sum32_5,Ow=Iw.ft_1,Kh=Uw.BlockHash,Lw=[1518500249,1859775393,2400959708,3395469782];function Tr(){if(!(this instanceof Tr))return new Tr;Kh.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}K6.inherits(Tr,Kh);var jw=Tr;Tr.blockSize=512;Tr.outSize=160;Tr.hmacStrength=80;Tr.padLength=64;Tr.prototype._update=function(e,r){for(var n=this.W,i=0;i<16;i++)n[i]=e[r+i];for(;ithis.blockSize&&(e=new this.Hash().update(e).digest()),DE(e.length<=this.blockSize);for(var r=e.length;r{u[o.toLowerCase()]=a}):n.headers.keys().forEach(a=>{u[a.toLowerCase()]=n.headers.get(a)}),{headers:u,statusCode:n.status,statusMessage:n.statusText,body:k0(new Uint8Array(i))}})}var IE=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const $t=new r0(NE);function ml(t){return new Promise(e=>{setTimeout(e,t)})}function h2(t,e){if(t==null)return null;if(typeof t=="string")return t;if(Ju(t)){if(e&&(e.split("/")[0]==="text"||e.split(";")[0].trim()==="application/json"))try{return Y2(t)}catch{}return N0(t)}return t}function RE(t){return H1(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,r)=>String.fromCharCode(parseInt(r,16))))}function np(t,e,r){const n=typeof t=="object"&&t.throttleLimit!=null?t.throttleLimit:12;$t.assertArgument(n>0&&n%1===0,"invalid connection throttle limit","connection.throttleLimit",n);const i=typeof t=="object"?t.throttleCallback:null,u=typeof t=="object"&&typeof t.throttleSlotInterval=="number"?t.throttleSlotInterval:100;$t.assertArgument(u>0&&u%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",u);const a=typeof t=="object"?!!t.errorPassThrough:!1,o={};let s=null;const c={method:"GET"};let d=!1,y=2*60*1e3;if(typeof t=="string")s=t;else if(typeof t=="object"){if((t==null||t.url==null)&&$t.throwArgumentError("missing URL","connection.url",t),s=t.url,typeof t.timeout=="number"&&t.timeout>0&&(y=t.timeout),t.headers)for(const _ in t.headers)o[_.toLowerCase()]={key:_,value:String(t.headers[_])},["if-none-match","if-modified-since"].indexOf(_.toLowerCase())>=0&&(d=!0);if(c.allowGzip=!!t.allowGzip,t.user!=null&&t.password!=null){s.substring(0,6)!=="https:"&&t.allowInsecureAuthentication!==!0&&$t.throwError("basic authentication requires a secure https url",r0.errors.INVALID_ARGUMENT,{argument:"url",url:s,user:t.user,password:"[REDACTED]"});const _=t.user+":"+t.password;o.authorization={key:"Authorization",value:"Basic "+F4(H1(_))}}t.skipFetchSetup!=null&&(c.skipFetchSetup=!!t.skipFetchSetup),t.fetchOptions!=null&&(c.fetchOptions=q1(t.fetchOptions))}const A=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),C=s?s.match(A):null;if(C)try{const _={statusCode:200,statusMessage:"OK",headers:{"content-type":C[1]||"text/plain"},body:C[2]?C4(C[3]):RE(C[3])};let B=_.body;return r&&(B=r(_.body,_)),Promise.resolve(B)}catch(_){$t.throwError("processing response error",r0.errors.SERVER_ERROR,{body:h2(C[1],C[2]),error:_,requestBody:null,requestMethod:"GET",url:s})}e&&(c.method="POST",c.body=e,o["content-type"]==null&&(o["content-type"]={key:"Content-Type",value:"application/octet-stream"}),o["content-length"]==null&&(o["content-length"]={key:"Content-Length",value:String(e.length)}));const T={};Object.keys(o).forEach(_=>{const B=o[_];T[B.key]=B.value}),c.headers=T;const U=function(){let _=null;return{promise:new Promise(function(W,G){y&&(_=setTimeout(()=>{_!=null&&(_=null,G($t.makeError("timeout",r0.errors.TIMEOUT,{requestBody:h2(c.body,T["content-type"]),requestMethod:c.method,timeout:y,url:s})))},y))}),cancel:function(){_!=null&&(clearTimeout(_),_=null)}}}(),P=function(){return IE(this,void 0,void 0,function*(){for(let _=0;_=300)&&(U.cancel(),$t.throwError("bad response",r0.errors.SERVER_ERROR,{status:B.statusCode,headers:B.headers,body:h2(N,B.headers?B.headers["content-type"]:null),requestBody:h2(c.body,T["content-type"]),requestMethod:c.method,url:s})),r)try{const W=yield r(N,B);return U.cancel(),W}catch(W){if(W.throttleRetry&&_{let o=null;if(u!=null)try{o=JSON.parse(Y2(u))}catch(s){$t.throwError("invalid JSON",r0.errors.SERVER_ERROR,{body:u,error:s})}return r&&(o=r(o,a)),o},i=null;if(e!=null){i=H1(e);const u=typeof t=="string"?{url:t}:q1(t);u.headers?Object.keys(u.headers).filter(o=>o.toLowerCase()==="content-type").length!==0||(u.headers=q1(u.headers),u.headers["content-type"]="application/json"):u.headers={"content-type":"application/json"},t=u}return np(t,i,n)}function mn(t,e){return e||(e={}),e=q1(e),e.floor==null&&(e.floor=0),e.ceiling==null&&(e.ceiling=1e4),e.interval==null&&(e.interval=250),new Promise(function(r,n){let i=null,u=!1;const a=()=>u?!1:(u=!0,i&&clearTimeout(i),!0);e.timeout&&(i=setTimeout(()=>{a()&&n(new Error("timeout"))},e.timeout));const o=e.retryLimit;let s=0;function c(){return t().then(function(d){if(d!==void 0)a()&&r(d);else if(e.oncePoll)e.oncePoll.once("poll",c);else if(e.onceBlock)e.onceBlock.once("block",c);else if(!u){if(s++,s>o){a()&&n(new Error("retry limit reached"));return}let y=e.interval*parseInt(String(Math.random()*Math.pow(2,s)));ye.ceiling&&(y=e.ceiling),setTimeout(c,y)}return null},function(d){a()&&n(d)})}c()})}const OE=Object.freeze(Object.defineProperty({__proto__:null,_fetchData:np,fetchJson:ai,poll:mn},Symbol.toStringTag,{value:"Module"}));var V9="qpzry9x8gf2tvdw0s3jn54khce6mua7l",es={};for(var D5=0;D5>25;return(t&33554431)<<5^-(e>>0&1)&996825010^-(e>>1&1)&642813549^-(e>>2&1)&513874426^-(e>>3&1)&1027748829^-(e>>4&1)&705979059}function ip(t){for(var e=1,r=0;r126)return"Invalid prefix ("+t+")";e=P6(e)^n>>5}for(e=P6(e),r=0;rr)throw new TypeError("Exceeds length limit");t=t.toLowerCase();var n=ip(t);if(typeof n=="string")throw new Error(n);for(var i=t+"1",u=0;u>5)throw new Error("Non 5-bit word");n=P6(n)^a,i+=V9.charAt(a)}for(u=0;u<6;++u)n=P6(n);for(n^=1,u=0;u<6;++u){var o=n>>(5-u)*5&31;i+=V9.charAt(o)}return i}function up(t,e){if(e=e||90,t.length<8)return t+" too short";if(t.length>e)return"Exceeds length limit";var r=t.toLowerCase(),n=t.toUpperCase();if(t!==r&&t!==n)return"Mixed-case string "+t;t=r;var i=t.lastIndexOf("1");if(i===-1)return"No separator character for "+t;if(i===0)return"Missing prefix for "+t;var u=t.slice(0,i),a=t.slice(i+1);if(a.length<6)return"Data too short";var o=ip(u);if(typeof o=="string")return o;for(var s=[],c=0;c=a.length)&&s.push(y)}return o!==1?"Invalid checksum for "+t:{prefix:u,words:s}}function jE(){var t=up.apply(null,arguments);if(typeof t=="object")return t}function zE(t){var e=up.apply(null,arguments);if(typeof e=="object")return e;throw new Error(e)}function M8(t,e,r,n){for(var i=0,u=0,a=(1<=r;)u-=r,o.push(i>>u&a);if(n)u>0&&o.push(i<=e)return"Excess padding";if(i<>8,A=d&255;y?s.push(y,A):s.push(A)}return s}r.toArray=n;function i(a){return a.length===1?"0"+a:a}r.zero2=i;function u(a){for(var o="",s=0;s(A>>1)-1?U=(A>>1)-P:U=P,C.isubn(U)):U=0,y[T]=U,C.iushrn(1)}return y}r.getNAF=n;function i(s,c){var d=[[],[]];s=s.clone(),c=c.clone();for(var y=0,A=0,C;s.cmpn(-y)>0||c.cmpn(-A)>0;){var T=s.andln(3)+y&3,U=c.andln(3)+A&3;T===3&&(T=-1),U===3&&(U=-1);var P;T&1?(C=s.andln(7)+y&7,(C===3||C===5)&&U===2?P=-T:P=T):P=0,d[0].push(P);var _;U&1?(C=c.andln(7)+A&7,(C===3||C===5)&&T===2?_=-U:_=U):_=0,d[1].push(_),2*y===P+1&&(y=1-y),2*A===_+1&&(A=1-A),s.iushrn(1),c.iushrn(1)}return d}r.getJSF=i;function u(s,c,d){var y="_"+c;s.prototype[c]=function(){return this[y]!==void 0?this[y]:this[y]=d.call(this)}}r.cachedProperty=u;function a(s){return typeof s=="string"?r.toArray(s,"hex"):s}r.parseBytes=a;function o(s){return new a1(s,"hex","le")}r.intFromLE=o}),J9=wt.getNAF,VE=wt.getJSF,Q9=wt.assert;function X2(t,e){this.type=t,this.p=new a1(e.p,16),this.red=e.prime?a1.red(e.prime):a1.mont(this.p),this.zero=new a1(0).toRed(this.red),this.one=new a1(1).toRed(this.red),this.two=new a1(2).toRed(this.red),this.n=e.n&&new a1(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var On=X2;X2.prototype.point=function(){throw new Error("Not implemented")};X2.prototype.validate=function(){throw new Error("Not implemented")};X2.prototype._fixedNafMul=function(e,r){Q9(e.precomputed);var n=e._getDoubles(),i=J9(r,1,this._bitLength),u=(1<=o;c--)s=(s<<1)+i[c];a.push(s)}for(var d=this.jpoint(null,null,null),y=this.jpoint(null,null,null),A=u;A>0;A--){for(o=0;o=0;s--){for(var c=0;s>=0&&a[s]===0;s--)c++;if(s>=0&&c++,o=o.dblp(c),s<0)break;var d=a[s];Q9(d!==0),e.type==="affine"?d>0?o=o.mixedAdd(u[d-1>>1]):o=o.mixedAdd(u[-d-1>>1].neg()):d>0?o=o.add(u[d-1>>1]):o=o.add(u[-d-1>>1].neg())}return e.type==="affine"?o.toP():o};X2.prototype._wnafMulAdd=function(e,r,n,i,u){var a=this._wnafT1,o=this._wnafT2,s=this._wnafT3,c=0,d,y,A;for(d=0;d=1;d-=2){var T=d-1,U=d;if(a[T]!==1||a[U]!==1){s[T]=J9(n[T],a[T],this._bitLength),s[U]=J9(n[U],a[U],this._bitLength),c=Math.max(s[T].length,c),c=Math.max(s[U].length,c);continue}var P=[r[T],null,null,r[U]];r[T].y.cmp(r[U].y)===0?(P[1]=r[T].add(r[U]),P[2]=r[T].toJ().mixedAdd(r[U].neg())):r[T].y.cmp(r[U].y.redNeg())===0?(P[1]=r[T].toJ().mixedAdd(r[U]),P[2]=r[T].add(r[U].neg())):(P[1]=r[T].toJ().mixedAdd(r[U]),P[2]=r[T].toJ().mixedAdd(r[U].neg()));var _=[-3,-1,-5,-7,0,7,5,1,3],B=VE(n[T],n[U]);for(c=Math.max(B[0].length,c),s[T]=new Array(c),s[U]=new Array(c),y=0;y=0;d--){for(var Z=0;d>=0;){var e0=!0;for(y=0;y=0&&Z++,G=G.dblp(Z),d<0)break;for(y=0;y0?A=o[y][o0-1>>1]:o0<0&&(A=o[y][-o0-1>>1].neg()),A.type==="affine"?G=G.mixedAdd(A):G=G.add(A))}}for(d=0;d=Math.ceil((e.bitLength()+1)/r.step):!1};It.prototype._getDoubles=function(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,u=0;u=0&&(C=c,T=d),y.negative&&(y=y.neg(),A=A.neg()),C.negative&&(C=C.neg(),T=T.neg()),[{a:y,b:A},{a:C,b:T}]};Rt.prototype._endoSplit=function(e){var r=this.endo.basis,n=r[0],i=r[1],u=i.b.mul(e).divRound(this.n),a=n.b.neg().mul(e).divRound(this.n),o=u.mul(n.a),s=a.mul(i.a),c=u.mul(n.b),d=a.mul(i.b),y=e.sub(o).sub(s),A=c.add(d).neg();return{k1:y,k2:A}};Rt.prototype.pointFromX=function(e,r){e=new a1(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(i.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var u=i.fromRed().isOdd();return(r&&!u||!r&&u)&&(i=i.redNeg()),this.point(e,i)};Rt.prototype.validate=function(e){if(e.inf)return!0;var r=e.x,n=e.y,i=this.a.redMul(r),u=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return n.redSqr().redISub(u).cmpn(0)===0};Rt.prototype._endoWnafMulAdd=function(e,r,n){for(var i=this._endoWnafT1,u=this._endoWnafT2,a=0;a":""};xe.prototype.isInfinity=function(){return this.inf};xe.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var r=this.y.redSub(e.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(e.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(e.x),i=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)};xe.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),i=e.redInvm(),u=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(i),a=u.redSqr().redISub(this.x.redAdd(this.x)),o=u.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)};xe.prototype.getX=function(){return this.x.fromRed()};xe.prototype.getY=function(){return this.y.fromRed()};xe.prototype.mul=function(e){return e=new a1(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};xe.prototype.mulAdd=function(e,r,n){var i=[this,r],u=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,u):this.curve._wnafMulAdd(1,i,u,2)};xe.prototype.jmulAdd=function(e,r,n){var i=[this,r],u=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,u,!0):this.curve._wnafMulAdd(1,i,u,2,!0)};xe.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};xe.prototype.neg=function(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,i=function(u){return u.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return r};xe.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function Se(t,e,r,n){On.BasePoint.call(this,t,"jacobian"),e===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new a1(0)):(this.x=new a1(e,16),this.y=new a1(r,16),this.z=new a1(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}P4(Se,On.BasePoint);Rt.prototype.jpoint=function(e,r,n){return new Se(this,e,r,n)};Se.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),r=e.redSqr(),n=this.x.redMul(r),i=this.y.redMul(r).redMul(e);return this.curve.point(n,i)};Se.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Se.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(r),u=e.x.redMul(n),a=this.y.redMul(r.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=i.redSub(u),c=a.redSub(o);if(s.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var d=s.redSqr(),y=d.redMul(s),A=i.redMul(d),C=c.redSqr().redIAdd(y).redISub(A).redISub(A),T=c.redMul(A.redISub(C)).redISub(a.redMul(y)),U=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(C,T,U)};Se.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr(),n=this.x,i=e.x.redMul(r),u=this.y,a=e.y.redMul(r).redMul(this.z),o=n.redSub(i),s=u.redSub(a);if(o.cmpn(0)===0)return s.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),d=c.redMul(o),y=n.redMul(c),A=s.redSqr().redIAdd(d).redISub(y).redISub(y),C=s.redMul(y.redISub(A)).redISub(u.redMul(d)),T=this.z.redMul(o);return this.curve.jpoint(A,C,T)};Se.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r=0)return!1;if(n.redIAdd(u),this.x.cmp(n)===0)return!0}};Se.prototype.inspect=function(){return this.isInfinity()?"":""};Se.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var l9=oi(function(t,e){var r=e;r.base=On,r.short=QE,r.mont=null,r.edwards=null}),c9=oi(function(t,e){var r=e,n=wt.assert;function i(o){o.type==="short"?this.curve=new l9.short(o):o.type==="edwards"?this.curve=new l9.edwards(o):this.curve=new l9.mont(o),this.g=this.curve.g,this.n=this.curve.n,this.hash=o.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}r.PresetCurve=i;function u(o,s){Object.defineProperty(r,o,{configurable:!0,enumerable:!0,get:function(){var c=new i(s);return Object.defineProperty(r,o,{configurable:!0,enumerable:!0,value:c}),c}})}u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:nt.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:nt.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:nt.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:nt.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:nt.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:nt.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:nt.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var a;try{a=null.crash()}catch{a=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:nt.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",a]})});function z2(t){if(!(this instanceof z2))return new z2(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Qt.toArray(t.entropy,t.entropyEnc||"hex"),r=Qt.toArray(t.nonce,t.nonceEnc||"hex"),n=Qt.toArray(t.pers,t.persEnc||"hex");T4(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var op=z2;z2.prototype._init=function(e,r,n){var i=e.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var u=0;u=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};z2.prototype.generate=function(e,r,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(i=n,n=r,r=null),n&&(n=Qt.toArray(n,i||"hex"),this._update(n));for(var u=[];u.length"};var YE=wt.assert;function U8(t,e){if(t instanceof U8)return t;this._importDER(t,e)||(YE(t.r&&t.s,"Signature without r or s"),this.r=new a1(t.r,16),this.s=new a1(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var I8=U8;function XE(){this.place=0}function Na(t,e){var r=t[e.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var i=0,u=0,a=e.place;u>>=0;return i<=127?!1:(e.place=a,i)}function gl(t){for(var e=0,r=t.length-1;!t[e]&&!(t[e+1]&128)&&e>>3);for(t.push(r|128);--r;)t.push(e>>>(r<<3)&255);t.push(e)}U8.prototype.toDER=function(e){var r=this.r.toArray(),n=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),n[0]&128&&(n=[0].concat(n)),r=gl(r),n=gl(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];Ma(i,r.length),i=i.concat(r),i.push(2),Ma(i,n.length);var u=i.concat(n),a=[48];return Ma(a,u.length),a=a.concat(u),wt.encode(a,e)};var ZE=function(){throw new Error("unsupported")},sp=wt.assert;function Ut(t){if(!(this instanceof Ut))return new Ut(t);typeof t=="string"&&(sp(Object.prototype.hasOwnProperty.call(c9,t),"Unknown curve "+t),t=c9[t]),t instanceof c9.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var eC=Ut;Ut.prototype.keyPair=function(e){return new N4(this,e)};Ut.prototype.keyFromPrivate=function(e,r){return N4.fromPrivate(this,e,r)};Ut.prototype.keyFromPublic=function(e,r){return N4.fromPublic(this,e,r)};Ut.prototype.genKeyPair=function(e){e||(e={});for(var r=new op({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||ZE(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new a1(2));;){var u=new a1(r.generate(n));if(!(u.cmp(i)>0))return u.iaddn(1),this.keyFromPrivate(u)}};Ut.prototype._truncateToN=function(e,r){var n=e.byteLength()*8-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!r&&e.cmp(this.n)>=0?e.sub(this.n):e};Ut.prototype.sign=function(e,r,n,i){typeof n=="object"&&(i=n,n=null),i||(i={}),r=this.keyFromPrivate(r,n),e=this._truncateToN(new a1(e,16));for(var u=this.n.byteLength(),a=r.getPrivate().toArray("be",u),o=e.toArray("be",u),s=new op({hash:this.hash,entropy:a,nonce:o,pers:i.pers,persEnc:i.persEnc||"utf8"}),c=this.n.sub(new a1(1)),d=0;;d++){var y=i.k?i.k(d):new a1(s.generate(this.n.byteLength()));if(y=this._truncateToN(y,!0),!(y.cmpn(1)<=0||y.cmp(c)>=0)){var A=this.g.mul(y);if(!A.isInfinity()){var C=A.getX(),T=C.umod(this.n);if(T.cmpn(0)!==0){var U=y.invm(this.n).mul(T.mul(r.getPrivate()).iadd(e));if(U=U.umod(this.n),U.cmpn(0)!==0){var P=(A.getY().isOdd()?1:0)|(C.cmp(T)!==0?2:0);return i.canonical&&U.cmp(this.nh)>0&&(U=this.n.sub(U),P^=1),new I8({r:T,s:U,recoveryParam:P})}}}}}};Ut.prototype.verify=function(e,r,n,i){e=this._truncateToN(new a1(e,16)),n=this.keyFromPublic(n,i),r=new I8(r,"hex");var u=r.r,a=r.s;if(u.cmpn(1)<0||u.cmp(this.n)>=0||a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var o=a.invm(this.n),s=o.mul(e).umod(this.n),c=o.mul(u).umod(this.n),d;return this.curve._maxwellTrick?(d=this.g.jmulAdd(s,n.getPublic(),c),d.isInfinity()?!1:d.eqXToP(u)):(d=this.g.mulAdd(s,n.getPublic(),c),d.isInfinity()?!1:d.getX().umod(this.n).cmp(u)===0)};Ut.prototype.recoverPubKey=function(t,e,r,n){sp((3&r)===r,"The recovery param is more than two bits"),e=new I8(e,n);var i=this.n,u=new a1(t),a=e.r,o=e.s,s=r&1,c=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");c?a=this.curve.pointFromX(a.add(this.curve.n),s):a=this.curve.pointFromX(a,s);var d=e.r.invm(i),y=i.sub(u).mul(d).umod(i),A=o.mul(d).umod(i);return this.g.mulAdd(y,a,A)};Ut.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new I8(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var i=0;i<4;i++){var u;try{u=this.recoverPubKey(t,e,i)}catch{continue}if(u.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var tC=oi(function(t,e){var r=e;r.version="6.5.4",r.utils=wt,r.rand=function(){throw new Error("unsupported")},r.curve=l9,r.curves=c9,r.ec=eC,r.eddsa=null}),rC=tC.ec;const nC="signing-key/5.7.0",rs=new r0(nC);let Ua=null;function cr(){return Ua||(Ua=new rC("secp256k1")),Ua}class vn{constructor(e){b0(this,"curve","secp256k1"),b0(this,"privateKey",N0(e)),kr(this.privateKey)!==32&&rs.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const r=cr().keyFromPrivate(k0(this.privateKey));b0(this,"publicKey","0x"+r.getPublic(!1,"hex")),b0(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),b0(this,"_isSigningKey",!0)}_addPoint(e){const r=cr().keyFromPublic(k0(this.publicKey)),n=cr().keyFromPublic(k0(e));return"0x"+r.pub.add(n.pub).encodeCompressed("hex")}signDigest(e){const r=cr().keyFromPrivate(k0(this.privateKey)),n=k0(e);n.length!==32&&rs.throwArgumentError("bad digest length","digest",e);const i=r.sign(n,{canonical:!0});return In({recoveryParam:i.recoveryParam,r:j1("0x"+i.r.toString(16),32),s:j1("0x"+i.s.toString(16),32)})}computeSharedSecret(e){const r=cr().keyFromPrivate(k0(this.privateKey)),n=cr().keyFromPublic(k0(M4(e)));return j1("0x"+r.derive(n.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function fp(t,e){const r=In(e),n={r:k0(r.r),s:k0(r.s)};return"0x"+cr().recoverPubKey(k0(t),n,r.recoveryParam).encode("hex",!1)}function M4(t,e){const r=k0(t);if(r.length===32){const n=new vn(r);return e?"0x"+cr().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}else{if(r.length===33)return e?N0(r):"0x"+cr().keyFromPublic(r).getPublic(!1,"hex");if(r.length===65)return e?"0x"+cr().keyFromPublic(r).getPublic(!0,"hex"):N0(r)}return rs.throwArgumentError("invalid public or private key","key","[REDACTED]")}const iC=Object.freeze(Object.defineProperty({__proto__:null,SigningKey:vn,computePublicKey:M4,recoverPublicKey:fp},Symbol.toStringTag,{value:"Module"})),uC="transactions/5.7.0",Re=new r0(uC);var ns;(function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"})(ns||(ns={}));function U4(t){return t==="0x"?null:I1(t)}function Ie(t){return t==="0x"?vh:P0.from(t)}const aC=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],oC={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function I2(t){const e=M4(t);return I1(ue(O1(ue(e,1)),12))}function Xu(t,e){return I2(fp(k0(t),e))}function ht(t,e){const r=Er(P0.from(t).toHexString());return r.length>32&&Re.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function Ia(t,e){return{address:I1(t),storageKeys:(e||[]).map((r,n)=>(kr(r)!==32&&Re.throwArgumentError("invalid access list storageKey",`accessList[${t}:${n}]`,r),r.toLowerCase()))}}function Z2(t){if(Array.isArray(t))return t.map((r,n)=>Array.isArray(r)?(r.length>2&&Re.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${n}]`,r),Ia(r[0],r[1])):Ia(r.address,r.storageKeys));const e=Object.keys(t).map(r=>{const n=t[r].reduce((i,u)=>(i[u]=!0,i),{});return Ia(r,Object.keys(n).sort())});return e.sort((r,n)=>r.address.localeCompare(n.address)),e}function lp(t){return Z2(t).map(e=>[e.address,e.storageKeys])}function cp(t,e){if(t.gasPrice!=null){const n=P0.from(t.gasPrice),i=P0.from(t.maxFeePerGas||0);n.eq(i)||Re.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:i})}const r=[ht(t.chainId||0,"chainId"),ht(t.nonce||0,"nonce"),ht(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),ht(t.maxFeePerGas||0,"maxFeePerGas"),ht(t.gasLimit||0,"gasLimit"),t.to!=null?I1(t.to):"0x",ht(t.value||0,"value"),t.data||"0x",lp(t.accessList||[])];if(e){const n=In(e);r.push(ht(n.recoveryParam,"recoveryParam")),r.push(Er(n.r)),r.push(Er(n.s))}return Ge(["0x02",Sn(r)])}function dp(t,e){const r=[ht(t.chainId||0,"chainId"),ht(t.nonce||0,"nonce"),ht(t.gasPrice||0,"gasPrice"),ht(t.gasLimit||0,"gasLimit"),t.to!=null?I1(t.to):"0x",ht(t.value||0,"value"),t.data||"0x",lp(t.accessList||[])];if(e){const n=In(e);r.push(ht(n.recoveryParam,"recoveryParam")),r.push(Er(n.r)),r.push(Er(n.s))}return Ge(["0x01",Sn(r)])}function sC(t,e){w4(t,oC);const r=[];aC.forEach(function(a){let o=t[a.name]||[];const s={};a.numeric&&(s.hexPad="left"),o=k0(N0(o,s)),a.length&&o.length!==a.length&&o.length>0&&Re.throwArgumentError("invalid length for "+a.name,"transaction:"+a.name,o),a.maxLength&&(o=Er(o),o.length>a.maxLength&&Re.throwArgumentError("invalid length for "+a.name,"transaction:"+a.name,o)),r.push(N0(o))});let n=0;if(t.chainId!=null?(n=t.chainId,typeof n!="number"&&Re.throwArgumentError("invalid transaction.chainId","transaction",t)):e&&!Ju(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),n!==0&&(r.push(N0(n)),r.push("0x"),r.push("0x")),!e)return Sn(r);const i=In(e);let u=27+i.recoveryParam;return n!==0?(r.pop(),r.pop(),r.pop(),u+=n*2+8,i.v>28&&i.v!==u&&Re.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):i.v!==u&&Re.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),r.push(N0(u)),r.push(Er(k0(i.r))),r.push(Er(k0(i.s))),Sn(r)}function is(t,e){if(t.type==null||t.type===0)return t.accessList!=null&&Re.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",t),sC(t,e);switch(t.type){case 1:return dp(t,e);case 2:return cp(t,e)}return Re.throwError(`unsupported transaction type: ${t.type}`,r0.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:t.type})}function hp(t,e,r){try{const n=Ie(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");t.v=n}catch{Re.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=j1(e[1],32),t.s=j1(e[2],32);try{const n=O1(r(t));t.from=Xu(n,{r:t.r,s:t.s,recoveryParam:t.v})}catch{}}function fC(t){const e=_8(t.slice(1));e.length!==9&&e.length!==12&&Re.throwArgumentError("invalid component count for transaction type: 2","payload",N0(t));const r=Ie(e[2]),n=Ie(e[3]),i={type:2,chainId:Ie(e[0]).toNumber(),nonce:Ie(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:Ie(e[4]),to:U4(e[5]),value:Ie(e[6]),data:e[7],accessList:Z2(e[8])};return e.length===9||(i.hash=O1(t),hp(i,e.slice(9),cp)),i}function lC(t){const e=_8(t.slice(1));e.length!==8&&e.length!==11&&Re.throwArgumentError("invalid component count for transaction type: 1","payload",N0(t));const r={type:1,chainId:Ie(e[0]).toNumber(),nonce:Ie(e[1]).toNumber(),gasPrice:Ie(e[2]),gasLimit:Ie(e[3]),to:U4(e[4]),value:Ie(e[5]),data:e[6],accessList:Z2(e[7])};return e.length===8||(r.hash=O1(t),hp(r,e.slice(8),dp)),r}function cC(t){const e=_8(t);e.length!==9&&e.length!==6&&Re.throwArgumentError("invalid raw transaction","rawTransaction",t);const r={nonce:Ie(e[0]).toNumber(),gasPrice:Ie(e[1]),gasLimit:Ie(e[2]),to:U4(e[3]),value:Ie(e[4]),data:e[5],chainId:0};if(e.length===6)return r;try{r.v=P0.from(e[6]).toNumber()}catch{return r}if(r.r=j1(e[7],32),r.s=j1(e[8],32),P0.from(r.r).isZero()&&P0.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27;const i=e.slice(0,6);r.chainId!==0&&(i.push(N0(r.chainId)),i.push("0x"),i.push("0x"),n-=r.chainId*2+8);const u=O1(Sn(i));try{r.from=Xu(u,{r:N0(r.r),s:N0(r.s),recoveryParam:n})}catch{}r.hash=O1(t)}return r.type=null,r}function pp(t){const e=k0(t);if(e[0]>127)return cC(e);switch(e[0]){case 1:return lC(e);case 2:return fC(e)}return Re.throwError(`unsupported transaction type: ${e[0]}`,r0.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}const dC=Object.freeze(Object.defineProperty({__proto__:null,get TransactionTypes(){return ns},accessListify:Z2,computeAddress:I2,parse:pp,recoverAddress:Xu,serialize:is},Symbol.toStringTag,{value:"Module"})),Di=new r0(je);class q0{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},r=this.address.bind(this),n=this.bigNumber.bind(this),i=this.blockTag.bind(this),u=this.data.bind(this),a=this.hash.bind(this),o=this.hex.bind(this),s=this.number.bind(this),c=this.type.bind(this),d=y=>this.data(y,!0);return e.transaction={hash:a,type:c,accessList:q0.allowNull(this.accessList.bind(this),null),blockHash:q0.allowNull(a,null),blockNumber:q0.allowNull(s,null),transactionIndex:q0.allowNull(s,null),confirmations:q0.allowNull(s,null),from:r,gasPrice:q0.allowNull(n),maxPriorityFeePerGas:q0.allowNull(n),maxFeePerGas:q0.allowNull(n),gasLimit:n,to:q0.allowNull(r,null),value:n,nonce:s,data:u,r:q0.allowNull(this.uint256),s:q0.allowNull(this.uint256),v:q0.allowNull(s),creates:q0.allowNull(r,null),raw:q0.allowNull(u)},e.transactionRequest={from:q0.allowNull(r),nonce:q0.allowNull(s),gasLimit:q0.allowNull(n),gasPrice:q0.allowNull(n),maxPriorityFeePerGas:q0.allowNull(n),maxFeePerGas:q0.allowNull(n),to:q0.allowNull(r),value:q0.allowNull(n),data:q0.allowNull(d),type:q0.allowNull(s),accessList:q0.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:s,blockNumber:s,transactionHash:a,address:r,topics:q0.arrayOf(a),data:u,logIndex:s,blockHash:a},e.receipt={to:q0.allowNull(this.address,null),from:q0.allowNull(this.address,null),contractAddress:q0.allowNull(r,null),transactionIndex:s,root:q0.allowNull(o),gasUsed:n,logsBloom:q0.allowNull(u),blockHash:a,transactionHash:a,logs:q0.arrayOf(this.receiptLog.bind(this)),blockNumber:s,confirmations:q0.allowNull(s,null),cumulativeGasUsed:n,effectiveGasPrice:q0.allowNull(n),status:q0.allowNull(s),type:c},e.block={hash:q0.allowNull(a),parentHash:a,number:s,timestamp:s,nonce:q0.allowNull(o),difficulty:this.difficulty.bind(this),gasLimit:n,gasUsed:n,miner:q0.allowNull(r),extraData:u,transactions:q0.allowNull(q0.arrayOf(a)),baseFeePerGas:q0.allowNull(n)},e.blockWithTransactions=q1(e.block),e.blockWithTransactions.transactions=q0.allowNull(q0.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:q0.allowNull(i,void 0),toBlock:q0.allowNull(i,void 0),blockHash:q0.allowNull(a,void 0),address:q0.allowNull(r,void 0),topics:q0.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:q0.allowNull(s),blockHash:q0.allowNull(a),transactionIndex:s,removed:q0.allowNull(this.boolean.bind(this)),address:r,data:q0.allowFalsish(u,"0x"),topics:q0.arrayOf(a),transactionHash:a,logIndex:s},e}accessList(e){return Z2(e||[])}number(e){return e==="0x"?0:P0.from(e).toNumber()}type(e){return e==="0x"||e==null?0:P0.from(e).toNumber()}bigNumber(e){return P0.from(e)}boolean(e){if(typeof e=="boolean")return e;if(typeof e=="string"){if(e=e.toLowerCase(),e==="true")return!0;if(e==="false")return!1}throw new Error("invalid boolean - "+e)}hex(e,r){return typeof e=="string"&&(!r&&e.substring(0,2)!=="0x"&&(e="0x"+e),s1(e))?e.toLowerCase():Di.throwArgumentError("invalid hash","value",e)}data(e,r){const n=this.hex(e,r);if(n.length%2!==0)throw new Error("invalid data; odd-length - "+e);return n}address(e){return I1(e)}callAddress(e){if(!s1(e,32))return null;const r=I1(ue(e,12));return r===Zv?null:r}contractAddress(e){return k8(e)}blockTag(e){if(e==null)return"latest";if(e==="earliest")return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if(typeof e=="number"||s1(e))return Qu(e);throw new Error("invalid blockTag")}hash(e,r){const n=this.hex(e,r);return kr(n)!==32?Di.throwArgumentError("invalid hash","value",e):n}difficulty(e){if(e==null)return null;const r=P0.from(e);try{return r.toNumber()}catch{}return null}uint256(e){if(!s1(e))throw new Error("invalid uint256");return j1(e,32)}_block(e,r){e.author!=null&&e.miner==null&&(e.miner=e.author);const n=e._difficulty!=null?e._difficulty:e.difficulty,i=q0.check(r,e);return i._difficulty=n==null?null:P0.from(n),i}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return q0.check(this.formats.transactionRequest,e)}transactionResponse(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&P0.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),e.input!=null&&e.data==null&&(e.data=e.input),e.to==null&&e.creates==null&&(e.creates=this.contractAddress(e)),(e.type===1||e.type===2)&&e.accessList==null&&(e.accessList=[]);const r=q0.check(this.formats.transaction,e);if(e.chainId!=null){let n=e.chainId;s1(n)&&(n=P0.from(n).toNumber()),r.chainId=n}else{let n=e.networkId;n==null&&r.v==null&&(n=e.chainId),s1(n)&&(n=P0.from(n).toNumber()),typeof n!="number"&&r.v!=null&&(n=(r.v-35)/2,n<0&&(n=0),n=parseInt(n)),typeof n!="number"&&(n=0),r.chainId=n}return r.blockHash&&r.blockHash.replace(/0/g,"")==="x"&&(r.blockHash=null),r}transaction(e){return pp(e)}receiptLog(e){return q0.check(this.formats.receiptLog,e)}receipt(e){const r=q0.check(this.formats.receipt,e);if(r.root!=null)if(r.root.length<=4){const n=P0.from(r.root).toNumber();n===0||n===1?(r.status!=null&&r.status!==n&&Di.throwArgumentError("alt-root-status/status mismatch","value",{root:r.root,status:r.status}),r.status=n,delete r.root):Di.throwArgumentError("invalid alt-root-status","value.root",r.root)}else r.root.length!==66&&Di.throwArgumentError("invalid root hash","value.root",r.root);return r.status!=null&&(r.byzantium=!0),r}topics(e){return Array.isArray(e)?e.map(r=>this.topics(r)):e!=null?this.hash(e,!0):null}filter(e){return q0.check(this.formats.filter,e)}filterLog(e){return q0.check(this.formats.filterLog,e)}static check(e,r){const n={};for(const i in e)try{const u=e[i](r[i]);u!==void 0&&(n[i]=u)}catch(u){throw u.checkKey=i,u.checkValue=r[i],u}return n}static allowNull(e,r){return function(n){return n==null?r:e(n)}}static allowFalsish(e,r){return function(n){return n?e(n):r}}static arrayOf(e){return function(r){if(!Array.isArray(r))throw new Error("not an array");const n=[];return r.forEach(function(i){n.push(e(i))}),n}}}function bp(t){return t&&typeof t.isCommunityResource=="function"}function us(t){return bp(t)&&t.isCommunityResource()}let xl=!1;function Zu(){xl||(xl=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}var u1=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const h1=new r0(je),hC=10;function vl(t){return t==null?"null":(kr(t)!==32&&h1.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function Al(t){for(t=t.slice();t.length>0&&t[t.length-1]==null;)t.pop();return t.map(e=>{if(Array.isArray(e)){const r={};e.forEach(i=>{r[vl(i)]=!0});const n=Object.keys(r);return n.sort(),n.join("|")}else return vl(e)}).join("&")}function pC(t){return t===""?[]:t.split(/&/g).map(e=>{if(e==="")return[];const r=e.split("|").map(n=>n==="null"?null:n);return r.length===1?r[0]:r})}function Yn(t){if(typeof t=="string"){if(t=t.toLowerCase(),kr(t)===32)return"tx:"+t;if(t.indexOf(":")===-1)return t}else{if(Array.isArray(t))return"filter:*:"+Al(t);if(Wv.isForkEvent(t))throw h1.warn("not implemented"),new Error("not implemented");if(t&&typeof t=="object")return"filter:"+(t.address||"*")+":"+Al(t.topics||[])}throw new Error("invalid event - "+t)}function _i(){return new Date().getTime()}function wl(t){return new Promise(e=>{setTimeout(e,t)})}const bC=["block","network","pending","poll"];class mC{constructor(e,r,n){b0(this,"tag",e),b0(this,"listener",r),b0(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return e[0]!=="tx"?null:e[1]}get filter(){const e=this.tag.split(":");if(e[0]!=="filter")return null;const r=e[1],n=pC(e[2]),i={};return n.length>0&&(i.topics=n),r&&r!=="*"&&(i.address=r),i}pollable(){return this.tag.indexOf(":")>=0||bC.indexOf(this.tag)>=0}}const yC={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function Ra(t){return j1(P0.from(t).toHexString(),32)}function El(t){return H6.encode(L1([t,ue(gt(gt(t)),0,4)]))}const mp=new RegExp("^(ipfs)://(.*)$","i"),Cl=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),mp,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function d9(t,e){try{return Y2(Tu(t,e))}catch{}return null}function Tu(t,e){if(t==="0x")return null;const r=P0.from(ue(t,e,e+32)).toNumber(),n=P0.from(ue(t,r,r+32)).toNumber();return ue(t,r+32,r+32+n)}function Oa(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):h1.throwArgumentError("unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}function Fl(t){const e=k0(t);if(e.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(e,32-e.length),r}function gC(t){if(t.length%32===0)return t;const e=new Uint8Array(Math.ceil(t.length/32)*32);return e.set(t),e}function yp(t){const e=[];let r=0;for(let n=0;nP0.from(e).eq(1)).catch(e=>{if(e.code===r0.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,r){return u1(this,void 0,void 0,function*(){const n={to:this.address,ccipReadEnabled:!0,data:Ge([e,Cr(this.name),r||"0x"])};let i=!1;(yield this.supportsWildcard())&&(i=!0,n.data=Ge(["0x9061b923",yp([Ph(this.name),n.data])]));try{let u=yield this.provider.call(n);return k0(u).length%32===4&&h1.throwError("resolver threw error",r0.errors.CALL_EXCEPTION,{transaction:n,data:u}),i&&(u=Tu(u,0)),u}catch(u){if(u.code===r0.errors.CALL_EXCEPTION)return null;throw u}})}_fetchBytes(e,r){return u1(this,void 0,void 0,function*(){const n=yield this._fetch(e,r);return n!=null?Tu(n,0):null})}_getAddress(e,r){const n=yC[String(e)];if(n==null&&h1.throwError(`unsupported coin type: ${e}`,r0.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),n.ilk==="eth")return this.provider.formatter.address(r);const i=k0(r);if(n.p2pkh!=null){const u=r.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(u){const a=parseInt(u[1],16);if(u[2].length===a*2&&a>=1&&a<=75)return El(L1([[n.p2pkh],"0x"+u[2]]))}}if(n.p2sh!=null){const u=r.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(u){const a=parseInt(u[1],16);if(u[2].length===a*2&&a>=1&&a<=75)return El(L1([[n.p2sh],"0x"+u[2]]))}}if(n.prefix!=null){const u=i[1];let a=i[0];if(a===0?u!==20&&u!==32&&(a=-1):a=-1,a>=0&&i.length===2+u&&u>=1&&u<=75){const o=yl.toWords(i.slice(2));return o.unshift(a),yl.encode(n.prefix,o)}}return null}getAddress(e){return u1(this,void 0,void 0,function*(){if(e==null&&(e=60),e===60)try{const i=yield this._fetch("0x3b3b57de");return i==="0x"||i===Ah?null:this.provider.formatter.callAddress(i)}catch(i){if(i.code===r0.errors.CALL_EXCEPTION)return null;throw i}const r=yield this._fetchBytes("0xf1cb7e06",Ra(e));if(r==null||r==="0x")return null;const n=this._getAddress(e,r);return n==null&&h1.throwError("invalid or unsupported coin data",r0.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:r}),n})}getAvatar(){return u1(this,void 0,void 0,function*(){const e=[{type:"name",content:this.name}];try{const r=yield this.getText("avatar");if(r==null)return null;for(let n=0;na[s])}return h1.throwError("invalid or unsupported content hash data",r0.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return u1(this,void 0,void 0,function*(){let r=H1(e);r=L1([Ra(64),Ra(r.length),r]),r.length%32!==0&&(r=L1([r,j1("0x",32-e.length%32)]));const n=yield this._fetchBytes("0x59d1d43c",N0(r));return n==null||n==="0x"?null:Y2(n)})}}let La=null,xC=1;class R8 extends Rn{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),b0(this,"anyNetwork",e==="any"),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(r=>{}),this._ready().catch(r=>{});else{const r=De(new.target,"getNetwork")(e);r?(b0(this,"_network",r),this.emit("network",r,null)):h1.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return u1(this,void 0,void 0,function*(){if(this._network==null){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch{}e==null&&(e=yield this.detectNetwork()),e||h1.throwError("no network detected",r0.errors.UNKNOWN_ERROR,{}),this._network==null&&(this.anyNetwork?this._network=e:b0(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return mn(()=>this._ready().then(e=>e,e=>{if(!(e.code===r0.errors.NETWORK_ERROR&&e.event==="noNetwork"))throw e}))}static getFormatter(){return La==null&&(La=new q0),La}static getNetwork(e){return E4(e??"homestead")}ccipReadFetch(e,r,n){return u1(this,void 0,void 0,function*(){if(this.disableCcipRead||n.length===0)return null;const i=e.to.toLowerCase(),u=r.toLowerCase(),a=[];for(let o=0;o=0?null:JSON.stringify({data:u,sender:i}),y=yield ai({url:c,errorPassThrough:!0},d,(C,T)=>(C.status=T.statusCode,C));if(y.data)return y.data;const A=y.message||"unknown error";if(y.status>=400&&y.status<500)return h1.throwError(`response not found during CCIP fetch: ${A}`,r0.errors.SERVER_ERROR,{url:s,errorMessage:A});a.push(A)}return h1.throwError(`error encountered during CCIP fetch: ${a.map(o=>JSON.stringify(o)).join(", ")}`,r0.errors.SERVER_ERROR,{urls:n,errorMessages:a})})}_getInternalBlockNumber(e){return u1(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const i=this._internalBlockNumber;try{const u=yield i;if(_i()-u.respTime<=e)return u.blockNumber;break}catch{if(this._internalBlockNumber===i)break}}const r=_i(),n=te({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(i=>null,i=>i)}).then(({blockNumber:i,networkError:u})=>{if(u)throw this._internalBlockNumber===n&&(this._internalBlockNumber=null),u;const a=_i();return i=P0.from(i).toNumber(),i{this._internalBlockNumber===n&&(this._internalBlockNumber=null)}),(yield n).blockNumber})}poll(){return u1(this,void 0,void 0,function*(){const e=xC++,r=[];let n=null;try{n=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(i){this.emit("error",i);return}if(this._setFastBlockNumber(n),this.emit("poll",e,n),n===this._lastBlockNumber){this.emit("didPoll",e);return}if(this._emitted.block===-2&&(this._emitted.block=n-1),Math.abs(this._emitted.block-n)>1e3)h1.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${n})`),this.emit("error",h1.makeError("network block skew detected",r0.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(let i=this._emitted.block+1;i<=n;i++)this.emit("block",i);this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach(i=>{if(i==="block")return;const u=this._emitted[i];u!=="pending"&&n-u>12&&delete this._emitted[i]})),this._lastBlockNumber===-2&&(this._lastBlockNumber=n-1),this._events.forEach(i=>{switch(i.type){case"tx":{const u=i.hash;let a=this.getTransactionReceipt(u).then(o=>(!o||o.blockNumber==null||(this._emitted["t:"+u]=o.blockNumber,this.emit(u,o)),null)).catch(o=>{this.emit("error",o)});r.push(a);break}case"filter":{if(!i._inflight){i._inflight=!0,i._lastBlockNumber===-2&&(i._lastBlockNumber=n-1);const u=i.filter;u.fromBlock=i._lastBlockNumber+1,u.toBlock=n;const a=u.toBlock-this._maxFilterBlockRange;a>u.fromBlock&&(u.fromBlock=a),u.fromBlock<0&&(u.fromBlock=0);const o=this.getLogs(u).then(s=>{i._inflight=!1,s.length!==0&&s.forEach(c=>{c.blockNumber>i._lastBlockNumber&&(i._lastBlockNumber=c.blockNumber),this._emitted["b:"+c.blockHash]=c.blockNumber,this._emitted["t:"+c.transactionHash]=c.blockNumber,this.emit(u,c)})}).catch(s=>{this.emit("error",s),i._inflight=!1});r.push(o)}break}}}),this._lastBlockNumber=n,Promise.all(r).then(()=>{this.emit("didPoll",e)}).catch(i=>{this.emit("error",i)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return u1(this,void 0,void 0,function*(){return h1.throwError("provider does not support network detection",r0.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return u1(this,void 0,void 0,function*(){const e=yield this._ready(),r=yield this.detectNetwork();if(e.chainId!==r.chainId){if(this.anyNetwork)return this._network=r,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",r,e),yield wl(0),this._network;const n=h1.makeError("underlying network changed",r0.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:r});throw this.emit("error",n),n}return e})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),this._fastBlockNumber!=null?this._fastBlockNumber:-1}get polling(){return this._poller!=null}set polling(e){e&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if(typeof e!="number"||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const e=_i();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(r=>((this._fastBlockNumber==null||r>this._fastBlockNumber)&&(this._fastBlockNumber=r),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){this._fastBlockNumber!=null&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,r,n){return u1(this,void 0,void 0,function*(){return this._waitForTransaction(e,r??1,n||0,null)})}_waitForTransaction(e,r,n,i){return u1(this,void 0,void 0,function*(){const u=yield this.getTransactionReceipt(e);return(u?u.confirmations:0)>=r?u:new Promise((a,o)=>{const s=[];let c=!1;const d=function(){return c?!0:(c=!0,s.forEach(A=>{A()}),!1)},y=A=>{A.confirmations{this.removeListener(e,y)}),i){let A=i.startBlock,C=null;const T=U=>u1(this,void 0,void 0,function*(){c||(yield wl(1e3),this.getTransactionCount(i.from).then(P=>u1(this,void 0,void 0,function*(){if(!c){if(P<=i.nonce)A=U;else{{const _=yield this.getTransaction(e);if(_&&_.blockNumber!=null)return}for(C==null&&(C=A-3,C{c||this.once("block",T)}))});if(c)return;this.once("block",T),s.push(()=>{this.removeListener("block",T)})}if(typeof n=="number"&&n>0){const A=setTimeout(()=>{d()||o(h1.makeError("timeout exceeded",r0.errors.TIMEOUT,{timeout:n}))},n);A.unref&&A.unref(),s.push(()=>{clearTimeout(A)})}})})}getBlockNumber(){return u1(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return u1(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return P0.from(e)}catch(r){return h1.throwError("bad result from backend",r0.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:r})}})}getBalance(e,r){return u1(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield te({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getBalance",n);try{return P0.from(i)}catch(u){return h1.throwError("bad result from backend",r0.errors.SERVER_ERROR,{method:"getBalance",params:n,result:i,error:u})}})}getTransactionCount(e,r){return u1(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield te({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getTransactionCount",n);try{return P0.from(i).toNumber()}catch(u){return h1.throwError("bad result from backend",r0.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:i,error:u})}})}getCode(e,r){return u1(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield te({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getCode",n);try{return N0(i)}catch(u){return h1.throwError("bad result from backend",r0.errors.SERVER_ERROR,{method:"getCode",params:n,result:i,error:u})}})}getStorageAt(e,r,n){return u1(this,void 0,void 0,function*(){yield this.getNetwork();const i=yield te({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Promise.resolve(r).then(a=>Qu(a))}),u=yield this.perform("getStorageAt",i);try{return N0(u)}catch(a){return h1.throwError("bad result from backend",r0.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:u,error:a})}})}_wrapTransaction(e,r,n){if(r!=null&&kr(r)!==32)throw new Error("invalid response - sendTransaction");const i=e;return r!=null&&e.hash!==r&&h1.throwError("Transaction hash mismatch from Provider.sendTransaction.",r0.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:r}),i.wait=(u,a)=>u1(this,void 0,void 0,function*(){u==null&&(u=1),a==null&&(a=0);let o;u!==0&&n!=null&&(o={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:n});const s=yield this._waitForTransaction(e.hash,u,a,o);return s==null&&u===0?null:(this._emitted["t:"+e.hash]=s.blockNumber,s.status===0&&h1.throwError("transaction failed",r0.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:s}),s)}),i}sendTransaction(e){return u1(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Promise.resolve(e).then(u=>N0(u)),n=this.formatter.transaction(e);n.confirmations==null&&(n.confirmations=0);const i=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const u=yield this.perform("sendTransaction",{signedTransaction:r});return this._wrapTransaction(n,u,i)}catch(u){throw u.transaction=n,u.transactionHash=n.hash,u}})}_getTransactionRequest(e){return u1(this,void 0,void 0,function*(){const r=yield e,n={};return["from","to"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(u=>u?this._getAddress(u):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(u=>u?P0.from(u):null))}),["type"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(u=>u??null))}),r.accessList&&(n.accessList=this.formatter.accessList(r.accessList)),["data"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(u=>u?N0(u):null))}),this.formatter.transactionRequest(yield te(n))})}_getFilter(e){return u1(this,void 0,void 0,function*(){e=yield e;const r={};return e.address!=null&&(r.address=this._getAddress(e.address)),["blockHash","topics"].forEach(n=>{e[n]!=null&&(r[n]=e[n])}),["fromBlock","toBlock"].forEach(n=>{e[n]!=null&&(r[n]=this._getBlockTag(e[n]))}),this.formatter.filter(yield te(r))})}_call(e,r,n){return u1(this,void 0,void 0,function*(){n>=hC&&h1.throwError("CCIP read exceeded maximum redirections",r0.errors.SERVER_ERROR,{redirects:n,transaction:e});const i=e.to,u=yield this.perform("call",{transaction:e,blockTag:r});if(n>=0&&r==="latest"&&i!=null&&u.substring(0,10)==="0x556f1830"&&kr(u)%32===4)try{const a=ue(u,4),o=ue(a,0,32);P0.from(o).eq(i)||h1.throwError("CCIP Read sender did not match",r0.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:u});const s=[],c=P0.from(ue(a,32,64)).toNumber(),d=P0.from(ue(a,c,c+32)).toNumber(),y=ue(a,c+32);for(let _=0;_u1(this,void 0,void 0,function*(){const u=yield this.perform("getBlock",i);if(u==null)return i.blockHash!=null&&this._emitted["b:"+i.blockHash]==null||i.blockTag!=null&&n>this._emitted.block?null:void 0;if(r){let a=null;for(let s=0;sthis._wrapTransaction(s)),o}return this.formatter.block(u)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return u1(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return mn(()=>u1(this,void 0,void 0,function*(){const n=yield this.perform("getTransaction",r);if(n==null)return this._emitted["t:"+e]==null?null:void 0;const i=this.formatter.transactionResponse(n);if(i.blockNumber==null)i.confirmations=0;else if(i.confirmations==null){let a=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;a<=0&&(a=1),i.confirmations=a}return this._wrapTransaction(i)}),{oncePoll:this})})}getTransactionReceipt(e){return u1(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return mn(()=>u1(this,void 0,void 0,function*(){const n=yield this.perform("getTransactionReceipt",r);if(n==null)return this._emitted["t:"+e]==null?null:void 0;if(n.blockHash==null)return;const i=this.formatter.receipt(n);if(i.blockNumber==null)i.confirmations=0;else if(i.confirmations==null){let a=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;a<=0&&(a=1),i.confirmations=a}return i}),{oncePoll:this})})}getLogs(e){return u1(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield te({filter:this._getFilter(e)}),n=yield this.perform("getLogs",r);return n.forEach(i=>{i.removed==null&&(i.removed=!1)}),q0.arrayOf(this.formatter.filterLog.bind(this.formatter))(n)})}getEtherPrice(){return u1(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return u1(this,void 0,void 0,function*(){if(e=yield e,typeof e=="number"&&e<0){e%1&&h1.throwArgumentError("invalid BlockTag","blockTag",e);let r=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return r+=e,r<0&&(r=0),this.formatter.blockTag(r)}return this.formatter.blockTag(e)})}getResolver(e){return u1(this,void 0,void 0,function*(){let r=e;for(;;){if(r===""||r==="."||e!=="eth"&&r==="eth")return null;const n=yield this._getResolver(r,"getResolver");if(n!=null){const i=new as(this,n,e);return r!==e&&!(yield i.supportsWildcard())?null:i}r=r.split(".").slice(1).join(".")}})}_getResolver(e,r){return u1(this,void 0,void 0,function*(){r==null&&(r="ENS");const n=yield this.getNetwork();n.ensAddress||h1.throwError("network does not support ENS",r0.errors.UNSUPPORTED_OPERATION,{operation:r,network:n.name});try{const i=yield this.call({to:n.ensAddress,data:"0x0178b8bf"+Cr(e).substring(2)});return this.formatter.callAddress(i)}catch{}return null})}resolveName(e){return u1(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(n){if(s1(e))throw n}typeof e!="string"&&h1.throwArgumentError("invalid ENS name","name",e);const r=yield this.getResolver(e);return r?yield r.getAddress():null})}lookupAddress(e){return u1(this,void 0,void 0,function*(){e=yield e,e=this.formatter.address(e);const r=e.substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(r,"lookupAddress");if(n==null)return null;const i=d9(yield this.call({to:n,data:"0x691f3431"+Cr(r).substring(2)}),0);return(yield this.resolveName(i))!=e?null:i})}getAvatar(e){return u1(this,void 0,void 0,function*(){let r=null;if(s1(e)){const u=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",a=yield this._getResolver(u,"getAvatar");if(!a)return null;r=new as(this,a,u);try{const o=yield r.getAvatar();if(o)return o.url}catch(o){if(o.code!==r0.errors.CALL_EXCEPTION)throw o}try{const o=d9(yield this.call({to:a,data:"0x691f3431"+Cr(u).substring(2)}),0);r=yield this.getResolver(o)}catch(o){if(o.code!==r0.errors.CALL_EXCEPTION)throw o;return null}}else if(r=yield this.getResolver(e),!r)return null;const n=yield r.getAvatar();return n==null?null:n.url})}perform(e,r){return h1.throwError(e+" not implemented",r0.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter(r=>r.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(r=>r.pollable()).length>0}_addEventListener(e,r,n){const i=new mC(Yn(e),r,n);return this._events.push(i),this._startEvent(i),this}on(e,r){return this._addEventListener(e,r,!1)}once(e,r){return this._addEventListener(e,r,!0)}emit(e,...r){let n=!1,i=[],u=Yn(e);return this._events=this._events.filter(a=>a.tag!==u?!0:(setTimeout(()=>{a.listener.apply(this,r)},0),n=!0,a.once?(i.push(a),!1):!0)),i.forEach(a=>{this._stopEvent(a)}),n}listenerCount(e){if(!e)return this._events.length;let r=Yn(e);return this._events.filter(n=>n.tag===r).length}listeners(e){if(e==null)return this._events.map(n=>n.listener);let r=Yn(e);return this._events.filter(n=>n.tag===r).map(n=>n.listener)}off(e,r){if(r==null)return this.removeAllListeners(e);const n=[];let i=!1,u=Yn(e);return this._events=this._events.filter(a=>a.tag!==u||a.listener!=r||i?!0:(i=!0,n.push(a),!1)),n.forEach(a=>{this._stopEvent(a)}),this}removeAllListeners(e){let r=[];if(e==null)r=this._events,this._events=[];else{const n=Yn(e);this._events=this._events.filter(i=>i.tag!==n?!0:(r.push(i),!1))}return r.forEach(n=>{this._stopEvent(n)}),this}}const vC="abstract-signer/5.7.0";var zt=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const Ct=new r0(vC),AC=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],wC=[r0.errors.INSUFFICIENT_FUNDS,r0.errors.NONCE_EXPIRED,r0.errors.REPLACEMENT_UNDERPRICED];class Ln{constructor(){Ct.checkAbstract(new.target,Ln),b0(this,"_isSigner",!0)}getBalance(e){return zt(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return zt(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return zt(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const r=yield te(this.checkTransaction(e));return yield this.provider.estimateGas(r)})}call(e,r){return zt(this,void 0,void 0,function*(){this._checkProvider("call");const n=yield te(this.checkTransaction(e));return yield this.provider.call(n,r)})}sendTransaction(e){return zt(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const r=yield this.populateTransaction(e),n=yield this.signTransaction(r);return yield this.provider.sendTransaction(n)})}getChainId(){return zt(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return zt(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return zt(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return zt(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(const n in e)AC.indexOf(n)===-1&&Ct.throwArgumentError("invalid transaction key: "+n,"transaction",e);const r=q1(e);return r.from==null?r.from=this.getAddress():r.from=Promise.all([Promise.resolve(r.from),this.getAddress()]).then(n=>(n[0].toLowerCase()!==n[1].toLowerCase()&&Ct.throwArgumentError("from address mismatch","transaction",e),n[0])),r}populateTransaction(e){return zt(this,void 0,void 0,function*(){const r=yield te(this.checkTransaction(e));r.to!=null&&(r.to=Promise.resolve(r.to).then(i=>zt(this,void 0,void 0,function*(){if(i==null)return null;const u=yield this.resolveName(i);return u==null&&Ct.throwArgumentError("provided ENS name resolves to null","tx.to",i),u})),r.to.catch(i=>{}));const n=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null;if(r.gasPrice!=null&&(r.type===2||n)?Ct.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(r.type===0||r.type===1)&&n&&Ct.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null)r.type=2;else if(r.type===0||r.type===1)r.gasPrice==null&&(r.gasPrice=this.getGasPrice());else{const i=yield this.getFeeData();if(r.type==null)if(i.maxFeePerGas!=null&&i.maxPriorityFeePerGas!=null)if(r.type=2,r.gasPrice!=null){const u=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=u,r.maxPriorityFeePerGas=u}else r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas);else i.gasPrice!=null?(n&&Ct.throwError("network does not support EIP-1559",r0.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=i.gasPrice),r.type=0):Ct.throwError("failed to get consistent fee data",r0.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else r.type===2&&(r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas))}return r.nonce==null&&(r.nonce=this.getTransactionCount("pending")),r.gasLimit==null&&(r.gasLimit=this.estimateGas(r).catch(i=>{if(wC.indexOf(i.code)>=0)throw i;return Ct.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",r0.errors.UNPREDICTABLE_GAS_LIMIT,{error:i,tx:r})})),r.chainId==null?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then(i=>(i[1]!==0&&i[0]!==i[1]&&Ct.throwArgumentError("chainId address mismatch","transaction",e),i[0])),yield te(r)})}_checkProvider(e){this.provider||Ct.throwError("missing provider",r0.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class I4 extends Ln{constructor(e,r){super(),b0(this,"address",e),b0(this,"provider",r||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,r){return Promise.resolve().then(()=>{Ct.throwError(e,r0.errors.UNSUPPORTED_OPERATION,{operation:r})})}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,r,n){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new I4(this.address,e)}}var Lr=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const fe=new r0(je),EC=["call","estimateGas"];function Yi(t,e){if(t==null)return null;if(typeof t.message=="string"&&t.message.match("reverted")){const r=s1(t.data)?t.data:null;if(!e||r)return{message:t.message,data:r}}if(typeof t=="object"){for(const r in t){const n=Yi(t[r],e);if(n)return n}return null}if(typeof t=="string")try{return Yi(JSON.parse(t),e)}catch{}return null}function gp(t,e,r){const n=r.transaction||r.signedTransaction;if(t==="call"){const u=Yi(e,!0);if(u)return u.data;fe.throwError("missing revert data in call exception; Transaction reverted without a reason string",r0.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:e})}if(t==="estimateGas"){let u=Yi(e.body,!1);u==null&&(u=Yi(e,!1)),u&&fe.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",r0.errors.UNPREDICTABLE_GAS_LIMIT,{reason:u.message,method:t,transaction:n,error:e})}let i=e.message;throw e.code===r0.errors.SERVER_ERROR&&e.error&&typeof e.error.message=="string"?i=e.error.message:typeof e.body=="string"?i=e.body:typeof e.responseText=="string"&&(i=e.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&fe.throwError("insufficient funds for intrinsic transaction cost",r0.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:n}),i.match(/nonce (is )?too low/i)&&fe.throwError("nonce has already been used",r0.errors.NONCE_EXPIRED,{error:e,method:t,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&fe.throwError("replacement fee too low",r0.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:n}),i.match(/only replay-protected/i)&&fe.throwError("legacy pre-eip-155 transactions not supported",r0.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:n}),EC.indexOf(t)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&fe.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",r0.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:n}),e}function Bl(t){return new Promise(function(e){setTimeout(e,t)})}function CC(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}function ki(t){return t&&t.toLowerCase()}const os={};class R4 extends Ln{constructor(e,r,n){if(super(),e!==os)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");b0(this,"provider",r),n==null&&(n=0),typeof n=="string"?(b0(this,"_address",this.provider.formatter.address(n)),b0(this,"_index",null)):typeof n=="number"?(b0(this,"_index",n),b0(this,"_address",null)):fe.throwArgumentError("invalid address or index","addressOrIndex",n)}connect(e){return fe.throwError("cannot alter JSON-RPC Signer connection",r0.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new FC(os,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(e=>(e.length<=this._index&&fe.throwError("unknown account #"+this._index,r0.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=q1(e);const r=this.getAddress().then(n=>(n&&(n=n.toLowerCase()),n));if(e.gasLimit==null){const n=q1(e);n.from=r,e.gasLimit=this.provider.estimateGas(n)}return e.to!=null&&(e.to=Promise.resolve(e.to).then(n=>Lr(this,void 0,void 0,function*(){if(n==null)return null;const i=yield this.provider.resolveName(n);return i==null&&fe.throwArgumentError("provided ENS name resolves to null","tx.to",n),i}))),te({tx:te(e),sender:r}).then(({tx:n,sender:i})=>{n.from!=null?n.from.toLowerCase()!==i&&fe.throwArgumentError("from address mismatch","transaction",e):n.from=i;const u=this.provider.constructor.hexlifyTransaction(n,{from:!0});return this.provider.send("eth_sendTransaction",[u]).then(a=>a,a=>(typeof a.message=="string"&&a.message.match(/user denied/i)&&fe.throwError("user rejected transaction",r0.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:n}),gp("sendTransaction",a,u)))})}signTransaction(e){return fe.throwError("signing transactions is unsupported",r0.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return Lr(this,void 0,void 0,function*(){const r=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),n=yield this.sendUncheckedTransaction(e);try{return yield mn(()=>Lr(this,void 0,void 0,function*(){const i=yield this.provider.getTransaction(n);if(i!==null)return this.provider._wrapTransaction(i,n,r)}),{oncePoll:this.provider})}catch(i){throw i.transactionHash=n,i}})}signMessage(e){return Lr(this,void 0,void 0,function*(){const r=typeof e=="string"?H1(e):e,n=yield this.getAddress();try{return yield this.provider.send("personal_sign",[N0(r),n.toLowerCase()])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&fe.throwError("user rejected signing",r0.errors.ACTION_REJECTED,{action:"signMessage",from:n,messageData:e}),i}})}_legacySignMessage(e){return Lr(this,void 0,void 0,function*(){const r=typeof e=="string"?H1(e):e,n=yield this.getAddress();try{return yield this.provider.send("eth_sign",[n.toLowerCase(),N0(r)])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&fe.throwError("user rejected signing",r0.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:n,messageData:e}),i}})}_signTypedData(e,r,n){return Lr(this,void 0,void 0,function*(){const i=yield Be.resolveNames(e,r,n,a=>this.provider.resolveName(a)),u=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[u.toLowerCase(),JSON.stringify(Be.getPayload(i.domain,r,i.value))])}catch(a){throw typeof a.message=="string"&&a.message.match(/user denied/i)&&fe.throwError("user rejected signing",r0.errors.ACTION_REJECTED,{action:"_signTypedData",from:u,messageData:{domain:i.domain,types:r,value:i.value}}),a}})}unlock(e){return Lr(this,void 0,void 0,function*(){const r=this.provider,n=yield this.getAddress();return r.send("personal_unlockAccount",[n.toLowerCase(),e,null])})}}class FC extends R4{sendTransaction(e){return this.sendUncheckedTransaction(e).then(r=>({hash:r,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:n=>this.provider.waitForTransaction(r,n)}))}}const BC={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class He extends R8{constructor(e,r){let n=r;n==null&&(n=new Promise((i,u)=>{setTimeout(()=>{this.detectNetwork().then(a=>{i(a)},a=>{u(a)})},0)})),super(n),e||(e=De(this.constructor,"defaultUrl")()),typeof e=="string"?b0(this,"connection",Object.freeze({url:e})):b0(this,"connection",Object.freeze(q1(e))),this._nextId=42}get _cache(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return Lr(this,void 0,void 0,function*(){yield Bl(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch{try{e=yield this.send("net_version",[])}catch{}}if(e!=null){const r=De(this.constructor,"getNetwork");try{return r(P0.from(e).toNumber())}catch(n){return fe.throwError("could not detect network",r0.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:n})}}return fe.throwError("could not detect network",r0.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new R4(os,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(e=>e.map(r=>this.formatter.address(r)))}send(e,r){const n={method:e,params:r,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:Qe(n),provider:this});const i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(i&&this._cache[e])return this._cache[e];const u=ai(this.connection,JSON.stringify(n),CC).then(a=>(this.emit("debug",{action:"response",request:n,response:a,provider:this}),a),a=>{throw this.emit("debug",{action:"response",error:a,request:n,provider:this}),a});return i&&(this._cache[e]=u,setTimeout(()=>{this._cache[e]=null},0)),u}prepareRequest(e,r){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[ki(r.address),r.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[ki(r.address),r.blockTag]];case"getCode":return["eth_getCode",[ki(r.address),r.blockTag]];case"getStorageAt":return["eth_getStorageAt",[ki(r.address),j1(r.position,32),r.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[r.signedTransaction]];case"getBlock":return r.blockTag?["eth_getBlockByNumber",[r.blockTag,!!r.includeTransactions]]:r.blockHash?["eth_getBlockByHash",[r.blockHash,!!r.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[r.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[r.transactionHash]];case"call":return["eth_call",[De(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0}),r.blockTag]];case"estimateGas":return["eth_estimateGas",[De(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0})]];case"getLogs":return r.filter&&r.filter.address!=null&&(r.filter.address=ki(r.filter.address)),["eth_getLogs",[r.filter]]}return null}perform(e,r){return Lr(this,void 0,void 0,function*(){if(e==="call"||e==="estimateGas"){const i=r.transaction;if(i&&i.type!=null&&P0.from(i.type).isZero()&&i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null){const u=yield this.getFeeData();u.maxFeePerGas==null&&u.maxPriorityFeePerGas==null&&(r=q1(r),r.transaction=q1(i),delete r.transaction.type)}}const n=this.prepareRequest(e,r);n==null&&fe.throwError(e+" not implemented",r0.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(n[0],n[1])}catch(i){return gp(e,i,r)}})}_startEvent(e){e.tag==="pending"&&this._startPending(),super._startEvent(e)}_startPending(){if(this._pendingFilter!=null)return;const e=this,r=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=r,r.then(function(n){function i(){e.send("eth_getFilterChanges",[n]).then(function(u){if(e._pendingFilter!=r)return null;let a=Promise.resolve();return u.forEach(function(o){e._emitted["t:"+o.toLowerCase()]="pending",a=a.then(function(){return e.getTransaction(o).then(function(s){return e.emit("pending",s),null})})}),a.then(function(){return Bl(1e3)})}).then(function(){if(e._pendingFilter!=r){e.send("eth_uninstallFilter",[n]);return}return setTimeout(function(){i()},0),null}).catch(u=>{})}return i(),n}).catch(n=>{})}_stopEvent(e){e.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,r){const n=q1(BC);if(r)for(const u in r)r[u]&&(n[u]=!0);w4(e,n);const i={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(u){if(e[u]==null)return;const a=Qu(P0.from(e[u]));u==="gasLimit"&&(u="gas"),i[u]=a}),["from","to","data"].forEach(function(u){e[u]!=null&&(i[u]=N0(e[u]))}),e.accessList&&(i.accessList=Z2(e.accessList)),i}}let Xi=null;try{if(Xi=WebSocket,Xi==null)throw new Error("inject please")}catch{const e=new r0(je);Xi=function(){e.throwError("WebSockets not supported in this environment",r0.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var ja=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const _5=new r0(je);let DC=1;class O8 extends He{constructor(e,r){r==="any"&&_5.throwError("WebSocketProvider does not support 'any' network yet",r0.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),typeof e=="string"?super(e,r):super("_websocket",r),this._pollingInterval=-1,this._wsReady=!1,typeof e=="string"?b0(this,"_websocket",new Xi(this.connection.url)):b0(this,"_websocket",e),b0(this,"_requests",{}),b0(this,"_subs",{}),b0(this,"_subIds",{}),b0(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach(i=>{this.websocket.send(this._requests[i].payload)})},this.websocket.onmessage=i=>{const u=i.data,a=JSON.parse(u);if(a.id!=null){const o=String(a.id),s=this._requests[o];if(delete this._requests[o],a.result!==void 0)s.callback(null,a.result),this.emit("debug",{action:"response",request:JSON.parse(s.payload),response:a.result,provider:this});else{let c=null;a.error?(c=new Error(a.error.message||"unknown error"),b0(c,"code",a.error.code||null),b0(c,"response",u)):c=new Error("unknown error"),s.callback(c,void 0),this.emit("debug",{action:"response",error:c,request:JSON.parse(s.payload),provider:this})}}else if(a.method==="eth_subscription"){const o=this._subs[a.params.subscription];o&&o.processFunc(a.params.result)}else console.warn("this should not happen")};const n=setInterval(()=>{this.emit("poll")},1e3);n.unref&&n.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(e){_5.throwError("cannot reset events block on WebSocketProvider",r0.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(e){_5.throwError("cannot set polling interval on WebSocketProvider",r0.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return ja(this,void 0,void 0,function*(){return null})}set polling(e){e&&_5.throwError("cannot set polling on WebSocketProvider",r0.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(e,r){const n=DC++;return new Promise((i,u)=>{function a(s,c){return s?u(s):i(c)}const o=JSON.stringify({method:e,params:r,id:n,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(o),provider:this}),this._requests[String(n)]={callback:a,payload:o},this._wsReady&&this.websocket.send(o)})}static defaultUrl(){return"ws://localhost:8546"}_subscribe(e,r,n){return ja(this,void 0,void 0,function*(){let i=this._subIds[e];i==null&&(i=Promise.all(r).then(a=>this.send("eth_subscribe",a)),this._subIds[e]=i);const u=yield i;this._subs[u]={tag:e,processFunc:n}})}_startEvent(e){switch(e.type){case"block":this._subscribe("block",["newHeads"],r=>{const n=P0.from(r.number).toNumber();this._emitted.block=n,this.emit("block",n)});break;case"pending":this._subscribe("pending",["newPendingTransactions"],r=>{this.emit("pending",r)});break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],r=>{r.removed==null&&(r.removed=!1),this.emit(e.filter,this.formatter.filterLog(r))});break;case"tx":{const r=n=>{const i=n.hash;this.getTransactionReceipt(i).then(u=>{u&&this.emit(i,u)})};r(e),this._subscribe("tx",["newHeads"],n=>{this._events.filter(i=>i.type==="tx").forEach(r)});break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e);break}}_stopEvent(e){let r=e.tag;if(e.type==="tx"){if(this._events.filter(i=>i.type==="tx").length)return;r="tx"}else if(this.listenerCount(e.event))return;const n=this._subIds[r];n&&(delete this._subIds[r],n.then(i=>{this._subs[i]&&(delete this._subs[i],this.send("eth_unsubscribe",[i]))}))}destroy(){return ja(this,void 0,void 0,function*(){this.websocket.readyState===Xi.CONNECTING&&(yield new Promise(e=>{this.websocket.onopen=function(){e(!0)},this.websocket.onerror=function(){e(!1)}})),this.websocket.close(1e3)})}}var _C=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const Ii=new r0(je);class xp extends He{detectNetwork(){const e=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return _C(this,void 0,void 0,function*(){let r=this.network;return r==null&&(r=yield e.detectNetwork.call(this),r||Ii.throwError("no network detected",r0.errors.UNKNOWN_ERROR,{}),this._network==null&&(b0(this,"_network",r),this.emit("network",r,null))),r})}}class u2 extends xp{constructor(e,r){Ii.checkAbstract(new.target,u2),e=De(new.target,"getNetwork")(e),r=De(new.target,"getApiKey")(r);const n=De(new.target,"getUrl")(e,r);super(n,e),typeof r=="string"?b0(this,"apiKey",r):r!=null&&Object.keys(r).forEach(i=>{b0(this,i,r[i])})}_startPending(){Ii.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(e){return Ii.throwError("API provider does not support signing",r0.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(e){return e}static getUrl(e,r){return Ii.throwError("not implemented; sub-classes must override getUrl",r0.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}const Dl=new r0(je),h9="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class vp extends O8{constructor(e,r){const n=new O4(e,r),i=n.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");super(i,n.network),b0(this,"apiKey",n.apiKey)}isCommunityResource(){return this.apiKey===h9}}class O4 extends u2{static getWebSocketProvider(e,r){return new vp(e,r)}static getApiKey(e){return e==null?h9:(e&&typeof e!="string"&&Dl.throwArgumentError("invalid apiKey","apiKey",e),e)}static getUrl(e,r){let n=null;switch(e.name){case"homestead":n="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":n="eth-goerli.g.alchemy.com/v2/";break;case"matic":n="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":n="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":n="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":n="arb-goerli.g.alchemy.com/v2/";break;case"optimism":n="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":n="opt-goerli.g.alchemy.com/v2/";break;default:Dl.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+n+r,throttleCallback:(i,u)=>(r===h9&&Zu(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===h9}}const kC=new r0(je),k5="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function SC(t){switch(t){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return kC.throwArgumentError("unsupported network","name",t)}class Ap extends u2{isCommunityResource(){return this.apiKey===k5}static getApiKey(e){return e??k5}static getUrl(e,r){r==null&&(r=k5);const n={allowGzip:!0,url:"https://"+SC(e.name)+r,throttleCallback:(i,u)=>(r.apiKey===k5&&Zu(),Promise.resolve(!0))};return r.projectSecret!=null&&(n.user="",n.password=r.projectSecret),n}}var TC=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const _l=new r0(je);class wp extends u2{static getApiKey(e){return e!=null&&_l.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}static getUrl(e,r){let n=null;switch(e.name){case"homestead":n="https://cloudflare-eth.com/";break;default:_l.throwArgumentError("unsupported network","network",arguments[0])}return n}perform(e,r){const n=Object.create(null,{perform:{get:()=>super.perform}});return TC(this,void 0,void 0,function*(){return e==="getBlockNumber"?(yield n.perform.call(this,"getBlock",{blockTag:"latest"})).number:n.perform.call(this,e,r)})}}var S5=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const v2=new r0(je);function kl(t){const e={};for(let r in t){if(t[r]==null)continue;let n=t[r];r==="type"&&n===0||({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[r]?n=Qu(N0(n)):r==="accessList"?n="["+Z2(n).map(i=>`{address:"${i.address}",storageKeys:["${i.storageKeys.join('","')}"]}`).join(",")+"]":n=N0(n),e[r]=n)}return e}function PC(t){if(t.status==0&&(t.message==="No records found"||t.message==="No transactions found"))return t.result;if(t.status!=1||typeof t.message!="string"||!t.message.match(/^OK/)){const e=new Error("invalid response");throw e.result=JSON.stringify(t),(t.result||"").toLowerCase().indexOf("rate limit")>=0&&(e.throttleRetry=!0),e}return t.result}function Sl(t){if(t&&t.status==0&&t.message=="NOTOK"&&(t.result||"").toLowerCase().indexOf("rate limit")>=0){const e=new Error("throttled response");throw e.result=JSON.stringify(t),e.throttleRetry=!0,e}if(t.jsonrpc!="2.0"){const e=new Error("invalid response");throw e.result=JSON.stringify(t),e}if(t.error){const e=new Error(t.error.message||"unknown error");throw t.error.code&&(e.code=t.error.code),t.error.data&&(e.data=t.error.data),e}return t.result}function Tl(t){if(t==="pending")throw new Error("pending not supported");return t==="latest"?t:parseInt(t.substring(2),16)}function za(t,e,r){if(t==="call"&&e.code===r0.errors.SERVER_ERROR){const i=e.error;if(i&&(i.message.match(/reverted/i)||i.message.match(/VM execution error/i))){let u=i.data;if(u&&(u="0x"+u.replace(/^.*0x/i,"")),s1(u))return u;v2.throwError("missing revert data in call exception",r0.errors.CALL_EXCEPTION,{error:e,data:"0x"})}}let n=e.message;throw e.code===r0.errors.SERVER_ERROR&&(e.error&&typeof e.error.message=="string"?n=e.error.message:typeof e.body=="string"?n=e.body:typeof e.responseText=="string"&&(n=e.responseText)),n=(n||"").toLowerCase(),n.match(/insufficient funds/)&&v2.throwError("insufficient funds for intrinsic transaction cost",r0.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:r}),n.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&v2.throwError("nonce has already been used",r0.errors.NONCE_EXPIRED,{error:e,method:t,transaction:r}),n.match(/another transaction with same nonce/)&&v2.throwError("replacement fee too low",r0.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:r}),n.match(/execution failed due to an exception|execution reverted/)&&v2.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",r0.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:r}),e}class Ep extends R8{constructor(e,r){super(e),b0(this,"baseUrl",this.getBaseUrl()),b0(this,"apiKey",r||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return v2.throwArgumentError("unsupported network","network",this.network.name)}getUrl(e,r){const n=Object.keys(r).reduce((u,a)=>{const o=r[a];return o!=null&&(u+=`&${a}=${o}`),u},""),i=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${e}${n}${i}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(e,r){return r.module=e,r.apikey=this.apiKey,r}fetch(e,r,n){return S5(this,void 0,void 0,function*(){const i=n?this.getPostUrl():this.getUrl(e,r),u=n?this.getPostData(e,r):null,a=e==="proxy"?Sl:PC;this.emit("debug",{action:"request",request:i,provider:this});const o={url:i,throttleSlotInterval:1e3,throttleCallback:(d,y)=>(this.isCommunityResource()&&Zu(),Promise.resolve(!0))};let s=null;u&&(o.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},s=Object.keys(u).map(d=>`${d}=${u[d]}`).join("&"));const c=yield ai(o,s,a||Sl);return this.emit("debug",{action:"response",request:i,response:Qe(c),provider:this}),c})}detectNetwork(){return S5(this,void 0,void 0,function*(){return this.network})}perform(e,r){const n=Object.create(null,{perform:{get:()=>super.perform}});return S5(this,void 0,void 0,function*(){switch(e){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:r.address,tag:r.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:r.address,tag:r.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:r.address,tag:r.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:r.address,position:r.position,tag:r.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:r.signedTransaction},!0).catch(i=>za("sendTransaction",i,r.signedTransaction));case"getBlock":if(r.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:r.blockTag,boolean:r.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:r.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:r.transactionHash});case"call":{if(r.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");const i=kl(r.transaction);i.module="proxy",i.action="eth_call";try{return yield this.fetch("proxy",i,!0)}catch(u){return za("call",u,r.transaction)}}case"estimateGas":{const i=kl(r.transaction);i.module="proxy",i.action="eth_estimateGas";try{return yield this.fetch("proxy",i,!0)}catch(u){return za("estimateGas",u,r.transaction)}}case"getLogs":{const i={action:"getLogs"};if(r.filter.fromBlock&&(i.fromBlock=Tl(r.filter.fromBlock)),r.filter.toBlock&&(i.toBlock=Tl(r.filter.toBlock)),r.filter.address&&(i.address=r.filter.address),r.filter.topics&&r.filter.topics.length>0&&(r.filter.topics.length>1&&v2.throwError("unsupported topic count",r0.errors.UNSUPPORTED_OPERATION,{topics:r.filter.topics}),r.filter.topics.length===1)){const o=r.filter.topics[0];(typeof o!="string"||o.length!==66)&&v2.throwError("unsupported topic format",r0.errors.UNSUPPORTED_OPERATION,{topic0:o}),i.topic0=o}const u=yield this.fetch("logs",i);let a={};for(let o=0;o{["contractAddress","to"].forEach(function(s){a[s]==""&&delete a[s]}),a.creates==null&&a.contractAddress!=null&&(a.creates=a.contractAddress);const o=this.formatter.transactionResponse(a);return a.timeStamp&&(o.timestamp=parseInt(a.timeStamp)),o})})}isCommunityResource(){return this.apiKey==null}}const NC="random/5.7.0",ss=new r0(NC);function MC(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const Pl=MC();let p9=Pl.crypto||Pl.msCrypto;(!p9||!p9.getRandomValues)&&(ss.warn("WARNING: Missing strong random number source"),p9={getRandomValues:function(t){return ss.throwError("no secure random source avaialble",r0.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function x6(t){(t<=0||t>1024||t%1||t!=t)&&ss.throwArgumentError("invalid length","length",t);const e=new Uint8Array(t);return p9.getRandomValues(e),k0(e)}function Cp(t){t=t.slice();for(let e=t.length-1;e>0;e--){const r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n}return t}const UC=Object.freeze(Object.defineProperty({__proto__:null,randomBytes:x6,shuffled:Cp},Symbol.toStringTag,{value:"Module"}));var Y9=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const cn=new r0(je);function T5(){return new Date().getTime()}function Nl(t){let e=null;for(let r=0;re?null:(n+i)/2}function v6(t){if(t===null)return"null";if(typeof t=="number"||typeof t=="boolean")return JSON.stringify(t);if(typeof t=="string")return t;if(P0.isBigNumber(t))return t.toString();if(Array.isArray(t))return JSON.stringify(t.map(e=>v6(e)));if(typeof t=="object"){const e=Object.keys(t);return e.sort(),"{"+e.map(r=>{let n=t[r];return typeof n=="function"?n="[function]":n=v6(n),JSON.stringify(r)+":"+n}).join(",")+"}"}throw new Error("unknown value type: "+typeof t)}let IC=1;function Ul(t){let e=null,r=null,n=new Promise(a=>{e=function(){r&&(clearTimeout(r),r=null),a()},r=setTimeout(e,t)});const i=a=>(n=n.then(a),n);function u(){return n}return{cancel:e,getPromise:u,wait:i}}const RC=[r0.errors.CALL_EXCEPTION,r0.errors.INSUFFICIENT_FUNDS,r0.errors.NONCE_EXPIRED,r0.errors.REPLACEMENT_UNDERPRICED,r0.errors.UNPREDICTABLE_GAS_LIMIT],OC=["address","args","errorArgs","errorSignature","method","transaction"];function P5(t,e){const r={weight:t.weight};return Object.defineProperty(r,"provider",{get:()=>t.provider}),t.start&&(r.start=t.start),e&&(r.duration=e-t.start),t.done&&(t.error?r.error=t.error:r.result=t.result||null),r}function LC(t,e){return function(r){const n={};r.forEach(u=>{const a=t(u.result);n[a]||(n[a]={count:0,result:u.result}),n[a].count++});const i=Object.keys(n);for(let u=0;u=e)return a.result}}}function jC(t,e,r){let n=v6;switch(e){case"getBlockNumber":return function(i){const u=i.map(o=>o.result);let a=Ml(i.map(o=>o.result),2);if(a!=null)return a=Math.ceil(a),u.indexOf(a+1)>=0&&a++,a>=t._highestBlockNumber&&(t._highestBlockNumber=a),t._highestBlockNumber};case"getGasPrice":return function(i){const u=i.map(a=>a.result);return u.sort(),u[Math.floor(u.length/2)]};case"getEtherPrice":return function(i){return Ml(i.map(u=>u.result))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(i){return i==null?null:(i=q1(i),i.confirmations=-1,v6(i))};break;case"getBlock":r.includeTransactions?n=function(i){return i==null?null:(i=q1(i),i.transactions=i.transactions.map(u=>(u=q1(u),u.confirmations=-1,u)),v6(i))}:n=function(i){return i==null?null:v6(i)};break;default:throw new Error("unknown method: "+e)}return LC(n,t.quorum)}function Si(t,e){return Y9(this,void 0,void 0,function*(){const r=t.provider;return r.blockNumber!=null&&r.blockNumber>=e||e===-1?r:mn(()=>new Promise((n,i)=>{setTimeout(function(){return r.blockNumber>=e?n(r):t.cancelled?n(null):n(void 0)},0)}),{oncePoll:r})})}function zC(t,e,r,n){return Y9(this,void 0,void 0,function*(){let i=t.provider;switch(r){case"getBlockNumber":case"getGasPrice":return i[r]();case"getEtherPrice":if(i.getEtherPrice)return i.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return n.blockTag&&s1(n.blockTag)&&(i=yield Si(t,e)),i[r](n.address,n.blockTag||"latest");case"getStorageAt":return n.blockTag&&s1(n.blockTag)&&(i=yield Si(t,e)),i.getStorageAt(n.address,n.position,n.blockTag||"latest");case"getBlock":return n.blockTag&&s1(n.blockTag)&&(i=yield Si(t,e)),i[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash);case"call":case"estimateGas":return n.blockTag&&s1(n.blockTag)&&(i=yield Si(t,e)),r==="call"&&n.blockTag?i[r](n.transaction,n.blockTag):i[r](n.transaction);case"getTransaction":case"getTransactionReceipt":return i[r](n.transactionHash);case"getLogs":{let u=n.filter;return(u.fromBlock&&s1(u.fromBlock)||u.toBlock&&s1(u.toBlock))&&(i=yield Si(t,e)),i.getLogs(u)}}return cn.throwError("unknown method error",r0.errors.UNKNOWN_ERROR,{method:r,params:n})})}class Fp extends R8{constructor(e,r){e.length===0&&cn.throwArgumentError("missing providers","providers",e);const n=e.map((a,o)=>{if(Rn.isProvider(a)){const d=us(a)?2e3:750;return Object.freeze({provider:a,weight:1,stallTimeout:d,priority:1})}const s=q1(a);s.priority==null&&(s.priority=1),s.stallTimeout==null&&(s.stallTimeout=us(a)?2e3:750),s.weight==null&&(s.weight=1);const c=s.weight;return(c%1||c>512||c<1)&&cn.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${o}].weight`,c),Object.freeze(s)}),i=n.reduce((a,o)=>a+o.weight,0);r==null?r=i/2:r>i&&cn.throwArgumentError("quorum will always fail; larger than total weight","quorum",r);let u=Nl(n.map(a=>a.provider.network));u==null&&(u=new Promise((a,o)=>{setTimeout(()=>{this.detectNetwork().then(a,o)},0)})),super(u),b0(this,"providerConfigs",Object.freeze(n)),b0(this,"quorum",r),this._highestBlockNumber=-1}detectNetwork(){return Y9(this,void 0,void 0,function*(){const e=yield Promise.all(this.providerConfigs.map(r=>r.provider.getNetwork()));return Nl(e)})}perform(e,r){return Y9(this,void 0,void 0,function*(){if(e==="sendTransaction"){const s=yield Promise.all(this.providerConfigs.map(c=>c.provider.sendTransaction(r.signedTransaction).then(d=>d.hash,d=>d)));for(let c=0;cs.priority-c.priority);const u=this._highestBlockNumber;let a=0,o=!0;for(;;){const s=T5();let c=i.filter(C=>C.runner&&s-C.startC+T.weight,0);for(;c{C.staller=null}),C.runner=zC(C,u,e,r).then(U=>{C.done=!0,C.result=U,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:T,backend:P5(C,T5()),request:{method:e,params:Qe(r)},provider:this})},U=>{C.done=!0,C.error=U,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:T,backend:P5(C,T5()),request:{method:e,params:Qe(r)},provider:this})}),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:T,backend:P5(C,null),request:{method:e,params:Qe(r)},provider:this}),c+=C.weight}const d=[];i.forEach(C=>{C.done||!C.runner||(d.push(C.runner),C.staller&&d.push(C.staller.getPromise()))}),d.length&&(yield Promise.race(d));const y=i.filter(C=>C.done&&C.error==null);if(y.length>=this.quorum){const C=n(y);if(C!==void 0)return i.forEach(T=>{T.staller&&T.staller.cancel(),T.cancelled=!0}),C;o||(yield Ul(100).getPromise()),o=!1}const A=i.reduce((C,T)=>{if(!T.done||T.error==null)return C;const U=T.error.code;return RC.indexOf(U)>=0&&(C[U]||(C[U]={error:T.error,weight:0}),C[U].weight+=T.weight),C},{});if(Object.keys(A).forEach(C=>{const T=A[C];if(T.weight{_.staller&&_.staller.cancel(),_.cancelled=!0});const U=T.error,P={};OC.forEach(_=>{U[_]!=null&&(P[_]=U[_])}),cn.throwError(U.reason||U.message,C,P)}),i.filter(C=>!C.done).length===0)break}return i.forEach(s=>{s.staller&&s.staller.cancel(),s.cancelled=!0}),cn.throwError("failed to meet quorum",r0.errors.SERVER_ERROR,{method:e,params:r,results:i.map(s=>P5(s)),provider:this})})}}const Bp=null,b9=new r0(je),Ri="84842078b09946638c03157f83405213";class Dp extends O8{constructor(e,r){const n=new L4(e,r),i=n.connection;i.password&&b9.throwError("INFURA WebSocket project secrets unsupported",r0.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});const u=i.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(u,e),b0(this,"apiKey",n.projectId),b0(this,"projectId",n.projectId),b0(this,"projectSecret",n.projectSecret)}isCommunityResource(){return this.projectId===Ri}}class L4 extends u2{static getWebSocketProvider(e,r){return new Dp(e,r)}static getApiKey(e){const r={apiKey:Ri,projectId:Ri,projectSecret:null};return e==null||(typeof e=="string"?r.projectId=e:e.projectSecret!=null?(b9.assertArgument(typeof e.projectId=="string","projectSecret requires a projectId","projectId",e.projectId),b9.assertArgument(typeof e.projectSecret=="string","invalid projectSecret","projectSecret","[REDACTED]"),r.projectId=e.projectId,r.projectSecret=e.projectSecret):e.projectId&&(r.projectId=e.projectId),r.apiKey=r.projectId),r}static getUrl(e,r){let n=null;switch(e?e.name:"unknown"){case"homestead":n="mainnet.infura.io";break;case"goerli":n="goerli.infura.io";break;case"sepolia":n="sepolia.infura.io";break;case"matic":n="polygon-mainnet.infura.io";break;case"maticmum":n="polygon-mumbai.infura.io";break;case"optimism":n="optimism-mainnet.infura.io";break;case"optimism-goerli":n="optimism-goerli.infura.io";break;case"arbitrum":n="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":n="arbitrum-goerli.infura.io";break;default:b9.throwError("unsupported network",r0.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const i={allowGzip:!0,url:"https://"+n+"/v3/"+r.projectId,throttleCallback:(u,a)=>(r.projectId===Ri&&Zu(),Promise.resolve(!0))};return r.projectSecret!=null&&(i.user="",i.password=r.projectSecret),i}isCommunityResource(){return this.projectId===Ri}}class $C extends He{send(e,r){const n={method:e,params:r,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch==null&&(this._pendingBatch=[]);const i={request:n,resolve:null,reject:null},u=new Promise((a,o)=>{i.resolve=a,i.reject=o});return this._pendingBatch.push(i),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{const a=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;const o=a.map(s=>s.request);return this.emit("debug",{action:"requestBatch",request:Qe(o),provider:this}),ai(this.connection,JSON.stringify(o)).then(s=>{this.emit("debug",{action:"response",request:o,response:s,provider:this}),a.forEach((c,d)=>{const y=s[d];if(y.error){const A=new Error(y.error.message);A.code=y.error.code,A.data=y.error.data,c.reject(A)}else c.resolve(y.result)})},s=>{this.emit("debug",{action:"response",error:s,request:o,provider:this}),a.forEach(c=>{c.reject(s)})})},10)),u}}const $a=new r0(je),qC="ETHERS_JS_SHARED";class _p extends u2{static getApiKey(e){return e&&typeof e!="string"&&$a.throwArgumentError("invalid apiKey","apiKey",e),e||qC}static getUrl(e,r){$a.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let n=null;switch(e.name){case"homestead":n="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":n="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":n="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":n="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":n="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:$a.throwArgumentError("unsupported network","network",arguments[0])}return n+"?apiKey="+r}}const Il=new r0(je),Rl="62e1ad51b37b8e00394bda3b";class kp extends u2{static getApiKey(e){const r={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return e==null?r.applicationId=Rl:typeof e=="string"?r.applicationId=e:e.applicationSecretKey!=null?(r.applicationId=e.applicationId,r.applicationSecretKey=e.applicationSecretKey):e.applicationId?r.applicationId=e.applicationId:Il.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),r}static getUrl(e,r){let n=null;switch(e?e.name:"unknown"){case"goerli":n="eth-goerli.gateway.pokt.network";break;case"homestead":n="eth-mainnet.gateway.pokt.network";break;case"kovan":n="poa-kovan.gateway.pokt.network";break;case"matic":n="poly-mainnet.gateway.pokt.network";break;case"maticmum":n="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":n="eth-rinkeby.gateway.pokt.network";break;case"ropsten":n="eth-ropsten.gateway.pokt.network";break;default:Il.throwError("unsupported network",r0.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const i=`https://${n}/v1/lb/${r.applicationId}`,u={headers:{},url:i};return r.applicationSecretKey!=null&&(u.user="",u.password=r.applicationSecretKey),u}isCommunityResource(){return this.applicationId===Rl}}const Ol=new r0(je);let HC=1;function Ll(t,e){const r="Web3LegacyFetcher";return function(n,i){const u={method:n,params:i,id:HC++,jsonrpc:"2.0"};return new Promise((a,o)=>{this.emit("debug",{action:"request",fetcher:r,request:Qe(u),provider:this}),e(u,(s,c)=>{if(s)return this.emit("debug",{action:"response",fetcher:r,error:s,request:u,provider:this}),o(s);if(this.emit("debug",{action:"response",fetcher:r,request:u,response:c,provider:this}),c.error){const d=new Error(c.error.message);return d.code=c.error.code,d.data=c.error.data,o(d)}a(c.result)})})}}function KC(t){return function(e,r){r==null&&(r=[]);const n={method:e,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:Qe(n),provider:this}),t.request(n).then(i=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,response:i,provider:this}),i),i=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,error:i,provider:this}),i})}}class Sp extends He{constructor(e,r){e==null&&Ol.throwArgumentError("missing provider","provider",e);let n=null,i=null,u=null;typeof e=="function"?(n="unknown:",i=e):(n=e.host||e.path||"",!n&&e.isMetaMask&&(n="metamask"),u=e,e.request?(n===""&&(n="eip-1193:"),i=KC(e)):e.sendAsync?i=Ll(e,e.sendAsync.bind(e)):e.send?i=Ll(e,e.send.bind(e)):Ol.throwArgumentError("unsupported provider","provider",e),n||(n="unknown:")),super(n,r),b0(this,"jsonRpcFetchFunc",i),b0(this,"provider",u)}send(e,r){return this.jsonRpcFetchFunc(e,r)}}const jl=new r0(je);function GC(t,e){if(t==null&&(t="homestead"),typeof t=="string"){const n=t.match(/^(ws|http)s?:/i);if(n)switch(n[1].toLowerCase()){case"http":case"https":return new He(t);case"ws":case"wss":return new O8(t);default:jl.throwArgumentError("unsupported URL scheme","network",t)}}const r=E4(t);return(!r||!r._defaultProvider)&&jl.throwError("unsupported getDefaultProvider network",r0.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:t}),r._defaultProvider({FallbackProvider:Fp,AlchemyProvider:O4,AnkrProvider:Ap,CloudflareProvider:wp,EtherscanProvider:Ep,InfuraProvider:L4,JsonRpcProvider:He,NodesmithProvider:_p,PocketProvider:kp,Web3Provider:Sp,IpcProvider:Bp},e)}const WC=Object.freeze(Object.defineProperty({__proto__:null,AlchemyProvider:O4,AlchemyWebSocketProvider:vp,AnkrProvider:Ap,BaseProvider:R8,CloudflareProvider:wp,EtherscanProvider:Ep,FallbackProvider:Fp,Formatter:q0,InfuraProvider:L4,InfuraWebSocketProvider:Dp,IpcProvider:Bp,JsonRpcBatchProvider:$C,JsonRpcProvider:He,JsonRpcSigner:R4,NodesmithProvider:_p,PocketProvider:kp,Provider:Rn,Resolver:as,StaticJsonRpcProvider:xp,UrlJsonRpcProvider:u2,Web3Provider:Sp,WebSocketProvider:O8,getDefaultProvider:GC,getNetwork:E4,isCommunityResourcable:bp,isCommunityResource:us,showThrottleMessage:Zu},Symbol.toStringTag,{value:"Module"})),VC=z1(WC);var JC=y1&&y1.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),QC=y1&&y1.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),YC=y1&&y1.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&JC(e,t,r);return QC(e,t),e},XC=y1&&y1.__awaiter||function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.getPriorityConnector=Vr.getSelectedConnector=Vr.initializeConnector=void 0;const ZC=Xd,A6=l0,zl=yh,eF=Ov;let N6;function tF(){return XC(this,void 0,void 0,function*(){if(N6===void 0)try{const{Web3Provider:t}=yield Promise.resolve().then(()=>YC(VC));N6=t}catch{console.debug("@ethersproject/providers not available"),N6=null}})}function rF(t){const[e,r]=(0,ZC.createWeb3ReactStoreAndActions)(),n=t(r),i=fF(e),u=lF(i),a=cF(n,i,u);return[n,Object.assign(Object.assign(Object.assign({},i),u),a),e]}Vr.initializeConnector=rF;function nF({chainId:t,accounts:e,activating:r}){return!!(t&&e&&!r)}function Tp(...t){function e(y){const A=t.findIndex(([C])=>y===C);if(A===-1)throw new Error("Connector not found");return A}function r(y){const A=t[e(y)][2];if(!A)throw new Error("Stores not passed");return A}function n(y){return t.map(([,{useChainId:C}])=>C())[e(y)]}function i(y){return t.map(([,{useAccounts:C}])=>C())[e(y)]}function u(y){return t.map(([,{useIsActivating:C}])=>C())[e(y)]}function a(y){return t.map(([,{useAccount:C}])=>C())[e(y)]}function o(y){return t.map(([,{useIsActive:C}])=>C())[e(y)]}function s(y,A){const C=e(y);return t.map(([,{useProvider:U}],P)=>U(A,P===C))[C]}function c(y,A){const C=e(y);return t.map(([,{useENSNames:U}],P)=>U(P===C?A:void 0))[C]}function d(y,A){const C=e(y);return t.map(([,{useENSName:U}],P)=>U(P===C?A:void 0))[C]}return{useSelectedStore:r,useSelectedChainId:n,useSelectedAccounts:i,useSelectedIsActivating:u,useSelectedAccount:a,useSelectedIsActive:o,useSelectedProvider:s,useSelectedENSNames:c,useSelectedENSName:d}}Vr.getSelectedConnector=Tp;function iF(...t){const{useSelectedStore:e,useSelectedChainId:r,useSelectedAccounts:n,useSelectedIsActivating:i,useSelectedAccount:u,useSelectedIsActive:a,useSelectedProvider:o,useSelectedENSNames:s,useSelectedENSName:c}=Tp(...t);function d(){const G=t.map(([,{useIsActive:t0}])=>t0()).findIndex(t0=>t0);return t[G===-1?0:G][0]}function y(){return e(d())}function A(){return r(d())}function C(){return n(d())}function T(){return i(d())}function U(){return u(d())}function P(){return a(d())}function _(W){return o(d(),W)}function B(W){return s(d(),W)}function N(W){return c(d(),W)}return{useSelectedStore:e,useSelectedChainId:r,useSelectedAccounts:n,useSelectedIsActivating:i,useSelectedAccount:u,useSelectedIsActive:a,useSelectedProvider:o,useSelectedENSNames:s,useSelectedENSName:c,usePriorityConnector:d,usePriorityStore:y,usePriorityChainId:A,usePriorityAccounts:C,usePriorityIsActivating:T,usePriorityAccount:U,usePriorityIsActive:P,usePriorityProvider:_,usePriorityENSNames:B,usePriorityENSName:N}}Vr.getPriorityConnector=iF;const uF=({chainId:t})=>t,aF=({accounts:t})=>t,oF=({activating:t})=>t,sF=(t,e)=>t===void 0&&e===void 0||t!==void 0&&t.length===(e==null?void 0:e.length)&&t.every((r,n)=>r===e[n]);function fF(t){function e(){return(0,zl.useStore)(t,uF)}function r(){return(0,eF.useStoreWithEqualityFn)(t,aF,sF)}function n(){return(0,zl.useStore)(t,oF)}return{useChainId:e,useAccounts:r,useIsActivating:n}}function lF({useChainId:t,useAccounts:e,useIsActivating:r}){function n(){var u;return(u=e())===null||u===void 0?void 0:u[0]}function i(){const u=t(),a=e(),o=r();return nF({chainId:u,accounts:a,activating:o})}return{useAccount:n,useIsActive:i}}function $l(t,e=[]){const[r,n]=(0,A6.useState)();return(0,A6.useEffect)(()=>{if(t&&e.length){let i=!1;return Promise.all(e.map(u=>t.lookupAddress(u))).then(u=>{i||n(u)}).catch(u=>{i||(console.debug("Could not fetch ENS names",u),n(new Array(e.length).fill(null)))}),()=>{i=!0,n(void 0)}}},[t,e]),r??new Array(e.length).fill(void 0)}function cF(t,{useAccounts:e,useChainId:r},{useAccount:n,useIsActive:i}){function u(s,c=!0){const d=i(),y=r(),[A,C]=(0,A6.useState)(N6!==void 0);return(0,A6.useEffect)(()=>{if(A)return;let T=!1;return tF().then(()=>{T||C(!0)}),()=>{T=!0}},[A]),(0,A6.useMemo)(()=>{if(c){if(t.customProvider)return t.customProvider;if(N6&&t.provider)return new N6(t.provider,s)}},[A,c,d,y,s])}function a(s){const c=e();return $l(s,c)}function o(s){var c;const d=n(),y=(0,A6.useMemo)(()=>d===void 0?void 0:[d],[d]);return(c=$l(s,y))===null||c===void 0?void 0:c[0]}return{useProvider:u,useENSNames:a,useENSName:o}}var L8={},Pp={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,c,d){this.fn=s,this.context=c,this.once=d||!1}function u(s,c,d,y,A){if(typeof d!="function")throw new TypeError("The listener must be a function");var C=new i(d,y||s,A),T=r?r+c:c;return s._events[T]?s._events[T].fn?s._events[T]=[s._events[T],C]:s._events[T].push(C):(s._events[T]=C,s._eventsCount++),s}function a(s,c){--s._eventsCount===0?s._events=new n:delete s._events[c]}function o(){this._events=new n,this._eventsCount=0}o.prototype.eventNames=function(){var c=[],d,y;if(this._eventsCount===0)return c;for(y in d=this._events)e.call(d,y)&&c.push(r?y.slice(1):y);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(d)):c},o.prototype.listeners=function(c){var d=r?r+c:c,y=this._events[d];if(!y)return[];if(y.fn)return[y.fn];for(var A=0,C=y.length,T=new Array(C);Ae),this.eth_accounts=jest.fn(e=>e),this.eth_requestAccounts=jest.fn(e=>e)}request(e){if(!this.chainId)return Promise.reject(new Error);switch(e.method){case"eth_chainId":return Promise.resolve(this.eth_chainId(this.chainId));case"eth_accounts":return Promise.resolve(this.eth_accounts(this.accounts));case"eth_requestAccounts":return Promise.resolve(this.eth_requestAccounts(this.accounts));default:throw new Error(`Method not supported on mock: ${JSON.stringify(e)}`)}}emitConnect(e){this.emit("connect",{chainId:e})}emitDisconnect(e){this.emit("disconnect",e)}emitChainChanged(e){this.emit("chainChanged",e)}emitAccountsChanged(e){this.emit("accountsChanged",e)}}L8.MockEIP1193Provider=pF;var J6={},bF=y1&&y1.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),mF=y1&&y1.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),yF=y1&&y1.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&bF(e,t,r);return mF(e,t),e};Object.defineProperty(J6,"__esModule",{value:!0});J6.useWeb3React=J6.Web3ReactProvider=void 0;const X9=yF(l0),gF=Vr,Np=(0,X9.createContext)(void 0);function xF({children:t,connectors:e,connectorOverride:r,network:n,lookupENS:i=!0}){const u=(0,X9.useRef)(e);if(e.length!=u.current.length||e.some((d0,c0)=>{const h0=u.current[c0];return d0[0]!==h0[0]}))throw new Error("The connectors prop passed to Web3ReactProvider must be referentially static. If connectors is changing, try providing a key prop to Web3ReactProvider that changes every time connectors changes.");const a=(0,gF.getPriorityConnector)(...e),{usePriorityConnector:o,useSelectedChainId:s,useSelectedAccounts:c,useSelectedIsActivating:d,useSelectedAccount:y,useSelectedIsActive:A,useSelectedProvider:C,useSelectedENSNames:T,useSelectedENSName:U}=a,P=o(),_=r??P,B=s(_),N=c(_),W=d(_),G=y(_),t0=A(_),Z=C(_,n),e0=T(_,i?Z:void 0),o0=U(_,i?Z:void 0);return X9.default.createElement(Np.Provider,{value:{connector:_,chainId:B,accounts:N,isActivating:W,account:G,isActive:t0,provider:Z,ENSNames:e0,ENSName:o0,hooks:a}},t)}J6.Web3ReactProvider=xF;function vF(){const t=(0,X9.useContext)(Np);if(!t)throw Error("useWeb3React can only be used within the Web3ReactProvider component");return t}J6.useWeb3React=vF;(function(t){var e=y1&&y1.__createBinding||(Object.create?function(n,i,u,a){a===void 0&&(a=u);var o=Object.getOwnPropertyDescriptor(i,u);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[u]}}),Object.defineProperty(n,a,o)}:function(n,i,u,a){a===void 0&&(a=u),n[a]=i[u]}),r=y1&&y1.__exportStar||function(n,i){for(var u in n)u!=="default"&&!Object.prototype.hasOwnProperty.call(i,u)&&e(i,n,u)};Object.defineProperty(t,"__esModule",{value:!0}),r(Vr,t),r(L8,t),r(J6,t)})(D8);var Pu={},j8={};Object.defineProperty(j8,"__esModule",{value:!0});j8.Connector=void 0;class AF{constructor(e,r){this.actions=e,this.onError=r}resetState(){this.actions.resetState()}}j8.Connector=AF;var qa,ql;function wF(){if(ql)return qa;ql=1;function t({mustBeMetaMask:e=!1,silent:r=!1,timeout:n=3e3}={}){u();let i=!1;return new Promise(a=>{window.ethereum?o():(window.addEventListener("ethereum#initialized",o,{once:!0}),setTimeout(()=>{o()},n));function o(){if(i)return;i=!0,window.removeEventListener("ethereum#initialized",o);const{ethereum:s}=window;s&&(!e||s.isMetaMask)?a(s):(!r&&console.error("@metamask/detect-provider:",e&&s?"Non-MetaMask window.ethereum detected.":"Unable to detect window.ethereum."),a(null))}});function u(){if(typeof e!="boolean")throw new Error("@metamask/detect-provider: Expected option 'mustBeMetaMask' to be a boolean.");if(typeof r!="boolean")throw new Error("@metamask/detect-provider: Expected option 'silent' to be a boolean.");if(typeof n!="number")throw new Error("@metamask/detect-provider: Expected option 'timeout' to be a number.")}}return qa=t,qa}var EF=y1&&y1.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),CF=y1&&y1.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),FF=y1&&y1.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&EF(e,t,r);return CF(e,t),e},Xn=y1&&y1.__awaiter||function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(Pu,"__esModule",{value:!0});var Mp=Pu.MetaMask=Pu.NoMetaMaskError=void 0;const BF=j8;class Nu extends Error{constructor(){super("MetaMask not installed"),this.name=Nu.name,Object.setPrototypeOf(this,Nu.prototype)}}Pu.NoMetaMaskError=Nu;function N5(t){return Number.parseInt(t,16)}class DF extends BF.Connector{constructor({actions:e,options:r,onError:n}){super(e,n),this.options=r}isomorphicInitialize(){return Xn(this,void 0,void 0,function*(){if(!this.eagerConnection)return this.eagerConnection=Promise.resolve().then(()=>FF(wF())).then(e=>Xn(this,void 0,void 0,function*(){var r,n;const i=yield e.default(this.options);i&&(this.provider=i,!((r=this.provider.providers)===null||r===void 0)&&r.length&&(this.provider=(n=this.provider.providers.find(u=>u.isMetaMask))!==null&&n!==void 0?n:this.provider.providers[0]),this.provider.on("connect",({chainId:u})=>{this.actions.update({chainId:N5(u)})}),this.provider.on("disconnect",u=>{var a;if(u.code===1013){console.debug('MetaMask logged connection error 1013: "Try again later"');return}this.actions.resetState(),(a=this.onError)===null||a===void 0||a.call(this,u)}),this.provider.on("chainChanged",u=>{this.actions.update({chainId:N5(u)})}),this.provider.on("accountsChanged",u=>{u.length===0?this.actions.resetState():this.actions.update({accounts:u})}))}))})}connectEagerly(){return Xn(this,void 0,void 0,function*(){const e=this.actions.startActivation();try{if(yield this.isomorphicInitialize(),!this.provider)return e();const r=yield this.provider.request({method:"eth_accounts"});if(!r.length)throw new Error("No accounts returned");const n=yield this.provider.request({method:"eth_chainId"});this.actions.update({chainId:N5(n),accounts:r})}catch(r){console.debug("Could not connect eagerly",r),this.actions.resetState()}})}activate(e){var r,n;return Xn(this,void 0,void 0,function*(){let i;return!((n=(r=this.provider)===null||r===void 0?void 0:r.isConnected)===null||n===void 0)&&n.call(r)||(i=this.actions.startActivation()),this.isomorphicInitialize().then(()=>Xn(this,void 0,void 0,function*(){if(!this.provider)throw new Nu;const u=yield this.provider.request({method:"eth_requestAccounts"}),a=yield this.provider.request({method:"eth_chainId"}),o=N5(a),s=typeof e=="number"?e:e==null?void 0:e.chainId;if(!s||o===s)return this.actions.update({chainId:o,accounts:u});const c=`0x${s.toString(16)}`;return this.provider.request({method:"wallet_switchEthereumChain",params:[{chainId:c}]}).catch(d=>{var y,A;if((((A=(y=d.data)===null||y===void 0?void 0:y.originalError)===null||A===void 0?void 0:A.code)||d.code)===4902&&typeof e!="number"){if(!this.provider)throw new Error("No provider");return this.provider.request({method:"wallet_addEthereumChain",params:[Object.assign(Object.assign({},e),{chainId:c})]})}throw d}).then(()=>this.activate(s))})).catch(u=>{throw i==null||i(),u})})}watchAsset({address:e,symbol:r,decimals:n,image:i}){return Xn(this,void 0,void 0,function*(){if(!this.provider)throw new Error("No provider");return this.provider.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:e,symbol:r,decimals:n,image:i}}}).then(u=>{if(!u)throw new Error("Rejected");return!0})})}}Mp=Pu.MetaMask=DF;const[j4,Ot]=D8.initializeConnector(t=>new Mp({actions:t}));var Q0=(t=>(t[t.LOCAL=1337]="LOCAL",t[t.MAINNET=1]="MAINNET",t[t.SEPOLIA=11155111]="SEPOLIA",t[t.OPTIMISM=10]="OPTIMISM",t[t.OPTIMISM_GOERLI=420]="OPTIMISM_GOERLI",t[t.GOERLI=5]="GOERLI",t))(Q0||{});const yn="0xaa36a7",R2="0xa",Z9="0x1",_F="11155111",Oi={[Q0.SEPOLIA]:"0x3807fBD692Aa5c96F1D8D7c59a1346a885F40B1C",[Q0.OPTIMISM]:"0xca5b5811c0C40aAB3295f932b1B5112Eb7bb4bD6"},M5={[Q0.SEPOLIA]:"0xC5a939923E0B336642024b479502E039338bEd00",[Q0.OPTIMISM]:"0x66929F55Ea1E38591f9430E5013C92cdC01F6cAd"},U5={[Q0.SEPOLIA]:"0x0635513f179D50A207757E05759CbD106d7dFcE8",[Q0.MAINNET]:"0xD4416b13d2b3a9aBae7AcD5D6C2BbDBE25686401"},I5={[Q0.SEPOLIA]:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",[Q0.MAINNET]:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},R5={[Q0.SEPOLIA]:"0xD4583DFd73B382B7e3230aa29Be774C1843FB7d2",[Q0.GOERLI]:"0xD4583DFd73B382B7e3230aa29Be774C1843FB7d2",[Q0.MAINNET]:"0xa1F47fBBa93574DB4a049C1c5bA03471A21EE01D"},O5={[Q0.SEPOLIA]:"0x528bA1BA3186d8CABD2c4E8758a98fAf64eD8Af0",[Q0.OPTIMISM]:"0x0b35664aB5950cE92bce7222be165BB575D9b7c5"},e5="abi/5.7.0",C1=new r0(e5),Pn={};let Hl={calldata:!0,memory:!0,storage:!0},kF={calldata:!0,memory:!0};function L5(t,e){if(t==="bytes"||t==="string"){if(Hl[e])return!0}else if(t==="address"){if(e==="payable")return!0}else if((t.indexOf("[")>=0||t==="tuple")&&kF[e])return!0;return(Hl[e]||e==="payable")&&C1.throwArgumentError("invalid modifier","name",e),!1}function SF(t,e){let r=t;function n(o){C1.throwArgumentError(`unexpected character at position ${o}`,"param",t)}t=t.replace(/\s/g," ");function i(o){let s={type:"",name:"",parent:o,state:{allowType:!0}};return e&&(s.indexed=!1),s}let u={type:"",name:"",state:{allowType:!0}},a=u;for(let o=0;oJSON.parse(i.format(e)))),JSON.stringify(n)}let r="";return this.baseType==="array"?(r+=this.arrayChildren.format(e),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(e!==_1.sighash&&(r+=this.type),r+="("+this.components.map(n=>n.format(e)).join(e===_1.full?", ":",")+")"):r+=this.type,e!==_1.sighash&&(this.indexed===!0&&(r+=" indexed"),e===_1.full&&this.name&&(r+=" "+this.name)),r}static from(e,r){return typeof e=="string"?he.fromString(e,r):he.fromObject(e)}static fromObject(e){return he.isParamType(e)?e:new he(Pn,{name:e.name||null,type:n6(e.type),indexed:e.indexed==null?null:!!e.indexed,components:e.components?e.components.map(he.fromObject):null})}static fromString(e,r){function n(i){return he.fromObject({name:i.name,type:i.type,indexed:i.indexed,components:i.components})}return n(SF(e,!!r))}static isParamType(e){return!!(e!=null&&e._isParamType)}}function Mu(t,e){return NF(t).map(r=>he.fromString(r,e))}class br{constructor(e,r){e!==Pn&&C1.throwError("use a static from method",r0.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),m9(this,r),this._isFragment=!0,Object.freeze(this)}static from(e){return br.isFragment(e)?e:typeof e=="string"?br.fromString(e):br.fromObject(e)}static fromObject(e){if(br.isFragment(e))return e;switch(e.type){case"function":return Jt.fromObject(e);case"event":return hr.fromObject(e);case"constructor":return Vt.fromObject(e);case"error":return $r.fromObject(e);case"fallback":case"receive":return null}return C1.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return e=e.replace(/\s/g," "),e=e.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),e=e.trim(),e.split(" ")[0]==="event"?hr.fromString(e.substring(5).trim()):e.split(" ")[0]==="function"?Jt.fromString(e.substring(8).trim()):e.split("(")[0].trim()==="constructor"?Vt.fromString(e.trim()):e.split(" ")[0]==="error"?$r.fromString(e.substring(5).trim()):C1.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class hr extends br{format(e){if(e||(e=_1.sighash),_1[e]||C1.throwArgumentError("invalid format type","format",e),e===_1.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==_1.sighash&&(r+="event "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===_1.full?", ":",")+") ",e!==_1.sighash&&this.anonymous&&(r+="anonymous "),r.trim()}static from(e){return typeof e=="string"?hr.fromString(e):hr.fromObject(e)}static fromObject(e){if(hr.isEventFragment(e))return e;e.type!=="event"&&C1.throwArgumentError("invalid event object","value",e);const r={name:Uu(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(he.fromObject):[],type:"event"};return new hr(Pn,r)}static fromString(e){let r=e.match(Iu);r||C1.throwArgumentError("invalid event string","value",e);let n=!1;return r[3].split(" ").forEach(i=>{switch(i.trim()){case"anonymous":n=!0;break;case"":break;default:C1.warn("unknown modifier: "+i)}}),hr.fromObject({name:r[1].trim(),anonymous:n,inputs:Mu(r[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&e.type==="event"}}function Up(t,e){e.gas=null;let r=t.split("@");return r.length!==1?(r.length>2&&C1.throwArgumentError("invalid human-readable ABI signature","value",t),r[1].match(/^[0-9]+$/)||C1.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=P0.from(r[1]),r[0]):t}function Ip(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach(r=>{switch(r.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+r)}})}function Rp(t){let e={constant:!1,payable:!0,stateMutability:"payable"};return t.stateMutability!=null?(e.stateMutability=t.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",t.constant!=null&&!!t.constant!==e.constant&&C1.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable=e.stateMutability==="payable",t.payable!=null&&!!t.payable!==e.payable&&C1.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):t.payable!=null?(e.payable=!!t.payable,t.constant==null&&!e.payable&&t.type!=="constructor"&&C1.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&C1.throwArgumentError("cannot have constant payable function","value",t)):t.constant!=null?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):t.type!=="constructor"&&C1.throwArgumentError("unable to determine stateMutability","value",t),e}class Vt extends br{format(e){if(e||(e=_1.sighash),_1[e]||C1.throwArgumentError("invalid format type","format",e),e===_1.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});e===_1.sighash&&C1.throwError("cannot format a constructor for sighash",r0.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let r="constructor("+this.inputs.map(n=>n.format(e)).join(e===_1.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "),r.trim()}static from(e){return typeof e=="string"?Vt.fromString(e):Vt.fromObject(e)}static fromObject(e){if(Vt.isConstructorFragment(e))return e;e.type!=="constructor"&&C1.throwArgumentError("invalid constructor object","value",e);let r=Rp(e);r.constant&&C1.throwArgumentError("constructor cannot be constant","value",e);const n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(he.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?P0.from(e.gas):null};return new Vt(Pn,n)}static fromString(e){let r={type:"constructor"};e=Up(e,r);let n=e.match(Iu);return(!n||n[1].trim()!=="constructor")&&C1.throwArgumentError("invalid constructor string","value",e),r.inputs=Mu(n[2].trim(),!1),Ip(n[3].trim(),r),Vt.fromObject(r)}static isConstructorFragment(e){return e&&e._isFragment&&e.type==="constructor"}}class Jt extends Vt{format(e){if(e||(e=_1.sighash),_1[e]||C1.throwArgumentError("invalid format type","format",e),e===_1.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?this.gas.toNumber():void 0,inputs:this.inputs.map(n=>JSON.parse(n.format(e))),outputs:this.outputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==_1.sighash&&(r+="function "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===_1.full?", ":",")+") ",e!==_1.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "):this.constant&&(r+="view "),this.outputs&&this.outputs.length&&(r+="returns ("+this.outputs.map(n=>n.format(e)).join(", ")+") "),this.gas!=null&&(r+="@"+this.gas.toString()+" ")),r.trim()}static from(e){return typeof e=="string"?Jt.fromString(e):Jt.fromObject(e)}static fromObject(e){if(Jt.isFunctionFragment(e))return e;e.type!=="function"&&C1.throwArgumentError("invalid function object","value",e);let r=Rp(e);const n={type:e.type,name:Uu(e.name),constant:r.constant,inputs:e.inputs?e.inputs.map(he.fromObject):[],outputs:e.outputs?e.outputs.map(he.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?P0.from(e.gas):null};return new Jt(Pn,n)}static fromString(e){let r={type:"function"};e=Up(e,r);let n=e.split(" returns ");n.length>2&&C1.throwArgumentError("invalid function string","value",e);let i=n[0].match(Iu);if(i||C1.throwArgumentError("invalid function signature","value",e),r.name=i[1].trim(),r.name&&Uu(r.name),r.inputs=Mu(i[2],!1),Ip(i[3].trim(),r),n.length>1){let u=n[1].match(Iu);(u[1].trim()!=""||u[3].trim()!="")&&C1.throwArgumentError("unexpected tokens","value",e),r.outputs=Mu(u[2],!1)}else r.outputs=[];return Jt.fromObject(r)}static isFunctionFragment(e){return e&&e._isFragment&&e.type==="function"}}function Kl(t){const e=t.format();return(e==="Error(string)"||e==="Panic(uint256)")&&C1.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class $r extends br{format(e){if(e||(e=_1.sighash),_1[e]||C1.throwArgumentError("invalid format type","format",e),e===_1.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==_1.sighash&&(r+="error "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===_1.full?", ":",")+") ",r.trim()}static from(e){return typeof e=="string"?$r.fromString(e):$r.fromObject(e)}static fromObject(e){if($r.isErrorFragment(e))return e;e.type!=="error"&&C1.throwArgumentError("invalid error object","value",e);const r={type:e.type,name:Uu(e.name),inputs:e.inputs?e.inputs.map(he.fromObject):[]};return Kl(new $r(Pn,r))}static fromString(e){let r={type:"error"},n=e.match(Iu);return n||C1.throwArgumentError("invalid error signature","value",e),r.name=n[1].trim(),r.name&&Uu(r.name),r.inputs=Mu(n[2],!1),Kl($r.fromObject(r))}static isErrorFragment(e){return e&&e._isFragment&&e.type==="error"}}function n6(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const PF=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function Uu(t){return(!t||!t.match(PF))&&C1.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const Iu=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function NF(t){t=t.trim();let e=[],r="",n=0;for(let i=0;ithis.wordSize&&z4.throwError("value out-of-bounds",r0.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:r.length}),r.length%this.wordSize&&(r=L1([this._padding.slice(r.length%this.wordSize),r])),r}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,r=>{this._data[e]=this._getValue(r)}}}class e8{constructor(e,r,n,i){b0(this,"_data",k0(e)),b0(this,"wordSize",r||32),b0(this,"_coerceFunc",n),b0(this,"allowLoose",i),this._offset=0}get data(){return N0(this._data)}get consumed(){return this._offset}static coerce(e,r){let n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(r=r.toNumber()),r}coerce(e,r){return this._coerceFunc?this._coerceFunc(e,r):e8.coerce(e,r)}_peekBytes(e,r,n){let i=Math.ceil(r/this.wordSize)*this.wordSize;return this._offset+i>this._data.length&&(this.allowLoose&&n&&this._offset+r<=this._data.length?i=r:z4.throwError("data out-of-bounds",r0.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+i})),this._data.slice(this._offset,this._offset+i)}subReader(e){return new e8(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,r){let n=this._peekBytes(0,e,!!r);return this._offset+=n.length,n.slice(0,e)}readValue(){return P0.from(this.readBytes(this.wordSize))}}class MF extends a2{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,r){try{r=I1(r)}catch(n){this._throwError(n.message,r)}return e.writeValue(r)}decode(e){return I1(j1(e.readValue().toHexString(),20))}}class UF extends a2{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,r){return this.coder.encode(e,r)}decode(e){return this.coder.decode(e)}}const w6=new r0(e5);function Lp(t,e,r){let n=null;if(Array.isArray(r))n=r;else if(r&&typeof r=="object"){let s={};n=e.map(c=>{const d=c.localName;return d||w6.throwError("cannot encode object for signature with missing names",r0.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),s[d]&&w6.throwError("cannot encode object for signature with duplicate names",r0.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),s[d]=!0,r[d]})}else w6.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&w6.throwArgumentError("types/value length mismatch","tuple",r);let i=new fs(t.wordSize),u=new fs(t.wordSize),a=[];e.forEach((s,c)=>{let d=n[c];if(s.dynamic){let y=u.length;s.encode(u,d);let A=i.writeUpdatableValue();a.push(C=>{A(C+y)})}else s.encode(i,d)}),a.forEach(s=>{s(i.length)});let o=t.appendWriter(i);return o+=t.appendWriter(u),o}function jp(t,e){let r=[],n=t.subReader(0);e.forEach(u=>{let a=null;if(u.dynamic){let o=t.readValue(),s=n.subReader(o.toNumber());try{a=u.decode(s)}catch(c){if(c.code===r0.errors.BUFFER_OVERRUN)throw c;a=c,a.baseType=u.name,a.name=u.localName,a.type=u.type}}else try{a=u.decode(t)}catch(o){if(o.code===r0.errors.BUFFER_OVERRUN)throw o;a=o,a.baseType=u.name,a.name=u.localName,a.type=u.type}a!=null&&r.push(a)});const i=e.reduce((u,a)=>{const o=a.localName;return o&&(u[o]||(u[o]=0),u[o]++),u},{});e.forEach((u,a)=>{let o=u.localName;if(!o||i[o]!==1||(o==="length"&&(o="_length"),r[o]!=null))return;const s=r[a];s instanceof Error?Object.defineProperty(r,o,{enumerable:!0,get:()=>{throw s}}):r[o]=s});for(let u=0;u{throw a}})}return Object.freeze(r)}class IF extends a2{constructor(e,r,n){const i=e.type+"["+(r>=0?r:"")+"]",u=r===-1||e.dynamic;super("array",i,n,u),this.coder=e,this.length=r}defaultValue(){const e=this.coder.defaultValue(),r=[];for(let n=0;ne._data.length&&w6.throwError("insufficient data length",r0.errors.BUFFER_OVERRUN,{length:e._data.length,count:r}));let n=[];for(let i=0;i{a.dynamic&&(n=!0),i.push(a.type)});const u="tuple("+i.join(",")+")";super("tuple",u,r,n),this.coders=e}defaultValue(){const e=[];this.coders.forEach(n=>{e.push(n.defaultValue())});const r=this.coders.reduce((n,i)=>{const u=i.localName;return u&&(n[u]||(n[u]=0),n[u]++),n},{});return this.coders.forEach((n,i)=>{let u=n.localName;!u||r[u]!==1||(u==="length"&&(u="_length"),e[u]==null&&(e[u]=e[i]))}),Object.freeze(e)}encode(e,r){return Lp(e,this.coders,r)}decode(e){return e.coerce(this.name,jp(e,this.coders))}}const z5=new r0(e5),qF=new RegExp(/^bytes([0-9]*)$/),HF=new RegExp(/^(u?int)([0-9]*)$/);class $p{constructor(e){b0(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new MF(e.name);case"bool":return new RF(e.name);case"string":return new $F(e.name);case"bytes":return new OF(e.name);case"array":return new IF(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new j5((e.components||[]).map(n=>this._getCoder(n)),e.name);case"":return new jF(e.name)}let r=e.type.match(HF);if(r){let n=parseInt(r[2]||"256");return(n===0||n>256||n%8!==0)&&z5.throwArgumentError("invalid "+r[1]+" bit length","param",e),new zF(n/8,r[1]==="int",e.name)}if(r=e.type.match(qF),r){let n=parseInt(r[1]);return(n===0||n>32)&&z5.throwArgumentError("invalid bytes length","param",e),new LF(n,e.name)}return z5.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,r){return new e8(e,this._getWordSize(),this.coerceFunc,r)}_getWriter(){return new fs(this._getWordSize())}getDefaultValue(e){const r=e.map(i=>this._getCoder(he.from(i)));return new j5(r,"_").defaultValue()}encode(e,r){e.length!==r.length&&z5.throwError("types/values length mismatch",r0.errors.INVALID_ARGUMENT,{count:{types:e.length,values:r.length},value:{types:e,values:r}});const n=e.map(a=>this._getCoder(he.from(a))),i=new j5(n,"_"),u=this._getWriter();return i.encode(u,r),u.data}decode(e,r,n){const i=e.map(a=>this._getCoder(he.from(a)));return new j5(i,"_").decode(this._getReader(k0(r),n))}}const qp=new $p,V1=new r0(e5);class Hp extends Q2{}class Kp extends Q2{}class KF extends Q2{}class t8 extends Q2{static isIndexed(e){return!!(e&&e._isIndexed)}}const GF={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function Gl(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);return r.error=e,r}class t2{constructor(e){let r=[];typeof e=="string"?r=JSON.parse(e):r=e,b0(this,"fragments",r.map(n=>br.from(n)).filter(n=>n!=null)),b0(this,"_abiCoder",De(new.target,"getAbiCoder")()),b0(this,"functions",{}),b0(this,"errors",{}),b0(this,"events",{}),b0(this,"structs",{}),this.fragments.forEach(n=>{let i=null;switch(n.type){case"constructor":if(this.deploy){V1.warn("duplicate definition - constructor");return}b0(this,"deploy",n);return;case"function":i=this.functions;break;case"event":i=this.events;break;case"error":i=this.errors;break;default:return}let u=n.format();if(i[u]){V1.warn("duplicate definition - "+u);return}i[u]=n}),this.deploy||b0(this,"deploy",Vt.from({payable:!1,type:"constructor"})),b0(this,"_isInterface",!0)}format(e){e||(e=_1.full),e===_1.sighash&&V1.throwArgumentError("interface does not support formatting sighash","format",e);const r=this.fragments.map(n=>n.format(e));return e===_1.json?JSON.stringify(r.map(n=>JSON.parse(n))):r}static getAbiCoder(){return qp}static getAddress(e){return I1(e)}static getSighash(e){return ue(F2(e.format()),0,4)}static getEventTopic(e){return F2(e.format())}getFunction(e){if(s1(e)){for(const n in this.functions)if(e===this.getSighash(n))return this.functions[n];V1.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.functions).filter(u=>u.split("(")[0]===n);return i.length===0?V1.throwArgumentError("no matching function","name",n):i.length>1&&V1.throwArgumentError("multiple matching functions","name",n),this.functions[i[0]]}const r=this.functions[Jt.fromString(e).format()];return r||V1.throwArgumentError("no matching function","signature",e),r}getEvent(e){if(s1(e)){const n=e.toLowerCase();for(const i in this.events)if(n===this.getEventTopic(i))return this.events[i];V1.throwArgumentError("no matching event","topichash",n)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.events).filter(u=>u.split("(")[0]===n);return i.length===0?V1.throwArgumentError("no matching event","name",n):i.length>1&&V1.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}const r=this.events[hr.fromString(e).format()];return r||V1.throwArgumentError("no matching event","signature",e),r}getError(e){if(s1(e)){const n=De(this.constructor,"getSighash");for(const i in this.errors){const u=this.errors[i];if(e===n(u))return this.errors[i]}V1.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.errors).filter(u=>u.split("(")[0]===n);return i.length===0?V1.throwArgumentError("no matching error","name",n):i.length>1&&V1.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}const r=this.errors[Jt.fromString(e).format()];return r||V1.throwArgumentError("no matching error","signature",e),r}getSighash(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(r){try{e=this.getError(e)}catch{throw r}}return De(this.constructor,"getSighash")(e)}getEventTopic(e){return typeof e=="string"&&(e=this.getEvent(e)),De(this.constructor,"getEventTopic")(e)}_decodeParams(e,r){return this._abiCoder.decode(e,r)}_encodeParams(e,r){return this._abiCoder.encode(e,r)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,r){typeof e=="string"&&(e=this.getError(e));const n=k0(r);return N0(n.slice(0,4))!==this.getSighash(e)&&V1.throwArgumentError(`data signature does not match error ${e.name}.`,"data",N0(n)),this._decodeParams(e.inputs,n.slice(4))}encodeErrorResult(e,r){return typeof e=="string"&&(e=this.getError(e)),N0(L1([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionData(e,r){typeof e=="string"&&(e=this.getFunction(e));const n=k0(r);return N0(n.slice(0,4))!==this.getSighash(e)&&V1.throwArgumentError(`data signature does not match function ${e.name}.`,"data",N0(n)),this._decodeParams(e.inputs,n.slice(4))}encodeFunctionData(e,r){return typeof e=="string"&&(e=this.getFunction(e)),N0(L1([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionResult(e,r){typeof e=="string"&&(e=this.getFunction(e));let n=k0(r),i=null,u="",a=null,o=null,s=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch{}break;case 4:{const c=N0(n.slice(0,4)),d=GF[c];if(d)a=this._abiCoder.decode(d.inputs,n.slice(4)),o=d.name,s=d.signature,d.reason&&(i=a[0]),o==="Error"?u=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(a[0])}`:o==="Panic"&&(u=`; VM Exception while processing transaction: reverted with panic code ${a[0]}`);else try{const y=this.getError(c);a=this._abiCoder.decode(y.inputs,n.slice(4)),o=y.name,s=y.format()}catch{}break}}return V1.throwError("call revert exception"+u,r0.errors.CALL_EXCEPTION,{method:e.format(),data:N0(r),errorArgs:a,errorName:o,errorSignature:s,reason:i})}encodeFunctionResult(e,r){return typeof e=="string"&&(e=this.getFunction(e)),N0(this._abiCoder.encode(e.outputs,r||[]))}encodeFilterTopics(e,r){typeof e=="string"&&(e=this.getEvent(e)),r.length>e.inputs.length&&V1.throwError("too many arguments for "+e.format(),r0.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:r});let n=[];e.anonymous||n.push(this.getEventTopic(e));const i=(u,a)=>u.type==="string"?F2(a):u.type==="bytes"?O1(N0(a)):(u.type==="bool"&&typeof a=="boolean"&&(a=a?"0x01":"0x00"),u.type.match(/^u?int/)&&(a=P0.from(a).toHexString()),u.type==="address"&&this._abiCoder.encode(["address"],[a]),j1(N0(a),32));for(r.forEach((u,a)=>{let o=e.inputs[a];if(!o.indexed){u!=null&&V1.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,u);return}u==null?n.push(null):o.baseType==="array"||o.baseType==="tuple"?V1.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,u):Array.isArray(u)?n.push(u.map(s=>i(o,s))):n.push(i(o,u))});n.length&&n[n.length-1]===null;)n.pop();return n}encodeEventLog(e,r){typeof e=="string"&&(e=this.getEvent(e));const n=[],i=[],u=[];return e.anonymous||n.push(this.getEventTopic(e)),r.length!==e.inputs.length&&V1.throwArgumentError("event arguments/values mismatch","values",r),e.inputs.forEach((a,o)=>{const s=r[o];if(a.indexed)if(a.type==="string")n.push(F2(s));else if(a.type==="bytes")n.push(O1(s));else{if(a.baseType==="tuple"||a.baseType==="array")throw new Error("not implemented");n.push(this._abiCoder.encode([a.type],[s]))}else i.push(a),u.push(s)}),{data:this._abiCoder.encode(i,u),topics:n}}decodeEventLog(e,r,n){if(typeof e=="string"&&(e=this.getEvent(e)),n!=null&&!e.anonymous){let A=this.getEventTopic(e);(!s1(n[0],32)||n[0].toLowerCase()!==A)&&V1.throwError("fragment/topic mismatch",r0.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:A,value:n[0]}),n=n.slice(1)}let i=[],u=[],a=[];e.inputs.forEach((A,C)=>{A.indexed?A.type==="string"||A.type==="bytes"||A.baseType==="tuple"||A.baseType==="array"?(i.push(he.fromObject({type:"bytes32",name:A.name})),a.push(!0)):(i.push(A),a.push(!1)):(u.push(A),a.push(!1))});let o=n!=null?this._abiCoder.decode(i,L1(n)):null,s=this._abiCoder.decode(u,r,!0),c=[],d=0,y=0;e.inputs.forEach((A,C)=>{if(A.indexed)if(o==null)c[C]=new t8({_isIndexed:!0,hash:null});else if(a[C])c[C]=new t8({_isIndexed:!0,hash:o[y++]});else try{c[C]=o[y++]}catch(T){c[C]=T}else try{c[C]=s[d++]}catch(T){c[C]=T}if(A.name&&c[A.name]==null){const T=c[C];T instanceof Error?Object.defineProperty(c,A.name,{enumerable:!0,get:()=>{throw Gl(`property ${JSON.stringify(A.name)}`,T)}}):c[A.name]=T}});for(let A=0;A{throw Gl(`index ${A}`,C)}})}return Object.freeze(c)}parseTransaction(e){let r=this.getFunction(e.data.substring(0,10).toLowerCase());return r?new Kp({args:this._abiCoder.decode(r.inputs,"0x"+e.data.substring(10)),functionFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r),value:P0.from(e.value||"0")}):null}parseLog(e){let r=this.getEvent(e.topics[0]);return!r||r.anonymous?null:new Hp({eventFragment:r,name:r.name,signature:r.format(),topic:this.getEventTopic(r),args:this.decodeEventLog(r,e.data,e.topics)})}parseError(e){const r=N0(e);let n=this.getError(r.substring(0,10).toLowerCase());return n?new KF({args:this._abiCoder.decode(n.inputs,"0x"+r.substring(10)),errorFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n)}):null}static isInterface(e){return!!(e&&e._isInterface)}}const WF=Object.freeze(Object.defineProperty({__proto__:null,AbiCoder:$p,ConstructorFragment:Vt,ErrorFragment:$r,EventFragment:hr,FormatTypes:_1,Fragment:br,FunctionFragment:Jt,Indexed:t8,Interface:t2,LogDescription:Hp,ParamType:he,TransactionDescription:Kp,checkResultErrors:Op,defaultAbiCoder:qp},Symbol.toStringTag,{value:"Module"})),VF="contracts/5.7.0";var $2=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const R1=new r0(VF),JF={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function r8(t,e){return $2(this,void 0,void 0,function*(){const r=yield e;typeof r!="string"&&R1.throwArgumentError("invalid address or ENS name","name",r);try{return I1(r)}catch{}t||R1.throwError("a provider or signer is needed to resolve ENS names",r0.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield t.resolveName(r);return n==null&&R1.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n})}function Zi(t,e,r){return $2(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((n,i)=>Zi(t,Array.isArray(e)?e[i]:e[n.name],n))):r.type==="address"?yield r8(t,e):r.type==="tuple"?yield Zi(t,e,r.components):r.baseType==="array"?Array.isArray(e)?yield Promise.all(e.map(n=>Zi(t,n,r.arrayChildren))):Promise.reject(R1.makeError("invalid value for array",r0.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e})}function z8(t,e,r){return $2(this,void 0,void 0,function*(){let n={};r.length===e.inputs.length+1&&typeof r[r.length-1]=="object"&&(n=q1(r.pop())),R1.checkArgumentCount(r.length,e.inputs.length,"passed to contract"),t.signer?n.from?n.from=te({override:r8(t.signer,n.from),signer:t.signer.getAddress()}).then(c=>$2(this,void 0,void 0,function*(){return I1(c.signer)!==c.override&&R1.throwError("Contract with a Signer cannot override from",r0.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),c.override})):n.from=t.signer.getAddress():n.from&&(n.from=r8(t.provider,n.from));const i=yield te({args:Zi(t.signer||t.provider,r,e.inputs),address:t.resolvedAddress,overrides:te(n)||{}}),u=t.interface.encodeFunctionData(e,i.args),a={data:u,to:i.address},o=i.overrides;if(o.nonce!=null&&(a.nonce=P0.from(o.nonce).toNumber()),o.gasLimit!=null&&(a.gasLimit=P0.from(o.gasLimit)),o.gasPrice!=null&&(a.gasPrice=P0.from(o.gasPrice)),o.maxFeePerGas!=null&&(a.maxFeePerGas=P0.from(o.maxFeePerGas)),o.maxPriorityFeePerGas!=null&&(a.maxPriorityFeePerGas=P0.from(o.maxPriorityFeePerGas)),o.from!=null&&(a.from=o.from),o.type!=null&&(a.type=o.type),o.accessList!=null&&(a.accessList=Z2(o.accessList)),a.gasLimit==null&&e.gas!=null){let c=21e3;const d=k0(u);for(let y=0;yn[c]!=null);return s.length&&R1.throwError(`cannot override ${s.map(c=>JSON.stringify(c)).join(",")}`,r0.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:s}),a})}function QF(t,e){return function(...r){return z8(t,e,r)}}function YF(t,e){const r=t.signer||t.provider;return function(...n){return $2(this,void 0,void 0,function*(){r||R1.throwError("estimate require a provider or signer",r0.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield z8(t,e,n);return yield r.estimateGas(i)})}}function Gp(t,e){const r=e.wait.bind(e);e.wait=n=>r(n).then(i=>(i.events=i.logs.map(u=>{let a=Qe(u),o=null;try{o=t.interface.parseLog(u)}catch{}return o&&(a.args=o.args,a.decode=(s,c)=>t.interface.decodeEventLog(o.eventFragment,s,c),a.event=o.name,a.eventSignature=o.signature),a.removeListener=()=>t.provider,a.getBlock=()=>t.provider.getBlock(i.blockHash),a.getTransaction=()=>t.provider.getTransaction(i.transactionHash),a.getTransactionReceipt=()=>Promise.resolve(i),a}),i))}function Wp(t,e,r){const n=t.signer||t.provider;return function(...i){return $2(this,void 0,void 0,function*(){let u;if(i.length===e.inputs.length+1&&typeof i[i.length-1]=="object"){const s=q1(i.pop());s.blockTag!=null&&(u=yield s.blockTag),delete s.blockTag,i.push(s)}t.deployTransaction!=null&&(yield t._deployed(u));const a=yield z8(t,e,i),o=yield n.call(a,u);try{let s=t.interface.decodeFunctionResult(e,o);return r&&e.outputs.length===1&&(s=s[0]),s}catch(s){throw s.code===r0.errors.CALL_EXCEPTION&&(s.address=t.address,s.args=i,s.transaction=a),s}})}}function XF(t,e){return function(...r){return $2(this,void 0,void 0,function*(){t.signer||R1.throwError("sending a transaction requires a signer",r0.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),t.deployTransaction!=null&&(yield t._deployed());const n=yield z8(t,e,r),i=yield t.signer.sendTransaction(n);return Gp(t,i),i})}}function Wl(t,e,r){return e.constant?Wp(t,e,r):XF(t,e)}function Vp(t){return t.address&&(t.topics==null||t.topics.length===0)?"*":(t.address||"*")+"@"+(t.topics?t.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):"")}class Ru{constructor(e,r){b0(this,"tag",e),b0(this,"filter",r),this._listeners=[]}addListener(e,r){this._listeners.push({listener:e,once:r})}removeListener(e){let r=!1;this._listeners=this._listeners.filter(n=>r||n.listener!==e?!0:(r=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){const r=this.listenerCount();return this._listeners=this._listeners.filter(n=>{const i=e.slice();return setTimeout(()=>{n.listener.apply(this,i)},0),!n.once}),r}prepareEvent(e){}getEmit(e){return[e]}}class ZF extends Ru{constructor(){super("error",null)}}class Vl extends Ru{constructor(e,r,n,i){const u={address:e};let a=r.getEventTopic(n);i?(a!==i[0]&&R1.throwArgumentError("topic mismatch","topics",i),u.topics=i.slice()):u.topics=[a],super(Vp(u),u),b0(this,"address",e),b0(this,"interface",r),b0(this,"fragment",n)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(r,n)=>this.interface.decodeEventLog(this.fragment,r,n);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(r){e.args=null,e.decodeError=r}}getEmit(e){const r=Op(e.args);if(r.length)throw r[0].error;const n=(e.args||[]).slice();return n.push(e),n}}class Jl extends Ru{constructor(e,r){super("*",{address:e}),b0(this,"address",e),b0(this,"interface",r)}prepareEvent(e){super.prepareEvent(e);try{const r=this.interface.parseLog(e);e.event=r.name,e.eventSignature=r.signature,e.decode=(n,i)=>this.interface.decodeEventLog(r.eventFragment,n,i),e.args=r.args}catch{}}}class eB{constructor(e,r,n){b0(this,"interface",De(new.target,"getInterface")(r)),n==null?(b0(this,"provider",null),b0(this,"signer",null)):Ln.isSigner(n)?(b0(this,"provider",n.provider||null),b0(this,"signer",n)):Rn.isProvider(n)?(b0(this,"provider",n),b0(this,"signer",null)):R1.throwArgumentError("invalid signer or provider","signerOrProvider",n),b0(this,"callStatic",{}),b0(this,"estimateGas",{}),b0(this,"functions",{}),b0(this,"populateTransaction",{}),b0(this,"filters",{});{const a={};Object.keys(this.interface.events).forEach(o=>{const s=this.interface.events[o];b0(this.filters,o,(...c)=>({address:this.address,topics:this.interface.encodeFilterTopics(s,c)})),a[s.name]||(a[s.name]=[]),a[s.name].push(o)}),Object.keys(a).forEach(o=>{const s=a[o];s.length===1?b0(this.filters,o,this.filters[s[0]]):R1.warn(`Duplicate definition of ${o} (${s.join(", ")})`)})}if(b0(this,"_runningEvents",{}),b0(this,"_wrappedEmits",{}),e==null&&R1.throwArgumentError("invalid contract address or ENS name","addressOrName",e),b0(this,"address",e),this.provider)b0(this,"resolvedAddress",r8(this.provider,e));else try{b0(this,"resolvedAddress",Promise.resolve(I1(e)))}catch{R1.throwError("provider is required to use ENS name as contract address",r0.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(a=>{});const i={},u={};Object.keys(this.interface.functions).forEach(a=>{const o=this.interface.functions[a];if(u[a]){R1.warn(`Duplicate ABI entry for ${JSON.stringify(a)}`);return}u[a]=!0;{const s=o.name;i[`%${s}`]||(i[`%${s}`]=[]),i[`%${s}`].push(a)}this[a]==null&&b0(this,a,Wl(this,o,!0)),this.functions[a]==null&&b0(this.functions,a,Wl(this,o,!1)),this.callStatic[a]==null&&b0(this.callStatic,a,Wp(this,o,!0)),this.populateTransaction[a]==null&&b0(this.populateTransaction,a,QF(this,o)),this.estimateGas[a]==null&&b0(this.estimateGas,a,YF(this,o))}),Object.keys(i).forEach(a=>{const o=i[a];if(o.length>1)return;a=a.substring(1);const s=o[0];try{this[a]==null&&b0(this,a,this[s])}catch{}this.functions[a]==null&&b0(this.functions,a,this.functions[s]),this.callStatic[a]==null&&b0(this.callStatic,a,this.callStatic[s]),this.populateTransaction[a]==null&&b0(this.populateTransaction,a,this.populateTransaction[s]),this.estimateGas[a]==null&&b0(this.estimateGas,a,this.estimateGas[s])})}static getContractAddress(e){return k8(e)}static getInterface(e){return t2.isInterface(e)?e:new t2(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,e).then(r=>(r==="0x"&&R1.throwError("contract not deployed",r0.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||R1.throwError("sending a transactions require a signer",r0.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const r=q1(e||{});return["from","to"].forEach(function(n){r[n]!=null&&R1.throwError("cannot override "+n,r0.errors.UNSUPPORTED_OPERATION,{operation:n})}),r.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(r))}connect(e){typeof e=="string"&&(e=new I4(e,this.provider));const r=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&b0(r,"deployTransaction",this.deployTransaction),r}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return t8.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if(typeof e=="string"){if(e==="error")return this._normalizeRunningEvent(new ZF);if(e==="event")return this._normalizeRunningEvent(new Ru("event",null));if(e==="*")return this._normalizeRunningEvent(new Jl(this.address,this.interface));const r=this.interface.getEvent(e);return this._normalizeRunningEvent(new Vl(this.address,this.interface,r))}if(e.topics&&e.topics.length>0){try{const n=e.topics[0];if(typeof n!="string")throw new Error("invalid topic");const i=this.interface.getEvent(n);return this._normalizeRunningEvent(new Vl(this.address,this.interface,i,e.topics))}catch{}const r={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new Ru(Vp(r),r))}return this._normalizeRunningEvent(new Jl(this.address,this.interface))}_checkRunningEvents(e){if(e.listenerCount()===0){delete this._runningEvents[e.tag];const r=this._wrappedEmits[e.tag];r&&e.filter&&(this.provider.off(e.filter,r),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,r,n){const i=Qe(r);return i.removeListener=()=>{n&&(e.removeListener(n),this._checkRunningEvents(e))},i.getBlock=()=>this.provider.getBlock(r.blockHash),i.getTransaction=()=>this.provider.getTransaction(r.transactionHash),i.getTransactionReceipt=()=>this.provider.getTransactionReceipt(r.transactionHash),e.prepareEvent(i),i}_addEventListener(e,r,n){if(this.provider||R1.throwError("events require a provider or a signer with a provider",r0.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(r,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const i=u=>{let a=this._wrapEvent(e,u,r);if(a.decodeError==null)try{const o=e.getEmit(a);this.emit(e.filter,...o)}catch(o){a.decodeError=o.error}e.filter!=null&&this.emit("event",a),a.decodeError!=null&&this.emit("error",a.decodeError,a)};this._wrappedEmits[e.tag]=i,e.filter!=null&&this.provider.on(e.filter,i)}}queryFilter(e,r,n){const i=this._getRunningEvent(e),u=q1(i.filter);return typeof r=="string"&&s1(r,32)?(n!=null&&R1.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),u.blockHash=r):(u.fromBlock=r??0,u.toBlock=n??"latest"),this.provider.getLogs(u).then(a=>a.map(o=>this._wrapEvent(i,o,null)))}on(e,r){return this._addEventListener(this._getRunningEvent(e),r,!1),this}once(e,r){return this._addEventListener(this._getRunningEvent(e),r,!0),this}emit(e,...r){if(!this.provider)return!1;const n=this._getRunningEvent(e),i=n.run(r)>0;return this._checkRunningEvents(n),i}listenerCount(e){return this.provider?e==null?Object.keys(this._runningEvents).reduce((r,n)=>r+this._runningEvents[n].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(e==null){const r=[];for(let n in this._runningEvents)this._runningEvents[n].listeners().forEach(i=>{r.push(i)});return r}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(e==null){for(const n in this._runningEvents){const i=this._runningEvents[n];i.removeAllListeners(),this._checkRunningEvents(i)}return this}const r=this._getRunningEvent(e);return r.removeAllListeners(),this._checkRunningEvents(r),this}off(e,r){if(!this.provider)return this;const n=this._getRunningEvent(e);return n.removeListener(r),this._checkRunningEvents(n),this}removeListener(e,r){return this.off(e,r)}}class q2 extends eB{}class si{constructor(e,r,n){let i=null;typeof r=="string"?i=r:J2(r)?i=N0(r):r&&typeof r.object=="string"?i=r.object:i="!",i.substring(0,2)!=="0x"&&(i="0x"+i),(!s1(i)||i.length%2)&&R1.throwArgumentError("invalid bytecode","bytecode",r),n&&!Ln.isSigner(n)&&R1.throwArgumentError("invalid signer","signer",n),b0(this,"bytecode",i),b0(this,"interface",De(new.target,"getInterface")(e)),b0(this,"signer",n||null)}getDeployTransaction(...e){let r={};if(e.length===this.interface.deploy.inputs.length+1&&typeof e[e.length-1]=="object"){r=q1(e.pop());for(const n in r)if(!JF[n])throw new Error("unknown transaction override "+n)}return["data","from","to"].forEach(n=>{r[n]!=null&&R1.throwError("cannot override "+n,r0.errors.UNSUPPORTED_OPERATION,{operation:n})}),r.value&&!P0.from(r.value).isZero()&&!this.interface.deploy.payable&&R1.throwError("non-payable constructor cannot override value",r0.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:r.value}),R1.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor"),r.data=N0(L1([this.bytecode,this.interface.encodeDeploy(e)])),r}deploy(...e){return $2(this,void 0,void 0,function*(){let r={};e.length===this.interface.deploy.inputs.length+1&&(r=e.pop()),R1.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor");const n=yield Zi(this.signer,e,this.interface.deploy.inputs);n.push(r);const i=this.getDeployTransaction(...n),u=yield this.signer.sendTransaction(i),a=De(this.constructor,"getContractAddress")(u),o=De(this.constructor,"getContract")(a,this.interface,this.signer);return Gp(o,u),b0(o,"deployTransaction",u),o})}attach(e){return this.constructor.getContract(e,this.interface,this.signer)}connect(e){return new this.constructor(this.interface,this.bytecode,e)}static fromSolidity(e,r){e==null&&R1.throwError("missing compiler output",r0.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),typeof e=="string"&&(e=JSON.parse(e));const n=e.abi;let i=null;return e.bytecode?i=e.bytecode:e.evm&&e.evm.bytecode&&(i=e.evm.bytecode),new this(n,i,r)}static getInterface(e){return q2.getInterface(e)}static getContractAddress(e){return k8(e)}static getContract(e,r,n){return new q2(e,r,n)}}function $4(t,e,r,n,i){t=k0(t),e=k0(e);let u,a=1;const o=new Uint8Array(n),s=new Uint8Array(e.length+4);s.set(e);let c,d;for(let y=1;y<=a;y++){s[e.length]=y>>24&255,s[e.length+1]=y>>16&255,s[e.length+2]=y>>8&255,s[e.length+3]=y&255;let A=k0(Su(i,t,s));u||(u=A.length,d=new Uint8Array(u),a=Math.ceil(n/u),c=n-(a-1)*u),d.set(A);for(let U=1;U=256)throw new Error("Depth too large!");return Xf(L1([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",N0(this.depth),this.parentFingerprint,j1(N0(this.index),4),this.chainCode,this.privateKey!=null?L1(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new pt(Zn,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw new Error("invalid index - "+String(e));let r=this.path;r&&(r+="/"+(e&~i6));const n=new Uint8Array(37);if(e&i6){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set(k0(this.privateKey),1),r&&(r+="'")}else n.set(k0(this.publicKey));for(let y=24;y>=0;y-=8)n[33+(y>>3)]=e>>24-y&255;const i=k0(Su(V6.sha512,this.chainCode,n)),u=i.slice(0,32),a=i.slice(32);let o=null,s=null;this.privateKey?o=$5(P0.from(u).add(this.privateKey).mod(aB)):s=new vn(N0(u))._addPoint(this.publicKey);let c=r;const d=this.mnemonic;return d&&(c=Object.freeze({phrase:d.phrase,path:r,locale:d.locale||"en"})),new pt(Zn,o,s,this.fingerprint,$5(a),e,this.depth+1,c)}derivePath(e){const r=e.split("/");if(r.length===0||r[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+e);r[0]==="m"&&r.shift();let n=this;for(let i=0;i=i6)throw new Error("invalid path index - "+u);n=n._derive(i6+a)}else if(u.match(/^[0-9]+$/)){const a=parseInt(u);if(a>=i6)throw new Error("invalid path index - "+u);n=n._derive(a)}else throw new Error("invalid path component - "+u)}return n}static _fromSeed(e,r){const n=k0(e);if(n.length<16||n.length>64)throw new Error("invalid seed");const i=k0(Su(V6.sha512,oB,n));return new pt(Zn,$5(i.slice(0,32)),null,"0x00000000",$5(i.slice(32)),0,0,r)}static fromMnemonic(e,r,n){return n=q4(n),e=q8($8(e,n),n),pt._fromSeed(Yp(e,r),{phrase:e,path:"m",locale:n.locale})}static fromSeed(e){return pt._fromSeed(e,null)}static fromExtendedKey(e){const r=H6.decode(e);(r.length!==82||Xf(r.slice(0,78))!==e)&&Ou.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const n=r[4],i=N0(r.slice(5,9)),u=parseInt(N0(r.slice(9,13)).substring(2),16),a=N0(r.slice(13,45)),o=r.slice(45,78);switch(N0(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new pt(Zn,null,N0(o),i,a,u,n,null);case"0x0488ade4":case"0x04358394 ":if(o[0]!==0)break;return new pt(Zn,N0(o.slice(1)),null,i,a,u,n,null)}return Ou.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function Yp(t,e){e||(e="");const r=H1("mnemonic"+e,Sr.NFKD);return $4(H1(t,Sr.NFKD),r,2048,64,"sha512")}function $8(t,e){e=q4(e),Ou.checkNormalize();const r=e.split(t);if(r.length%3!==0)throw new Error("invalid mnemonic");const n=k0(new Uint8Array(Math.ceil(11*r.length/8)));let i=0;for(let c=0;c>3]|=1<<7-i%8),i++}const u=32*r.length/3,a=r.length/3,o=Qp(a);if((k0(gt(n.slice(0,u/8)))[0]&o)!==(n[n.length-1]&o))throw new Error("invalid checksum");return N0(n.slice(0,u/8))}function q8(t,e){if(e=q4(e),t=k0(t),t.length%4!==0||t.length<16||t.length>32)throw new Error("invalid entropy");const r=[0];let n=11;for(let a=0;a8?(r[r.length-1]<<=8,r[r.length-1]|=t[a],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[a]>>8-n,r.push(t[a]&sB(8-n)),n+=3);const i=t.length/4,u=k0(gt(t))[0]&Qp(i);return r[r.length-1]<<=i,r[r.length-1]|=u>>8-i,e.join(r.map(a=>e.getWord(a)))}function lB(t,e){try{return $8(t,e),!0}catch{}return!1}function fB(t){return(typeof t!="number"||t<0||t>=i6||t%1)&&Ou.throwArgumentError("invalid account index","index",t),`m/44'/60'/${t}'/0/0`}const cB=Object.freeze(Object.defineProperty({__proto__:null,HDNode:pt,defaultPath:Q6,entropyToMnemonic:q8,getAccountPath:fB,isValidMnemonic:lB,mnemonicToEntropy:$8,mnemonicToSeed:Yp},Symbol.toStringTag,{value:"Module"}));var Xp={exports:{}};(function(t,e){(function(r){function n(b){return parseInt(b)===b}function i(b){if(!n(b.length))return!1;for(var f=0;f255)return!1;return!0}function u(b,f){if(b.buffer&&ArrayBuffer.isView(b)&&b.name==="Uint8Array")return f&&(b.slice?b=b.slice():b=Array.prototype.slice.call(b)),b;if(Array.isArray(b)){if(!i(b))throw new Error("Array contains invalid value: "+b);return new Uint8Array(b)}if(n(b.length)&&i(b))return new Uint8Array(b);throw new Error("unsupported array-like object")}function a(b){return new Uint8Array(b)}function o(b,f,m,D,l){(D!=null||l!=null)&&(b.slice?b=b.slice(D,l):b=Array.prototype.slice.call(b,D,l)),f.set(b,m)}var s=function(){function b(m){var D=[],l=0;for(m=encodeURI(m);l191&&S<224?(D.push(String.fromCharCode((S&31)<<6|m[l+1]&63)),l+=2):(D.push(String.fromCharCode((S&15)<<12|(m[l+1]&63)<<6|m[l+2]&63)),l+=3)}return D.join("")}return{toBytes:b,fromBytes:f}}(),c=function(){function b(D){for(var l=[],S=0;S>4]+f[O&15])}return l.join("")}return{toBytes:b,fromBytes:m}}(),d={16:10,24:12,32:14},y=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],A=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],C=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],T=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],U=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],P=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],_=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],B=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],N=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],W=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],G=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],t0=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],Z=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],e0=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],o0=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function d0(b){for(var f=[],m=0;m>2,this._Ke[S][f%4]=l[f],this._Kd[b-S][f%4]=l[f];for(var O=0,$=D,H;$>16&255]<<24^A[H>>8&255]<<16^A[H&255]<<8^A[H>>24&255]^y[O]<<24,O+=1,D!=8)for(var f=1;f>8&255]<<8^A[H>>16&255]<<16^A[H>>24&255]<<24;for(var f=D/2+1;f>2,u0=$%4,this._Ke[n0][u0]=l[f],this._Kd[b-n0][u0]=l[f++],$++}for(var n0=1;n0>24&255]^Z[H>>16&255]^e0[H>>8&255]^o0[H&255]},c0.prototype.encrypt=function(b){if(b.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var f=this._Ke.length-1,m=[0,0,0,0],D=d0(b),l=0;l<4;l++)D[l]^=this._Ke[0][l];for(var S=1;S>24&255]^U[D[(l+1)%4]>>16&255]^P[D[(l+2)%4]>>8&255]^_[D[(l+3)%4]&255]^this._Ke[S][l];D=m.slice()}for(var O=a(16),$,l=0;l<4;l++)$=this._Ke[f][l],O[4*l]=(A[D[l]>>24&255]^$>>24)&255,O[4*l+1]=(A[D[(l+1)%4]>>16&255]^$>>16)&255,O[4*l+2]=(A[D[(l+2)%4]>>8&255]^$>>8)&255,O[4*l+3]=(A[D[(l+3)%4]&255]^$)&255;return O},c0.prototype.decrypt=function(b){if(b.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var f=this._Kd.length-1,m=[0,0,0,0],D=d0(b),l=0;l<4;l++)D[l]^=this._Kd[0][l];for(var S=1;S>24&255]^N[D[(l+3)%4]>>16&255]^W[D[(l+2)%4]>>8&255]^G[D[(l+1)%4]&255]^this._Kd[S][l];D=m.slice()}for(var O=a(16),$,l=0;l<4;l++)$=this._Kd[f][l],O[4*l]=(C[D[l]>>24&255]^$>>24)&255,O[4*l+1]=(C[D[(l+3)%4]>>16&255]^$>>16)&255,O[4*l+2]=(C[D[(l+2)%4]>>8&255]^$>>8)&255,O[4*l+3]=(C[D[(l+1)%4]&255]^$)&255;return O};var h0=function(b){if(!(this instanceof h0))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new c0(b)};h0.prototype.encrypt=function(b){if(b=u(b),b.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var f=a(b.length),m=a(16),D=0;D=0;--f)this._counter[f]=b%256,b=b>>8},M.prototype.setBytes=function(b){if(b=u(b,!0),b.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=b},M.prototype.increment=function(){for(var b=15;b>=0;b--)if(this._counter[b]===255)this._counter[b]=0;else{this._counter[b]++;break}};var k=function(b,f){if(!(this instanceof k))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",f instanceof M||(f=new M(f)),this._counter=f,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new c0(b)};k.prototype.encrypt=function(b){for(var f=u(b,!0),m=0;m16)throw new Error("PKCS#7 padding byte out of range");for(var m=b.length-f,D=0;D=64;){let V=_,b=B,f=N,m=W,D=G,l=t0,S=Z,O=e0,$,H,n0,u0,s0;for(H=0;H<16;H++)n0=I+H*4,o0[H]=(k[n0]&255)<<24|(k[n0+1]&255)<<16|(k[n0+2]&255)<<8|k[n0+3]&255;for(H=16;H<64;H++)$=o0[H-2],u0=($>>>17|$<<15)^($>>>19|$<<13)^$>>>10,$=o0[H-15],s0=($>>>7|$<<25)^($>>>18|$<<14)^$>>>3,o0[H]=(u0+o0[H-7]|0)+(s0+o0[H-16]|0)|0;for(H=0;H<64;H++)u0=(((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&l^~D&S)|0)+(O+(P[H]+o0[H]|0)|0)|0,s0=((V>>>2|V<<30)^(V>>>13|V<<19)^(V>>>22|V<<10))+(V&b^V&f^b&f)|0,O=S,S=l,l=D,D=m+u0|0,m=f,f=b,b=V,V=u0+s0|0;_=_+V|0,B=B+b|0,N=N+f|0,W=W+m|0,G=G+D|0,t0=t0+l|0,Z=Z+S|0,e0=e0+O|0,I+=64,z-=64}}d0(U);let c0,h0=U.length%64,j=U.length/536870912|0,p=U.length<<3,v=h0<56?56:120,M=U.slice(U.length-h0,U.length);for(M.push(128),c0=h0+1;c0>>24&255),M.push(j>>>16&255),M.push(j>>>8&255),M.push(j>>>0&255),M.push(p>>>24&255),M.push(p>>>16&255),M.push(p>>>8&255),M.push(p>>>0&255),d0(M),[_>>>24&255,_>>>16&255,_>>>8&255,_>>>0&255,B>>>24&255,B>>>16&255,B>>>8&255,B>>>0&255,N>>>24&255,N>>>16&255,N>>>8&255,N>>>0&255,W>>>24&255,W>>>16&255,W>>>8&255,W>>>0&255,G>>>24&255,G>>>16&255,G>>>8&255,G>>>0&255,t0>>>24&255,t0>>>16&255,t0>>>8&255,t0>>>0&255,Z>>>24&255,Z>>>16&255,Z>>>8&255,Z>>>0&255,e0>>>24&255,e0>>>16&255,e0>>>8&255,e0>>>0&255]}function u(U,P,_){U=U.length<=64?U:i(U);const B=64+P.length+4,N=new Array(B),W=new Array(64);let G,t0=[];for(G=0;G<64;G++)N[G]=54;for(G=0;G=B-4;e0--){if(N[e0]++,N[e0]<=255)return;N[e0]=0}}for(;_>=32;)Z(),t0=t0.concat(i(W.concat(i(N)))),_-=32;return _>0&&(Z(),t0=t0.concat(i(W.concat(i(N))).slice(0,_))),t0}function a(U,P,_,B,N){let W;for(d(U,(2*_-1)*16,N,0,16),W=0;W<2*_;W++)c(U,W*16,N,16),s(N,B),d(N,0,U,P+W*16,16);for(W=0;W<_;W++)d(U,P+W*2*16,U,W*16,16);for(W=0;W<_;W++)d(U,P+(W*2+1)*16,U,(W+_)*16,16)}function o(U,P){return U<>>32-P}function s(U,P){d(U,0,P,0,16);for(let _=8;_>0;_-=2)P[4]^=o(P[0]+P[12],7),P[8]^=o(P[4]+P[0],9),P[12]^=o(P[8]+P[4],13),P[0]^=o(P[12]+P[8],18),P[9]^=o(P[5]+P[1],7),P[13]^=o(P[9]+P[5],9),P[1]^=o(P[13]+P[9],13),P[5]^=o(P[1]+P[13],18),P[14]^=o(P[10]+P[6],7),P[2]^=o(P[14]+P[10],9),P[6]^=o(P[2]+P[14],13),P[10]^=o(P[6]+P[2],18),P[3]^=o(P[15]+P[11],7),P[7]^=o(P[3]+P[15],9),P[11]^=o(P[7]+P[3],13),P[15]^=o(P[11]+P[7],18),P[1]^=o(P[0]+P[3],7),P[2]^=o(P[1]+P[0],9),P[3]^=o(P[2]+P[1],13),P[0]^=o(P[3]+P[2],18),P[6]^=o(P[5]+P[4],7),P[7]^=o(P[6]+P[5],9),P[4]^=o(P[7]+P[6],13),P[5]^=o(P[4]+P[7],18),P[11]^=o(P[10]+P[9],7),P[8]^=o(P[11]+P[10],9),P[9]^=o(P[8]+P[11],13),P[10]^=o(P[9]+P[8],18),P[12]^=o(P[15]+P[14],7),P[13]^=o(P[12]+P[15],9),P[14]^=o(P[13]+P[12],13),P[15]^=o(P[14]+P[13],18);for(let _=0;_<16;++_)U[_]+=P[_]}function c(U,P,_,B){for(let N=0;N=256)return!1}return!0}function A(U,P){if(typeof U!="number"||U%1)throw new Error("invalid "+P);return U}function C(U,P,_,B,N,W,G){if(_=A(_,"N"),B=A(B,"r"),N=A(N,"p"),W=A(W,"dkLen"),_===0||_&_-1)throw new Error("N must be power of 2");if(_>2147483647/128/B)throw new Error("N too large");if(B>2147483647/128/N)throw new Error("r too large");if(!y(U))throw new Error("password must be an array or buffer");if(U=Array.prototype.slice.call(U),!y(P))throw new Error("salt must be an array or buffer");P=Array.prototype.slice.call(P);let t0=u(U,P,N*128*B);const Z=new Uint32Array(N*32*B);for(let D=0;Db&&(D=b);for(let S=0;Sb&&(D=b);for(let S=0;S>0&255),t0.push(Z[S]>>8&255),t0.push(Z[S]>>16&255),t0.push(Z[S]>>24&255);const l=u(U,t0,W);return G&&G(null,1,l),l}G&&f(m)};if(!G)for(;;){const D=m();if(D!=null)return D}m()}const T={scrypt:function(U,P,_,B,N,W,G){return new Promise(function(t0,Z){let e0=0;G&&G(0),C(U,P,_,B,N,W,function(o0,d0,c0){if(o0)Z(o0);else if(c0)G&&e0!==1&&G(1),t0(new Uint8Array(c0));else if(G&&d0!==e0)return e0=d0,G(d0)})})},syncScrypt:function(U,P,_,B,N,W){return new Uint8Array(C(U,P,_,B,N,W))}};t.exports=T})()})(eb);var yB=eb.exports;const G4=xt(yB);var gB=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const fs=new r0(Zp);function Zf(t){return t!=null&&t.mnemonic&&t.mnemonic.phrase}class xB extends Q2{isKeystoreAccount(e){return!!(e&&e._isKeystoreAccount)}}function vB(t,e,r){if(ie(t,"crypto/cipher")==="aes-128-ctr"){const i=An(ie(t,"crypto/cipherparams/iv")),u=new mr.Counter(i),a=new mr.ModeOfOperation.ctr(e,u);return k0(a.decrypt(r))}return null}function tb(t,e){const r=An(ie(t,"crypto/ciphertext"));if(N0(O1(L1([e.slice(16,32),r]))).substring(2)!==ie(t,"crypto/mac").toLowerCase())throw new Error("invalid password");const i=vB(t,e.slice(0,16),r);i||fs.throwError("unsupported cipher",r0.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const u=e.slice(32,64),a=I2(i);if(t.address){let s=t.address.toLowerCase();if(s.substring(0,2)!=="0x"&&(s="0x"+s),I1(s)!==a)throw new Error("address mismatch")}const o={_isKeystoreAccount:!0,address:a,privateKey:N0(i)};if(ie(t,"x-ethers/version")==="0.1"){const s=An(ie(t,"x-ethers/mnemonicCiphertext")),c=An(ie(t,"x-ethers/mnemonicCounter")),d=new mr.Counter(c),y=new mr.ModeOfOperation.ctr(u,d),A=ie(t,"x-ethers/path")||Q6,C=ie(t,"x-ethers/locale")||"en",T=k0(y.decrypt(s));try{const U=q8(T,C),P=pt.fromMnemonic(U,null,C).derivePath(A);if(P.privateKey!=o.privateKey)throw new Error("mnemonic mismatch");o.mnemonic=P.mnemonic}catch(U){if(U.code!==r0.errors.INVALID_ARGUMENT||U.argument!=="wordlist")throw U}}return new xB(o)}function rb(t,e,r,n,i){return k0($4(t,e,r,n,i))}function AB(t,e,r,n,i){return Promise.resolve(rb(t,e,r,n,i))}function nb(t,e,r,n,i){const u=H4(e),a=ie(t,"crypto/kdf");if(a&&typeof a=="string"){const o=function(s,c){return fs.throwArgumentError("invalid key-derivation function parameters",s,c)};if(a.toLowerCase()==="scrypt"){const s=An(ie(t,"crypto/kdfparams/salt")),c=parseInt(ie(t,"crypto/kdfparams/n")),d=parseInt(ie(t,"crypto/kdfparams/r")),y=parseInt(ie(t,"crypto/kdfparams/p"));(!c||!d||!y)&&o("kdf",a),c&c-1&&o("N",c);const A=parseInt(ie(t,"crypto/kdfparams/dklen"));return A!==32&&o("dklen",A),n(u,s,c,d,y,64,i)}else if(a.toLowerCase()==="pbkdf2"){const s=An(ie(t,"crypto/kdfparams/salt"));let c=null;const d=ie(t,"crypto/kdfparams/prf");d==="hmac-sha256"?c="sha256":d==="hmac-sha512"?c="sha512":o("prf",d);const y=parseInt(ie(t,"crypto/kdfparams/c")),A=parseInt(ie(t,"crypto/kdfparams/dklen"));return A!==32&&o("dklen",A),r(u,s,y,A,c)}}return fs.throwArgumentError("unsupported key-derivation function","kdf",a)}function ib(t,e){const r=JSON.parse(t),n=nb(r,e,rb,G4.syncScrypt);return tb(r,n)}function ub(t,e,r){return gB(this,void 0,void 0,function*(){const n=JSON.parse(t),i=yield nb(n,e,AB,G4.scrypt,r);return tb(n,i)})}function ab(t,e,r,n){try{if(I1(t.address)!==I2(t.privateKey))throw new Error("address/privateKey mismatch");if(Zf(t)){const P=t.mnemonic;if(pt.fromMnemonic(P.phrase,null,P.locale).derivePath(P.path||Q6).privateKey!=t.privateKey)throw new Error("mnemonic mismatch")}}catch(P){return Promise.reject(P)}typeof r=="function"&&!n&&(n=r,r={}),r||(r={});const i=k0(t.privateKey),u=H4(e);let a=null,o=null,s=null;if(Zf(t)){const P=t.mnemonic;a=k0($8(P.phrase,P.locale||"en")),o=P.path||Q6,s=P.locale||"en"}let c=r.client;c||(c="ethers.js");let d=null;r.salt?d=k0(r.salt):d=x6(32);let y=null;if(r.iv){if(y=k0(r.iv),y.length!==16)throw new Error("invalid iv")}else y=x6(16);let A=null;if(r.uuid){if(A=k0(r.uuid),A.length!==16)throw new Error("invalid uuid")}else A=x6(16);let C=1<<17,T=8,U=1;return r.scrypt&&(r.scrypt.N&&(C=r.scrypt.N),r.scrypt.r&&(T=r.scrypt.r),r.scrypt.p&&(U=r.scrypt.p)),G4.scrypt(u,d,C,T,U,64,n).then(P=>{P=k0(P);const _=P.slice(0,16),B=P.slice(16,32),N=P.slice(32,64),W=new mr.Counter(y),G=new mr.ModeOfOperation.ctr(_,W),t0=k0(G.encrypt(i)),Z=O1(L1([B,t0])),e0={address:t.address.substring(2).toLowerCase(),id:hB(A),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:N0(y).substring(2)},ciphertext:N0(t0).substring(2),kdf:"scrypt",kdfparams:{salt:N0(d).substring(2),n:C,dklen:32,p:U,r:T},mac:Z.substring(2)}};if(a){const o0=x6(16),d0=new mr.Counter(o0),c0=new mr.ModeOfOperation.ctr(N,d0),h0=k0(c0.encrypt(a)),j=new Date,p=j.getUTCFullYear()+"-"+Ti(j.getUTCMonth()+1,2)+"-"+Ti(j.getUTCDate(),2)+"T"+Ti(j.getUTCHours(),2)+"-"+Ti(j.getUTCMinutes(),2)+"-"+Ti(j.getUTCSeconds(),2)+".0Z";e0["x-ethers"]={client:c,gethFilename:"UTC--"+p+"--"+e0.address,mnemonicCounter:N0(o0).substring(2),mnemonicCiphertext:N0(h0).substring(2),path:o,locale:s,version:"0.1"}}return JSON.stringify(e0)})}function ob(t,e,r){if(H8(t)){r&&r(0);const n=K4(t,e);return r&&r(1),Promise.resolve(n)}return K8(t)?ub(t,e,r):Promise.reject(new Error("invalid JSON wallet"))}function sb(t,e){if(H8(t))return K4(t,e);if(K8(t))return ib(t,e);throw new Error("invalid JSON wallet")}const wB=Object.freeze(Object.defineProperty({__proto__:null,decryptCrowdsale:K4,decryptJsonWallet:ob,decryptJsonWalletSync:sb,decryptKeystore:ub,decryptKeystoreSync:ib,encryptKeystore:ab,getJsonWalletAddress:mB,isCrowdsaleWallet:H8,isKeystoreWallet:K8},Symbol.toStringTag,{value:"Module"})),EB="wallet/5.7.0";var ec=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const e6=new r0(EB);function CB(t){return t!=null&&s1(t.privateKey,32)&&t.address!=null}function FB(t){const e=t.mnemonic;return e&&e.phrase}class dn extends Ln{constructor(e,r){if(super(),CB(e)){const n=new vn(e.privateKey);if(b0(this,"_signingKey",()=>n),b0(this,"address",I2(this.publicKey)),this.address!==I1(e.address)&&e6.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),FB(e)){const i=e.mnemonic;b0(this,"_mnemonic",()=>({phrase:i.phrase,path:i.path||Q6,locale:i.locale||"en"}));const u=this.mnemonic,a=pt.fromMnemonic(u.phrase,null,u.locale).derivePath(u.path);I2(a.privateKey)!==this.address&&e6.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else b0(this,"_mnemonic",()=>null)}else{if(vn.isSigningKey(e))e.curve!=="secp256k1"&&e6.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),b0(this,"_signingKey",()=>e);else{typeof e=="string"&&e.match(/^[0-9a-f]*$/i)&&e.length===64&&(e="0x"+e);const n=new vn(e);b0(this,"_signingKey",()=>n)}b0(this,"_mnemonic",()=>null),b0(this,"address",I2(this.publicKey))}r&&!Rn.isProvider(r)&&e6.throwArgumentError("invalid provider","provider",r),b0(this,"provider",r||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new dn(this,e)}signTransaction(e){return te(e).then(r=>{r.from!=null&&(I1(r.from)!==this.address&&e6.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete r.from);const n=this._signingKey().signDigest(O1(is(r)));return is(r,n)})}signMessage(e){return ec(this,void 0,void 0,function*(){return Jo(this._signingKey().signDigest(S4(e)))})}_signTypedData(e,r,n){return ec(this,void 0,void 0,function*(){const i=yield Be.resolveNames(e,r,n,u=>(this.provider==null&&e6.throwError("cannot resolve ENS names without a provider",r0.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:u}),this.provider.resolveName(u)));return Jo(this._signingKey().signDigest(Be.hash(i.domain,r,i.value)))})}encrypt(e,r,n){if(typeof r=="function"&&!n&&(n=r,r={}),n&&typeof n!="function")throw new Error("invalid callback");return r||(r={}),ab(this,e,r,n)}static createRandom(e){let r=x6(16);e||(e={}),e.extraEntropy&&(r=k0(ue(O1(L1([r,e.extraEntropy])),0,16)));const n=q8(r,e.locale);return dn.fromMnemonic(n,e.path,e.locale)}static fromEncryptedJson(e,r,n){return ob(e,r,n).then(i=>new dn(i))}static fromEncryptedJsonSync(e,r){return new dn(sb(e,r))}static fromMnemonic(e,r,n){return r||(r=Q6),new dn(pt.fromMnemonic(e,null,n).derivePath(r))}}function BB(t,e){return Xu(S4(t),e)}function DB(t,e,r,n){return Xu(Be.hash(t,e,r),n)}const _B=Object.freeze(Object.defineProperty({__proto__:null,Wallet:dn,verifyMessage:BB,verifyTypedData:DB},Symbol.toStringTag,{value:"Module"})),kB="solidity/5.7.0",SB=new RegExp("^bytes([0-9]+)$"),TB=new RegExp("^(u?int)([0-9]*)$"),PB=new RegExp("^(.*)\\[([0-9]*)\\]$"),NB="0000000000000000000000000000000000000000000000000000000000000000",u6=new r0(kB);function lb(t,e,r){switch(t){case"address":return r?Vi(e,32):k0(e);case"string":return H1(e);case"bytes":return k0(e);case"bool":return e=e?"0x01":"0x00",r?Vi(e,32):k0(e)}let n=t.match(TB);if(n){let i=parseInt(n[2]||"256");return(n[2]&&String(i)!==n[2]||i%8!==0||i===0||i>256)&&u6.throwArgumentError("invalid number type","type",t),r&&(i=256),e=P0.from(e).toTwos(i),Vi(e,i/8)}if(n=t.match(SB),n){const i=parseInt(n[1]);return(String(i)!==n[1]||i===0||i>32)&&u6.throwArgumentError("invalid bytes type","type",t),k0(e).byteLength!==i&&u6.throwArgumentError(`invalid value for ${t}`,"value",e),r?k0((e+NB).substring(0,66)):e}if(n=t.match(PB),n&&Array.isArray(e)){const i=n[1];parseInt(n[2]||String(e.length))!=e.length&&u6.throwArgumentError(`invalid array length for ${t}`,"value",e);const a=[];return e.forEach(function(o){a.push(lb(i,o,!0))}),L1(a)}return u6.throwArgumentError("invalid type","type",t)}function W4(t,e){t.length!=e.length&&u6.throwArgumentError("wrong number of values; expected ${ types.length }","values",e);const r=[];return t.forEach(function(n,i){r.push(lb(n,e[i]))}),N0(L1(r))}function MB(t,e){return O1(W4(t,e))}function UB(t,e){return gt(W4(t,e))}const IB=Object.freeze(Object.defineProperty({__proto__:null,keccak256:MB,pack:W4,sha256:UB},Symbol.toStringTag,{value:"Module"})),RB="units/5.7.0",fb=new r0(RB),cb=["wei","kwei","mwei","gwei","szabo","finney","ether"];function OB(t){const e=String(t).split(".");(e.length>2||!e[0].match(/^-?[0-9]*$/)||e[1]&&!e[1].match(/^[0-9]*$/)||t==="."||t==="-.")&&fb.throwArgumentError("invalid value","value",t);let r=e[0],n="";for(r.substring(0,1)==="-"&&(n="-",r=r.substring(1));r.substring(0,1)==="0";)r=r.substring(1);r===""&&(r="0");let i="";for(e.length===2&&(i="."+(e[1]||"0"));i.length>2&&i[i.length-1]==="0";)i=i.substring(0,i.length-1);const u=[];for(;r.length;)if(r.length<=3){u.unshift(r);break}else{const a=r.length-3;u.unshift(r.substring(a)),r=r.substring(0,a)}return n+u.join(",")+i}function db(t,e){if(typeof e=="string"){const r=cb.indexOf(e);r!==-1&&(e=3*r)}return l9(t,e??18)}function hb(t,e){if(typeof t!="string"&&fb.throwArgumentError("value must be a string","value",t),typeof e=="string"){const r=cb.indexOf(e);r!==-1&&(e=3*r)}return sr(t,e??18)}function LB(t){return db(t,18)}function jB(t){return hb(t,18)}const zB=Object.freeze(Object.defineProperty({__proto__:null,commify:OB,formatEther:LB,formatUnits:db,parseEther:jB,parseUnits:hb},Symbol.toStringTag,{value:"Module"})),q5=[{inputs:[],name:"AlreadyRegistered",type:"error"},{inputs:[],name:"CannotRevokeControlFromTLD",type:"error"},{inputs:[],name:"ERC721AlreadyMinted",type:"error"},{inputs:[],name:"ERC721ApproveToOwner",type:"error"},{inputs:[],name:"ERC721InvalidOwnerAddress0",type:"error"},{inputs:[],name:"ERC721InvalidTokenId",type:"error"},{inputs:[],name:"ERC721MintToAddress0",type:"error"},{inputs:[],name:"ERC721NotOwnerOrApproved",type:"error"},{inputs:[],name:"ERC721TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"ERC721TransferToAddress0",type:"error"},{inputs:[],name:"ERC721TransferToNonReceiver",type:"error"},{inputs:[],name:"NotAuthorized",type:"error"},{inputs:[],name:"NotAuthorizedToMintName",type:"error"},{inputs:[],name:"NotDotUqTLD",type:"error"},{inputs:[],name:"KNSRegistryOnly",type:"error"},{inputs:[],name:"SecondLevelDomainNot9CharactersOrMore",type:"error"},{inputs:[],name:"TLDWebmasterApproveToCaller",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",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:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"child",type:"uint256"},{indexed:!1,internalType:"uint256",name:"parent",type:"uint256"},{indexed:!1,internalType:"address",name:"sender",type:"address"}],name:"ControlRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",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:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"webmaster",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"Webmaster",type:"event"},{inputs:[],name:"TLD_DNS_WIRE",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"TLD_HASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"TLD_LABEL",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_fqdn",type:"bytes"},{internalType:"bytes32",name:"_tldHash",type:"bytes32"}],name:"__initTLDRegistration",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"address",name:"_operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"_setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"node",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_nodeId",type:"uint256"},{internalType:"address",name:"_sender",type:"address"}],name:"auth",outputs:[{internalType:"bool",name:"authed_",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_nodeId",type:"bytes32"},{internalType:"address",name:"_sender",type:"address"}],name:"auth",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_node",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getInitializedVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_kns",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"address",name:"_operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_webmaster",type:"address"},{internalType:"uint256",name:"_node",type:"uint256"}],name:"isWebmaster",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"address",name:"_webmaster",type:"address"}],name:"isWebmaster",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",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:"node",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"parents",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proxiableUUID",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"kns",outputs:[{internalType:"contract IKNSRegistryResolver",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_name",type:"bytes"},{internalType:"address",name:"_to",type:"address"},{internalType:"bytes[]",name:"_data",type:"bytes[]"}],name:"register",outputs:[{internalType:"uint256",name:"nodeId_",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"_name",type:"bytes"}],name:"revokeControlOverSubdomain",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"node",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"node",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:"_webmaster",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setWebmaster",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:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"node",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"}],name:"upgradeTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"}],tc="0x60a06040523060805234801561001457600080fd5b50608051612b6361004c6000396000818161095e015281816109a701528181610a6101528181610aa10152610b470152612b636000f3fe6080604052600436106101f95760003560e01c8063715018a61161010d578063b88d4fde116100a0578063d123f99a1161006f578063d123f99a146105c3578063d314c607146105d6578063d5c457141461061f578063e985e9c514610635578063f2fde38b1461065557600080fd5b8063b88d4fde1461054d578063c1ea25f11461056d578063c4d66de81461058d578063d1131c72146105ad57600080fd5b80638da5cb5b116100dc5780638da5cb5b146104d357806395d89b41146104f1578063a22cb46514610506578063b3c650151461052657600080fd5b8063715018a614610451578063819eb62514610466578063898572a6146104865780638c4e3f32146104b357600080fd5b8063303bc8ac11610190578063516a166a1161015f578063516a166a146103ae57806352d1902d146103ce5780635864c817146103f15780636352211e1461041157806370a082311461043157600080fd5b8063303bc8ac146103465780633659cfe61461035b57806342842e0e1461037b5780634f1ef2861461039b57600080fd5b806312403916116101cc57806312403916146102c65780631492017b146102e6578063169e0dde1461030657806323b872dd1461032657600080fd5b806301ffc9a7146101fe57806306fdde0314610234578063081812fc14610256578063095ea7b3146102a4575b600080fd5b34801561020a57600080fd5b5061021f61021936600461210e565b50600090565b60405190151581526020015b60405180910390f35b34801561024057600080fd5b50610249610675565b60405161022b919061217b565b34801561026257600080fd5b5061028c61027136600461218e565b6000908152600860205260409020546001600160a01b031690565b6040516001600160a01b03909116815260200161022b565b3480156102b057600080fd5b506102c46102bf3660046121c3565b610707565b005b3480156102d257600080fd5b506102c46102e136600461222f565b610791565b3480156102f257600080fd5b5061021f61030136600461227b565b61083d565b34801561031257600080fd5b5060005461028c906001600160a01b031681565b34801561033257600080fd5b506102c46103413660046122a7565b610894565b34801561035257600080fd5b506102496108c6565b34801561036757600080fd5b506102c46103763660046122e3565b610954565b34801561038757600080fd5b506102c46103963660046122a7565b610a3c565b6102c46103a93660046123c3565b610a57565b3480156103ba57600080fd5b5061021f6103c936600461227b565b610b27565b3480156103da57600080fd5b506103e3610b3a565b60405190815260200161022b565b3480156103fd57600080fd5b506102c461040c366004612407565b610bed565b34801561041d57600080fd5b5061028c61042c36600461218e565b610cbe565b34801561043d57600080fd5b506103e361044c3660046122e3565b610cf3565b34801561045d57600080fd5b506102c4610d38565b34801561047257600080fd5b506102c461048136600461244c565b610d4c565b34801561049257600080fd5b506103e36104a136600461218e565b60d46020526000908152604090205481565b3480156104bf57600080fd5b506102c46104ce366004612476565b610d57565b3480156104df57600080fd5b50603e546001600160a01b031661028c565b3480156104fd57600080fd5b50610249610df7565b34801561051257600080fd5b506102c461052136600461244c565b610e06565b34801561053257600080fd5b5061053b610e11565b60405160ff909116815260200161022b565b34801561055957600080fd5b506102c46105683660046124b9565b610e24565b34801561057957600080fd5b5061021f6105883660046121c3565b610e57565b34801561059957600080fd5b506102c46105a83660046122e3565b610e63565b3480156105b957600080fd5b506103e360015481565b6103e36105d1366004612521565b610fd7565b3480156105e257600080fd5b5061021f6105f13660046125d2565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205460ff1690565b34801561062b57600080fd5b506103e360025481565b34801561064157600080fd5b5061021f6106503660046125d2565b611003565b34801561066157600080fd5b506102c46106703660046122e3565b611031565b606060048054610684906125fc565b80601f01602080910402602001604051908101604052809291908181526020018280546106b0906125fc565b80156106fd5780601f106106d2576101008083540402835291602001916106fd565b820191906000526020600020905b8154815290600101906020018083116106e057829003601f168201915b5050505050905090565b600061071282610cbe565b9050806001600160a01b0316836001600160a01b0316036107465760405163091fbd5360e01b815260040160405180910390fd5b336001600160a01b0382161480159061076457506107648133611003565b15610782576040516307e8a24360e21b815260040160405180910390fd5b61078c83836110a7565b505050565b600254156107b257604051630ea075bf60e21b815260040160405180910390fd5b6000546001600160a01b031633146107dd5760405163367ae3b760e11b815260040160405180910390fd5b600281905560036107ef838583612686565b50610834600084848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092939250506111159050565b50600155505050565b60005b8015801561085057506002548314155b1561088e5761085f838361121c565b90508061088e5761086f8361124a565b1561088a57600092835260d460205260409092205491610840565b5060005b92915050565b61089e3382611262565b6108bb576040516307e8a24360e21b815260040160405180910390fd5b61078c8383836112c1565b600380546108d3906125fc565b80601f01602080910402602001604051908101604052809291908181526020018280546108ff906125fc565b801561094c5780601f106109215761010080835404028352916020019161094c565b820191906000526020600020905b81548152906001019060200180831161092f57829003601f168201915b505050505081565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036109a55760405162461bcd60e51b815260040161099c90612747565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166109ee600080516020612ae7833981519152546001600160a01b031690565b6001600160a01b031614610a145760405162461bcd60e51b815260040161099c90612793565b610a1d816113ff565b60408051600080825260208201909252610a3991839190611407565b50565b61078c83838360405180602001604052806000815250610e24565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610a9f5760405162461bcd60e51b815260040161099c90612747565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ae8600080516020612ae7833981519152546001600160a01b031690565b6001600160a01b031614610b0e5760405162461bcd60e51b815260040161099c90612793565b610b17826113ff565b610b2382826001611407565b5050565b6000610b33838361083d565b9392505050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bda5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000606482015260840161099c565b50600080516020612ae783398151915290565b6000806000610bfb84611572565b925092509250808203610c215760405163abddc77160e01b815260040160405180910390fd5b610c2b8233610b27565b15610c9f5760006001610c3d856115d2565b179050610c598185600090815260066020526040902081905590565b506040805185815260208101859052338183015290517f7de9cdc5b55386112f86114d6e841bde7e78203bea81a912271231dffde1be769181900360600190a150610cb8565b60405163ea8e4eb560e01b815260040160405180910390fd5b50505050565b600080610cca836115e6565b90506001600160a01b03811661088e5760405163089ba7e160e41b815260040160405180910390fd5b60006001600160a01b038216610d1c57604051633d6932c760e21b815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205490565b610d406115fd565b610d4a6000611657565b565b610b233383836116a9565b816001600160a01b0316836001600160a01b031603610d895760405163091fbd5360e01b815260040160405180910390fd5b6001600160a01b03838116600081815260096020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3191015b60405180910390a3505050565b606060058054610684906125fc565b610b23338383610d57565b6000610e1f600b5460ff1690565b905090565b610e2e3383611262565b610e4b576040516307e8a24360e21b815260040160405180910390fd5b610cb884848484611740565b6000610b338383611774565b600b54610100900460ff1615808015610e835750600b54600160ff909116105b80610e9d5750303b158015610e9d5750600b5460ff166001145b610f005760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161099c565b600b805460ff191660011790558015610f2357600b805461ff0019166101001790555b60408051808201825260128152715571626172204e616d65205365727669636560701b6020918201528151808301909252600482526355514e5360e01b910152600080546001600160a01b0319166001600160a01b038416179055610f866117b8565b610f8e6117df565b8015610b2357600b805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b600080610fe7878760003361180e565b509050610ff88787878488886119b9565b979650505050505050565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b6110396115fd565b6001600160a01b03811661109e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161099c565b610a3981611657565b600081815260086020526040902080546001600160a01b0319166001600160a01b03841690811790915581906110dc826115e6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080835183106111685760405162461bcd60e51b815260206004820152601e60248201527f726561644c6162656c3a20496e646578206f7574206f6620626f756e64730000604482015260640161099c565b600084848151811061117c5761117c6127df565b016020015160f81c9050604081106111d65760405162461bcd60e51b815260206004820152601960248201527f726561644c6162656c3a204c6162656c20746f6f206c6f6e6700000000000000604482015260640161099c565b80156111f8576111f1856111eb86600161280b565b83611b1a565b92506111fd565b600092505b611207818561280b565b61121290600161280b565b9150509250929050565b60006001600160a01b03821630148061123a575061123a8284611774565b80610b335750610b338284611262565b60008181526006602052604081205461088e90611b3e565b60008061126e836115e6565b9050806001600160a01b0316846001600160a01b0316148061129557506112958185611003565b806112b957506000838152600860205260409020546001600160a01b038581169116145b949350505050565b6001600160a01b0382166000036112eb576040516328aad33f60e21b815260040160405180910390fd5b826001600160a01b03166112fe826115e6565b6001600160a01b0316146113255760405163e146af6f60e01b815260040160405180910390fd5b826001600160a01b0316611338826115e6565b6001600160a01b03161461135f5760405163e146af6f60e01b815260040160405180910390fd5b600081815260086020908152604080832080546001600160a01b03191690556001600160a01b0386811680855260078452828520805460001901905590861680855282852080546001019055858552600690935281842080546001600160601b0316606088901b6001600160601b031916179055905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610a396115fd565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161561143a5761078c83611b53565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611494575060408051601f3d908101601f191682019092526114919181019061281e565b60015b6114f75760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b606482015260840161099c565b600080516020612ae783398151915281146115665760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b606482015260840161099c565b5061078c838383611bef565b600080600080600061158386611c14565b915091506000806115948884611c2b565b6040805160208101849052908101879052919350915060600160408051808303601f1901815291905280516020909101209891975095509350505050565b60008181526006602052604081205461088e565b60008181526006602052604081205460601c61088e565b603e546001600160a01b03163314610d4a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161099c565b603e80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036116db57604051637417c83160e11b815260040160405180910390fd5b6001600160a01b038381166000818152600a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527fadc620d6f66bc2f5355112336dd7957aecdc5480a6d6e771c356503869756c449101610dea565b61174b8484846112c1565b61175784848484611d2f565b610cb857604051633a3614b760e01b815260040160405180910390fd5b6000600a6000611783846115e6565b6001600160a01b039081168252602080830193909352604091820160009081209187168152925290205460ff16905092915050565b600b54610100900460ff16610d4a5760405162461bcd60e51b815260040161099c90612837565b600b54610100900460ff166118065760405162461bcd60e51b815260040161099c90612837565b610d4a611e31565b6000806000806118578689898080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092939250506111159050565b9092509050611867600188612882565b810361189f57600154821461188f57604051631b431a5160e11b815260040160405180910390fd5b60025460019350935050506119b0565b6000806118ae8a8a858a61180e565b91509150600254821480156118cd575060096118ca8985612882565b11155b156118eb5760405163cecd40e560e01b815260040160405180910390fd5b60408051602080820185905281830187905282518083038401815260609092018352815191810191909120600081815260d490925291812054900361193c57600081815260d4602052604090208390555b88156119735761194b8161124a565b61195457600091505b8161196657611963818961121c565b91505b955093506119b092505050565b8161199157604051632b8839a960e01b815260040160405180910390fd5b60025483146119a15760006119a4565b60015b60019650965050505050505b94509492505050565b60008054604051633255528360e21b815282916001600160a01b03169063c9554a0c906119ec908b908b906004016128be565b6020604051808303816000875af1158015611a0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a2f919061281e565b9150819050611a3e8682611e61565b611a8b611a7786611a5b8560009081526006602052604090205490565b6001600160601b031981166001600160601b0383161792915050565b600084815260066020526040902081905590565b508215611b0f5760005460405163e32954eb60e01b81526001600160a01b039091169063e32954eb90611ac6908490889088906004016128d2565b6000604051808303816000875af1158015611ae5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b0d919081019061297b565b505b509695505050505050565b8251600090611b29838561280b565b1115611b3457600080fd5b5091016020012090565b600081158061088e5750506001908116141590565b6001600160a01b0381163b611bc05760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161099c565b600080516020612ae783398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b611bf883611e7b565b600082511180611c055750805b1561078c57610cb88383611ebb565b600080611c22836000611115565b91509150915091565b600080600080611c3b8686611115565b909250905081611cb05760018651611c539190612882565b8514611ca15760405162461bcd60e51b815260206004820152601d60248201527f6e616d65686173683a204a756e6b20617420656e64206f66206e616d65000000604482015260640161099c565b5060009250829150611d289050565b600080611cbd8884611c2b565b909250905080611cf45760408051600060208201529081018590526060016040516020818303038152906040528051906020012090505b6040805160208101849052908101859052606001604051602081830303815290604052805190602001208195509550505050505b9250929050565b60006001600160a01b0384163b15611e2657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611d73903390899088908890600401612a7a565b6020604051808303816000875af1925050508015611dae575060408051601f3d908101601f19168201909252611dab91810190612aad565b60015b611e0c573d808015611ddc576040519150601f19603f3d011682016040523d82523d6000602084013e611de1565b606091505b508051600003611e0457604051633a3614b760e01b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506112b9565b506001949350505050565b600b54610100900460ff16611e585760405162461bcd60e51b815260040161099c90612837565b610d4a33611657565b610b23828260405180602001604052806000815250611ee0565b611e8481611b53565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610b338383604051806060016040528060278152602001612b0760279139611f14565b611eea8383611f8c565b611ef76000848484611d2f565b61078c57604051633a3614b760e01b815260040160405180910390fd5b6060600080856001600160a01b031685604051611f319190612aca565b600060405180830381855af49150503d8060008114611f6c576040519150601f19603f3d011682016040523d82523d6000602084013e611f71565b606091505b5091509150611f828683838761205a565b9695505050505050565b6001600160a01b038216611fb35760405163507508af60e11b815260040160405180910390fd5b60008181526006602052604090205415611fe0576040516324a255d960e11b815260040160405180910390fd5b6000818152600660205260409020541561200d576040516324a255d960e11b815260040160405180910390fd5b6001600160a01b038216600090815260076020908152604080832080546001019055928252600690522080546001600160601b031660609290921b6001600160601b031916919091179055565b606083156120c95782516000036120c2576001600160a01b0385163b6120c25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161099c565b50816112b9565b6112b983838151156120de5781518083602001fd5b8060405162461bcd60e51b815260040161099c919061217b565b6001600160e01b031981168114610a3957600080fd5b60006020828403121561212057600080fd5b8135610b33816120f8565b60005b8381101561214657818101518382015260200161212e565b50506000910152565b6000815180845261216781602086016020860161212b565b601f01601f19169290920160200192915050565b602081526000610b33602083018461214f565b6000602082840312156121a057600080fd5b5035919050565b80356001600160a01b03811681146121be57600080fd5b919050565b600080604083850312156121d657600080fd5b6121df836121a7565b946020939093013593505050565b60008083601f8401126121ff57600080fd5b50813567ffffffffffffffff81111561221757600080fd5b602083019150836020828501011115611d2857600080fd5b60008060006040848603121561224457600080fd5b833567ffffffffffffffff81111561225b57600080fd5b612267868287016121ed565b909790965060209590950135949350505050565b6000806040838503121561228e57600080fd5b8235915061229e602084016121a7565b90509250929050565b6000806000606084860312156122bc57600080fd5b6122c5846121a7565b92506122d3602085016121a7565b9150604084013590509250925092565b6000602082840312156122f557600080fd5b610b33826121a7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561233d5761233d6122fe565b604052919050565b600067ffffffffffffffff82111561235f5761235f6122fe565b50601f01601f191660200190565b600082601f83011261237e57600080fd5b813561239161238c82612345565b612314565b8181528460208386010111156123a657600080fd5b816020850160208301376000918101602001919091529392505050565b600080604083850312156123d657600080fd5b6123df836121a7565b9150602083013567ffffffffffffffff8111156123fb57600080fd5b6112128582860161236d565b60006020828403121561241957600080fd5b813567ffffffffffffffff81111561243057600080fd5b6112b98482850161236d565b803580151581146121be57600080fd5b6000806040838503121561245f57600080fd5b612468836121a7565b915061229e6020840161243c565b60008060006060848603121561248b57600080fd5b612494846121a7565b92506124a2602085016121a7565b91506124b06040850161243c565b90509250925092565b600080600080608085870312156124cf57600080fd5b6124d8856121a7565b93506124e6602086016121a7565b925060408501359150606085013567ffffffffffffffff81111561250957600080fd5b6125158782880161236d565b91505092959194509250565b60008060008060006060868803121561253957600080fd5b853567ffffffffffffffff8082111561255157600080fd5b61255d89838a016121ed565b9097509550859150612571602089016121a7565b9450604088013591508082111561258757600080fd5b818801915088601f83011261259b57600080fd5b8135818111156125aa57600080fd5b8960208260051b85010111156125bf57600080fd5b9699959850939650602001949392505050565b600080604083850312156125e557600080fd5b6125ee836121a7565b915061229e602084016121a7565b600181811c9082168061261057607f821691505b60208210810361263057634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561078c576000816000526020600020601f850160051c8101602086101561265f5750805b601f850160051c820191505b8181101561267e5782815560010161266b565b505050505050565b67ffffffffffffffff83111561269e5761269e6122fe565b6126b2836126ac83546125fc565b83612636565b6000601f8411600181146126e657600085156126ce5750838201355b600019600387901b1c1916600186901b178355612740565b600083815260209020601f19861690835b8281101561271757868501358255602094850194600190920191016126f7565b50868210156127345760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561088e5761088e6127f5565b60006020828403121561283057600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b8181038181111561088e5761088e6127f5565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006112b9602083018486612895565b6000604082018583526020604060208501528185835260608501905060608660051b86010192508660005b8781101561296d57868503605f190183528135368a9003601e1901811261292357600080fd5b8901848101903567ffffffffffffffff81111561293f57600080fd5b80360382131561294e57600080fd5b612959878284612895565b9650505091830191908301906001016128fd565b509298975050505050505050565b6000602080838503121561298e57600080fd5b825167ffffffffffffffff808211156129a657600080fd5b818501915085601f8301126129ba57600080fd5b8151818111156129cc576129cc6122fe565b8060051b6129db858201612314565b91825283810185019185810190898411156129f557600080fd5b86860192505b83831015612a6d57825185811115612a135760008081fd5b8601603f81018b13612a255760008081fd5b878101516040612a3761238c83612345565b8281528d82848601011115612a4c5760008081fd5b612a5b838c830184870161212b565b855250505091860191908601906129fb565b9998505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f829083018461214f565b600060208284031215612abf57600080fd5b8151610b33816120f8565b60008251612adc81846020870161212b565b919091019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209fefab139234fb45128c7107850c6927f664693838f0b11e849e298fc1eb1b8d64736f6c63430008160033",$B=t=>t.length>1;class tu extends si{constructor(...e){$B(e)?super(...e):super(q5,tc,e[0])}deploy(e){return super.deploy(e||{})}getDeployTransaction(e){return super.getDeployTransaction(e||{})}attach(e){return super.attach(e)}connect(e){return super.connect(e)}static createInterface(){return new t2(q5)}static connect(e,r){return new q2(e,q5,r)}}ct(tu,"bytecode",tc),ct(tu,"abi",q5);const H5=[{type:"constructor",inputs:[],stateMutability:"nonpayable"},{type:"function",name:"isApprovedForAll",inputs:[{name:"owner",type:"address",internalType:"address"},{name:"operator",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"owner",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"recordExists",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"resolver",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"setApprovalForAll",inputs:[{name:"operator",type:"address",internalType:"address"},{name:"approved",type:"bool",internalType:"bool"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setOwner",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"owner",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setRecord",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"owner",type:"address",internalType:"address"},{name:"resolver",type:"address",internalType:"address"},{name:"ttl",type:"uint64",internalType:"uint64"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setResolver",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"resolver",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setSubnodeOwner",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"label",type:"bytes32",internalType:"bytes32"},{name:"owner",type:"address",internalType:"address"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"nonpayable"},{type:"function",name:"setSubnodeRecord",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"label",type:"bytes32",internalType:"bytes32"},{name:"owner",type:"address",internalType:"address"},{name:"resolver",type:"address",internalType:"address"},{name:"ttl",type:"uint64",internalType:"uint64"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setTTL",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"ttl",type:"uint64",internalType:"uint64"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"ttl",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"uint64",internalType:"uint64"}],stateMutability:"view"},{type:"event",name:"ApprovalForAll",inputs:[{name:"owner",type:"address",indexed:!0,internalType:"address"},{name:"operator",type:"address",indexed:!0,internalType:"address"},{name:"approved",type:"bool",indexed:!1,internalType:"bool"}],anonymous:!1},{type:"event",name:"NewOwner",inputs:[{name:"node",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"label",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"owner",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"event",name:"NewResolver",inputs:[{name:"node",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"resolver",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"event",name:"NewTTL",inputs:[{name:"node",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"ttl",type:"uint64",indexed:!1,internalType:"uint64"}],anonymous:!1},{type:"event",name:"Transfer",inputs:[{name:"node",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"owner",type:"address",indexed:!1,internalType:"address"}],anonymous:!1}],rc="0x608060405234801561001057600080fd5b5060008080526020527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb580546001600160a01b031916331790556109b5806100596000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80635b0fc9c3116100715780635b0fc9c3146101ab5780635ef2c7f0146101be578063a22cb465146101d1578063cf408823146101e4578063e985e9c5146101f7578063f79fe5381461024357600080fd5b80630178b8bf146100b957806302571be31461010257806306ab59231461011557806314ab90381461013657806316a25cbd1461014b5780631896f70a14610198575b600080fd5b6100e56100c73660046107a4565b6000908152602081905260409020600101546001600160a01b031690565b6040516001600160a01b0390911681526020015b60405180910390f35b6100e56101103660046107a4565b61026e565b6101286101233660046107d9565b61029c565b6040519081526020016100f9565b610149610144366004610826565b61036c565b005b61017f6101593660046107a4565b600090815260208190526040902060010154600160a01b900467ffffffffffffffff1690565b60405167ffffffffffffffff90911681526020016100f9565b6101496101a6366004610852565b61043f565b6101496101b9366004610852565b610504565b6101496101cc366004610875565b6105a6565b6101496101df3660046108cc565b6105c8565b6101496101f2366004610908565b610634565b610233610205366004610955565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b60405190151581526020016100f9565b6102336102513660046107a4565b6000908152602081905260409020546001600160a01b0316151590565b6000818152602081905260408120546001600160a01b03163081036102965750600092915050565b92915050565b60008381526020819052604081205484906001600160a01b0316338114806102e757506001600160a01b038116600090815260016020908152604080832033845290915290205460ff165b6102f057600080fd5b60408051602080820189905281830188905282518083038401815260609092019092528051910120610322818661064f565b6040516001600160a01b0386168152869088907fce0457fe73731f824cc272376169235128c118b49d344817417c6d108d155e829060200160405180910390a39695505050505050565b60008281526020819052604090205482906001600160a01b0316338114806103b757506001600160a01b038116600090815260016020908152604080832033845290915290205460ff165b6103c057600080fd5b60405167ffffffffffffffff8416815284907f1d4f9bbfc9cab89d66e1a1562f2233ccbf1308cb4f63de2ead5787adddb8fa689060200160405180910390a25050600091825260208290526040909120600101805467ffffffffffffffff909216600160a01b0267ffffffffffffffff60a01b19909216919091179055565b60008281526020819052604090205482906001600160a01b03163381148061048a57506001600160a01b038116600090815260016020908152604080832033845290915290205460ff165b61049357600080fd5b6040516001600160a01b038416815284907f335721b01866dc23fbee8b6b2c7b1e14d6f05c28cd35a2c934239f94095602a09060200160405180910390a2505060009182526020829052604090912060010180546001600160a01b0319166001600160a01b03909216919091179055565b60008281526020819052604090205482906001600160a01b03163381148061054f57506001600160a01b038116600090815260016020908152604080832033845290915290205460ff165b61055857600080fd5b610562848461064f565b6040516001600160a01b038416815284907fd4735d920b0f87494915f556dd9b54c8f309026070caea5c737245152564d2669060200160405180910390a250505050565b60006105b386868661029c565b90506105c081848461067d565b505050505050565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61063e8484610504565b61064984838361067d565b50505050565b60009182526020829052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6000838152602081905260409020600101546001600160a01b03838116911614610703576000838152602081815260409182902060010180546001600160a01b0319166001600160a01b038616908117909155915191825284917f335721b01866dc23fbee8b6b2c7b1e14d6f05c28cd35a2c934239f94095602a0910160405180910390a25b60008381526020819052604090206001015467ffffffffffffffff828116600160a01b909204161461079f5760008381526020818152604091829020600101805467ffffffffffffffff60a01b1916600160a01b67ffffffffffffffff861690810291909117909155915191825284917f1d4f9bbfc9cab89d66e1a1562f2233ccbf1308cb4f63de2ead5787adddb8fa68910160405180910390a25b505050565b6000602082840312156107b657600080fd5b5035919050565b80356001600160a01b03811681146107d457600080fd5b919050565b6000806000606084860312156107ee57600080fd5b8335925060208401359150610805604085016107bd565b90509250925092565b803567ffffffffffffffff811681146107d457600080fd5b6000806040838503121561083957600080fd5b823591506108496020840161080e565b90509250929050565b6000806040838503121561086557600080fd5b82359150610849602084016107bd565b600080600080600060a0868803121561088d57600080fd5b85359450602086013593506108a4604087016107bd565b92506108b2606087016107bd565b91506108c06080870161080e565b90509295509295909350565b600080604083850312156108df57600080fd5b6108e8836107bd565b9150602083013580151581146108fd57600080fd5b809150509250929050565b6000806000806080858703121561091e57600080fd5b8435935061092e602086016107bd565b925061093c604086016107bd565b915061094a6060860161080e565b905092959194509250565b6000806040838503121561096857600080fd5b610971836107bd565b9150610849602084016107bd56fea2646970667358221220b6c3be93ffec5e5a47b9f372710d65c59860b6986beedbb852960b07092f2f0a64736f6c63430008170033",qB=t=>t.length>1;class ru extends si{constructor(...e){qB(e)?super(...e):super(H5,rc,e[0])}deploy(e){return super.deploy(e||{})}getDeployTransaction(e){return super.getDeployTransaction(e||{})}attach(e){return super.attach(e)}connect(e){return super.connect(e)}static createInterface(){return new t2(H5)}static connect(e,r){return new q2(e,H5,r)}}ct(ru,"bytecode",rc),ct(ru,"abi",H5);const K5=[{type:"constructor",inputs:[{name:"_ensregistry",type:"address",internalType:"address"},{name:"_ensnamewrapper",type:"address",internalType:"address"},{name:"_lz",type:"address",internalType:"address"},{name:"_lzc",type:"uint16",internalType:"uint16"},{name:"_exit",type:"address",internalType:"address"},{name:"_exitlzc",type:"uint16",internalType:"uint16"}],stateMutability:"nonpayable"},{type:"fallback",stateMutability:"payable"},{type:"receive",stateMutability:"payable"},{type:"function",name:"cash",inputs:[],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"ensnamewrapper",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"ensregistry",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"exitlzc",inputs:[],outputs:[{name:"",type:"uint16",internalType:"uint16"}],stateMutability:"view"},{type:"function",name:"exitpath",inputs:[],outputs:[{name:"",type:"bytes",internalType:"bytes"}],stateMutability:"view"},{type:"function",name:"lz",inputs:[],outputs:[{name:"",type:"address",internalType:"contract ILayerZeroEndpoint"}],stateMutability:"view"},{type:"function",name:"lzc",inputs:[],outputs:[{name:"",type:"uint16",internalType:"uint16"}],stateMutability:"view"},{type:"function",name:"owner",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"ping",inputs:[],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setKNSRecords",inputs:[{name:"fqdn",type:"bytes",internalType:"bytes"},{name:"data",type:"bytes[]",internalType:"bytes[]"}],outputs:[],stateMutability:"nonpayable"},{type:"error",name:"NotEnsOwner",inputs:[]}],nc="0x6101406040523480156200001257600080fd5b5060405162000fd538038062000fd58339810160408190526200003591620000e3565b6001600160a01b03868116610100528581166101205233608052841660a05261ffff831660c0526040516001600160601b0319606084811b8216602084015230901b166034820152604801604051602081830303815290604052600090816200009f91906200020b565b5061ffff1660e05250620002d79350505050565b80516001600160a01b0381168114620000cb57600080fd5b919050565b805161ffff81168114620000cb57600080fd5b60008060008060008060c08789031215620000fd57600080fd5b6200010887620000b3565b95506200011860208801620000b3565b94506200012860408801620000b3565b93506200013860608801620000d0565b92506200014860808801620000b3565b91506200015860a08801620000d0565b90509295509295509295565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200018f57607f821691505b602082108103620001b057634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000206576000816000526020600020601f850160051c81016020861015620001e15750805b601f850160051c820191505b818110156200020257828155600101620001ed565b5050505b505050565b81516001600160401b0381111562000227576200022762000164565b6200023f816200023884546200017a565b84620001b6565b602080601f8311600181146200027757600084156200025e5750858301515b600019600386901b1c1916600185901b17855562000202565b600085815260208120601f198616915b82811015620002a85788860151825594840194600190910190840162000287565b5085821015620002c75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c05160e0516101005161012051610c866200034f6000396000818160aa01528181610340015261038d01526000818161024a01526102d101526000818160fb01526106f50152600061016201526000818161019601526106c6015260008181610201015261057c0152610c866000f3fe60806040526004361061008f5760003560e01c80635c36b186116100565780635c36b186146101b85780637fee035f146101cd5780638da5cb5b146101ef578063961be39114610223578063ba503bee1461023857005b8063065aeebc146100985780630d448b78146100e95780631105d7cb1461013057806330ff44b61461015057806333f97b591461018457005b3661009657005b005b3480156100a457600080fd5b506100cc7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100f557600080fd5b5061011d7f000000000000000000000000000000000000000000000000000000000000000081565b60405161ffff90911681526020016100e0565b34801561013c57600080fd5b5061009661014b366004610880565b61026c565b34801561015c57600080fd5b5061011d7f000000000000000000000000000000000000000000000000000000000000000081565b34801561019057600080fd5b506100cc7f000000000000000000000000000000000000000000000000000000000000000081565b3480156101c457600080fd5b506100966104a3565b3480156101d957600080fd5b506101e26104e3565b6040516100e0919061098b565b3480156101fb57600080fd5b506100cc7f000000000000000000000000000000000000000000000000000000000000000081565b34801561022f57600080fd5b50610096610571565b34801561024457600080fd5b506100cc7f000000000000000000000000000000000000000000000000000000000000000081565b60006102ad85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525092506105eb915050565b6040516302571be360e01b8152600481018290529091506000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906302571be390602401602060405180830381865afa158015610318573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033c91906109a5565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b031603610403576040516331a9108f60e11b8152600481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636352211e90602401602060405180830381865afa1580156103dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040091906109a5565b90505b6001600160a01b038116331461042c576040516384760f9960e01b815260040160405180910390fd5b6000636a0d1c3460e01b338888888860405160240161044f9594939291906109f7565b60408051601f19818403018152918152602080830180516001600160e01b03166001600160e01b0319909516949094179093528051928301905260008252915061049a9082906106b0565b50505050505050565b6040805160048152602481018252602080820180516001600160e01b0316632e1b58c360e11b1790528251908101909252600082526104e1916106b0565b565b600080546104f090610ab9565b80601f016020809104026020016040519081016040528092919081815260200182805461051c90610ab9565b80156105695780601f1061053e57610100808354040283529160200191610569565b820191906000526020600020905b81548152906001019060200180831161054c57829003601f168201915b505050505081565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146105a657600080fd5b60405133904790600081818185875af1925050503d80600081146105e6576040519150601f19603f3d011682016040523d82523d6000602084013e505050565b505050565b60008060006105fa8585610755565b90925090508161067157600185516106129190610b09565b84146106655760405162461bcd60e51b815260206004820152601d60248201527f6e616d65686173683a204a756e6b20617420656e64206f66206e616d6500000060448201526064015b60405180910390fd5b50600091506106aa9050565b61067b85826105eb565b604080516020810192909252810183905260600160405160208183030381529060405280519060200120925050505b92915050565b60405162c5803160e81b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c5803100904790610728907f0000000000000000000000000000000000000000000000000000000000000000906000908890309083908a90600401610b1c565b6000604051808303818588803b15801561074157600080fd5b505af115801561049a573d6000803e3d6000fd5b600080835183106107a85760405162461bcd60e51b815260206004820152601e60248201527f726561644c6162656c3a20496e646578206f7574206f6620626f756e64730000604482015260640161065c565b60008484815181106107bc576107bc610c27565b016020015160f81c9050604081106108165760405162461bcd60e51b815260206004820152601960248201527f726561644c6162656c3a204c6162656c20746f6f206c6f6e6700000000000000604482015260640161065c565b8015610838576108318561082b866001610c3d565b8361085c565b925061083d565b600092505b6108478185610c3d565b610852906001610c3d565b9150509250929050565b825160009061086b8385610c3d565b111561087657600080fd5b5091016020012090565b6000806000806040858703121561089657600080fd5b843567ffffffffffffffff808211156108ae57600080fd5b818701915087601f8301126108c257600080fd5b8135818111156108d157600080fd5b8860208285010111156108e357600080fd5b6020928301965094509086013590808211156108fe57600080fd5b818701915087601f83011261091257600080fd5b81358181111561092157600080fd5b8860208260051b850101111561093657600080fd5b95989497505060200194505050565b6000815180845260005b8181101561096b5760208185018101518683018201520161094f565b506000602082860101526020601f19601f83011685010191505092915050565b60208152600061099e6020830184610945565b9392505050565b6000602082840312156109b757600080fd5b81516001600160a01b038116811461099e57600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038616815260606020808301829052600091610a1d90840187896109ce565b8381036040850152848152818101600586901b820183018760005b88811015610aa857848303601f190184528135368b9003601e19018112610a5e57600080fd5b8a01868101903567ffffffffffffffff811115610a7a57600080fd5b803603821315610a8957600080fd5b610a948582846109ce565b958801959450505090850190600101610a38565b50909b9a5050505050505050505050565b600181811c90821680610acd57607f821691505b602082108103610aed57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156106aa576106aa610af3565b61ffff871681526000602060c06020840152600088548160018260011c91506001831680610b4b57607f831692505b602083108103610b6957634e487b7160e01b85526022600452602485fd5b60c0880183905260e08801818015610b885760018114610b9e57610bc9565b60ff198616825284151560051b82019650610bc9565b60008f81526020902060005b86811015610bc357815484820152908501908901610baa565b83019750505b5050505050508381036040850152610be18189610945565b915050610bf960608401876001600160a01b03169052565b6001600160a01b038516608084015282810360a0840152610c1a8185610945565b9998505050505050505050565b634e487b7160e01b600052603260045260246000fd5b808201808211156106aa576106aa610af356fea2646970667358221220e3ac694477aa6f714010898307fc04e89a5db768141cf94df85e978acab5985764736f6c63430008170033",HB=t=>t.length>1;class nu extends si{constructor(...e){HB(e)?super(...e):super(K5,nc,e[0])}deploy(e,r,n,i,u,a,o){return super.deploy(e,r,n,i,u,a,o||{})}getDeployTransaction(e,r,n,i,u,a,o){return super.getDeployTransaction(e,r,n,i,u,a,o||{})}attach(e){return super.attach(e)}connect(e){return super.connect(e)}static createInterface(){return new t2(K5)}static connect(e,r){return new q2(e,K5,r)}}ct(nu,"bytecode",nc),ct(nu,"abi",K5);const G5=[{type:"constructor",inputs:[{name:"_kns",type:"address",internalType:"address"},{name:"_lz",type:"address",internalType:"address"},{name:"_lzc",type:"uint16",internalType:"uint16"}],stateMutability:"nonpayable"},{type:"function",name:"__initTLDRegistration",inputs:[{name:"fqdn",type:"bytes",internalType:"bytes"},{name:"tld",type:"bytes32",internalType:"bytes32"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"auth",inputs:[{name:"_nodeId",type:"bytes32",internalType:"bytes32"},{name:"_sender",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"ensowners",inputs:[{name:"",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"kns",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"lz",inputs:[],outputs:[{name:"",type:"address",internalType:"contract ILayerZeroEndpoint"}],stateMutability:"view"},{type:"function",name:"lzReceive",inputs:[{name:"_chain",type:"uint16",internalType:"uint16"},{name:"_path",type:"bytes",internalType:"bytes"},{name:"",type:"uint64",internalType:"uint64"},{name:"_payload",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"lzc",inputs:[],outputs:[{name:"",type:"uint16",internalType:"uint16"}],stateMutability:"view"},{type:"function",name:"owner",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"ownerOf",inputs:[{name:"node",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"nonpayable"},{type:"function",name:"ping",inputs:[],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setBaseNode",inputs:[{name:"node",type:"uint256",internalType:"uint256"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setEntry",inputs:[{name:"_entry",type:"address",internalType:"address"},{name:"_entrychain",type:"uint16",internalType:"uint16"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setKNSRecords",inputs:[{name:"owner",type:"address",internalType:"address"},{name:"fqdn",type:"bytes",internalType:"bytes"},{name:"data",type:"bytes[]",internalType:"bytes[]"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"simulate",inputs:[{name:"_payload",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"trustedentries",inputs:[{name:"",type:"uint16",internalType:"uint16"}],outputs:[{name:"",type:"bytes",internalType:"bytes"}],stateMutability:"view"},{type:"event",name:"Error",inputs:[{name:"error",type:"bytes4",indexed:!1,internalType:"bytes4"}],anonymous:!1},{type:"event",name:"Pinged",inputs:[{name:"",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"error",name:"EthNameTooShort",inputs:[]},{type:"error",name:"NotEthName",inputs:[]},{type:"error",name:"ParentNotRegistered",inputs:[]}],ic="0x61010060405234801561001157600080fd5b506040516200155138038062001551833981016040819052610032916100cb565b3360e0526001600160a01b0392831660c052911660805261ffff1660a0527f93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae60009081526020527f859ecef2e168dc10231b000bd53493b42bc9d944cac29d94582c1e1d4359213180546001600160a01b03191630179055610119565b80516001600160a01b03811681146100c657600080fd5b919050565b6000806000606084860312156100e057600080fd5b6100e9846100af565b92506100f7602085016100af565b9150604084015161ffff8116811461010e57600080fd5b809150509250925092565b60805160a05160c05160e0516113e26200016f60003960008181610245015261085d0152600081816101da0152818161072d01526107c70152600061013901526000818161017801526102df01526113e26000f3fe608060405234801561001057600080fd5b50600436106100f45760003560e01c80635c36b18611610097578063a5cc9b8c11610066578063a5cc9b8c14610267578063aff820041461027a578063b7a9d55d146102a3578063c4a6ed1c146102b457600080fd5b80635c36b186146101fc5780636352211e146102045780636a0d1c341461022d5780638da5cb5b1461024057600080fd5b806330ff44b6116100d357806330ff44b61461013457806333f97b5914610173578063516a166a146101b257806355bf3ec7146101d557600080fd5b80621d3567146100f9578063124039161461010e5780632421706214610121575b600080fd5b61010c610107366004610ca3565b6102d4565b005b61010c61011c366004610d3d565b505050565b61010c61012f366004610d89565b6104e6565b61015b7f000000000000000000000000000000000000000000000000000000000000000081565b60405161ffff90911681526020015b60405180910390f35b61019a7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161016a565b6101c56101c0366004610de2565b61052f565b604051901515815260200161016a565b61019a7f000000000000000000000000000000000000000000000000000000000000000081565b61010c61056a565b61019a610212366004610e0e565b6000908152602081905260409020546001600160a01b031690565b61010c61023b366004610e27565b6105ab565b61019a7f000000000000000000000000000000000000000000000000000000000000000081565b61010c610275366004610ed5565b610852565b61019a610288366004610e0e565b6000602081905290815260409020546001600160a01b031681565b61010c6102b1366004610e0e565b50565b6102c76102c2366004610eff565b6108db565b60405161016a9190610f3e565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146103375760405162461bcd60e51b815260206004820152600360248201526210b63d60e91b60448201526064015b60405180910390fd5b61ffff86166000908152600160205260408120805461035590610f71565b80601f016020809104026020016040519081016040528092919081815260200182805461038190610f71565b80156103ce5780601f106103a3576101008083540402835291602001916103ce565b820191906000526020600020905b8154815290600101906020018083116103b157829003601f168201915b5050505050905080516000141580156103e75750805185145b8015610410575085856040516103fe929190610fab565b60405180910390208180519060200120145b6104475760405162461bcd60e51b8152602060048201526008602482015267085d1c9d5cdd195960c21b604482015260640161032e565b60008061048d305a609688888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061097592505050565b91509150816104db576020818101516040516001600160e01b03198216815290917f366d96da3b5ec9f4aeb519f286b40eccd096a5d8f2321095eb415fb56d32f0cc910160405180910390a1505b505050505050505050565b610529305a609685858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061097592505050565b50505050565b60006001600160a01b03821630148061056157506000838152602081905260409020546001600160a01b038381169116145b90505b92915050565b33301461057657600080fd5b6040513081527fcd1f5876a7d71dd23dec305977c08069d94c421d8eccf041570b143e2312045d9060200160405180910390a1565b3330146105b757600080fd5b60058310156105d95760405163a0b3278960e01b815260040160405180910390fd5b83836105e6600582610fd1565b6105f292869290610fe4565b604051610600929190610fab565b6040519081900390207fc65934a88d283a635602ca15e14e8b9a9a3d150eacacca3b07f4a85f5fdbface1461064757604051624945f960e61b815260040160405180910390fd5b60008061068986868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610a0092505050565b90925090507f93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae82148015906106d357506000828152602081905260409020546001600160a01b0316155b156106f1576040516336e8c0db60e21b815260040160405180910390fd5b6000818152602081905260409081902080546001600160a01b0319166001600160a01b038a8116919091179091559051633255528360e21b81527f00000000000000000000000000000000000000000000000000000000000000009091169063c9554a0c906107669089908990600401611037565b6020604051808303816000875af1158015610785573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a99190611053565b5082156108495760405163e32954eb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063e32954eb906108009084908890889060040161106c565b6000604051808303816000875af115801561081f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610847919081019061115c565b505b50505050505050565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461088757600080fd5b6040516bffffffffffffffffffffffff19606084811b8216602084015230901b16603482015260480160408051601f1981840301815291815261ffff831660009081526001602052209061011c90826112c3565b600160205260009081526040902080546108f490610f71565b80601f016020809104026020016040519081016040528092919081815260200182805461092090610f71565b801561096d5780601f106109425761010080835404028352916020019161096d565b820191906000526020600020905b81548152906001019060200180831161095057829003601f168201915b505050505081565b6000606060008060008661ffff1667ffffffffffffffff81111561099b5761099b611115565b6040519080825280601f01601f1916602001820160405280156109c5576020820181803683370190505b50905060008087516020890160008d8df191503d9250868311156109e7578692505b828152826000602083013e909890975095505050505050565b6000808080610a0f8582610a59565b90925090506000610a208683610b60565b60408051602080820184905281830187905282518083038401815260609092019092528051910120909150819094509450505050915091565b60008083518310610aac5760405162461bcd60e51b815260206004820152601e60248201527f726561644c6162656c3a20496e646578206f7574206f6620626f756e64730000604482015260640161032e565b6000848481518110610ac057610ac0611383565b016020015160f81c905060408110610b1a5760405162461bcd60e51b815260206004820152601960248201527f726561644c6162656c3a204c6162656c20746f6f206c6f6e6700000000000000604482015260640161032e565b8015610b3c57610b3585610b2f866001611399565b83610c1f565b9250610b41565b600092505b610b4b8185611399565b610b56906001611399565b9150509250929050565b6000806000610b6f8585610a59565b909250905081610be15760018551610b879190610fd1565b8414610bd55760405162461bcd60e51b815260206004820152601d60248201527f6e616d65686173683a204a756e6b20617420656e64206f66206e616d65000000604482015260640161032e565b50600091506105649050565b610beb8582610b60565b6040805160208101929092528101839052606001604051602081830303815290604052805190602001209250505092915050565b8251600090610c2e8385611399565b1115610c3957600080fd5b5091016020012090565b803561ffff81168114610c5557600080fd5b919050565b60008083601f840112610c6c57600080fd5b50813567ffffffffffffffff811115610c8457600080fd5b602083019150836020828501011115610c9c57600080fd5b9250929050565b60008060008060008060808789031215610cbc57600080fd5b610cc587610c43565b9550602087013567ffffffffffffffff80821115610ce257600080fd5b610cee8a838b01610c5a565b9097509550604089013591508082168214610d0857600080fd5b90935060608801359080821115610d1e57600080fd5b50610d2b89828a01610c5a565b979a9699509497509295939492505050565b600080600060408486031215610d5257600080fd5b833567ffffffffffffffff811115610d6957600080fd5b610d7586828701610c5a565b909790965060209590950135949350505050565b60008060208385031215610d9c57600080fd5b823567ffffffffffffffff811115610db357600080fd5b610dbf85828601610c5a565b90969095509350505050565b80356001600160a01b0381168114610c5557600080fd5b60008060408385031215610df557600080fd5b82359150610e0560208401610dcb565b90509250929050565b600060208284031215610e2057600080fd5b5035919050565b600080600080600060608688031215610e3f57600080fd5b610e4886610dcb565b9450602086013567ffffffffffffffff80821115610e6557600080fd5b610e7189838a01610c5a565b90965094506040880135915080821115610e8a57600080fd5b818801915088601f830112610e9e57600080fd5b813581811115610ead57600080fd5b8960208260051b8501011115610ec257600080fd5b9699959850939650602001949392505050565b60008060408385031215610ee857600080fd5b610ef183610dcb565b9150610e0560208401610c43565b600060208284031215610f1157600080fd5b61056182610c43565b60005b83811015610f35578181015183820152602001610f1d565b50506000910152565b6020815260008251806020840152610f5d816040850160208701610f1a565b601f01601f19169190910160400192915050565b600181811c90821680610f8557607f821691505b602082108103610fa557634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561056457610564610fbb565b60008085851115610ff457600080fd5b8386111561100157600080fd5b5050820193919092039150565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60208152600061104b60208301848661100e565b949350505050565b60006020828403121561106557600080fd5b5051919050565b6000604082018583526020604060208501528185835260608501905060608660051b86010192508660005b8781101561110757868503605f190183528135368a9003601e190181126110bd57600080fd5b8901848101903567ffffffffffffffff8111156110d957600080fd5b8036038213156110e857600080fd5b6110f387828461100e565b965050509183019190830190600101611097565b509298975050505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561115457611154611115565b604052919050565b6000602080838503121561116f57600080fd5b825167ffffffffffffffff8082111561118757600080fd5b8185019150601f86601f84011261119d57600080fd5b8251828111156111af576111af611115565b8060051b6111be86820161112b565b918252848101860191868101908a8411156111d857600080fd5b87870192505b83831015611265578251868111156111f65760008081fd5b8701603f81018c136112085760008081fd5b8881015160408882111561121e5761121e611115565b61122f828901601f19168c0161112b565b8281528e828486010111156112445760008081fd5b611253838d8301848701610f1a565b855250505091870191908701906111de565b9a9950505050505050505050565b601f82111561011c576000816000526020600020601f850160051c8101602086101561129c5750805b601f850160051c820191505b818110156112bb578281556001016112a8565b505050505050565b815167ffffffffffffffff8111156112dd576112dd611115565b6112f1816112eb8454610f71565b84611273565b602080601f831160018114611326576000841561130e5750858301515b600019600386901b1c1916600185901b1785556112bb565b600085815260208120601f198616915b8281101561135557888601518255948401946001909101908401611336565b50858210156113735787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b8082018082111561056457610564610fbb56fea26469706673582212208197e0f5b459d95709cef50ad0fe845f867790febbf6af1b6d9bd7ff0a9b876064736f6c63430008170033",KB=t=>t.length>1;class iu extends si{constructor(...e){KB(e)?super(...e):super(G5,ic,e[0])}deploy(e,r,n,i){return super.deploy(e,r,n,i||{})}getDeployTransaction(e,r,n,i){return super.getDeployTransaction(e,r,n,i||{})}attach(e){return super.attach(e)}connect(e){return super.connect(e)}static createInterface(){return new t2(G5)}static connect(e,r){return new q2(e,G5,r)}}ct(iu,"bytecode",ic),ct(iu,"abi",G5);const W5=[{inputs:[],name:"NotTLD",type:"error"},{inputs:[],name:"TLD401",type:"error"},{inputs:[],name:"TLDRegistrarOnly",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"uint128",name:"ip",type:"uint128"}],name:"IpUpdate",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"key",type:"bytes32"}],name:"KeyUpdate",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"bytes",name:"name",type:"bytes"},{indexed:!1,internalType:"address",name:"tld",type:"address"}],name:"NewTLD",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"bytes",name:"name",type:"bytes"}],name:"NodeRegistered",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:!0,internalType:"bytes32",name:"node",type:"bytes32"}],name:"RecordsCleared",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"bytes32[]",name:"routers",type:"bytes32[]"}],name:"RoutingUpdate",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"uint16",name:"port",type:"uint16"}],name:"TcpUpdate",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"uint16",name:"port",type:"uint16"}],name:"UdpUpdate",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"uint16",name:"port",type:"uint16"}],name:"WsUpdate",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"uint16",name:"port",type:"uint16"}],name:"WtUpdate",type:"event"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"TLDs",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"},{internalType:"uint96",name:"_records",type:"uint96"}],name:"clearRecords",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getInitializedVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"ip",outputs:[{internalType:"uint128",name:"ip",type:"uint128"},{internalType:"uint16",name:"ws",type:"uint16"},{internalType:"uint16",name:"wt",type:"uint16"},{internalType:"uint16",name:"tcp",type:"uint16"},{internalType:"uint16",name:"udp",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"key",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicallWithNodeCheck",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"nodes",outputs:[{internalType:"contract ITLDRegistrar",name:"tld",type:"address"},{internalType:"uint96",name:"records",type:"uint96"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"proxiableUUID",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"fqdn",type:"bytes"}],name:"registerNode",outputs:[{internalType:"bytes32",name:"nodeHash",type:"bytes32"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"fqdn",type:"bytes"},{internalType:"address",name:"registrar",type:"address"}],name:"registerTLD",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"}],name:"routers",outputs:[{internalType:"bytes32[]",name:"",type:"bytes32[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"},{internalType:"uint128",name:"_ip",type:"uint128"},{internalType:"uint16",name:"_ws",type:"uint16"},{internalType:"uint16",name:"_wt",type:"uint16"},{internalType:"uint16",name:"_tcp",type:"uint16"},{internalType:"uint16",name:"_udp",type:"uint16"}],name:"setAllIp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"},{internalType:"uint128",name:"_ip",type:"uint128"},{internalType:"uint16",name:"_ws",type:"uint16"},{internalType:"uint16",name:"_wt",type:"uint16"},{internalType:"uint16",name:"_tcp",type:"uint16"},{internalType:"uint16",name:"_udp",type:"uint16"}],name:"setDirectInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"},{internalType:"uint128",name:"_ip",type:"uint128"}],name:"setIp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"},{internalType:"bytes32",name:"_key",type:"bytes32"}],name:"setKey",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"},{internalType:"bytes32[]",name:"_newRouters",type:"bytes32[]"}],name:"setRouters",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"},{internalType:"uint16",name:"_tcp",type:"uint16"}],name:"setTcp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"},{internalType:"uint16",name:"_udp",type:"uint16"}],name:"setUdp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"},{internalType:"uint16",name:"_ws",type:"uint16"}],name:"setWs",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"},{internalType:"uint16",name:"_wt",type:"uint16"}],name:"setWt",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:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"}],name:"upgradeTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"}],uc="0x60a06040523060805234801561001457600080fd5b50608051612e6961004c60003960008181610e9e01528181610ee7015281816111e80152818161122801526112bb0152612e696000f3fe6080604052600436106101b75760003560e01c806374191440116100ec578063c9554a0c1161008a578063decd6bd511610064578063decd6bd5146105c9578063e32954eb146105e9578063f2fde38b14610609578063fbda8c3f1461062957600080fd5b8063c9554a0c1461051a578063cf506b4a1461053a578063d86e697d1461055a57600080fd5b8063aa1fce69116100c6578063aa1fce691461047e578063ac9650d8146104ab578063b3c65015146104d8578063c7988b37146104fa57600080fd5b8063741914401461042b5780638129fc1c1461044b5780638da5cb5b1461046057600080fd5b80633940afcd116101595780634f1ef286116101335780634f1ef2861461039257806352d1902d146103a557806365184956146103c8578063715018a61461041657600080fd5b80633940afcd1461032f5780634a2a6add1461034f5780634f0575491461036f57600080fd5b80632363b1a6116101955780632363b1a6146102af578063300777af146102cf57806332946692146102ef5780633659cfe61461030f57600080fd5b806301ffc9a7146101bc57806305f93b5f146101f157806307a003301461028d575b600080fd5b3480156101c857600080fd5b506101dc6101d73660046125bc565b610656565b60405190151581526020015b60405180910390f35b3480156101fd57600080fd5b5061025261020c3660046125e6565b60ff602052600090815260409020546001600160801b0381169061ffff600160801b8204811691600160901b8104821691600160a01b8204811691600160b01b90041685565b604080516001600160801b03909616865261ffff9485166020870152928416928501929092528216606084015216608082015260a0016101e8565b34801561029957600080fd5b506102ad6102a83660046125ff565b61068d565b005b3480156102bb57600080fd5b506102ad6102ca366004612638565b6107ea565b3480156102db57600080fd5b506102ad6102ea36600461267b565b610958565b3480156102fb57600080fd5b506102ad61030a36600461269e565b610ad2565b34801561031b57600080fd5b506102ad61032a366004612722565b610e94565b34801561033b57600080fd5b506102ad61034a366004612782565b610f7c565b34801561035b57600080fd5b506102ad61036a3660046127ce565b6110e2565b34801561037b57600080fd5b506102ad61038a36600461269e565b505050505050565b6102ad6103a0366004612820565b6111de565b3480156103b157600080fd5b506103ba6112ae565b6040519081526020016101e8565b3480156103d457600080fd5b506103fe6103e33660046125e6565b60fb602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101e8565b34801561042257600080fd5b506102ad611361565b34801561043757600080fd5b506102ad610446366004612638565b611375565b34801561045757600080fd5b506102ad6114e8565b34801561046c57600080fd5b5060c9546001600160a01b03166103fe565b34801561048a57600080fd5b5061049e6104993660046125e6565b611600565b6040516101e891906128e2565b3480156104b757600080fd5b506104cb6104c6366004612926565b611662565b6040516101e891906129b8565b3480156104e457600080fd5b5060005460405160ff90911681526020016101e8565b34801561050657600080fd5b506102ad610515366004612638565b611677565b34801561052657600080fd5b506103ba610535366004612a5e565b6117ec565b34801561054657600080fd5b506102ad610555366004612a94565b6118f2565b34801561056657600080fd5b506105a26105753660046125e6565b60fc602052600090815260409020546001600160a01b03811690600160a01b90046001600160601b031682565b604080516001600160a01b0390931683526001600160601b039091166020830152016101e8565b3480156105d557600080fd5b506102ad6105e4366004612638565b611a71565b3480156105f557600080fd5b506104cb610604366004612782565b611bdf565b34801561061557600080fd5b506102ad610624366004612722565b611bf4565b34801561063557600080fd5b506103ba6106443660046125e6565b60fd6020526000908152604090205481565b60006001600160e01b03198216632065a08b60e01b148061068757506301ffc9a760e01b6001600160e01b03198316145b92915050565b600082815260fc6020526040908190205490516328b50b3560e11b81526004810184905233602482015283916001600160a01b03169063516a166a90604401602060405180830381865afa1580156106e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070d9190612ae8565b61072a57604051634745a29b60e01b815260040160405180910390fd5b600083815260fd60205260409020829055811561077c57600083815260fc6020526040902080546001600160a01b0381166001600160a01b928390046001600160601b031617918202179091556107aa565b600083815260fc6020526040902080546001600160a01b0381166001600160a01b9283900416918202179091555b50827f8ad9db565fe90ae9d4d50c51a4bf38505bfc2013675dbfd3510e0d6a4d050ba5836040516107dd91815260200190565b60405180910390a2505050565b600082815260fc6020526040908190205490516328b50b3560e11b81526004810184905233602482015283916001600160a01b03169063516a166a90604401602060405180830381865afa158015610846573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086a9190612ae8565b61088757604051634745a29b60e01b815260040160405180910390fd5b600083815260ff60205260409020805461ffff60801b1916600160801b61ffff851690810291909117909155156108f357600083815260fc6020526040902080546001600160a01b0381166008600160a01b928390046001600160601b03161791820217909155610921565b600083815260fc6020526040902080546001600160a01b0381166008600160a01b9283900416918202179091555b5060405161ffff8316815283907f11424874391782446f3957eb6ca27caa9af2d78d87980762c13090bd2845f71f906020016107dd565b600082815260fc6020526040908190205490516328b50b3560e11b81526004810184905233602482015283916001600160a01b03169063516a166a90604401602060405180830381865afa1580156109b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d89190612ae8565b6109f557604051634745a29b60e01b815260040160405180910390fd5b600083815260ff6020526040902080546fffffffffffffffffffffffffffffffff19166001600160801b03841690811790915515610a6857600083815260fc6020526040902080546001600160a01b0381166004600160a01b928390046001600160601b03161791820217909155610a96565b600083815260fc6020526040902080546001600160a01b0381166004600160a01b9283900416918202179091555b506040516001600160801b038316815283907f27831fc2ef572cce1298d5d9fc3cc1304eb5dfcea21d2190e5ad5943e4fa14fc906020016107dd565b600086815260fc6020526040908190205490516328b50b3560e11b81526004810188905233602482015287916001600160a01b03169063516a166a90604401602060405180830381865afa158015610b2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b529190612ae8565b610b6f57604051634745a29b60e01b815260040160405180910390fd5b600087815260fc6020526040902054600160a01b90046001600160601b03166001600160801b03871615610ba65760048117610bab565b600481165b905061ffff861615610bc05760088117610bc5565b600881165b905061ffff851615610bda5760108117610bdf565b601081165b905061ffff841615610bf45760208117610bf9565b602081165b905061ffff831615610c0e5760408117610c13565b604081165b90508060fc60008a815260200190815260200160002060000160146101000a8154816001600160601b0302191690836001600160601b031602179055506040518060a00160405280886001600160801b031681526020018761ffff1681526020018661ffff1681526020018561ffff1681526020018461ffff1681525060ff60008a815260200190815260200160002060008201518160000160006101000a8154816001600160801b0302191690836001600160801b0316021790555060208201518160000160106101000a81548161ffff021916908361ffff16021790555060408201518160000160126101000a81548161ffff021916908361ffff16021790555060608201518160000160146101000a81548161ffff021916908361ffff16021790555060808201518160000160166101000a81548161ffff021916908361ffff160217905550905050877f27831fc2ef572cce1298d5d9fc3cc1304eb5dfcea21d2190e5ad5943e4fa14fc88604051610d9e91906001600160801b0391909116815260200190565b60405180910390a260405161ffff8716815288907f11424874391782446f3957eb6ca27caa9af2d78d87980762c13090bd2845f71f9060200160405180910390a260405161ffff8616815288907f4554b2837a782a075cb46bd0c681b73ef5e49cbcbeb3323e6f1fd9d3ec93a4c39060200160405180910390a260405161ffff8516815288907fc9b39ee25167b4c4f1ba319c61772350b508db76f73d0b25575173210386d9f39060200160405180910390a260405161ffff8416815288907f3d36ae2226b041dc65d74c772bae84c40b4ac6d1da927d7b633940d819c09c1a9060200160405180910390a25050505050505050565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610ee55760405162461bcd60e51b8152600401610edc90612b0a565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610f2e600080516020612ded833981519152546001600160a01b031690565b6001600160a01b031614610f545760405162461bcd60e51b8152600401610edc90612b56565b610f5d81611c6a565b60408051600080825260208201909252610f7991839190611c72565b50565b600083815260fc6020526040908190205490516328b50b3560e11b81526004810185905233602482015284916001600160a01b03169063516a166a90604401602060405180830381865afa158015610fd8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ffc9190612ae8565b61101957604051634745a29b60e01b815260040160405180910390fd5b600084815260fe6020526040902061103290848461255c565b541561107357600084815260fc6020526040902080546001600160a01b0381166002600160a01b928390046001600160601b031617918202179091556110a1565b600084815260fc6020526040902080546001600160a01b0381166002600160a01b9283900416918202179091555b50837fd5a074e1c505de1aae7c94787f2e46faf07aceba6fc0c6a5f82f223ca1de2c5784846040516110d4929190612ba2565b60405180910390a250505050565b600082815260fc6020526040908190205490516328b50b3560e11b81526004810184905233602482015283916001600160a01b03169063516a166a90604401602060405180830381865afa15801561113e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111629190612ae8565b61117f57604051634745a29b60e01b815260040160405180910390fd5b600083815260fc60205260408082208054600160a01b8082048719166001600160601b0316026001600160a01b039091161790555184917f43a5deaf1b43fdbf7f75cf9745d253c5d17328910ab7c757e664869316fe973391a2505050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036112265760405162461bcd60e51b8152600401610edc90612b0a565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661126f600080516020612ded833981519152546001600160a01b031690565b6001600160a01b0316146112955760405162461bcd60e51b8152600401610edc90612b56565b61129e82611c6a565b6112aa82826001611c72565b5050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461134e5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610edc565b50600080516020612ded83398151915290565b611369611de2565b6113736000611e3c565b565b600082815260fc6020526040908190205490516328b50b3560e11b81526004810184905233602482015283916001600160a01b03169063516a166a90604401602060405180830381865afa1580156113d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f59190612ae8565b61141257604051634745a29b60e01b815260040160405180910390fd5b600083815260ff60205260409020805461ffff60b01b1916600160b01b61ffff8516908102919091179091551561148257600083815260fc60205260409081902080546001600160601b03600160a01b808304919091169093179283026001600160a01b039091161790556114b1565b600083815260fc6020526040908190208054600160a01b8082049093169283026001600160a01b039091161790555b5060405161ffff8316815283907f3d36ae2226b041dc65d74c772bae84c40b4ac6d1da927d7b633940d819c09c1a906020016107dd565b600054610100900460ff16158080156115085750600054600160ff909116105b806115225750303b158015611522575060005460ff166001145b6115855760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610edc565b6000805460ff1916600117905580156115a8576000805461ff0019166101001790555b6115b0611e8e565b6115b8611eb5565b8015610f79576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b600081815260fe602090815260409182902080548351818402810184019094528084526060939283018282801561165657602002820191906000526020600020905b815481526020019060010190808311611642575b50505050509050919050565b606061167060008484611ee4565b9392505050565b600082815260fc6020526040908190205490516328b50b3560e11b81526004810184905233602482015283916001600160a01b03169063516a166a90604401602060405180830381865afa1580156116d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f79190612ae8565b61171457604051634745a29b60e01b815260040160405180910390fd5b600083815260ff60205260409020805461ffff60a01b1916600160a01b61ffff8516908102919091179091551561178557600083815260fc6020908152604090912080546001600160601b03600160a01b808304919091169093179283026001600160a01b039091161790556117b5565b600083815260fc602090815260409091208054600160a01b8082049093169283026001600160a01b039091161790555b5060405161ffff8316815283907fc9b39ee25167b4c4f1ba319c61772350b508db76f73d0b25575173210386d9f3906020016107dd565b600080600061183085858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506120a992505050565b600081815260fb602052604090205491935091506001600160a01b0316331461186c5760405163ae7fd2eb60e01b815260040160405180910390fd5b6040805180820182523381526000602080830182815286835260fc90915290839020915190516001600160601b0316600160a01b026001600160a01b03919091161790555182907f76a77f5ff7e4ca0adac1c931a7ad2ea83bfb7e6b8603e81917dd2dca7e90625c906118e29088908890612c04565b60405180910390a2509392505050565b6118fa611de2565b600080611941600086868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092939250506120c09050565b9092509050611951600185612c2e565b81146119705760405163b444c4ed60e01b815260040160405180910390fd5b60408051600060208083018290528284018690528351808403850181526060840180865281519183019190912080845260fb835285842080546001600160a01b038b166001600160a01b0319918216811790925560fc90945295909320805490921685179091556309201c8b60e11b905291906312403916906119fb90899089908690606401612c41565b600060405180830381600087803b158015611a1557600080fd5b505af1158015611a29573d6000803e3d6000fd5b50505050807f7db14709557f4e6eec0d0c5f0c1855b31e9667a13ef65c90c284987c677d4004878787604051611a6193929190612c65565b60405180910390a2505050505050565b600082815260fc6020526040908190205490516328b50b3560e11b81526004810184905233602482015283916001600160a01b03169063516a166a90604401602060405180830381865afa158015611acd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611af19190612ae8565b611b0e57604051634745a29b60e01b815260040160405180910390fd5b600083815260ff60205260409020805461ffff60901b1916600160901b61ffff85169081029190911790915515611b7a57600083815260fc6020526040902080546001600160a01b0381166010600160a01b928390046001600160601b03161791820217909155611ba8565b600083815260fc6020526040902080546001600160a01b0381166010600160a01b9283900416918202179091555b5060405161ffff8316815283907f4554b2837a782a075cb46bd0c681b73ef5e49cbcbeb3323e6f1fd9d3ec93a4c3906020016107dd565b6060611bec848484611ee4565b949350505050565b611bfc611de2565b6001600160a01b038116611c615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610edc565b610f7981611e3c565b610f79611de2565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615611caa57611ca5836121c7565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611d04575060408051601f3d908101601f19168201909252611d0191810190612c91565b60015b611d675760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610edc565b600080516020612ded8339815191528114611dd65760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610edc565b50611ca5838383612263565b60c9546001600160a01b031633146113735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610edc565b60c980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166113735760405162461bcd60e51b8152600401610edc90612caa565b600054610100900460ff16611edc5760405162461bcd60e51b8152600401610edc90612caa565b61137361228e565b60608167ffffffffffffffff811115611eff57611eff61280a565b604051908082528060200260200182016040528015611f3257816020015b6060815260200190600190039081611f1d5790505b50905060005b828110156120a1578415611ff4576000848483818110611f5a57611f5a612cf5565b9050602002810190611f6c9190612d0b565b611f7b91602491600491612d52565b611f8491612d7c565b9050858114611ff25760405162461bcd60e51b815260206004820152603460248201527f6d756c746963616c6c3a20416c6c207265636f726473206d7573742068617665604482015273040c240dac2e8c6d0d2dcce40dcc2dacad0c2e6d60631b6064820152608401610edc565b505b6000803086868581811061200a5761200a612cf5565b905060200281019061201c9190612d0b565b60405161202a929190612d9a565b600060405180830381855af49150503d8060008114612065576040519150601f19603f3d011682016040523d82523d6000602084013e61206a565b606091505b50915091508161207957600080fd5b8084848151811061208c5761208c612cf5565b60209081029190910101525050600101611f38565b509392505050565b6000806120b78360006122be565b91509150915091565b600080835183106121135760405162461bcd60e51b815260206004820152601e60248201527f726561644c6162656c3a20496e646578206f7574206f6620626f756e647300006044820152606401610edc565b600084848151811061212757612127612cf5565b016020015160f81c9050604081106121815760405162461bcd60e51b815260206004820152601960248201527f726561644c6162656c3a204c6162656c20746f6f206c6f6e67000000000000006044820152606401610edc565b80156121a35761219c85612196866001612daa565b836123c2565b92506121a8565b600092505b6121b28185612daa565b6121bd906001612daa565b9150509250929050565b6001600160a01b0381163b6122345760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610edc565b600080516020612ded83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61226c836123e6565b6000825111806122795750805b15611ca5576122888383612426565b50505050565b600054610100900460ff166122b55760405162461bcd60e51b8152600401610edc90612caa565b61137333611e3c565b6000806000806122ce86866120c0565b90925090508161234357600186516122e69190612c2e565b85146123345760405162461bcd60e51b815260206004820152601d60248201527f6e616d65686173683a204a756e6b20617420656e64206f66206e616d650000006044820152606401610edc565b50600092508291506123bb9050565b60008061235088846122be565b9092509050806123875760408051600060208201529081018590526060016040516020818303038152906040528051906020012090505b6040805160208101849052908101859052606001604051602081830303815290604052805190602001208195509550505050505b9250929050565b82516000906123d18385612daa565b11156123dc57600080fd5b5091016020012090565b6123ef816121c7565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606116708383604051806060016040528060278152602001612e0d602791396060600080856001600160a01b0316856040516124639190612dbd565b600060405180830381855af49150503d806000811461249e576040519150601f19603f3d011682016040523d82523d6000602084013e6124a3565b606091505b50915091506124b4868383876124be565b9695505050505050565b6060831561252d578251600003612526576001600160a01b0385163b6125265760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610edc565b5081611bec565b611bec83838151156125425781518083602001fd5b8060405162461bcd60e51b8152600401610edc9190612dd9565b828054828255906000526020600020908101928215612597579160200282015b8281111561259757823582559160200191906001019061257c565b506125a39291506125a7565b5090565b5b808211156125a357600081556001016125a8565b6000602082840312156125ce57600080fd5b81356001600160e01b03198116811461167057600080fd5b6000602082840312156125f857600080fd5b5035919050565b6000806040838503121561261257600080fd5b50508035926020909101359150565b803561ffff8116811461263357600080fd5b919050565b6000806040838503121561264b57600080fd5b8235915061265b60208401612621565b90509250929050565b80356001600160801b038116811461263357600080fd5b6000806040838503121561268e57600080fd5b8235915061265b60208401612664565b60008060008060008060c087890312156126b757600080fd5b863595506126c760208801612664565b94506126d560408801612621565b93506126e360608801612621565b92506126f160808801612621565b91506126ff60a08801612621565b90509295509295509295565b80356001600160a01b038116811461263357600080fd5b60006020828403121561273457600080fd5b6116708261270b565b60008083601f84011261274f57600080fd5b50813567ffffffffffffffff81111561276757600080fd5b6020830191508360208260051b85010111156123bb57600080fd5b60008060006040848603121561279757600080fd5b83359250602084013567ffffffffffffffff8111156127b557600080fd5b6127c18682870161273d565b9497909650939450505050565b600080604083850312156127e157600080fd5b8235915060208301356001600160601b03811681146127ff57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561283357600080fd5b61283c8361270b565b9150602083013567ffffffffffffffff8082111561285957600080fd5b818501915085601f83011261286d57600080fd5b81358181111561287f5761287f61280a565b604051601f8201601f19908116603f011681019083821181831017156128a7576128a761280a565b816040528281528860208487010111156128c057600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6020808252825182820181905260009190848201906040850190845b8181101561291a578351835292840192918401916001016128fe565b50909695505050505050565b6000806020838503121561293957600080fd5b823567ffffffffffffffff81111561295057600080fd5b61295c8582860161273d565b90969095509350505050565b60005b8381101561298357818101518382015260200161296b565b50506000910152565b600081518084526129a4816020860160208601612968565b601f01601f19169290920160200192915050565b600060208083016020845280855180835260408601915060408160051b87010192506020870160005b82811015612a0f57603f198886030184526129fd85835161298c565b945092850192908501906001016129e1565b5092979650505050505050565b60008083601f840112612a2e57600080fd5b50813567ffffffffffffffff811115612a4657600080fd5b6020830191508360208285010111156123bb57600080fd5b60008060208385031215612a7157600080fd5b823567ffffffffffffffff811115612a8857600080fd5b61295c85828601612a1c565b600080600060408486031215612aa957600080fd5b833567ffffffffffffffff811115612ac057600080fd5b612acc86828701612a1c565b9094509250612adf90506020850161270b565b90509250925092565b600060208284031215612afa57600080fd5b8151801515811461167057600080fd5b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6020808252810182905260006001600160fb1b03831115612bc257600080fd5b8260051b80856040850137919091016040019392505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b602081526000611bec602083018486612bdb565b634e487b7160e01b600052601160045260246000fd5b8181038181111561068757610687612c18565b604081526000612c55604083018587612bdb565b9050826020830152949350505050565b604081526000612c79604083018587612bdb565b905060018060a01b0383166020830152949350505050565b600060208284031215612ca357600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112612d2257600080fd5b83018035915067ffffffffffffffff821115612d3d57600080fd5b6020019150368190038213156123bb57600080fd5b60008085851115612d6257600080fd5b83861115612d6f57600080fd5b5050820193919092039150565b8035602083101561068757600019602084900360031b1b1692915050565b8183823760009101908152919050565b8082018082111561068757610687612c18565b60008251612dcf818460208701612968565b9190910192915050565b602081526000611670602083018461298c56fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122070a9f0e73254f89b10dbef9ecf7bdfc92f749197f3cc327e9f575c6c38e3afa264736f6c63430008160033",GB=t=>t.length>1;class uu extends si{constructor(...e){GB(e)?super(...e):super(W5,uc,e[0])}deploy(e){return super.deploy(e||{})}getDeployTransaction(e){return super.getDeployTransaction(e||{})}attach(e){return super.attach(e)}connect(e){return super.connect(e)}static createInterface(){return new t2(W5)}static connect(e,r){return new q2(e,W5,r)}}ct(uu,"bytecode",uc),ct(uu,"abi",W5);const V5=[{type:"constructor",inputs:[{name:"_ens",type:"address",internalType:"contract ENS"},{name:"_registrar",type:"address",internalType:"contract IBaseRegistrar"},{name:"_metadataService",type:"address",internalType:"contract IMetadataService"}],stateMutability:"nonpayable"},{type:"function",name:"_tokens",inputs:[{name:"",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"allFusesBurned",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"fuseMask",type:"uint32",internalType:"uint32"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"approve",inputs:[{name:"to",type:"address",internalType:"address"},{name:"tokenId",type:"uint256",internalType:"uint256"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"balanceOf",inputs:[{name:"account",type:"address",internalType:"address"},{name:"id",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"balanceOfBatch",inputs:[{name:"accounts",type:"address[]",internalType:"address[]"},{name:"ids",type:"uint256[]",internalType:"uint256[]"}],outputs:[{name:"",type:"uint256[]",internalType:"uint256[]"}],stateMutability:"view"},{type:"function",name:"canExtendSubnames",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"addr",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"canModifyName",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"addr",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"controllers",inputs:[{name:"",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"ens",inputs:[],outputs:[{name:"",type:"address",internalType:"contract ENS"}],stateMutability:"view"},{type:"function",name:"extendExpiry",inputs:[{name:"parentNode",type:"bytes32",internalType:"bytes32"},{name:"labelhash",type:"bytes32",internalType:"bytes32"},{name:"expiry",type:"uint64",internalType:"uint64"}],outputs:[{name:"",type:"uint64",internalType:"uint64"}],stateMutability:"nonpayable"},{type:"function",name:"getApproved",inputs:[{name:"id",type:"uint256",internalType:"uint256"}],outputs:[{name:"operator",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getData",inputs:[{name:"id",type:"uint256",internalType:"uint256"}],outputs:[{name:"owner",type:"address",internalType:"address"},{name:"fuses",type:"uint32",internalType:"uint32"},{name:"expiry",type:"uint64",internalType:"uint64"}],stateMutability:"view"},{type:"function",name:"isApprovedForAll",inputs:[{name:"account",type:"address",internalType:"address"},{name:"operator",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"isWrapped",inputs:[{name:"parentNode",type:"bytes32",internalType:"bytes32"},{name:"labelhash",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"isWrapped",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"metadataService",inputs:[],outputs:[{name:"",type:"address",internalType:"contract IMetadataService"}],stateMutability:"view"},{type:"function",name:"name",inputs:[],outputs:[{name:"",type:"string",internalType:"string"}],stateMutability:"view"},{type:"function",name:"names",inputs:[{name:"",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"bytes",internalType:"bytes"}],stateMutability:"view"},{type:"function",name:"onERC721Received",inputs:[{name:"to",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"tokenId",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"owner",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"ownerOf",inputs:[{name:"id",type:"uint256",internalType:"uint256"}],outputs:[{name:"owner",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"recoverFunds",inputs:[{name:"_token",type:"address",internalType:"address"},{name:"_to",type:"address",internalType:"address"},{name:"_amount",type:"uint256",internalType:"uint256"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"registerAndWrapETH2LD",inputs:[{name:"label",type:"string",internalType:"string"},{name:"wrappedOwner",type:"address",internalType:"address"},{name:"duration",type:"uint256",internalType:"uint256"},{name:"resolver",type:"address",internalType:"address"},{name:"ownerControlledFuses",type:"uint16",internalType:"uint16"}],outputs:[{name:"registrarExpiry",type:"uint256",internalType:"uint256"}],stateMutability:"nonpayable"},{type:"function",name:"registrar",inputs:[],outputs:[{name:"",type:"address",internalType:"contract IBaseRegistrar"}],stateMutability:"view"},{type:"function",name:"renew",inputs:[{name:"tokenId",type:"uint256",internalType:"uint256"},{name:"duration",type:"uint256",internalType:"uint256"}],outputs:[{name:"expires",type:"uint256",internalType:"uint256"}],stateMutability:"nonpayable"},{type:"function",name:"renounceOwnership",inputs:[],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"safeBatchTransferFrom",inputs:[{name:"from",type:"address",internalType:"address"},{name:"to",type:"address",internalType:"address"},{name:"ids",type:"uint256[]",internalType:"uint256[]"},{name:"amounts",type:"uint256[]",internalType:"uint256[]"},{name:"data",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"safeTransferFrom",inputs:[{name:"from",type:"address",internalType:"address"},{name:"to",type:"address",internalType:"address"},{name:"id",type:"uint256",internalType:"uint256"},{name:"amount",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setApprovalForAll",inputs:[{name:"operator",type:"address",internalType:"address"},{name:"approved",type:"bool",internalType:"bool"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setChildFuses",inputs:[{name:"parentNode",type:"bytes32",internalType:"bytes32"},{name:"labelhash",type:"bytes32",internalType:"bytes32"},{name:"fuses",type:"uint32",internalType:"uint32"},{name:"expiry",type:"uint64",internalType:"uint64"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setController",inputs:[{name:"controller",type:"address",internalType:"address"},{name:"active",type:"bool",internalType:"bool"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setFuses",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"ownerControlledFuses",type:"uint16",internalType:"uint16"}],outputs:[{name:"",type:"uint32",internalType:"uint32"}],stateMutability:"nonpayable"},{type:"function",name:"setMetadataService",inputs:[{name:"_metadataService",type:"address",internalType:"contract IMetadataService"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setRecord",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"owner",type:"address",internalType:"address"},{name:"resolver",type:"address",internalType:"address"},{name:"ttl",type:"uint64",internalType:"uint64"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setResolver",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"resolver",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setSubnodeOwner",inputs:[{name:"parentNode",type:"bytes32",internalType:"bytes32"},{name:"label",type:"string",internalType:"string"},{name:"owner",type:"address",internalType:"address"},{name:"fuses",type:"uint32",internalType:"uint32"},{name:"expiry",type:"uint64",internalType:"uint64"}],outputs:[{name:"node",type:"bytes32",internalType:"bytes32"}],stateMutability:"nonpayable"},{type:"function",name:"setSubnodeRecord",inputs:[{name:"parentNode",type:"bytes32",internalType:"bytes32"},{name:"label",type:"string",internalType:"string"},{name:"owner",type:"address",internalType:"address"},{name:"resolver",type:"address",internalType:"address"},{name:"ttl",type:"uint64",internalType:"uint64"},{name:"fuses",type:"uint32",internalType:"uint32"},{name:"expiry",type:"uint64",internalType:"uint64"}],outputs:[{name:"node",type:"bytes32",internalType:"bytes32"}],stateMutability:"nonpayable"},{type:"function",name:"setTTL",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"ttl",type:"uint64",internalType:"uint64"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setUpgradeContract",inputs:[{name:"_upgradeAddress",type:"address",internalType:"contract INameWrapperUpgrade"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"supportsInterface",inputs:[{name:"interfaceId",type:"bytes4",internalType:"bytes4"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"transferOwnership",inputs:[{name:"newOwner",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"unwrap",inputs:[{name:"parentNode",type:"bytes32",internalType:"bytes32"},{name:"labelhash",type:"bytes32",internalType:"bytes32"},{name:"controller",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"unwrapETH2LD",inputs:[{name:"labelhash",type:"bytes32",internalType:"bytes32"},{name:"registrant",type:"address",internalType:"address"},{name:"controller",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"upgrade",inputs:[{name:"name",type:"bytes",internalType:"bytes"},{name:"extraData",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"upgradeContract",inputs:[],outputs:[{name:"",type:"address",internalType:"contract INameWrapperUpgrade"}],stateMutability:"view"},{type:"function",name:"uri",inputs:[{name:"tokenId",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"string",internalType:"string"}],stateMutability:"view"},{type:"function",name:"wrap",inputs:[{name:"name",type:"bytes",internalType:"bytes"},{name:"wrappedOwner",type:"address",internalType:"address"},{name:"resolver",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"wrapETH2LD",inputs:[{name:"label",type:"string",internalType:"string"},{name:"wrappedOwner",type:"address",internalType:"address"},{name:"ownerControlledFuses",type:"uint16",internalType:"uint16"},{name:"resolver",type:"address",internalType:"address"}],outputs:[{name:"expiry",type:"uint64",internalType:"uint64"}],stateMutability:"nonpayable"},{type:"event",name:"Approval",inputs:[{name:"owner",type:"address",indexed:!0,internalType:"address"},{name:"approved",type:"address",indexed:!0,internalType:"address"},{name:"tokenId",type:"uint256",indexed:!0,internalType:"uint256"}],anonymous:!1},{type:"event",name:"ApprovalForAll",inputs:[{name:"account",type:"address",indexed:!0,internalType:"address"},{name:"operator",type:"address",indexed:!0,internalType:"address"},{name:"approved",type:"bool",indexed:!1,internalType:"bool"}],anonymous:!1},{type:"event",name:"ControllerChanged",inputs:[{name:"controller",type:"address",indexed:!0,internalType:"address"},{name:"active",type:"bool",indexed:!1,internalType:"bool"}],anonymous:!1},{type:"event",name:"ExpiryExtended",inputs:[{name:"node",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"expiry",type:"uint64",indexed:!1,internalType:"uint64"}],anonymous:!1},{type:"event",name:"FusesSet",inputs:[{name:"node",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"fuses",type:"uint32",indexed:!1,internalType:"uint32"}],anonymous:!1},{type:"event",name:"NameUnwrapped",inputs:[{name:"node",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"owner",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"event",name:"NameWrapped",inputs:[{name:"node",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"name",type:"bytes",indexed:!1,internalType:"bytes"},{name:"owner",type:"address",indexed:!1,internalType:"address"},{name:"fuses",type:"uint32",indexed:!1,internalType:"uint32"},{name:"expiry",type:"uint64",indexed:!1,internalType:"uint64"}],anonymous:!1},{type:"event",name:"OwnershipTransferred",inputs:[{name:"previousOwner",type:"address",indexed:!0,internalType:"address"},{name:"newOwner",type:"address",indexed:!0,internalType:"address"}],anonymous:!1},{type:"event",name:"TransferBatch",inputs:[{name:"operator",type:"address",indexed:!0,internalType:"address"},{name:"from",type:"address",indexed:!0,internalType:"address"},{name:"to",type:"address",indexed:!0,internalType:"address"},{name:"ids",type:"uint256[]",indexed:!1,internalType:"uint256[]"},{name:"values",type:"uint256[]",indexed:!1,internalType:"uint256[]"}],anonymous:!1},{type:"event",name:"TransferSingle",inputs:[{name:"operator",type:"address",indexed:!0,internalType:"address"},{name:"from",type:"address",indexed:!0,internalType:"address"},{name:"to",type:"address",indexed:!0,internalType:"address"},{name:"id",type:"uint256",indexed:!1,internalType:"uint256"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"event",name:"URI",inputs:[{name:"value",type:"string",indexed:!1,internalType:"string"},{name:"id",type:"uint256",indexed:!0,internalType:"uint256"}],anonymous:!1},{type:"error",name:"CannotUpgrade",inputs:[]},{type:"error",name:"IncompatibleParent",inputs:[]},{type:"error",name:"IncorrectTargetOwner",inputs:[{name:"owner",type:"address",internalType:"address"}]},{type:"error",name:"IncorrectTokenType",inputs:[]},{type:"error",name:"LabelMismatch",inputs:[{name:"labelHash",type:"bytes32",internalType:"bytes32"},{name:"expectedLabelhash",type:"bytes32",internalType:"bytes32"}]},{type:"error",name:"LabelTooLong",inputs:[{name:"label",type:"string",internalType:"string"}]},{type:"error",name:"LabelTooShort",inputs:[]},{type:"error",name:"NameIsNotWrapped",inputs:[]},{type:"error",name:"OperationProhibited",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"}]},{type:"error",name:"Unauthorised",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"addr",type:"address",internalType:"address"}]}],ac="0x60c06040523480156200001157600080fd5b5060405162005d2f38038062005d2f8339810160408190526200003491620002f8565b823362000041816200028f565b6040516302571be360e01b81527f91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e260048201526000906001600160a01b038416906302571be390602401602060405180830381865afa158015620000a9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000cf91906200034c565b604051630f41a04d60e11b81526001600160a01b03848116600483015291925090821690631e83409a906024016020604051808303816000875af11580156200011c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000142919062000373565b505050506001600160a01b0383811660805282811660a052600580546001600160a01b031916918316919091179055600163fffeffff60a01b03197fafa26c20e8b3d9a2853d642cfe1021dae26242ffedfac91c97aab212c1a4b93b8190557fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb4955604080518082019091526001815260006020808301829052908052600690527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f89062000210908262000434565b506040805180820190915260058152626cae8d60e31b6020808301919091527f93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae600052600690527ffb9e8e321b8a5ec48f12a7b41f22c6e595d761285c9eb19d8dda7c99edf1b54f9062000285908262000434565b5050505062000500565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114620002f557600080fd5b50565b6000806000606084860312156200030e57600080fd5b83516200031b81620002df565b60208501519093506200032e81620002df565b60408501519092506200034181620002df565b809150509250925092565b6000602082840312156200035f57600080fd5b81516200036c81620002df565b9392505050565b6000602082840312156200038657600080fd5b5051919050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620003b857607f821691505b602082108103620003d957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200042f576000816000526020600020601f850160051c810160208610156200040a5750805b601f850160051c820191505b818110156200042b5782815560010162000416565b5050505b505050565b81516001600160401b038111156200045057620004506200038d565b6200046881620004618454620003a3565b84620003df565b602080601f831160018114620004a05760008415620004875750858301515b600019600386901b1c1916600185901b1785556200042b565b600085815260208120601f198616915b82811015620004d157888601518255948401946001909101908401620004b0565b5085821015620004f05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a0516157226200060d6000396000818161047301528181610aee01528181610b9101528181610c20015281816118b80152818161194e015281816119fc01528181611ace01528181611b3f01528181611bc401528181611dd801528181611f14015281816120460152818161219e0152818161222401526129620152600081816104c001528181610a7401528181610d6a01528181610ef901528181610faa015281816112b601528181611f99015281816120cb015281816122cf015281816124810152818161275201528181612b9b01528181612c4901528181612cfe01528181612d7f0152818161328a015281816133dd015281816136450152613bf101526157226000f3fe608060405234801561001057600080fd5b506004361061029f5760003560e01c80636352211e11610167578063c93ab3fd116100ce578063e985e9c511610087578063e985e9c5146106d4578063eb8ae530146106e7578063ed70554d146106fa578063f242432a1461071a578063f2fde38b1461072d578063fd0cd0d91461074057600080fd5b8063c93ab3fd14610652578063cf40882314610665578063d8c9921a14610678578063d9a50c121461068b578063da8c229e1461069e578063e0dba60f146106c157600080fd5b8063a22cb46511610120578063a22cb465146105e0578063a4014982146105f3578063adf4960a14610606578063b6bcad2614610619578063c475abff1461062c578063c658e0861461063f57600080fd5b80636352211e146105635780636e5d6ad214610576578063715018a6146105a15780638b4dfa75146105a95780638cf8b41e146105bc5780638da5cb5b146105cf57600080fd5b80631f4e15041161020b5780633f15457f116101c45780633f15457f146104bb578063402906fc146104e257806341415eab1461050a5780634e1273f41461051d578063530954671461053d5780635d3590d51461055057600080fd5b80631f4e15041461043557806320c38e2b1461044857806324c1af441461045b5780632b20e3971461046e5780632eb2c2d61461049557806333c69ea9146104a857600080fd5b80630e4cd7251161025d5780630e4cd725146103aa5780630e89341c146103bd57806314ab9038146103d0578063150b7a02146103e35780631534e1771461040f5780631896f70a1461042257600080fd5b8062fdd58e146102a45780630178fe3f146102ca57806301ffc9a71461031057806306fdde0314610333578063081812fc1461036a578063095ea7b314610395575b600080fd5b6102b76102b236600461443e565b610753565b6040519081526020015b60405180910390f35b6102dd6102d836600461446a565b610800565b604080516001600160a01b03909416845263ffffffff90921660208401526001600160401b0316908201526060016102c1565b61032361031e366004614499565b610830565b60405190151581526020016102c1565b61035d6040518060400160405280600b81526020016a2730b6b2abb930b83832b960a91b81525081565b6040516102c19190614506565b61037d61037836600461446a565b610870565b6040516001600160a01b0390911681526020016102c1565b6103a86103a336600461443e565b6108b5565b005b6103236103b8366004614519565b6108fb565b61035d6103cb36600461446a565b610975565b6103a86103de366004614565565b6109e7565b6103f66103f13660046145d9565b610ae1565b6040516001600160e01b031990911681526020016102c1565b6103a861041d36600461464b565b610cc1565b6103a8610430366004614519565b610ceb565b60075461037d906001600160a01b031681565b61035d61045636600461446a565b610da1565b6102b7610469366004614741565b610e3b565b61037d7f000000000000000000000000000000000000000000000000000000000000000081565b6103a86104a336600461486c565b611021565b6103a86104b6366004614919565b611259565b61037d7f000000000000000000000000000000000000000000000000000000000000000081565b6104f56104f0366004614971565b61142a565b60405163ffffffff90911681526020016102c1565b610323610518366004614519565b6114c7565b61053061052b366004614994565b611500565b6040516102c19190614a92565b60055461037d906001600160a01b031681565b6103a861055e366004614aa5565b611621565b61037d61057136600461446a565b6116a2565b610589610584366004614ae6565b6116ad565b6040516001600160401b0390911681526020016102c1565b6103a86117e0565b6103a86105b7366004614b1b565b6117f4565b6105896105ca366004614b5d565b61191a565b6000546001600160a01b031661037d565b6103a86105ee366004614be5565b611c96565b6102b7610601366004614c13565b611d6c565b610323610614366004614c93565b611ead565b6103a861062736600461464b565b611ed2565b6102b761063a366004614cb6565b61212a565b6102b761064d366004614cd8565b612394565b6103a8610660366004614d4a565b61255c565b6103a8610673366004614db5565b6126af565b6103a8610686366004614ded565b612849565b610323610699366004614cb6565b612912565b6103236106ac36600461464b565b60046020526000908152604090205460ff1681565b6103a86106cf366004614be5565b6129f1565b6103236106e2366004614e1b565b612a59565b6103a86106f5366004614e49565b612a87565b6102b761070836600461446a565b60016020526000908152604090205481565b6103a8610728366004614eb0565b612e2b565b6103a861073b36600461464b565b612ed8565b61032361074e36600461446a565b612f4e565b60006001600160a01b0383166107c45760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b60006107cf836116a2565b9050836001600160a01b0316816001600160a01b0316036107f45760019150506107fa565b60009150505b92915050565b60008181526001602052604090205460a081901c60c082901c610824838383613026565b90959094509092509050565b60006001600160e01b03198216631b05885b60e31b148061086157506001600160e01b03198216630a85bd0160e11b145b806107fa57506107fa8261305c565b60008061087c836116a2565b90506001600160a01b0381166108955750600092915050565b6000838152600360205260409020546001600160a01b03165b9392505050565b60006108c082610800565b50915050603f1960408216016108ec5760405163a2a7201360e01b8152600481018390526024016107bb565b6108f683836130ac565b505050565b600080808061090986610800565b925092509250846001600160a01b0316836001600160a01b0316148061093457506109348386612a59565b8061095857506001600160a01b03851661094d87610870565b6001600160a01b0316145b801561096b575061096982826131bc565b155b9695505050505050565b6005546040516303a24d0760e21b8152600481018390526060916001600160a01b031690630e89341c90602401600060405180830381865afa1580156109bf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107fa9190810190614f18565b816109f281336114c7565b610a1357803360405163168ab55d60e31b81526004016107bb929190614f8f565b8260106000610a2183610800565b5091505063ffffffff8282161615610a4f5760405163a2a7201360e01b8152600481018490526024016107bb565b604051630295720760e31b8152600481018790526001600160401b03861660248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906314ab9038906044015b600060405180830381600087803b158015610ac157600080fd5b505af1158015610ad5573d6000803e3d6000fd5b50505050505050505050565b6000336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b2c5760405163032634a760e31b815260040160405180910390fd5b6000808080610b3d86880188614fa6565b83516020850120939750919550935091508890808214610b7a576040516331970f3360e21b815260048101829052602481018390526044016107bb565b604051630a3b53db60e21b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906328ed4f6c90610bc89085903090600401614f8f565b600060405180830381600087803b158015610be257600080fd5b505af1158015610bf6573d6000803e3d6000fd5b5050604051636b727d4360e11b8152600481018d9052600092506276a70091506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d6e4fa8690602401602060405180830381865afa158015610c67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8b919061500d565b610c95919061503c565b9050610ca887878761ffff1684886131ec565b50630a85bd0160e11b9c9b505050505050505050505050565b610cc96132fd565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b81610cf681336114c7565b610d1757803360405163168ab55d60e31b81526004016107bb929190614f8f565b8260086000610d2583610800565b5091505063ffffffff8282161615610d535760405163a2a7201360e01b8152600481018490526024016107bb565b604051630c4b7b8560e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631896f70a90610aa79089908990600401614f8f565b60066020526000908152604090208054610dba90615063565b80601f0160208091040260200160405190810160405280929190818152602001828054610de690615063565b8015610e335780601f10610e0857610100808354040283529160200191610e33565b820191906000526020600020905b815481529060010190602001808311610e1657829003601f168201915b505050505081565b600087610e4881336114c7565b610e6957803360405163168ab55d60e31b81526004016107bb929190614f8f565b87516020890120610e7a8a82613357565b9250610e868a84613383565b610e9083866134c1565b610e9b8a848b6134f4565b50610ea88a8487876135c1565b9350610eb383613607565b610f68576040516305ef2c7f60e41b8152600481018b9052602481018290523060448201526001600160a01b0388811660648301526001600160401b03881660848301527f00000000000000000000000000000000000000000000000000000000000000001690635ef2c7f09060a401600060405180830381600087803b158015610f3d57600080fd5b505af1158015610f51573d6000803e3d6000fd5b50505050610f638a848b8b89896136c0565b611014565b6040516305ef2c7f60e41b8152600481018b9052602481018290523060448201526001600160a01b0388811660648301526001600160401b03881660848301527f00000000000000000000000000000000000000000000000000000000000000001690635ef2c7f09060a401600060405180830381600087803b158015610fee57600080fd5b505af1158015611002573d6000803e3d6000fd5b505050506110148a848b8b89896136f7565b5050979650505050505050565b81518351146110835760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016107bb565b6001600160a01b0384166110a95760405162461bcd60e51b81526004016107bb9061509d565b6001600160a01b0385163314806110c557506110c58533612a59565b61112c5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016107bb565b60005b83518110156111ec57600084828151811061114c5761114c6150e2565b60200260200101519050600084838151811061116a5761116a6150e2565b60200260200101519050600080600061118285610800565b9250925092506111938583836137bb565b8360011480156111b457508a6001600160a01b0316836001600160a01b0316145b6111d05760405162461bcd60e51b81526004016107bb906150f8565b6111dc858b8484613864565b505050505080600101905061112f565b50836001600160a01b0316856001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161123c929190615142565b60405180910390a46112523386868686866138a6565b5050505050565b60006112658585613357565b905061127181846134c1565b6000808061127e84610800565b919450925090506001600160a01b038316158061132d57506040516302571be360e01b81526004810185905230906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906302571be390602401602060405180830381865afa1580156112fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113219190615170565b6001600160a01b031614155b1561134b57604051635374b59960e01b815260040160405180910390fd5b6000806113578a610800565b90935091508a90506113935761136d86336114c7565b61138e57853360405163168ab55d60e31b81526004016107bb929190614f8f565b6113be565b61139d8a336114c7565b6113be57893360405163168ab55d60e31b81526004016107bb929190614f8f565b6113c9868984613a01565b6113d4878483613a3c565b9650620100008416158015906113f857508363ffffffff1688851763ffffffff1614155b156114195760405163a2a7201360e01b8152600481018790526024016107bb565b96831796610ad586868a868b613a82565b60008261143781336114c7565b61145857803360405163168ab55d60e31b81526004016107bb929190614f8f565b836002600061146683610800565b5091505063ffffffff82821616156114945760405163a2a7201360e01b8152600481018490526024016107bb565b600080806114a18a610800565b9250925092506114ba8a84848c61ffff16178485613a82565b5098975050505050505050565b60008080806114d586610800565b925092509250846001600160a01b0316836001600160a01b0316148061095857506109588386612a59565b606081518351146115655760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016107bb565b600083516001600160401b0381111561158057611580614668565b6040519080825280602002602001820160405280156115a9578160200160208202803683370190505b50905060005b8451811015611619576115f48582815181106115cd576115cd6150e2565b60200260200101518583815181106115e7576115e76150e2565b6020026020010151610753565b828281518110611606576116066150e2565b60209081029190910101526001016115af565b509392505050565b6116296132fd565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af1158015611678573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169c919061518d565b50505050565b60006107fa82613b29565b6000806116ba8585613357565b90506116c581613607565b6116e257604051635374b59960e01b815260040160405180910390fd5b60006116ee86336108fb565b905080158015611705575061170382336114c7565b155b1561172757813360405163168ab55d60e31b81526004016107bb929190614f8f565b6000808061173485610800565b9250925092508315801561174b5750620400008216155b1561176c5760405163a2a7201360e01b8152600481018690526024016107bb565b60006117778a610800565b92505050611786888383613a3c565b97506117948685858b613b3f565b6040516001600160401b038916815286907ff675815a0817338f93a7da433f6bd5f5542f1029b11b455191ac96c7f6a9b1329060200160405180910390a2509598975050505050505050565b6117e86132fd565b6117f26000613b55565b565b61180c6000805160206156cd83398151915284613357565b61181681336114c7565b61183757803360405163168ab55d60e31b81526004016107bb929190614f8f565b306001600160a01b0384160361186b57604051632ca49b0d60e11b81526001600160a01b03841660048201526024016107bb565b61188c6118866000805160206156cd83398151915286613357565b83613ba5565b604051632142170760e11b81523060048201526001600160a01b038481166024830152604482018690527f000000000000000000000000000000000000000000000000000000000000000016906342842e0e90606401600060405180830381600087803b1580156118fc57600080fd5b505af1158015611910573d6000803e3d6000fd5b5050505050505050565b600080868660405161192d9291906151aa565b6040519081900381206331a9108f60e11b82526004820181905291506000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636352211e90602401602060405180830381865afa15801561199d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119c19190615170565b90506001600160a01b0381163314801590611a69575060405163e985e9c560e01b81526001600160a01b0382811660048301523360248301527f0000000000000000000000000000000000000000000000000000000000000000169063e985e9c590604401602060405180830381865afa158015611a43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a67919061518d565b155b15611aa257611a866000805160206156cd83398151915283613357565b3360405163168ab55d60e31b81526004016107bb929190614f8f565b6040516323b872dd60e01b81526001600160a01b038281166004830152306024830152604482018490527f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90606401600060405180830381600087803b158015611b1257600080fd5b505af1158015611b26573d6000803e3d6000fd5b5050604051630a3b53db60e21b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506328ed4f6c9150611b789085903090600401614f8f565b600060405180830381600087803b158015611b9257600080fd5b505af1158015611ba6573d6000803e3d6000fd5b5050604051636b727d4360e11b8152600481018590526276a70092507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316915063d6e4fa8690602401602060405180830381865afa158015611c14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c38919061500d565b611c42919061503c565b9250611c8b88888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508a9250505061ffff881686886131ec565b505095945050505050565b6001600160a01b0382163303611d005760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107bb565b3360008181526002602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081526004602052604081205460ff16611d9b5760405162461bcd60e51b81526004016107bb906151ba565b60008787604051611dad9291906151aa565b604051908190038120633f2891eb60e21b8252600482018190523060248301526044820187905291507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063fca247ac906064016020604051808303816000875af1158015611e29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4d919061500d565b9150611ea288888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508a9250505061ffff8616611e9c6276a7008761503c565b886131ec565b509695505050505050565b600080611eb984610800565b50841663ffffffff908116908516149250505092915050565b611eda6132fd565b6007546001600160a01b031615611ffa5760075460405163a22cb46560e01b81526001600160a01b039182166004820152600060248201527f00000000000000000000000000000000000000000000000000000000000000009091169063a22cb46590604401600060405180830381600087803b158015611f5a57600080fd5b505af1158015611f6e573d6000803e3d6000fd5b505060075460405163a22cb46560e01b81526001600160a01b039182166004820152600060248201527f0000000000000000000000000000000000000000000000000000000000000000909116925063a22cb4659150604401600060405180830381600087803b158015611fe157600080fd5b505af1158015611ff5573d6000803e3d6000fd5b505050505b600780546001600160a01b0319166001600160a01b038316908117909155156121275760075460405163a22cb46560e01b81526001600160a01b039182166004820152600160248201527f00000000000000000000000000000000000000000000000000000000000000009091169063a22cb46590604401600060405180830381600087803b15801561208c57600080fd5b505af11580156120a0573d6000803e3d6000fd5b505060075460405163a22cb46560e01b81526001600160a01b039182166004820152600160248201527f0000000000000000000000000000000000000000000000000000000000000000909116925063a22cb4659150604401600060405180830381600087803b15801561211357600080fd5b505af1158015611252573d6000803e3d6000fd5b50565b3360009081526004602052604081205460ff166121595760405162461bcd60e51b81526004016107bb906151ba565b60006121736000805160206156cd83398151915285613357565b60405163c475abff60e01b815260048101869052602481018590529091506000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c475abff906044016020604051808303816000875af11580156121e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061220b919061500d565b6040516331a9108f60e11b8152600481018790529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636352211e90602401602060405180830381865afa92505050801561228f575060408051601f3d908101601f1916820190925261228c91810190615170565b60015b61229c5791506107fa9050565b6001600160a01b0381163014158061234657506040516302571be360e01b81526004810184905230906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906302571be390602401602060405180830381865afa158015612316573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061233a9190615170565b6001600160a01b031614155b15612355575091506107fa9050565b5060006123656276a7008361503c565b60008481526001602052604090205490915060a081901c61238885838386613b3f565b50919695505050505050565b6000866123a181336114c7565b6123c257803360405163168ab55d60e31b81526004016107bb929190614f8f565b600087876040516123d49291906151aa565b604051809103902090506123e88982613357565b92506123f48984613383565b6123fe83866134c1565b60006124418a858b8b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506134f492505050565b905061244f8a8588886135c1565b945061245a84613607565b612509576040516306ab592360e01b8152600481018b9052602481018390523060448201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906306ab5923906064016020604051808303816000875af11580156124d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124f6919061500d565b506125048482898989613c95565b61254f565b61254f8a858b8b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508d92508c91508b90506136f7565b5050509695505050505050565b60006125a2600086868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509293925050613cd79050565b6007549091506001600160a01b03166125ce5760405163093075b560e21b815260040160405180910390fd5b6125d881336114c7565b6125f957803360405163168ab55d60e31b81526004016107bb929190614f8f565b6000808061260684610800565b91945092509050600061261885610870565b905061262385613d96565b600760009054906101000a90046001600160a01b03166001600160a01b0316639198c2768a8a878787878e8e6040518963ffffffff1660e01b815260040161267298979695949392919061522b565b600060405180830381600087803b15801561268c57600080fd5b505af11580156126a0573d6000803e3d6000fd5b50505050505050505050505050565b836126ba81336114c7565b6126db57803360405163168ab55d60e31b81526004016107bb929190614f8f565b84601c60006126e983610800565b5091505063ffffffff82821616156127175760405163a2a7201360e01b8152600481018490526024016107bb565b60405163cf40882360e01b8152600481018990523060248201526001600160a01b0387811660448301526001600160401b03871660648301527f0000000000000000000000000000000000000000000000000000000000000000169063cf40882390608401600060405180830381600087803b15801561279657600080fd5b505af11580156127aa573d6000803e3d6000fd5b5050506001600160a01b03881690506128115760006127c889610800565b509150506201ffff196202000082160161280057604051632ca49b0d60e11b81526001600160a01b03891660048201526024016107bb565b61280b896000613ba5565b50611910565b600061281c896116a2565b905061283e81898b60001c600160405180602001604052806000815250613e36565b505050505050505050565b6128538383613357565b61285d81336114c7565b61287e57803360405163168ab55d60e31b81526004016107bb929190614f8f565b7f6c32148f748aba23997146d7fe89e962e3cc30271290fb96f5f4337756c03b5284016128be5760405163615a470360e01b815260040160405180910390fd5b6001600160a01b03821615806128dc57506001600160a01b03821630145b1561290557604051632ca49b0d60e11b81526001600160a01b03831660048201526024016107bb565b61169c6118868585613357565b60008061291f8484613357565b9050600061292c82613607565b90506000805160206156cd833981519152851461294c5791506107fa9050565b6040516331a9108f60e11b8152600481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636352211e90602401602060405180830381865afa9250505080156129cd575060408051601f3d908101601f191682019092526129ca91810190615170565b60015b6129dc576000925050506107fa565b6001600160a01b0316301492506107fa915050565b6129f96132fd565b6001600160a01b038216600081815260046020908152604091829020805460ff191685151590811790915591519182527f4c97694570a07277810af7e5669ffd5f6a2d6b74b6e9a274b8b870fd5114cf8791015b60405180910390a25050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b600080612ace600087878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509293925050613f189050565b915091506000612b178288888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509293925050613cd79050565b90506000612b258285613357565b6000818152600660205260409020909150612b41888a836152db565b507f6c32148f748aba23997146d7fe89e962e3cc30271290fb96f5f4337756c03b528201612b825760405163615a470360e01b815260040160405180910390fd5b6040516302571be360e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906302571be390602401602060405180830381865afa158015612bea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c0e9190615170565b90506001600160a01b0381163314801590612cb6575060405163e985e9c560e01b81526001600160a01b0382811660048301523360248301527f0000000000000000000000000000000000000000000000000000000000000000169063e985e9c590604401602060405180830381865afa158015612c90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cb4919061518d565b155b15612cd857813360405163168ab55d60e31b81526004016107bb929190614f8f565b6001600160a01b03861615612d6857604051630c4b7b8560e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631896f70a90612d359085908a90600401614f8f565b600060405180830381600087803b158015612d4f57600080fd5b505af1158015612d63573d6000803e3d6000fd5b505050505b604051635b0fc9c360e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690635b0fc9c390612db69085903090600401614f8f565b600060405180830381600087803b158015612dd057600080fd5b505af1158015612de4573d6000803e3d6000fd5b5050505061283e828a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052508d93509150819050613c95565b6001600160a01b038416612e515760405162461bcd60e51b81526004016107bb9061509d565b6001600160a01b038516331480612e6d5750612e6d8533612a59565b612ecb5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016107bb565b6112528585858585613e36565b612ee06132fd565b6001600160a01b038116612f455760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107bb565b61212781613b55565b60008181526006602052604081208054829190612f6a90615063565b80601f0160208091040260200160405190810160405280929190818152602001828054612f9690615063565b8015612fe35780601f10612fb857610100808354040283529160200191612fe3565b820191906000526020600020905b815481529060010190602001808311612fc657829003601f168201915b505050505090508051600003612ffc5750600092915050565b6000806130098382613f18565b9092509050600061301a8483613cd7565b905061096b8184612912565b60008042836001600160401b031610156130535761ffff196201000085160161304e57600094505b600093505b50929391925050565b60006001600160e01b03198216636cdb3d1360e11b148061308d57506001600160e01b031982166303a24d0760e21b145b806107fa57506301ffc9a760e01b6001600160e01b03198316146107fa565b60006130b7826116a2565b9050806001600160a01b0316836001600160a01b0316036131245760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107bb565b336001600160a01b038216148061314057506131408133612a59565b6131b25760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016107bb565b6108f68383613fcf565b6000620200008381161480156108ae5750426131db6276a7008461539a565b6001600160401b0316109392505050565b84516020860120600061320d6000805160206156cd83398151915283613357565b9050600061323688604051806040016040528060058152602001626cae8d60e31b81525061403d565b600083815260066020526040902090915061325182826153ba565b50613264828289620300008a1789613c95565b6001600160a01b0384161561191057604051630c4b7b8560e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631896f70a906132c19085908890600401614f8f565b600060405180830381600087803b1580156132db57600080fd5b505af11580156132ef573d6000803e3d6000fd5b505050505050505050505050565b6000546001600160a01b031633146117f25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107bb565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6000808061339084610800565b91945092509050426001600160401b0382161080801561345357506001600160a01b038416158061345357506040516302571be360e01b8152600481018690526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906302571be390602401602060405180830381865afa158015613424573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134489190615170565b6001600160a01b0316145b1561349257600061346387610800565b50915050602081161561348c5760405163a2a7201360e01b8152600481018790526024016107bb565b506134b9565b620100008316156134b95760405163a2a7201360e01b8152600481018690526024016107bb565b505050505050565b63fffdffff81811763ffffffff16146134f05760405163a2a7201360e01b8152600481018390526024016107bb565b5050565b6060600061359d8360066000888152602001908152602001600020805461351a90615063565b80601f016020809104026020016040519081016040528092919081815260200182805461354690615063565b80156135935780601f1061356857610100808354040283529160200191613593565b820191906000526020600020905b81548152906001019060200180831161357657829003601f168201915b505050505061403d565b60008581526006602052604090209091506135b882826153ba565b50949350505050565b6000806135cd85610800565b925050506000806135e08860001c610800565b92509250506135f0878784613a01565b6135fb858483613a3c565b98975050505050505050565b600080613613836116a2565b6001600160a01b0316141580156107fa57506040516302571be360e01b81526004810183905230906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906302571be390602401602060405180830381865afa15801561368c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136b09190615170565b6001600160a01b03161492915050565b600086815260066020526040812080546136df91879161351a90615063565b90506136ee8682868686613c95565b50505050505050565b6000808061370488610800565b925092509250600061372e88600660008d8152602001908152602001600020805461351a90615063565b60008a815260066020526040902080549192509061374b90615063565b905060000361376e57600089815260066020526040902061376c82826153ba565b505b61377d89858886178589613a82565b6001600160a01b03871661379b57613796896000613ba5565b610ad5565b610ad584888b60001c600160405180602001604052806000815250613e36565b6201ffff19620200008316016137db576137d86276a7008261539a565b90505b42816001600160401b03161015613814576201000082161561380f5760405162461bcd60e51b81526004016107bb906150f8565b613839565b60048216156138395760405163a2a7201360e01b8152600481018490526024016107bb565b604082166000036108f6575050600090815260036020526040902080546001600160a01b0319169055565b60c0816001600160401b0316901b60a08363ffffffff16901b846001600160a01b03161717600160008681526020019081526020016000208190555050505050565b6001600160a01b0384163b156134b95760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906138ea9089908990889088908890600401615479565b6020604051808303816000875af1925050508015613925575060408051601f3d908101601f19168201909252613922918101906154cb565b60015b6139d1576139316154e8565b806308c379a00361396a5750613945615504565b80613950575061396c565b8060405162461bcd60e51b81526004016107bb9190614506565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016107bb565b6001600160e01b0319811663bc197c8160e01b146136ee5760405162461bcd60e51b81526004016107bb9061558d565b63ffff00008216158015906001831615908290613a1b5750805b156112525760405163a2a7201360e01b8152600481018690526024016107bb565b6000816001600160401b0316846001600160401b03161115613a5c578193505b826001600160401b0316846001600160401b03161015613a7a578293505b509192915050565b613a8e85858584613b3f565b60405163ffffffff8416815285907f39873f00c80f4f94b7bd1594aebcf650f003545b74824d57ddf4939e3ff3a34b9060200160405180910390a2816001600160401b0316816001600160401b03161115611252576040516001600160401b038216815285907ff675815a0817338f93a7da433f6bd5f5542f1029b11b455191ac96c7f6a9b132906020015b60405180910390a25050505050565b600080613b3583610800565b5090949350505050565b613b4984836140b4565b61169c84848484613864565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b613bb0826001611ead565b15613bd15760405163a2a7201360e01b8152600481018390526024016107bb565b613bda82613d96565b604051635b0fc9c360e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690635b0fc9c390613c289085908590600401614f8f565b600060405180830381600087803b158015613c4257600080fd5b505af1158015613c56573d6000803e3d6000fd5b50506040516001600160a01b03841681528492507fee2ba1195c65bcf218a83d874335c6bf9d9067b4c672f3c3bf16cf40de7586c49150602001612a4d565b613ca1858484846140ed565b847f8ce7013e8abebc55c3890a68f5a27c67c3f7efa64e584de5fb22363c606fd34085858585604051613b1a94939291906155d5565b6000806000613ce68585613f18565b909250905081613d585760018551613cfe919061561c565b8414613d4c5760405162461bcd60e51b815260206004820152601d60248201527f6e616d65686173683a204a756e6b20617420656e64206f66206e616d6500000060448201526064016107bb565b50600091506107fa9050565b613d628582613cd7565b6040805160208101929092528101839052606001604051602081830303815290604052805190602001209250505092915050565b60008181526001602052604090205460a081901c60c082901c613dba838383613026565b600086815260036020526040812080546001600160a01b0319169055909350613de7915085908484613864565b60408051858152600160208201526000916001600160a01b0386169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a450505050565b6000806000613e4486610800565b925092509250613e558683836137bb565b846001148015613e765750876001600160a01b0316836001600160a01b0316145b613e925760405162461bcd60e51b81526004016107bb906150f8565b866001600160a01b0316836001600160a01b031603613eb357505050611252565b613ebf86888484613864565b60408051878152602081018790526001600160a01b03808a1692908b169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611910338989898989614161565b60008083518310613f6b5760405162461bcd60e51b815260206004820152601e60248201527f726561644c6162656c3a20496e646578206f7574206f6620626f756e6473000060448201526064016107bb565b6000848481518110613f7f57613f7f6150e2565b016020015160f81c90508015613fab57613fa485613f9e86600161562f565b8361421c565b9250613fb0565b600092505b613fba818561562f565b613fc590600161562f565b9150509250929050565b600081815260036020526040902080546001600160a01b0319166001600160a01b0384169081179091558190614004826116a2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b606060018351101561406257604051631406d65b60e11b815260040160405180910390fd5b60ff83511115614087578260405163e3ba295f60e01b81526004016107bb9190614506565b8251838360405160200161409d93929190615642565b604051602081830303815290604052905092915050565b61ffff8116158015906140cc57506201000181811614155b156134f05760405163a2a7201360e01b8152600481018390526024016107bb565b6140f784836140b4565b6000848152600160205260409020546001600160a01b038116156141555761411e85613d96565b6040516000815285907fee2ba1195c65bcf218a83d874335c6bf9d9067b4c672f3c3bf16cf40de7586c49060200160405180910390a25b61125285858585614240565b6001600160a01b0384163b156134b95760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906141a59089908990889088908890600401615687565b6020604051808303816000875af19250505080156141e0575060408051601f3d908101601f191682019092526141dd918101906154cb565b60015b6141ec576139316154e8565b6001600160e01b0319811663f23a6e6160e01b146136ee5760405162461bcd60e51b81526004016107bb9061558d565b825160009061422b838561562f565b111561423657600080fd5b5091016020012090565b836000808061424e84610800565b9194509250905063ffff000082166001600160401b038087169083161115614274578195505b42826001600160401b03161061428957958617955b6001600160a01b038416156142e05760405162461bcd60e51b815260206004820152601f60248201527f455243313135353a206d696e74206f66206578697374696e6720746f6b656e0060448201526064016107bb565b6001600160a01b0388166143405760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016107bb565b306001600160a01b038916036143b55760405162461bcd60e51b815260206004820152603460248201527f455243313135353a206e65774f776e65722063616e6e6f74206265207468652060448201527313985b5955dc985c1c195c8818dbdb9d1c9858dd60621b60648201526084016107bb565b6143c185898989613864565b60408051868152600160208201526001600160a01b038a169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461283e3360008a88600160405180602001604052806000815250614161565b6001600160a01b038116811461212757600080fd5b6000806040838503121561445157600080fd5b823561445c81614429565b946020939093013593505050565b60006020828403121561447c57600080fd5b5035919050565b6001600160e01b03198116811461212757600080fd5b6000602082840312156144ab57600080fd5b81356108ae81614483565b60005b838110156144d15781810151838201526020016144b9565b50506000910152565b600081518084526144f28160208601602086016144b6565b601f01601f19169290920160200192915050565b6020815260006108ae60208301846144da565b6000806040838503121561452c57600080fd5b82359150602083013561453e81614429565b809150509250929050565b80356001600160401b038116811461456057600080fd5b919050565b6000806040838503121561457857600080fd5b8235915061458860208401614549565b90509250929050565b60008083601f8401126145a357600080fd5b5081356001600160401b038111156145ba57600080fd5b6020830191508360208285010111156145d257600080fd5b9250929050565b6000806000806000608086880312156145f157600080fd5b85356145fc81614429565b9450602086013561460c81614429565b93506040860135925060608601356001600160401b0381111561462e57600080fd5b61463a88828901614591565b969995985093965092949392505050565b60006020828403121561465d57600080fd5b81356108ae81614429565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156146a3576146a3614668565b6040525050565b60006001600160401b038211156146c3576146c3614668565b50601f01601f191660200190565b600082601f8301126146e257600080fd5b81356146ed816146aa565b6040516146fa828261467e565b82815285602084870101111561470f57600080fd5b82602086016020830137600092810160200192909252509392505050565b803563ffffffff8116811461456057600080fd5b600080600080600080600060e0888a03121561475c57600080fd5b8735965060208801356001600160401b0381111561477957600080fd5b6147858a828b016146d1565b965050604088013561479681614429565b945060608801356147a681614429565b93506147b460808901614549565b92506147c260a0890161472d565b91506147d060c08901614549565b905092959891949750929550565b60006001600160401b038211156147f7576147f7614668565b5060051b60200190565b600082601f83011261481257600080fd5b8135602061481f826147de565b60405161482c828261467e565b80915083815260208101915060208460051b87010193508684111561485057600080fd5b602086015b84811015611ea25780358352918301918301614855565b600080600080600060a0868803121561488457600080fd5b853561488f81614429565b9450602086013561489f81614429565b935060408601356001600160401b03808211156148bb57600080fd5b6148c789838a01614801565b945060608801359150808211156148dd57600080fd5b6148e989838a01614801565b935060808801359150808211156148ff57600080fd5b5061490c888289016146d1565b9150509295509295909350565b6000806000806080858703121561492f57600080fd5b84359350602085013592506149466040860161472d565b915061495460608601614549565b905092959194509250565b803561ffff8116811461456057600080fd5b6000806040838503121561498457600080fd5b823591506145886020840161495f565b600080604083850312156149a757600080fd5b82356001600160401b03808211156149be57600080fd5b818501915085601f8301126149d257600080fd5b813560206149df826147de565b6040516149ec828261467e565b83815260059390931b8501820192828101915089841115614a0c57600080fd5b948201945b83861015614a33578535614a2481614429565b82529482019490820190614a11565b96505086013592505080821115614a4957600080fd5b50613fc585828601614801565b60008151808452602080850194506020840160005b83811015614a8757815187529582019590820190600101614a6b565b509495945050505050565b6020815260006108ae6020830184614a56565b600080600060608486031215614aba57600080fd5b8335614ac581614429565b92506020840135614ad581614429565b929592945050506040919091013590565b600080600060608486031215614afb57600080fd5b8335925060208401359150614b1260408501614549565b90509250925092565b600080600060608486031215614b3057600080fd5b833592506020840135614b4281614429565b91506040840135614b5281614429565b809150509250925092565b600080600080600060808688031215614b7557600080fd5b85356001600160401b03811115614b8b57600080fd5b614b9788828901614591565b9096509450506020860135614bab81614429565b9250614bb96040870161495f565b91506060860135614bc981614429565b809150509295509295909350565b801515811461212757600080fd5b60008060408385031215614bf857600080fd5b8235614c0381614429565b9150602083013561453e81614bd7565b60008060008060008060a08789031215614c2c57600080fd5b86356001600160401b03811115614c4257600080fd5b614c4e89828a01614591565b9097509550506020870135614c6281614429565b9350604087013592506060870135614c7981614429565b9150614c876080880161495f565b90509295509295509295565b60008060408385031215614ca657600080fd5b823591506145886020840161472d565b60008060408385031215614cc957600080fd5b50508035926020909101359150565b60008060008060008060a08789031215614cf157600080fd5b8635955060208701356001600160401b03811115614d0e57600080fd5b614d1a89828a01614591565b9096509450506040870135614d2e81614429565b9250614d3c6060880161472d565b9150614c8760808801614549565b60008060008060408587031215614d6057600080fd5b84356001600160401b0380821115614d7757600080fd5b614d8388838901614591565b90965094506020870135915080821115614d9c57600080fd5b50614da987828801614591565b95989497509550505050565b60008060008060808587031215614dcb57600080fd5b843593506020850135614ddd81614429565b9250604085013561494681614429565b600080600060608486031215614e0257600080fd5b83359250602084013591506040840135614b5281614429565b60008060408385031215614e2e57600080fd5b8235614e3981614429565b9150602083013561453e81614429565b60008060008060608587031215614e5f57600080fd5b84356001600160401b03811115614e7557600080fd5b614e8187828801614591565b9095509350506020850135614e9581614429565b91506040850135614ea581614429565b939692955090935050565b600080600080600060a08688031215614ec857600080fd5b8535614ed381614429565b94506020860135614ee381614429565b9350604086013592506060860135915060808601356001600160401b03811115614f0c57600080fd5b61490c888289016146d1565b600060208284031215614f2a57600080fd5b81516001600160401b03811115614f4057600080fd5b8201601f81018413614f5157600080fd5b8051614f5c816146aa565b604051614f69828261467e565b828152866020848601011115614f7e57600080fd5b61096b8360208301602087016144b6565b9182526001600160a01b0316602082015260400190565b60008060008060808587031215614fbc57600080fd5b84356001600160401b03811115614fd257600080fd5b614fde878288016146d1565b9450506020850135614fef81614429565b9250614ffd6040860161495f565b91506060850135614ea581614429565b60006020828403121561501f57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6001600160401b0381811683821601908082111561505c5761505c615026565b5092915050565b600181811c9082168061507757607f821691505b60208210810361509757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006151556040830185614a56565b82810360208401526151678185614a56565b95945050505050565b60006020828403121561518257600080fd5b81516108ae81614429565b60006020828403121561519f57600080fd5b81516108ae81614bd7565b8183823760009101908152919050565b60208082526028908201527f436f6e74726f6c6c61626c653a2043616c6c6572206973206e6f74206120636f604082015267373a3937b63632b960c11b606082015260800190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60c08152600061523f60c083018a8c615202565b6001600160a01b03898116602085015263ffffffff891660408501526001600160401b03881660608501528616608084015282810360a0840152615284818587615202565b9b9a5050505050505050505050565b601f8211156108f6576000816000526020600020601f850160051c810160208610156152bc5750805b601f850160051c820191505b818110156134b9578281556001016152c8565b6001600160401b038311156152f2576152f2614668565b615306836153008354615063565b83615293565b6000601f84116001811461533a57600085156153225750838201355b600019600387901b1c1916600186901b178355611252565b600083815260209020601f19861690835b8281101561536b578685013582556020948501946001909201910161534b565b50868210156153885760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6001600160401b0382811682821603908082111561505c5761505c615026565b81516001600160401b038111156153d3576153d3614668565b6153e7816153e18454615063565b84615293565b602080601f83116001811461541c57600084156154045750858301515b600019600386901b1c1916600185901b1785556134b9565b600085815260208120601f198616915b8281101561544b5788860151825594840194600190910190840161542c565b50858210156154695787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b0386811682528516602082015260a0604082018190526000906154a590830186614a56565b82810360608401526154b78186614a56565b905082810360808401526135fb81856144da565b6000602082840312156154dd57600080fd5b81516108ae81614483565b600060033d11156155015760046000803e5060005160e01c5b90565b600060443d10156155125790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561554157505050505090565b82850191508151818111156155595750505050505090565b843d87010160208285010111156155735750505050505090565b6155826020828601018761467e565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6080815260006155e860808301876144da565b6001600160a01b039590951660208301525063ffffffff9290921660408301526001600160401b0316606090910152919050565b818103818111156107fa576107fa615026565b808201808211156107fa576107fa615026565b60ff60f81b8460f81b168152600083516156638160018501602088016144b6565b83519083019061567a8160018401602088016144b6565b0160010195945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906156c1908301846144da565b97965050505050505056fe93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4aea26469706673582212209b25a259ef8986d46a1bfe17671970399728db343863f016912d8beb240746b064736f6c63430008170033",WB=t=>t.length>1;class au extends si{constructor(...e){WB(e)?super(...e):super(V5,ac,e[0])}deploy(e,r,n,i){return super.deploy(e,r,n,i||{})}getDeployTransaction(e,r,n,i){return super.getDeployTransaction(e,r,n,i||{})}attach(e){return super.attach(e)}connect(e){return super.connect(e)}static createInterface(){return new t2(V5)}static connect(e,r){return new q2(e,V5,r)}}ct(au,"bytecode",ac),ct(au,"abi",V5);var cs={exports:{}},Nn={},pb={exports:{}},VB="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",JB=VB,QB=JB;function bb(){}function mb(){}mb.resetWarningCache=bb;var YB=function(){function t(n,i,u,a,o,s){if(s!==QB){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}t.isRequired=t;function e(){return t}var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:mb,resetWarningCache:bb};return r.PropTypes=r,r};pb.exports=YB();var yb=pb.exports,ds={exports:{}},rr={},hs={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;/*! +`)}static register(e,r){r||(r=e.locale)}}const nB="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo";let eu=null;function Ql(t){if(eu==null&&(eu=nB.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),t5.check(t)!=="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"))throw eu=null,new Error("BIP39 Wordlist for en (English) FAILED")}class iB extends t5{constructor(){super("en")}getWord(e){return Ql(this),eu[e]}getWordIndex(e){return Ql(this),eu.indexOf(e)}}const Jp=new iB;t5.register(Jp);const Yl={en:Jp},uB="hdnode/5.7.0",Ou=new r0(uB),aB=P0.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),oB=H1("Bitcoin seed"),i6=2147483648;function Qp(t){return(1<=256)throw new Error("Depth too large!");return Xl(L1([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",N0(this.depth),this.parentFingerprint,j1(N0(this.index),4),this.chainCode,this.privateKey!=null?L1(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new pt(Zn,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw new Error("invalid index - "+String(e));let r=this.path;r&&(r+="/"+(e&~i6));const n=new Uint8Array(37);if(e&i6){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set(k0(this.privateKey),1),r&&(r+="'")}else n.set(k0(this.publicKey));for(let y=24;y>=0;y-=8)n[33+(y>>3)]=e>>24-y&255;const i=k0(Su(V6.sha512,this.chainCode,n)),u=i.slice(0,32),a=i.slice(32);let o=null,s=null;this.privateKey?o=$5(P0.from(u).add(this.privateKey).mod(aB)):s=new vn(N0(u))._addPoint(this.publicKey);let c=r;const d=this.mnemonic;return d&&(c=Object.freeze({phrase:d.phrase,path:r,locale:d.locale||"en"})),new pt(Zn,o,s,this.fingerprint,$5(a),e,this.depth+1,c)}derivePath(e){const r=e.split("/");if(r.length===0||r[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+e);r[0]==="m"&&r.shift();let n=this;for(let i=0;i=i6)throw new Error("invalid path index - "+u);n=n._derive(i6+a)}else if(u.match(/^[0-9]+$/)){const a=parseInt(u);if(a>=i6)throw new Error("invalid path index - "+u);n=n._derive(a)}else throw new Error("invalid path component - "+u)}return n}static _fromSeed(e,r){const n=k0(e);if(n.length<16||n.length>64)throw new Error("invalid seed");const i=k0(Su(V6.sha512,oB,n));return new pt(Zn,$5(i.slice(0,32)),null,"0x00000000",$5(i.slice(32)),0,0,r)}static fromMnemonic(e,r,n){return n=q4(n),e=q8($8(e,n),n),pt._fromSeed(Yp(e,r),{phrase:e,path:"m",locale:n.locale})}static fromSeed(e){return pt._fromSeed(e,null)}static fromExtendedKey(e){const r=H6.decode(e);(r.length!==82||Xl(r.slice(0,78))!==e)&&Ou.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const n=r[4],i=N0(r.slice(5,9)),u=parseInt(N0(r.slice(9,13)).substring(2),16),a=N0(r.slice(13,45)),o=r.slice(45,78);switch(N0(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new pt(Zn,null,N0(o),i,a,u,n,null);case"0x0488ade4":case"0x04358394 ":if(o[0]!==0)break;return new pt(Zn,N0(o.slice(1)),null,i,a,u,n,null)}return Ou.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function Yp(t,e){e||(e="");const r=H1("mnemonic"+e,Sr.NFKD);return $4(H1(t,Sr.NFKD),r,2048,64,"sha512")}function $8(t,e){e=q4(e),Ou.checkNormalize();const r=e.split(t);if(r.length%3!==0)throw new Error("invalid mnemonic");const n=k0(new Uint8Array(Math.ceil(11*r.length/8)));let i=0;for(let c=0;c>3]|=1<<7-i%8),i++}const u=32*r.length/3,a=r.length/3,o=Qp(a);if((k0(gt(n.slice(0,u/8)))[0]&o)!==(n[n.length-1]&o))throw new Error("invalid checksum");return N0(n.slice(0,u/8))}function q8(t,e){if(e=q4(e),t=k0(t),t.length%4!==0||t.length<16||t.length>32)throw new Error("invalid entropy");const r=[0];let n=11;for(let a=0;a8?(r[r.length-1]<<=8,r[r.length-1]|=t[a],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[a]>>8-n,r.push(t[a]&sB(8-n)),n+=3);const i=t.length/4,u=k0(gt(t))[0]&Qp(i);return r[r.length-1]<<=i,r[r.length-1]|=u>>8-i,e.join(r.map(a=>e.getWord(a)))}function fB(t,e){try{return $8(t,e),!0}catch{}return!1}function lB(t){return(typeof t!="number"||t<0||t>=i6||t%1)&&Ou.throwArgumentError("invalid account index","index",t),`m/44'/60'/${t}'/0/0`}const cB=Object.freeze(Object.defineProperty({__proto__:null,HDNode:pt,defaultPath:Q6,entropyToMnemonic:q8,getAccountPath:lB,isValidMnemonic:fB,mnemonicToEntropy:$8,mnemonicToSeed:Yp},Symbol.toStringTag,{value:"Module"}));var Xp={exports:{}};(function(t,e){(function(r){function n(b){return parseInt(b)===b}function i(b){if(!n(b.length))return!1;for(var l=0;l255)return!1;return!0}function u(b,l){if(b.buffer&&ArrayBuffer.isView(b)&&b.name==="Uint8Array")return l&&(b.slice?b=b.slice():b=Array.prototype.slice.call(b)),b;if(Array.isArray(b)){if(!i(b))throw new Error("Array contains invalid value: "+b);return new Uint8Array(b)}if(n(b.length)&&i(b))return new Uint8Array(b);throw new Error("unsupported array-like object")}function a(b){return new Uint8Array(b)}function o(b,l,m,D,f){(D!=null||f!=null)&&(b.slice?b=b.slice(D,f):b=Array.prototype.slice.call(b,D,f)),l.set(b,m)}var s=function(){function b(m){var D=[],f=0;for(m=encodeURI(m);f191&&S<224?(D.push(String.fromCharCode((S&31)<<6|m[f+1]&63)),f+=2):(D.push(String.fromCharCode((S&15)<<12|(m[f+1]&63)<<6|m[f+2]&63)),f+=3)}return D.join("")}return{toBytes:b,fromBytes:l}}(),c=function(){function b(D){for(var f=[],S=0;S>4]+l[O&15])}return f.join("")}return{toBytes:b,fromBytes:m}}(),d={16:10,24:12,32:14},y=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],A=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],C=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],T=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],U=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],P=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],_=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],B=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],N=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],W=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],G=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],t0=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],Z=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],e0=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],o0=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function d0(b){for(var l=[],m=0;m>2,this._Ke[S][l%4]=f[l],this._Kd[b-S][l%4]=f[l];for(var O=0,$=D,H;$>16&255]<<24^A[H>>8&255]<<16^A[H&255]<<8^A[H>>24&255]^y[O]<<24,O+=1,D!=8)for(var l=1;l>8&255]<<8^A[H>>16&255]<<16^A[H>>24&255]<<24;for(var l=D/2+1;l>2,u0=$%4,this._Ke[n0][u0]=f[l],this._Kd[b-n0][u0]=f[l++],$++}for(var n0=1;n0>24&255]^Z[H>>16&255]^e0[H>>8&255]^o0[H&255]},c0.prototype.encrypt=function(b){if(b.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var l=this._Ke.length-1,m=[0,0,0,0],D=d0(b),f=0;f<4;f++)D[f]^=this._Ke[0][f];for(var S=1;S>24&255]^U[D[(f+1)%4]>>16&255]^P[D[(f+2)%4]>>8&255]^_[D[(f+3)%4]&255]^this._Ke[S][f];D=m.slice()}for(var O=a(16),$,f=0;f<4;f++)$=this._Ke[l][f],O[4*f]=(A[D[f]>>24&255]^$>>24)&255,O[4*f+1]=(A[D[(f+1)%4]>>16&255]^$>>16)&255,O[4*f+2]=(A[D[(f+2)%4]>>8&255]^$>>8)&255,O[4*f+3]=(A[D[(f+3)%4]&255]^$)&255;return O},c0.prototype.decrypt=function(b){if(b.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var l=this._Kd.length-1,m=[0,0,0,0],D=d0(b),f=0;f<4;f++)D[f]^=this._Kd[0][f];for(var S=1;S>24&255]^N[D[(f+3)%4]>>16&255]^W[D[(f+2)%4]>>8&255]^G[D[(f+1)%4]&255]^this._Kd[S][f];D=m.slice()}for(var O=a(16),$,f=0;f<4;f++)$=this._Kd[l][f],O[4*f]=(C[D[f]>>24&255]^$>>24)&255,O[4*f+1]=(C[D[(f+3)%4]>>16&255]^$>>16)&255,O[4*f+2]=(C[D[(f+2)%4]>>8&255]^$>>8)&255,O[4*f+3]=(C[D[(f+1)%4]&255]^$)&255;return O};var h0=function(b){if(!(this instanceof h0))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new c0(b)};h0.prototype.encrypt=function(b){if(b=u(b),b.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var l=a(b.length),m=a(16),D=0;D=0;--l)this._counter[l]=b%256,b=b>>8},M.prototype.setBytes=function(b){if(b=u(b,!0),b.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=b},M.prototype.increment=function(){for(var b=15;b>=0;b--)if(this._counter[b]===255)this._counter[b]=0;else{this._counter[b]++;break}};var k=function(b,l){if(!(this instanceof k))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",l instanceof M||(l=new M(l)),this._counter=l,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new c0(b)};k.prototype.encrypt=function(b){for(var l=u(b,!0),m=0;m16)throw new Error("PKCS#7 padding byte out of range");for(var m=b.length-l,D=0;D=64;){let V=_,b=B,l=N,m=W,D=G,f=t0,S=Z,O=e0,$,H,n0,u0,s0;for(H=0;H<16;H++)n0=I+H*4,o0[H]=(k[n0]&255)<<24|(k[n0+1]&255)<<16|(k[n0+2]&255)<<8|k[n0+3]&255;for(H=16;H<64;H++)$=o0[H-2],u0=($>>>17|$<<15)^($>>>19|$<<13)^$>>>10,$=o0[H-15],s0=($>>>7|$<<25)^($>>>18|$<<14)^$>>>3,o0[H]=(u0+o0[H-7]|0)+(s0+o0[H-16]|0)|0;for(H=0;H<64;H++)u0=(((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&f^~D&S)|0)+(O+(P[H]+o0[H]|0)|0)|0,s0=((V>>>2|V<<30)^(V>>>13|V<<19)^(V>>>22|V<<10))+(V&b^V&l^b&l)|0,O=S,S=f,f=D,D=m+u0|0,m=l,l=b,b=V,V=u0+s0|0;_=_+V|0,B=B+b|0,N=N+l|0,W=W+m|0,G=G+D|0,t0=t0+f|0,Z=Z+S|0,e0=e0+O|0,I+=64,z-=64}}d0(U);let c0,h0=U.length%64,j=U.length/536870912|0,p=U.length<<3,v=h0<56?56:120,M=U.slice(U.length-h0,U.length);for(M.push(128),c0=h0+1;c0>>24&255),M.push(j>>>16&255),M.push(j>>>8&255),M.push(j>>>0&255),M.push(p>>>24&255),M.push(p>>>16&255),M.push(p>>>8&255),M.push(p>>>0&255),d0(M),[_>>>24&255,_>>>16&255,_>>>8&255,_>>>0&255,B>>>24&255,B>>>16&255,B>>>8&255,B>>>0&255,N>>>24&255,N>>>16&255,N>>>8&255,N>>>0&255,W>>>24&255,W>>>16&255,W>>>8&255,W>>>0&255,G>>>24&255,G>>>16&255,G>>>8&255,G>>>0&255,t0>>>24&255,t0>>>16&255,t0>>>8&255,t0>>>0&255,Z>>>24&255,Z>>>16&255,Z>>>8&255,Z>>>0&255,e0>>>24&255,e0>>>16&255,e0>>>8&255,e0>>>0&255]}function u(U,P,_){U=U.length<=64?U:i(U);const B=64+P.length+4,N=new Array(B),W=new Array(64);let G,t0=[];for(G=0;G<64;G++)N[G]=54;for(G=0;G=B-4;e0--){if(N[e0]++,N[e0]<=255)return;N[e0]=0}}for(;_>=32;)Z(),t0=t0.concat(i(W.concat(i(N)))),_-=32;return _>0&&(Z(),t0=t0.concat(i(W.concat(i(N))).slice(0,_))),t0}function a(U,P,_,B,N){let W;for(d(U,(2*_-1)*16,N,0,16),W=0;W<2*_;W++)c(U,W*16,N,16),s(N,B),d(N,0,U,P+W*16,16);for(W=0;W<_;W++)d(U,P+W*2*16,U,W*16,16);for(W=0;W<_;W++)d(U,P+(W*2+1)*16,U,(W+_)*16,16)}function o(U,P){return U<>>32-P}function s(U,P){d(U,0,P,0,16);for(let _=8;_>0;_-=2)P[4]^=o(P[0]+P[12],7),P[8]^=o(P[4]+P[0],9),P[12]^=o(P[8]+P[4],13),P[0]^=o(P[12]+P[8],18),P[9]^=o(P[5]+P[1],7),P[13]^=o(P[9]+P[5],9),P[1]^=o(P[13]+P[9],13),P[5]^=o(P[1]+P[13],18),P[14]^=o(P[10]+P[6],7),P[2]^=o(P[14]+P[10],9),P[6]^=o(P[2]+P[14],13),P[10]^=o(P[6]+P[2],18),P[3]^=o(P[15]+P[11],7),P[7]^=o(P[3]+P[15],9),P[11]^=o(P[7]+P[3],13),P[15]^=o(P[11]+P[7],18),P[1]^=o(P[0]+P[3],7),P[2]^=o(P[1]+P[0],9),P[3]^=o(P[2]+P[1],13),P[0]^=o(P[3]+P[2],18),P[6]^=o(P[5]+P[4],7),P[7]^=o(P[6]+P[5],9),P[4]^=o(P[7]+P[6],13),P[5]^=o(P[4]+P[7],18),P[11]^=o(P[10]+P[9],7),P[8]^=o(P[11]+P[10],9),P[9]^=o(P[8]+P[11],13),P[10]^=o(P[9]+P[8],18),P[12]^=o(P[15]+P[14],7),P[13]^=o(P[12]+P[15],9),P[14]^=o(P[13]+P[12],13),P[15]^=o(P[14]+P[13],18);for(let _=0;_<16;++_)U[_]+=P[_]}function c(U,P,_,B){for(let N=0;N=256)return!1}return!0}function A(U,P){if(typeof U!="number"||U%1)throw new Error("invalid "+P);return U}function C(U,P,_,B,N,W,G){if(_=A(_,"N"),B=A(B,"r"),N=A(N,"p"),W=A(W,"dkLen"),_===0||_&_-1)throw new Error("N must be power of 2");if(_>2147483647/128/B)throw new Error("N too large");if(B>2147483647/128/N)throw new Error("r too large");if(!y(U))throw new Error("password must be an array or buffer");if(U=Array.prototype.slice.call(U),!y(P))throw new Error("salt must be an array or buffer");P=Array.prototype.slice.call(P);let t0=u(U,P,N*128*B);const Z=new Uint32Array(N*32*B);for(let D=0;Db&&(D=b);for(let S=0;Sb&&(D=b);for(let S=0;S>0&255),t0.push(Z[S]>>8&255),t0.push(Z[S]>>16&255),t0.push(Z[S]>>24&255);const f=u(U,t0,W);return G&&G(null,1,f),f}G&&l(m)};if(!G)for(;;){const D=m();if(D!=null)return D}m()}const T={scrypt:function(U,P,_,B,N,W,G){return new Promise(function(t0,Z){let e0=0;G&&G(0),C(U,P,_,B,N,W,function(o0,d0,c0){if(o0)Z(o0);else if(c0)G&&e0!==1&&G(1),t0(new Uint8Array(c0));else if(G&&d0!==e0)return e0=d0,G(d0)})})},syncScrypt:function(U,P,_,B,N,W){return new Uint8Array(C(U,P,_,B,N,W))}};t.exports=T})()})(eb);var yB=eb.exports;const G4=xt(yB);var gB=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const ls=new r0(Zp);function Zl(t){return t!=null&&t.mnemonic&&t.mnemonic.phrase}class xB extends Q2{isKeystoreAccount(e){return!!(e&&e._isKeystoreAccount)}}function vB(t,e,r){if(ie(t,"crypto/cipher")==="aes-128-ctr"){const i=An(ie(t,"crypto/cipherparams/iv")),u=new mr.Counter(i),a=new mr.ModeOfOperation.ctr(e,u);return k0(a.decrypt(r))}return null}function tb(t,e){const r=An(ie(t,"crypto/ciphertext"));if(N0(O1(L1([e.slice(16,32),r]))).substring(2)!==ie(t,"crypto/mac").toLowerCase())throw new Error("invalid password");const i=vB(t,e.slice(0,16),r);i||ls.throwError("unsupported cipher",r0.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const u=e.slice(32,64),a=I2(i);if(t.address){let s=t.address.toLowerCase();if(s.substring(0,2)!=="0x"&&(s="0x"+s),I1(s)!==a)throw new Error("address mismatch")}const o={_isKeystoreAccount:!0,address:a,privateKey:N0(i)};if(ie(t,"x-ethers/version")==="0.1"){const s=An(ie(t,"x-ethers/mnemonicCiphertext")),c=An(ie(t,"x-ethers/mnemonicCounter")),d=new mr.Counter(c),y=new mr.ModeOfOperation.ctr(u,d),A=ie(t,"x-ethers/path")||Q6,C=ie(t,"x-ethers/locale")||"en",T=k0(y.decrypt(s));try{const U=q8(T,C),P=pt.fromMnemonic(U,null,C).derivePath(A);if(P.privateKey!=o.privateKey)throw new Error("mnemonic mismatch");o.mnemonic=P.mnemonic}catch(U){if(U.code!==r0.errors.INVALID_ARGUMENT||U.argument!=="wordlist")throw U}}return new xB(o)}function rb(t,e,r,n,i){return k0($4(t,e,r,n,i))}function AB(t,e,r,n,i){return Promise.resolve(rb(t,e,r,n,i))}function nb(t,e,r,n,i){const u=H4(e),a=ie(t,"crypto/kdf");if(a&&typeof a=="string"){const o=function(s,c){return ls.throwArgumentError("invalid key-derivation function parameters",s,c)};if(a.toLowerCase()==="scrypt"){const s=An(ie(t,"crypto/kdfparams/salt")),c=parseInt(ie(t,"crypto/kdfparams/n")),d=parseInt(ie(t,"crypto/kdfparams/r")),y=parseInt(ie(t,"crypto/kdfparams/p"));(!c||!d||!y)&&o("kdf",a),c&c-1&&o("N",c);const A=parseInt(ie(t,"crypto/kdfparams/dklen"));return A!==32&&o("dklen",A),n(u,s,c,d,y,64,i)}else if(a.toLowerCase()==="pbkdf2"){const s=An(ie(t,"crypto/kdfparams/salt"));let c=null;const d=ie(t,"crypto/kdfparams/prf");d==="hmac-sha256"?c="sha256":d==="hmac-sha512"?c="sha512":o("prf",d);const y=parseInt(ie(t,"crypto/kdfparams/c")),A=parseInt(ie(t,"crypto/kdfparams/dklen"));return A!==32&&o("dklen",A),r(u,s,y,A,c)}}return ls.throwArgumentError("unsupported key-derivation function","kdf",a)}function ib(t,e){const r=JSON.parse(t),n=nb(r,e,rb,G4.syncScrypt);return tb(r,n)}function ub(t,e,r){return gB(this,void 0,void 0,function*(){const n=JSON.parse(t),i=yield nb(n,e,AB,G4.scrypt,r);return tb(n,i)})}function ab(t,e,r,n){try{if(I1(t.address)!==I2(t.privateKey))throw new Error("address/privateKey mismatch");if(Zl(t)){const P=t.mnemonic;if(pt.fromMnemonic(P.phrase,null,P.locale).derivePath(P.path||Q6).privateKey!=t.privateKey)throw new Error("mnemonic mismatch")}}catch(P){return Promise.reject(P)}typeof r=="function"&&!n&&(n=r,r={}),r||(r={});const i=k0(t.privateKey),u=H4(e);let a=null,o=null,s=null;if(Zl(t)){const P=t.mnemonic;a=k0($8(P.phrase,P.locale||"en")),o=P.path||Q6,s=P.locale||"en"}let c=r.client;c||(c="ethers.js");let d=null;r.salt?d=k0(r.salt):d=x6(32);let y=null;if(r.iv){if(y=k0(r.iv),y.length!==16)throw new Error("invalid iv")}else y=x6(16);let A=null;if(r.uuid){if(A=k0(r.uuid),A.length!==16)throw new Error("invalid uuid")}else A=x6(16);let C=1<<17,T=8,U=1;return r.scrypt&&(r.scrypt.N&&(C=r.scrypt.N),r.scrypt.r&&(T=r.scrypt.r),r.scrypt.p&&(U=r.scrypt.p)),G4.scrypt(u,d,C,T,U,64,n).then(P=>{P=k0(P);const _=P.slice(0,16),B=P.slice(16,32),N=P.slice(32,64),W=new mr.Counter(y),G=new mr.ModeOfOperation.ctr(_,W),t0=k0(G.encrypt(i)),Z=O1(L1([B,t0])),e0={address:t.address.substring(2).toLowerCase(),id:hB(A),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:N0(y).substring(2)},ciphertext:N0(t0).substring(2),kdf:"scrypt",kdfparams:{salt:N0(d).substring(2),n:C,dklen:32,p:U,r:T},mac:Z.substring(2)}};if(a){const o0=x6(16),d0=new mr.Counter(o0),c0=new mr.ModeOfOperation.ctr(N,d0),h0=k0(c0.encrypt(a)),j=new Date,p=j.getUTCFullYear()+"-"+Ti(j.getUTCMonth()+1,2)+"-"+Ti(j.getUTCDate(),2)+"T"+Ti(j.getUTCHours(),2)+"-"+Ti(j.getUTCMinutes(),2)+"-"+Ti(j.getUTCSeconds(),2)+".0Z";e0["x-ethers"]={client:c,gethFilename:"UTC--"+p+"--"+e0.address,mnemonicCounter:N0(o0).substring(2),mnemonicCiphertext:N0(h0).substring(2),path:o,locale:s,version:"0.1"}}return JSON.stringify(e0)})}function ob(t,e,r){if(H8(t)){r&&r(0);const n=K4(t,e);return r&&r(1),Promise.resolve(n)}return K8(t)?ub(t,e,r):Promise.reject(new Error("invalid JSON wallet"))}function sb(t,e){if(H8(t))return K4(t,e);if(K8(t))return ib(t,e);throw new Error("invalid JSON wallet")}const wB=Object.freeze(Object.defineProperty({__proto__:null,decryptCrowdsale:K4,decryptJsonWallet:ob,decryptJsonWalletSync:sb,decryptKeystore:ub,decryptKeystoreSync:ib,encryptKeystore:ab,getJsonWalletAddress:mB,isCrowdsaleWallet:H8,isKeystoreWallet:K8},Symbol.toStringTag,{value:"Module"})),EB="wallet/5.7.0";var ec=function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function o(d){try{c(n.next(d))}catch(y){a(y)}}function s(d){try{c(n.throw(d))}catch(y){a(y)}}function c(d){d.done?u(d.value):i(d.value).then(o,s)}c((n=n.apply(t,e||[])).next())})};const e6=new r0(EB);function CB(t){return t!=null&&s1(t.privateKey,32)&&t.address!=null}function FB(t){const e=t.mnemonic;return e&&e.phrase}class dn extends Ln{constructor(e,r){if(super(),CB(e)){const n=new vn(e.privateKey);if(b0(this,"_signingKey",()=>n),b0(this,"address",I2(this.publicKey)),this.address!==I1(e.address)&&e6.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),FB(e)){const i=e.mnemonic;b0(this,"_mnemonic",()=>({phrase:i.phrase,path:i.path||Q6,locale:i.locale||"en"}));const u=this.mnemonic,a=pt.fromMnemonic(u.phrase,null,u.locale).derivePath(u.path);I2(a.privateKey)!==this.address&&e6.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else b0(this,"_mnemonic",()=>null)}else{if(vn.isSigningKey(e))e.curve!=="secp256k1"&&e6.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),b0(this,"_signingKey",()=>e);else{typeof e=="string"&&e.match(/^[0-9a-f]*$/i)&&e.length===64&&(e="0x"+e);const n=new vn(e);b0(this,"_signingKey",()=>n)}b0(this,"_mnemonic",()=>null),b0(this,"address",I2(this.publicKey))}r&&!Rn.isProvider(r)&&e6.throwArgumentError("invalid provider","provider",r),b0(this,"provider",r||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new dn(this,e)}signTransaction(e){return te(e).then(r=>{r.from!=null&&(I1(r.from)!==this.address&&e6.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete r.from);const n=this._signingKey().signDigest(O1(is(r)));return is(r,n)})}signMessage(e){return ec(this,void 0,void 0,function*(){return Jo(this._signingKey().signDigest(S4(e)))})}_signTypedData(e,r,n){return ec(this,void 0,void 0,function*(){const i=yield Be.resolveNames(e,r,n,u=>(this.provider==null&&e6.throwError("cannot resolve ENS names without a provider",r0.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:u}),this.provider.resolveName(u)));return Jo(this._signingKey().signDigest(Be.hash(i.domain,r,i.value)))})}encrypt(e,r,n){if(typeof r=="function"&&!n&&(n=r,r={}),n&&typeof n!="function")throw new Error("invalid callback");return r||(r={}),ab(this,e,r,n)}static createRandom(e){let r=x6(16);e||(e={}),e.extraEntropy&&(r=k0(ue(O1(L1([r,e.extraEntropy])),0,16)));const n=q8(r,e.locale);return dn.fromMnemonic(n,e.path,e.locale)}static fromEncryptedJson(e,r,n){return ob(e,r,n).then(i=>new dn(i))}static fromEncryptedJsonSync(e,r){return new dn(sb(e,r))}static fromMnemonic(e,r,n){return r||(r=Q6),new dn(pt.fromMnemonic(e,null,n).derivePath(r))}}function BB(t,e){return Xu(S4(t),e)}function DB(t,e,r,n){return Xu(Be.hash(t,e,r),n)}const _B=Object.freeze(Object.defineProperty({__proto__:null,Wallet:dn,verifyMessage:BB,verifyTypedData:DB},Symbol.toStringTag,{value:"Module"})),kB="solidity/5.7.0",SB=new RegExp("^bytes([0-9]+)$"),TB=new RegExp("^(u?int)([0-9]*)$"),PB=new RegExp("^(.*)\\[([0-9]*)\\]$"),NB="0000000000000000000000000000000000000000000000000000000000000000",u6=new r0(kB);function fb(t,e,r){switch(t){case"address":return r?Vi(e,32):k0(e);case"string":return H1(e);case"bytes":return k0(e);case"bool":return e=e?"0x01":"0x00",r?Vi(e,32):k0(e)}let n=t.match(TB);if(n){let i=parseInt(n[2]||"256");return(n[2]&&String(i)!==n[2]||i%8!==0||i===0||i>256)&&u6.throwArgumentError("invalid number type","type",t),r&&(i=256),e=P0.from(e).toTwos(i),Vi(e,i/8)}if(n=t.match(SB),n){const i=parseInt(n[1]);return(String(i)!==n[1]||i===0||i>32)&&u6.throwArgumentError("invalid bytes type","type",t),k0(e).byteLength!==i&&u6.throwArgumentError(`invalid value for ${t}`,"value",e),r?k0((e+NB).substring(0,66)):e}if(n=t.match(PB),n&&Array.isArray(e)){const i=n[1];parseInt(n[2]||String(e.length))!=e.length&&u6.throwArgumentError(`invalid array length for ${t}`,"value",e);const a=[];return e.forEach(function(o){a.push(fb(i,o,!0))}),L1(a)}return u6.throwArgumentError("invalid type","type",t)}function W4(t,e){t.length!=e.length&&u6.throwArgumentError("wrong number of values; expected ${ types.length }","values",e);const r=[];return t.forEach(function(n,i){r.push(fb(n,e[i]))}),N0(L1(r))}function MB(t,e){return O1(W4(t,e))}function UB(t,e){return gt(W4(t,e))}const IB=Object.freeze(Object.defineProperty({__proto__:null,keccak256:MB,pack:W4,sha256:UB},Symbol.toStringTag,{value:"Module"})),RB="units/5.7.0",lb=new r0(RB),cb=["wei","kwei","mwei","gwei","szabo","finney","ether"];function OB(t){const e=String(t).split(".");(e.length>2||!e[0].match(/^-?[0-9]*$/)||e[1]&&!e[1].match(/^[0-9]*$/)||t==="."||t==="-.")&&lb.throwArgumentError("invalid value","value",t);let r=e[0],n="";for(r.substring(0,1)==="-"&&(n="-",r=r.substring(1));r.substring(0,1)==="0";)r=r.substring(1);r===""&&(r="0");let i="";for(e.length===2&&(i="."+(e[1]||"0"));i.length>2&&i[i.length-1]==="0";)i=i.substring(0,i.length-1);const u=[];for(;r.length;)if(r.length<=3){u.unshift(r);break}else{const a=r.length-3;u.unshift(r.substring(a)),r=r.substring(0,a)}return n+u.join(",")+i}function db(t,e){if(typeof e=="string"){const r=cb.indexOf(e);r!==-1&&(e=3*r)}return f9(t,e??18)}function hb(t,e){if(typeof t!="string"&&lb.throwArgumentError("value must be a string","value",t),typeof e=="string"){const r=cb.indexOf(e);r!==-1&&(e=3*r)}return sr(t,e??18)}function LB(t){return db(t,18)}function jB(t){return hb(t,18)}const zB=Object.freeze(Object.defineProperty({__proto__:null,commify:OB,formatEther:LB,formatUnits:db,parseEther:jB,parseUnits:hb},Symbol.toStringTag,{value:"Module"})),q5=[{inputs:[],name:"AlreadyRegistered",type:"error"},{inputs:[],name:"CannotRevokeControlFromTLD",type:"error"},{inputs:[],name:"ERC721AlreadyMinted",type:"error"},{inputs:[],name:"ERC721ApproveToOwner",type:"error"},{inputs:[],name:"ERC721InvalidOwnerAddress0",type:"error"},{inputs:[],name:"ERC721InvalidTokenId",type:"error"},{inputs:[],name:"ERC721MintToAddress0",type:"error"},{inputs:[],name:"ERC721NotOwnerOrApproved",type:"error"},{inputs:[],name:"ERC721TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"ERC721TransferToAddress0",type:"error"},{inputs:[],name:"ERC721TransferToNonReceiver",type:"error"},{inputs:[],name:"NotAuthorized",type:"error"},{inputs:[],name:"NotAuthorizedToMintName",type:"error"},{inputs:[],name:"NotDotUqTLD",type:"error"},{inputs:[],name:"KNSRegistryOnly",type:"error"},{inputs:[],name:"SecondLevelDomainNot9CharactersOrMore",type:"error"},{inputs:[],name:"TLDWebmasterApproveToCaller",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",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:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"child",type:"uint256"},{indexed:!1,internalType:"uint256",name:"parent",type:"uint256"},{indexed:!1,internalType:"address",name:"sender",type:"address"}],name:"ControlRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",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:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"webmaster",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"Webmaster",type:"event"},{inputs:[],name:"TLD_DNS_WIRE",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"TLD_HASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"TLD_LABEL",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_fqdn",type:"bytes"},{internalType:"bytes32",name:"_tldHash",type:"bytes32"}],name:"__initTLDRegistration",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"address",name:"_operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"_setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"node",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_nodeId",type:"uint256"},{internalType:"address",name:"_sender",type:"address"}],name:"auth",outputs:[{internalType:"bool",name:"authed_",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_nodeId",type:"bytes32"},{internalType:"address",name:"_sender",type:"address"}],name:"auth",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_node",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getInitializedVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_kns",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"address",name:"_operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_webmaster",type:"address"},{internalType:"uint256",name:"_node",type:"uint256"}],name:"isWebmaster",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"address",name:"_webmaster",type:"address"}],name:"isWebmaster",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",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:"node",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"parents",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proxiableUUID",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"kns",outputs:[{internalType:"contract IKNSRegistryResolver",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_name",type:"bytes"},{internalType:"address",name:"_to",type:"address"},{internalType:"bytes[]",name:"_data",type:"bytes[]"}],name:"register",outputs:[{internalType:"uint256",name:"nodeId_",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"_name",type:"bytes"}],name:"revokeControlOverSubdomain",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"node",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"node",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:"_webmaster",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setWebmaster",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:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"node",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"}],name:"upgradeTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"}],tc="0x60a06040523060805234801561001457600080fd5b50608051612b6361004c6000396000818161095e015281816109a701528181610a6101528181610aa10152610b470152612b636000f3fe6080604052600436106101f95760003560e01c8063715018a61161010d578063b88d4fde116100a0578063d123f99a1161006f578063d123f99a146105c3578063d314c607146105d6578063d5c457141461061f578063e985e9c514610635578063f2fde38b1461065557600080fd5b8063b88d4fde1461054d578063c1ea25f11461056d578063c4d66de81461058d578063d1131c72146105ad57600080fd5b80638da5cb5b116100dc5780638da5cb5b146104d357806395d89b41146104f1578063a22cb46514610506578063b3c650151461052657600080fd5b8063715018a614610451578063819eb62514610466578063898572a6146104865780638c4e3f32146104b357600080fd5b8063303bc8ac11610190578063516a166a1161015f578063516a166a146103ae57806352d1902d146103ce5780635864c817146103f15780636352211e1461041157806370a082311461043157600080fd5b8063303bc8ac146103465780633659cfe61461035b57806342842e0e1461037b5780634f1ef2861461039b57600080fd5b806312403916116101cc57806312403916146102c65780631492017b146102e6578063169e0dde1461030657806323b872dd1461032657600080fd5b806301ffc9a7146101fe57806306fdde0314610234578063081812fc14610256578063095ea7b3146102a4575b600080fd5b34801561020a57600080fd5b5061021f61021936600461210e565b50600090565b60405190151581526020015b60405180910390f35b34801561024057600080fd5b50610249610675565b60405161022b919061217b565b34801561026257600080fd5b5061028c61027136600461218e565b6000908152600860205260409020546001600160a01b031690565b6040516001600160a01b03909116815260200161022b565b3480156102b057600080fd5b506102c46102bf3660046121c3565b610707565b005b3480156102d257600080fd5b506102c46102e136600461222f565b610791565b3480156102f257600080fd5b5061021f61030136600461227b565b61083d565b34801561031257600080fd5b5060005461028c906001600160a01b031681565b34801561033257600080fd5b506102c46103413660046122a7565b610894565b34801561035257600080fd5b506102496108c6565b34801561036757600080fd5b506102c46103763660046122e3565b610954565b34801561038757600080fd5b506102c46103963660046122a7565b610a3c565b6102c46103a93660046123c3565b610a57565b3480156103ba57600080fd5b5061021f6103c936600461227b565b610b27565b3480156103da57600080fd5b506103e3610b3a565b60405190815260200161022b565b3480156103fd57600080fd5b506102c461040c366004612407565b610bed565b34801561041d57600080fd5b5061028c61042c36600461218e565b610cbe565b34801561043d57600080fd5b506103e361044c3660046122e3565b610cf3565b34801561045d57600080fd5b506102c4610d38565b34801561047257600080fd5b506102c461048136600461244c565b610d4c565b34801561049257600080fd5b506103e36104a136600461218e565b60d46020526000908152604090205481565b3480156104bf57600080fd5b506102c46104ce366004612476565b610d57565b3480156104df57600080fd5b50603e546001600160a01b031661028c565b3480156104fd57600080fd5b50610249610df7565b34801561051257600080fd5b506102c461052136600461244c565b610e06565b34801561053257600080fd5b5061053b610e11565b60405160ff909116815260200161022b565b34801561055957600080fd5b506102c46105683660046124b9565b610e24565b34801561057957600080fd5b5061021f6105883660046121c3565b610e57565b34801561059957600080fd5b506102c46105a83660046122e3565b610e63565b3480156105b957600080fd5b506103e360015481565b6103e36105d1366004612521565b610fd7565b3480156105e257600080fd5b5061021f6105f13660046125d2565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205460ff1690565b34801561062b57600080fd5b506103e360025481565b34801561064157600080fd5b5061021f6106503660046125d2565b611003565b34801561066157600080fd5b506102c46106703660046122e3565b611031565b606060048054610684906125fc565b80601f01602080910402602001604051908101604052809291908181526020018280546106b0906125fc565b80156106fd5780601f106106d2576101008083540402835291602001916106fd565b820191906000526020600020905b8154815290600101906020018083116106e057829003601f168201915b5050505050905090565b600061071282610cbe565b9050806001600160a01b0316836001600160a01b0316036107465760405163091fbd5360e01b815260040160405180910390fd5b336001600160a01b0382161480159061076457506107648133611003565b15610782576040516307e8a24360e21b815260040160405180910390fd5b61078c83836110a7565b505050565b600254156107b257604051630ea075bf60e21b815260040160405180910390fd5b6000546001600160a01b031633146107dd5760405163367ae3b760e11b815260040160405180910390fd5b600281905560036107ef838583612686565b50610834600084848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092939250506111159050565b50600155505050565b60005b8015801561085057506002548314155b1561088e5761085f838361121c565b90508061088e5761086f8361124a565b1561088a57600092835260d460205260409092205491610840565b5060005b92915050565b61089e3382611262565b6108bb576040516307e8a24360e21b815260040160405180910390fd5b61078c8383836112c1565b600380546108d3906125fc565b80601f01602080910402602001604051908101604052809291908181526020018280546108ff906125fc565b801561094c5780601f106109215761010080835404028352916020019161094c565b820191906000526020600020905b81548152906001019060200180831161092f57829003601f168201915b505050505081565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036109a55760405162461bcd60e51b815260040161099c90612747565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166109ee600080516020612ae7833981519152546001600160a01b031690565b6001600160a01b031614610a145760405162461bcd60e51b815260040161099c90612793565b610a1d816113ff565b60408051600080825260208201909252610a3991839190611407565b50565b61078c83838360405180602001604052806000815250610e24565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610a9f5760405162461bcd60e51b815260040161099c90612747565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ae8600080516020612ae7833981519152546001600160a01b031690565b6001600160a01b031614610b0e5760405162461bcd60e51b815260040161099c90612793565b610b17826113ff565b610b2382826001611407565b5050565b6000610b33838361083d565b9392505050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bda5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000606482015260840161099c565b50600080516020612ae783398151915290565b6000806000610bfb84611572565b925092509250808203610c215760405163abddc77160e01b815260040160405180910390fd5b610c2b8233610b27565b15610c9f5760006001610c3d856115d2565b179050610c598185600090815260066020526040902081905590565b506040805185815260208101859052338183015290517f7de9cdc5b55386112f86114d6e841bde7e78203bea81a912271231dffde1be769181900360600190a150610cb8565b60405163ea8e4eb560e01b815260040160405180910390fd5b50505050565b600080610cca836115e6565b90506001600160a01b03811661088e5760405163089ba7e160e41b815260040160405180910390fd5b60006001600160a01b038216610d1c57604051633d6932c760e21b815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205490565b610d406115fd565b610d4a6000611657565b565b610b233383836116a9565b816001600160a01b0316836001600160a01b031603610d895760405163091fbd5360e01b815260040160405180910390fd5b6001600160a01b03838116600081815260096020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3191015b60405180910390a3505050565b606060058054610684906125fc565b610b23338383610d57565b6000610e1f600b5460ff1690565b905090565b610e2e3383611262565b610e4b576040516307e8a24360e21b815260040160405180910390fd5b610cb884848484611740565b6000610b338383611774565b600b54610100900460ff1615808015610e835750600b54600160ff909116105b80610e9d5750303b158015610e9d5750600b5460ff166001145b610f005760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161099c565b600b805460ff191660011790558015610f2357600b805461ff0019166101001790555b60408051808201825260128152715571626172204e616d65205365727669636560701b6020918201528151808301909252600482526355514e5360e01b910152600080546001600160a01b0319166001600160a01b038416179055610f866117b8565b610f8e6117df565b8015610b2357600b805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b600080610fe7878760003361180e565b509050610ff88787878488886119b9565b979650505050505050565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b6110396115fd565b6001600160a01b03811661109e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161099c565b610a3981611657565b600081815260086020526040902080546001600160a01b0319166001600160a01b03841690811790915581906110dc826115e6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080835183106111685760405162461bcd60e51b815260206004820152601e60248201527f726561644c6162656c3a20496e646578206f7574206f6620626f756e64730000604482015260640161099c565b600084848151811061117c5761117c6127df565b016020015160f81c9050604081106111d65760405162461bcd60e51b815260206004820152601960248201527f726561644c6162656c3a204c6162656c20746f6f206c6f6e6700000000000000604482015260640161099c565b80156111f8576111f1856111eb86600161280b565b83611b1a565b92506111fd565b600092505b611207818561280b565b61121290600161280b565b9150509250929050565b60006001600160a01b03821630148061123a575061123a8284611774565b80610b335750610b338284611262565b60008181526006602052604081205461088e90611b3e565b60008061126e836115e6565b9050806001600160a01b0316846001600160a01b0316148061129557506112958185611003565b806112b957506000838152600860205260409020546001600160a01b038581169116145b949350505050565b6001600160a01b0382166000036112eb576040516328aad33f60e21b815260040160405180910390fd5b826001600160a01b03166112fe826115e6565b6001600160a01b0316146113255760405163e146af6f60e01b815260040160405180910390fd5b826001600160a01b0316611338826115e6565b6001600160a01b03161461135f5760405163e146af6f60e01b815260040160405180910390fd5b600081815260086020908152604080832080546001600160a01b03191690556001600160a01b0386811680855260078452828520805460001901905590861680855282852080546001019055858552600690935281842080546001600160601b0316606088901b6001600160601b031916179055905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610a396115fd565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161561143a5761078c83611b53565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611494575060408051601f3d908101601f191682019092526114919181019061281e565b60015b6114f75760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b606482015260840161099c565b600080516020612ae783398151915281146115665760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b606482015260840161099c565b5061078c838383611bef565b600080600080600061158386611c14565b915091506000806115948884611c2b565b6040805160208101849052908101879052919350915060600160408051808303601f1901815291905280516020909101209891975095509350505050565b60008181526006602052604081205461088e565b60008181526006602052604081205460601c61088e565b603e546001600160a01b03163314610d4a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161099c565b603e80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036116db57604051637417c83160e11b815260040160405180910390fd5b6001600160a01b038381166000818152600a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527fadc620d6f66bc2f5355112336dd7957aecdc5480a6d6e771c356503869756c449101610dea565b61174b8484846112c1565b61175784848484611d2f565b610cb857604051633a3614b760e01b815260040160405180910390fd5b6000600a6000611783846115e6565b6001600160a01b039081168252602080830193909352604091820160009081209187168152925290205460ff16905092915050565b600b54610100900460ff16610d4a5760405162461bcd60e51b815260040161099c90612837565b600b54610100900460ff166118065760405162461bcd60e51b815260040161099c90612837565b610d4a611e31565b6000806000806118578689898080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092939250506111159050565b9092509050611867600188612882565b810361189f57600154821461188f57604051631b431a5160e11b815260040160405180910390fd5b60025460019350935050506119b0565b6000806118ae8a8a858a61180e565b91509150600254821480156118cd575060096118ca8985612882565b11155b156118eb5760405163cecd40e560e01b815260040160405180910390fd5b60408051602080820185905281830187905282518083038401815260609092018352815191810191909120600081815260d490925291812054900361193c57600081815260d4602052604090208390555b88156119735761194b8161124a565b61195457600091505b8161196657611963818961121c565b91505b955093506119b092505050565b8161199157604051632b8839a960e01b815260040160405180910390fd5b60025483146119a15760006119a4565b60015b60019650965050505050505b94509492505050565b60008054604051633255528360e21b815282916001600160a01b03169063c9554a0c906119ec908b908b906004016128be565b6020604051808303816000875af1158015611a0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a2f919061281e565b9150819050611a3e8682611e61565b611a8b611a7786611a5b8560009081526006602052604090205490565b6001600160601b031981166001600160601b0383161792915050565b600084815260066020526040902081905590565b508215611b0f5760005460405163e32954eb60e01b81526001600160a01b039091169063e32954eb90611ac6908490889088906004016128d2565b6000604051808303816000875af1158015611ae5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b0d919081019061297b565b505b509695505050505050565b8251600090611b29838561280b565b1115611b3457600080fd5b5091016020012090565b600081158061088e5750506001908116141590565b6001600160a01b0381163b611bc05760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161099c565b600080516020612ae783398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b611bf883611e7b565b600082511180611c055750805b1561078c57610cb88383611ebb565b600080611c22836000611115565b91509150915091565b600080600080611c3b8686611115565b909250905081611cb05760018651611c539190612882565b8514611ca15760405162461bcd60e51b815260206004820152601d60248201527f6e616d65686173683a204a756e6b20617420656e64206f66206e616d65000000604482015260640161099c565b5060009250829150611d289050565b600080611cbd8884611c2b565b909250905080611cf45760408051600060208201529081018590526060016040516020818303038152906040528051906020012090505b6040805160208101849052908101859052606001604051602081830303815290604052805190602001208195509550505050505b9250929050565b60006001600160a01b0384163b15611e2657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611d73903390899088908890600401612a7a565b6020604051808303816000875af1925050508015611dae575060408051601f3d908101601f19168201909252611dab91810190612aad565b60015b611e0c573d808015611ddc576040519150601f19603f3d011682016040523d82523d6000602084013e611de1565b606091505b508051600003611e0457604051633a3614b760e01b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506112b9565b506001949350505050565b600b54610100900460ff16611e585760405162461bcd60e51b815260040161099c90612837565b610d4a33611657565b610b23828260405180602001604052806000815250611ee0565b611e8481611b53565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610b338383604051806060016040528060278152602001612b0760279139611f14565b611eea8383611f8c565b611ef76000848484611d2f565b61078c57604051633a3614b760e01b815260040160405180910390fd5b6060600080856001600160a01b031685604051611f319190612aca565b600060405180830381855af49150503d8060008114611f6c576040519150601f19603f3d011682016040523d82523d6000602084013e611f71565b606091505b5091509150611f828683838761205a565b9695505050505050565b6001600160a01b038216611fb35760405163507508af60e11b815260040160405180910390fd5b60008181526006602052604090205415611fe0576040516324a255d960e11b815260040160405180910390fd5b6000818152600660205260409020541561200d576040516324a255d960e11b815260040160405180910390fd5b6001600160a01b038216600090815260076020908152604080832080546001019055928252600690522080546001600160601b031660609290921b6001600160601b031916919091179055565b606083156120c95782516000036120c2576001600160a01b0385163b6120c25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161099c565b50816112b9565b6112b983838151156120de5781518083602001fd5b8060405162461bcd60e51b815260040161099c919061217b565b6001600160e01b031981168114610a3957600080fd5b60006020828403121561212057600080fd5b8135610b33816120f8565b60005b8381101561214657818101518382015260200161212e565b50506000910152565b6000815180845261216781602086016020860161212b565b601f01601f19169290920160200192915050565b602081526000610b33602083018461214f565b6000602082840312156121a057600080fd5b5035919050565b80356001600160a01b03811681146121be57600080fd5b919050565b600080604083850312156121d657600080fd5b6121df836121a7565b946020939093013593505050565b60008083601f8401126121ff57600080fd5b50813567ffffffffffffffff81111561221757600080fd5b602083019150836020828501011115611d2857600080fd5b60008060006040848603121561224457600080fd5b833567ffffffffffffffff81111561225b57600080fd5b612267868287016121ed565b909790965060209590950135949350505050565b6000806040838503121561228e57600080fd5b8235915061229e602084016121a7565b90509250929050565b6000806000606084860312156122bc57600080fd5b6122c5846121a7565b92506122d3602085016121a7565b9150604084013590509250925092565b6000602082840312156122f557600080fd5b610b33826121a7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561233d5761233d6122fe565b604052919050565b600067ffffffffffffffff82111561235f5761235f6122fe565b50601f01601f191660200190565b600082601f83011261237e57600080fd5b813561239161238c82612345565b612314565b8181528460208386010111156123a657600080fd5b816020850160208301376000918101602001919091529392505050565b600080604083850312156123d657600080fd5b6123df836121a7565b9150602083013567ffffffffffffffff8111156123fb57600080fd5b6112128582860161236d565b60006020828403121561241957600080fd5b813567ffffffffffffffff81111561243057600080fd5b6112b98482850161236d565b803580151581146121be57600080fd5b6000806040838503121561245f57600080fd5b612468836121a7565b915061229e6020840161243c565b60008060006060848603121561248b57600080fd5b612494846121a7565b92506124a2602085016121a7565b91506124b06040850161243c565b90509250925092565b600080600080608085870312156124cf57600080fd5b6124d8856121a7565b93506124e6602086016121a7565b925060408501359150606085013567ffffffffffffffff81111561250957600080fd5b6125158782880161236d565b91505092959194509250565b60008060008060006060868803121561253957600080fd5b853567ffffffffffffffff8082111561255157600080fd5b61255d89838a016121ed565b9097509550859150612571602089016121a7565b9450604088013591508082111561258757600080fd5b818801915088601f83011261259b57600080fd5b8135818111156125aa57600080fd5b8960208260051b85010111156125bf57600080fd5b9699959850939650602001949392505050565b600080604083850312156125e557600080fd5b6125ee836121a7565b915061229e602084016121a7565b600181811c9082168061261057607f821691505b60208210810361263057634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561078c576000816000526020600020601f850160051c8101602086101561265f5750805b601f850160051c820191505b8181101561267e5782815560010161266b565b505050505050565b67ffffffffffffffff83111561269e5761269e6122fe565b6126b2836126ac83546125fc565b83612636565b6000601f8411600181146126e657600085156126ce5750838201355b600019600387901b1c1916600186901b178355612740565b600083815260209020601f19861690835b8281101561271757868501358255602094850194600190920191016126f7565b50868210156127345760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561088e5761088e6127f5565b60006020828403121561283057600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b8181038181111561088e5761088e6127f5565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006112b9602083018486612895565b6000604082018583526020604060208501528185835260608501905060608660051b86010192508660005b8781101561296d57868503605f190183528135368a9003601e1901811261292357600080fd5b8901848101903567ffffffffffffffff81111561293f57600080fd5b80360382131561294e57600080fd5b612959878284612895565b9650505091830191908301906001016128fd565b509298975050505050505050565b6000602080838503121561298e57600080fd5b825167ffffffffffffffff808211156129a657600080fd5b818501915085601f8301126129ba57600080fd5b8151818111156129cc576129cc6122fe565b8060051b6129db858201612314565b91825283810185019185810190898411156129f557600080fd5b86860192505b83831015612a6d57825185811115612a135760008081fd5b8601603f81018b13612a255760008081fd5b878101516040612a3761238c83612345565b8281528d82848601011115612a4c5760008081fd5b612a5b838c830184870161212b565b855250505091860191908601906129fb565b9998505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f829083018461214f565b600060208284031215612abf57600080fd5b8151610b33816120f8565b60008251612adc81846020870161212b565b919091019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209fefab139234fb45128c7107850c6927f664693838f0b11e849e298fc1eb1b8d64736f6c63430008160033",$B=t=>t.length>1;class tu extends si{constructor(...e){$B(e)?super(...e):super(q5,tc,e[0])}deploy(e){return super.deploy(e||{})}getDeployTransaction(e){return super.getDeployTransaction(e||{})}attach(e){return super.attach(e)}connect(e){return super.connect(e)}static createInterface(){return new t2(q5)}static connect(e,r){return new q2(e,q5,r)}}ct(tu,"bytecode",tc),ct(tu,"abi",q5);const H5=[{type:"constructor",inputs:[],stateMutability:"nonpayable"},{type:"function",name:"isApprovedForAll",inputs:[{name:"owner",type:"address",internalType:"address"},{name:"operator",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"owner",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"recordExists",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"resolver",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"setApprovalForAll",inputs:[{name:"operator",type:"address",internalType:"address"},{name:"approved",type:"bool",internalType:"bool"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setOwner",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"owner",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setRecord",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"owner",type:"address",internalType:"address"},{name:"resolver",type:"address",internalType:"address"},{name:"ttl",type:"uint64",internalType:"uint64"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setResolver",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"resolver",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setSubnodeOwner",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"label",type:"bytes32",internalType:"bytes32"},{name:"owner",type:"address",internalType:"address"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"nonpayable"},{type:"function",name:"setSubnodeRecord",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"label",type:"bytes32",internalType:"bytes32"},{name:"owner",type:"address",internalType:"address"},{name:"resolver",type:"address",internalType:"address"},{name:"ttl",type:"uint64",internalType:"uint64"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setTTL",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"ttl",type:"uint64",internalType:"uint64"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"ttl",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"uint64",internalType:"uint64"}],stateMutability:"view"},{type:"event",name:"ApprovalForAll",inputs:[{name:"owner",type:"address",indexed:!0,internalType:"address"},{name:"operator",type:"address",indexed:!0,internalType:"address"},{name:"approved",type:"bool",indexed:!1,internalType:"bool"}],anonymous:!1},{type:"event",name:"NewOwner",inputs:[{name:"node",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"label",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"owner",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"event",name:"NewResolver",inputs:[{name:"node",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"resolver",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"event",name:"NewTTL",inputs:[{name:"node",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"ttl",type:"uint64",indexed:!1,internalType:"uint64"}],anonymous:!1},{type:"event",name:"Transfer",inputs:[{name:"node",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"owner",type:"address",indexed:!1,internalType:"address"}],anonymous:!1}],rc="0x608060405234801561001057600080fd5b5060008080526020527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb580546001600160a01b031916331790556109b5806100596000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80635b0fc9c3116100715780635b0fc9c3146101ab5780635ef2c7f0146101be578063a22cb465146101d1578063cf408823146101e4578063e985e9c5146101f7578063f79fe5381461024357600080fd5b80630178b8bf146100b957806302571be31461010257806306ab59231461011557806314ab90381461013657806316a25cbd1461014b5780631896f70a14610198575b600080fd5b6100e56100c73660046107a4565b6000908152602081905260409020600101546001600160a01b031690565b6040516001600160a01b0390911681526020015b60405180910390f35b6100e56101103660046107a4565b61026e565b6101286101233660046107d9565b61029c565b6040519081526020016100f9565b610149610144366004610826565b61036c565b005b61017f6101593660046107a4565b600090815260208190526040902060010154600160a01b900467ffffffffffffffff1690565b60405167ffffffffffffffff90911681526020016100f9565b6101496101a6366004610852565b61043f565b6101496101b9366004610852565b610504565b6101496101cc366004610875565b6105a6565b6101496101df3660046108cc565b6105c8565b6101496101f2366004610908565b610634565b610233610205366004610955565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b60405190151581526020016100f9565b6102336102513660046107a4565b6000908152602081905260409020546001600160a01b0316151590565b6000818152602081905260408120546001600160a01b03163081036102965750600092915050565b92915050565b60008381526020819052604081205484906001600160a01b0316338114806102e757506001600160a01b038116600090815260016020908152604080832033845290915290205460ff165b6102f057600080fd5b60408051602080820189905281830188905282518083038401815260609092019092528051910120610322818661064f565b6040516001600160a01b0386168152869088907fce0457fe73731f824cc272376169235128c118b49d344817417c6d108d155e829060200160405180910390a39695505050505050565b60008281526020819052604090205482906001600160a01b0316338114806103b757506001600160a01b038116600090815260016020908152604080832033845290915290205460ff165b6103c057600080fd5b60405167ffffffffffffffff8416815284907f1d4f9bbfc9cab89d66e1a1562f2233ccbf1308cb4f63de2ead5787adddb8fa689060200160405180910390a25050600091825260208290526040909120600101805467ffffffffffffffff909216600160a01b0267ffffffffffffffff60a01b19909216919091179055565b60008281526020819052604090205482906001600160a01b03163381148061048a57506001600160a01b038116600090815260016020908152604080832033845290915290205460ff165b61049357600080fd5b6040516001600160a01b038416815284907f335721b01866dc23fbee8b6b2c7b1e14d6f05c28cd35a2c934239f94095602a09060200160405180910390a2505060009182526020829052604090912060010180546001600160a01b0319166001600160a01b03909216919091179055565b60008281526020819052604090205482906001600160a01b03163381148061054f57506001600160a01b038116600090815260016020908152604080832033845290915290205460ff165b61055857600080fd5b610562848461064f565b6040516001600160a01b038416815284907fd4735d920b0f87494915f556dd9b54c8f309026070caea5c737245152564d2669060200160405180910390a250505050565b60006105b386868661029c565b90506105c081848461067d565b505050505050565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61063e8484610504565b61064984838361067d565b50505050565b60009182526020829052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6000838152602081905260409020600101546001600160a01b03838116911614610703576000838152602081815260409182902060010180546001600160a01b0319166001600160a01b038616908117909155915191825284917f335721b01866dc23fbee8b6b2c7b1e14d6f05c28cd35a2c934239f94095602a0910160405180910390a25b60008381526020819052604090206001015467ffffffffffffffff828116600160a01b909204161461079f5760008381526020818152604091829020600101805467ffffffffffffffff60a01b1916600160a01b67ffffffffffffffff861690810291909117909155915191825284917f1d4f9bbfc9cab89d66e1a1562f2233ccbf1308cb4f63de2ead5787adddb8fa68910160405180910390a25b505050565b6000602082840312156107b657600080fd5b5035919050565b80356001600160a01b03811681146107d457600080fd5b919050565b6000806000606084860312156107ee57600080fd5b8335925060208401359150610805604085016107bd565b90509250925092565b803567ffffffffffffffff811681146107d457600080fd5b6000806040838503121561083957600080fd5b823591506108496020840161080e565b90509250929050565b6000806040838503121561086557600080fd5b82359150610849602084016107bd565b600080600080600060a0868803121561088d57600080fd5b85359450602086013593506108a4604087016107bd565b92506108b2606087016107bd565b91506108c06080870161080e565b90509295509295909350565b600080604083850312156108df57600080fd5b6108e8836107bd565b9150602083013580151581146108fd57600080fd5b809150509250929050565b6000806000806080858703121561091e57600080fd5b8435935061092e602086016107bd565b925061093c604086016107bd565b915061094a6060860161080e565b905092959194509250565b6000806040838503121561096857600080fd5b610971836107bd565b9150610849602084016107bd56fea2646970667358221220b6c3be93ffec5e5a47b9f372710d65c59860b6986beedbb852960b07092f2f0a64736f6c63430008170033",qB=t=>t.length>1;class ru extends si{constructor(...e){qB(e)?super(...e):super(H5,rc,e[0])}deploy(e){return super.deploy(e||{})}getDeployTransaction(e){return super.getDeployTransaction(e||{})}attach(e){return super.attach(e)}connect(e){return super.connect(e)}static createInterface(){return new t2(H5)}static connect(e,r){return new q2(e,H5,r)}}ct(ru,"bytecode",rc),ct(ru,"abi",H5);const K5=[{type:"constructor",inputs:[{name:"_ensregistry",type:"address",internalType:"address"},{name:"_ensnamewrapper",type:"address",internalType:"address"},{name:"_lz",type:"address",internalType:"address"},{name:"_lzc",type:"uint16",internalType:"uint16"},{name:"_exit",type:"address",internalType:"address"},{name:"_exitlzc",type:"uint16",internalType:"uint16"}],stateMutability:"nonpayable"},{type:"fallback",stateMutability:"payable"},{type:"receive",stateMutability:"payable"},{type:"function",name:"cash",inputs:[],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"ensnamewrapper",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"ensregistry",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"exitlzc",inputs:[],outputs:[{name:"",type:"uint16",internalType:"uint16"}],stateMutability:"view"},{type:"function",name:"exitpath",inputs:[],outputs:[{name:"",type:"bytes",internalType:"bytes"}],stateMutability:"view"},{type:"function",name:"lz",inputs:[],outputs:[{name:"",type:"address",internalType:"contract ILayerZeroEndpoint"}],stateMutability:"view"},{type:"function",name:"lzc",inputs:[],outputs:[{name:"",type:"uint16",internalType:"uint16"}],stateMutability:"view"},{type:"function",name:"owner",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"ping",inputs:[],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setKNSRecords",inputs:[{name:"fqdn",type:"bytes",internalType:"bytes"},{name:"data",type:"bytes[]",internalType:"bytes[]"}],outputs:[],stateMutability:"nonpayable"},{type:"error",name:"NotEnsOwner",inputs:[]}],nc="0x6101406040523480156200001257600080fd5b5060405162000fd538038062000fd58339810160408190526200003591620000e3565b6001600160a01b03868116610100528581166101205233608052841660a05261ffff831660c0526040516001600160601b0319606084811b8216602084015230901b166034820152604801604051602081830303815290604052600090816200009f91906200020b565b5061ffff1660e05250620002d79350505050565b80516001600160a01b0381168114620000cb57600080fd5b919050565b805161ffff81168114620000cb57600080fd5b60008060008060008060c08789031215620000fd57600080fd5b6200010887620000b3565b95506200011860208801620000b3565b94506200012860408801620000b3565b93506200013860608801620000d0565b92506200014860808801620000b3565b91506200015860a08801620000d0565b90509295509295509295565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200018f57607f821691505b602082108103620001b057634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000206576000816000526020600020601f850160051c81016020861015620001e15750805b601f850160051c820191505b818110156200020257828155600101620001ed565b5050505b505050565b81516001600160401b0381111562000227576200022762000164565b6200023f816200023884546200017a565b84620001b6565b602080601f8311600181146200027757600084156200025e5750858301515b600019600386901b1c1916600185901b17855562000202565b600085815260208120601f198616915b82811015620002a85788860151825594840194600190910190840162000287565b5085821015620002c75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c05160e0516101005161012051610c866200034f6000396000818160aa01528181610340015261038d01526000818161024a01526102d101526000818160fb01526106f50152600061016201526000818161019601526106c6015260008181610201015261057c0152610c866000f3fe60806040526004361061008f5760003560e01c80635c36b186116100565780635c36b186146101b85780637fee035f146101cd5780638da5cb5b146101ef578063961be39114610223578063ba503bee1461023857005b8063065aeebc146100985780630d448b78146100e95780631105d7cb1461013057806330ff44b61461015057806333f97b591461018457005b3661009657005b005b3480156100a457600080fd5b506100cc7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100f557600080fd5b5061011d7f000000000000000000000000000000000000000000000000000000000000000081565b60405161ffff90911681526020016100e0565b34801561013c57600080fd5b5061009661014b366004610880565b61026c565b34801561015c57600080fd5b5061011d7f000000000000000000000000000000000000000000000000000000000000000081565b34801561019057600080fd5b506100cc7f000000000000000000000000000000000000000000000000000000000000000081565b3480156101c457600080fd5b506100966104a3565b3480156101d957600080fd5b506101e26104e3565b6040516100e0919061098b565b3480156101fb57600080fd5b506100cc7f000000000000000000000000000000000000000000000000000000000000000081565b34801561022f57600080fd5b50610096610571565b34801561024457600080fd5b506100cc7f000000000000000000000000000000000000000000000000000000000000000081565b60006102ad85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525092506105eb915050565b6040516302571be360e01b8152600481018290529091506000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906302571be390602401602060405180830381865afa158015610318573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033c91906109a5565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b031603610403576040516331a9108f60e11b8152600481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636352211e90602401602060405180830381865afa1580156103dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040091906109a5565b90505b6001600160a01b038116331461042c576040516384760f9960e01b815260040160405180910390fd5b6000636a0d1c3460e01b338888888860405160240161044f9594939291906109f7565b60408051601f19818403018152918152602080830180516001600160e01b03166001600160e01b0319909516949094179093528051928301905260008252915061049a9082906106b0565b50505050505050565b6040805160048152602481018252602080820180516001600160e01b0316632e1b58c360e11b1790528251908101909252600082526104e1916106b0565b565b600080546104f090610ab9565b80601f016020809104026020016040519081016040528092919081815260200182805461051c90610ab9565b80156105695780601f1061053e57610100808354040283529160200191610569565b820191906000526020600020905b81548152906001019060200180831161054c57829003601f168201915b505050505081565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146105a657600080fd5b60405133904790600081818185875af1925050503d80600081146105e6576040519150601f19603f3d011682016040523d82523d6000602084013e505050565b505050565b60008060006105fa8585610755565b90925090508161067157600185516106129190610b09565b84146106655760405162461bcd60e51b815260206004820152601d60248201527f6e616d65686173683a204a756e6b20617420656e64206f66206e616d6500000060448201526064015b60405180910390fd5b50600091506106aa9050565b61067b85826105eb565b604080516020810192909252810183905260600160405160208183030381529060405280519060200120925050505b92915050565b60405162c5803160e81b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c5803100904790610728907f0000000000000000000000000000000000000000000000000000000000000000906000908890309083908a90600401610b1c565b6000604051808303818588803b15801561074157600080fd5b505af115801561049a573d6000803e3d6000fd5b600080835183106107a85760405162461bcd60e51b815260206004820152601e60248201527f726561644c6162656c3a20496e646578206f7574206f6620626f756e64730000604482015260640161065c565b60008484815181106107bc576107bc610c27565b016020015160f81c9050604081106108165760405162461bcd60e51b815260206004820152601960248201527f726561644c6162656c3a204c6162656c20746f6f206c6f6e6700000000000000604482015260640161065c565b8015610838576108318561082b866001610c3d565b8361085c565b925061083d565b600092505b6108478185610c3d565b610852906001610c3d565b9150509250929050565b825160009061086b8385610c3d565b111561087657600080fd5b5091016020012090565b6000806000806040858703121561089657600080fd5b843567ffffffffffffffff808211156108ae57600080fd5b818701915087601f8301126108c257600080fd5b8135818111156108d157600080fd5b8860208285010111156108e357600080fd5b6020928301965094509086013590808211156108fe57600080fd5b818701915087601f83011261091257600080fd5b81358181111561092157600080fd5b8860208260051b850101111561093657600080fd5b95989497505060200194505050565b6000815180845260005b8181101561096b5760208185018101518683018201520161094f565b506000602082860101526020601f19601f83011685010191505092915050565b60208152600061099e6020830184610945565b9392505050565b6000602082840312156109b757600080fd5b81516001600160a01b038116811461099e57600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038616815260606020808301829052600091610a1d90840187896109ce565b8381036040850152848152818101600586901b820183018760005b88811015610aa857848303601f190184528135368b9003601e19018112610a5e57600080fd5b8a01868101903567ffffffffffffffff811115610a7a57600080fd5b803603821315610a8957600080fd5b610a948582846109ce565b958801959450505090850190600101610a38565b50909b9a5050505050505050505050565b600181811c90821680610acd57607f821691505b602082108103610aed57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156106aa576106aa610af3565b61ffff871681526000602060c06020840152600088548160018260011c91506001831680610b4b57607f831692505b602083108103610b6957634e487b7160e01b85526022600452602485fd5b60c0880183905260e08801818015610b885760018114610b9e57610bc9565b60ff198616825284151560051b82019650610bc9565b60008f81526020902060005b86811015610bc357815484820152908501908901610baa565b83019750505b5050505050508381036040850152610be18189610945565b915050610bf960608401876001600160a01b03169052565b6001600160a01b038516608084015282810360a0840152610c1a8185610945565b9998505050505050505050565b634e487b7160e01b600052603260045260246000fd5b808201808211156106aa576106aa610af356fea2646970667358221220e3ac694477aa6f714010898307fc04e89a5db768141cf94df85e978acab5985764736f6c63430008170033",HB=t=>t.length>1;class nu extends si{constructor(...e){HB(e)?super(...e):super(K5,nc,e[0])}deploy(e,r,n,i,u,a,o){return super.deploy(e,r,n,i,u,a,o||{})}getDeployTransaction(e,r,n,i,u,a,o){return super.getDeployTransaction(e,r,n,i,u,a,o||{})}attach(e){return super.attach(e)}connect(e){return super.connect(e)}static createInterface(){return new t2(K5)}static connect(e,r){return new q2(e,K5,r)}}ct(nu,"bytecode",nc),ct(nu,"abi",K5);const G5=[{type:"constructor",inputs:[{name:"_kns",type:"address",internalType:"address"},{name:"_lz",type:"address",internalType:"address"},{name:"_lzc",type:"uint16",internalType:"uint16"}],stateMutability:"nonpayable"},{type:"function",name:"__initTLDRegistration",inputs:[{name:"fqdn",type:"bytes",internalType:"bytes"},{name:"tld",type:"bytes32",internalType:"bytes32"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"auth",inputs:[{name:"_nodeId",type:"bytes32",internalType:"bytes32"},{name:"_sender",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"ensowners",inputs:[{name:"",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"kns",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"lz",inputs:[],outputs:[{name:"",type:"address",internalType:"contract ILayerZeroEndpoint"}],stateMutability:"view"},{type:"function",name:"lzReceive",inputs:[{name:"_chain",type:"uint16",internalType:"uint16"},{name:"_path",type:"bytes",internalType:"bytes"},{name:"",type:"uint64",internalType:"uint64"},{name:"_payload",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"lzc",inputs:[],outputs:[{name:"",type:"uint16",internalType:"uint16"}],stateMutability:"view"},{type:"function",name:"owner",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"ownerOf",inputs:[{name:"node",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"nonpayable"},{type:"function",name:"ping",inputs:[],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setBaseNode",inputs:[{name:"node",type:"uint256",internalType:"uint256"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setEntry",inputs:[{name:"_entry",type:"address",internalType:"address"},{name:"_entrychain",type:"uint16",internalType:"uint16"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setKNSRecords",inputs:[{name:"owner",type:"address",internalType:"address"},{name:"fqdn",type:"bytes",internalType:"bytes"},{name:"data",type:"bytes[]",internalType:"bytes[]"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"simulate",inputs:[{name:"_payload",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"trustedentries",inputs:[{name:"",type:"uint16",internalType:"uint16"}],outputs:[{name:"",type:"bytes",internalType:"bytes"}],stateMutability:"view"},{type:"event",name:"Error",inputs:[{name:"error",type:"bytes4",indexed:!1,internalType:"bytes4"}],anonymous:!1},{type:"event",name:"Pinged",inputs:[{name:"",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"error",name:"EthNameTooShort",inputs:[]},{type:"error",name:"NotEthName",inputs:[]},{type:"error",name:"ParentNotRegistered",inputs:[]}],ic="0x61010060405234801561001157600080fd5b506040516200155138038062001551833981016040819052610032916100cb565b3360e0526001600160a01b0392831660c052911660805261ffff1660a0527f93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae60009081526020527f859ecef2e168dc10231b000bd53493b42bc9d944cac29d94582c1e1d4359213180546001600160a01b03191630179055610119565b80516001600160a01b03811681146100c657600080fd5b919050565b6000806000606084860312156100e057600080fd5b6100e9846100af565b92506100f7602085016100af565b9150604084015161ffff8116811461010e57600080fd5b809150509250925092565b60805160a05160c05160e0516113e26200016f60003960008181610245015261085d0152600081816101da0152818161072d01526107c70152600061013901526000818161017801526102df01526113e26000f3fe608060405234801561001057600080fd5b50600436106100f45760003560e01c80635c36b18611610097578063a5cc9b8c11610066578063a5cc9b8c14610267578063aff820041461027a578063b7a9d55d146102a3578063c4a6ed1c146102b457600080fd5b80635c36b186146101fc5780636352211e146102045780636a0d1c341461022d5780638da5cb5b1461024057600080fd5b806330ff44b6116100d357806330ff44b61461013457806333f97b5914610173578063516a166a146101b257806355bf3ec7146101d557600080fd5b80621d3567146100f9578063124039161461010e5780632421706214610121575b600080fd5b61010c610107366004610ca3565b6102d4565b005b61010c61011c366004610d3d565b505050565b61010c61012f366004610d89565b6104e6565b61015b7f000000000000000000000000000000000000000000000000000000000000000081565b60405161ffff90911681526020015b60405180910390f35b61019a7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161016a565b6101c56101c0366004610de2565b61052f565b604051901515815260200161016a565b61019a7f000000000000000000000000000000000000000000000000000000000000000081565b61010c61056a565b61019a610212366004610e0e565b6000908152602081905260409020546001600160a01b031690565b61010c61023b366004610e27565b6105ab565b61019a7f000000000000000000000000000000000000000000000000000000000000000081565b61010c610275366004610ed5565b610852565b61019a610288366004610e0e565b6000602081905290815260409020546001600160a01b031681565b61010c6102b1366004610e0e565b50565b6102c76102c2366004610eff565b6108db565b60405161016a9190610f3e565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146103375760405162461bcd60e51b815260206004820152600360248201526210b63d60e91b60448201526064015b60405180910390fd5b61ffff86166000908152600160205260408120805461035590610f71565b80601f016020809104026020016040519081016040528092919081815260200182805461038190610f71565b80156103ce5780601f106103a3576101008083540402835291602001916103ce565b820191906000526020600020905b8154815290600101906020018083116103b157829003601f168201915b5050505050905080516000141580156103e75750805185145b8015610410575085856040516103fe929190610fab565b60405180910390208180519060200120145b6104475760405162461bcd60e51b8152602060048201526008602482015267085d1c9d5cdd195960c21b604482015260640161032e565b60008061048d305a609688888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061097592505050565b91509150816104db576020818101516040516001600160e01b03198216815290917f366d96da3b5ec9f4aeb519f286b40eccd096a5d8f2321095eb415fb56d32f0cc910160405180910390a1505b505050505050505050565b610529305a609685858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061097592505050565b50505050565b60006001600160a01b03821630148061056157506000838152602081905260409020546001600160a01b038381169116145b90505b92915050565b33301461057657600080fd5b6040513081527fcd1f5876a7d71dd23dec305977c08069d94c421d8eccf041570b143e2312045d9060200160405180910390a1565b3330146105b757600080fd5b60058310156105d95760405163a0b3278960e01b815260040160405180910390fd5b83836105e6600582610fd1565b6105f292869290610fe4565b604051610600929190610fab565b6040519081900390207fc65934a88d283a635602ca15e14e8b9a9a3d150eacacca3b07f4a85f5fdbface1461064757604051624945f960e61b815260040160405180910390fd5b60008061068986868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610a0092505050565b90925090507f93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae82148015906106d357506000828152602081905260409020546001600160a01b0316155b156106f1576040516336e8c0db60e21b815260040160405180910390fd5b6000818152602081905260409081902080546001600160a01b0319166001600160a01b038a8116919091179091559051633255528360e21b81527f00000000000000000000000000000000000000000000000000000000000000009091169063c9554a0c906107669089908990600401611037565b6020604051808303816000875af1158015610785573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a99190611053565b5082156108495760405163e32954eb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063e32954eb906108009084908890889060040161106c565b6000604051808303816000875af115801561081f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610847919081019061115c565b505b50505050505050565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461088757600080fd5b6040516bffffffffffffffffffffffff19606084811b8216602084015230901b16603482015260480160408051601f1981840301815291815261ffff831660009081526001602052209061011c90826112c3565b600160205260009081526040902080546108f490610f71565b80601f016020809104026020016040519081016040528092919081815260200182805461092090610f71565b801561096d5780601f106109425761010080835404028352916020019161096d565b820191906000526020600020905b81548152906001019060200180831161095057829003601f168201915b505050505081565b6000606060008060008661ffff1667ffffffffffffffff81111561099b5761099b611115565b6040519080825280601f01601f1916602001820160405280156109c5576020820181803683370190505b50905060008087516020890160008d8df191503d9250868311156109e7578692505b828152826000602083013e909890975095505050505050565b6000808080610a0f8582610a59565b90925090506000610a208683610b60565b60408051602080820184905281830187905282518083038401815260609092019092528051910120909150819094509450505050915091565b60008083518310610aac5760405162461bcd60e51b815260206004820152601e60248201527f726561644c6162656c3a20496e646578206f7574206f6620626f756e64730000604482015260640161032e565b6000848481518110610ac057610ac0611383565b016020015160f81c905060408110610b1a5760405162461bcd60e51b815260206004820152601960248201527f726561644c6162656c3a204c6162656c20746f6f206c6f6e6700000000000000604482015260640161032e565b8015610b3c57610b3585610b2f866001611399565b83610c1f565b9250610b41565b600092505b610b4b8185611399565b610b56906001611399565b9150509250929050565b6000806000610b6f8585610a59565b909250905081610be15760018551610b879190610fd1565b8414610bd55760405162461bcd60e51b815260206004820152601d60248201527f6e616d65686173683a204a756e6b20617420656e64206f66206e616d65000000604482015260640161032e565b50600091506105649050565b610beb8582610b60565b6040805160208101929092528101839052606001604051602081830303815290604052805190602001209250505092915050565b8251600090610c2e8385611399565b1115610c3957600080fd5b5091016020012090565b803561ffff81168114610c5557600080fd5b919050565b60008083601f840112610c6c57600080fd5b50813567ffffffffffffffff811115610c8457600080fd5b602083019150836020828501011115610c9c57600080fd5b9250929050565b60008060008060008060808789031215610cbc57600080fd5b610cc587610c43565b9550602087013567ffffffffffffffff80821115610ce257600080fd5b610cee8a838b01610c5a565b9097509550604089013591508082168214610d0857600080fd5b90935060608801359080821115610d1e57600080fd5b50610d2b89828a01610c5a565b979a9699509497509295939492505050565b600080600060408486031215610d5257600080fd5b833567ffffffffffffffff811115610d6957600080fd5b610d7586828701610c5a565b909790965060209590950135949350505050565b60008060208385031215610d9c57600080fd5b823567ffffffffffffffff811115610db357600080fd5b610dbf85828601610c5a565b90969095509350505050565b80356001600160a01b0381168114610c5557600080fd5b60008060408385031215610df557600080fd5b82359150610e0560208401610dcb565b90509250929050565b600060208284031215610e2057600080fd5b5035919050565b600080600080600060608688031215610e3f57600080fd5b610e4886610dcb565b9450602086013567ffffffffffffffff80821115610e6557600080fd5b610e7189838a01610c5a565b90965094506040880135915080821115610e8a57600080fd5b818801915088601f830112610e9e57600080fd5b813581811115610ead57600080fd5b8960208260051b8501011115610ec257600080fd5b9699959850939650602001949392505050565b60008060408385031215610ee857600080fd5b610ef183610dcb565b9150610e0560208401610c43565b600060208284031215610f1157600080fd5b61056182610c43565b60005b83811015610f35578181015183820152602001610f1d565b50506000910152565b6020815260008251806020840152610f5d816040850160208701610f1a565b601f01601f19169190910160400192915050565b600181811c90821680610f8557607f821691505b602082108103610fa557634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561056457610564610fbb565b60008085851115610ff457600080fd5b8386111561100157600080fd5b5050820193919092039150565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60208152600061104b60208301848661100e565b949350505050565b60006020828403121561106557600080fd5b5051919050565b6000604082018583526020604060208501528185835260608501905060608660051b86010192508660005b8781101561110757868503605f190183528135368a9003601e190181126110bd57600080fd5b8901848101903567ffffffffffffffff8111156110d957600080fd5b8036038213156110e857600080fd5b6110f387828461100e565b965050509183019190830190600101611097565b509298975050505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561115457611154611115565b604052919050565b6000602080838503121561116f57600080fd5b825167ffffffffffffffff8082111561118757600080fd5b8185019150601f86601f84011261119d57600080fd5b8251828111156111af576111af611115565b8060051b6111be86820161112b565b918252848101860191868101908a8411156111d857600080fd5b87870192505b83831015611265578251868111156111f65760008081fd5b8701603f81018c136112085760008081fd5b8881015160408882111561121e5761121e611115565b61122f828901601f19168c0161112b565b8281528e828486010111156112445760008081fd5b611253838d8301848701610f1a565b855250505091870191908701906111de565b9a9950505050505050505050565b601f82111561011c576000816000526020600020601f850160051c8101602086101561129c5750805b601f850160051c820191505b818110156112bb578281556001016112a8565b505050505050565b815167ffffffffffffffff8111156112dd576112dd611115565b6112f1816112eb8454610f71565b84611273565b602080601f831160018114611326576000841561130e5750858301515b600019600386901b1c1916600185901b1785556112bb565b600085815260208120601f198616915b8281101561135557888601518255948401946001909101908401611336565b50858210156113735787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b8082018082111561056457610564610fbb56fea26469706673582212208197e0f5b459d95709cef50ad0fe845f867790febbf6af1b6d9bd7ff0a9b876064736f6c63430008170033",KB=t=>t.length>1;class iu extends si{constructor(...e){KB(e)?super(...e):super(G5,ic,e[0])}deploy(e,r,n,i){return super.deploy(e,r,n,i||{})}getDeployTransaction(e,r,n,i){return super.getDeployTransaction(e,r,n,i||{})}attach(e){return super.attach(e)}connect(e){return super.connect(e)}static createInterface(){return new t2(G5)}static connect(e,r){return new q2(e,G5,r)}}ct(iu,"bytecode",ic),ct(iu,"abi",G5);const W5=[{inputs:[],name:"NotTLD",type:"error"},{inputs:[],name:"TLD401",type:"error"},{inputs:[],name:"TLDRegistrarOnly",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"uint128",name:"ip",type:"uint128"}],name:"IpUpdate",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"key",type:"bytes32"}],name:"KeyUpdate",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"bytes",name:"name",type:"bytes"},{indexed:!1,internalType:"address",name:"tld",type:"address"}],name:"NewTLD",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"bytes",name:"name",type:"bytes"}],name:"NodeRegistered",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:!0,internalType:"bytes32",name:"node",type:"bytes32"}],name:"RecordsCleared",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"bytes32[]",name:"routers",type:"bytes32[]"}],name:"RoutingUpdate",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"uint16",name:"port",type:"uint16"}],name:"TcpUpdate",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"uint16",name:"port",type:"uint16"}],name:"UdpUpdate",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"uint16",name:"port",type:"uint16"}],name:"WsUpdate",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"node",type:"bytes32"},{indexed:!1,internalType:"uint16",name:"port",type:"uint16"}],name:"WtUpdate",type:"event"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"TLDs",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"},{internalType:"uint96",name:"_records",type:"uint96"}],name:"clearRecords",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getInitializedVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"ip",outputs:[{internalType:"uint128",name:"ip",type:"uint128"},{internalType:"uint16",name:"ws",type:"uint16"},{internalType:"uint16",name:"wt",type:"uint16"},{internalType:"uint16",name:"tcp",type:"uint16"},{internalType:"uint16",name:"udp",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"key",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicallWithNodeCheck",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"nodes",outputs:[{internalType:"contract ITLDRegistrar",name:"tld",type:"address"},{internalType:"uint96",name:"records",type:"uint96"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"proxiableUUID",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"fqdn",type:"bytes"}],name:"registerNode",outputs:[{internalType:"bytes32",name:"nodeHash",type:"bytes32"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"fqdn",type:"bytes"},{internalType:"address",name:"registrar",type:"address"}],name:"registerTLD",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"}],name:"routers",outputs:[{internalType:"bytes32[]",name:"",type:"bytes32[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"},{internalType:"uint128",name:"_ip",type:"uint128"},{internalType:"uint16",name:"_ws",type:"uint16"},{internalType:"uint16",name:"_wt",type:"uint16"},{internalType:"uint16",name:"_tcp",type:"uint16"},{internalType:"uint16",name:"_udp",type:"uint16"}],name:"setAllIp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"},{internalType:"uint128",name:"_ip",type:"uint128"},{internalType:"uint16",name:"_ws",type:"uint16"},{internalType:"uint16",name:"_wt",type:"uint16"},{internalType:"uint16",name:"_tcp",type:"uint16"},{internalType:"uint16",name:"_udp",type:"uint16"}],name:"setDirectInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"},{internalType:"uint128",name:"_ip",type:"uint128"}],name:"setIp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"},{internalType:"bytes32",name:"_key",type:"bytes32"}],name:"setKey",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"},{internalType:"bytes32[]",name:"_newRouters",type:"bytes32[]"}],name:"setRouters",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"},{internalType:"uint16",name:"_tcp",type:"uint16"}],name:"setTcp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"},{internalType:"uint16",name:"_udp",type:"uint16"}],name:"setUdp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"},{internalType:"uint16",name:"_ws",type:"uint16"}],name:"setWs",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_node",type:"bytes32"},{internalType:"uint16",name:"_wt",type:"uint16"}],name:"setWt",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:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"}],name:"upgradeTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"}],uc="0x60a06040523060805234801561001457600080fd5b50608051612e6961004c60003960008181610e9e01528181610ee7015281816111e80152818161122801526112bb0152612e696000f3fe6080604052600436106101b75760003560e01c806374191440116100ec578063c9554a0c1161008a578063decd6bd511610064578063decd6bd5146105c9578063e32954eb146105e9578063f2fde38b14610609578063fbda8c3f1461062957600080fd5b8063c9554a0c1461051a578063cf506b4a1461053a578063d86e697d1461055a57600080fd5b8063aa1fce69116100c6578063aa1fce691461047e578063ac9650d8146104ab578063b3c65015146104d8578063c7988b37146104fa57600080fd5b8063741914401461042b5780638129fc1c1461044b5780638da5cb5b1461046057600080fd5b80633940afcd116101595780634f1ef286116101335780634f1ef2861461039257806352d1902d146103a557806365184956146103c8578063715018a61461041657600080fd5b80633940afcd1461032f5780634a2a6add1461034f5780634f0575491461036f57600080fd5b80632363b1a6116101955780632363b1a6146102af578063300777af146102cf57806332946692146102ef5780633659cfe61461030f57600080fd5b806301ffc9a7146101bc57806305f93b5f146101f157806307a003301461028d575b600080fd5b3480156101c857600080fd5b506101dc6101d73660046125bc565b610656565b60405190151581526020015b60405180910390f35b3480156101fd57600080fd5b5061025261020c3660046125e6565b60ff602052600090815260409020546001600160801b0381169061ffff600160801b8204811691600160901b8104821691600160a01b8204811691600160b01b90041685565b604080516001600160801b03909616865261ffff9485166020870152928416928501929092528216606084015216608082015260a0016101e8565b34801561029957600080fd5b506102ad6102a83660046125ff565b61068d565b005b3480156102bb57600080fd5b506102ad6102ca366004612638565b6107ea565b3480156102db57600080fd5b506102ad6102ea36600461267b565b610958565b3480156102fb57600080fd5b506102ad61030a36600461269e565b610ad2565b34801561031b57600080fd5b506102ad61032a366004612722565b610e94565b34801561033b57600080fd5b506102ad61034a366004612782565b610f7c565b34801561035b57600080fd5b506102ad61036a3660046127ce565b6110e2565b34801561037b57600080fd5b506102ad61038a36600461269e565b505050505050565b6102ad6103a0366004612820565b6111de565b3480156103b157600080fd5b506103ba6112ae565b6040519081526020016101e8565b3480156103d457600080fd5b506103fe6103e33660046125e6565b60fb602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101e8565b34801561042257600080fd5b506102ad611361565b34801561043757600080fd5b506102ad610446366004612638565b611375565b34801561045757600080fd5b506102ad6114e8565b34801561046c57600080fd5b5060c9546001600160a01b03166103fe565b34801561048a57600080fd5b5061049e6104993660046125e6565b611600565b6040516101e891906128e2565b3480156104b757600080fd5b506104cb6104c6366004612926565b611662565b6040516101e891906129b8565b3480156104e457600080fd5b5060005460405160ff90911681526020016101e8565b34801561050657600080fd5b506102ad610515366004612638565b611677565b34801561052657600080fd5b506103ba610535366004612a5e565b6117ec565b34801561054657600080fd5b506102ad610555366004612a94565b6118f2565b34801561056657600080fd5b506105a26105753660046125e6565b60fc602052600090815260409020546001600160a01b03811690600160a01b90046001600160601b031682565b604080516001600160a01b0390931683526001600160601b039091166020830152016101e8565b3480156105d557600080fd5b506102ad6105e4366004612638565b611a71565b3480156105f557600080fd5b506104cb610604366004612782565b611bdf565b34801561061557600080fd5b506102ad610624366004612722565b611bf4565b34801561063557600080fd5b506103ba6106443660046125e6565b60fd6020526000908152604090205481565b60006001600160e01b03198216632065a08b60e01b148061068757506301ffc9a760e01b6001600160e01b03198316145b92915050565b600082815260fc6020526040908190205490516328b50b3560e11b81526004810184905233602482015283916001600160a01b03169063516a166a90604401602060405180830381865afa1580156106e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070d9190612ae8565b61072a57604051634745a29b60e01b815260040160405180910390fd5b600083815260fd60205260409020829055811561077c57600083815260fc6020526040902080546001600160a01b0381166001600160a01b928390046001600160601b031617918202179091556107aa565b600083815260fc6020526040902080546001600160a01b0381166001600160a01b9283900416918202179091555b50827f8ad9db565fe90ae9d4d50c51a4bf38505bfc2013675dbfd3510e0d6a4d050ba5836040516107dd91815260200190565b60405180910390a2505050565b600082815260fc6020526040908190205490516328b50b3560e11b81526004810184905233602482015283916001600160a01b03169063516a166a90604401602060405180830381865afa158015610846573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086a9190612ae8565b61088757604051634745a29b60e01b815260040160405180910390fd5b600083815260ff60205260409020805461ffff60801b1916600160801b61ffff851690810291909117909155156108f357600083815260fc6020526040902080546001600160a01b0381166008600160a01b928390046001600160601b03161791820217909155610921565b600083815260fc6020526040902080546001600160a01b0381166008600160a01b9283900416918202179091555b5060405161ffff8316815283907f11424874391782446f3957eb6ca27caa9af2d78d87980762c13090bd2845f71f906020016107dd565b600082815260fc6020526040908190205490516328b50b3560e11b81526004810184905233602482015283916001600160a01b03169063516a166a90604401602060405180830381865afa1580156109b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d89190612ae8565b6109f557604051634745a29b60e01b815260040160405180910390fd5b600083815260ff6020526040902080546fffffffffffffffffffffffffffffffff19166001600160801b03841690811790915515610a6857600083815260fc6020526040902080546001600160a01b0381166004600160a01b928390046001600160601b03161791820217909155610a96565b600083815260fc6020526040902080546001600160a01b0381166004600160a01b9283900416918202179091555b506040516001600160801b038316815283907f27831fc2ef572cce1298d5d9fc3cc1304eb5dfcea21d2190e5ad5943e4fa14fc906020016107dd565b600086815260fc6020526040908190205490516328b50b3560e11b81526004810188905233602482015287916001600160a01b03169063516a166a90604401602060405180830381865afa158015610b2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b529190612ae8565b610b6f57604051634745a29b60e01b815260040160405180910390fd5b600087815260fc6020526040902054600160a01b90046001600160601b03166001600160801b03871615610ba65760048117610bab565b600481165b905061ffff861615610bc05760088117610bc5565b600881165b905061ffff851615610bda5760108117610bdf565b601081165b905061ffff841615610bf45760208117610bf9565b602081165b905061ffff831615610c0e5760408117610c13565b604081165b90508060fc60008a815260200190815260200160002060000160146101000a8154816001600160601b0302191690836001600160601b031602179055506040518060a00160405280886001600160801b031681526020018761ffff1681526020018661ffff1681526020018561ffff1681526020018461ffff1681525060ff60008a815260200190815260200160002060008201518160000160006101000a8154816001600160801b0302191690836001600160801b0316021790555060208201518160000160106101000a81548161ffff021916908361ffff16021790555060408201518160000160126101000a81548161ffff021916908361ffff16021790555060608201518160000160146101000a81548161ffff021916908361ffff16021790555060808201518160000160166101000a81548161ffff021916908361ffff160217905550905050877f27831fc2ef572cce1298d5d9fc3cc1304eb5dfcea21d2190e5ad5943e4fa14fc88604051610d9e91906001600160801b0391909116815260200190565b60405180910390a260405161ffff8716815288907f11424874391782446f3957eb6ca27caa9af2d78d87980762c13090bd2845f71f9060200160405180910390a260405161ffff8616815288907f4554b2837a782a075cb46bd0c681b73ef5e49cbcbeb3323e6f1fd9d3ec93a4c39060200160405180910390a260405161ffff8516815288907fc9b39ee25167b4c4f1ba319c61772350b508db76f73d0b25575173210386d9f39060200160405180910390a260405161ffff8416815288907f3d36ae2226b041dc65d74c772bae84c40b4ac6d1da927d7b633940d819c09c1a9060200160405180910390a25050505050505050565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610ee55760405162461bcd60e51b8152600401610edc90612b0a565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610f2e600080516020612ded833981519152546001600160a01b031690565b6001600160a01b031614610f545760405162461bcd60e51b8152600401610edc90612b56565b610f5d81611c6a565b60408051600080825260208201909252610f7991839190611c72565b50565b600083815260fc6020526040908190205490516328b50b3560e11b81526004810185905233602482015284916001600160a01b03169063516a166a90604401602060405180830381865afa158015610fd8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ffc9190612ae8565b61101957604051634745a29b60e01b815260040160405180910390fd5b600084815260fe6020526040902061103290848461255c565b541561107357600084815260fc6020526040902080546001600160a01b0381166002600160a01b928390046001600160601b031617918202179091556110a1565b600084815260fc6020526040902080546001600160a01b0381166002600160a01b9283900416918202179091555b50837fd5a074e1c505de1aae7c94787f2e46faf07aceba6fc0c6a5f82f223ca1de2c5784846040516110d4929190612ba2565b60405180910390a250505050565b600082815260fc6020526040908190205490516328b50b3560e11b81526004810184905233602482015283916001600160a01b03169063516a166a90604401602060405180830381865afa15801561113e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111629190612ae8565b61117f57604051634745a29b60e01b815260040160405180910390fd5b600083815260fc60205260408082208054600160a01b8082048719166001600160601b0316026001600160a01b039091161790555184917f43a5deaf1b43fdbf7f75cf9745d253c5d17328910ab7c757e664869316fe973391a2505050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036112265760405162461bcd60e51b8152600401610edc90612b0a565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661126f600080516020612ded833981519152546001600160a01b031690565b6001600160a01b0316146112955760405162461bcd60e51b8152600401610edc90612b56565b61129e82611c6a565b6112aa82826001611c72565b5050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461134e5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610edc565b50600080516020612ded83398151915290565b611369611de2565b6113736000611e3c565b565b600082815260fc6020526040908190205490516328b50b3560e11b81526004810184905233602482015283916001600160a01b03169063516a166a90604401602060405180830381865afa1580156113d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f59190612ae8565b61141257604051634745a29b60e01b815260040160405180910390fd5b600083815260ff60205260409020805461ffff60b01b1916600160b01b61ffff8516908102919091179091551561148257600083815260fc60205260409081902080546001600160601b03600160a01b808304919091169093179283026001600160a01b039091161790556114b1565b600083815260fc6020526040908190208054600160a01b8082049093169283026001600160a01b039091161790555b5060405161ffff8316815283907f3d36ae2226b041dc65d74c772bae84c40b4ac6d1da927d7b633940d819c09c1a906020016107dd565b600054610100900460ff16158080156115085750600054600160ff909116105b806115225750303b158015611522575060005460ff166001145b6115855760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610edc565b6000805460ff1916600117905580156115a8576000805461ff0019166101001790555b6115b0611e8e565b6115b8611eb5565b8015610f79576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b600081815260fe602090815260409182902080548351818402810184019094528084526060939283018282801561165657602002820191906000526020600020905b815481526020019060010190808311611642575b50505050509050919050565b606061167060008484611ee4565b9392505050565b600082815260fc6020526040908190205490516328b50b3560e11b81526004810184905233602482015283916001600160a01b03169063516a166a90604401602060405180830381865afa1580156116d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f79190612ae8565b61171457604051634745a29b60e01b815260040160405180910390fd5b600083815260ff60205260409020805461ffff60a01b1916600160a01b61ffff8516908102919091179091551561178557600083815260fc6020908152604090912080546001600160601b03600160a01b808304919091169093179283026001600160a01b039091161790556117b5565b600083815260fc602090815260409091208054600160a01b8082049093169283026001600160a01b039091161790555b5060405161ffff8316815283907fc9b39ee25167b4c4f1ba319c61772350b508db76f73d0b25575173210386d9f3906020016107dd565b600080600061183085858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506120a992505050565b600081815260fb602052604090205491935091506001600160a01b0316331461186c5760405163ae7fd2eb60e01b815260040160405180910390fd5b6040805180820182523381526000602080830182815286835260fc90915290839020915190516001600160601b0316600160a01b026001600160a01b03919091161790555182907f76a77f5ff7e4ca0adac1c931a7ad2ea83bfb7e6b8603e81917dd2dca7e90625c906118e29088908890612c04565b60405180910390a2509392505050565b6118fa611de2565b600080611941600086868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092939250506120c09050565b9092509050611951600185612c2e565b81146119705760405163b444c4ed60e01b815260040160405180910390fd5b60408051600060208083018290528284018690528351808403850181526060840180865281519183019190912080845260fb835285842080546001600160a01b038b166001600160a01b0319918216811790925560fc90945295909320805490921685179091556309201c8b60e11b905291906312403916906119fb90899089908690606401612c41565b600060405180830381600087803b158015611a1557600080fd5b505af1158015611a29573d6000803e3d6000fd5b50505050807f7db14709557f4e6eec0d0c5f0c1855b31e9667a13ef65c90c284987c677d4004878787604051611a6193929190612c65565b60405180910390a2505050505050565b600082815260fc6020526040908190205490516328b50b3560e11b81526004810184905233602482015283916001600160a01b03169063516a166a90604401602060405180830381865afa158015611acd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611af19190612ae8565b611b0e57604051634745a29b60e01b815260040160405180910390fd5b600083815260ff60205260409020805461ffff60901b1916600160901b61ffff85169081029190911790915515611b7a57600083815260fc6020526040902080546001600160a01b0381166010600160a01b928390046001600160601b03161791820217909155611ba8565b600083815260fc6020526040902080546001600160a01b0381166010600160a01b9283900416918202179091555b5060405161ffff8316815283907f4554b2837a782a075cb46bd0c681b73ef5e49cbcbeb3323e6f1fd9d3ec93a4c3906020016107dd565b6060611bec848484611ee4565b949350505050565b611bfc611de2565b6001600160a01b038116611c615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610edc565b610f7981611e3c565b610f79611de2565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615611caa57611ca5836121c7565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611d04575060408051601f3d908101601f19168201909252611d0191810190612c91565b60015b611d675760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610edc565b600080516020612ded8339815191528114611dd65760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610edc565b50611ca5838383612263565b60c9546001600160a01b031633146113735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610edc565b60c980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166113735760405162461bcd60e51b8152600401610edc90612caa565b600054610100900460ff16611edc5760405162461bcd60e51b8152600401610edc90612caa565b61137361228e565b60608167ffffffffffffffff811115611eff57611eff61280a565b604051908082528060200260200182016040528015611f3257816020015b6060815260200190600190039081611f1d5790505b50905060005b828110156120a1578415611ff4576000848483818110611f5a57611f5a612cf5565b9050602002810190611f6c9190612d0b565b611f7b91602491600491612d52565b611f8491612d7c565b9050858114611ff25760405162461bcd60e51b815260206004820152603460248201527f6d756c746963616c6c3a20416c6c207265636f726473206d7573742068617665604482015273040c240dac2e8c6d0d2dcce40dcc2dacad0c2e6d60631b6064820152608401610edc565b505b6000803086868581811061200a5761200a612cf5565b905060200281019061201c9190612d0b565b60405161202a929190612d9a565b600060405180830381855af49150503d8060008114612065576040519150601f19603f3d011682016040523d82523d6000602084013e61206a565b606091505b50915091508161207957600080fd5b8084848151811061208c5761208c612cf5565b60209081029190910101525050600101611f38565b509392505050565b6000806120b78360006122be565b91509150915091565b600080835183106121135760405162461bcd60e51b815260206004820152601e60248201527f726561644c6162656c3a20496e646578206f7574206f6620626f756e647300006044820152606401610edc565b600084848151811061212757612127612cf5565b016020015160f81c9050604081106121815760405162461bcd60e51b815260206004820152601960248201527f726561644c6162656c3a204c6162656c20746f6f206c6f6e67000000000000006044820152606401610edc565b80156121a35761219c85612196866001612daa565b836123c2565b92506121a8565b600092505b6121b28185612daa565b6121bd906001612daa565b9150509250929050565b6001600160a01b0381163b6122345760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610edc565b600080516020612ded83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61226c836123e6565b6000825111806122795750805b15611ca5576122888383612426565b50505050565b600054610100900460ff166122b55760405162461bcd60e51b8152600401610edc90612caa565b61137333611e3c565b6000806000806122ce86866120c0565b90925090508161234357600186516122e69190612c2e565b85146123345760405162461bcd60e51b815260206004820152601d60248201527f6e616d65686173683a204a756e6b20617420656e64206f66206e616d650000006044820152606401610edc565b50600092508291506123bb9050565b60008061235088846122be565b9092509050806123875760408051600060208201529081018590526060016040516020818303038152906040528051906020012090505b6040805160208101849052908101859052606001604051602081830303815290604052805190602001208195509550505050505b9250929050565b82516000906123d18385612daa565b11156123dc57600080fd5b5091016020012090565b6123ef816121c7565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606116708383604051806060016040528060278152602001612e0d602791396060600080856001600160a01b0316856040516124639190612dbd565b600060405180830381855af49150503d806000811461249e576040519150601f19603f3d011682016040523d82523d6000602084013e6124a3565b606091505b50915091506124b4868383876124be565b9695505050505050565b6060831561252d578251600003612526576001600160a01b0385163b6125265760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610edc565b5081611bec565b611bec83838151156125425781518083602001fd5b8060405162461bcd60e51b8152600401610edc9190612dd9565b828054828255906000526020600020908101928215612597579160200282015b8281111561259757823582559160200191906001019061257c565b506125a39291506125a7565b5090565b5b808211156125a357600081556001016125a8565b6000602082840312156125ce57600080fd5b81356001600160e01b03198116811461167057600080fd5b6000602082840312156125f857600080fd5b5035919050565b6000806040838503121561261257600080fd5b50508035926020909101359150565b803561ffff8116811461263357600080fd5b919050565b6000806040838503121561264b57600080fd5b8235915061265b60208401612621565b90509250929050565b80356001600160801b038116811461263357600080fd5b6000806040838503121561268e57600080fd5b8235915061265b60208401612664565b60008060008060008060c087890312156126b757600080fd5b863595506126c760208801612664565b94506126d560408801612621565b93506126e360608801612621565b92506126f160808801612621565b91506126ff60a08801612621565b90509295509295509295565b80356001600160a01b038116811461263357600080fd5b60006020828403121561273457600080fd5b6116708261270b565b60008083601f84011261274f57600080fd5b50813567ffffffffffffffff81111561276757600080fd5b6020830191508360208260051b85010111156123bb57600080fd5b60008060006040848603121561279757600080fd5b83359250602084013567ffffffffffffffff8111156127b557600080fd5b6127c18682870161273d565b9497909650939450505050565b600080604083850312156127e157600080fd5b8235915060208301356001600160601b03811681146127ff57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561283357600080fd5b61283c8361270b565b9150602083013567ffffffffffffffff8082111561285957600080fd5b818501915085601f83011261286d57600080fd5b81358181111561287f5761287f61280a565b604051601f8201601f19908116603f011681019083821181831017156128a7576128a761280a565b816040528281528860208487010111156128c057600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6020808252825182820181905260009190848201906040850190845b8181101561291a578351835292840192918401916001016128fe565b50909695505050505050565b6000806020838503121561293957600080fd5b823567ffffffffffffffff81111561295057600080fd5b61295c8582860161273d565b90969095509350505050565b60005b8381101561298357818101518382015260200161296b565b50506000910152565b600081518084526129a4816020860160208601612968565b601f01601f19169290920160200192915050565b600060208083016020845280855180835260408601915060408160051b87010192506020870160005b82811015612a0f57603f198886030184526129fd85835161298c565b945092850192908501906001016129e1565b5092979650505050505050565b60008083601f840112612a2e57600080fd5b50813567ffffffffffffffff811115612a4657600080fd5b6020830191508360208285010111156123bb57600080fd5b60008060208385031215612a7157600080fd5b823567ffffffffffffffff811115612a8857600080fd5b61295c85828601612a1c565b600080600060408486031215612aa957600080fd5b833567ffffffffffffffff811115612ac057600080fd5b612acc86828701612a1c565b9094509250612adf90506020850161270b565b90509250925092565b600060208284031215612afa57600080fd5b8151801515811461167057600080fd5b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6020808252810182905260006001600160fb1b03831115612bc257600080fd5b8260051b80856040850137919091016040019392505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b602081526000611bec602083018486612bdb565b634e487b7160e01b600052601160045260246000fd5b8181038181111561068757610687612c18565b604081526000612c55604083018587612bdb565b9050826020830152949350505050565b604081526000612c79604083018587612bdb565b905060018060a01b0383166020830152949350505050565b600060208284031215612ca357600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112612d2257600080fd5b83018035915067ffffffffffffffff821115612d3d57600080fd5b6020019150368190038213156123bb57600080fd5b60008085851115612d6257600080fd5b83861115612d6f57600080fd5b5050820193919092039150565b8035602083101561068757600019602084900360031b1b1692915050565b8183823760009101908152919050565b8082018082111561068757610687612c18565b60008251612dcf818460208701612968565b9190910192915050565b602081526000611670602083018461298c56fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122070a9f0e73254f89b10dbef9ecf7bdfc92f749197f3cc327e9f575c6c38e3afa264736f6c63430008160033",GB=t=>t.length>1;class uu extends si{constructor(...e){GB(e)?super(...e):super(W5,uc,e[0])}deploy(e){return super.deploy(e||{})}getDeployTransaction(e){return super.getDeployTransaction(e||{})}attach(e){return super.attach(e)}connect(e){return super.connect(e)}static createInterface(){return new t2(W5)}static connect(e,r){return new q2(e,W5,r)}}ct(uu,"bytecode",uc),ct(uu,"abi",W5);const V5=[{type:"constructor",inputs:[{name:"_ens",type:"address",internalType:"contract ENS"},{name:"_registrar",type:"address",internalType:"contract IBaseRegistrar"},{name:"_metadataService",type:"address",internalType:"contract IMetadataService"}],stateMutability:"nonpayable"},{type:"function",name:"_tokens",inputs:[{name:"",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"allFusesBurned",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"fuseMask",type:"uint32",internalType:"uint32"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"approve",inputs:[{name:"to",type:"address",internalType:"address"},{name:"tokenId",type:"uint256",internalType:"uint256"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"balanceOf",inputs:[{name:"account",type:"address",internalType:"address"},{name:"id",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"balanceOfBatch",inputs:[{name:"accounts",type:"address[]",internalType:"address[]"},{name:"ids",type:"uint256[]",internalType:"uint256[]"}],outputs:[{name:"",type:"uint256[]",internalType:"uint256[]"}],stateMutability:"view"},{type:"function",name:"canExtendSubnames",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"addr",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"canModifyName",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"addr",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"controllers",inputs:[{name:"",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"ens",inputs:[],outputs:[{name:"",type:"address",internalType:"contract ENS"}],stateMutability:"view"},{type:"function",name:"extendExpiry",inputs:[{name:"parentNode",type:"bytes32",internalType:"bytes32"},{name:"labelhash",type:"bytes32",internalType:"bytes32"},{name:"expiry",type:"uint64",internalType:"uint64"}],outputs:[{name:"",type:"uint64",internalType:"uint64"}],stateMutability:"nonpayable"},{type:"function",name:"getApproved",inputs:[{name:"id",type:"uint256",internalType:"uint256"}],outputs:[{name:"operator",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getData",inputs:[{name:"id",type:"uint256",internalType:"uint256"}],outputs:[{name:"owner",type:"address",internalType:"address"},{name:"fuses",type:"uint32",internalType:"uint32"},{name:"expiry",type:"uint64",internalType:"uint64"}],stateMutability:"view"},{type:"function",name:"isApprovedForAll",inputs:[{name:"account",type:"address",internalType:"address"},{name:"operator",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"isWrapped",inputs:[{name:"parentNode",type:"bytes32",internalType:"bytes32"},{name:"labelhash",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"isWrapped",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"metadataService",inputs:[],outputs:[{name:"",type:"address",internalType:"contract IMetadataService"}],stateMutability:"view"},{type:"function",name:"name",inputs:[],outputs:[{name:"",type:"string",internalType:"string"}],stateMutability:"view"},{type:"function",name:"names",inputs:[{name:"",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"bytes",internalType:"bytes"}],stateMutability:"view"},{type:"function",name:"onERC721Received",inputs:[{name:"to",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"tokenId",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"owner",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"ownerOf",inputs:[{name:"id",type:"uint256",internalType:"uint256"}],outputs:[{name:"owner",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"recoverFunds",inputs:[{name:"_token",type:"address",internalType:"address"},{name:"_to",type:"address",internalType:"address"},{name:"_amount",type:"uint256",internalType:"uint256"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"registerAndWrapETH2LD",inputs:[{name:"label",type:"string",internalType:"string"},{name:"wrappedOwner",type:"address",internalType:"address"},{name:"duration",type:"uint256",internalType:"uint256"},{name:"resolver",type:"address",internalType:"address"},{name:"ownerControlledFuses",type:"uint16",internalType:"uint16"}],outputs:[{name:"registrarExpiry",type:"uint256",internalType:"uint256"}],stateMutability:"nonpayable"},{type:"function",name:"registrar",inputs:[],outputs:[{name:"",type:"address",internalType:"contract IBaseRegistrar"}],stateMutability:"view"},{type:"function",name:"renew",inputs:[{name:"tokenId",type:"uint256",internalType:"uint256"},{name:"duration",type:"uint256",internalType:"uint256"}],outputs:[{name:"expires",type:"uint256",internalType:"uint256"}],stateMutability:"nonpayable"},{type:"function",name:"renounceOwnership",inputs:[],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"safeBatchTransferFrom",inputs:[{name:"from",type:"address",internalType:"address"},{name:"to",type:"address",internalType:"address"},{name:"ids",type:"uint256[]",internalType:"uint256[]"},{name:"amounts",type:"uint256[]",internalType:"uint256[]"},{name:"data",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"safeTransferFrom",inputs:[{name:"from",type:"address",internalType:"address"},{name:"to",type:"address",internalType:"address"},{name:"id",type:"uint256",internalType:"uint256"},{name:"amount",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setApprovalForAll",inputs:[{name:"operator",type:"address",internalType:"address"},{name:"approved",type:"bool",internalType:"bool"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setChildFuses",inputs:[{name:"parentNode",type:"bytes32",internalType:"bytes32"},{name:"labelhash",type:"bytes32",internalType:"bytes32"},{name:"fuses",type:"uint32",internalType:"uint32"},{name:"expiry",type:"uint64",internalType:"uint64"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setController",inputs:[{name:"controller",type:"address",internalType:"address"},{name:"active",type:"bool",internalType:"bool"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setFuses",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"ownerControlledFuses",type:"uint16",internalType:"uint16"}],outputs:[{name:"",type:"uint32",internalType:"uint32"}],stateMutability:"nonpayable"},{type:"function",name:"setMetadataService",inputs:[{name:"_metadataService",type:"address",internalType:"contract IMetadataService"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setRecord",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"owner",type:"address",internalType:"address"},{name:"resolver",type:"address",internalType:"address"},{name:"ttl",type:"uint64",internalType:"uint64"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setResolver",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"resolver",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setSubnodeOwner",inputs:[{name:"parentNode",type:"bytes32",internalType:"bytes32"},{name:"label",type:"string",internalType:"string"},{name:"owner",type:"address",internalType:"address"},{name:"fuses",type:"uint32",internalType:"uint32"},{name:"expiry",type:"uint64",internalType:"uint64"}],outputs:[{name:"node",type:"bytes32",internalType:"bytes32"}],stateMutability:"nonpayable"},{type:"function",name:"setSubnodeRecord",inputs:[{name:"parentNode",type:"bytes32",internalType:"bytes32"},{name:"label",type:"string",internalType:"string"},{name:"owner",type:"address",internalType:"address"},{name:"resolver",type:"address",internalType:"address"},{name:"ttl",type:"uint64",internalType:"uint64"},{name:"fuses",type:"uint32",internalType:"uint32"},{name:"expiry",type:"uint64",internalType:"uint64"}],outputs:[{name:"node",type:"bytes32",internalType:"bytes32"}],stateMutability:"nonpayable"},{type:"function",name:"setTTL",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"ttl",type:"uint64",internalType:"uint64"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setUpgradeContract",inputs:[{name:"_upgradeAddress",type:"address",internalType:"contract INameWrapperUpgrade"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"supportsInterface",inputs:[{name:"interfaceId",type:"bytes4",internalType:"bytes4"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"transferOwnership",inputs:[{name:"newOwner",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"unwrap",inputs:[{name:"parentNode",type:"bytes32",internalType:"bytes32"},{name:"labelhash",type:"bytes32",internalType:"bytes32"},{name:"controller",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"unwrapETH2LD",inputs:[{name:"labelhash",type:"bytes32",internalType:"bytes32"},{name:"registrant",type:"address",internalType:"address"},{name:"controller",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"upgrade",inputs:[{name:"name",type:"bytes",internalType:"bytes"},{name:"extraData",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"upgradeContract",inputs:[],outputs:[{name:"",type:"address",internalType:"contract INameWrapperUpgrade"}],stateMutability:"view"},{type:"function",name:"uri",inputs:[{name:"tokenId",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"string",internalType:"string"}],stateMutability:"view"},{type:"function",name:"wrap",inputs:[{name:"name",type:"bytes",internalType:"bytes"},{name:"wrappedOwner",type:"address",internalType:"address"},{name:"resolver",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"wrapETH2LD",inputs:[{name:"label",type:"string",internalType:"string"},{name:"wrappedOwner",type:"address",internalType:"address"},{name:"ownerControlledFuses",type:"uint16",internalType:"uint16"},{name:"resolver",type:"address",internalType:"address"}],outputs:[{name:"expiry",type:"uint64",internalType:"uint64"}],stateMutability:"nonpayable"},{type:"event",name:"Approval",inputs:[{name:"owner",type:"address",indexed:!0,internalType:"address"},{name:"approved",type:"address",indexed:!0,internalType:"address"},{name:"tokenId",type:"uint256",indexed:!0,internalType:"uint256"}],anonymous:!1},{type:"event",name:"ApprovalForAll",inputs:[{name:"account",type:"address",indexed:!0,internalType:"address"},{name:"operator",type:"address",indexed:!0,internalType:"address"},{name:"approved",type:"bool",indexed:!1,internalType:"bool"}],anonymous:!1},{type:"event",name:"ControllerChanged",inputs:[{name:"controller",type:"address",indexed:!0,internalType:"address"},{name:"active",type:"bool",indexed:!1,internalType:"bool"}],anonymous:!1},{type:"event",name:"ExpiryExtended",inputs:[{name:"node",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"expiry",type:"uint64",indexed:!1,internalType:"uint64"}],anonymous:!1},{type:"event",name:"FusesSet",inputs:[{name:"node",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"fuses",type:"uint32",indexed:!1,internalType:"uint32"}],anonymous:!1},{type:"event",name:"NameUnwrapped",inputs:[{name:"node",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"owner",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"event",name:"NameWrapped",inputs:[{name:"node",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"name",type:"bytes",indexed:!1,internalType:"bytes"},{name:"owner",type:"address",indexed:!1,internalType:"address"},{name:"fuses",type:"uint32",indexed:!1,internalType:"uint32"},{name:"expiry",type:"uint64",indexed:!1,internalType:"uint64"}],anonymous:!1},{type:"event",name:"OwnershipTransferred",inputs:[{name:"previousOwner",type:"address",indexed:!0,internalType:"address"},{name:"newOwner",type:"address",indexed:!0,internalType:"address"}],anonymous:!1},{type:"event",name:"TransferBatch",inputs:[{name:"operator",type:"address",indexed:!0,internalType:"address"},{name:"from",type:"address",indexed:!0,internalType:"address"},{name:"to",type:"address",indexed:!0,internalType:"address"},{name:"ids",type:"uint256[]",indexed:!1,internalType:"uint256[]"},{name:"values",type:"uint256[]",indexed:!1,internalType:"uint256[]"}],anonymous:!1},{type:"event",name:"TransferSingle",inputs:[{name:"operator",type:"address",indexed:!0,internalType:"address"},{name:"from",type:"address",indexed:!0,internalType:"address"},{name:"to",type:"address",indexed:!0,internalType:"address"},{name:"id",type:"uint256",indexed:!1,internalType:"uint256"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"event",name:"URI",inputs:[{name:"value",type:"string",indexed:!1,internalType:"string"},{name:"id",type:"uint256",indexed:!0,internalType:"uint256"}],anonymous:!1},{type:"error",name:"CannotUpgrade",inputs:[]},{type:"error",name:"IncompatibleParent",inputs:[]},{type:"error",name:"IncorrectTargetOwner",inputs:[{name:"owner",type:"address",internalType:"address"}]},{type:"error",name:"IncorrectTokenType",inputs:[]},{type:"error",name:"LabelMismatch",inputs:[{name:"labelHash",type:"bytes32",internalType:"bytes32"},{name:"expectedLabelhash",type:"bytes32",internalType:"bytes32"}]},{type:"error",name:"LabelTooLong",inputs:[{name:"label",type:"string",internalType:"string"}]},{type:"error",name:"LabelTooShort",inputs:[]},{type:"error",name:"NameIsNotWrapped",inputs:[]},{type:"error",name:"OperationProhibited",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"}]},{type:"error",name:"Unauthorised",inputs:[{name:"node",type:"bytes32",internalType:"bytes32"},{name:"addr",type:"address",internalType:"address"}]}],ac="0x60c06040523480156200001157600080fd5b5060405162005d2f38038062005d2f8339810160408190526200003491620002f8565b823362000041816200028f565b6040516302571be360e01b81527f91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e260048201526000906001600160a01b038416906302571be390602401602060405180830381865afa158015620000a9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000cf91906200034c565b604051630f41a04d60e11b81526001600160a01b03848116600483015291925090821690631e83409a906024016020604051808303816000875af11580156200011c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000142919062000373565b505050506001600160a01b0383811660805282811660a052600580546001600160a01b031916918316919091179055600163fffeffff60a01b03197fafa26c20e8b3d9a2853d642cfe1021dae26242ffedfac91c97aab212c1a4b93b8190557fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb4955604080518082019091526001815260006020808301829052908052600690527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f89062000210908262000434565b506040805180820190915260058152626cae8d60e31b6020808301919091527f93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae600052600690527ffb9e8e321b8a5ec48f12a7b41f22c6e595d761285c9eb19d8dda7c99edf1b54f9062000285908262000434565b5050505062000500565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114620002f557600080fd5b50565b6000806000606084860312156200030e57600080fd5b83516200031b81620002df565b60208501519093506200032e81620002df565b60408501519092506200034181620002df565b809150509250925092565b6000602082840312156200035f57600080fd5b81516200036c81620002df565b9392505050565b6000602082840312156200038657600080fd5b5051919050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620003b857607f821691505b602082108103620003d957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200042f576000816000526020600020601f850160051c810160208610156200040a5750805b601f850160051c820191505b818110156200042b5782815560010162000416565b5050505b505050565b81516001600160401b038111156200045057620004506200038d565b6200046881620004618454620003a3565b84620003df565b602080601f831160018114620004a05760008415620004875750858301515b600019600386901b1c1916600185901b1785556200042b565b600085815260208120601f198616915b82811015620004d157888601518255948401946001909101908401620004b0565b5085821015620004f05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a0516157226200060d6000396000818161047301528181610aee01528181610b9101528181610c20015281816118b80152818161194e015281816119fc01528181611ace01528181611b3f01528181611bc401528181611dd801528181611f14015281816120460152818161219e0152818161222401526129620152600081816104c001528181610a7401528181610d6a01528181610ef901528181610faa015281816112b601528181611f99015281816120cb015281816122cf015281816124810152818161275201528181612b9b01528181612c4901528181612cfe01528181612d7f0152818161328a015281816133dd015281816136450152613bf101526157226000f3fe608060405234801561001057600080fd5b506004361061029f5760003560e01c80636352211e11610167578063c93ab3fd116100ce578063e985e9c511610087578063e985e9c5146106d4578063eb8ae530146106e7578063ed70554d146106fa578063f242432a1461071a578063f2fde38b1461072d578063fd0cd0d91461074057600080fd5b8063c93ab3fd14610652578063cf40882314610665578063d8c9921a14610678578063d9a50c121461068b578063da8c229e1461069e578063e0dba60f146106c157600080fd5b8063a22cb46511610120578063a22cb465146105e0578063a4014982146105f3578063adf4960a14610606578063b6bcad2614610619578063c475abff1461062c578063c658e0861461063f57600080fd5b80636352211e146105635780636e5d6ad214610576578063715018a6146105a15780638b4dfa75146105a95780638cf8b41e146105bc5780638da5cb5b146105cf57600080fd5b80631f4e15041161020b5780633f15457f116101c45780633f15457f146104bb578063402906fc146104e257806341415eab1461050a5780634e1273f41461051d578063530954671461053d5780635d3590d51461055057600080fd5b80631f4e15041461043557806320c38e2b1461044857806324c1af441461045b5780632b20e3971461046e5780632eb2c2d61461049557806333c69ea9146104a857600080fd5b80630e4cd7251161025d5780630e4cd725146103aa5780630e89341c146103bd57806314ab9038146103d0578063150b7a02146103e35780631534e1771461040f5780631896f70a1461042257600080fd5b8062fdd58e146102a45780630178fe3f146102ca57806301ffc9a71461031057806306fdde0314610333578063081812fc1461036a578063095ea7b314610395575b600080fd5b6102b76102b236600461443e565b610753565b6040519081526020015b60405180910390f35b6102dd6102d836600461446a565b610800565b604080516001600160a01b03909416845263ffffffff90921660208401526001600160401b0316908201526060016102c1565b61032361031e366004614499565b610830565b60405190151581526020016102c1565b61035d6040518060400160405280600b81526020016a2730b6b2abb930b83832b960a91b81525081565b6040516102c19190614506565b61037d61037836600461446a565b610870565b6040516001600160a01b0390911681526020016102c1565b6103a86103a336600461443e565b6108b5565b005b6103236103b8366004614519565b6108fb565b61035d6103cb36600461446a565b610975565b6103a86103de366004614565565b6109e7565b6103f66103f13660046145d9565b610ae1565b6040516001600160e01b031990911681526020016102c1565b6103a861041d36600461464b565b610cc1565b6103a8610430366004614519565b610ceb565b60075461037d906001600160a01b031681565b61035d61045636600461446a565b610da1565b6102b7610469366004614741565b610e3b565b61037d7f000000000000000000000000000000000000000000000000000000000000000081565b6103a86104a336600461486c565b611021565b6103a86104b6366004614919565b611259565b61037d7f000000000000000000000000000000000000000000000000000000000000000081565b6104f56104f0366004614971565b61142a565b60405163ffffffff90911681526020016102c1565b610323610518366004614519565b6114c7565b61053061052b366004614994565b611500565b6040516102c19190614a92565b60055461037d906001600160a01b031681565b6103a861055e366004614aa5565b611621565b61037d61057136600461446a565b6116a2565b610589610584366004614ae6565b6116ad565b6040516001600160401b0390911681526020016102c1565b6103a86117e0565b6103a86105b7366004614b1b565b6117f4565b6105896105ca366004614b5d565b61191a565b6000546001600160a01b031661037d565b6103a86105ee366004614be5565b611c96565b6102b7610601366004614c13565b611d6c565b610323610614366004614c93565b611ead565b6103a861062736600461464b565b611ed2565b6102b761063a366004614cb6565b61212a565b6102b761064d366004614cd8565b612394565b6103a8610660366004614d4a565b61255c565b6103a8610673366004614db5565b6126af565b6103a8610686366004614ded565b612849565b610323610699366004614cb6565b612912565b6103236106ac36600461464b565b60046020526000908152604090205460ff1681565b6103a86106cf366004614be5565b6129f1565b6103236106e2366004614e1b565b612a59565b6103a86106f5366004614e49565b612a87565b6102b761070836600461446a565b60016020526000908152604090205481565b6103a8610728366004614eb0565b612e2b565b6103a861073b36600461464b565b612ed8565b61032361074e36600461446a565b612f4e565b60006001600160a01b0383166107c45760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b60006107cf836116a2565b9050836001600160a01b0316816001600160a01b0316036107f45760019150506107fa565b60009150505b92915050565b60008181526001602052604090205460a081901c60c082901c610824838383613026565b90959094509092509050565b60006001600160e01b03198216631b05885b60e31b148061086157506001600160e01b03198216630a85bd0160e11b145b806107fa57506107fa8261305c565b60008061087c836116a2565b90506001600160a01b0381166108955750600092915050565b6000838152600360205260409020546001600160a01b03165b9392505050565b60006108c082610800565b50915050603f1960408216016108ec5760405163a2a7201360e01b8152600481018390526024016107bb565b6108f683836130ac565b505050565b600080808061090986610800565b925092509250846001600160a01b0316836001600160a01b0316148061093457506109348386612a59565b8061095857506001600160a01b03851661094d87610870565b6001600160a01b0316145b801561096b575061096982826131bc565b155b9695505050505050565b6005546040516303a24d0760e21b8152600481018390526060916001600160a01b031690630e89341c90602401600060405180830381865afa1580156109bf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107fa9190810190614f18565b816109f281336114c7565b610a1357803360405163168ab55d60e31b81526004016107bb929190614f8f565b8260106000610a2183610800565b5091505063ffffffff8282161615610a4f5760405163a2a7201360e01b8152600481018490526024016107bb565b604051630295720760e31b8152600481018790526001600160401b03861660248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906314ab9038906044015b600060405180830381600087803b158015610ac157600080fd5b505af1158015610ad5573d6000803e3d6000fd5b50505050505050505050565b6000336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b2c5760405163032634a760e31b815260040160405180910390fd5b6000808080610b3d86880188614fa6565b83516020850120939750919550935091508890808214610b7a576040516331970f3360e21b815260048101829052602481018390526044016107bb565b604051630a3b53db60e21b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906328ed4f6c90610bc89085903090600401614f8f565b600060405180830381600087803b158015610be257600080fd5b505af1158015610bf6573d6000803e3d6000fd5b5050604051636b727d4360e11b8152600481018d9052600092506276a70091506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d6e4fa8690602401602060405180830381865afa158015610c67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8b919061500d565b610c95919061503c565b9050610ca887878761ffff1684886131ec565b50630a85bd0160e11b9c9b505050505050505050505050565b610cc96132fd565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b81610cf681336114c7565b610d1757803360405163168ab55d60e31b81526004016107bb929190614f8f565b8260086000610d2583610800565b5091505063ffffffff8282161615610d535760405163a2a7201360e01b8152600481018490526024016107bb565b604051630c4b7b8560e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631896f70a90610aa79089908990600401614f8f565b60066020526000908152604090208054610dba90615063565b80601f0160208091040260200160405190810160405280929190818152602001828054610de690615063565b8015610e335780601f10610e0857610100808354040283529160200191610e33565b820191906000526020600020905b815481529060010190602001808311610e1657829003601f168201915b505050505081565b600087610e4881336114c7565b610e6957803360405163168ab55d60e31b81526004016107bb929190614f8f565b87516020890120610e7a8a82613357565b9250610e868a84613383565b610e9083866134c1565b610e9b8a848b6134f4565b50610ea88a8487876135c1565b9350610eb383613607565b610f68576040516305ef2c7f60e41b8152600481018b9052602481018290523060448201526001600160a01b0388811660648301526001600160401b03881660848301527f00000000000000000000000000000000000000000000000000000000000000001690635ef2c7f09060a401600060405180830381600087803b158015610f3d57600080fd5b505af1158015610f51573d6000803e3d6000fd5b50505050610f638a848b8b89896136c0565b611014565b6040516305ef2c7f60e41b8152600481018b9052602481018290523060448201526001600160a01b0388811660648301526001600160401b03881660848301527f00000000000000000000000000000000000000000000000000000000000000001690635ef2c7f09060a401600060405180830381600087803b158015610fee57600080fd5b505af1158015611002573d6000803e3d6000fd5b505050506110148a848b8b89896136f7565b5050979650505050505050565b81518351146110835760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016107bb565b6001600160a01b0384166110a95760405162461bcd60e51b81526004016107bb9061509d565b6001600160a01b0385163314806110c557506110c58533612a59565b61112c5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016107bb565b60005b83518110156111ec57600084828151811061114c5761114c6150e2565b60200260200101519050600084838151811061116a5761116a6150e2565b60200260200101519050600080600061118285610800565b9250925092506111938583836137bb565b8360011480156111b457508a6001600160a01b0316836001600160a01b0316145b6111d05760405162461bcd60e51b81526004016107bb906150f8565b6111dc858b8484613864565b505050505080600101905061112f565b50836001600160a01b0316856001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161123c929190615142565b60405180910390a46112523386868686866138a6565b5050505050565b60006112658585613357565b905061127181846134c1565b6000808061127e84610800565b919450925090506001600160a01b038316158061132d57506040516302571be360e01b81526004810185905230906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906302571be390602401602060405180830381865afa1580156112fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113219190615170565b6001600160a01b031614155b1561134b57604051635374b59960e01b815260040160405180910390fd5b6000806113578a610800565b90935091508a90506113935761136d86336114c7565b61138e57853360405163168ab55d60e31b81526004016107bb929190614f8f565b6113be565b61139d8a336114c7565b6113be57893360405163168ab55d60e31b81526004016107bb929190614f8f565b6113c9868984613a01565b6113d4878483613a3c565b9650620100008416158015906113f857508363ffffffff1688851763ffffffff1614155b156114195760405163a2a7201360e01b8152600481018790526024016107bb565b96831796610ad586868a868b613a82565b60008261143781336114c7565b61145857803360405163168ab55d60e31b81526004016107bb929190614f8f565b836002600061146683610800565b5091505063ffffffff82821616156114945760405163a2a7201360e01b8152600481018490526024016107bb565b600080806114a18a610800565b9250925092506114ba8a84848c61ffff16178485613a82565b5098975050505050505050565b60008080806114d586610800565b925092509250846001600160a01b0316836001600160a01b0316148061095857506109588386612a59565b606081518351146115655760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016107bb565b600083516001600160401b0381111561158057611580614668565b6040519080825280602002602001820160405280156115a9578160200160208202803683370190505b50905060005b8451811015611619576115f48582815181106115cd576115cd6150e2565b60200260200101518583815181106115e7576115e76150e2565b6020026020010151610753565b828281518110611606576116066150e2565b60209081029190910101526001016115af565b509392505050565b6116296132fd565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af1158015611678573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169c919061518d565b50505050565b60006107fa82613b29565b6000806116ba8585613357565b90506116c581613607565b6116e257604051635374b59960e01b815260040160405180910390fd5b60006116ee86336108fb565b905080158015611705575061170382336114c7565b155b1561172757813360405163168ab55d60e31b81526004016107bb929190614f8f565b6000808061173485610800565b9250925092508315801561174b5750620400008216155b1561176c5760405163a2a7201360e01b8152600481018690526024016107bb565b60006117778a610800565b92505050611786888383613a3c565b97506117948685858b613b3f565b6040516001600160401b038916815286907ff675815a0817338f93a7da433f6bd5f5542f1029b11b455191ac96c7f6a9b1329060200160405180910390a2509598975050505050505050565b6117e86132fd565b6117f26000613b55565b565b61180c6000805160206156cd83398151915284613357565b61181681336114c7565b61183757803360405163168ab55d60e31b81526004016107bb929190614f8f565b306001600160a01b0384160361186b57604051632ca49b0d60e11b81526001600160a01b03841660048201526024016107bb565b61188c6118866000805160206156cd83398151915286613357565b83613ba5565b604051632142170760e11b81523060048201526001600160a01b038481166024830152604482018690527f000000000000000000000000000000000000000000000000000000000000000016906342842e0e90606401600060405180830381600087803b1580156118fc57600080fd5b505af1158015611910573d6000803e3d6000fd5b5050505050505050565b600080868660405161192d9291906151aa565b6040519081900381206331a9108f60e11b82526004820181905291506000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636352211e90602401602060405180830381865afa15801561199d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119c19190615170565b90506001600160a01b0381163314801590611a69575060405163e985e9c560e01b81526001600160a01b0382811660048301523360248301527f0000000000000000000000000000000000000000000000000000000000000000169063e985e9c590604401602060405180830381865afa158015611a43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a67919061518d565b155b15611aa257611a866000805160206156cd83398151915283613357565b3360405163168ab55d60e31b81526004016107bb929190614f8f565b6040516323b872dd60e01b81526001600160a01b038281166004830152306024830152604482018490527f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90606401600060405180830381600087803b158015611b1257600080fd5b505af1158015611b26573d6000803e3d6000fd5b5050604051630a3b53db60e21b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506328ed4f6c9150611b789085903090600401614f8f565b600060405180830381600087803b158015611b9257600080fd5b505af1158015611ba6573d6000803e3d6000fd5b5050604051636b727d4360e11b8152600481018590526276a70092507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316915063d6e4fa8690602401602060405180830381865afa158015611c14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c38919061500d565b611c42919061503c565b9250611c8b88888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508a9250505061ffff881686886131ec565b505095945050505050565b6001600160a01b0382163303611d005760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107bb565b3360008181526002602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081526004602052604081205460ff16611d9b5760405162461bcd60e51b81526004016107bb906151ba565b60008787604051611dad9291906151aa565b604051908190038120633f2891eb60e21b8252600482018190523060248301526044820187905291507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063fca247ac906064016020604051808303816000875af1158015611e29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4d919061500d565b9150611ea288888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508a9250505061ffff8616611e9c6276a7008761503c565b886131ec565b509695505050505050565b600080611eb984610800565b50841663ffffffff908116908516149250505092915050565b611eda6132fd565b6007546001600160a01b031615611ffa5760075460405163a22cb46560e01b81526001600160a01b039182166004820152600060248201527f00000000000000000000000000000000000000000000000000000000000000009091169063a22cb46590604401600060405180830381600087803b158015611f5a57600080fd5b505af1158015611f6e573d6000803e3d6000fd5b505060075460405163a22cb46560e01b81526001600160a01b039182166004820152600060248201527f0000000000000000000000000000000000000000000000000000000000000000909116925063a22cb4659150604401600060405180830381600087803b158015611fe157600080fd5b505af1158015611ff5573d6000803e3d6000fd5b505050505b600780546001600160a01b0319166001600160a01b038316908117909155156121275760075460405163a22cb46560e01b81526001600160a01b039182166004820152600160248201527f00000000000000000000000000000000000000000000000000000000000000009091169063a22cb46590604401600060405180830381600087803b15801561208c57600080fd5b505af11580156120a0573d6000803e3d6000fd5b505060075460405163a22cb46560e01b81526001600160a01b039182166004820152600160248201527f0000000000000000000000000000000000000000000000000000000000000000909116925063a22cb4659150604401600060405180830381600087803b15801561211357600080fd5b505af1158015611252573d6000803e3d6000fd5b50565b3360009081526004602052604081205460ff166121595760405162461bcd60e51b81526004016107bb906151ba565b60006121736000805160206156cd83398151915285613357565b60405163c475abff60e01b815260048101869052602481018590529091506000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c475abff906044016020604051808303816000875af11580156121e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061220b919061500d565b6040516331a9108f60e11b8152600481018790529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636352211e90602401602060405180830381865afa92505050801561228f575060408051601f3d908101601f1916820190925261228c91810190615170565b60015b61229c5791506107fa9050565b6001600160a01b0381163014158061234657506040516302571be360e01b81526004810184905230906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906302571be390602401602060405180830381865afa158015612316573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061233a9190615170565b6001600160a01b031614155b15612355575091506107fa9050565b5060006123656276a7008361503c565b60008481526001602052604090205490915060a081901c61238885838386613b3f565b50919695505050505050565b6000866123a181336114c7565b6123c257803360405163168ab55d60e31b81526004016107bb929190614f8f565b600087876040516123d49291906151aa565b604051809103902090506123e88982613357565b92506123f48984613383565b6123fe83866134c1565b60006124418a858b8b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506134f492505050565b905061244f8a8588886135c1565b945061245a84613607565b612509576040516306ab592360e01b8152600481018b9052602481018390523060448201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906306ab5923906064016020604051808303816000875af11580156124d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124f6919061500d565b506125048482898989613c95565b61254f565b61254f8a858b8b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508d92508c91508b90506136f7565b5050509695505050505050565b60006125a2600086868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509293925050613cd79050565b6007549091506001600160a01b03166125ce5760405163093075b560e21b815260040160405180910390fd5b6125d881336114c7565b6125f957803360405163168ab55d60e31b81526004016107bb929190614f8f565b6000808061260684610800565b91945092509050600061261885610870565b905061262385613d96565b600760009054906101000a90046001600160a01b03166001600160a01b0316639198c2768a8a878787878e8e6040518963ffffffff1660e01b815260040161267298979695949392919061522b565b600060405180830381600087803b15801561268c57600080fd5b505af11580156126a0573d6000803e3d6000fd5b50505050505050505050505050565b836126ba81336114c7565b6126db57803360405163168ab55d60e31b81526004016107bb929190614f8f565b84601c60006126e983610800565b5091505063ffffffff82821616156127175760405163a2a7201360e01b8152600481018490526024016107bb565b60405163cf40882360e01b8152600481018990523060248201526001600160a01b0387811660448301526001600160401b03871660648301527f0000000000000000000000000000000000000000000000000000000000000000169063cf40882390608401600060405180830381600087803b15801561279657600080fd5b505af11580156127aa573d6000803e3d6000fd5b5050506001600160a01b03881690506128115760006127c889610800565b509150506201ffff196202000082160161280057604051632ca49b0d60e11b81526001600160a01b03891660048201526024016107bb565b61280b896000613ba5565b50611910565b600061281c896116a2565b905061283e81898b60001c600160405180602001604052806000815250613e36565b505050505050505050565b6128538383613357565b61285d81336114c7565b61287e57803360405163168ab55d60e31b81526004016107bb929190614f8f565b7f6c32148f748aba23997146d7fe89e962e3cc30271290fb96f5f4337756c03b5284016128be5760405163615a470360e01b815260040160405180910390fd5b6001600160a01b03821615806128dc57506001600160a01b03821630145b1561290557604051632ca49b0d60e11b81526001600160a01b03831660048201526024016107bb565b61169c6118868585613357565b60008061291f8484613357565b9050600061292c82613607565b90506000805160206156cd833981519152851461294c5791506107fa9050565b6040516331a9108f60e11b8152600481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636352211e90602401602060405180830381865afa9250505080156129cd575060408051601f3d908101601f191682019092526129ca91810190615170565b60015b6129dc576000925050506107fa565b6001600160a01b0316301492506107fa915050565b6129f96132fd565b6001600160a01b038216600081815260046020908152604091829020805460ff191685151590811790915591519182527f4c97694570a07277810af7e5669ffd5f6a2d6b74b6e9a274b8b870fd5114cf8791015b60405180910390a25050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b600080612ace600087878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509293925050613f189050565b915091506000612b178288888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509293925050613cd79050565b90506000612b258285613357565b6000818152600660205260409020909150612b41888a836152db565b507f6c32148f748aba23997146d7fe89e962e3cc30271290fb96f5f4337756c03b528201612b825760405163615a470360e01b815260040160405180910390fd5b6040516302571be360e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906302571be390602401602060405180830381865afa158015612bea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c0e9190615170565b90506001600160a01b0381163314801590612cb6575060405163e985e9c560e01b81526001600160a01b0382811660048301523360248301527f0000000000000000000000000000000000000000000000000000000000000000169063e985e9c590604401602060405180830381865afa158015612c90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cb4919061518d565b155b15612cd857813360405163168ab55d60e31b81526004016107bb929190614f8f565b6001600160a01b03861615612d6857604051630c4b7b8560e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631896f70a90612d359085908a90600401614f8f565b600060405180830381600087803b158015612d4f57600080fd5b505af1158015612d63573d6000803e3d6000fd5b505050505b604051635b0fc9c360e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690635b0fc9c390612db69085903090600401614f8f565b600060405180830381600087803b158015612dd057600080fd5b505af1158015612de4573d6000803e3d6000fd5b5050505061283e828a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052508d93509150819050613c95565b6001600160a01b038416612e515760405162461bcd60e51b81526004016107bb9061509d565b6001600160a01b038516331480612e6d5750612e6d8533612a59565b612ecb5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016107bb565b6112528585858585613e36565b612ee06132fd565b6001600160a01b038116612f455760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107bb565b61212781613b55565b60008181526006602052604081208054829190612f6a90615063565b80601f0160208091040260200160405190810160405280929190818152602001828054612f9690615063565b8015612fe35780601f10612fb857610100808354040283529160200191612fe3565b820191906000526020600020905b815481529060010190602001808311612fc657829003601f168201915b505050505090508051600003612ffc5750600092915050565b6000806130098382613f18565b9092509050600061301a8483613cd7565b905061096b8184612912565b60008042836001600160401b031610156130535761ffff196201000085160161304e57600094505b600093505b50929391925050565b60006001600160e01b03198216636cdb3d1360e11b148061308d57506001600160e01b031982166303a24d0760e21b145b806107fa57506301ffc9a760e01b6001600160e01b03198316146107fa565b60006130b7826116a2565b9050806001600160a01b0316836001600160a01b0316036131245760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107bb565b336001600160a01b038216148061314057506131408133612a59565b6131b25760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016107bb565b6108f68383613fcf565b6000620200008381161480156108ae5750426131db6276a7008461539a565b6001600160401b0316109392505050565b84516020860120600061320d6000805160206156cd83398151915283613357565b9050600061323688604051806040016040528060058152602001626cae8d60e31b81525061403d565b600083815260066020526040902090915061325182826153ba565b50613264828289620300008a1789613c95565b6001600160a01b0384161561191057604051630c4b7b8560e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631896f70a906132c19085908890600401614f8f565b600060405180830381600087803b1580156132db57600080fd5b505af11580156132ef573d6000803e3d6000fd5b505050505050505050505050565b6000546001600160a01b031633146117f25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107bb565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6000808061339084610800565b91945092509050426001600160401b0382161080801561345357506001600160a01b038416158061345357506040516302571be360e01b8152600481018690526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906302571be390602401602060405180830381865afa158015613424573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134489190615170565b6001600160a01b0316145b1561349257600061346387610800565b50915050602081161561348c5760405163a2a7201360e01b8152600481018790526024016107bb565b506134b9565b620100008316156134b95760405163a2a7201360e01b8152600481018690526024016107bb565b505050505050565b63fffdffff81811763ffffffff16146134f05760405163a2a7201360e01b8152600481018390526024016107bb565b5050565b6060600061359d8360066000888152602001908152602001600020805461351a90615063565b80601f016020809104026020016040519081016040528092919081815260200182805461354690615063565b80156135935780601f1061356857610100808354040283529160200191613593565b820191906000526020600020905b81548152906001019060200180831161357657829003601f168201915b505050505061403d565b60008581526006602052604090209091506135b882826153ba565b50949350505050565b6000806135cd85610800565b925050506000806135e08860001c610800565b92509250506135f0878784613a01565b6135fb858483613a3c565b98975050505050505050565b600080613613836116a2565b6001600160a01b0316141580156107fa57506040516302571be360e01b81526004810183905230906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906302571be390602401602060405180830381865afa15801561368c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136b09190615170565b6001600160a01b03161492915050565b600086815260066020526040812080546136df91879161351a90615063565b90506136ee8682868686613c95565b50505050505050565b6000808061370488610800565b925092509250600061372e88600660008d8152602001908152602001600020805461351a90615063565b60008a815260066020526040902080549192509061374b90615063565b905060000361376e57600089815260066020526040902061376c82826153ba565b505b61377d89858886178589613a82565b6001600160a01b03871661379b57613796896000613ba5565b610ad5565b610ad584888b60001c600160405180602001604052806000815250613e36565b6201ffff19620200008316016137db576137d86276a7008261539a565b90505b42816001600160401b03161015613814576201000082161561380f5760405162461bcd60e51b81526004016107bb906150f8565b613839565b60048216156138395760405163a2a7201360e01b8152600481018490526024016107bb565b604082166000036108f6575050600090815260036020526040902080546001600160a01b0319169055565b60c0816001600160401b0316901b60a08363ffffffff16901b846001600160a01b03161717600160008681526020019081526020016000208190555050505050565b6001600160a01b0384163b156134b95760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906138ea9089908990889088908890600401615479565b6020604051808303816000875af1925050508015613925575060408051601f3d908101601f19168201909252613922918101906154cb565b60015b6139d1576139316154e8565b806308c379a00361396a5750613945615504565b80613950575061396c565b8060405162461bcd60e51b81526004016107bb9190614506565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016107bb565b6001600160e01b0319811663bc197c8160e01b146136ee5760405162461bcd60e51b81526004016107bb9061558d565b63ffff00008216158015906001831615908290613a1b5750805b156112525760405163a2a7201360e01b8152600481018690526024016107bb565b6000816001600160401b0316846001600160401b03161115613a5c578193505b826001600160401b0316846001600160401b03161015613a7a578293505b509192915050565b613a8e85858584613b3f565b60405163ffffffff8416815285907f39873f00c80f4f94b7bd1594aebcf650f003545b74824d57ddf4939e3ff3a34b9060200160405180910390a2816001600160401b0316816001600160401b03161115611252576040516001600160401b038216815285907ff675815a0817338f93a7da433f6bd5f5542f1029b11b455191ac96c7f6a9b132906020015b60405180910390a25050505050565b600080613b3583610800565b5090949350505050565b613b4984836140b4565b61169c84848484613864565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b613bb0826001611ead565b15613bd15760405163a2a7201360e01b8152600481018390526024016107bb565b613bda82613d96565b604051635b0fc9c360e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690635b0fc9c390613c289085908590600401614f8f565b600060405180830381600087803b158015613c4257600080fd5b505af1158015613c56573d6000803e3d6000fd5b50506040516001600160a01b03841681528492507fee2ba1195c65bcf218a83d874335c6bf9d9067b4c672f3c3bf16cf40de7586c49150602001612a4d565b613ca1858484846140ed565b847f8ce7013e8abebc55c3890a68f5a27c67c3f7efa64e584de5fb22363c606fd34085858585604051613b1a94939291906155d5565b6000806000613ce68585613f18565b909250905081613d585760018551613cfe919061561c565b8414613d4c5760405162461bcd60e51b815260206004820152601d60248201527f6e616d65686173683a204a756e6b20617420656e64206f66206e616d6500000060448201526064016107bb565b50600091506107fa9050565b613d628582613cd7565b6040805160208101929092528101839052606001604051602081830303815290604052805190602001209250505092915050565b60008181526001602052604090205460a081901c60c082901c613dba838383613026565b600086815260036020526040812080546001600160a01b0319169055909350613de7915085908484613864565b60408051858152600160208201526000916001600160a01b0386169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a450505050565b6000806000613e4486610800565b925092509250613e558683836137bb565b846001148015613e765750876001600160a01b0316836001600160a01b0316145b613e925760405162461bcd60e51b81526004016107bb906150f8565b866001600160a01b0316836001600160a01b031603613eb357505050611252565b613ebf86888484613864565b60408051878152602081018790526001600160a01b03808a1692908b169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611910338989898989614161565b60008083518310613f6b5760405162461bcd60e51b815260206004820152601e60248201527f726561644c6162656c3a20496e646578206f7574206f6620626f756e6473000060448201526064016107bb565b6000848481518110613f7f57613f7f6150e2565b016020015160f81c90508015613fab57613fa485613f9e86600161562f565b8361421c565b9250613fb0565b600092505b613fba818561562f565b613fc590600161562f565b9150509250929050565b600081815260036020526040902080546001600160a01b0319166001600160a01b0384169081179091558190614004826116a2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b606060018351101561406257604051631406d65b60e11b815260040160405180910390fd5b60ff83511115614087578260405163e3ba295f60e01b81526004016107bb9190614506565b8251838360405160200161409d93929190615642565b604051602081830303815290604052905092915050565b61ffff8116158015906140cc57506201000181811614155b156134f05760405163a2a7201360e01b8152600481018390526024016107bb565b6140f784836140b4565b6000848152600160205260409020546001600160a01b038116156141555761411e85613d96565b6040516000815285907fee2ba1195c65bcf218a83d874335c6bf9d9067b4c672f3c3bf16cf40de7586c49060200160405180910390a25b61125285858585614240565b6001600160a01b0384163b156134b95760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906141a59089908990889088908890600401615687565b6020604051808303816000875af19250505080156141e0575060408051601f3d908101601f191682019092526141dd918101906154cb565b60015b6141ec576139316154e8565b6001600160e01b0319811663f23a6e6160e01b146136ee5760405162461bcd60e51b81526004016107bb9061558d565b825160009061422b838561562f565b111561423657600080fd5b5091016020012090565b836000808061424e84610800565b9194509250905063ffff000082166001600160401b038087169083161115614274578195505b42826001600160401b03161061428957958617955b6001600160a01b038416156142e05760405162461bcd60e51b815260206004820152601f60248201527f455243313135353a206d696e74206f66206578697374696e6720746f6b656e0060448201526064016107bb565b6001600160a01b0388166143405760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016107bb565b306001600160a01b038916036143b55760405162461bcd60e51b815260206004820152603460248201527f455243313135353a206e65774f776e65722063616e6e6f74206265207468652060448201527313985b5955dc985c1c195c8818dbdb9d1c9858dd60621b60648201526084016107bb565b6143c185898989613864565b60408051868152600160208201526001600160a01b038a169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461283e3360008a88600160405180602001604052806000815250614161565b6001600160a01b038116811461212757600080fd5b6000806040838503121561445157600080fd5b823561445c81614429565b946020939093013593505050565b60006020828403121561447c57600080fd5b5035919050565b6001600160e01b03198116811461212757600080fd5b6000602082840312156144ab57600080fd5b81356108ae81614483565b60005b838110156144d15781810151838201526020016144b9565b50506000910152565b600081518084526144f28160208601602086016144b6565b601f01601f19169290920160200192915050565b6020815260006108ae60208301846144da565b6000806040838503121561452c57600080fd5b82359150602083013561453e81614429565b809150509250929050565b80356001600160401b038116811461456057600080fd5b919050565b6000806040838503121561457857600080fd5b8235915061458860208401614549565b90509250929050565b60008083601f8401126145a357600080fd5b5081356001600160401b038111156145ba57600080fd5b6020830191508360208285010111156145d257600080fd5b9250929050565b6000806000806000608086880312156145f157600080fd5b85356145fc81614429565b9450602086013561460c81614429565b93506040860135925060608601356001600160401b0381111561462e57600080fd5b61463a88828901614591565b969995985093965092949392505050565b60006020828403121561465d57600080fd5b81356108ae81614429565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156146a3576146a3614668565b6040525050565b60006001600160401b038211156146c3576146c3614668565b50601f01601f191660200190565b600082601f8301126146e257600080fd5b81356146ed816146aa565b6040516146fa828261467e565b82815285602084870101111561470f57600080fd5b82602086016020830137600092810160200192909252509392505050565b803563ffffffff8116811461456057600080fd5b600080600080600080600060e0888a03121561475c57600080fd5b8735965060208801356001600160401b0381111561477957600080fd5b6147858a828b016146d1565b965050604088013561479681614429565b945060608801356147a681614429565b93506147b460808901614549565b92506147c260a0890161472d565b91506147d060c08901614549565b905092959891949750929550565b60006001600160401b038211156147f7576147f7614668565b5060051b60200190565b600082601f83011261481257600080fd5b8135602061481f826147de565b60405161482c828261467e565b80915083815260208101915060208460051b87010193508684111561485057600080fd5b602086015b84811015611ea25780358352918301918301614855565b600080600080600060a0868803121561488457600080fd5b853561488f81614429565b9450602086013561489f81614429565b935060408601356001600160401b03808211156148bb57600080fd5b6148c789838a01614801565b945060608801359150808211156148dd57600080fd5b6148e989838a01614801565b935060808801359150808211156148ff57600080fd5b5061490c888289016146d1565b9150509295509295909350565b6000806000806080858703121561492f57600080fd5b84359350602085013592506149466040860161472d565b915061495460608601614549565b905092959194509250565b803561ffff8116811461456057600080fd5b6000806040838503121561498457600080fd5b823591506145886020840161495f565b600080604083850312156149a757600080fd5b82356001600160401b03808211156149be57600080fd5b818501915085601f8301126149d257600080fd5b813560206149df826147de565b6040516149ec828261467e565b83815260059390931b8501820192828101915089841115614a0c57600080fd5b948201945b83861015614a33578535614a2481614429565b82529482019490820190614a11565b96505086013592505080821115614a4957600080fd5b50613fc585828601614801565b60008151808452602080850194506020840160005b83811015614a8757815187529582019590820190600101614a6b565b509495945050505050565b6020815260006108ae6020830184614a56565b600080600060608486031215614aba57600080fd5b8335614ac581614429565b92506020840135614ad581614429565b929592945050506040919091013590565b600080600060608486031215614afb57600080fd5b8335925060208401359150614b1260408501614549565b90509250925092565b600080600060608486031215614b3057600080fd5b833592506020840135614b4281614429565b91506040840135614b5281614429565b809150509250925092565b600080600080600060808688031215614b7557600080fd5b85356001600160401b03811115614b8b57600080fd5b614b9788828901614591565b9096509450506020860135614bab81614429565b9250614bb96040870161495f565b91506060860135614bc981614429565b809150509295509295909350565b801515811461212757600080fd5b60008060408385031215614bf857600080fd5b8235614c0381614429565b9150602083013561453e81614bd7565b60008060008060008060a08789031215614c2c57600080fd5b86356001600160401b03811115614c4257600080fd5b614c4e89828a01614591565b9097509550506020870135614c6281614429565b9350604087013592506060870135614c7981614429565b9150614c876080880161495f565b90509295509295509295565b60008060408385031215614ca657600080fd5b823591506145886020840161472d565b60008060408385031215614cc957600080fd5b50508035926020909101359150565b60008060008060008060a08789031215614cf157600080fd5b8635955060208701356001600160401b03811115614d0e57600080fd5b614d1a89828a01614591565b9096509450506040870135614d2e81614429565b9250614d3c6060880161472d565b9150614c8760808801614549565b60008060008060408587031215614d6057600080fd5b84356001600160401b0380821115614d7757600080fd5b614d8388838901614591565b90965094506020870135915080821115614d9c57600080fd5b50614da987828801614591565b95989497509550505050565b60008060008060808587031215614dcb57600080fd5b843593506020850135614ddd81614429565b9250604085013561494681614429565b600080600060608486031215614e0257600080fd5b83359250602084013591506040840135614b5281614429565b60008060408385031215614e2e57600080fd5b8235614e3981614429565b9150602083013561453e81614429565b60008060008060608587031215614e5f57600080fd5b84356001600160401b03811115614e7557600080fd5b614e8187828801614591565b9095509350506020850135614e9581614429565b91506040850135614ea581614429565b939692955090935050565b600080600080600060a08688031215614ec857600080fd5b8535614ed381614429565b94506020860135614ee381614429565b9350604086013592506060860135915060808601356001600160401b03811115614f0c57600080fd5b61490c888289016146d1565b600060208284031215614f2a57600080fd5b81516001600160401b03811115614f4057600080fd5b8201601f81018413614f5157600080fd5b8051614f5c816146aa565b604051614f69828261467e565b828152866020848601011115614f7e57600080fd5b61096b8360208301602087016144b6565b9182526001600160a01b0316602082015260400190565b60008060008060808587031215614fbc57600080fd5b84356001600160401b03811115614fd257600080fd5b614fde878288016146d1565b9450506020850135614fef81614429565b9250614ffd6040860161495f565b91506060850135614ea581614429565b60006020828403121561501f57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6001600160401b0381811683821601908082111561505c5761505c615026565b5092915050565b600181811c9082168061507757607f821691505b60208210810361509757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006151556040830185614a56565b82810360208401526151678185614a56565b95945050505050565b60006020828403121561518257600080fd5b81516108ae81614429565b60006020828403121561519f57600080fd5b81516108ae81614bd7565b8183823760009101908152919050565b60208082526028908201527f436f6e74726f6c6c61626c653a2043616c6c6572206973206e6f74206120636f604082015267373a3937b63632b960c11b606082015260800190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60c08152600061523f60c083018a8c615202565b6001600160a01b03898116602085015263ffffffff891660408501526001600160401b03881660608501528616608084015282810360a0840152615284818587615202565b9b9a5050505050505050505050565b601f8211156108f6576000816000526020600020601f850160051c810160208610156152bc5750805b601f850160051c820191505b818110156134b9578281556001016152c8565b6001600160401b038311156152f2576152f2614668565b615306836153008354615063565b83615293565b6000601f84116001811461533a57600085156153225750838201355b600019600387901b1c1916600186901b178355611252565b600083815260209020601f19861690835b8281101561536b578685013582556020948501946001909201910161534b565b50868210156153885760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6001600160401b0382811682821603908082111561505c5761505c615026565b81516001600160401b038111156153d3576153d3614668565b6153e7816153e18454615063565b84615293565b602080601f83116001811461541c57600084156154045750858301515b600019600386901b1c1916600185901b1785556134b9565b600085815260208120601f198616915b8281101561544b5788860151825594840194600190910190840161542c565b50858210156154695787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b0386811682528516602082015260a0604082018190526000906154a590830186614a56565b82810360608401526154b78186614a56565b905082810360808401526135fb81856144da565b6000602082840312156154dd57600080fd5b81516108ae81614483565b600060033d11156155015760046000803e5060005160e01c5b90565b600060443d10156155125790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561554157505050505090565b82850191508151818111156155595750505050505090565b843d87010160208285010111156155735750505050505090565b6155826020828601018761467e565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6080815260006155e860808301876144da565b6001600160a01b039590951660208301525063ffffffff9290921660408301526001600160401b0316606090910152919050565b818103818111156107fa576107fa615026565b808201808211156107fa576107fa615026565b60ff60f81b8460f81b168152600083516156638160018501602088016144b6565b83519083019061567a8160018401602088016144b6565b0160010195945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906156c1908301846144da565b97965050505050505056fe93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4aea26469706673582212209b25a259ef8986d46a1bfe17671970399728db343863f016912d8beb240746b064736f6c63430008170033",WB=t=>t.length>1;class au extends si{constructor(...e){WB(e)?super(...e):super(V5,ac,e[0])}deploy(e,r,n,i){return super.deploy(e,r,n,i||{})}getDeployTransaction(e,r,n,i){return super.getDeployTransaction(e,r,n,i||{})}attach(e){return super.attach(e)}connect(e){return super.connect(e)}static createInterface(){return new t2(V5)}static connect(e,r){return new q2(e,V5,r)}}ct(au,"bytecode",ac),ct(au,"abi",V5);var cs={exports:{}},Nn={},pb={exports:{}},VB="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",JB=VB,QB=JB;function bb(){}function mb(){}mb.resetWarningCache=bb;var YB=function(){function t(n,i,u,a,o,s){if(s!==QB){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}t.isRequired=t;function e(){return t}var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:mb,resetWarningCache:bb};return r.PropTypes=r,r};pb.exports=YB();var yb=pb.exports,ds={exports:{}},rr={},hs={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;/*! * Adapted from jQuery UI core * * http://jqueryui.com @@ -100,11 +100,11 @@ Error generating stack: `+u.message+` * http://jquery.org/license * * http://api.jqueryui.com/category/ui-core/ - */var r="none",n="contents",i=/input|select|textarea|button|object|iframe/;function u(y,A){return A.getPropertyValue("overflow")!=="visible"||y.scrollWidth<=0&&y.scrollHeight<=0}function a(y){var A=y.offsetWidth<=0&&y.offsetHeight<=0;if(A&&!y.innerHTML)return!0;try{var C=window.getComputedStyle(y),T=C.getPropertyValue("display");return A?T!==n&&u(y,C):T===r}catch{return console.warn("Failed to inspect element style"),!1}}function o(y){for(var A=y,C=y.getRootNode&&y.getRootNode();A&&A!==document.body;){if(C&&A===C&&(A=C.host.parentNode),a(A))return!1;A=A.parentNode}return!0}function s(y,A){var C=y.nodeName.toLowerCase(),T=i.test(C)&&!y.disabled||C==="a"&&y.href||A;return T&&o(y)}function c(y){var A=y.getAttribute("tabindex");A===null&&(A=void 0);var C=isNaN(A);return(C||A>=0)&&s(y,!C)}function d(y){var A=[].slice.call(y.querySelectorAll("*"),0).reduce(function(C,T){return C.concat(T.shadowRoot?d(T.shadowRoot):[T])},[]);return A.filter(c)}t.exports=e.default})(hs,hs.exports);var gb=hs.exports;Object.defineProperty(rr,"__esModule",{value:!0});rr.resetState=tD;rr.log=rD;rr.handleBlur=Lu;rr.handleFocus=ju;rr.markForFocusLater=nD;rr.returnFocus=iD;rr.popWithoutFocus=uD;rr.setupScopedFocus=aD;rr.teardownScopedFocus=oD;var XB=gb,ZB=eD(XB);function eD(t){return t&&t.__esModule?t:{default:t}}var Y6=[],E6=null,ps=!1;function tD(){Y6=[]}function rD(){}function Lu(){ps=!0}function ju(){if(ps){if(ps=!1,!E6)return;setTimeout(function(){if(!E6.contains(document.activeElement)){var t=(0,ZB.default)(E6)[0]||E6;t.focus()}},0)}}function nD(){Y6.push(document.activeElement)}function iD(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=null;try{Y6.length!==0&&(e=Y6.pop(),e.focus({preventScroll:t}));return}catch{console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}}function uD(){Y6.length>0&&Y6.pop()}function aD(t){E6=t,window.addEventListener?(window.addEventListener("blur",Lu,!1),document.addEventListener("focus",ju,!0)):(window.attachEvent("onBlur",Lu),document.attachEvent("onFocus",ju))}function oD(){E6=null,window.addEventListener?(window.removeEventListener("blur",Lu),document.removeEventListener("focus",ju)):(window.detachEvent("onBlur",Lu),document.detachEvent("onFocus",ju))}var bs={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var r=gb,n=i(r);function i(o){return o&&o.__esModule?o:{default:o}}function u(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return o.activeElement.shadowRoot?u(o.activeElement.shadowRoot):o.activeElement}function a(o,s){var c=(0,n.default)(o);if(!c.length){s.preventDefault();return}var d=void 0,y=s.shiftKey,A=c[0],C=c[c.length-1],T=u();if(o===T){if(!y)return;d=C}if(C===T&&!y&&(d=A),A===T&&y&&(d=C),d){s.preventDefault(),d.focus();return}var U=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),P=U!=null&&U[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(P){var _=c.indexOf(T);if(_>-1&&(_+=y?-1:1),d=c[_],typeof d>"u"){s.preventDefault(),d=y?C:A,d.focus();return}s.preventDefault(),d.focus()}}t.exports=e.default})(bs,bs.exports);var sD=bs.exports,nr={},lD=function(){},fD=lD,Zt={},xb={exports:{}};/*! + */var r="none",n="contents",i=/input|select|textarea|button|object|iframe/;function u(y,A){return A.getPropertyValue("overflow")!=="visible"||y.scrollWidth<=0&&y.scrollHeight<=0}function a(y){var A=y.offsetWidth<=0&&y.offsetHeight<=0;if(A&&!y.innerHTML)return!0;try{var C=window.getComputedStyle(y),T=C.getPropertyValue("display");return A?T!==n&&u(y,C):T===r}catch{return console.warn("Failed to inspect element style"),!1}}function o(y){for(var A=y,C=y.getRootNode&&y.getRootNode();A&&A!==document.body;){if(C&&A===C&&(A=C.host.parentNode),a(A))return!1;A=A.parentNode}return!0}function s(y,A){var C=y.nodeName.toLowerCase(),T=i.test(C)&&!y.disabled||C==="a"&&y.href||A;return T&&o(y)}function c(y){var A=y.getAttribute("tabindex");A===null&&(A=void 0);var C=isNaN(A);return(C||A>=0)&&s(y,!C)}function d(y){var A=[].slice.call(y.querySelectorAll("*"),0).reduce(function(C,T){return C.concat(T.shadowRoot?d(T.shadowRoot):[T])},[]);return A.filter(c)}t.exports=e.default})(hs,hs.exports);var gb=hs.exports;Object.defineProperty(rr,"__esModule",{value:!0});rr.resetState=tD;rr.log=rD;rr.handleBlur=Lu;rr.handleFocus=ju;rr.markForFocusLater=nD;rr.returnFocus=iD;rr.popWithoutFocus=uD;rr.setupScopedFocus=aD;rr.teardownScopedFocus=oD;var XB=gb,ZB=eD(XB);function eD(t){return t&&t.__esModule?t:{default:t}}var Y6=[],E6=null,ps=!1;function tD(){Y6=[]}function rD(){}function Lu(){ps=!0}function ju(){if(ps){if(ps=!1,!E6)return;setTimeout(function(){if(!E6.contains(document.activeElement)){var t=(0,ZB.default)(E6)[0]||E6;t.focus()}},0)}}function nD(){Y6.push(document.activeElement)}function iD(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=null;try{Y6.length!==0&&(e=Y6.pop(),e.focus({preventScroll:t}));return}catch{console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}}function uD(){Y6.length>0&&Y6.pop()}function aD(t){E6=t,window.addEventListener?(window.addEventListener("blur",Lu,!1),document.addEventListener("focus",ju,!0)):(window.attachEvent("onBlur",Lu),document.attachEvent("onFocus",ju))}function oD(){E6=null,window.addEventListener?(window.removeEventListener("blur",Lu),document.removeEventListener("focus",ju)):(window.detachEvent("onBlur",Lu),document.detachEvent("onFocus",ju))}var bs={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var r=gb,n=i(r);function i(o){return o&&o.__esModule?o:{default:o}}function u(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return o.activeElement.shadowRoot?u(o.activeElement.shadowRoot):o.activeElement}function a(o,s){var c=(0,n.default)(o);if(!c.length){s.preventDefault();return}var d=void 0,y=s.shiftKey,A=c[0],C=c[c.length-1],T=u();if(o===T){if(!y)return;d=C}if(C===T&&!y&&(d=A),A===T&&y&&(d=C),d){s.preventDefault(),d.focus();return}var U=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),P=U!=null&&U[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(P){var _=c.indexOf(T);if(_>-1&&(_+=y?-1:1),d=c[_],typeof d>"u"){s.preventDefault(),d=y?C:A,d.focus();return}s.preventDefault(),d.focus()}}t.exports=e.default})(bs,bs.exports);var sD=bs.exports,nr={},fD=function(){},lD=fD,Zt={},xb={exports:{}};/*! Copyright (c) 2015 Jed Watson. Based on code that is Copyright 2013-2015, Facebook, Inc. All rights reserved. -*/(function(t){(function(){var e=!!(typeof window<"u"&&window.document&&window.document.createElement),r={canUseDOM:e,canUseWorkers:typeof Worker<"u",canUseEventListeners:e&&!!(window.addEventListener||window.attachEvent),canUseViewport:e&&!!window.screen};t.exports?t.exports=r:window.ExecutionEnvironment=r})()})(xb);var cD=xb.exports;Object.defineProperty(Zt,"__esModule",{value:!0});Zt.canUseDOM=Zt.SafeNodeList=Zt.SafeHTMLCollection=void 0;var dD=cD,hD=pD(dD);function pD(t){return t&&t.__esModule?t:{default:t}}var G8=hD.default,bD=G8.canUseDOM?window.HTMLElement:{};Zt.SafeHTMLCollection=G8.canUseDOM?window.HTMLCollection:{};Zt.SafeNodeList=G8.canUseDOM?window.NodeList:{};Zt.canUseDOM=G8.canUseDOM;Zt.default=bD;Object.defineProperty(nr,"__esModule",{value:!0});nr.resetState=vD;nr.log=AD;nr.assertNodeList=vb;nr.setElement=wD;nr.validateElement=V4;nr.hide=ED;nr.show=CD;nr.documentNotReadyOrSSRTesting=FD;var mD=fD,yD=xD(mD),gD=Zt;function xD(t){return t&&t.__esModule?t:{default:t}}var _t=null;function vD(){_t&&(_t.removeAttribute?_t.removeAttribute("aria-hidden"):_t.length!=null?_t.forEach(function(t){return t.removeAttribute("aria-hidden")}):document.querySelectorAll(_t).forEach(function(t){return t.removeAttribute("aria-hidden")})),_t=null}function AD(){}function vb(t,e){if(!t||!t.length)throw new Error("react-modal: No elements were found for selector "+e+".")}function wD(t){var e=t;if(typeof e=="string"&&gD.canUseDOM){var r=document.querySelectorAll(e);vb(r,e),e=r}return _t=e||_t,_t}function V4(t){var e=t||_t;return e?Array.isArray(e)||e instanceof HTMLCollection||e instanceof NodeList?e:[e]:((0,yD.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function ED(t){var e=!0,r=!1,n=void 0;try{for(var i=V4(t)[Symbol.iterator](),u;!(e=(u=i.next()).done);e=!0){var a=u.value;a.setAttribute("aria-hidden","true")}}catch(o){r=!0,n=o}finally{try{!e&&i.return&&i.return()}finally{if(r)throw n}}}function CD(t){var e=!0,r=!1,n=void 0;try{for(var i=V4(t)[Symbol.iterator](),u;!(e=(u=i.next()).done);e=!0){var a=u.value;a.removeAttribute("aria-hidden")}}catch(o){r=!0,n=o}finally{try{!e&&i.return&&i.return()}finally{if(r)throw n}}}function FD(){_t=null}var li={};Object.defineProperty(li,"__esModule",{value:!0});li.resetState=BD;li.log=DD;var ou={},su={};function oc(t,e){t.classList.remove(e)}function BD(){var t=document.getElementsByTagName("html")[0];for(var e in ou)oc(t,ou[e]);var r=document.body;for(var n in su)oc(r,su[n]);ou={},su={}}function DD(){}var _D=function(e,r){return e[r]||(e[r]=0),e[r]+=1,r},kD=function(e,r){return e[r]&&(e[r]-=1),r},SD=function(e,r,n){n.forEach(function(i){_D(r,i),e.add(i)})},TD=function(e,r,n){n.forEach(function(i){kD(r,i),r[i]===0&&e.remove(i)})};li.add=function(e,r){return SD(e.classList,e.nodeName.toLowerCase()=="html"?ou:su,r.split(" "))};li.remove=function(e,r){return TD(e.classList,e.nodeName.toLowerCase()=="html"?ou:su,r.split(" "))};var fi={};Object.defineProperty(fi,"__esModule",{value:!0});fi.log=ND;fi.resetState=MD;function PD(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Ab=function t(){var e=this;PD(this,t),this.register=function(r){e.openInstances.indexOf(r)===-1&&(e.openInstances.push(r),e.emit("register"))},this.deregister=function(r){var n=e.openInstances.indexOf(r);n!==-1&&(e.openInstances.splice(n,1),e.emit("deregister"))},this.subscribe=function(r){e.subscribers.push(r)},this.emit=function(r){e.subscribers.forEach(function(n){return n(r,e.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},n8=new Ab;function ND(){console.log("portalOpenInstances ----------"),console.log(n8.openInstances.length),n8.openInstances.forEach(function(t){return console.log(t)}),console.log("end portalOpenInstances ----------")}function MD(){n8=new Ab}fi.default=n8;var J4={};Object.defineProperty(J4,"__esModule",{value:!0});J4.resetState=OD;J4.log=LD;var UD=fi,ID=RD(UD);function RD(t){return t&&t.__esModule?t:{default:t}}var Me=void 0,Ht=void 0,wn=[];function OD(){for(var t=[Me,Ht],e=0;e0?(document.body.firstChild!==Me&&document.body.insertBefore(Me,document.body.firstChild),document.body.lastChild!==Ht&&document.body.appendChild(Ht)):(Me.parentElement&&Me.parentElement.removeChild(Me),Ht.parentElement&&Ht.parentElement.removeChild(Ht))}ID.default.subscribe(jD);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(p){for(var v=1;v0&&(h0-=1,h0===0&&C.show(z)),k.props.shouldFocusAfterRender&&(k.props.shouldReturnFocusAfterClose?(c.returnFocus(k.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),k.props.onAfterClose&&k.props.onAfterClose(),N.default.deregister(k)},k.open=function(){k.beforeOpen(),k.state.afterOpen&&k.state.beforeClose?(clearTimeout(k.closeTimer),k.setState({beforeClose:!1})):(k.props.shouldFocusAfterRender&&(c.setupScopedFocus(k.node),c.markForFocusLater()),k.setState({isOpen:!0},function(){k.openAnimationFrame=requestAnimationFrame(function(){k.setState({afterOpen:!0}),k.props.isOpen&&k.props.onAfterOpen&&k.props.onAfterOpen({overlayEl:k.overlay,contentEl:k.content})})}))},k.close=function(){k.props.closeTimeoutMS>0?k.closeWithTimeout():k.closeWithoutTimeout()},k.focusContent=function(){return k.content&&!k.contentHasFocus()&&k.content.focus({preventScroll:!0})},k.closeWithTimeout=function(){var I=Date.now()+k.props.closeTimeoutMS;k.setState({beforeClose:!0,closesAt:I},function(){k.closeTimer=setTimeout(k.closeWithoutTimeout,k.state.closesAt-Date.now())})},k.closeWithoutTimeout=function(){k.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},k.afterClose)},k.handleKeyDown=function(I){d0(I)&&(0,y.default)(k.content,I),k.props.shouldCloseOnEsc&&c0(I)&&(I.stopPropagation(),k.requestClose(I))},k.handleOverlayOnClick=function(I){k.shouldClose===null&&(k.shouldClose=!0),k.shouldClose&&k.props.shouldCloseOnOverlayClick&&(k.ownerHandlesClose()?k.requestClose(I):k.focusContent()),k.shouldClose=null},k.handleContentOnMouseUp=function(){k.shouldClose=!1},k.handleOverlayOnMouseDown=function(I){!k.props.shouldCloseOnOverlayClick&&I.target==k.overlay&&I.preventDefault()},k.handleContentOnClick=function(){k.shouldClose=!1},k.handleContentOnMouseDown=function(){k.shouldClose=!1},k.requestClose=function(I){return k.ownerHandlesClose()&&k.props.onRequestClose(I)},k.ownerHandlesClose=function(){return k.props.onRequestClose},k.shouldBeClosed=function(){return!k.state.isOpen&&!k.state.beforeClose},k.contentHasFocus=function(){return document.activeElement===k.content||k.content.contains(document.activeElement)},k.buildClassName=function(I,z){var V=(typeof z>"u"?"undefined":n(z))==="object"?z:{base:o0[I],afterOpen:o0[I]+"--after-open",beforeClose:o0[I]+"--before-close"},b=V.base;return k.state.afterOpen&&(b=b+" "+V.afterOpen),k.state.beforeClose&&(b=b+" "+V.beforeClose),typeof z=="string"&&z?b+" "+z:b},k.attributesFromObject=function(I,z){return Object.keys(z).reduce(function(V,b){return V[I+"-"+b]=z[b],V},{})},k.state={afterOpen:!1,beforeClose:!1},k.shouldClose=null,k.moveFromContentToOverlay=null,k}return i(v,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(k,I){this.props.isOpen&&!k.isOpen?this.open():!this.props.isOpen&&k.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!I.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var k=this.props,I=k.appElement,z=k.ariaHideApp,V=k.htmlOpenClassName,b=k.bodyOpenClassName,f=k.parentSelector,m=f&&f().ownerDocument||document;b&&U.add(m.body,b),V&&U.add(m.getElementsByTagName("html")[0],V),z&&(h0+=1,C.hide(I)),N.default.register(this)}},{key:"render",value:function(){var k=this.props,I=k.id,z=k.className,V=k.overlayClassName,b=k.defaultStyles,f=k.children,m=z?{}:b.content,D=V?{}:b.overlay;if(this.shouldBeClosed())return null;var l={ref:this.setOverlayRef,className:this.buildClassName("overlay",V),style:r({},D,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},S=r({id:I,ref:this.setContentRef,style:r({},m,this.props.style.content),className:this.buildClassName("content",z),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),O=this.props.contentElement(S,f);return this.props.overlayElement(l,O)}}]),v}(u.Component);j.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},j.propTypes={isOpen:o.default.bool.isRequired,defaultStyles:o.default.shape({content:o.default.object,overlay:o.default.object}),style:o.default.shape({content:o.default.object,overlay:o.default.object}),className:o.default.oneOfType([o.default.string,o.default.object]),overlayClassName:o.default.oneOfType([o.default.string,o.default.object]),parentSelector:o.default.func,bodyOpenClassName:o.default.string,htmlOpenClassName:o.default.string,ariaHideApp:o.default.bool,appElement:o.default.oneOfType([o.default.instanceOf(_.default),o.default.instanceOf(P.SafeHTMLCollection),o.default.instanceOf(P.SafeNodeList),o.default.arrayOf(o.default.instanceOf(_.default))]),onAfterOpen:o.default.func,onAfterClose:o.default.func,onRequestClose:o.default.func,closeTimeoutMS:o.default.number,shouldFocusAfterRender:o.default.bool,shouldCloseOnOverlayClick:o.default.bool,shouldReturnFocusAfterClose:o.default.bool,preventScroll:o.default.bool,role:o.default.string,contentLabel:o.default.string,aria:o.default.object,data:o.default.object,children:o.default.node,shouldCloseOnEsc:o.default.bool,overlayRef:o.default.func,contentRef:o.default.func,id:o.default.string,overlayElement:o.default.func,contentElement:o.default.func,testId:o.default.string},e.default=j,t.exports=e.default})(ds,ds.exports);var zD=ds.exports;function wb(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);t!=null&&this.setState(t)}function Eb(t){function e(r){var n=this.constructor.getDerivedStateFromProps(t,r);return n??null}this.setState(e.bind(this))}function Cb(t,e){try{var r=this.props,n=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}wb.__suppressDeprecationWarning=!0;Eb.__suppressDeprecationWarning=!0;Cb.__suppressDeprecationWarning=!0;function $D(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if(typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function")return t;var r=null,n=null,i=null;if(typeof e.componentWillMount=="function"?r="componentWillMount":typeof e.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof e.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof e.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof e.componentWillUpdate=="function"?i="componentWillUpdate":typeof e.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),r!==null||n!==null||i!==null){var u=t.displayName||t.name,a=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. +*/(function(t){(function(){var e=!!(typeof window<"u"&&window.document&&window.document.createElement),r={canUseDOM:e,canUseWorkers:typeof Worker<"u",canUseEventListeners:e&&!!(window.addEventListener||window.attachEvent),canUseViewport:e&&!!window.screen};t.exports?t.exports=r:window.ExecutionEnvironment=r})()})(xb);var cD=xb.exports;Object.defineProperty(Zt,"__esModule",{value:!0});Zt.canUseDOM=Zt.SafeNodeList=Zt.SafeHTMLCollection=void 0;var dD=cD,hD=pD(dD);function pD(t){return t&&t.__esModule?t:{default:t}}var G8=hD.default,bD=G8.canUseDOM?window.HTMLElement:{};Zt.SafeHTMLCollection=G8.canUseDOM?window.HTMLCollection:{};Zt.SafeNodeList=G8.canUseDOM?window.NodeList:{};Zt.canUseDOM=G8.canUseDOM;Zt.default=bD;Object.defineProperty(nr,"__esModule",{value:!0});nr.resetState=vD;nr.log=AD;nr.assertNodeList=vb;nr.setElement=wD;nr.validateElement=V4;nr.hide=ED;nr.show=CD;nr.documentNotReadyOrSSRTesting=FD;var mD=lD,yD=xD(mD),gD=Zt;function xD(t){return t&&t.__esModule?t:{default:t}}var _t=null;function vD(){_t&&(_t.removeAttribute?_t.removeAttribute("aria-hidden"):_t.length!=null?_t.forEach(function(t){return t.removeAttribute("aria-hidden")}):document.querySelectorAll(_t).forEach(function(t){return t.removeAttribute("aria-hidden")})),_t=null}function AD(){}function vb(t,e){if(!t||!t.length)throw new Error("react-modal: No elements were found for selector "+e+".")}function wD(t){var e=t;if(typeof e=="string"&&gD.canUseDOM){var r=document.querySelectorAll(e);vb(r,e),e=r}return _t=e||_t,_t}function V4(t){var e=t||_t;return e?Array.isArray(e)||e instanceof HTMLCollection||e instanceof NodeList?e:[e]:((0,yD.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function ED(t){var e=!0,r=!1,n=void 0;try{for(var i=V4(t)[Symbol.iterator](),u;!(e=(u=i.next()).done);e=!0){var a=u.value;a.setAttribute("aria-hidden","true")}}catch(o){r=!0,n=o}finally{try{!e&&i.return&&i.return()}finally{if(r)throw n}}}function CD(t){var e=!0,r=!1,n=void 0;try{for(var i=V4(t)[Symbol.iterator](),u;!(e=(u=i.next()).done);e=!0){var a=u.value;a.removeAttribute("aria-hidden")}}catch(o){r=!0,n=o}finally{try{!e&&i.return&&i.return()}finally{if(r)throw n}}}function FD(){_t=null}var fi={};Object.defineProperty(fi,"__esModule",{value:!0});fi.resetState=BD;fi.log=DD;var ou={},su={};function oc(t,e){t.classList.remove(e)}function BD(){var t=document.getElementsByTagName("html")[0];for(var e in ou)oc(t,ou[e]);var r=document.body;for(var n in su)oc(r,su[n]);ou={},su={}}function DD(){}var _D=function(e,r){return e[r]||(e[r]=0),e[r]+=1,r},kD=function(e,r){return e[r]&&(e[r]-=1),r},SD=function(e,r,n){n.forEach(function(i){_D(r,i),e.add(i)})},TD=function(e,r,n){n.forEach(function(i){kD(r,i),r[i]===0&&e.remove(i)})};fi.add=function(e,r){return SD(e.classList,e.nodeName.toLowerCase()=="html"?ou:su,r.split(" "))};fi.remove=function(e,r){return TD(e.classList,e.nodeName.toLowerCase()=="html"?ou:su,r.split(" "))};var li={};Object.defineProperty(li,"__esModule",{value:!0});li.log=ND;li.resetState=MD;function PD(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Ab=function t(){var e=this;PD(this,t),this.register=function(r){e.openInstances.indexOf(r)===-1&&(e.openInstances.push(r),e.emit("register"))},this.deregister=function(r){var n=e.openInstances.indexOf(r);n!==-1&&(e.openInstances.splice(n,1),e.emit("deregister"))},this.subscribe=function(r){e.subscribers.push(r)},this.emit=function(r){e.subscribers.forEach(function(n){return n(r,e.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},n8=new Ab;function ND(){console.log("portalOpenInstances ----------"),console.log(n8.openInstances.length),n8.openInstances.forEach(function(t){return console.log(t)}),console.log("end portalOpenInstances ----------")}function MD(){n8=new Ab}li.default=n8;var J4={};Object.defineProperty(J4,"__esModule",{value:!0});J4.resetState=OD;J4.log=LD;var UD=li,ID=RD(UD);function RD(t){return t&&t.__esModule?t:{default:t}}var Me=void 0,Ht=void 0,wn=[];function OD(){for(var t=[Me,Ht],e=0;e0?(document.body.firstChild!==Me&&document.body.insertBefore(Me,document.body.firstChild),document.body.lastChild!==Ht&&document.body.appendChild(Ht)):(Me.parentElement&&Me.parentElement.removeChild(Me),Ht.parentElement&&Ht.parentElement.removeChild(Ht))}ID.default.subscribe(jD);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(p){for(var v=1;v0&&(h0-=1,h0===0&&C.show(z)),k.props.shouldFocusAfterRender&&(k.props.shouldReturnFocusAfterClose?(c.returnFocus(k.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),k.props.onAfterClose&&k.props.onAfterClose(),N.default.deregister(k)},k.open=function(){k.beforeOpen(),k.state.afterOpen&&k.state.beforeClose?(clearTimeout(k.closeTimer),k.setState({beforeClose:!1})):(k.props.shouldFocusAfterRender&&(c.setupScopedFocus(k.node),c.markForFocusLater()),k.setState({isOpen:!0},function(){k.openAnimationFrame=requestAnimationFrame(function(){k.setState({afterOpen:!0}),k.props.isOpen&&k.props.onAfterOpen&&k.props.onAfterOpen({overlayEl:k.overlay,contentEl:k.content})})}))},k.close=function(){k.props.closeTimeoutMS>0?k.closeWithTimeout():k.closeWithoutTimeout()},k.focusContent=function(){return k.content&&!k.contentHasFocus()&&k.content.focus({preventScroll:!0})},k.closeWithTimeout=function(){var I=Date.now()+k.props.closeTimeoutMS;k.setState({beforeClose:!0,closesAt:I},function(){k.closeTimer=setTimeout(k.closeWithoutTimeout,k.state.closesAt-Date.now())})},k.closeWithoutTimeout=function(){k.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},k.afterClose)},k.handleKeyDown=function(I){d0(I)&&(0,y.default)(k.content,I),k.props.shouldCloseOnEsc&&c0(I)&&(I.stopPropagation(),k.requestClose(I))},k.handleOverlayOnClick=function(I){k.shouldClose===null&&(k.shouldClose=!0),k.shouldClose&&k.props.shouldCloseOnOverlayClick&&(k.ownerHandlesClose()?k.requestClose(I):k.focusContent()),k.shouldClose=null},k.handleContentOnMouseUp=function(){k.shouldClose=!1},k.handleOverlayOnMouseDown=function(I){!k.props.shouldCloseOnOverlayClick&&I.target==k.overlay&&I.preventDefault()},k.handleContentOnClick=function(){k.shouldClose=!1},k.handleContentOnMouseDown=function(){k.shouldClose=!1},k.requestClose=function(I){return k.ownerHandlesClose()&&k.props.onRequestClose(I)},k.ownerHandlesClose=function(){return k.props.onRequestClose},k.shouldBeClosed=function(){return!k.state.isOpen&&!k.state.beforeClose},k.contentHasFocus=function(){return document.activeElement===k.content||k.content.contains(document.activeElement)},k.buildClassName=function(I,z){var V=(typeof z>"u"?"undefined":n(z))==="object"?z:{base:o0[I],afterOpen:o0[I]+"--after-open",beforeClose:o0[I]+"--before-close"},b=V.base;return k.state.afterOpen&&(b=b+" "+V.afterOpen),k.state.beforeClose&&(b=b+" "+V.beforeClose),typeof z=="string"&&z?b+" "+z:b},k.attributesFromObject=function(I,z){return Object.keys(z).reduce(function(V,b){return V[I+"-"+b]=z[b],V},{})},k.state={afterOpen:!1,beforeClose:!1},k.shouldClose=null,k.moveFromContentToOverlay=null,k}return i(v,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(k,I){this.props.isOpen&&!k.isOpen?this.open():!this.props.isOpen&&k.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!I.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var k=this.props,I=k.appElement,z=k.ariaHideApp,V=k.htmlOpenClassName,b=k.bodyOpenClassName,l=k.parentSelector,m=l&&l().ownerDocument||document;b&&U.add(m.body,b),V&&U.add(m.getElementsByTagName("html")[0],V),z&&(h0+=1,C.hide(I)),N.default.register(this)}},{key:"render",value:function(){var k=this.props,I=k.id,z=k.className,V=k.overlayClassName,b=k.defaultStyles,l=k.children,m=z?{}:b.content,D=V?{}:b.overlay;if(this.shouldBeClosed())return null;var f={ref:this.setOverlayRef,className:this.buildClassName("overlay",V),style:r({},D,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},S=r({id:I,ref:this.setContentRef,style:r({},m,this.props.style.content),className:this.buildClassName("content",z),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),O=this.props.contentElement(S,l);return this.props.overlayElement(f,O)}}]),v}(u.Component);j.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},j.propTypes={isOpen:o.default.bool.isRequired,defaultStyles:o.default.shape({content:o.default.object,overlay:o.default.object}),style:o.default.shape({content:o.default.object,overlay:o.default.object}),className:o.default.oneOfType([o.default.string,o.default.object]),overlayClassName:o.default.oneOfType([o.default.string,o.default.object]),parentSelector:o.default.func,bodyOpenClassName:o.default.string,htmlOpenClassName:o.default.string,ariaHideApp:o.default.bool,appElement:o.default.oneOfType([o.default.instanceOf(_.default),o.default.instanceOf(P.SafeHTMLCollection),o.default.instanceOf(P.SafeNodeList),o.default.arrayOf(o.default.instanceOf(_.default))]),onAfterOpen:o.default.func,onAfterClose:o.default.func,onRequestClose:o.default.func,closeTimeoutMS:o.default.number,shouldFocusAfterRender:o.default.bool,shouldCloseOnOverlayClick:o.default.bool,shouldReturnFocusAfterClose:o.default.bool,preventScroll:o.default.bool,role:o.default.string,contentLabel:o.default.string,aria:o.default.object,data:o.default.object,children:o.default.node,shouldCloseOnEsc:o.default.bool,overlayRef:o.default.func,contentRef:o.default.func,id:o.default.string,overlayElement:o.default.func,contentElement:o.default.func,testId:o.default.string},e.default=j,t.exports=e.default})(ds,ds.exports);var zD=ds.exports;function wb(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);t!=null&&this.setState(t)}function Eb(t){function e(r){var n=this.constructor.getDerivedStateFromProps(t,r);return n??null}this.setState(e.bind(this))}function Cb(t,e){try{var r=this.props,n=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}wb.__suppressDeprecationWarning=!0;Eb.__suppressDeprecationWarning=!0;Cb.__suppressDeprecationWarning=!0;function $D(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if(typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function")return t;var r=null,n=null,i=null;if(typeof e.componentWillMount=="function"?r="componentWillMount":typeof e.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof e.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof e.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof e.componentWillUpdate=="function"?i="componentWillUpdate":typeof e.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),r!==null||n!==null||i!==null){var u=t.displayName||t.name,a=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. `+u+" uses "+a+" but also contains the following legacy lifecycles:"+(r!==null?` `+r:"")+(n!==null?` @@ -112,24 +112,24 @@ Error generating stack: `+u.message+` `+i:"")+` The above lifecycles should be removed. Learn more about this warning here: -https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof t.getDerivedStateFromProps=="function"&&(e.componentWillMount=wb,e.componentWillReceiveProps=Eb),typeof e.getSnapshotBeforeUpdate=="function"){if(typeof e.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=Cb;var o=e.componentDidUpdate;e.componentDidUpdate=function(c,d,y){var A=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:y;o.call(this,c,d,A)}}return t}const qD=Object.freeze(Object.defineProperty({__proto__:null,polyfill:$D},Symbol.toStringTag,{value:"Module"})),HD=z1(qD);Object.defineProperty(Nn,"__esModule",{value:!0});Nn.bodyOpenClassName=Nn.portalClassName=void 0;var lc=Object.assign||function(t){for(var e=1;e{var i,u;e(),await j4.activate().catch(()=>{});try{const a=String(await((i=window.ethereum)==null?void 0:i.request({method:"net_version"}).catch(()=>"0x1")));if(a!==yn&&a!==_F){const o={chainId:"0xaa36a7",chainName:"Sepolia Test Network",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia-infura.brave.com/"],blockExplorerUrls:["https://sepolia.etherscan.io"]};await((u=window.ethereum)==null?void 0:u.request({method:"wallet_addEthereumChain",params:[o]}))}}catch(a){console.error("FAILED TO ADD SEPOLIA:",a)}},[e]);return X.jsx(i_,{isOpen:t,onRequestClose:e,className:"connect-modal",overlayClassName:"overlay-modal",children:X.jsx("div",{className:"connect-modal-content",children:X.jsx("button",{onClick:n,disabled:r,children:"Connect to Wallet"})})})}function Bb(t){let e=t.split("."),r=new Uint8Array(t.length+e.length),n=0;for(let i of e){let u=i.length;r[n]=u,n++;for(let a=0;ai.toString(16).padStart(2,"0")).join("")}`}const M6=2147483647,yr=36,Q4=1,zu=26,o_=38,s_=700,Db=72,_b=128,kb="-",l_=/^xn--/,f_=/[^\0-\x7F]/,c_=/[\x2E\u3002\uFF0E\uFF61]/g,d_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ha=yr-Q4,gr=Math.floor,Ka=String.fromCharCode;function m2(t){throw new RangeError(d_[t])}function h_(t,e){const r=[];let n=t.length;for(;n--;)r[n]=e(t[n]);return r}function Sb(t,e){const r=t.split("@");let n="";r.length>1&&(n=r[0]+"@",t=r[1]),t=t.replace(c_,".");const i=t.split("."),u=h_(i,e).join(".");return n+u}function Y4(t){const e=[];let r=0;const n=t.length;for(;r=55296&&i<=56319&&rString.fromCodePoint(...t),p_=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:yr},bc=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Pb=function(t,e,r){let n=0;for(t=r?gr(t/s_):t>>1,t+=gr(t/e);t>Ha*zu>>1;n+=yr)t=gr(t/Ha);return gr(n+(Ha+1)*t/(t+o_))},X4=function(t){const e=[],r=t.length;let n=0,i=_b,u=Db,a=t.lastIndexOf(kb);a<0&&(a=0);for(let o=0;o=128&&m2("not-basic"),e.push(t.charCodeAt(o));for(let o=a>0?a+1:0;o=r&&m2("invalid-input");const A=p_(t.charCodeAt(o++));A>=yr&&m2("invalid-input"),A>gr((M6-n)/d)&&m2("overflow"),n+=A*d;const C=y<=u?Q4:y>=u+zu?zu:y-u;if(Agr(M6/T)&&m2("overflow"),d*=T}const c=e.length+1;u=Pb(n-s,c,s==0),gr(n/c)>M6-i&&m2("overflow"),i+=gr(n/c),n%=c,e.splice(n++,0,i)}return String.fromCodePoint(...e)},Z4=function(t){const e=[];t=Y4(t);const r=t.length;let n=_b,i=0,u=Db;for(const s of t)s<128&&e.push(Ka(s));const a=e.length;let o=a;for(a&&e.push(kb);o=n&&dgr((M6-i)/c)&&m2("overflow"),i+=(s-n)*c,n=s;for(const d of t)if(dM6&&m2("overflow"),d===n){let y=i;for(let A=yr;;A+=yr){const C=A<=u?Q4:A>=u+zu?zu:A-u;if(y253)||!/^([\u0E00-\u0E7Fa-z0-9-._*]+)$/g.test(e))return!1;if(r.topLevel&&rN[e.replace(/\.$/,"")])return!0;const i=/(.*)\.(([\u0E00-\u0E7Fa-z0-9]+)(\.[a-z0-9]+))/,u=e.match(i);let a=null,o=null;return u&&u.length>2&&tN[u[2]]&&(a=u[2],o=u[1].split(".")),!o&&(o=e.split("."),o.length<=1||(a=o.pop(),!/^(?:xn--)?(?!^\d+$)[\u0E00-\u0E7Fa-z0-9]+$/gi.test(a)))||r.subdomain===!1&&o.length>1?!1:o.every(function(c,d){if(r.wildcard&&d===0&&c==="*"&&o.length>1)return!0;let y=/^([\u0E00-\u0E7Fa-zA-Z0-9-_]+)$/g;d===o.length-1&&(y=/^([\u0E00-\u0E7Fa-zA-Z0-9-]+)$/g);const A=(c.match(/--(--)?/g)||[]).length,C=(c.match(/xn--/g)||[]).length;return d===o.length-1&&A!==C?!1:y.test(c)&&c.length<64&&!c.startsWith("-")&&!c.endsWith("-")})};const e3=xt(nN);var Ib={exports:{}};(function(t,e){(function(r,n){t.exports=n(Ub)})(y1,function(r){function n(T){return T&&typeof T=="object"&&"default"in T?T:{default:T}}var i=n(r),u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof y1<"u"?y1:typeof self<"u"?self:{},a={exports:{}};/** +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof t.getDerivedStateFromProps=="function"&&(e.componentWillMount=wb,e.componentWillReceiveProps=Eb),typeof e.getSnapshotBeforeUpdate=="function"){if(typeof e.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=Cb;var o=e.componentDidUpdate;e.componentDidUpdate=function(c,d,y){var A=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:y;o.call(this,c,d,A)}}return t}const qD=Object.freeze(Object.defineProperty({__proto__:null,polyfill:$D},Symbol.toStringTag,{value:"Module"})),HD=z1(qD);Object.defineProperty(Nn,"__esModule",{value:!0});Nn.bodyOpenClassName=Nn.portalClassName=void 0;var fc=Object.assign||function(t){for(var e=1;e{var i,u;e(),await j4.activate().catch(()=>{});try{const a=String(await((i=window.ethereum)==null?void 0:i.request({method:"net_version"}).catch(()=>"0x1")));if(a!==yn&&a!==_F){const o={chainId:"0xaa36a7",chainName:"Sepolia Test Network",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia-infura.brave.com/"],blockExplorerUrls:["https://sepolia.etherscan.io"]};await((u=window.ethereum)==null?void 0:u.request({method:"wallet_addEthereumChain",params:[o]}))}}catch(a){console.error("FAILED TO ADD SEPOLIA:",a)}},[e]);return X.jsx(i_,{isOpen:t,onRequestClose:e,className:"connect-modal",overlayClassName:"overlay-modal",children:X.jsx("div",{className:"connect-modal-content",children:X.jsx("button",{onClick:n,disabled:r,children:"Connect to Wallet"})})})}function Bb(t){let e=t.split("."),r=new Uint8Array(t.length+e.length),n=0;for(let i of e){let u=i.length;r[n]=u,n++;for(let a=0;ai.toString(16).padStart(2,"0")).join("")}`}const M6=2147483647,yr=36,Q4=1,zu=26,o_=38,s_=700,Db=72,_b=128,kb="-",f_=/^xn--/,l_=/[^\0-\x7F]/,c_=/[\x2E\u3002\uFF0E\uFF61]/g,d_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ha=yr-Q4,gr=Math.floor,Ka=String.fromCharCode;function m2(t){throw new RangeError(d_[t])}function h_(t,e){const r=[];let n=t.length;for(;n--;)r[n]=e(t[n]);return r}function Sb(t,e){const r=t.split("@");let n="";r.length>1&&(n=r[0]+"@",t=r[1]),t=t.replace(c_,".");const i=t.split("."),u=h_(i,e).join(".");return n+u}function Y4(t){const e=[];let r=0;const n=t.length;for(;r=55296&&i<=56319&&rString.fromCodePoint(...t),p_=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:yr},bc=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Pb=function(t,e,r){let n=0;for(t=r?gr(t/s_):t>>1,t+=gr(t/e);t>Ha*zu>>1;n+=yr)t=gr(t/Ha);return gr(n+(Ha+1)*t/(t+o_))},X4=function(t){const e=[],r=t.length;let n=0,i=_b,u=Db,a=t.lastIndexOf(kb);a<0&&(a=0);for(let o=0;o=128&&m2("not-basic"),e.push(t.charCodeAt(o));for(let o=a>0?a+1:0;o=r&&m2("invalid-input");const A=p_(t.charCodeAt(o++));A>=yr&&m2("invalid-input"),A>gr((M6-n)/d)&&m2("overflow"),n+=A*d;const C=y<=u?Q4:y>=u+zu?zu:y-u;if(Agr(M6/T)&&m2("overflow"),d*=T}const c=e.length+1;u=Pb(n-s,c,s==0),gr(n/c)>M6-i&&m2("overflow"),i+=gr(n/c),n%=c,e.splice(n++,0,i)}return String.fromCodePoint(...e)},Z4=function(t){const e=[];t=Y4(t);const r=t.length;let n=_b,i=0,u=Db;for(const s of t)s<128&&e.push(Ka(s));const a=e.length;let o=a;for(a&&e.push(kb);o=n&&dgr((M6-i)/c)&&m2("overflow"),i+=(s-n)*c,n=s;for(const d of t)if(dM6&&m2("overflow"),d===n){let y=i;for(let A=yr;;A+=yr){const C=A<=u?Q4:A>=u+zu?zu:A-u;if(y253)||!/^([\u0E00-\u0E7Fa-z0-9-._*]+)$/g.test(e))return!1;if(r.topLevel&&rN[e.replace(/\.$/,"")])return!0;const i=/(.*)\.(([\u0E00-\u0E7Fa-z0-9]+)(\.[a-z0-9]+))/,u=e.match(i);let a=null,o=null;return u&&u.length>2&&tN[u[2]]&&(a=u[2],o=u[1].split(".")),!o&&(o=e.split("."),o.length<=1||(a=o.pop(),!/^(?:xn--)?(?!^\d+$)[\u0E00-\u0E7Fa-z0-9]+$/gi.test(a)))||r.subdomain===!1&&o.length>1?!1:o.every(function(c,d){if(r.wildcard&&d===0&&c==="*"&&o.length>1)return!0;let y=/^([\u0E00-\u0E7Fa-zA-Z0-9-_]+)$/g;d===o.length-1&&(y=/^([\u0E00-\u0E7Fa-zA-Z0-9-]+)$/g);const A=(c.match(/--(--)?/g)||[]).length,C=(c.match(/xn--/g)||[]).length;return d===o.length-1&&A!==C?!1:y.test(c)&&c.length<64&&!c.startsWith("-")&&!c.endsWith("-")})};const e3=xt(nN);var Ib={exports:{}};(function(t,e){(function(r,n){t.exports=n(Ub)})(y1,function(r){function n(T){return T&&typeof T=="object"&&"default"in T?T:{default:T}}var i=n(r),u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof y1<"u"?y1:typeof self<"u"?self:{},a={exports:{}};/** * [js-sha3]{@link https://github.com/emn178/js-sha3} * * @version 0.5.7 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2015-2016 * @license MIT - */(function(T){(function(){var U=typeof window=="object"?window:{},P=!U.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;P&&(U=u);for(var _=!U.JS_SHA3_NO_COMMON_JS&&!0&&T.exports,B="0123456789abcdef".split(""),N=[31,7936,2031616,520093696],W=[1,256,65536,16777216],G=[6,1536,393216,100663296],t0=[0,8,16,24],Z=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],e0=[224,256,384,512],o0=[128,256],d0=["hex","buffer","arrayBuffer","array"],c0=function(l,S,O){return function($){return new m(l,S,l).update($)[O]()}},h0=function(l,S,O){return function($,H){return new m(l,S,H).update($)[O]()}},j=function(l,S){var O=c0(l,S,"hex");O.create=function(){return new m(l,S,l)},O.update=function(n0){return O.create().update(n0)};for(var $=0;$>5,this.byteCount=this.blockCount<<2,this.outputBlocks=O>>5,this.extraBytes=(O&31)>>3;for(var $=0;$<50;++$)this.s[$]=0}m.prototype.update=function(l){var S=typeof l!="string";S&&l.constructor===ArrayBuffer&&(l=new Uint8Array(l));for(var O=l.length,$=this.blocks,H=this.byteCount,n0=this.blockCount,u0=0,s0=this.s,g0,y0;u0>2]|=l[u0]<>2]|=y0<>2]|=(192|y0>>6)<>2]|=(128|y0&63)<=57344?($[g0>>2]|=(224|y0>>12)<>2]|=(128|y0>>6&63)<>2]|=(128|y0&63)<>2]|=(240|y0>>18)<>2]|=(128|y0>>12&63)<>2]|=(128|y0>>6&63)<>2]|=(128|y0&63)<=H){for(this.start=g0-H,this.block=$[n0],g0=0;g0>2]|=this.padding[S&3],this.lastByteIndex===this.byteCount)for(l[0]=l[O],S=1;S>4&15]+B[s0&15]+B[s0>>12&15]+B[s0>>8&15]+B[s0>>20&15]+B[s0>>16&15]+B[s0>>28&15]+B[s0>>24&15];n0%l===0&&(D(S),H=0)}return $&&(s0=S[H],$>0&&(u0+=B[s0>>4&15]+B[s0&15]),$>1&&(u0+=B[s0>>12&15]+B[s0>>8&15]),$>2&&(u0+=B[s0>>20&15]+B[s0>>16&15])),u0},m.prototype.arrayBuffer=function(){this.finalize();var l=this.blockCount,S=this.s,O=this.outputBlocks,$=this.extraBytes,H=0,n0=0,u0=this.outputBits>>3,s0;$?s0=new ArrayBuffer(O+1<<2):s0=new ArrayBuffer(u0);for(var g0=new Uint32Array(s0);n0>8&255,u0[s0+2]=g0>>16&255,u0[s0+3]=g0>>24&255;n0%l===0&&D(S)}return $&&(s0=n0<<2,g0=S[H],$>0&&(u0[s0]=g0&255),$>1&&(u0[s0+1]=g0>>8&255),$>2&&(u0[s0+2]=g0>>16&255)),u0};var D=function(l){var S,O,$,H,n0,u0,s0,g0,y0,_0,z0,M0,I0,R0,V0,G0,X0,$0,Z0,p1,l1,L,x,w,q,i0,l0,p0,O0,H0,K0,Y0,j0,o1,be,b1,g1,ne,e1,F1,ce,m1,f1,ve,d1,w1,me,E1,S1,ze,B1,T1,se,P1,N1,Ze,M1,D1,$e,Z1,Ae,we,t1;for($=0;$<48;$+=2)H=l[0]^l[10]^l[20]^l[30]^l[40],n0=l[1]^l[11]^l[21]^l[31]^l[41],u0=l[2]^l[12]^l[22]^l[32]^l[42],s0=l[3]^l[13]^l[23]^l[33]^l[43],g0=l[4]^l[14]^l[24]^l[34]^l[44],y0=l[5]^l[15]^l[25]^l[35]^l[45],_0=l[6]^l[16]^l[26]^l[36]^l[46],z0=l[7]^l[17]^l[27]^l[37]^l[47],M0=l[8]^l[18]^l[28]^l[38]^l[48],I0=l[9]^l[19]^l[29]^l[39]^l[49],S=M0^(u0<<1|s0>>>31),O=I0^(s0<<1|u0>>>31),l[0]^=S,l[1]^=O,l[10]^=S,l[11]^=O,l[20]^=S,l[21]^=O,l[30]^=S,l[31]^=O,l[40]^=S,l[41]^=O,S=H^(g0<<1|y0>>>31),O=n0^(y0<<1|g0>>>31),l[2]^=S,l[3]^=O,l[12]^=S,l[13]^=O,l[22]^=S,l[23]^=O,l[32]^=S,l[33]^=O,l[42]^=S,l[43]^=O,S=u0^(_0<<1|z0>>>31),O=s0^(z0<<1|_0>>>31),l[4]^=S,l[5]^=O,l[14]^=S,l[15]^=O,l[24]^=S,l[25]^=O,l[34]^=S,l[35]^=O,l[44]^=S,l[45]^=O,S=g0^(M0<<1|I0>>>31),O=y0^(I0<<1|M0>>>31),l[6]^=S,l[7]^=O,l[16]^=S,l[17]^=O,l[26]^=S,l[27]^=O,l[36]^=S,l[37]^=O,l[46]^=S,l[47]^=O,S=_0^(H<<1|n0>>>31),O=z0^(n0<<1|H>>>31),l[8]^=S,l[9]^=O,l[18]^=S,l[19]^=O,l[28]^=S,l[29]^=O,l[38]^=S,l[39]^=O,l[48]^=S,l[49]^=O,R0=l[0],V0=l[1],w1=l[11]<<4|l[10]>>>28,me=l[10]<<4|l[11]>>>28,p0=l[20]<<3|l[21]>>>29,O0=l[21]<<3|l[20]>>>29,Z1=l[31]<<9|l[30]>>>23,Ae=l[30]<<9|l[31]>>>23,m1=l[40]<<18|l[41]>>>14,f1=l[41]<<18|l[40]>>>14,o1=l[2]<<1|l[3]>>>31,be=l[3]<<1|l[2]>>>31,G0=l[13]<<12|l[12]>>>20,X0=l[12]<<12|l[13]>>>20,E1=l[22]<<10|l[23]>>>22,S1=l[23]<<10|l[22]>>>22,H0=l[33]<<13|l[32]>>>19,K0=l[32]<<13|l[33]>>>19,we=l[42]<<2|l[43]>>>30,t1=l[43]<<2|l[42]>>>30,P1=l[5]<<30|l[4]>>>2,N1=l[4]<<30|l[5]>>>2,b1=l[14]<<6|l[15]>>>26,g1=l[15]<<6|l[14]>>>26,$0=l[25]<<11|l[24]>>>21,Z0=l[24]<<11|l[25]>>>21,ze=l[34]<<15|l[35]>>>17,B1=l[35]<<15|l[34]>>>17,Y0=l[45]<<29|l[44]>>>3,j0=l[44]<<29|l[45]>>>3,w=l[6]<<28|l[7]>>>4,q=l[7]<<28|l[6]>>>4,Ze=l[17]<<23|l[16]>>>9,M1=l[16]<<23|l[17]>>>9,ne=l[26]<<25|l[27]>>>7,e1=l[27]<<25|l[26]>>>7,p1=l[36]<<21|l[37]>>>11,l1=l[37]<<21|l[36]>>>11,T1=l[47]<<24|l[46]>>>8,se=l[46]<<24|l[47]>>>8,ve=l[8]<<27|l[9]>>>5,d1=l[9]<<27|l[8]>>>5,i0=l[18]<<20|l[19]>>>12,l0=l[19]<<20|l[18]>>>12,D1=l[29]<<7|l[28]>>>25,$e=l[28]<<7|l[29]>>>25,F1=l[38]<<8|l[39]>>>24,ce=l[39]<<8|l[38]>>>24,L=l[48]<<14|l[49]>>>18,x=l[49]<<14|l[48]>>>18,l[0]=R0^~G0&$0,l[1]=V0^~X0&Z0,l[10]=w^~i0&p0,l[11]=q^~l0&O0,l[20]=o1^~b1&ne,l[21]=be^~g1&e1,l[30]=ve^~w1&E1,l[31]=d1^~me&S1,l[40]=P1^~Ze&D1,l[41]=N1^~M1&$e,l[2]=G0^~$0&p1,l[3]=X0^~Z0&l1,l[12]=i0^~p0&H0,l[13]=l0^~O0&K0,l[22]=b1^~ne&F1,l[23]=g1^~e1&ce,l[32]=w1^~E1&ze,l[33]=me^~S1&B1,l[42]=Ze^~D1&Z1,l[43]=M1^~$e&Ae,l[4]=$0^~p1&L,l[5]=Z0^~l1&x,l[14]=p0^~H0&Y0,l[15]=O0^~K0&j0,l[24]=ne^~F1&m1,l[25]=e1^~ce&f1,l[34]=E1^~ze&T1,l[35]=S1^~B1&se,l[44]=D1^~Z1&we,l[45]=$e^~Ae&t1,l[6]=p1^~L&R0,l[7]=l1^~x&V0,l[16]=H0^~Y0&w,l[17]=K0^~j0&q,l[26]=F1^~m1&o1,l[27]=ce^~f1&be,l[36]=ze^~T1&ve,l[37]=B1^~se&d1,l[46]=Z1^~we&P1,l[47]=Ae^~t1&N1,l[8]=L^~R0&G0,l[9]=x^~V0&X0,l[18]=Y0^~w&i0,l[19]=j0^~q&l0,l[28]=m1^~o1&b1,l[29]=f1^~be&g1,l[38]=T1^~ve&w1,l[39]=se^~d1&me,l[48]=we^~P1&Ze,l[49]=t1^~N1&M1,l[0]^=Z[$],l[1]^=Z[$+1]};if(_)T.exports=M;else for(var I=0;I=196608?W>=917760&&W<=917999?18874368:0:P[_[W>>4]][W&15]}return{mapStr:B,mapChar:N}})})(s),function(T,U){(function(P,_){T.exports=_(i.default,s.exports)})(u,function(P,_){function B(e0,o0,d0){const c0=[],h0=P.ucs2.decode(e0);for(let p=0;p>23,z=k>>21&3,V=k>>5&65535,b=k&31,f=_.mapStr.substr(V,b);if(z===0||o0&&I&1)throw new Error("Illegal char "+M);z===1?c0.push(f):z===2?c0.push(d0?f:M):z===3&&c0.push(M)}return c0.join("").normalize("NFC")}function N(e0,o0,d0){d0===void 0&&(d0=!1);let h0=B(e0,d0,o0).split(".");return h0=h0.map(function(j){return j.startsWith("xn--")?(j=P.decode(j.substring(4)),W(j,d0,!1)):W(j,d0,o0),j}),h0.join(".")}function W(e0,o0,d0){if(e0[2]==="-"&&e0[3]==="-")throw new Error("Failed to validate "+e0);if(e0.startsWith("-")||e0.endsWith("-"))throw new Error("Failed to validate "+e0);if(e0.includes("."))throw new Error("Failed to validate "+e0);if(B(e0,o0,d0)!==e0)throw new Error("Failed to validate "+e0);const c0=e0.codePointAt(0);if(_.mapChar(c0)&2<<23)throw new Error("Label contains illegal character: "+c0)}function G(e0,o0){o0===void 0&&(o0={});const d0="transitional"in o0?o0.transitional:!0,c0="useStd3ASCII"in o0?o0.useStd3ASCII:!1,h0="verifyDnsLength"in o0?o0.verifyDnsLength:!1,p=N(e0,d0,c0).split(".").map(P.toASCII),v=p.join(".");let M;if(h0){if(v.length<1||v.length>253)throw new Error("DNS name has wrong length: "+v);for(M=0;M63)throw new Error("DNS label has wrong length: "+k)}}return v}function t0(e0){const o0=Array.isArray(e0);o0||(e0=[e0]);const d0={IDN:[],PC:[]};return e0.forEach(c0=>{let h0,j;try{h0=G(c0,{transitional:!c0.match(/\.(?:be|ca|de|fr|pm|re|swiss|tf|wf|yt)\.?$/)}),j={PC:h0,IDN:Z(h0)}}catch{j={PC:c0,IDN:c0}}d0.PC.push(j.PC),d0.IDN.push(j.IDN)}),o0?d0:{IDN:d0.IDN[0],PC:d0.PC[0]}}function Z(e0,o0){o0===void 0&&(o0={});const d0="useStd3ASCII"in o0?o0.useStd3ASCII:!1;return N(e0,!1,d0)}return{toUnicode:Z,toAscii:G,convert:t0}})}(o);var c=a.exports.keccak_256,d=o.exports;function y(T){for(var U="",P=0;P<32;P++)U+="00";var _=A(T);if(_)for(var B=_.split("."),P=B.length-1;P>=0;P--){var N=c(B[P]);U=c(new Buffer(U+N,"hex"))}return"0x"+U}function A(T){return T&&d.toUnicode(T,{useStd3ASCII:!0,transitional:!1})}var C={hash:y,normalize:A};return C})})(Ib);var $u=Ib.exports;const iN=xt($u);function uN(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function aN(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}const U6=2147483647,qr=36,oN=/^xn--/,sN=/[^\0-\x7F]/,lN=/[\x2E\u3002\uFF0E\uFF61]/g,fN={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},xr=Math.floor,Ga=String.fromCharCode;function y2(t){throw new RangeError(fN[t])}function Rb(t,e){const r=t.split("@");let n="";r.length>1&&(n=r[0]+"@",t=r[1]);const i=function(u,a){const o=[];let s=u.length;for(;s--;)o[s]=a(u[s]);return o}((t=t.replace(lN,".")).split("."),e).join(".");return n+i}function t3(t){const e=[];let r=0;const n=t.length;for(;r=55296&&i<=56319&&rString.fromCodePoint(...t),mc=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Lb=function(t,e,r){let n=0;for(t=r?xr(t/700):t>>1,t+=xr(t/e);t>455;n+=qr)t=xr(t/35);return xr(n+36*t/(t+38))},r3=function(t){const e=[],r=t.length;let n=0,i=128,u=72,a=t.lastIndexOf("-");a<0&&(a=0);for(let s=0;s=128&&y2("not-basic"),e.push(t.charCodeAt(s));for(let s=a>0?a+1:0;s=r&&y2("invalid-input");const C=(o=t.charCodeAt(s++))>=48&&o<58?o-48+26:o>=65&&o<91?o-65:o>=97&&o<123?o-97:qr;C>=qr&&y2("invalid-input"),C>xr((U6-n)/y)&&y2("overflow"),n+=C*y;const T=A<=u?1:A>=u+26?26:A-u;if(Cxr(U6/U)&&y2("overflow"),y*=U}const d=e.length+1;u=Lb(n-c,d,c==0),xr(n/d)>U6-i&&y2("overflow"),i+=xr(n/d),n%=d,e.splice(n++,0,i)}var o;return String.fromCodePoint(...e)},n3=function(t){const e=[],r=(t=t3(t)).length;let n=128,i=0,u=72;for(const s of t)s<128&&e.push(Ga(s));const a=e.length;let o=a;for(a&&e.push("-");o=n&&dxr((U6-i)/c)&&y2("overflow"),i+=(s-n)*c,n=s;for(const d of t)if(dU6&&y2("overflow"),d===n){let y=i;for(let A=qr;;A+=qr){const C=A<=u?1:A>=u+26?26:A-u;if(y"],[65126,5,"="],[65127,3],[65128,5,"\\"],[65129,5,"$"],[65130,5,"%"],[65131,5,"@"],[[65132,65135],3],[65136,5," ً"],[65137,1,"ـً"],[65138,5," ٌ"],[65139,2],[65140,5," ٍ"],[65141,3],[65142,5," َ"],[65143,1,"ـَ"],[65144,5," ُ"],[65145,1,"ـُ"],[65146,5," ِ"],[65147,1,"ـِ"],[65148,5," ّ"],[65149,1,"ـّ"],[65150,5," ْ"],[65151,1,"ـْ"],[65152,1,"ء"],[[65153,65154],1,"آ"],[[65155,65156],1,"أ"],[[65157,65158],1,"ؤ"],[[65159,65160],1,"إ"],[[65161,65164],1,"ئ"],[[65165,65166],1,"ا"],[[65167,65170],1,"ب"],[[65171,65172],1,"ة"],[[65173,65176],1,"ت"],[[65177,65180],1,"ث"],[[65181,65184],1,"ج"],[[65185,65188],1,"ح"],[[65189,65192],1,"خ"],[[65193,65194],1,"د"],[[65195,65196],1,"ذ"],[[65197,65198],1,"ر"],[[65199,65200],1,"ز"],[[65201,65204],1,"س"],[[65205,65208],1,"ش"],[[65209,65212],1,"ص"],[[65213,65216],1,"ض"],[[65217,65220],1,"ط"],[[65221,65224],1,"ظ"],[[65225,65228],1,"ع"],[[65229,65232],1,"غ"],[[65233,65236],1,"ف"],[[65237,65240],1,"ق"],[[65241,65244],1,"ك"],[[65245,65248],1,"ل"],[[65249,65252],1,"م"],[[65253,65256],1,"ن"],[[65257,65260],1,"ه"],[[65261,65262],1,"و"],[[65263,65264],1,"ى"],[[65265,65268],1,"ي"],[[65269,65270],1,"لآ"],[[65271,65272],1,"لأ"],[[65273,65274],1,"لإ"],[[65275,65276],1,"لا"],[[65277,65278],3],[65279,7],[65280,3],[65281,5,"!"],[65282,5,'"'],[65283,5,"#"],[65284,5,"$"],[65285,5,"%"],[65286,5,"&"],[65287,5,"'"],[65288,5,"("],[65289,5,")"],[65290,5,"*"],[65291,5,"+"],[65292,5,","],[65293,1,"-"],[65294,1,"."],[65295,5,"/"],[65296,1,"0"],[65297,1,"1"],[65298,1,"2"],[65299,1,"3"],[65300,1,"4"],[65301,1,"5"],[65302,1,"6"],[65303,1,"7"],[65304,1,"8"],[65305,1,"9"],[65306,5,":"],[65307,5,";"],[65308,5,"<"],[65309,5,"="],[65310,5,">"],[65311,5,"?"],[65312,5,"@"],[65313,1,"a"],[65314,1,"b"],[65315,1,"c"],[65316,1,"d"],[65317,1,"e"],[65318,1,"f"],[65319,1,"g"],[65320,1,"h"],[65321,1,"i"],[65322,1,"j"],[65323,1,"k"],[65324,1,"l"],[65325,1,"m"],[65326,1,"n"],[65327,1,"o"],[65328,1,"p"],[65329,1,"q"],[65330,1,"r"],[65331,1,"s"],[65332,1,"t"],[65333,1,"u"],[65334,1,"v"],[65335,1,"w"],[65336,1,"x"],[65337,1,"y"],[65338,1,"z"],[65339,5,"["],[65340,5,"\\"],[65341,5,"]"],[65342,5,"^"],[65343,5,"_"],[65344,5,"`"],[65345,1,"a"],[65346,1,"b"],[65347,1,"c"],[65348,1,"d"],[65349,1,"e"],[65350,1,"f"],[65351,1,"g"],[65352,1,"h"],[65353,1,"i"],[65354,1,"j"],[65355,1,"k"],[65356,1,"l"],[65357,1,"m"],[65358,1,"n"],[65359,1,"o"],[65360,1,"p"],[65361,1,"q"],[65362,1,"r"],[65363,1,"s"],[65364,1,"t"],[65365,1,"u"],[65366,1,"v"],[65367,1,"w"],[65368,1,"x"],[65369,1,"y"],[65370,1,"z"],[65371,5,"{"],[65372,5,"|"],[65373,5,"}"],[65374,5,"~"],[65375,1,"⦅"],[65376,1,"⦆"],[65377,1,"."],[65378,1,"「"],[65379,1,"」"],[65380,1,"、"],[65381,1,"・"],[65382,1,"ヲ"],[65383,1,"ァ"],[65384,1,"ィ"],[65385,1,"ゥ"],[65386,1,"ェ"],[65387,1,"ォ"],[65388,1,"ャ"],[65389,1,"ュ"],[65390,1,"ョ"],[65391,1,"ッ"],[65392,1,"ー"],[65393,1,"ア"],[65394,1,"イ"],[65395,1,"ウ"],[65396,1,"エ"],[65397,1,"オ"],[65398,1,"カ"],[65399,1,"キ"],[65400,1,"ク"],[65401,1,"ケ"],[65402,1,"コ"],[65403,1,"サ"],[65404,1,"シ"],[65405,1,"ス"],[65406,1,"セ"],[65407,1,"ソ"],[65408,1,"タ"],[65409,1,"チ"],[65410,1,"ツ"],[65411,1,"テ"],[65412,1,"ト"],[65413,1,"ナ"],[65414,1,"ニ"],[65415,1,"ヌ"],[65416,1,"ネ"],[65417,1,"ノ"],[65418,1,"ハ"],[65419,1,"ヒ"],[65420,1,"フ"],[65421,1,"ヘ"],[65422,1,"ホ"],[65423,1,"マ"],[65424,1,"ミ"],[65425,1,"ム"],[65426,1,"メ"],[65427,1,"モ"],[65428,1,"ヤ"],[65429,1,"ユ"],[65430,1,"ヨ"],[65431,1,"ラ"],[65432,1,"リ"],[65433,1,"ル"],[65434,1,"レ"],[65435,1,"ロ"],[65436,1,"ワ"],[65437,1,"ン"],[65438,1,"゙"],[65439,1,"゚"],[65440,3],[65441,1,"ᄀ"],[65442,1,"ᄁ"],[65443,1,"ᆪ"],[65444,1,"ᄂ"],[65445,1,"ᆬ"],[65446,1,"ᆭ"],[65447,1,"ᄃ"],[65448,1,"ᄄ"],[65449,1,"ᄅ"],[65450,1,"ᆰ"],[65451,1,"ᆱ"],[65452,1,"ᆲ"],[65453,1,"ᆳ"],[65454,1,"ᆴ"],[65455,1,"ᆵ"],[65456,1,"ᄚ"],[65457,1,"ᄆ"],[65458,1,"ᄇ"],[65459,1,"ᄈ"],[65460,1,"ᄡ"],[65461,1,"ᄉ"],[65462,1,"ᄊ"],[65463,1,"ᄋ"],[65464,1,"ᄌ"],[65465,1,"ᄍ"],[65466,1,"ᄎ"],[65467,1,"ᄏ"],[65468,1,"ᄐ"],[65469,1,"ᄑ"],[65470,1,"ᄒ"],[[65471,65473],3],[65474,1,"ᅡ"],[65475,1,"ᅢ"],[65476,1,"ᅣ"],[65477,1,"ᅤ"],[65478,1,"ᅥ"],[65479,1,"ᅦ"],[[65480,65481],3],[65482,1,"ᅧ"],[65483,1,"ᅨ"],[65484,1,"ᅩ"],[65485,1,"ᅪ"],[65486,1,"ᅫ"],[65487,1,"ᅬ"],[[65488,65489],3],[65490,1,"ᅭ"],[65491,1,"ᅮ"],[65492,1,"ᅯ"],[65493,1,"ᅰ"],[65494,1,"ᅱ"],[65495,1,"ᅲ"],[[65496,65497],3],[65498,1,"ᅳ"],[65499,1,"ᅴ"],[65500,1,"ᅵ"],[[65501,65503],3],[65504,1,"¢"],[65505,1,"£"],[65506,1,"¬"],[65507,5," ̄"],[65508,1,"¦"],[65509,1,"¥"],[65510,1,"₩"],[65511,3],[65512,1,"│"],[65513,1,"←"],[65514,1,"↑"],[65515,1,"→"],[65516,1,"↓"],[65517,1,"■"],[65518,1,"○"],[[65519,65528],3],[[65529,65531],3],[65532,3],[65533,3],[[65534,65535],3],[[65536,65547],2],[65548,3],[[65549,65574],2],[65575,3],[[65576,65594],2],[65595,3],[[65596,65597],2],[65598,3],[[65599,65613],2],[[65614,65615],3],[[65616,65629],2],[[65630,65663],3],[[65664,65786],2],[[65787,65791],3],[[65792,65794],2],[[65795,65798],3],[[65799,65843],2],[[65844,65846],3],[[65847,65855],2],[[65856,65930],2],[[65931,65932],2],[[65933,65934],2],[65935,3],[[65936,65947],2],[65948,2],[[65949,65951],3],[65952,2],[[65953,65999],3],[[66e3,66044],2],[66045,2],[[66046,66175],3],[[66176,66204],2],[[66205,66207],3],[[66208,66256],2],[[66257,66271],3],[66272,2],[[66273,66299],2],[[66300,66303],3],[[66304,66334],2],[66335,2],[[66336,66339],2],[[66340,66348],3],[[66349,66351],2],[[66352,66368],2],[66369,2],[[66370,66377],2],[66378,2],[[66379,66383],3],[[66384,66426],2],[[66427,66431],3],[[66432,66461],2],[66462,3],[66463,2],[[66464,66499],2],[[66500,66503],3],[[66504,66511],2],[[66512,66517],2],[[66518,66559],3],[66560,1,"𐐨"],[66561,1,"𐐩"],[66562,1,"𐐪"],[66563,1,"𐐫"],[66564,1,"𐐬"],[66565,1,"𐐭"],[66566,1,"𐐮"],[66567,1,"𐐯"],[66568,1,"𐐰"],[66569,1,"𐐱"],[66570,1,"𐐲"],[66571,1,"𐐳"],[66572,1,"𐐴"],[66573,1,"𐐵"],[66574,1,"𐐶"],[66575,1,"𐐷"],[66576,1,"𐐸"],[66577,1,"𐐹"],[66578,1,"𐐺"],[66579,1,"𐐻"],[66580,1,"𐐼"],[66581,1,"𐐽"],[66582,1,"𐐾"],[66583,1,"𐐿"],[66584,1,"𐑀"],[66585,1,"𐑁"],[66586,1,"𐑂"],[66587,1,"𐑃"],[66588,1,"𐑄"],[66589,1,"𐑅"],[66590,1,"𐑆"],[66591,1,"𐑇"],[66592,1,"𐑈"],[66593,1,"𐑉"],[66594,1,"𐑊"],[66595,1,"𐑋"],[66596,1,"𐑌"],[66597,1,"𐑍"],[66598,1,"𐑎"],[66599,1,"𐑏"],[[66600,66637],2],[[66638,66717],2],[[66718,66719],3],[[66720,66729],2],[[66730,66735],3],[66736,1,"𐓘"],[66737,1,"𐓙"],[66738,1,"𐓚"],[66739,1,"𐓛"],[66740,1,"𐓜"],[66741,1,"𐓝"],[66742,1,"𐓞"],[66743,1,"𐓟"],[66744,1,"𐓠"],[66745,1,"𐓡"],[66746,1,"𐓢"],[66747,1,"𐓣"],[66748,1,"𐓤"],[66749,1,"𐓥"],[66750,1,"𐓦"],[66751,1,"𐓧"],[66752,1,"𐓨"],[66753,1,"𐓩"],[66754,1,"𐓪"],[66755,1,"𐓫"],[66756,1,"𐓬"],[66757,1,"𐓭"],[66758,1,"𐓮"],[66759,1,"𐓯"],[66760,1,"𐓰"],[66761,1,"𐓱"],[66762,1,"𐓲"],[66763,1,"𐓳"],[66764,1,"𐓴"],[66765,1,"𐓵"],[66766,1,"𐓶"],[66767,1,"𐓷"],[66768,1,"𐓸"],[66769,1,"𐓹"],[66770,1,"𐓺"],[66771,1,"𐓻"],[[66772,66775],3],[[66776,66811],2],[[66812,66815],3],[[66816,66855],2],[[66856,66863],3],[[66864,66915],2],[[66916,66926],3],[66927,2],[66928,1,"𐖗"],[66929,1,"𐖘"],[66930,1,"𐖙"],[66931,1,"𐖚"],[66932,1,"𐖛"],[66933,1,"𐖜"],[66934,1,"𐖝"],[66935,1,"𐖞"],[66936,1,"𐖟"],[66937,1,"𐖠"],[66938,1,"𐖡"],[66939,3],[66940,1,"𐖣"],[66941,1,"𐖤"],[66942,1,"𐖥"],[66943,1,"𐖦"],[66944,1,"𐖧"],[66945,1,"𐖨"],[66946,1,"𐖩"],[66947,1,"𐖪"],[66948,1,"𐖫"],[66949,1,"𐖬"],[66950,1,"𐖭"],[66951,1,"𐖮"],[66952,1,"𐖯"],[66953,1,"𐖰"],[66954,1,"𐖱"],[66955,3],[66956,1,"𐖳"],[66957,1,"𐖴"],[66958,1,"𐖵"],[66959,1,"𐖶"],[66960,1,"𐖷"],[66961,1,"𐖸"],[66962,1,"𐖹"],[66963,3],[66964,1,"𐖻"],[66965,1,"𐖼"],[66966,3],[[66967,66977],2],[66978,3],[[66979,66993],2],[66994,3],[[66995,67001],2],[67002,3],[[67003,67004],2],[[67005,67071],3],[[67072,67382],2],[[67383,67391],3],[[67392,67413],2],[[67414,67423],3],[[67424,67431],2],[[67432,67455],3],[67456,2],[67457,1,"ː"],[67458,1,"ˑ"],[67459,1,"æ"],[67460,1,"ʙ"],[67461,1,"ɓ"],[67462,3],[67463,1,"ʣ"],[67464,1,"ꭦ"],[67465,1,"ʥ"],[67466,1,"ʤ"],[67467,1,"ɖ"],[67468,1,"ɗ"],[67469,1,"ᶑ"],[67470,1,"ɘ"],[67471,1,"ɞ"],[67472,1,"ʩ"],[67473,1,"ɤ"],[67474,1,"ɢ"],[67475,1,"ɠ"],[67476,1,"ʛ"],[67477,1,"ħ"],[67478,1,"ʜ"],[67479,1,"ɧ"],[67480,1,"ʄ"],[67481,1,"ʪ"],[67482,1,"ʫ"],[67483,1,"ɬ"],[67484,1,"𝼄"],[67485,1,"ꞎ"],[67486,1,"ɮ"],[67487,1,"𝼅"],[67488,1,"ʎ"],[67489,1,"𝼆"],[67490,1,"ø"],[67491,1,"ɶ"],[67492,1,"ɷ"],[67493,1,"q"],[67494,1,"ɺ"],[67495,1,"𝼈"],[67496,1,"ɽ"],[67497,1,"ɾ"],[67498,1,"ʀ"],[67499,1,"ʨ"],[67500,1,"ʦ"],[67501,1,"ꭧ"],[67502,1,"ʧ"],[67503,1,"ʈ"],[67504,1,"ⱱ"],[67505,3],[67506,1,"ʏ"],[67507,1,"ʡ"],[67508,1,"ʢ"],[67509,1,"ʘ"],[67510,1,"ǀ"],[67511,1,"ǁ"],[67512,1,"ǂ"],[67513,1,"𝼊"],[67514,1,"𝼞"],[[67515,67583],3],[[67584,67589],2],[[67590,67591],3],[67592,2],[67593,3],[[67594,67637],2],[67638,3],[[67639,67640],2],[[67641,67643],3],[67644,2],[[67645,67646],3],[67647,2],[[67648,67669],2],[67670,3],[[67671,67679],2],[[67680,67702],2],[[67703,67711],2],[[67712,67742],2],[[67743,67750],3],[[67751,67759],2],[[67760,67807],3],[[67808,67826],2],[67827,3],[[67828,67829],2],[[67830,67834],3],[[67835,67839],2],[[67840,67861],2],[[67862,67865],2],[[67866,67867],2],[[67868,67870],3],[67871,2],[[67872,67897],2],[[67898,67902],3],[67903,2],[[67904,67967],3],[[67968,68023],2],[[68024,68027],3],[[68028,68029],2],[[68030,68031],2],[[68032,68047],2],[[68048,68049],3],[[68050,68095],2],[[68096,68099],2],[68100,3],[[68101,68102],2],[[68103,68107],3],[[68108,68115],2],[68116,3],[[68117,68119],2],[68120,3],[[68121,68147],2],[[68148,68149],2],[[68150,68151],3],[[68152,68154],2],[[68155,68158],3],[68159,2],[[68160,68167],2],[68168,2],[[68169,68175],3],[[68176,68184],2],[[68185,68191],3],[[68192,68220],2],[[68221,68223],2],[[68224,68252],2],[[68253,68255],2],[[68256,68287],3],[[68288,68295],2],[68296,2],[[68297,68326],2],[[68327,68330],3],[[68331,68342],2],[[68343,68351],3],[[68352,68405],2],[[68406,68408],3],[[68409,68415],2],[[68416,68437],2],[[68438,68439],3],[[68440,68447],2],[[68448,68466],2],[[68467,68471],3],[[68472,68479],2],[[68480,68497],2],[[68498,68504],3],[[68505,68508],2],[[68509,68520],3],[[68521,68527],2],[[68528,68607],3],[[68608,68680],2],[[68681,68735],3],[68736,1,"𐳀"],[68737,1,"𐳁"],[68738,1,"𐳂"],[68739,1,"𐳃"],[68740,1,"𐳄"],[68741,1,"𐳅"],[68742,1,"𐳆"],[68743,1,"𐳇"],[68744,1,"𐳈"],[68745,1,"𐳉"],[68746,1,"𐳊"],[68747,1,"𐳋"],[68748,1,"𐳌"],[68749,1,"𐳍"],[68750,1,"𐳎"],[68751,1,"𐳏"],[68752,1,"𐳐"],[68753,1,"𐳑"],[68754,1,"𐳒"],[68755,1,"𐳓"],[68756,1,"𐳔"],[68757,1,"𐳕"],[68758,1,"𐳖"],[68759,1,"𐳗"],[68760,1,"𐳘"],[68761,1,"𐳙"],[68762,1,"𐳚"],[68763,1,"𐳛"],[68764,1,"𐳜"],[68765,1,"𐳝"],[68766,1,"𐳞"],[68767,1,"𐳟"],[68768,1,"𐳠"],[68769,1,"𐳡"],[68770,1,"𐳢"],[68771,1,"𐳣"],[68772,1,"𐳤"],[68773,1,"𐳥"],[68774,1,"𐳦"],[68775,1,"𐳧"],[68776,1,"𐳨"],[68777,1,"𐳩"],[68778,1,"𐳪"],[68779,1,"𐳫"],[68780,1,"𐳬"],[68781,1,"𐳭"],[68782,1,"𐳮"],[68783,1,"𐳯"],[68784,1,"𐳰"],[68785,1,"𐳱"],[68786,1,"𐳲"],[[68787,68799],3],[[68800,68850],2],[[68851,68857],3],[[68858,68863],2],[[68864,68903],2],[[68904,68911],3],[[68912,68921],2],[[68922,69215],3],[[69216,69246],2],[69247,3],[[69248,69289],2],[69290,3],[[69291,69292],2],[69293,2],[[69294,69295],3],[[69296,69297],2],[[69298,69372],3],[[69373,69375],2],[[69376,69404],2],[[69405,69414],2],[69415,2],[[69416,69423],3],[[69424,69456],2],[[69457,69465],2],[[69466,69487],3],[[69488,69509],2],[[69510,69513],2],[[69514,69551],3],[[69552,69572],2],[[69573,69579],2],[[69580,69599],3],[[69600,69622],2],[[69623,69631],3],[[69632,69702],2],[[69703,69709],2],[[69710,69713],3],[[69714,69733],2],[[69734,69743],2],[[69744,69749],2],[[69750,69758],3],[69759,2],[[69760,69818],2],[[69819,69820],2],[69821,3],[[69822,69825],2],[69826,2],[[69827,69836],3],[69837,3],[[69838,69839],3],[[69840,69864],2],[[69865,69871],3],[[69872,69881],2],[[69882,69887],3],[[69888,69940],2],[69941,3],[[69942,69951],2],[[69952,69955],2],[[69956,69958],2],[69959,2],[[69960,69967],3],[[69968,70003],2],[[70004,70005],2],[70006,2],[[70007,70015],3],[[70016,70084],2],[[70085,70088],2],[[70089,70092],2],[70093,2],[[70094,70095],2],[[70096,70105],2],[70106,2],[70107,2],[70108,2],[[70109,70111],2],[70112,3],[[70113,70132],2],[[70133,70143],3],[[70144,70161],2],[70162,3],[[70163,70199],2],[[70200,70205],2],[70206,2],[[70207,70209],2],[[70210,70271],3],[[70272,70278],2],[70279,3],[70280,2],[70281,3],[[70282,70285],2],[70286,3],[[70287,70301],2],[70302,3],[[70303,70312],2],[70313,2],[[70314,70319],3],[[70320,70378],2],[[70379,70383],3],[[70384,70393],2],[[70394,70399],3],[70400,2],[[70401,70403],2],[70404,3],[[70405,70412],2],[[70413,70414],3],[[70415,70416],2],[[70417,70418],3],[[70419,70440],2],[70441,3],[[70442,70448],2],[70449,3],[[70450,70451],2],[70452,3],[[70453,70457],2],[70458,3],[70459,2],[[70460,70468],2],[[70469,70470],3],[[70471,70472],2],[[70473,70474],3],[[70475,70477],2],[[70478,70479],3],[70480,2],[[70481,70486],3],[70487,2],[[70488,70492],3],[[70493,70499],2],[[70500,70501],3],[[70502,70508],2],[[70509,70511],3],[[70512,70516],2],[[70517,70655],3],[[70656,70730],2],[[70731,70735],2],[[70736,70745],2],[70746,2],[70747,2],[70748,3],[70749,2],[70750,2],[70751,2],[[70752,70753],2],[[70754,70783],3],[[70784,70853],2],[70854,2],[70855,2],[[70856,70863],3],[[70864,70873],2],[[70874,71039],3],[[71040,71093],2],[[71094,71095],3],[[71096,71104],2],[[71105,71113],2],[[71114,71127],2],[[71128,71133],2],[[71134,71167],3],[[71168,71232],2],[[71233,71235],2],[71236,2],[[71237,71247],3],[[71248,71257],2],[[71258,71263],3],[[71264,71276],2],[[71277,71295],3],[[71296,71351],2],[71352,2],[71353,2],[[71354,71359],3],[[71360,71369],2],[[71370,71423],3],[[71424,71449],2],[71450,2],[[71451,71452],3],[[71453,71467],2],[[71468,71471],3],[[71472,71481],2],[[71482,71487],2],[[71488,71494],2],[[71495,71679],3],[[71680,71738],2],[71739,2],[[71740,71839],3],[71840,1,"𑣀"],[71841,1,"𑣁"],[71842,1,"𑣂"],[71843,1,"𑣃"],[71844,1,"𑣄"],[71845,1,"𑣅"],[71846,1,"𑣆"],[71847,1,"𑣇"],[71848,1,"𑣈"],[71849,1,"𑣉"],[71850,1,"𑣊"],[71851,1,"𑣋"],[71852,1,"𑣌"],[71853,1,"𑣍"],[71854,1,"𑣎"],[71855,1,"𑣏"],[71856,1,"𑣐"],[71857,1,"𑣑"],[71858,1,"𑣒"],[71859,1,"𑣓"],[71860,1,"𑣔"],[71861,1,"𑣕"],[71862,1,"𑣖"],[71863,1,"𑣗"],[71864,1,"𑣘"],[71865,1,"𑣙"],[71866,1,"𑣚"],[71867,1,"𑣛"],[71868,1,"𑣜"],[71869,1,"𑣝"],[71870,1,"𑣞"],[71871,1,"𑣟"],[[71872,71913],2],[[71914,71922],2],[[71923,71934],3],[71935,2],[[71936,71942],2],[[71943,71944],3],[71945,2],[[71946,71947],3],[[71948,71955],2],[71956,3],[[71957,71958],2],[71959,3],[[71960,71989],2],[71990,3],[[71991,71992],2],[[71993,71994],3],[[71995,72003],2],[[72004,72006],2],[[72007,72015],3],[[72016,72025],2],[[72026,72095],3],[[72096,72103],2],[[72104,72105],3],[[72106,72151],2],[[72152,72153],3],[[72154,72161],2],[72162,2],[[72163,72164],2],[[72165,72191],3],[[72192,72254],2],[[72255,72262],2],[72263,2],[[72264,72271],3],[[72272,72323],2],[[72324,72325],2],[[72326,72345],2],[[72346,72348],2],[72349,2],[[72350,72354],2],[[72355,72367],3],[[72368,72383],2],[[72384,72440],2],[[72441,72447],3],[[72448,72457],2],[[72458,72703],3],[[72704,72712],2],[72713,3],[[72714,72758],2],[72759,3],[[72760,72768],2],[[72769,72773],2],[[72774,72783],3],[[72784,72793],2],[[72794,72812],2],[[72813,72815],3],[[72816,72817],2],[[72818,72847],2],[[72848,72849],3],[[72850,72871],2],[72872,3],[[72873,72886],2],[[72887,72959],3],[[72960,72966],2],[72967,3],[[72968,72969],2],[72970,3],[[72971,73014],2],[[73015,73017],3],[73018,2],[73019,3],[[73020,73021],2],[73022,3],[[73023,73031],2],[[73032,73039],3],[[73040,73049],2],[[73050,73055],3],[[73056,73061],2],[73062,3],[[73063,73064],2],[73065,3],[[73066,73102],2],[73103,3],[[73104,73105],2],[73106,3],[[73107,73112],2],[[73113,73119],3],[[73120,73129],2],[[73130,73439],3],[[73440,73462],2],[[73463,73464],2],[[73465,73471],3],[[73472,73488],2],[73489,3],[[73490,73530],2],[[73531,73533],3],[[73534,73538],2],[[73539,73551],2],[[73552,73561],2],[[73562,73647],3],[73648,2],[[73649,73663],3],[[73664,73713],2],[[73714,73726],3],[73727,2],[[73728,74606],2],[[74607,74648],2],[74649,2],[[74650,74751],3],[[74752,74850],2],[[74851,74862],2],[74863,3],[[74864,74867],2],[74868,2],[[74869,74879],3],[[74880,75075],2],[[75076,77711],3],[[77712,77808],2],[[77809,77810],2],[[77811,77823],3],[[77824,78894],2],[78895,2],[[78896,78904],3],[[78905,78911],3],[[78912,78933],2],[[78934,82943],3],[[82944,83526],2],[[83527,92159],3],[[92160,92728],2],[[92729,92735],3],[[92736,92766],2],[92767,3],[[92768,92777],2],[[92778,92781],3],[[92782,92783],2],[[92784,92862],2],[92863,3],[[92864,92873],2],[[92874,92879],3],[[92880,92909],2],[[92910,92911],3],[[92912,92916],2],[92917,2],[[92918,92927],3],[[92928,92982],2],[[92983,92991],2],[[92992,92995],2],[[92996,92997],2],[[92998,93007],3],[[93008,93017],2],[93018,3],[[93019,93025],2],[93026,3],[[93027,93047],2],[[93048,93052],3],[[93053,93071],2],[[93072,93759],3],[93760,1,"𖹠"],[93761,1,"𖹡"],[93762,1,"𖹢"],[93763,1,"𖹣"],[93764,1,"𖹤"],[93765,1,"𖹥"],[93766,1,"𖹦"],[93767,1,"𖹧"],[93768,1,"𖹨"],[93769,1,"𖹩"],[93770,1,"𖹪"],[93771,1,"𖹫"],[93772,1,"𖹬"],[93773,1,"𖹭"],[93774,1,"𖹮"],[93775,1,"𖹯"],[93776,1,"𖹰"],[93777,1,"𖹱"],[93778,1,"𖹲"],[93779,1,"𖹳"],[93780,1,"𖹴"],[93781,1,"𖹵"],[93782,1,"𖹶"],[93783,1,"𖹷"],[93784,1,"𖹸"],[93785,1,"𖹹"],[93786,1,"𖹺"],[93787,1,"𖹻"],[93788,1,"𖹼"],[93789,1,"𖹽"],[93790,1,"𖹾"],[93791,1,"𖹿"],[[93792,93823],2],[[93824,93850],2],[[93851,93951],3],[[93952,94020],2],[[94021,94026],2],[[94027,94030],3],[94031,2],[[94032,94078],2],[[94079,94087],2],[[94088,94094],3],[[94095,94111],2],[[94112,94175],3],[94176,2],[94177,2],[94178,2],[94179,2],[94180,2],[[94181,94191],3],[[94192,94193],2],[[94194,94207],3],[[94208,100332],2],[[100333,100337],2],[[100338,100343],2],[[100344,100351],3],[[100352,101106],2],[[101107,101589],2],[[101590,101631],3],[[101632,101640],2],[[101641,110575],3],[[110576,110579],2],[110580,3],[[110581,110587],2],[110588,3],[[110589,110590],2],[110591,3],[[110592,110593],2],[[110594,110878],2],[[110879,110882],2],[[110883,110897],3],[110898,2],[[110899,110927],3],[[110928,110930],2],[[110931,110932],3],[110933,2],[[110934,110947],3],[[110948,110951],2],[[110952,110959],3],[[110960,111355],2],[[111356,113663],3],[[113664,113770],2],[[113771,113775],3],[[113776,113788],2],[[113789,113791],3],[[113792,113800],2],[[113801,113807],3],[[113808,113817],2],[[113818,113819],3],[113820,2],[[113821,113822],2],[113823,2],[[113824,113827],7],[[113828,118527],3],[[118528,118573],2],[[118574,118575],3],[[118576,118598],2],[[118599,118607],3],[[118608,118723],2],[[118724,118783],3],[[118784,119029],2],[[119030,119039],3],[[119040,119078],2],[[119079,119080],3],[119081,2],[[119082,119133],2],[119134,1,"𝅗𝅥"],[119135,1,"𝅘𝅥"],[119136,1,"𝅘𝅥𝅮"],[119137,1,"𝅘𝅥𝅯"],[119138,1,"𝅘𝅥𝅰"],[119139,1,"𝅘𝅥𝅱"],[119140,1,"𝅘𝅥𝅲"],[[119141,119154],2],[[119155,119162],3],[[119163,119226],2],[119227,1,"𝆹𝅥"],[119228,1,"𝆺𝅥"],[119229,1,"𝆹𝅥𝅮"],[119230,1,"𝆺𝅥𝅮"],[119231,1,"𝆹𝅥𝅯"],[119232,1,"𝆺𝅥𝅯"],[[119233,119261],2],[[119262,119272],2],[[119273,119274],2],[[119275,119295],3],[[119296,119365],2],[[119366,119487],3],[[119488,119507],2],[[119508,119519],3],[[119520,119539],2],[[119540,119551],3],[[119552,119638],2],[[119639,119647],3],[[119648,119665],2],[[119666,119672],2],[[119673,119807],3],[119808,1,"a"],[119809,1,"b"],[119810,1,"c"],[119811,1,"d"],[119812,1,"e"],[119813,1,"f"],[119814,1,"g"],[119815,1,"h"],[119816,1,"i"],[119817,1,"j"],[119818,1,"k"],[119819,1,"l"],[119820,1,"m"],[119821,1,"n"],[119822,1,"o"],[119823,1,"p"],[119824,1,"q"],[119825,1,"r"],[119826,1,"s"],[119827,1,"t"],[119828,1,"u"],[119829,1,"v"],[119830,1,"w"],[119831,1,"x"],[119832,1,"y"],[119833,1,"z"],[119834,1,"a"],[119835,1,"b"],[119836,1,"c"],[119837,1,"d"],[119838,1,"e"],[119839,1,"f"],[119840,1,"g"],[119841,1,"h"],[119842,1,"i"],[119843,1,"j"],[119844,1,"k"],[119845,1,"l"],[119846,1,"m"],[119847,1,"n"],[119848,1,"o"],[119849,1,"p"],[119850,1,"q"],[119851,1,"r"],[119852,1,"s"],[119853,1,"t"],[119854,1,"u"],[119855,1,"v"],[119856,1,"w"],[119857,1,"x"],[119858,1,"y"],[119859,1,"z"],[119860,1,"a"],[119861,1,"b"],[119862,1,"c"],[119863,1,"d"],[119864,1,"e"],[119865,1,"f"],[119866,1,"g"],[119867,1,"h"],[119868,1,"i"],[119869,1,"j"],[119870,1,"k"],[119871,1,"l"],[119872,1,"m"],[119873,1,"n"],[119874,1,"o"],[119875,1,"p"],[119876,1,"q"],[119877,1,"r"],[119878,1,"s"],[119879,1,"t"],[119880,1,"u"],[119881,1,"v"],[119882,1,"w"],[119883,1,"x"],[119884,1,"y"],[119885,1,"z"],[119886,1,"a"],[119887,1,"b"],[119888,1,"c"],[119889,1,"d"],[119890,1,"e"],[119891,1,"f"],[119892,1,"g"],[119893,3],[119894,1,"i"],[119895,1,"j"],[119896,1,"k"],[119897,1,"l"],[119898,1,"m"],[119899,1,"n"],[119900,1,"o"],[119901,1,"p"],[119902,1,"q"],[119903,1,"r"],[119904,1,"s"],[119905,1,"t"],[119906,1,"u"],[119907,1,"v"],[119908,1,"w"],[119909,1,"x"],[119910,1,"y"],[119911,1,"z"],[119912,1,"a"],[119913,1,"b"],[119914,1,"c"],[119915,1,"d"],[119916,1,"e"],[119917,1,"f"],[119918,1,"g"],[119919,1,"h"],[119920,1,"i"],[119921,1,"j"],[119922,1,"k"],[119923,1,"l"],[119924,1,"m"],[119925,1,"n"],[119926,1,"o"],[119927,1,"p"],[119928,1,"q"],[119929,1,"r"],[119930,1,"s"],[119931,1,"t"],[119932,1,"u"],[119933,1,"v"],[119934,1,"w"],[119935,1,"x"],[119936,1,"y"],[119937,1,"z"],[119938,1,"a"],[119939,1,"b"],[119940,1,"c"],[119941,1,"d"],[119942,1,"e"],[119943,1,"f"],[119944,1,"g"],[119945,1,"h"],[119946,1,"i"],[119947,1,"j"],[119948,1,"k"],[119949,1,"l"],[119950,1,"m"],[119951,1,"n"],[119952,1,"o"],[119953,1,"p"],[119954,1,"q"],[119955,1,"r"],[119956,1,"s"],[119957,1,"t"],[119958,1,"u"],[119959,1,"v"],[119960,1,"w"],[119961,1,"x"],[119962,1,"y"],[119963,1,"z"],[119964,1,"a"],[119965,3],[119966,1,"c"],[119967,1,"d"],[[119968,119969],3],[119970,1,"g"],[[119971,119972],3],[119973,1,"j"],[119974,1,"k"],[[119975,119976],3],[119977,1,"n"],[119978,1,"o"],[119979,1,"p"],[119980,1,"q"],[119981,3],[119982,1,"s"],[119983,1,"t"],[119984,1,"u"],[119985,1,"v"],[119986,1,"w"],[119987,1,"x"],[119988,1,"y"],[119989,1,"z"],[119990,1,"a"],[119991,1,"b"],[119992,1,"c"],[119993,1,"d"],[119994,3],[119995,1,"f"],[119996,3],[119997,1,"h"],[119998,1,"i"],[119999,1,"j"],[12e4,1,"k"],[120001,1,"l"],[120002,1,"m"],[120003,1,"n"],[120004,3],[120005,1,"p"],[120006,1,"q"],[120007,1,"r"],[120008,1,"s"],[120009,1,"t"],[120010,1,"u"],[120011,1,"v"],[120012,1,"w"],[120013,1,"x"],[120014,1,"y"],[120015,1,"z"],[120016,1,"a"],[120017,1,"b"],[120018,1,"c"],[120019,1,"d"],[120020,1,"e"],[120021,1,"f"],[120022,1,"g"],[120023,1,"h"],[120024,1,"i"],[120025,1,"j"],[120026,1,"k"],[120027,1,"l"],[120028,1,"m"],[120029,1,"n"],[120030,1,"o"],[120031,1,"p"],[120032,1,"q"],[120033,1,"r"],[120034,1,"s"],[120035,1,"t"],[120036,1,"u"],[120037,1,"v"],[120038,1,"w"],[120039,1,"x"],[120040,1,"y"],[120041,1,"z"],[120042,1,"a"],[120043,1,"b"],[120044,1,"c"],[120045,1,"d"],[120046,1,"e"],[120047,1,"f"],[120048,1,"g"],[120049,1,"h"],[120050,1,"i"],[120051,1,"j"],[120052,1,"k"],[120053,1,"l"],[120054,1,"m"],[120055,1,"n"],[120056,1,"o"],[120057,1,"p"],[120058,1,"q"],[120059,1,"r"],[120060,1,"s"],[120061,1,"t"],[120062,1,"u"],[120063,1,"v"],[120064,1,"w"],[120065,1,"x"],[120066,1,"y"],[120067,1,"z"],[120068,1,"a"],[120069,1,"b"],[120070,3],[120071,1,"d"],[120072,1,"e"],[120073,1,"f"],[120074,1,"g"],[[120075,120076],3],[120077,1,"j"],[120078,1,"k"],[120079,1,"l"],[120080,1,"m"],[120081,1,"n"],[120082,1,"o"],[120083,1,"p"],[120084,1,"q"],[120085,3],[120086,1,"s"],[120087,1,"t"],[120088,1,"u"],[120089,1,"v"],[120090,1,"w"],[120091,1,"x"],[120092,1,"y"],[120093,3],[120094,1,"a"],[120095,1,"b"],[120096,1,"c"],[120097,1,"d"],[120098,1,"e"],[120099,1,"f"],[120100,1,"g"],[120101,1,"h"],[120102,1,"i"],[120103,1,"j"],[120104,1,"k"],[120105,1,"l"],[120106,1,"m"],[120107,1,"n"],[120108,1,"o"],[120109,1,"p"],[120110,1,"q"],[120111,1,"r"],[120112,1,"s"],[120113,1,"t"],[120114,1,"u"],[120115,1,"v"],[120116,1,"w"],[120117,1,"x"],[120118,1,"y"],[120119,1,"z"],[120120,1,"a"],[120121,1,"b"],[120122,3],[120123,1,"d"],[120124,1,"e"],[120125,1,"f"],[120126,1,"g"],[120127,3],[120128,1,"i"],[120129,1,"j"],[120130,1,"k"],[120131,1,"l"],[120132,1,"m"],[120133,3],[120134,1,"o"],[[120135,120137],3],[120138,1,"s"],[120139,1,"t"],[120140,1,"u"],[120141,1,"v"],[120142,1,"w"],[120143,1,"x"],[120144,1,"y"],[120145,3],[120146,1,"a"],[120147,1,"b"],[120148,1,"c"],[120149,1,"d"],[120150,1,"e"],[120151,1,"f"],[120152,1,"g"],[120153,1,"h"],[120154,1,"i"],[120155,1,"j"],[120156,1,"k"],[120157,1,"l"],[120158,1,"m"],[120159,1,"n"],[120160,1,"o"],[120161,1,"p"],[120162,1,"q"],[120163,1,"r"],[120164,1,"s"],[120165,1,"t"],[120166,1,"u"],[120167,1,"v"],[120168,1,"w"],[120169,1,"x"],[120170,1,"y"],[120171,1,"z"],[120172,1,"a"],[120173,1,"b"],[120174,1,"c"],[120175,1,"d"],[120176,1,"e"],[120177,1,"f"],[120178,1,"g"],[120179,1,"h"],[120180,1,"i"],[120181,1,"j"],[120182,1,"k"],[120183,1,"l"],[120184,1,"m"],[120185,1,"n"],[120186,1,"o"],[120187,1,"p"],[120188,1,"q"],[120189,1,"r"],[120190,1,"s"],[120191,1,"t"],[120192,1,"u"],[120193,1,"v"],[120194,1,"w"],[120195,1,"x"],[120196,1,"y"],[120197,1,"z"],[120198,1,"a"],[120199,1,"b"],[120200,1,"c"],[120201,1,"d"],[120202,1,"e"],[120203,1,"f"],[120204,1,"g"],[120205,1,"h"],[120206,1,"i"],[120207,1,"j"],[120208,1,"k"],[120209,1,"l"],[120210,1,"m"],[120211,1,"n"],[120212,1,"o"],[120213,1,"p"],[120214,1,"q"],[120215,1,"r"],[120216,1,"s"],[120217,1,"t"],[120218,1,"u"],[120219,1,"v"],[120220,1,"w"],[120221,1,"x"],[120222,1,"y"],[120223,1,"z"],[120224,1,"a"],[120225,1,"b"],[120226,1,"c"],[120227,1,"d"],[120228,1,"e"],[120229,1,"f"],[120230,1,"g"],[120231,1,"h"],[120232,1,"i"],[120233,1,"j"],[120234,1,"k"],[120235,1,"l"],[120236,1,"m"],[120237,1,"n"],[120238,1,"o"],[120239,1,"p"],[120240,1,"q"],[120241,1,"r"],[120242,1,"s"],[120243,1,"t"],[120244,1,"u"],[120245,1,"v"],[120246,1,"w"],[120247,1,"x"],[120248,1,"y"],[120249,1,"z"],[120250,1,"a"],[120251,1,"b"],[120252,1,"c"],[120253,1,"d"],[120254,1,"e"],[120255,1,"f"],[120256,1,"g"],[120257,1,"h"],[120258,1,"i"],[120259,1,"j"],[120260,1,"k"],[120261,1,"l"],[120262,1,"m"],[120263,1,"n"],[120264,1,"o"],[120265,1,"p"],[120266,1,"q"],[120267,1,"r"],[120268,1,"s"],[120269,1,"t"],[120270,1,"u"],[120271,1,"v"],[120272,1,"w"],[120273,1,"x"],[120274,1,"y"],[120275,1,"z"],[120276,1,"a"],[120277,1,"b"],[120278,1,"c"],[120279,1,"d"],[120280,1,"e"],[120281,1,"f"],[120282,1,"g"],[120283,1,"h"],[120284,1,"i"],[120285,1,"j"],[120286,1,"k"],[120287,1,"l"],[120288,1,"m"],[120289,1,"n"],[120290,1,"o"],[120291,1,"p"],[120292,1,"q"],[120293,1,"r"],[120294,1,"s"],[120295,1,"t"],[120296,1,"u"],[120297,1,"v"],[120298,1,"w"],[120299,1,"x"],[120300,1,"y"],[120301,1,"z"],[120302,1,"a"],[120303,1,"b"],[120304,1,"c"],[120305,1,"d"],[120306,1,"e"],[120307,1,"f"],[120308,1,"g"],[120309,1,"h"],[120310,1,"i"],[120311,1,"j"],[120312,1,"k"],[120313,1,"l"],[120314,1,"m"],[120315,1,"n"],[120316,1,"o"],[120317,1,"p"],[120318,1,"q"],[120319,1,"r"],[120320,1,"s"],[120321,1,"t"],[120322,1,"u"],[120323,1,"v"],[120324,1,"w"],[120325,1,"x"],[120326,1,"y"],[120327,1,"z"],[120328,1,"a"],[120329,1,"b"],[120330,1,"c"],[120331,1,"d"],[120332,1,"e"],[120333,1,"f"],[120334,1,"g"],[120335,1,"h"],[120336,1,"i"],[120337,1,"j"],[120338,1,"k"],[120339,1,"l"],[120340,1,"m"],[120341,1,"n"],[120342,1,"o"],[120343,1,"p"],[120344,1,"q"],[120345,1,"r"],[120346,1,"s"],[120347,1,"t"],[120348,1,"u"],[120349,1,"v"],[120350,1,"w"],[120351,1,"x"],[120352,1,"y"],[120353,1,"z"],[120354,1,"a"],[120355,1,"b"],[120356,1,"c"],[120357,1,"d"],[120358,1,"e"],[120359,1,"f"],[120360,1,"g"],[120361,1,"h"],[120362,1,"i"],[120363,1,"j"],[120364,1,"k"],[120365,1,"l"],[120366,1,"m"],[120367,1,"n"],[120368,1,"o"],[120369,1,"p"],[120370,1,"q"],[120371,1,"r"],[120372,1,"s"],[120373,1,"t"],[120374,1,"u"],[120375,1,"v"],[120376,1,"w"],[120377,1,"x"],[120378,1,"y"],[120379,1,"z"],[120380,1,"a"],[120381,1,"b"],[120382,1,"c"],[120383,1,"d"],[120384,1,"e"],[120385,1,"f"],[120386,1,"g"],[120387,1,"h"],[120388,1,"i"],[120389,1,"j"],[120390,1,"k"],[120391,1,"l"],[120392,1,"m"],[120393,1,"n"],[120394,1,"o"],[120395,1,"p"],[120396,1,"q"],[120397,1,"r"],[120398,1,"s"],[120399,1,"t"],[120400,1,"u"],[120401,1,"v"],[120402,1,"w"],[120403,1,"x"],[120404,1,"y"],[120405,1,"z"],[120406,1,"a"],[120407,1,"b"],[120408,1,"c"],[120409,1,"d"],[120410,1,"e"],[120411,1,"f"],[120412,1,"g"],[120413,1,"h"],[120414,1,"i"],[120415,1,"j"],[120416,1,"k"],[120417,1,"l"],[120418,1,"m"],[120419,1,"n"],[120420,1,"o"],[120421,1,"p"],[120422,1,"q"],[120423,1,"r"],[120424,1,"s"],[120425,1,"t"],[120426,1,"u"],[120427,1,"v"],[120428,1,"w"],[120429,1,"x"],[120430,1,"y"],[120431,1,"z"],[120432,1,"a"],[120433,1,"b"],[120434,1,"c"],[120435,1,"d"],[120436,1,"e"],[120437,1,"f"],[120438,1,"g"],[120439,1,"h"],[120440,1,"i"],[120441,1,"j"],[120442,1,"k"],[120443,1,"l"],[120444,1,"m"],[120445,1,"n"],[120446,1,"o"],[120447,1,"p"],[120448,1,"q"],[120449,1,"r"],[120450,1,"s"],[120451,1,"t"],[120452,1,"u"],[120453,1,"v"],[120454,1,"w"],[120455,1,"x"],[120456,1,"y"],[120457,1,"z"],[120458,1,"a"],[120459,1,"b"],[120460,1,"c"],[120461,1,"d"],[120462,1,"e"],[120463,1,"f"],[120464,1,"g"],[120465,1,"h"],[120466,1,"i"],[120467,1,"j"],[120468,1,"k"],[120469,1,"l"],[120470,1,"m"],[120471,1,"n"],[120472,1,"o"],[120473,1,"p"],[120474,1,"q"],[120475,1,"r"],[120476,1,"s"],[120477,1,"t"],[120478,1,"u"],[120479,1,"v"],[120480,1,"w"],[120481,1,"x"],[120482,1,"y"],[120483,1,"z"],[120484,1,"ı"],[120485,1,"ȷ"],[[120486,120487],3],[120488,1,"α"],[120489,1,"β"],[120490,1,"γ"],[120491,1,"δ"],[120492,1,"ε"],[120493,1,"ζ"],[120494,1,"η"],[120495,1,"θ"],[120496,1,"ι"],[120497,1,"κ"],[120498,1,"λ"],[120499,1,"μ"],[120500,1,"ν"],[120501,1,"ξ"],[120502,1,"ο"],[120503,1,"π"],[120504,1,"ρ"],[120505,1,"θ"],[120506,1,"σ"],[120507,1,"τ"],[120508,1,"υ"],[120509,1,"φ"],[120510,1,"χ"],[120511,1,"ψ"],[120512,1,"ω"],[120513,1,"∇"],[120514,1,"α"],[120515,1,"β"],[120516,1,"γ"],[120517,1,"δ"],[120518,1,"ε"],[120519,1,"ζ"],[120520,1,"η"],[120521,1,"θ"],[120522,1,"ι"],[120523,1,"κ"],[120524,1,"λ"],[120525,1,"μ"],[120526,1,"ν"],[120527,1,"ξ"],[120528,1,"ο"],[120529,1,"π"],[120530,1,"ρ"],[[120531,120532],1,"σ"],[120533,1,"τ"],[120534,1,"υ"],[120535,1,"φ"],[120536,1,"χ"],[120537,1,"ψ"],[120538,1,"ω"],[120539,1,"∂"],[120540,1,"ε"],[120541,1,"θ"],[120542,1,"κ"],[120543,1,"φ"],[120544,1,"ρ"],[120545,1,"π"],[120546,1,"α"],[120547,1,"β"],[120548,1,"γ"],[120549,1,"δ"],[120550,1,"ε"],[120551,1,"ζ"],[120552,1,"η"],[120553,1,"θ"],[120554,1,"ι"],[120555,1,"κ"],[120556,1,"λ"],[120557,1,"μ"],[120558,1,"ν"],[120559,1,"ξ"],[120560,1,"ο"],[120561,1,"π"],[120562,1,"ρ"],[120563,1,"θ"],[120564,1,"σ"],[120565,1,"τ"],[120566,1,"υ"],[120567,1,"φ"],[120568,1,"χ"],[120569,1,"ψ"],[120570,1,"ω"],[120571,1,"∇"],[120572,1,"α"],[120573,1,"β"],[120574,1,"γ"],[120575,1,"δ"],[120576,1,"ε"],[120577,1,"ζ"],[120578,1,"η"],[120579,1,"θ"],[120580,1,"ι"],[120581,1,"κ"],[120582,1,"λ"],[120583,1,"μ"],[120584,1,"ν"],[120585,1,"ξ"],[120586,1,"ο"],[120587,1,"π"],[120588,1,"ρ"],[[120589,120590],1,"σ"],[120591,1,"τ"],[120592,1,"υ"],[120593,1,"φ"],[120594,1,"χ"],[120595,1,"ψ"],[120596,1,"ω"],[120597,1,"∂"],[120598,1,"ε"],[120599,1,"θ"],[120600,1,"κ"],[120601,1,"φ"],[120602,1,"ρ"],[120603,1,"π"],[120604,1,"α"],[120605,1,"β"],[120606,1,"γ"],[120607,1,"δ"],[120608,1,"ε"],[120609,1,"ζ"],[120610,1,"η"],[120611,1,"θ"],[120612,1,"ι"],[120613,1,"κ"],[120614,1,"λ"],[120615,1,"μ"],[120616,1,"ν"],[120617,1,"ξ"],[120618,1,"ο"],[120619,1,"π"],[120620,1,"ρ"],[120621,1,"θ"],[120622,1,"σ"],[120623,1,"τ"],[120624,1,"υ"],[120625,1,"φ"],[120626,1,"χ"],[120627,1,"ψ"],[120628,1,"ω"],[120629,1,"∇"],[120630,1,"α"],[120631,1,"β"],[120632,1,"γ"],[120633,1,"δ"],[120634,1,"ε"],[120635,1,"ζ"],[120636,1,"η"],[120637,1,"θ"],[120638,1,"ι"],[120639,1,"κ"],[120640,1,"λ"],[120641,1,"μ"],[120642,1,"ν"],[120643,1,"ξ"],[120644,1,"ο"],[120645,1,"π"],[120646,1,"ρ"],[[120647,120648],1,"σ"],[120649,1,"τ"],[120650,1,"υ"],[120651,1,"φ"],[120652,1,"χ"],[120653,1,"ψ"],[120654,1,"ω"],[120655,1,"∂"],[120656,1,"ε"],[120657,1,"θ"],[120658,1,"κ"],[120659,1,"φ"],[120660,1,"ρ"],[120661,1,"π"],[120662,1,"α"],[120663,1,"β"],[120664,1,"γ"],[120665,1,"δ"],[120666,1,"ε"],[120667,1,"ζ"],[120668,1,"η"],[120669,1,"θ"],[120670,1,"ι"],[120671,1,"κ"],[120672,1,"λ"],[120673,1,"μ"],[120674,1,"ν"],[120675,1,"ξ"],[120676,1,"ο"],[120677,1,"π"],[120678,1,"ρ"],[120679,1,"θ"],[120680,1,"σ"],[120681,1,"τ"],[120682,1,"υ"],[120683,1,"φ"],[120684,1,"χ"],[120685,1,"ψ"],[120686,1,"ω"],[120687,1,"∇"],[120688,1,"α"],[120689,1,"β"],[120690,1,"γ"],[120691,1,"δ"],[120692,1,"ε"],[120693,1,"ζ"],[120694,1,"η"],[120695,1,"θ"],[120696,1,"ι"],[120697,1,"κ"],[120698,1,"λ"],[120699,1,"μ"],[120700,1,"ν"],[120701,1,"ξ"],[120702,1,"ο"],[120703,1,"π"],[120704,1,"ρ"],[[120705,120706],1,"σ"],[120707,1,"τ"],[120708,1,"υ"],[120709,1,"φ"],[120710,1,"χ"],[120711,1,"ψ"],[120712,1,"ω"],[120713,1,"∂"],[120714,1,"ε"],[120715,1,"θ"],[120716,1,"κ"],[120717,1,"φ"],[120718,1,"ρ"],[120719,1,"π"],[120720,1,"α"],[120721,1,"β"],[120722,1,"γ"],[120723,1,"δ"],[120724,1,"ε"],[120725,1,"ζ"],[120726,1,"η"],[120727,1,"θ"],[120728,1,"ι"],[120729,1,"κ"],[120730,1,"λ"],[120731,1,"μ"],[120732,1,"ν"],[120733,1,"ξ"],[120734,1,"ο"],[120735,1,"π"],[120736,1,"ρ"],[120737,1,"θ"],[120738,1,"σ"],[120739,1,"τ"],[120740,1,"υ"],[120741,1,"φ"],[120742,1,"χ"],[120743,1,"ψ"],[120744,1,"ω"],[120745,1,"∇"],[120746,1,"α"],[120747,1,"β"],[120748,1,"γ"],[120749,1,"δ"],[120750,1,"ε"],[120751,1,"ζ"],[120752,1,"η"],[120753,1,"θ"],[120754,1,"ι"],[120755,1,"κ"],[120756,1,"λ"],[120757,1,"μ"],[120758,1,"ν"],[120759,1,"ξ"],[120760,1,"ο"],[120761,1,"π"],[120762,1,"ρ"],[[120763,120764],1,"σ"],[120765,1,"τ"],[120766,1,"υ"],[120767,1,"φ"],[120768,1,"χ"],[120769,1,"ψ"],[120770,1,"ω"],[120771,1,"∂"],[120772,1,"ε"],[120773,1,"θ"],[120774,1,"κ"],[120775,1,"φ"],[120776,1,"ρ"],[120777,1,"π"],[[120778,120779],1,"ϝ"],[[120780,120781],3],[120782,1,"0"],[120783,1,"1"],[120784,1,"2"],[120785,1,"3"],[120786,1,"4"],[120787,1,"5"],[120788,1,"6"],[120789,1,"7"],[120790,1,"8"],[120791,1,"9"],[120792,1,"0"],[120793,1,"1"],[120794,1,"2"],[120795,1,"3"],[120796,1,"4"],[120797,1,"5"],[120798,1,"6"],[120799,1,"7"],[120800,1,"8"],[120801,1,"9"],[120802,1,"0"],[120803,1,"1"],[120804,1,"2"],[120805,1,"3"],[120806,1,"4"],[120807,1,"5"],[120808,1,"6"],[120809,1,"7"],[120810,1,"8"],[120811,1,"9"],[120812,1,"0"],[120813,1,"1"],[120814,1,"2"],[120815,1,"3"],[120816,1,"4"],[120817,1,"5"],[120818,1,"6"],[120819,1,"7"],[120820,1,"8"],[120821,1,"9"],[120822,1,"0"],[120823,1,"1"],[120824,1,"2"],[120825,1,"3"],[120826,1,"4"],[120827,1,"5"],[120828,1,"6"],[120829,1,"7"],[120830,1,"8"],[120831,1,"9"],[[120832,121343],2],[[121344,121398],2],[[121399,121402],2],[[121403,121452],2],[[121453,121460],2],[121461,2],[[121462,121475],2],[121476,2],[[121477,121483],2],[[121484,121498],3],[[121499,121503],2],[121504,3],[[121505,121519],2],[[121520,122623],3],[[122624,122654],2],[[122655,122660],3],[[122661,122666],2],[[122667,122879],3],[[122880,122886],2],[122887,3],[[122888,122904],2],[[122905,122906],3],[[122907,122913],2],[122914,3],[[122915,122916],2],[122917,3],[[122918,122922],2],[[122923,122927],3],[122928,1,"а"],[122929,1,"б"],[122930,1,"в"],[122931,1,"г"],[122932,1,"д"],[122933,1,"е"],[122934,1,"ж"],[122935,1,"з"],[122936,1,"и"],[122937,1,"к"],[122938,1,"л"],[122939,1,"м"],[122940,1,"о"],[122941,1,"п"],[122942,1,"р"],[122943,1,"с"],[122944,1,"т"],[122945,1,"у"],[122946,1,"ф"],[122947,1,"х"],[122948,1,"ц"],[122949,1,"ч"],[122950,1,"ш"],[122951,1,"ы"],[122952,1,"э"],[122953,1,"ю"],[122954,1,"ꚉ"],[122955,1,"ә"],[122956,1,"і"],[122957,1,"ј"],[122958,1,"ө"],[122959,1,"ү"],[122960,1,"ӏ"],[122961,1,"а"],[122962,1,"б"],[122963,1,"в"],[122964,1,"г"],[122965,1,"д"],[122966,1,"е"],[122967,1,"ж"],[122968,1,"з"],[122969,1,"и"],[122970,1,"к"],[122971,1,"л"],[122972,1,"о"],[122973,1,"п"],[122974,1,"с"],[122975,1,"у"],[122976,1,"ф"],[122977,1,"х"],[122978,1,"ц"],[122979,1,"ч"],[122980,1,"ш"],[122981,1,"ъ"],[122982,1,"ы"],[122983,1,"ґ"],[122984,1,"і"],[122985,1,"ѕ"],[122986,1,"џ"],[122987,1,"ҫ"],[122988,1,"ꙑ"],[122989,1,"ұ"],[[122990,123022],3],[123023,2],[[123024,123135],3],[[123136,123180],2],[[123181,123183],3],[[123184,123197],2],[[123198,123199],3],[[123200,123209],2],[[123210,123213],3],[123214,2],[123215,2],[[123216,123535],3],[[123536,123566],2],[[123567,123583],3],[[123584,123641],2],[[123642,123646],3],[123647,2],[[123648,124111],3],[[124112,124153],2],[[124154,124895],3],[[124896,124902],2],[124903,3],[[124904,124907],2],[124908,3],[[124909,124910],2],[124911,3],[[124912,124926],2],[124927,3],[[124928,125124],2],[[125125,125126],3],[[125127,125135],2],[[125136,125142],2],[[125143,125183],3],[125184,1,"𞤢"],[125185,1,"𞤣"],[125186,1,"𞤤"],[125187,1,"𞤥"],[125188,1,"𞤦"],[125189,1,"𞤧"],[125190,1,"𞤨"],[125191,1,"𞤩"],[125192,1,"𞤪"],[125193,1,"𞤫"],[125194,1,"𞤬"],[125195,1,"𞤭"],[125196,1,"𞤮"],[125197,1,"𞤯"],[125198,1,"𞤰"],[125199,1,"𞤱"],[125200,1,"𞤲"],[125201,1,"𞤳"],[125202,1,"𞤴"],[125203,1,"𞤵"],[125204,1,"𞤶"],[125205,1,"𞤷"],[125206,1,"𞤸"],[125207,1,"𞤹"],[125208,1,"𞤺"],[125209,1,"𞤻"],[125210,1,"𞤼"],[125211,1,"𞤽"],[125212,1,"𞤾"],[125213,1,"𞤿"],[125214,1,"𞥀"],[125215,1,"𞥁"],[125216,1,"𞥂"],[125217,1,"𞥃"],[[125218,125258],2],[125259,2],[[125260,125263],3],[[125264,125273],2],[[125274,125277],3],[[125278,125279],2],[[125280,126064],3],[[126065,126132],2],[[126133,126208],3],[[126209,126269],2],[[126270,126463],3],[126464,1,"ا"],[126465,1,"ب"],[126466,1,"ج"],[126467,1,"د"],[126468,3],[126469,1,"و"],[126470,1,"ز"],[126471,1,"ح"],[126472,1,"ط"],[126473,1,"ي"],[126474,1,"ك"],[126475,1,"ل"],[126476,1,"م"],[126477,1,"ن"],[126478,1,"س"],[126479,1,"ع"],[126480,1,"ف"],[126481,1,"ص"],[126482,1,"ق"],[126483,1,"ر"],[126484,1,"ش"],[126485,1,"ت"],[126486,1,"ث"],[126487,1,"خ"],[126488,1,"ذ"],[126489,1,"ض"],[126490,1,"ظ"],[126491,1,"غ"],[126492,1,"ٮ"],[126493,1,"ں"],[126494,1,"ڡ"],[126495,1,"ٯ"],[126496,3],[126497,1,"ب"],[126498,1,"ج"],[126499,3],[126500,1,"ه"],[[126501,126502],3],[126503,1,"ح"],[126504,3],[126505,1,"ي"],[126506,1,"ك"],[126507,1,"ل"],[126508,1,"م"],[126509,1,"ن"],[126510,1,"س"],[126511,1,"ع"],[126512,1,"ف"],[126513,1,"ص"],[126514,1,"ق"],[126515,3],[126516,1,"ش"],[126517,1,"ت"],[126518,1,"ث"],[126519,1,"خ"],[126520,3],[126521,1,"ض"],[126522,3],[126523,1,"غ"],[[126524,126529],3],[126530,1,"ج"],[[126531,126534],3],[126535,1,"ح"],[126536,3],[126537,1,"ي"],[126538,3],[126539,1,"ل"],[126540,3],[126541,1,"ن"],[126542,1,"س"],[126543,1,"ع"],[126544,3],[126545,1,"ص"],[126546,1,"ق"],[126547,3],[126548,1,"ش"],[[126549,126550],3],[126551,1,"خ"],[126552,3],[126553,1,"ض"],[126554,3],[126555,1,"غ"],[126556,3],[126557,1,"ں"],[126558,3],[126559,1,"ٯ"],[126560,3],[126561,1,"ب"],[126562,1,"ج"],[126563,3],[126564,1,"ه"],[[126565,126566],3],[126567,1,"ح"],[126568,1,"ط"],[126569,1,"ي"],[126570,1,"ك"],[126571,3],[126572,1,"م"],[126573,1,"ن"],[126574,1,"س"],[126575,1,"ع"],[126576,1,"ف"],[126577,1,"ص"],[126578,1,"ق"],[126579,3],[126580,1,"ش"],[126581,1,"ت"],[126582,1,"ث"],[126583,1,"خ"],[126584,3],[126585,1,"ض"],[126586,1,"ظ"],[126587,1,"غ"],[126588,1,"ٮ"],[126589,3],[126590,1,"ڡ"],[126591,3],[126592,1,"ا"],[126593,1,"ب"],[126594,1,"ج"],[126595,1,"د"],[126596,1,"ه"],[126597,1,"و"],[126598,1,"ز"],[126599,1,"ح"],[126600,1,"ط"],[126601,1,"ي"],[126602,3],[126603,1,"ل"],[126604,1,"م"],[126605,1,"ن"],[126606,1,"س"],[126607,1,"ع"],[126608,1,"ف"],[126609,1,"ص"],[126610,1,"ق"],[126611,1,"ر"],[126612,1,"ش"],[126613,1,"ت"],[126614,1,"ث"],[126615,1,"خ"],[126616,1,"ذ"],[126617,1,"ض"],[126618,1,"ظ"],[126619,1,"غ"],[[126620,126624],3],[126625,1,"ب"],[126626,1,"ج"],[126627,1,"د"],[126628,3],[126629,1,"و"],[126630,1,"ز"],[126631,1,"ح"],[126632,1,"ط"],[126633,1,"ي"],[126634,3],[126635,1,"ل"],[126636,1,"م"],[126637,1,"ن"],[126638,1,"س"],[126639,1,"ع"],[126640,1,"ف"],[126641,1,"ص"],[126642,1,"ق"],[126643,1,"ر"],[126644,1,"ش"],[126645,1,"ت"],[126646,1,"ث"],[126647,1,"خ"],[126648,1,"ذ"],[126649,1,"ض"],[126650,1,"ظ"],[126651,1,"غ"],[[126652,126703],3],[[126704,126705],2],[[126706,126975],3],[[126976,127019],2],[[127020,127023],3],[[127024,127123],2],[[127124,127135],3],[[127136,127150],2],[[127151,127152],3],[[127153,127166],2],[127167,2],[127168,3],[[127169,127183],2],[127184,3],[[127185,127199],2],[[127200,127221],2],[[127222,127231],3],[127232,3],[127233,5,"0,"],[127234,5,"1,"],[127235,5,"2,"],[127236,5,"3,"],[127237,5,"4,"],[127238,5,"5,"],[127239,5,"6,"],[127240,5,"7,"],[127241,5,"8,"],[127242,5,"9,"],[[127243,127244],2],[[127245,127247],2],[127248,5,"(a)"],[127249,5,"(b)"],[127250,5,"(c)"],[127251,5,"(d)"],[127252,5,"(e)"],[127253,5,"(f)"],[127254,5,"(g)"],[127255,5,"(h)"],[127256,5,"(i)"],[127257,5,"(j)"],[127258,5,"(k)"],[127259,5,"(l)"],[127260,5,"(m)"],[127261,5,"(n)"],[127262,5,"(o)"],[127263,5,"(p)"],[127264,5,"(q)"],[127265,5,"(r)"],[127266,5,"(s)"],[127267,5,"(t)"],[127268,5,"(u)"],[127269,5,"(v)"],[127270,5,"(w)"],[127271,5,"(x)"],[127272,5,"(y)"],[127273,5,"(z)"],[127274,1,"〔s〕"],[127275,1,"c"],[127276,1,"r"],[127277,1,"cd"],[127278,1,"wz"],[127279,2],[127280,1,"a"],[127281,1,"b"],[127282,1,"c"],[127283,1,"d"],[127284,1,"e"],[127285,1,"f"],[127286,1,"g"],[127287,1,"h"],[127288,1,"i"],[127289,1,"j"],[127290,1,"k"],[127291,1,"l"],[127292,1,"m"],[127293,1,"n"],[127294,1,"o"],[127295,1,"p"],[127296,1,"q"],[127297,1,"r"],[127298,1,"s"],[127299,1,"t"],[127300,1,"u"],[127301,1,"v"],[127302,1,"w"],[127303,1,"x"],[127304,1,"y"],[127305,1,"z"],[127306,1,"hv"],[127307,1,"mv"],[127308,1,"sd"],[127309,1,"ss"],[127310,1,"ppv"],[127311,1,"wc"],[[127312,127318],2],[127319,2],[[127320,127326],2],[127327,2],[[127328,127337],2],[127338,1,"mc"],[127339,1,"md"],[127340,1,"mr"],[[127341,127343],2],[[127344,127352],2],[127353,2],[127354,2],[[127355,127356],2],[[127357,127358],2],[127359,2],[[127360,127369],2],[[127370,127373],2],[[127374,127375],2],[127376,1,"dj"],[[127377,127386],2],[[127387,127404],2],[127405,2],[[127406,127461],3],[[127462,127487],2],[127488,1,"ほか"],[127489,1,"ココ"],[127490,1,"サ"],[[127491,127503],3],[127504,1,"手"],[127505,1,"字"],[127506,1,"双"],[127507,1,"デ"],[127508,1,"二"],[127509,1,"多"],[127510,1,"解"],[127511,1,"天"],[127512,1,"交"],[127513,1,"映"],[127514,1,"無"],[127515,1,"料"],[127516,1,"前"],[127517,1,"後"],[127518,1,"再"],[127519,1,"新"],[127520,1,"初"],[127521,1,"終"],[127522,1,"生"],[127523,1,"販"],[127524,1,"声"],[127525,1,"吹"],[127526,1,"演"],[127527,1,"投"],[127528,1,"捕"],[127529,1,"一"],[127530,1,"三"],[127531,1,"遊"],[127532,1,"左"],[127533,1,"中"],[127534,1,"右"],[127535,1,"指"],[127536,1,"走"],[127537,1,"打"],[127538,1,"禁"],[127539,1,"空"],[127540,1,"合"],[127541,1,"満"],[127542,1,"有"],[127543,1,"月"],[127544,1,"申"],[127545,1,"割"],[127546,1,"営"],[127547,1,"配"],[[127548,127551],3],[127552,1,"〔本〕"],[127553,1,"〔三〕"],[127554,1,"〔二〕"],[127555,1,"〔安〕"],[127556,1,"〔点〕"],[127557,1,"〔打〕"],[127558,1,"〔盗〕"],[127559,1,"〔勝〕"],[127560,1,"〔敗〕"],[[127561,127567],3],[127568,1,"得"],[127569,1,"可"],[[127570,127583],3],[[127584,127589],2],[[127590,127743],3],[[127744,127776],2],[[127777,127788],2],[[127789,127791],2],[[127792,127797],2],[127798,2],[[127799,127868],2],[127869,2],[[127870,127871],2],[[127872,127891],2],[[127892,127903],2],[[127904,127940],2],[127941,2],[[127942,127946],2],[[127947,127950],2],[[127951,127955],2],[[127956,127967],2],[[127968,127984],2],[[127985,127991],2],[[127992,127999],2],[[128e3,128062],2],[128063,2],[128064,2],[128065,2],[[128066,128247],2],[128248,2],[[128249,128252],2],[[128253,128254],2],[128255,2],[[128256,128317],2],[[128318,128319],2],[[128320,128323],2],[[128324,128330],2],[[128331,128335],2],[[128336,128359],2],[[128360,128377],2],[128378,2],[[128379,128419],2],[128420,2],[[128421,128506],2],[[128507,128511],2],[128512,2],[[128513,128528],2],[128529,2],[[128530,128532],2],[128533,2],[128534,2],[128535,2],[128536,2],[128537,2],[128538,2],[128539,2],[[128540,128542],2],[128543,2],[[128544,128549],2],[[128550,128551],2],[[128552,128555],2],[128556,2],[128557,2],[[128558,128559],2],[[128560,128563],2],[128564,2],[[128565,128576],2],[[128577,128578],2],[[128579,128580],2],[[128581,128591],2],[[128592,128639],2],[[128640,128709],2],[[128710,128719],2],[128720,2],[[128721,128722],2],[[128723,128724],2],[128725,2],[[128726,128727],2],[[128728,128731],3],[128732,2],[[128733,128735],2],[[128736,128748],2],[[128749,128751],3],[[128752,128755],2],[[128756,128758],2],[[128759,128760],2],[128761,2],[128762,2],[[128763,128764],2],[[128765,128767],3],[[128768,128883],2],[[128884,128886],2],[[128887,128890],3],[[128891,128895],2],[[128896,128980],2],[[128981,128984],2],[128985,2],[[128986,128991],3],[[128992,129003],2],[[129004,129007],3],[129008,2],[[129009,129023],3],[[129024,129035],2],[[129036,129039],3],[[129040,129095],2],[[129096,129103],3],[[129104,129113],2],[[129114,129119],3],[[129120,129159],2],[[129160,129167],3],[[129168,129197],2],[[129198,129199],3],[[129200,129201],2],[[129202,129279],3],[[129280,129291],2],[129292,2],[[129293,129295],2],[[129296,129304],2],[[129305,129310],2],[129311,2],[[129312,129319],2],[[129320,129327],2],[129328,2],[[129329,129330],2],[[129331,129342],2],[129343,2],[[129344,129355],2],[129356,2],[[129357,129359],2],[[129360,129374],2],[[129375,129387],2],[[129388,129392],2],[129393,2],[129394,2],[[129395,129398],2],[[129399,129400],2],[129401,2],[129402,2],[129403,2],[[129404,129407],2],[[129408,129412],2],[[129413,129425],2],[[129426,129431],2],[[129432,129442],2],[[129443,129444],2],[[129445,129450],2],[[129451,129453],2],[[129454,129455],2],[[129456,129465],2],[[129466,129471],2],[129472,2],[[129473,129474],2],[[129475,129482],2],[129483,2],[129484,2],[[129485,129487],2],[[129488,129510],2],[[129511,129535],2],[[129536,129619],2],[[129620,129631],3],[[129632,129645],2],[[129646,129647],3],[[129648,129651],2],[129652,2],[[129653,129655],2],[[129656,129658],2],[[129659,129660],2],[[129661,129663],3],[[129664,129666],2],[[129667,129670],2],[[129671,129672],2],[[129673,129679],3],[[129680,129685],2],[[129686,129704],2],[[129705,129708],2],[[129709,129711],2],[[129712,129718],2],[[129719,129722],2],[[129723,129725],2],[129726,3],[129727,2],[[129728,129730],2],[[129731,129733],2],[[129734,129741],3],[[129742,129743],2],[[129744,129750],2],[[129751,129753],2],[[129754,129755],2],[[129756,129759],3],[[129760,129767],2],[129768,2],[[129769,129775],3],[[129776,129782],2],[[129783,129784],2],[[129785,129791],3],[[129792,129938],2],[129939,3],[[129940,129994],2],[[129995,130031],3],[130032,1,"0"],[130033,1,"1"],[130034,1,"2"],[130035,1,"3"],[130036,1,"4"],[130037,1,"5"],[130038,1,"6"],[130039,1,"7"],[130040,1,"8"],[130041,1,"9"],[[130042,131069],3],[[131070,131071],3],[[131072,173782],2],[[173783,173789],2],[[173790,173791],2],[[173792,173823],3],[[173824,177972],2],[[177973,177976],2],[177977,2],[[177978,177983],3],[[177984,178205],2],[[178206,178207],3],[[178208,183969],2],[[183970,183983],3],[[183984,191456],2],[[191457,191471],3],[[191472,192093],2],[[192094,194559],3],[194560,1,"丽"],[194561,1,"丸"],[194562,1,"乁"],[194563,1,"𠄢"],[194564,1,"你"],[194565,1,"侮"],[194566,1,"侻"],[194567,1,"倂"],[194568,1,"偺"],[194569,1,"備"],[194570,1,"僧"],[194571,1,"像"],[194572,1,"㒞"],[194573,1,"𠘺"],[194574,1,"免"],[194575,1,"兔"],[194576,1,"兤"],[194577,1,"具"],[194578,1,"𠔜"],[194579,1,"㒹"],[194580,1,"內"],[194581,1,"再"],[194582,1,"𠕋"],[194583,1,"冗"],[194584,1,"冤"],[194585,1,"仌"],[194586,1,"冬"],[194587,1,"况"],[194588,1,"𩇟"],[194589,1,"凵"],[194590,1,"刃"],[194591,1,"㓟"],[194592,1,"刻"],[194593,1,"剆"],[194594,1,"割"],[194595,1,"剷"],[194596,1,"㔕"],[194597,1,"勇"],[194598,1,"勉"],[194599,1,"勤"],[194600,1,"勺"],[194601,1,"包"],[194602,1,"匆"],[194603,1,"北"],[194604,1,"卉"],[194605,1,"卑"],[194606,1,"博"],[194607,1,"即"],[194608,1,"卽"],[[194609,194611],1,"卿"],[194612,1,"𠨬"],[194613,1,"灰"],[194614,1,"及"],[194615,1,"叟"],[194616,1,"𠭣"],[194617,1,"叫"],[194618,1,"叱"],[194619,1,"吆"],[194620,1,"咞"],[194621,1,"吸"],[194622,1,"呈"],[194623,1,"周"],[194624,1,"咢"],[194625,1,"哶"],[194626,1,"唐"],[194627,1,"啓"],[194628,1,"啣"],[[194629,194630],1,"善"],[194631,1,"喙"],[194632,1,"喫"],[194633,1,"喳"],[194634,1,"嗂"],[194635,1,"圖"],[194636,1,"嘆"],[194637,1,"圗"],[194638,1,"噑"],[194639,1,"噴"],[194640,1,"切"],[194641,1,"壮"],[194642,1,"城"],[194643,1,"埴"],[194644,1,"堍"],[194645,1,"型"],[194646,1,"堲"],[194647,1,"報"],[194648,1,"墬"],[194649,1,"𡓤"],[194650,1,"売"],[194651,1,"壷"],[194652,1,"夆"],[194653,1,"多"],[194654,1,"夢"],[194655,1,"奢"],[194656,1,"𡚨"],[194657,1,"𡛪"],[194658,1,"姬"],[194659,1,"娛"],[194660,1,"娧"],[194661,1,"姘"],[194662,1,"婦"],[194663,1,"㛮"],[194664,3],[194665,1,"嬈"],[[194666,194667],1,"嬾"],[194668,1,"𡧈"],[194669,1,"寃"],[194670,1,"寘"],[194671,1,"寧"],[194672,1,"寳"],[194673,1,"𡬘"],[194674,1,"寿"],[194675,1,"将"],[194676,3],[194677,1,"尢"],[194678,1,"㞁"],[194679,1,"屠"],[194680,1,"屮"],[194681,1,"峀"],[194682,1,"岍"],[194683,1,"𡷤"],[194684,1,"嵃"],[194685,1,"𡷦"],[194686,1,"嵮"],[194687,1,"嵫"],[194688,1,"嵼"],[194689,1,"巡"],[194690,1,"巢"],[194691,1,"㠯"],[194692,1,"巽"],[194693,1,"帨"],[194694,1,"帽"],[194695,1,"幩"],[194696,1,"㡢"],[194697,1,"𢆃"],[194698,1,"㡼"],[194699,1,"庰"],[194700,1,"庳"],[194701,1,"庶"],[194702,1,"廊"],[194703,1,"𪎒"],[194704,1,"廾"],[[194705,194706],1,"𢌱"],[194707,1,"舁"],[[194708,194709],1,"弢"],[194710,1,"㣇"],[194711,1,"𣊸"],[194712,1,"𦇚"],[194713,1,"形"],[194714,1,"彫"],[194715,1,"㣣"],[194716,1,"徚"],[194717,1,"忍"],[194718,1,"志"],[194719,1,"忹"],[194720,1,"悁"],[194721,1,"㤺"],[194722,1,"㤜"],[194723,1,"悔"],[194724,1,"𢛔"],[194725,1,"惇"],[194726,1,"慈"],[194727,1,"慌"],[194728,1,"慎"],[194729,1,"慌"],[194730,1,"慺"],[194731,1,"憎"],[194732,1,"憲"],[194733,1,"憤"],[194734,1,"憯"],[194735,1,"懞"],[194736,1,"懲"],[194737,1,"懶"],[194738,1,"成"],[194739,1,"戛"],[194740,1,"扝"],[194741,1,"抱"],[194742,1,"拔"],[194743,1,"捐"],[194744,1,"𢬌"],[194745,1,"挽"],[194746,1,"拼"],[194747,1,"捨"],[194748,1,"掃"],[194749,1,"揤"],[194750,1,"𢯱"],[194751,1,"搢"],[194752,1,"揅"],[194753,1,"掩"],[194754,1,"㨮"],[194755,1,"摩"],[194756,1,"摾"],[194757,1,"撝"],[194758,1,"摷"],[194759,1,"㩬"],[194760,1,"敏"],[194761,1,"敬"],[194762,1,"𣀊"],[194763,1,"旣"],[194764,1,"書"],[194765,1,"晉"],[194766,1,"㬙"],[194767,1,"暑"],[194768,1,"㬈"],[194769,1,"㫤"],[194770,1,"冒"],[194771,1,"冕"],[194772,1,"最"],[194773,1,"暜"],[194774,1,"肭"],[194775,1,"䏙"],[194776,1,"朗"],[194777,1,"望"],[194778,1,"朡"],[194779,1,"杞"],[194780,1,"杓"],[194781,1,"𣏃"],[194782,1,"㭉"],[194783,1,"柺"],[194784,1,"枅"],[194785,1,"桒"],[194786,1,"梅"],[194787,1,"𣑭"],[194788,1,"梎"],[194789,1,"栟"],[194790,1,"椔"],[194791,1,"㮝"],[194792,1,"楂"],[194793,1,"榣"],[194794,1,"槪"],[194795,1,"檨"],[194796,1,"𣚣"],[194797,1,"櫛"],[194798,1,"㰘"],[194799,1,"次"],[194800,1,"𣢧"],[194801,1,"歔"],[194802,1,"㱎"],[194803,1,"歲"],[194804,1,"殟"],[194805,1,"殺"],[194806,1,"殻"],[194807,1,"𣪍"],[194808,1,"𡴋"],[194809,1,"𣫺"],[194810,1,"汎"],[194811,1,"𣲼"],[194812,1,"沿"],[194813,1,"泍"],[194814,1,"汧"],[194815,1,"洖"],[194816,1,"派"],[194817,1,"海"],[194818,1,"流"],[194819,1,"浩"],[194820,1,"浸"],[194821,1,"涅"],[194822,1,"𣴞"],[194823,1,"洴"],[194824,1,"港"],[194825,1,"湮"],[194826,1,"㴳"],[194827,1,"滋"],[194828,1,"滇"],[194829,1,"𣻑"],[194830,1,"淹"],[194831,1,"潮"],[194832,1,"𣽞"],[194833,1,"𣾎"],[194834,1,"濆"],[194835,1,"瀹"],[194836,1,"瀞"],[194837,1,"瀛"],[194838,1,"㶖"],[194839,1,"灊"],[194840,1,"災"],[194841,1,"灷"],[194842,1,"炭"],[194843,1,"𠔥"],[194844,1,"煅"],[194845,1,"𤉣"],[194846,1,"熜"],[194847,3],[194848,1,"爨"],[194849,1,"爵"],[194850,1,"牐"],[194851,1,"𤘈"],[194852,1,"犀"],[194853,1,"犕"],[194854,1,"𤜵"],[194855,1,"𤠔"],[194856,1,"獺"],[194857,1,"王"],[194858,1,"㺬"],[194859,1,"玥"],[[194860,194861],1,"㺸"],[194862,1,"瑇"],[194863,1,"瑜"],[194864,1,"瑱"],[194865,1,"璅"],[194866,1,"瓊"],[194867,1,"㼛"],[194868,1,"甤"],[194869,1,"𤰶"],[194870,1,"甾"],[194871,1,"𤲒"],[194872,1,"異"],[194873,1,"𢆟"],[194874,1,"瘐"],[194875,1,"𤾡"],[194876,1,"𤾸"],[194877,1,"𥁄"],[194878,1,"㿼"],[194879,1,"䀈"],[194880,1,"直"],[194881,1,"𥃳"],[194882,1,"𥃲"],[194883,1,"𥄙"],[194884,1,"𥄳"],[194885,1,"眞"],[[194886,194887],1,"真"],[194888,1,"睊"],[194889,1,"䀹"],[194890,1,"瞋"],[194891,1,"䁆"],[194892,1,"䂖"],[194893,1,"𥐝"],[194894,1,"硎"],[194895,1,"碌"],[194896,1,"磌"],[194897,1,"䃣"],[194898,1,"𥘦"],[194899,1,"祖"],[194900,1,"𥚚"],[194901,1,"𥛅"],[194902,1,"福"],[194903,1,"秫"],[194904,1,"䄯"],[194905,1,"穀"],[194906,1,"穊"],[194907,1,"穏"],[194908,1,"𥥼"],[[194909,194910],1,"𥪧"],[194911,3],[194912,1,"䈂"],[194913,1,"𥮫"],[194914,1,"篆"],[194915,1,"築"],[194916,1,"䈧"],[194917,1,"𥲀"],[194918,1,"糒"],[194919,1,"䊠"],[194920,1,"糨"],[194921,1,"糣"],[194922,1,"紀"],[194923,1,"𥾆"],[194924,1,"絣"],[194925,1,"䌁"],[194926,1,"緇"],[194927,1,"縂"],[194928,1,"繅"],[194929,1,"䌴"],[194930,1,"𦈨"],[194931,1,"𦉇"],[194932,1,"䍙"],[194933,1,"𦋙"],[194934,1,"罺"],[194935,1,"𦌾"],[194936,1,"羕"],[194937,1,"翺"],[194938,1,"者"],[194939,1,"𦓚"],[194940,1,"𦔣"],[194941,1,"聠"],[194942,1,"𦖨"],[194943,1,"聰"],[194944,1,"𣍟"],[194945,1,"䏕"],[194946,1,"育"],[194947,1,"脃"],[194948,1,"䐋"],[194949,1,"脾"],[194950,1,"媵"],[194951,1,"𦞧"],[194952,1,"𦞵"],[194953,1,"𣎓"],[194954,1,"𣎜"],[194955,1,"舁"],[194956,1,"舄"],[194957,1,"辞"],[194958,1,"䑫"],[194959,1,"芑"],[194960,1,"芋"],[194961,1,"芝"],[194962,1,"劳"],[194963,1,"花"],[194964,1,"芳"],[194965,1,"芽"],[194966,1,"苦"],[194967,1,"𦬼"],[194968,1,"若"],[194969,1,"茝"],[194970,1,"荣"],[194971,1,"莭"],[194972,1,"茣"],[194973,1,"莽"],[194974,1,"菧"],[194975,1,"著"],[194976,1,"荓"],[194977,1,"菊"],[194978,1,"菌"],[194979,1,"菜"],[194980,1,"𦰶"],[194981,1,"𦵫"],[194982,1,"𦳕"],[194983,1,"䔫"],[194984,1,"蓱"],[194985,1,"蓳"],[194986,1,"蔖"],[194987,1,"𧏊"],[194988,1,"蕤"],[194989,1,"𦼬"],[194990,1,"䕝"],[194991,1,"䕡"],[194992,1,"𦾱"],[194993,1,"𧃒"],[194994,1,"䕫"],[194995,1,"虐"],[194996,1,"虜"],[194997,1,"虧"],[194998,1,"虩"],[194999,1,"蚩"],[195e3,1,"蚈"],[195001,1,"蜎"],[195002,1,"蛢"],[195003,1,"蝹"],[195004,1,"蜨"],[195005,1,"蝫"],[195006,1,"螆"],[195007,3],[195008,1,"蟡"],[195009,1,"蠁"],[195010,1,"䗹"],[195011,1,"衠"],[195012,1,"衣"],[195013,1,"𧙧"],[195014,1,"裗"],[195015,1,"裞"],[195016,1,"䘵"],[195017,1,"裺"],[195018,1,"㒻"],[195019,1,"𧢮"],[195020,1,"𧥦"],[195021,1,"䚾"],[195022,1,"䛇"],[195023,1,"誠"],[195024,1,"諭"],[195025,1,"變"],[195026,1,"豕"],[195027,1,"𧲨"],[195028,1,"貫"],[195029,1,"賁"],[195030,1,"贛"],[195031,1,"起"],[195032,1,"𧼯"],[195033,1,"𠠄"],[195034,1,"跋"],[195035,1,"趼"],[195036,1,"跰"],[195037,1,"𠣞"],[195038,1,"軔"],[195039,1,"輸"],[195040,1,"𨗒"],[195041,1,"𨗭"],[195042,1,"邔"],[195043,1,"郱"],[195044,1,"鄑"],[195045,1,"𨜮"],[195046,1,"鄛"],[195047,1,"鈸"],[195048,1,"鋗"],[195049,1,"鋘"],[195050,1,"鉼"],[195051,1,"鏹"],[195052,1,"鐕"],[195053,1,"𨯺"],[195054,1,"開"],[195055,1,"䦕"],[195056,1,"閷"],[195057,1,"𨵷"],[195058,1,"䧦"],[195059,1,"雃"],[195060,1,"嶲"],[195061,1,"霣"],[195062,1,"𩅅"],[195063,1,"𩈚"],[195064,1,"䩮"],[195065,1,"䩶"],[195066,1,"韠"],[195067,1,"𩐊"],[195068,1,"䪲"],[195069,1,"𩒖"],[[195070,195071],1,"頋"],[195072,1,"頩"],[195073,1,"𩖶"],[195074,1,"飢"],[195075,1,"䬳"],[195076,1,"餩"],[195077,1,"馧"],[195078,1,"駂"],[195079,1,"駾"],[195080,1,"䯎"],[195081,1,"𩬰"],[195082,1,"鬒"],[195083,1,"鱀"],[195084,1,"鳽"],[195085,1,"䳎"],[195086,1,"䳭"],[195087,1,"鵧"],[195088,1,"𪃎"],[195089,1,"䳸"],[195090,1,"𪄅"],[195091,1,"𪈎"],[195092,1,"𪊑"],[195093,1,"麻"],[195094,1,"䵖"],[195095,1,"黹"],[195096,1,"黾"],[195097,1,"鼅"],[195098,1,"鼏"],[195099,1,"鼖"],[195100,1,"鼻"],[195101,1,"𪘀"],[[195102,196605],3],[[196606,196607],3],[[196608,201546],2],[[201547,201551],3],[[201552,205743],2],[[205744,262141],3],[[262142,262143],3],[[262144,327677],3],[[327678,327679],3],[[327680,393213],3],[[393214,393215],3],[[393216,458749],3],[[458750,458751],3],[[458752,524285],3],[[524286,524287],3],[[524288,589821],3],[[589822,589823],3],[[589824,655357],3],[[655358,655359],3],[[655360,720893],3],[[720894,720895],3],[[720896,786429],3],[[786430,786431],3],[[786432,851965],3],[[851966,851967],3],[[851968,917501],3],[[917502,917503],3],[917504,3],[917505,3],[[917506,917535],3],[[917536,917631],3],[[917632,917759],3],[[917760,917999],7],[[918e3,983037],3],[[983038,983039],3],[[983040,1048573],3],[[1048574,1048575],3],[[1048576,1114109],3],[[1114110,1114111],3]],{STATUS_MAPPING:Ke}=dN;function $b(t){return/[^\x00-\x7F]/u.test(t)}function qb(t,{useSTD3ASCIIRules:e}){let r=0,n=yc.length-1;for(;r<=n;){const i=Math.floor((r+n)/2),u=yc[i],a=Array.isArray(u[0])?u[0][0]:u[0],o=Array.isArray(u[0])?u[0][1]:u[0];if(a<=t&&o>=t)return!e||u[1]!==Ke.disallowed_STD3_valid&&u[1]!==Ke.disallowed_STD3_mapped?u[1]===Ke.disallowed_STD3_valid?[Ke.valid,...u.slice(2)]:u[1]===Ke.disallowed_STD3_mapped?[Ke.mapped,...u.slice(2)]:u.slice(1):[Ke.disallowed,...u.slice(2)];a>t?n=i-1:r=i+1}return null}function hN(t,{checkHyphens:e,checkBidi:r,checkJoiners:n,transitionalProcessing:i,useSTD3ASCIIRules:u,isBidi:a}){if(t.length===0)return!0;if(t.normalize("NFC")!==t)return!1;const o=Array.from(t);if(e&&(o[2]==="-"&&o[3]==="-"||t.startsWith("-")||t.endsWith("-"))||t.includes(".")||Ft.combiningMarks.test(o[0]))return!1;for(const s of o){const[c]=qb(s.codePointAt(0),{useSTD3ASCIIRules:u});if(i){if(c!==Ke.valid)return!1}else if(c!==Ke.valid&&c!==Ke.deviation)return!1}if(n){let s=0;for(const[c,d]of o.entries())if(d==="‌"||d==="‍"){if(c>0){if(Ft.combiningClassVirama.test(o[c-1]))continue;if(d==="‌"){const y=o.indexOf("‌",c+1),A=y<0?o.slice(s):o.slice(s,y);if(Ft.validZWNJ.test(A.join(""))){s=c+1;continue}}}return!1}}if(r&&a){let s;if(Ft.bidiS1LTR.test(o[0]))s=!1;else{if(!Ft.bidiS1RTL.test(o[0]))return!1;s=!0}if(s){if(!Ft.bidiS2.test(t)||!Ft.bidiS3.test(t)||Ft.bidiS4EN.test(t)&&Ft.bidiS4AN.test(t))return!1}else if(!Ft.bidiS5.test(t)||!Ft.bidiS6.test(t))return!1}return!0}function gc(t,e){let r=function(a,{useSTD3ASCIIRules:o,transitionalProcessing:s}){let c="";for(const d of a){const[y,A]=qb(d.codePointAt(0),{useSTD3ASCIIRules:o});switch(y){case Ke.disallowed:c+=d;break;case Ke.ignored:break;case Ke.mapped:c+=s&&d==="ẞ"?"ss":A;break;case Ke.deviation:c+=s?A:d;break;case Ke.valid:c+=d}}return c}(t,e);r=r.normalize("NFC");const n=r.split("."),i=function(a){const o=a.map(s=>{if(s.startsWith("xn--"))try{return ms.decode(s.substring(4))}catch{return""}return s}).join(".");return Ft.bidiDomain.test(o)}(n);let u=!1;for(const[a,o]of n.entries()){let s=o,c=e.transitionalProcessing;if(s.startsWith("xn--")){if($b(s)){u=!0;continue}try{s=ms.decode(s.substring(4))}catch{if(!e.ignoreInvalidPunycode){u=!0;continue}}n[a]=s,c=!1}u||hN(s,{...e,transitionalProcessing:c,isBidi:i})||(u=!0)}return{string:n.join("."),error:u}}var pN=uN({toASCII:function(t,{checkHyphens:e=!1,checkBidi:r=!1,checkJoiners:n=!1,useSTD3ASCIIRules:i=!1,verifyDNSLength:u=!1,transitionalProcessing:a=!1,ignoreInvalidPunycode:o=!1}={}){const s=gc(t,{checkHyphens:e,checkBidi:r,checkJoiners:n,useSTD3ASCIIRules:i,transitionalProcessing:a,ignoreInvalidPunycode:o});let c=s.string.split(".");if(c=c.map(d=>{if($b(d))try{return`xn--${ms.encode(d)}`}catch{s.error=!0}return d}),u){const d=c.join(".").length;(d>253||d===0)&&(s.error=!0);for(let y=0;y63||c[y].length===0){s.error=!0;break}}return s.error?null:c.join(".")},toUnicode:function(t,{checkHyphens:e=!1,checkBidi:r=!1,checkJoiners:n=!1,useSTD3ASCIIRules:i=!1,transitionalProcessing:u=!1,ignoreInvalidPunycode:a=!1}={}){const o=gc(t,{checkHyphens:e,checkBidi:r,checkJoiners:n,useSTD3ASCIIRules:i,transitionalProcessing:u,ignoreInvalidPunycode:a});return{domain:o.string,error:o.error}}});function bN(t){return{transitionalProcessing:!t.match(/\.(?:be|ca|de|swiss|fr|pm|re|tf|wf|yt)\.?$/)}}function i3(t,e={}){const r=pN.toASCII(t,{...bN(t),...e});if(r!==null)return r;throw new Error(`Unable to translate ${t} to ASCII.`)}const{useAccount:mN}=Ot;function yN({name:t,setName:e,nameValidities:r,setNameValidities:n,nameWrapper:i,ensRegistry:u,triggerNameCheck:a}){const o=mN();console.log("userAddress",o);const s="Name must be a valid URL without subdomains (A-Z, a-z, 0-9, and punycode)",c="Name is not owned by your wallet",d="Unsupported punycode character",y=f0.useRef(null);f0.useEffect(()=>{y.current&&clearTimeout(y.current),y.current=setTimeout(async()=>{if(t.length==0)return;let C,T=[...r],U;C=T.indexOf(d);try{U=i3(t+".eth"),C!=-1&&T.splice(C,1)}catch{C==-1&&T.push(d)}if(U!==void 0&&(C=T.indexOf(s),t!=""&&!e3(U)?C==-1&&T.push(s):C!=-1&&T.splice(C,1),C=T.indexOf(c),T.length==0||C!=-1)){let P=await u.owner($u.hash(U));P==i.address&&(P=await i.ownerOf($u.hash(U))),P!=o?C==-1&&T.push(c):T.splice(C,1)}n(T)},500)},[t,a]);const A=C=>C.target.value.indexOf(".")==-1&&e(C.target.value);return X.jsxs("div",{className:"flex flex-col w-full place-items-center place-content-center",children:[X.jsxs("div",{className:"flex w-full place-items-center",children:[X.jsx("input",{value:t,onChange:A,type:"text",required:!0,name:"dot-os-name",placeholder:"e.g. myname",className:"grow"}),X.jsx("div",{className:"ml-2 text-lg",children:".eth"})]}),r.map((C,T)=>X.jsxs("div",{children:[X.jsx("br",{}),X.jsx("span",{className:"text-red-500",children:C})]},T))]})}function o2({msg:t}){return X.jsxs("div",{id:"loading",className:"flex flex-col text-center",children:[X.jsx("h3",{children:t}),X.jsxs("div",{id:"loader",children:[" ",X.jsx("div",{})," ",X.jsx("div",{})," ",X.jsx("div",{})," ",X.jsx("div",{})," "]})]})}function Hb(t){const e=t.split(".");if(e.length!==4)throw new Error("Invalid IP address");let r=0;for(let n=0;n<4;n++)r<<=8,r+=parseInt(e[n],10);return r>>>0}const gN="4902",xc={[yn]:{chainId:yn,chainName:"Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:["https://rpc.sepolia.org"],blockExplorerUrls:["https://sepolia.etherscan.io"]},[R2]:{chainId:R2,chainName:"Optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:["https://mainnet.optimism.io"],blockExplorerUrls:["https://optimistic.etherscan.io"]},[Z9]:{chainId:Z9,chainName:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:["https://ethereum-rpc.publicnode.com"],blockExplorerUrls:["https://etherscan.io"]}},H2=t=>{switch(t){case"1":case"0x1":return"Ethereum";case"10":case"a":case"0xa":return"Optimism";case"42161":return"Arbitrum";case"11155111":case"aa36a7":case"0xaa36a7":return"Sepolia";default:return"Unknown"}},a8=async t=>{var r,n,i;let e=await((r=window.ethereum)==null?void 0:r.request({method:"net_version"}).catch(()=>"1"));if(e="0x"+(typeof e=="string"?e.replace(/^0x/,""):e.toString(16)),!xc[t])throw new Error(`Invalid chain ID: ${t}`);if(t!==e)try{await((n=window.ethereum)==null?void 0:n.request({method:"wallet_switchEthereumChain",params:[{chainId:t}]}))}catch(u){if(String(u).includes(gN))await((i=window.ethereum)==null?void 0:i.request({method:"wallet_addEthereumChain",params:[xc[t]]}));else throw window.alert(`You must enable the ${H2(t)} network in your wallet.`),new Error(`User cancelled connection to ${t}`)}},i5=async({direct:t,kns:e,nodeChainId:r,chainName:n,nameToSet:i,setNetworkingKey:u,setIpAddress:a,setWsPort:o,setTcpPort:s,setRouters:c})=>{const{networking_key:d,routing:{Both:{ip:y,ports:{ws:A,tcp:C},routers:T}}}=await fetch("/generate-networking-info",{method:"POST"}).then(_=>_.json()),U=Hb(y);u(d),a(U),o(A||0),s(C||0),c(T);const P=[t?(await e.populateTransaction.setAllIp(i,U,A||0,0,C||0,0)).data:(await e.populateTransaction.setRouters(i,T.map(_=>Cr(_)))).data,(await e.populateTransaction.setKey(i,d)).data];try{await a8(r)}catch{throw window.alert(`You must connect to the ${n} network to continue. Please connect and try again.`),new Error(`${n} not set`)}return P},xN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIBAMAAABfdrOtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAG1BMVEVHcExhfelhfephfelifurBzPf///+Dme7i5/sS0DLNAAAABHRSTlMAgMg36TiFUwAABmNJREFUeNq9nO154joQhQlsASRxASxQAMmmgAXs6xRgRxXAQwEGp4GwW/bFLB+2LDTnjIj1O8kbnfnwSBqp18PH4OVxPI7jeLEYPz7Pet8wfj1Wf782Fo+/7ksYvDzFjvHznvN5Gcc3xs/nOyEenmLP+HmXybxMY+9YhE9m8BSLI3Qyg2kMjEUQ5QFiHCjDAHPE8HjugKGmvEzjb6c8cAyVXQYkQ0PhGQpPjmLFmHOM11g1JpTRY+UYfq9BaLM8xeox/3axCMH0YhGCvcZBY/LtYqGCRaGQ+V0mUgZPBbD6l2R7idGXGcmqEH5iFO6+nysT5sbAROKPVR7kxshE0vUqL0Kmgkzk/QCR9PJaBUkoHwhkERbs6foAEfXyxAoS7MkRkqnDHspauyPEqDPYGwLZHyGyXsuA78hBrSMkU35X+qBaR4is10if4/cnSK7L+JDZK7X+QQqV6SGzf14gsl4TZbQfwv0MkfVaKNVK11eIRi9IrfcaRHRiR6jgap0ghteLUOsEUej1BjvwBcLrNUXD/Qqh9cLKxn0DQuvVJ9QiICM+b+0siOHy14Bw4CsECPqZKjk2IJxRXvFwr0O4JBkxal0h1EdlQIR7AyLrNeNM8u6AZIRRflBq1SDMlz6i1KpBZL3mVOJKnJAMTl8DJtybEANbvk8kRwsi6zUiviU1tTjIkrD77gbEoJafUg7chOSg5QecA1uQArM8Eu+fNyEGi/k+qVYTkmPuFZFqWZACcq+ISY5tSAa515RzYBtiEPcCnCvdeyCiXjPMuZK1D5IB7vXAqmVDDAB5pZKjAyI58QRKj5ZaLUgm+3DEqtWCGNmHIy7cHZBchMgVarqWIIUUKAMy3A/jK+f0mgEQW60vU3J6zeQwsdTafOWmLCm9hjIksRkVpGSceCh/TRoOvDmaoLQpRvii9Jnk+De/QMotrNdIrIOTtlv9gzQoXr1+i1ll13bdE6ROMf688gYnx0t4nCF1ih8SoWpdQ/ACqZm/8OaVCFNrUwvzGqRE9BIhH21GA1ICes2FMiKthYcbUsp6LQTIu4NhQU7mz/SQD1fWtSAnig8iq9XO7KWLUmhnkrgYbciR4tGrJzlwm+GAVOY3Ski63zgYTkjp08sLSZwMN6T06OWFfOY5DimNDrKlIKXS8FsG4jG814VTAqIORjfFcAxpJm6KC1LE+tzlNIvhGADEQTEc4wCRi/qtCCmksl6GpFsJEodASrfxjZuR3ob4SqIkc1KMm5Hp6q50Xbgoxsm4nYWX/jJ1tzn9ZnITcv43tsZTpv7wfxnP7SPbG5Di4oKZuqrfuyjGxch9Vf2D+P1thYtxMYx+pVWVK3/scDG20Ut/cTeUFqZV4WUsFzMtx/KXqeLqtyohN1a4GMuxpIJ71kOKYcuRTdMgcincg8r6posZ2+hSUS9CTgfXdYppMzIB8gatfuuObGpG38oLrSWwqXZaa9Uc2ViOJaxLJ8D24HnVeHVkYzP8K2xoD/K8/r04srEZubgHKW4TXdam57gwDecVdz1myObzZZV9phR2Nsvksw3xK389Ki3cBQawjS5up17PNVZOhgEOBMTNqNq22p9rkYFuqY3AQ5raBqFxlK/IIQ211bkxLUaGHDfJlWp9G/KY91NqwxY8palvEVaOvOX2t3v8bv2q2JI79djJWfOUhjrTGuEHzDv1EeAMPypPbkKyGLI7dD63Vx7Lzpkmn/+UB8y/mUaMVHlUPqRaSj7ckBi1O3toumKPS+E2H123x4RsWFL1rQzJ1qtE0YHTbLUFjHJNLXgv0Zxuh9vxrVcjurGv3USWEQ6Mdnzs2Xa4haLZkm7sW+pa6rkWxaHuckADwqqF6fXOtY0utVcQmC7bofYyRQ3Cq8U0YIGdzxPtlY090cM91Dbv7/CW97n6GsK1eT/j8hbVagtfQ7h1LQhNLStdkHCpeJWH3NeJsFBZAWrNgy4efWLXdYZBV6iw202L0FttFUTnv/hUqhtnWcBEwCpvRdV0uqnsQq8aYpcmsxCLYFNJv4oQi3R2kbWTK7ndXC7u5Jp0Nxe+O7m63s0l/G6eE+jkYYRunnjo5rGKbp7d6OQBkW6eQmEfddG+HNTF8zTUXAJeQOriyaBuHj/CkuUd3qTq4EEq8U2q+zytVU3mJuZuj4R19NxZhWk93Da+98NttSfoKjcYk0/Q/Q/GcNFkXl2LdgAAAABJRU5ErkJggg==",Kb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIBAMAAABfdrOtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAG1BMVEVHcExhfelhfephfelifurBzPf///+Dme7i5/sS0DLNAAAABHRSTlMAgMg36TiFUwAABmNJREFUeNq9nO154joQhQlsASRxASxQAMmmgAXs6xRgRxXAQwEGp4GwW/bFLB+2LDTnjIj1O8kbnfnwSBqp18PH4OVxPI7jeLEYPz7Pet8wfj1Wf782Fo+/7ksYvDzFjvHznvN5Gcc3xs/nOyEenmLP+HmXybxMY+9YhE9m8BSLI3Qyg2kMjEUQ5QFiHCjDAHPE8HjugKGmvEzjb6c8cAyVXQYkQ0PhGQpPjmLFmHOM11g1JpTRY+UYfq9BaLM8xeox/3axCMH0YhGCvcZBY/LtYqGCRaGQ+V0mUgZPBbD6l2R7idGXGcmqEH5iFO6+nysT5sbAROKPVR7kxshE0vUqL0Kmgkzk/QCR9PJaBUkoHwhkERbs6foAEfXyxAoS7MkRkqnDHspauyPEqDPYGwLZHyGyXsuA78hBrSMkU35X+qBaR4is10if4/cnSK7L+JDZK7X+QQqV6SGzf14gsl4TZbQfwv0MkfVaKNVK11eIRi9IrfcaRHRiR6jgap0ghteLUOsEUej1BjvwBcLrNUXD/Qqh9cLKxn0DQuvVJ9QiICM+b+0siOHy14Bw4CsECPqZKjk2IJxRXvFwr0O4JBkxal0h1EdlQIR7AyLrNeNM8u6AZIRRflBq1SDMlz6i1KpBZL3mVOJKnJAMTl8DJtybEANbvk8kRwsi6zUiviU1tTjIkrD77gbEoJafUg7chOSg5QecA1uQArM8Eu+fNyEGi/k+qVYTkmPuFZFqWZACcq+ISY5tSAa515RzYBtiEPcCnCvdeyCiXjPMuZK1D5IB7vXAqmVDDAB5pZKjAyI58QRKj5ZaLUgm+3DEqtWCGNmHIy7cHZBchMgVarqWIIUUKAMy3A/jK+f0mgEQW60vU3J6zeQwsdTafOWmLCm9hjIksRkVpGSceCh/TRoOvDmaoLQpRvii9Jnk+De/QMotrNdIrIOTtlv9gzQoXr1+i1ll13bdE6ROMf688gYnx0t4nCF1ih8SoWpdQ/ACqZm/8OaVCFNrUwvzGqRE9BIhH21GA1ICes2FMiKthYcbUsp6LQTIu4NhQU7mz/SQD1fWtSAnig8iq9XO7KWLUmhnkrgYbciR4tGrJzlwm+GAVOY3Ski63zgYTkjp08sLSZwMN6T06OWFfOY5DimNDrKlIKXS8FsG4jG814VTAqIORjfFcAxpJm6KC1LE+tzlNIvhGADEQTEc4wCRi/qtCCmksl6GpFsJEodASrfxjZuR3ob4SqIkc1KMm5Hp6q50Xbgoxsm4nYWX/jJ1tzn9ZnITcv43tsZTpv7wfxnP7SPbG5Di4oKZuqrfuyjGxch9Vf2D+P1thYtxMYx+pVWVK3/scDG20Ut/cTeUFqZV4WUsFzMtx/KXqeLqtyohN1a4GMuxpIJ71kOKYcuRTdMgcincg8r6posZ2+hSUS9CTgfXdYppMzIB8gatfuuObGpG38oLrSWwqXZaa9Uc2ViOJaxLJ8D24HnVeHVkYzP8K2xoD/K8/r04srEZubgHKW4TXdam57gwDecVdz1myObzZZV9phR2Nsvksw3xK389Ki3cBQawjS5up17PNVZOhgEOBMTNqNq22p9rkYFuqY3AQ5raBqFxlK/IIQ211bkxLUaGHDfJlWp9G/KY91NqwxY8palvEVaOvOX2t3v8bv2q2JI79djJWfOUhjrTGuEHzDv1EeAMPypPbkKyGLI7dD63Vx7Lzpkmn/+UB8y/mUaMVHlUPqRaSj7ckBi1O3toumKPS+E2H123x4RsWFL1rQzJ1qtE0YHTbLUFjHJNLXgv0Zxuh9vxrVcjurGv3USWEQ6Mdnzs2Xa4haLZkm7sW+pa6rkWxaHuckADwqqF6fXOtY0utVcQmC7bofYyRQ3Cq8U0YIGdzxPtlY090cM91Dbv7/CW97n6GsK1eT/j8hbVagtfQ7h1LQhNLStdkHCpeJWH3NeJsFBZAWrNgy4efWLXdYZBV6iw202L0FttFUTnv/hUqhtnWcBEwCpvRdV0uqnsQq8aYpcmsxCLYFNJv4oQi3R2kbWTK7ndXC7u5Jp0Nxe+O7m63s0l/G6eE+jkYYRunnjo5rGKbp7d6OQBkW6eQmEfddG+HNTF8zTUXAJeQOriyaBuHj/CkuUd3qTq4EEq8U2q+zytVU3mJuZuj4R19NxZhWk93Da+98NttSfoKjcYk0/Q/Q/GcNFkXl2LdgAAAABJRU5ErkJggg==",Gb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIBAMAAABfdrOtAAAACXBIWXMAAAXnAAAF5wGk6LX5AAAAGFBMVEVHcEz/BCD/AyD/BCD/BCD/////aHn/w8p/uFjAAAAABHRSTlMAf8g2IKeBKAAABN1JREFUeNrFnO15mzAQgHHwAHbCAK7LAE4fBggg8AIGFgBngeCsX5qaWAhJdwLd5X41dh+9vk99KwjwEr7uj0cxyPG4fzkFBBLuYzGRbO+b8/osNJK9+ETEwiDeMOGzsMgvL0Z7FYD8JlbDjzJhLBCSraJsUIyBsiN0x0MWUzZCkFOcGAspjoxFlDB2hbjHmDtjASUSCyR1Y/wRi+Q3qdMXOH+JQ5zdEonFkpIby8Fgy43lYLBErJKc3FhYg0VrIQjfP4nVcgAh8XpIxqAIrErsA5IxKAKpEvuBZAyK2FWJfUEyBkVsqkT+IClZ1cJUsMQnxFCMQ+FVTtRuN7s+8gtJyd1ucn3iG5JTZrsl671bS2evxD8kp7eWxl4E1prbK6GA5PTWmtkrFCRyoqxb+voV0UCm9UsQCXkAq0G8pYK80btk4pRQCHqnbOggO3qXyE6J6CApbeFSyheh3x/l64kScqDsS9Q+JaKEpPR+//Y8qd9Hz29oITvqfH/kfEILyemDawyvmBaSYYOrvA6yJrzg4Cr76ktuk08/JblC4QVWrvdqlKZ9fFpUE7nZqxcUwb3c1oPSTSFVY41hIII7Q1N9haXkYASflabq8YtqJrUlhq0RXM6aao0QyZZukGLW0sVE//5KNyyyWmveUmOGNEZI6KbIaJRzhbfXyZ6LvaalDyP+/pUmGzcYtze367WfBNEd8pXvPeCUnTXhCznTywmk09nuYkr5LSIRWxnZyIacmrU2pfwWjq16ajwNpAAgCewSJf+kfzdTyMVUVxKwpDRKrEn8evo/jZAIdMlFgbRziF2TFAH50Gii/PTCmidWSK/ksQRRWu0ASAwGl+5vBdJby0pmgZRq2ZP+nuTiNLjdIGcl+EsjpLNX4SwQrpB6losl0DXaIGpcylD5p48jJpPfhw4FH8Fy2I6Vs/9seqg7wUBaMU8GXb9oGRQF+DSRNNP2i5clEDUuJc1cOl8MpNFpput8a7EAYsjFSjdGtSsCQ2pLwiMGEUDGI3IRZ6xBk3hJLs4gN/tcCw0p5rmom7e4QdSE72a52Fz/SwvOGiPHfrHVxQQ0/0VDqlnn6x8iD10KqI6okAQ5VumkX1+AqYEdd3Xa4eMFHjdoIFtotK0ZFndgIcGOhQs5l7/LrmYgjIA8gfPeYW7yPq0elRvkYJ4Elea5FNQTOsy0dHM5fX0GISFyLUKKZ8dc/LdMhF6MUGdv2Fy0z+N7Q6fhmPCZdUXirPWIcy5m9gWcTt/DOuZial+KKntt79e7QXJgUU2m3IRmMoRdGLYvD76P64+t/NkwAv78wCc8vNB5XbOSOi50Eu8H3HcEOBafeZbRWTYEtrSQN75NGpbtJpaNM54twITe70zbsiwbzCxb5Tyb/lt6vzMdxAjoIMyHY+ic8sZ9YInl6BXPITKW43AsB/tYjijyHLZkOTbKcgCW5ygvy6FkluPVPAfFN8SZyHd4n+caguf69YNXQ3guubBc1/GpyuFnr1DxXAZjudbGc0GP5aohz6VJluufPnIFvsjKciWX53IxyzXplb7H3pDnuLq+yvd5gJaY2lhcDyPwPPHA81gFz7MbLA+I8DyFwvOoC8/zNE6UFc/5cDwZxPP40SCYZ5wo39W6i5fXtTie1uJ5JOwLc9Qhjj4RTA+3rXuC7i9fKsPnoYG4swAAAABJRU5ErkJggg==",vN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIBAMAAABfdrOtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAJ1BMVEVHcEwwSGMsN0osN0orN0v9/v6YvNsqn+1igqEYHy9DZoeMoLXU2d+tI0ZHAAAABHRSTlMA/LJVwr+FbwAAChlJREFUeNq9XM1uG0cSlkU9gLQaR7SkAyPxAWjJD6ChGwZH8mWBjGHEvASwB7KZi4CFKPgmgBYdJBcCA8OSfBEgW3GUi4FI2Bh7MRAG2WAfaod/01Xd1b+kWIckdOj52F99VV3dU90zM/ZW2NxYC1hm1bX1zZmbsAyAIZs80OZgCNiqa5OEKZSZwqqVSUFsMI2tTwRmo8y0Vl0ffxhfM6P9o3JT3picZzatMDKUMWQ2a4kxjmNmmb2FJU+uAuZilZvzORhL5eYxfFDcMTLvu4LcZR523zGXMC9zEnKBeVrpZh3inGDuMm9bvIlI9yWsYIr0cALRssHGsvXxB5Iuv359Nn4S0yvrxySzz+mYga/3+oekb59ZMI7v9SFymQzt01jBovX6SpLb4Ti+1w3kbQLso79XdB7ZvoYgjXNfr+g8gjGSZPeOp1c0HgmPEsF2Az+vaAYiYfSE7OOVWQvx7p4tX1uglNwHEl1Cf3PvHKbOQykos24tx+grN/+YtJwz2F2zsA4H+aRoFvKio345xifJRY3ATcW3FF/vUI7mKKpwmXdxOw+Q3WP+s1P+py6uLxjFC5kJOkYhV+zdvqJif9uEsmjNVhGLl4+EBSeGvF+1jfZtXUTURmNptCyj/p4pQLRUntvV3xRbJybaLxVkKvgqaDPvC2NuJvO+qK85IkDy3/lv5fwU/qgb65aZLXPq6HntSINSNbK1o+WbSmypga9b6gBJWh1tvVfThMu8XsAG8dLxeqYXcWDO7hY1nxQuVa1LuDtTZtyYiD7kKJHGKXN0Xa3O41St3xd7oBZx2Sa7M5ui7PMdFV8Fy+xuI2QhXFQgeeZt/GC/iONprqXIxLg65eLt2IMEXMiKevUeSdYhc7IaKfr7tN8/mGtQeiwrVMquki4JR2J0X1yPhBxQkTJLjHo3cAcZCblFeR6F4leO4iU08x3lFOiSaPBrPoZeIINw2U0NIIMf84l52o4sYpXfG/47K9cKz+OKSxrvEPz4uP/v3j+PuYlfDI4kkJIMEtLFSRRd/ifOrP6/7AFH1z3r++6p+D0VyD0zSLTSjQdWz3776L8z+52ciAJZXmaQ6DJ/7pfMuRzjUWoLUjaCnPLH/sbYO/7pW2YGGSQWZgR5lj+1HrCIf4qfWoAweTKhQB7ypz5OWY1/igMbkIqkYAoEOPo5Y6v805OUiWUGAVKSiggCBPz0TFvRFf/43+z7e0aQLamuI0AwWyEYVzY9Fw8CE8h9CxDo6D8YewMEnP3fi+a5DUjZAAL0G39k0Ssk4LDdPDSBVC1AbmNH43DfbjZfBmYQYa9ZBsFsgXCvZzXpUrOJ+SJAMg0LhZ0EAsMim1d/RSoI2hnI3vgg7xBbURcJOGNL4IsGmdWDQG1lyfEEsHXOwmIPBPFFgZRIkF0lWzDc+wLu2aEXCBjJKg53MK5/Dl2S8WUEmdODXKGnbseigPsW6EG2DCAnOCweoHEN2UJ8USD3xSWpAAK0VWdEuDdFvjxAYMp9zNgdOK6ALTdHFgTuILm6oA+eouSYCZgVc5Bzw0jKupE8QGyx90jA4UUO8lILUiVB8pG8QkmEEeE+sINgDBD8VBiY2XxV4yCcL3cQwQeruOACI+F8USDhDFODQMU+wVL7wpBPmgc6EKYDgdN5NpW8BWz91ntOEfIVeILsYB/AwOw/BvK15zmS6D2eeK+w1EDEA305g3SRD0IsNcZ47gL6cgV5E6M6+xSXpwsMi3jPD+QVTo4CeT8HAl+qRZAeBNDzLQ73HnntFsmXG0h4iieoHXG+yuJvoSjFoxtIdFuZHHsfl/p6CpsiXzSIKq1Abf2VohpvOF+dU3y55a5TPJXAcH8+iMOXQtAfuoPcRnW2GO7FYfxJSdIN5BmKb5gc84LrHCfJPl80iGL6hXNHb0EVo1y5MIq/EPEVOM7x73B8P6TmqwMm8+UCAkvFJ1jAj3jBdYaDvqkcyRwJAsX0hcnhPnjov9hghQL0RVeQt0iQVUzPKc6V2yC/C3zRIGRVD8XUq7OF6C8CfgS+HJYOJ1hMkK3efNWG8XeB+HIAEcUUKwouMehfKkCo5dx3Vyi+Q4iJfX2Ok2QzsF8zJjHKhijcU0SQNKkoQIgl9vd47uhgPS+0kZ5CNAlT6/gKuVnQxWudh3jduN3E8Qc/H9jvSMQ4OcLJPghRupL42qdB5A0cga1QmOzhM/uLeIia2O4SdbG2hMkePbN5sID52qdB5E21GG9CvMcewj7pTyJt7Ui2qO3B73G4w8n+sVQ49uNxSTuSErXRCdn6iGf3we7pEuIre+KydiQVasu2i0MPJuRWyii+QJLcp7dsxc1nka0reUMb8bXHQvAHiWLzWdhG7wqh10UbHwRfaGz7Nnv1DGqrjvck8u1/DV+JAgS/2oBsfSOEe/6ldlNYNFyoQYj3J3B+6hfWMbX9L+mrqKarRLxuEpLjm5ja/pf42m4rR1KR2wpgFfc3roVivoOC+QKTcH8gjZR4ZVpWgDzH+0LwjcySGPRFMJBdCmROARLgWugP+EJR4otj4JeZW8Rr2Q5O60L9xX9LU+SrnWPQr2UL9Eie4+T4CIlQSpIXOQb9ghk5pQujohYr3l+hiX04Ce9rX5WjmK91QZ39MFa97cP6asFeDMVLf9i+EO3QybEuLDZFvoztCyjmowe5n+X5itsy5os3lqoaMfCUEv00iop3sbSdotDXL6rWI2VzTPrTkK1XZLhTfCWgLUjVTCQsUjpX/YfCPPZEboYSaxSqe2Ne07B0/KwOJADnKzLocwzpHXtF12Bb+1sI99/l9/sXEobUWRFqm8giYeOjnjIlX/u2TWRUP+fbWPe6mvOVO13ShtAOR7VBruKsr+JL16FaMbYo/qoTcM5Xoumbq5obeQdBmRd5si2jACG+MG/TNppvS/xFt/W0gXgZ0ZtXsWqAHemLPjsTLl1r++aqVq280TDv1xU9OZeurbxkU3I0mOP/pPuOa4bu+ople3X01RCEiALQZkfqomrdKH7ckxj5c42NpYv2Le9Z3q+PMlNIdIy5tbwr2tHD46s/RxKKRhoKQ968/yKiG86qnscQXhDCUvbNzbudZwvlds0V3wMVdkdDBlmLizdl9m7XH/rEp1rA2YCW8q9U3I/rFCd2XMfq4FHjbOHIoiu65HWE6oN8hOqFukG26ncYrCMfBrsTKL+97nmsrSMca2v4HmvTeCWc2AE9ncACdNSw8YPm0KzpAKj20GRxQocm9cc/i4lNx7L5rLT+IOulTVe0xSHmshlF3xVtcxZff7g4XH79+hctht056THOlNt4XXGEw8lsr0eYxtH16RzCn851Av6EOd1XMY0rHjzdsjjjaB5ucb52w8P5PpfUbJZvHmM6l7o4Ctnzehqni3a8MaZzZdB0Lj/KzOIap7Xx76TaMAxmAhdSTelqrelcEqa87oytTfxWNeHitvAGb4j72gfg/10bKABRXI7XAAAAAElFTkSuQmCC",AN="/assets/unknown-C4Y5qjv5.png";var s2=function(t){t==null&&(t=new Date().getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,t.constructor==Array?this.init_by_array(t,t.length):this.init_seed(t)};s2.prototype.init_seed=function(t){for(this.mt[0]=t>>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(((t&4294901760)>>>16)*1812433253<<16)+(t&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};s2.prototype.init_by_array=function(t,e){var r,n,i;for(this.init_seed(19650218),r=1,n=0,i=this.N>e?this.N:e;i;i--){var u=this.mt[r-1]^this.mt[r-1]>>>30;this.mt[r]=(this.mt[r]^(((u&4294901760)>>>16)*1664525<<16)+(u&65535)*1664525)+t[n]+n,this.mt[r]>>>=0,r++,n++,r>=this.N&&(this.mt[0]=this.mt[this.N-1],r=1),n>=e&&(n=0)}for(i=this.N-1;i;i--){var u=this.mt[r-1]^this.mt[r-1]>>>30;this.mt[r]=(this.mt[r]^(((u&4294901760)>>>16)*1566083941<<16)+(u&65535)*1566083941)-r,this.mt[r]>>>=0,r++,r>=this.N&&(this.mt[0]=this.mt[this.N-1],r=1)}this.mt[0]=2147483648};s2.prototype.random_int=function(){var t,e=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var r;for(this.mti==this.N+1&&this.init_seed(5489),r=0;r>>1^e[t&1];for(;r>>1^e[t&1];t=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^t>>>1^e[t&1],this.mti=0}return t=this.mt[this.mti++],t^=t>>>11,t^=t<<7&2636928640,t^=t<<15&4022730752,t^=t>>>18,t>>>0};s2.prototype.random_int31=function(){return this.random_int()>>>1};s2.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};s2.prototype.random=function(){return this.random_int()*(1/4294967296)};s2.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};s2.prototype.random_long=function(){var t=this.random_int()>>>5,e=this.random_int()>>>6;return(t*67108864+e)*(1/9007199254740992)};var wN=s2,Wb={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(window,function(){return function(r){var n={};function i(u){if(n[u])return n[u].exports;var a=n[u]={i:u,l:!1,exports:{}};return r[u].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=r,i.c=n,i.d=function(u,a,o){i.o(u,a)||Object.defineProperty(u,a,{enumerable:!0,get:o})},i.r=function(u){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},i.t=function(u,a){if(1&a&&(u=i(u)),8&a||4&a&&typeof u=="object"&&u&&u.__esModule)return u;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:u}),2&a&&typeof u!="string")for(var s in u)i.d(o,s,(function(c){return u[c]}).bind(null,s));return o},i.n=function(u){var a=u&&u.__esModule?function(){return u.default}:function(){return u};return i.d(a,"a",a),a},i.o=function(u,a){return Object.prototype.hasOwnProperty.call(u,a)},i.p="",i(i.s=1)}([function(r,n,i){var u,a;u=[i(2)],(a=(function(o){function s(h){if(s.is(h,"function"))return c?h():o.on("raphael.DOMload",h);if(s.is(h,z))return s._engine.create[B](s,h.splice(0,3+s.is(h[0],I))).add(h);var g=Array.prototype.slice.call(arguments,0);if(s.is(g[g.length-1],"function")){var E=g.pop();return c?E.call(s._engine.create[B](s,g)):o.on("raphael.DOMload",function(){E.call(s._engine.create[B](s,g))})}return s._engine.create[B](s,arguments)}s.version="2.3.0",s.eve=o;var c,d,y=/[, ]+/,A={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},C=/\{(\d+)\}/g,T="hasOwnProperty",U={doc:document,win:window},P={was:Object.prototype[T].call(U.win,"Raphael"),is:U.win.Raphael},_=function(){this.ca=this.customAttributes={}},B="apply",N="concat",W="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,G="",t0=" ",Z=String,e0="split",o0="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[e0](t0),d0={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},c0=Z.prototype.toLowerCase,h0=Math,j=h0.max,p=h0.min,v=h0.abs,M=h0.pow,k=h0.PI,I="number",z="array",V=Object.prototype.toString,b=(s._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),f={NaN:1,Infinity:1,"-Infinity":1},m=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,D=h0.round,l=parseFloat,S=parseInt,O=Z.prototype.toUpperCase,$=s._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},H=s._availableAnimAttrs={blur:I,"clip-rect":"csv",cx:I,cy:I,fill:"colour","fill-opacity":I,"font-size":I,height:I,opacity:I,path:"path",r:I,rx:I,ry:I,stroke:"colour","stroke-opacity":I,"stroke-width":I,transform:"transform",width:I,x:I,y:I},n0=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,u0={hs:1,rg:1},s0=/,?([achlmqrstvxz]),?/gi,g0=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,y0=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,_0=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,z0=(s._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),M0=function(h,g){return l(h)-l(g)},I0=function(h){return h},R0=s._rectPath=function(h,g,E,F,R){return R?[["M",h+R,g],["l",E-2*R,0],["a",R,R,0,0,1,R,R],["l",0,F-2*R],["a",R,R,0,0,1,-R,R],["l",2*R-E,0],["a",R,R,0,0,1,-R,-R],["l",0,2*R-F],["a",R,R,0,0,1,R,-R],["z"]]:[["M",h,g],["l",E,0],["l",0,F],["l",-E,0],["z"]]},V0=function(h,g,E,F){return F==null&&(F=E),[["M",h,g],["m",0,-F],["a",E,F,0,1,1,0,2*F],["a",E,F,0,1,1,0,-2*F],["z"]]},G0=s._getPath={path:function(h){return h.attr("path")},circle:function(h){var g=h.attrs;return V0(g.cx,g.cy,g.r)},ellipse:function(h){var g=h.attrs;return V0(g.cx,g.cy,g.rx,g.ry)},rect:function(h){var g=h.attrs;return R0(g.x,g.y,g.width,g.height,g.r)},image:function(h){var g=h.attrs;return R0(g.x,g.y,g.width,g.height)},text:function(h){var g=h._getBBox();return R0(g.x,g.y,g.width,g.height)},set:function(h){var g=h._getBBox();return R0(g.x,g.y,g.width,g.height)}},X0=s.mapPath=function(h,g){if(!g)return h;var E,F,R,K,Q,J,Y;for(R=0,Q=(h=me(h)).length;R',($0=Z0.firstChild).style.behavior="url(#default#VML)",!$0||typeof $0.adj!="object")return s.type=G;Z0=null}function p1(h){if(typeof h=="function"||Object(h)!==h)return h;var g=new h.constructor;for(var E in h)h[T](E)&&(g[E]=p1(h[E]));return g}s.svg=!(s.vml=s.type=="VML"),s._Paper=_,s.fn=d=_.prototype=s.prototype,s._id=0,s.is=function(h,g){return(g=c0.call(g))=="finite"?!f[T](+h):g=="array"?h instanceof Array:g=="null"&&h===null||g==typeof h&&h!==null||g=="object"&&h===Object(h)||g=="array"&&Array.isArray&&Array.isArray(h)||V.call(h).slice(8,-1).toLowerCase()==g},s.angle=function(h,g,E,F,R,K){if(R==null){var Q=h-E,J=g-F;return Q||J?(180+180*h0.atan2(-J,-Q)/k+360)%360:0}return s.angle(h,g,R,K)-s.angle(E,F,R,K)},s.rad=function(h){return h%360*k/180},s.deg=function(h){return Math.round(180*h/k%360*1e3)/1e3},s.snapTo=function(h,g,E){if(E=s.is(E,"finite")?E:10,s.is(h,z)){for(var F=h.length;F--;)if(v(h[F]-g)<=E)return h[F]}else{var R=g%(h=+h);if(Rh-E)return g-R+h}return g};var l1,L;s.createUUID=(l1=/[xy]/g,L=function(h){var g=16*h0.random()|0;return(h=="x"?g:3&g|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(l1,L).toUpperCase()}),s.setWindow=function(h){o("raphael.setWindow",s,U.win,h),U.win=h,U.doc=U.win.document,s._engine.initWin&&s._engine.initWin(U.win)};var x=function(h){if(s.vml){var g,E=/^\s+|\s+$/g;try{var F=new ActiveXObject("htmlfile");F.write(""),F.close(),g=F.body}catch{g=createPopup().document.body}var R=g.createTextRange();x=O0(function(Q){try{g.style.color=Z(Q).replace(E,G);var J=R.queryCommandValue("ForeColor");return"#"+("000000"+(J=(255&J)<<16|65280&J|(16711680&J)>>>16).toString(16)).slice(-6)}catch{return"none"}})}else{var K=U.doc.createElement("i");K.title="Raphaël Colour Picker",K.style.display="none",U.doc.body.appendChild(K),x=O0(function(Q){return K.style.color=Q,U.doc.defaultView.getComputedStyle(K,G).getPropertyValue("color")})}return x(h)},w=function(){return"hsb("+[this.h,this.s,this.b]+")"},q=function(){return"hsl("+[this.h,this.s,this.l]+")"},i0=function(){return this.hex},l0=function(h,g,E){if(g==null&&s.is(h,"object")&&"r"in h&&"g"in h&&"b"in h&&(E=h.b,g=h.g,h=h.r),g==null&&s.is(h,"string")){var F=s.getRGB(h);h=F.r,g=F.g,E=F.b}return(h>1||g>1||E>1)&&(h/=255,g/=255,E/=255),[h,g,E]},p0=function(h,g,E,F){var R={r:h*=255,g:g*=255,b:E*=255,hex:s.rgb(h,g,E),toString:i0};return s.is(F,"finite")&&(R.opacity=F),R};function O0(h,g,E){return function F(){var R=Array.prototype.slice.call(arguments,0),K=R.join("␀"),Q=F.cache=F.cache||{},J=F.count=F.count||[];return Q[T](K)?(function(Y,a0){for(var x0=0,C0=Y.length;x0=1e3&&delete Q[J.shift()],J.push(K),Q[K]=h[B](g,R),E?E(Q[K]):Q[K])}}s.color=function(h){var g;return s.is(h,"object")&&"h"in h&&"s"in h&&"b"in h?(g=s.hsb2rgb(h),h.r=g.r,h.g=g.g,h.b=g.b,h.hex=g.hex):s.is(h,"object")&&"h"in h&&"s"in h&&"l"in h?(g=s.hsl2rgb(h),h.r=g.r,h.g=g.g,h.b=g.b,h.hex=g.hex):(s.is(h,"string")&&(h=s.getRGB(h)),s.is(h,"object")&&"r"in h&&"g"in h&&"b"in h?(g=s.rgb2hsl(h),h.h=g.h,h.s=g.s,h.l=g.l,g=s.rgb2hsb(h),h.v=g.b):(h={hex:"none"}).r=h.g=h.b=h.h=h.s=h.v=h.l=-1),h.toString=i0,h},s.hsb2rgb=function(h,g,E,F){var R,K,Q,J,Y;return this.is(h,"object")&&"h"in h&&"s"in h&&"b"in h&&(E=h.b,g=h.s,F=h.o,h=h.h),J=(Y=E*g)*(1-v((h=(h*=360)%360/60)%2-1)),R=K=Q=E-Y,p0(R+=[Y,J,0,0,J,Y][h=~~h],K+=[J,Y,Y,J,0,0][h],Q+=[0,0,J,Y,Y,J][h],F)},s.hsl2rgb=function(h,g,E,F){var R,K,Q,J,Y;return this.is(h,"object")&&"h"in h&&"s"in h&&"l"in h&&(E=h.l,g=h.s,h=h.h),(h>1||g>1||E>1)&&(h/=360,g/=100,E/=100),J=(Y=2*g*(E<.5?E:1-E))*(1-v((h=(h*=360)%360/60)%2-1)),R=K=Q=E-Y/2,p0(R+=[Y,J,0,0,J,Y][h=~~h],K+=[J,Y,Y,J,0,0][h],Q+=[0,0,J,Y,Y,J][h],F)},s.rgb2hsb=function(h,g,E){var F,R;return h=(E=l0(h,g,E))[0],g=E[1],E=E[2],{h:(((R=(F=j(h,g,E))-p(h,g,E))==0?null:F==h?(g-E)/R:F==g?(E-h)/R+2:(h-g)/R+4)+360)%6*60/360,s:R==0?0:R/F,b:F,toString:w}},s.rgb2hsl=function(h,g,E){var F,R,K,Q;return h=(E=l0(h,g,E))[0],g=E[1],E=E[2],F=((R=j(h,g,E))+(K=p(h,g,E)))/2,{h:(((Q=R-K)==0?null:R==h?(g-E)/Q:R==g?(E-h)/Q+2:(h-g)/Q+4)+360)%6*60/360,s:Q==0?0:F<.5?Q/(2*F):Q/(2-2*F),l:F,toString:q}},s._path2string=function(){return this.join(",").replace(s0,"$1")},s._preload=function(h,g){var E=U.doc.createElement("img");E.style.cssText="position:absolute;left:-9999em;top:-9999em",E.onload=function(){g.call(this),this.onload=null,U.doc.body.removeChild(this)},E.onerror=function(){U.doc.body.removeChild(this)},U.doc.body.appendChild(E),E.src=h};function H0(){return this.hex}function K0(h,g){for(var E=[],F=0,R=h.length;R-2*!g>F;F+=2){var K=[{x:+h[F-2],y:+h[F-1]},{x:+h[F],y:+h[F+1]},{x:+h[F+2],y:+h[F+3]},{x:+h[F+4],y:+h[F+5]}];g?F?R-4==F?K[3]={x:+h[0],y:+h[1]}:R-2==F&&(K[2]={x:+h[0],y:+h[1]},K[3]={x:+h[2],y:+h[3]}):K[0]={x:+h[R-2],y:+h[R-1]}:R-4==F?K[3]=K[2]:F||(K[0]={x:+h[F],y:+h[F+1]}),E.push(["C",(-K[0].x+6*K[1].x+K[2].x)/6,(-K[0].y+6*K[1].y+K[2].y)/6,(K[1].x+6*K[2].x-K[3].x)/6,(K[1].y+6*K[2].y-K[3].y)/6,K[2].x,K[2].y])}return E}s.getRGB=O0(function(h){if(!h||(h=Z(h)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:H0};if(h=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:H0};!u0[T](h.toLowerCase().substring(0,2))&&h.charAt()!="#"&&(h=x(h));var g,E,F,R,K,Q,J=h.match(b);return J?(J[2]&&(F=S(J[2].substring(5),16),E=S(J[2].substring(3,5),16),g=S(J[2].substring(1,3),16)),J[3]&&(F=S((K=J[3].charAt(3))+K,16),E=S((K=J[3].charAt(2))+K,16),g=S((K=J[3].charAt(1))+K,16)),J[4]&&(Q=J[4][e0](n0),g=l(Q[0]),Q[0].slice(-1)=="%"&&(g*=2.55),E=l(Q[1]),Q[1].slice(-1)=="%"&&(E*=2.55),F=l(Q[2]),Q[2].slice(-1)=="%"&&(F*=2.55),J[1].toLowerCase().slice(0,4)=="rgba"&&(R=l(Q[3])),Q[3]&&Q[3].slice(-1)=="%"&&(R/=100)),J[5]?(Q=J[5][e0](n0),g=l(Q[0]),Q[0].slice(-1)=="%"&&(g*=2.55),E=l(Q[1]),Q[1].slice(-1)=="%"&&(E*=2.55),F=l(Q[2]),Q[2].slice(-1)=="%"&&(F*=2.55),(Q[0].slice(-3)=="deg"||Q[0].slice(-1)=="°")&&(g/=360),J[1].toLowerCase().slice(0,4)=="hsba"&&(R=l(Q[3])),Q[3]&&Q[3].slice(-1)=="%"&&(R/=100),s.hsb2rgb(g,E,F,R)):J[6]?(Q=J[6][e0](n0),g=l(Q[0]),Q[0].slice(-1)=="%"&&(g*=2.55),E=l(Q[1]),Q[1].slice(-1)=="%"&&(E*=2.55),F=l(Q[2]),Q[2].slice(-1)=="%"&&(F*=2.55),(Q[0].slice(-3)=="deg"||Q[0].slice(-1)=="°")&&(g/=360),J[1].toLowerCase().slice(0,4)=="hsla"&&(R=l(Q[3])),Q[3]&&Q[3].slice(-1)=="%"&&(R/=100),s.hsl2rgb(g,E,F,R)):((J={r:g,g:E,b:F,toString:H0}).hex="#"+(16777216|F|E<<8|g<<16).toString(16).slice(1),s.is(R,"finite")&&(J.opacity=R),J)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:H0}},s),s.hsb=O0(function(h,g,E){return s.hsb2rgb(h,g,E).hex}),s.hsl=O0(function(h,g,E){return s.hsl2rgb(h,g,E).hex}),s.rgb=O0(function(h,g,E){function F(R){return R+.5|0}return"#"+(16777216|F(E)|F(g)<<8|F(h)<<16).toString(16).slice(1)}),s.getColor=function(h){var g=this.getColor.start=this.getColor.start||{h:0,s:1,b:h||.75},E=this.hsb2rgb(g.h,g.s,g.b);return g.h+=.075,g.h>1&&(g.h=0,g.s-=.2,g.s<=0&&(this.getColor.start={h:0,s:1,b:g.b})),E.hex},s.getColor.reset=function(){delete this.start},s.parsePathString=function(h){if(!h)return null;var g=Y0(h);if(g.arr)return e1(g.arr);var E={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},F=[];return s.is(h,z)&&s.is(h[0],z)&&(F=e1(h)),F.length||Z(h).replace(g0,function(R,K,Q){var J=[],Y=K.toLowerCase();if(Q.replace(_0,function(a0,x0){x0&&J.push(+x0)}),Y=="m"&&J.length>2&&(F.push([K][N](J.splice(0,2))),Y="l",K=K=="m"?"l":"L"),Y=="r")F.push([K][N](J));else for(;J.length>=E[Y]&&(F.push([K][N](J.splice(0,E[Y]))),E[Y]););}),F.toString=s._path2string,g.arr=e1(F),F},s.parseTransformString=O0(function(h){if(!h)return null;var g=[];return s.is(h,z)&&s.is(h[0],z)&&(g=e1(h)),g.length||Z(h).replace(y0,function(E,F,R){var K=[];c0.call(F),R.replace(_0,function(Q,J){J&&K.push(+J)}),g.push([F][N](K))}),g.toString=s._path2string,g},this,function(h){if(!h)return h;for(var g=[],E=0;E1?1:Y<0?0:Y)/2,x0=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],C0=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],A0=0,m0=0;m0<12;m0++){var w0=a0*x0[m0]+a0,F0=j0(w0,h,E,R,Q),E0=j0(w0,g,F,K,J),v0=F0*F0+E0*E0;A0+=C0[m0]*h0.sqrt(v0)}return a0*A0}function be(h,g,E,F,R,K,Q,J){if(!(j(h,E)j(R,Q)||j(g,F)j(K,J))){var Y=(h-E)*(K-J)-(g-F)*(R-Q);if(Y){var a0=((h*F-g*E)*(R-Q)-(h-E)*(R*J-K*Q))/Y,x0=((h*F-g*E)*(K-J)-(g-F)*(R*J-K*Q))/Y,C0=+a0.toFixed(2),A0=+x0.toFixed(2);if(!(C0<+p(h,E).toFixed(2)||C0>+j(h,E).toFixed(2)||C0<+p(R,Q).toFixed(2)||C0>+j(R,Q).toFixed(2)||A0<+p(g,F).toFixed(2)||A0>+j(g,F).toFixed(2)||A0<+p(K,J).toFixed(2)||A0>+j(K,J).toFixed(2)))return{x:a0,y:x0}}}}function b1(h,g,E){var F=s.bezierBBox(h),R=s.bezierBBox(g);if(!s.isBBoxIntersect(F,R))return E?0:[];for(var K=o1.apply(0,h),Q=o1.apply(0,g),J=j(~~(K/5),1),Y=j(~~(Q/5),1),a0=[],x0=[],C0={},A0=E?0:[],m0=0;m0=0&&J0<=1.001&&n1>=0&&n1<=1.001&&(E?A0++:A0.push({x:r1.x,y:r1.y,t1:p(J0,1),t2:p(n1,1)}))}}return A0}function g1(h,g,E){h=s._path2curve(h),g=s._path2curve(g);for(var F,R,K,Q,J,Y,a0,x0,C0,A0,m0=E?0:[],w0=0,F0=h.length;w0U0||v0=h.x&&g<=h.x2&&E>=h.y&&E<=h.y2},s.isBBoxIntersect=function(h,g){var E=s.isPointInsideBBox;return E(g,h.x,h.y)||E(g,h.x2,h.y)||E(g,h.x,h.y2)||E(g,h.x2,h.y2)||E(h,g.x,g.y)||E(h,g.x2,g.y)||E(h,g.x,g.y2)||E(h,g.x2,g.y2)||(h.xg.x||g.xh.x)&&(h.yg.y||g.yh.y)},s.pathIntersection=function(h,g){return g1(h,g)},s.pathIntersectionNumber=function(h,g){return g1(h,g,1)},s.isPointInsidePath=function(h,g,E){var F=s.pathBBox(h);return s.isPointInsideBBox(F,g,E)&&g1(h,[["M",g,E],["H",F.x2+10]],1)%2==1},s._removedFactory=function(h){return function(){o("raphael.log",null,"Raphaël: you are calling to method “"+h+"” of removed object",h)}};var ne=s.pathBBox=function(h){var g=Y0(h);if(g.bbox)return p1(g.bbox);if(!h)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var E,F=0,R=0,K=[],Q=[],J=0,Y=(h=me(h)).length;J1&&(E*=v0=h0.sqrt(v0),F*=v0);var U0=E*E,B0=F*F,S0=(K==Q?-1:1)*h0.sqrt(v((U0*B0-U0*E0*E0-B0*F0*F0)/(U0*E0*E0+B0*F0*F0))),D0=S0*E*E0/F+(h+J)/2,r1=S0*-F*F0/E+(g+Y)/2,J0=h0.asin(((g-r1)/F).toFixed(9)),n1=h0.asin(((Y-r1)/F).toFixed(9));(J0=hn1&&(J0-=2*k),!Q&&n1>J0&&(n1-=2*k)}var Gn=n1-J0;if(v(Gn)>C0){var mi=n1,et=J,ur=Y;n1=J0+C0*(Q&&n1>J0?1:-1),J=D0+E*h0.cos(n1),Y=r1+F*h0.sin(n1),m0=ve(J,Y,E,F,R,0,Q,et,ur,[n1,mi,D0,r1])}Gn=n1-J0;var Wn=h0.cos(J0),Vn=h0.sin(J0),u5=h0.cos(n1),Ir=h0.sin(n1),on=h0.tan(Gn/4),a5=4/3*E*on,p3=4/3*F*on,b3=[h,g],Jn=[h+a5*Vn,g-p3*Wn],m3=[J+a5*Ir,Y-p3*u5],y3=[J,Y];if(Jn[0]=2*b3[0]-Jn[0],Jn[1]=2*b3[1]-Jn[1],a0)return[Jn,m3,y3][N](m0);for(var g3=[],f2=0,dm=(m0=[Jn,m3,y3][N](m0).join()[e0](",")).length;f2"1e12"&&(A0=.5),v(m0)>"1e12"&&(m0=.5),A0>0&&A0<1&&(Y=d1(h,g,E,F,R,K,Q,J,A0),F0.push(Y.x),w0.push(Y.y)),m0>0&&m0<1&&(Y=d1(h,g,E,F,R,K,Q,J,m0),F0.push(Y.x),w0.push(Y.y)),a0=K-2*F+g-(J-2*K+F),C0=g-F,A0=(-(x0=2*(F-g)-2*(K-F))+h0.sqrt(x0*x0-4*a0*C0))/2/a0,m0=(-x0-h0.sqrt(x0*x0-4*a0*C0))/2/a0,v(A0)>"1e12"&&(A0=.5),v(m0)>"1e12"&&(m0=.5),A0>0&&A0<1&&(Y=d1(h,g,E,F,R,K,Q,J,A0),F0.push(Y.x),w0.push(Y.y)),m0>0&&m0<1&&(Y=d1(h,g,E,F,R,K,Q,J,m0),F0.push(Y.x),w0.push(Y.y)),{min:{x:p[B](0,F0),y:p[B](0,w0)},max:{x:j[B](0,F0),y:j[B](0,w0)}}}),me=s._path2curve=O0(function(h,g){var E=!g&&Y0(h);if(!g&&E.curve)return e1(E.curve);for(var F=ce(h),R=g&&ce(g),K={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},Q={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},J=function(S0,D0,r1){var J0,n1;if(!S0)return["C",D0.x,D0.y,D0.x,D0.y,D0.x,D0.y];switch(!(S0[0]in{T:1,Q:1})&&(D0.qx=D0.qy=null),S0[0]){case"M":D0.X=S0[1],D0.Y=S0[2];break;case"A":S0=["C"][N](ve[B](0,[D0.x,D0.y][N](S0.slice(1))));break;case"S":r1=="C"||r1=="S"?(J0=2*D0.x-D0.bx,n1=2*D0.y-D0.by):(J0=D0.x,n1=D0.y),S0=["C",J0,n1][N](S0.slice(1));break;case"T":r1=="Q"||r1=="T"?(D0.qx=2*D0.x-D0.qx,D0.qy=2*D0.y-D0.qy):(D0.qx=D0.x,D0.qy=D0.y),S0=["C"][N](f1(D0.x,D0.y,D0.qx,D0.qy,S0[1],S0[2]));break;case"Q":D0.qx=S0[1],D0.qy=S0[2],S0=["C"][N](f1(D0.x,D0.y,S0[1],S0[2],S0[3],S0[4]));break;case"L":S0=["C"][N](m1(D0.x,D0.y,S0[1],S0[2]));break;case"H":S0=["C"][N](m1(D0.x,D0.y,S0[1],D0.y));break;case"V":S0=["C"][N](m1(D0.x,D0.y,D0.x,S0[1]));break;case"Z":S0=["C"][N](m1(D0.x,D0.y,D0.X,D0.Y))}return S0},Y=function(S0,D0){if(S0[D0].length>7){S0[D0].shift();for(var r1=S0[D0];r1.length;)x0[D0]="A",R&&(C0[D0]="A"),S0.splice(D0++,0,["C"][N](r1.splice(0,6)));S0.splice(D0,1),F0=j(F.length,R&&R.length||0)}},a0=function(S0,D0,r1,J0,n1){S0&&D0&&S0[n1][0]=="M"&&D0[n1][0]!="M"&&(D0.splice(n1,0,["M",J0.x,J0.y]),r1.bx=0,r1.by=0,r1.x=S0[n1][1],r1.y=S0[n1][2],F0=j(F.length,R&&R.length||0))},x0=[],C0=[],A0="",m0="",w0=0,F0=j(F.length,R&&R.length||0);w0.01;)U0=o1(a0,x0,C0,A0,m0,w0,F0,E0,S0+=(U0F){if(g&&!C0.start){if(x0+=["C"+(a0=en(K,Q,J[1],J[2],J[3],J[4],J[5],J[6],F-A0)).start.x,a0.start.y,a0.m.x,a0.m.y,a0.x,a0.y],R)return x0;C0.start=x0,x0=["M"+a0.x,a0.y+"C"+a0.n.x,a0.n.y,a0.end.x,a0.end.y,J[5],J[6]].join(),A0+=Y,K=+J[5],Q=+J[6];continue}if(!h&&!g)return{x:(a0=en(K,Q,J[1],J[2],J[3],J[4],J[5],J[6],F-A0)).x,y:a0.y,alpha:a0.alpha}}A0+=Y,K=+J[5],Q=+J[6]}x0+=J.shift()+J}return C0.end=x0,(a0=h?A0:g?C0:s.findDotsAtSegment(K,Q,J[0],J[1],J[2],J[3],J[4],J[5],1)).alpha&&(a0={x:a0.x,y:a0.y,alpha:a0.alpha}),a0}},qn=tn(1),Hn=tn(),rn=tn(0,1);s.getTotalLength=qn,s.getPointAtLength=Hn,s.getSubpath=function(h,g,E){if(this.getTotalLength(h)-E<1e-6)return rn(h,g).end;var F=rn(h,E,1);return g?rn(F,g).end:F},t1.getTotalLength=function(){var h=this.getPath();if(h)return this.node.getTotalLength?this.node.getTotalLength():qn(h)},t1.getPointAtLength=function(h){var g=this.getPath();if(g)return Hn(g,h)},t1.getPath=function(){var h,g=s._getPath[this.type];if(this.type!="text"&&this.type!="set")return g&&(h=g(this)),h},t1.getSubpath=function(h,g){var E=this.getPath();if(E)return s.getSubpath(E,h,g)};var Ee=s.easing_formulas={linear:function(h){return h},"<":function(h){return M(h,1.7)},">":function(h){return M(h,.48)},"<>":function(h){var g=.48-h/1.04,E=h0.sqrt(.1734+g*g),F=E-g,R=-E-g,K=M(v(F),1/3)*(F<0?-1:1)+M(v(R),1/3)*(R<0?-1:1)+.5;return 3*(1-K)*K*K+K*K*K},backIn:function(h){var g=1.70158;return h*h*((g+1)*h-g)},backOut:function(h){var g=1.70158;return(h-=1)*h*((g+1)*h+g)+1},elastic:function(h){return h==!!h?h:M(2,-10*h)*h0.sin(2*k*(h-.075)/.3)+1},bounce:function(h){var g=7.5625,E=2.75;return h<1/E?g*h*h:h<2/E?g*(h-=1.5/E)*h+.75:h<2.5/E?g*(h-=2.25/E)*h+.9375:g*(h-=2.625/E)*h+.984375}};Ee.easeIn=Ee["ease-in"]=Ee["<"],Ee.easeOut=Ee["ease-out"]=Ee[">"],Ee.easeInOut=Ee["ease-in-out"]=Ee["<>"],Ee["back-in"]=Ee.backIn,Ee["back-out"]=Ee.backOut;var c1=[],Kn=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(h){setTimeout(h,16)},nn=function(){for(var h=+new Date,g=0;g1&&!E.next){for(R in x0)x0[T](R)&&(m0[R]=E.totalOrigin[R]);E.el.attr(m0),pi(E.anim,E.el,E.anim.percents[0],null,E.totalOrigin,E.repeat-1)}E.next&&!E.stop&&pi(E.anim,E.el,E.next,null,E.totalOrigin,E.repeat)}}}c1.length&&Kn(nn)},un=function(h){return h>255?255:h<0?0:h};function hi(h,g,E,F,R,K){var Q=3*g,J=3*(F-g)-Q,Y=1-Q-J,a0=3*E,x0=3*(R-E)-a0,C0=1-a0-x0;function A0(m0){return((Y*m0+J)*m0+Q)*m0}return function(m0,w0){var F0=function(E0,v0){var U0,B0,S0,D0,r1,J0;for(S0=E0,J0=0;J0<8;J0++){if(D0=A0(S0)-E0,v(D0)B0)return B0;for(;U0D0?U0=S0:B0=S0,S0=(B0-U0)/2+U0}return S0}(m0,w0);return((C0*F0+x0)*F0+a0)*F0}(h,1/(200*K))}function Ur(h,g){var E=[],F={};if(this.ms=g,this.times=1,h){for(var R in h)h[T](R)&&(F[l(R)]=h[R],E.push(l(R)));E.sort(M0)}this.anim=F,this.top=E[E.length-1],this.percents=E}function pi(h,g,E,F,R,K){E=l(E);var Q,J,Y,a0,x0,C0,A0=h.ms,m0={},w0={},F0={};if(F)for(v0=0,U0=c1.length;v0F*h.top){E=h.percents[v0],x0=h.percents[v0-1]||0,A0=A0/h.top*(E-x0),a0=h.percents[v0+1],Q=h.anim[E];break}F&&g.attr(h.anim[h.percents[v0]])}if(Q){if(J)J.initstatus=F,J.start=new Date-J.ms*F;else{for(var B0 in Q)if(Q[T](B0)&&(H[T](B0)||g.paper.customAttributes[T](B0)))switch(m0[B0]=g.attr(B0),m0[B0]==null&&(m0[B0]=$[B0]),w0[B0]=Q[B0],H[B0]){case I:F0[B0]=(w0[B0]-m0[B0])/A0;break;case"colour":m0[B0]=s.getRGB(m0[B0]);var S0=s.getRGB(w0[B0]);F0[B0]={r:(S0.r-m0[B0].r)/A0,g:(S0.g-m0[B0].g)/A0,b:(S0.b-m0[B0].b)/A0};break;case"path":var D0=me(m0[B0],w0[B0]),r1=D0[1];for(m0[B0]=D0[0],F0[B0]=[],v0=0,U0=m0[B0].length;v0J&&(J=a0)}!h[J+="%"].callback&&(h[J].callback=F)}return new Ur(h,g)},t1.animate=function(h,g,E,F){if(this.removed)return F&&F.call(this),this;var R=h instanceof Ur?h:s.animation(h,g,E,F);return pi(R,this,R.percents[0],null,this.attr()),this},t1.setTime=function(h,g){return h&&g!=null&&this.status(h,p(g,h.ms)/h.ms),this},t1.status=function(h,g){var E,F,R=[],K=0;if(g!=null)return pi(h,this,-1,p(g,1)),this;for(E=c1.length;K>5,this.byteCount=this.blockCount<<2,this.outputBlocks=O>>5,this.extraBytes=(O&31)>>3;for(var $=0;$<50;++$)this.s[$]=0}m.prototype.update=function(f){var S=typeof f!="string";S&&f.constructor===ArrayBuffer&&(f=new Uint8Array(f));for(var O=f.length,$=this.blocks,H=this.byteCount,n0=this.blockCount,u0=0,s0=this.s,g0,y0;u0>2]|=f[u0]<>2]|=y0<>2]|=(192|y0>>6)<>2]|=(128|y0&63)<=57344?($[g0>>2]|=(224|y0>>12)<>2]|=(128|y0>>6&63)<>2]|=(128|y0&63)<>2]|=(240|y0>>18)<>2]|=(128|y0>>12&63)<>2]|=(128|y0>>6&63)<>2]|=(128|y0&63)<=H){for(this.start=g0-H,this.block=$[n0],g0=0;g0>2]|=this.padding[S&3],this.lastByteIndex===this.byteCount)for(f[0]=f[O],S=1;S>4&15]+B[s0&15]+B[s0>>12&15]+B[s0>>8&15]+B[s0>>20&15]+B[s0>>16&15]+B[s0>>28&15]+B[s0>>24&15];n0%f===0&&(D(S),H=0)}return $&&(s0=S[H],$>0&&(u0+=B[s0>>4&15]+B[s0&15]),$>1&&(u0+=B[s0>>12&15]+B[s0>>8&15]),$>2&&(u0+=B[s0>>20&15]+B[s0>>16&15])),u0},m.prototype.arrayBuffer=function(){this.finalize();var f=this.blockCount,S=this.s,O=this.outputBlocks,$=this.extraBytes,H=0,n0=0,u0=this.outputBits>>3,s0;$?s0=new ArrayBuffer(O+1<<2):s0=new ArrayBuffer(u0);for(var g0=new Uint32Array(s0);n0>8&255,u0[s0+2]=g0>>16&255,u0[s0+3]=g0>>24&255;n0%f===0&&D(S)}return $&&(s0=n0<<2,g0=S[H],$>0&&(u0[s0]=g0&255),$>1&&(u0[s0+1]=g0>>8&255),$>2&&(u0[s0+2]=g0>>16&255)),u0};var D=function(f){var S,O,$,H,n0,u0,s0,g0,y0,_0,z0,M0,I0,R0,V0,G0,X0,$0,Z0,p1,f1,L,x,w,q,i0,f0,p0,O0,H0,K0,Y0,j0,o1,be,b1,g1,ne,e1,F1,ce,m1,l1,ve,d1,w1,me,E1,S1,ze,B1,T1,se,P1,N1,Ze,M1,D1,$e,Z1,Ae,we,t1;for($=0;$<48;$+=2)H=f[0]^f[10]^f[20]^f[30]^f[40],n0=f[1]^f[11]^f[21]^f[31]^f[41],u0=f[2]^f[12]^f[22]^f[32]^f[42],s0=f[3]^f[13]^f[23]^f[33]^f[43],g0=f[4]^f[14]^f[24]^f[34]^f[44],y0=f[5]^f[15]^f[25]^f[35]^f[45],_0=f[6]^f[16]^f[26]^f[36]^f[46],z0=f[7]^f[17]^f[27]^f[37]^f[47],M0=f[8]^f[18]^f[28]^f[38]^f[48],I0=f[9]^f[19]^f[29]^f[39]^f[49],S=M0^(u0<<1|s0>>>31),O=I0^(s0<<1|u0>>>31),f[0]^=S,f[1]^=O,f[10]^=S,f[11]^=O,f[20]^=S,f[21]^=O,f[30]^=S,f[31]^=O,f[40]^=S,f[41]^=O,S=H^(g0<<1|y0>>>31),O=n0^(y0<<1|g0>>>31),f[2]^=S,f[3]^=O,f[12]^=S,f[13]^=O,f[22]^=S,f[23]^=O,f[32]^=S,f[33]^=O,f[42]^=S,f[43]^=O,S=u0^(_0<<1|z0>>>31),O=s0^(z0<<1|_0>>>31),f[4]^=S,f[5]^=O,f[14]^=S,f[15]^=O,f[24]^=S,f[25]^=O,f[34]^=S,f[35]^=O,f[44]^=S,f[45]^=O,S=g0^(M0<<1|I0>>>31),O=y0^(I0<<1|M0>>>31),f[6]^=S,f[7]^=O,f[16]^=S,f[17]^=O,f[26]^=S,f[27]^=O,f[36]^=S,f[37]^=O,f[46]^=S,f[47]^=O,S=_0^(H<<1|n0>>>31),O=z0^(n0<<1|H>>>31),f[8]^=S,f[9]^=O,f[18]^=S,f[19]^=O,f[28]^=S,f[29]^=O,f[38]^=S,f[39]^=O,f[48]^=S,f[49]^=O,R0=f[0],V0=f[1],w1=f[11]<<4|f[10]>>>28,me=f[10]<<4|f[11]>>>28,p0=f[20]<<3|f[21]>>>29,O0=f[21]<<3|f[20]>>>29,Z1=f[31]<<9|f[30]>>>23,Ae=f[30]<<9|f[31]>>>23,m1=f[40]<<18|f[41]>>>14,l1=f[41]<<18|f[40]>>>14,o1=f[2]<<1|f[3]>>>31,be=f[3]<<1|f[2]>>>31,G0=f[13]<<12|f[12]>>>20,X0=f[12]<<12|f[13]>>>20,E1=f[22]<<10|f[23]>>>22,S1=f[23]<<10|f[22]>>>22,H0=f[33]<<13|f[32]>>>19,K0=f[32]<<13|f[33]>>>19,we=f[42]<<2|f[43]>>>30,t1=f[43]<<2|f[42]>>>30,P1=f[5]<<30|f[4]>>>2,N1=f[4]<<30|f[5]>>>2,b1=f[14]<<6|f[15]>>>26,g1=f[15]<<6|f[14]>>>26,$0=f[25]<<11|f[24]>>>21,Z0=f[24]<<11|f[25]>>>21,ze=f[34]<<15|f[35]>>>17,B1=f[35]<<15|f[34]>>>17,Y0=f[45]<<29|f[44]>>>3,j0=f[44]<<29|f[45]>>>3,w=f[6]<<28|f[7]>>>4,q=f[7]<<28|f[6]>>>4,Ze=f[17]<<23|f[16]>>>9,M1=f[16]<<23|f[17]>>>9,ne=f[26]<<25|f[27]>>>7,e1=f[27]<<25|f[26]>>>7,p1=f[36]<<21|f[37]>>>11,f1=f[37]<<21|f[36]>>>11,T1=f[47]<<24|f[46]>>>8,se=f[46]<<24|f[47]>>>8,ve=f[8]<<27|f[9]>>>5,d1=f[9]<<27|f[8]>>>5,i0=f[18]<<20|f[19]>>>12,f0=f[19]<<20|f[18]>>>12,D1=f[29]<<7|f[28]>>>25,$e=f[28]<<7|f[29]>>>25,F1=f[38]<<8|f[39]>>>24,ce=f[39]<<8|f[38]>>>24,L=f[48]<<14|f[49]>>>18,x=f[49]<<14|f[48]>>>18,f[0]=R0^~G0&$0,f[1]=V0^~X0&Z0,f[10]=w^~i0&p0,f[11]=q^~f0&O0,f[20]=o1^~b1&ne,f[21]=be^~g1&e1,f[30]=ve^~w1&E1,f[31]=d1^~me&S1,f[40]=P1^~Ze&D1,f[41]=N1^~M1&$e,f[2]=G0^~$0&p1,f[3]=X0^~Z0&f1,f[12]=i0^~p0&H0,f[13]=f0^~O0&K0,f[22]=b1^~ne&F1,f[23]=g1^~e1&ce,f[32]=w1^~E1&ze,f[33]=me^~S1&B1,f[42]=Ze^~D1&Z1,f[43]=M1^~$e&Ae,f[4]=$0^~p1&L,f[5]=Z0^~f1&x,f[14]=p0^~H0&Y0,f[15]=O0^~K0&j0,f[24]=ne^~F1&m1,f[25]=e1^~ce&l1,f[34]=E1^~ze&T1,f[35]=S1^~B1&se,f[44]=D1^~Z1&we,f[45]=$e^~Ae&t1,f[6]=p1^~L&R0,f[7]=f1^~x&V0,f[16]=H0^~Y0&w,f[17]=K0^~j0&q,f[26]=F1^~m1&o1,f[27]=ce^~l1&be,f[36]=ze^~T1&ve,f[37]=B1^~se&d1,f[46]=Z1^~we&P1,f[47]=Ae^~t1&N1,f[8]=L^~R0&G0,f[9]=x^~V0&X0,f[18]=Y0^~w&i0,f[19]=j0^~q&f0,f[28]=m1^~o1&b1,f[29]=l1^~be&g1,f[38]=T1^~ve&w1,f[39]=se^~d1&me,f[48]=we^~P1&Ze,f[49]=t1^~N1&M1,f[0]^=Z[$],f[1]^=Z[$+1]};if(_)T.exports=M;else for(var I=0;I=196608?W>=917760&&W<=917999?18874368:0:P[_[W>>4]][W&15]}return{mapStr:B,mapChar:N}})})(s),function(T,U){(function(P,_){T.exports=_(i.default,s.exports)})(u,function(P,_){function B(e0,o0,d0){const c0=[],h0=P.ucs2.decode(e0);for(let p=0;p>23,z=k>>21&3,V=k>>5&65535,b=k&31,l=_.mapStr.substr(V,b);if(z===0||o0&&I&1)throw new Error("Illegal char "+M);z===1?c0.push(l):z===2?c0.push(d0?l:M):z===3&&c0.push(M)}return c0.join("").normalize("NFC")}function N(e0,o0,d0){d0===void 0&&(d0=!1);let h0=B(e0,d0,o0).split(".");return h0=h0.map(function(j){return j.startsWith("xn--")?(j=P.decode(j.substring(4)),W(j,d0,!1)):W(j,d0,o0),j}),h0.join(".")}function W(e0,o0,d0){if(e0[2]==="-"&&e0[3]==="-")throw new Error("Failed to validate "+e0);if(e0.startsWith("-")||e0.endsWith("-"))throw new Error("Failed to validate "+e0);if(e0.includes("."))throw new Error("Failed to validate "+e0);if(B(e0,o0,d0)!==e0)throw new Error("Failed to validate "+e0);const c0=e0.codePointAt(0);if(_.mapChar(c0)&2<<23)throw new Error("Label contains illegal character: "+c0)}function G(e0,o0){o0===void 0&&(o0={});const d0="transitional"in o0?o0.transitional:!0,c0="useStd3ASCII"in o0?o0.useStd3ASCII:!1,h0="verifyDnsLength"in o0?o0.verifyDnsLength:!1,p=N(e0,d0,c0).split(".").map(P.toASCII),v=p.join(".");let M;if(h0){if(v.length<1||v.length>253)throw new Error("DNS name has wrong length: "+v);for(M=0;M63)throw new Error("DNS label has wrong length: "+k)}}return v}function t0(e0){const o0=Array.isArray(e0);o0||(e0=[e0]);const d0={IDN:[],PC:[]};return e0.forEach(c0=>{let h0,j;try{h0=G(c0,{transitional:!c0.match(/\.(?:be|ca|de|fr|pm|re|swiss|tf|wf|yt)\.?$/)}),j={PC:h0,IDN:Z(h0)}}catch{j={PC:c0,IDN:c0}}d0.PC.push(j.PC),d0.IDN.push(j.IDN)}),o0?d0:{IDN:d0.IDN[0],PC:d0.PC[0]}}function Z(e0,o0){o0===void 0&&(o0={});const d0="useStd3ASCII"in o0?o0.useStd3ASCII:!1;return N(e0,!1,d0)}return{toUnicode:Z,toAscii:G,convert:t0}})}(o);var c=a.exports.keccak_256,d=o.exports;function y(T){for(var U="",P=0;P<32;P++)U+="00";var _=A(T);if(_)for(var B=_.split("."),P=B.length-1;P>=0;P--){var N=c(B[P]);U=c(new Buffer(U+N,"hex"))}return"0x"+U}function A(T){return T&&d.toUnicode(T,{useStd3ASCII:!0,transitional:!1})}var C={hash:y,normalize:A};return C})})(Ib);var $u=Ib.exports;const iN=xt($u);function uN(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function aN(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}const U6=2147483647,qr=36,oN=/^xn--/,sN=/[^\0-\x7F]/,fN=/[\x2E\u3002\uFF0E\uFF61]/g,lN={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},xr=Math.floor,Ga=String.fromCharCode;function y2(t){throw new RangeError(lN[t])}function Rb(t,e){const r=t.split("@");let n="";r.length>1&&(n=r[0]+"@",t=r[1]);const i=function(u,a){const o=[];let s=u.length;for(;s--;)o[s]=a(u[s]);return o}((t=t.replace(fN,".")).split("."),e).join(".");return n+i}function t3(t){const e=[];let r=0;const n=t.length;for(;r=55296&&i<=56319&&rString.fromCodePoint(...t),mc=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Lb=function(t,e,r){let n=0;for(t=r?xr(t/700):t>>1,t+=xr(t/e);t>455;n+=qr)t=xr(t/35);return xr(n+36*t/(t+38))},r3=function(t){const e=[],r=t.length;let n=0,i=128,u=72,a=t.lastIndexOf("-");a<0&&(a=0);for(let s=0;s=128&&y2("not-basic"),e.push(t.charCodeAt(s));for(let s=a>0?a+1:0;s=r&&y2("invalid-input");const C=(o=t.charCodeAt(s++))>=48&&o<58?o-48+26:o>=65&&o<91?o-65:o>=97&&o<123?o-97:qr;C>=qr&&y2("invalid-input"),C>xr((U6-n)/y)&&y2("overflow"),n+=C*y;const T=A<=u?1:A>=u+26?26:A-u;if(Cxr(U6/U)&&y2("overflow"),y*=U}const d=e.length+1;u=Lb(n-c,d,c==0),xr(n/d)>U6-i&&y2("overflow"),i+=xr(n/d),n%=d,e.splice(n++,0,i)}var o;return String.fromCodePoint(...e)},n3=function(t){const e=[],r=(t=t3(t)).length;let n=128,i=0,u=72;for(const s of t)s<128&&e.push(Ga(s));const a=e.length;let o=a;for(a&&e.push("-");o=n&&dxr((U6-i)/c)&&y2("overflow"),i+=(s-n)*c,n=s;for(const d of t)if(dU6&&y2("overflow"),d===n){let y=i;for(let A=qr;;A+=qr){const C=A<=u?1:A>=u+26?26:A-u;if(y"],[65126,5,"="],[65127,3],[65128,5,"\\"],[65129,5,"$"],[65130,5,"%"],[65131,5,"@"],[[65132,65135],3],[65136,5," ً"],[65137,1,"ـً"],[65138,5," ٌ"],[65139,2],[65140,5," ٍ"],[65141,3],[65142,5," َ"],[65143,1,"ـَ"],[65144,5," ُ"],[65145,1,"ـُ"],[65146,5," ِ"],[65147,1,"ـِ"],[65148,5," ّ"],[65149,1,"ـّ"],[65150,5," ْ"],[65151,1,"ـْ"],[65152,1,"ء"],[[65153,65154],1,"آ"],[[65155,65156],1,"أ"],[[65157,65158],1,"ؤ"],[[65159,65160],1,"إ"],[[65161,65164],1,"ئ"],[[65165,65166],1,"ا"],[[65167,65170],1,"ب"],[[65171,65172],1,"ة"],[[65173,65176],1,"ت"],[[65177,65180],1,"ث"],[[65181,65184],1,"ج"],[[65185,65188],1,"ح"],[[65189,65192],1,"خ"],[[65193,65194],1,"د"],[[65195,65196],1,"ذ"],[[65197,65198],1,"ر"],[[65199,65200],1,"ز"],[[65201,65204],1,"س"],[[65205,65208],1,"ش"],[[65209,65212],1,"ص"],[[65213,65216],1,"ض"],[[65217,65220],1,"ط"],[[65221,65224],1,"ظ"],[[65225,65228],1,"ع"],[[65229,65232],1,"غ"],[[65233,65236],1,"ف"],[[65237,65240],1,"ق"],[[65241,65244],1,"ك"],[[65245,65248],1,"ل"],[[65249,65252],1,"م"],[[65253,65256],1,"ن"],[[65257,65260],1,"ه"],[[65261,65262],1,"و"],[[65263,65264],1,"ى"],[[65265,65268],1,"ي"],[[65269,65270],1,"لآ"],[[65271,65272],1,"لأ"],[[65273,65274],1,"لإ"],[[65275,65276],1,"لا"],[[65277,65278],3],[65279,7],[65280,3],[65281,5,"!"],[65282,5,'"'],[65283,5,"#"],[65284,5,"$"],[65285,5,"%"],[65286,5,"&"],[65287,5,"'"],[65288,5,"("],[65289,5,")"],[65290,5,"*"],[65291,5,"+"],[65292,5,","],[65293,1,"-"],[65294,1,"."],[65295,5,"/"],[65296,1,"0"],[65297,1,"1"],[65298,1,"2"],[65299,1,"3"],[65300,1,"4"],[65301,1,"5"],[65302,1,"6"],[65303,1,"7"],[65304,1,"8"],[65305,1,"9"],[65306,5,":"],[65307,5,";"],[65308,5,"<"],[65309,5,"="],[65310,5,">"],[65311,5,"?"],[65312,5,"@"],[65313,1,"a"],[65314,1,"b"],[65315,1,"c"],[65316,1,"d"],[65317,1,"e"],[65318,1,"f"],[65319,1,"g"],[65320,1,"h"],[65321,1,"i"],[65322,1,"j"],[65323,1,"k"],[65324,1,"l"],[65325,1,"m"],[65326,1,"n"],[65327,1,"o"],[65328,1,"p"],[65329,1,"q"],[65330,1,"r"],[65331,1,"s"],[65332,1,"t"],[65333,1,"u"],[65334,1,"v"],[65335,1,"w"],[65336,1,"x"],[65337,1,"y"],[65338,1,"z"],[65339,5,"["],[65340,5,"\\"],[65341,5,"]"],[65342,5,"^"],[65343,5,"_"],[65344,5,"`"],[65345,1,"a"],[65346,1,"b"],[65347,1,"c"],[65348,1,"d"],[65349,1,"e"],[65350,1,"f"],[65351,1,"g"],[65352,1,"h"],[65353,1,"i"],[65354,1,"j"],[65355,1,"k"],[65356,1,"l"],[65357,1,"m"],[65358,1,"n"],[65359,1,"o"],[65360,1,"p"],[65361,1,"q"],[65362,1,"r"],[65363,1,"s"],[65364,1,"t"],[65365,1,"u"],[65366,1,"v"],[65367,1,"w"],[65368,1,"x"],[65369,1,"y"],[65370,1,"z"],[65371,5,"{"],[65372,5,"|"],[65373,5,"}"],[65374,5,"~"],[65375,1,"⦅"],[65376,1,"⦆"],[65377,1,"."],[65378,1,"「"],[65379,1,"」"],[65380,1,"、"],[65381,1,"・"],[65382,1,"ヲ"],[65383,1,"ァ"],[65384,1,"ィ"],[65385,1,"ゥ"],[65386,1,"ェ"],[65387,1,"ォ"],[65388,1,"ャ"],[65389,1,"ュ"],[65390,1,"ョ"],[65391,1,"ッ"],[65392,1,"ー"],[65393,1,"ア"],[65394,1,"イ"],[65395,1,"ウ"],[65396,1,"エ"],[65397,1,"オ"],[65398,1,"カ"],[65399,1,"キ"],[65400,1,"ク"],[65401,1,"ケ"],[65402,1,"コ"],[65403,1,"サ"],[65404,1,"シ"],[65405,1,"ス"],[65406,1,"セ"],[65407,1,"ソ"],[65408,1,"タ"],[65409,1,"チ"],[65410,1,"ツ"],[65411,1,"テ"],[65412,1,"ト"],[65413,1,"ナ"],[65414,1,"ニ"],[65415,1,"ヌ"],[65416,1,"ネ"],[65417,1,"ノ"],[65418,1,"ハ"],[65419,1,"ヒ"],[65420,1,"フ"],[65421,1,"ヘ"],[65422,1,"ホ"],[65423,1,"マ"],[65424,1,"ミ"],[65425,1,"ム"],[65426,1,"メ"],[65427,1,"モ"],[65428,1,"ヤ"],[65429,1,"ユ"],[65430,1,"ヨ"],[65431,1,"ラ"],[65432,1,"リ"],[65433,1,"ル"],[65434,1,"レ"],[65435,1,"ロ"],[65436,1,"ワ"],[65437,1,"ン"],[65438,1,"゙"],[65439,1,"゚"],[65440,3],[65441,1,"ᄀ"],[65442,1,"ᄁ"],[65443,1,"ᆪ"],[65444,1,"ᄂ"],[65445,1,"ᆬ"],[65446,1,"ᆭ"],[65447,1,"ᄃ"],[65448,1,"ᄄ"],[65449,1,"ᄅ"],[65450,1,"ᆰ"],[65451,1,"ᆱ"],[65452,1,"ᆲ"],[65453,1,"ᆳ"],[65454,1,"ᆴ"],[65455,1,"ᆵ"],[65456,1,"ᄚ"],[65457,1,"ᄆ"],[65458,1,"ᄇ"],[65459,1,"ᄈ"],[65460,1,"ᄡ"],[65461,1,"ᄉ"],[65462,1,"ᄊ"],[65463,1,"ᄋ"],[65464,1,"ᄌ"],[65465,1,"ᄍ"],[65466,1,"ᄎ"],[65467,1,"ᄏ"],[65468,1,"ᄐ"],[65469,1,"ᄑ"],[65470,1,"ᄒ"],[[65471,65473],3],[65474,1,"ᅡ"],[65475,1,"ᅢ"],[65476,1,"ᅣ"],[65477,1,"ᅤ"],[65478,1,"ᅥ"],[65479,1,"ᅦ"],[[65480,65481],3],[65482,1,"ᅧ"],[65483,1,"ᅨ"],[65484,1,"ᅩ"],[65485,1,"ᅪ"],[65486,1,"ᅫ"],[65487,1,"ᅬ"],[[65488,65489],3],[65490,1,"ᅭ"],[65491,1,"ᅮ"],[65492,1,"ᅯ"],[65493,1,"ᅰ"],[65494,1,"ᅱ"],[65495,1,"ᅲ"],[[65496,65497],3],[65498,1,"ᅳ"],[65499,1,"ᅴ"],[65500,1,"ᅵ"],[[65501,65503],3],[65504,1,"¢"],[65505,1,"£"],[65506,1,"¬"],[65507,5," ̄"],[65508,1,"¦"],[65509,1,"¥"],[65510,1,"₩"],[65511,3],[65512,1,"│"],[65513,1,"←"],[65514,1,"↑"],[65515,1,"→"],[65516,1,"↓"],[65517,1,"■"],[65518,1,"○"],[[65519,65528],3],[[65529,65531],3],[65532,3],[65533,3],[[65534,65535],3],[[65536,65547],2],[65548,3],[[65549,65574],2],[65575,3],[[65576,65594],2],[65595,3],[[65596,65597],2],[65598,3],[[65599,65613],2],[[65614,65615],3],[[65616,65629],2],[[65630,65663],3],[[65664,65786],2],[[65787,65791],3],[[65792,65794],2],[[65795,65798],3],[[65799,65843],2],[[65844,65846],3],[[65847,65855],2],[[65856,65930],2],[[65931,65932],2],[[65933,65934],2],[65935,3],[[65936,65947],2],[65948,2],[[65949,65951],3],[65952,2],[[65953,65999],3],[[66e3,66044],2],[66045,2],[[66046,66175],3],[[66176,66204],2],[[66205,66207],3],[[66208,66256],2],[[66257,66271],3],[66272,2],[[66273,66299],2],[[66300,66303],3],[[66304,66334],2],[66335,2],[[66336,66339],2],[[66340,66348],3],[[66349,66351],2],[[66352,66368],2],[66369,2],[[66370,66377],2],[66378,2],[[66379,66383],3],[[66384,66426],2],[[66427,66431],3],[[66432,66461],2],[66462,3],[66463,2],[[66464,66499],2],[[66500,66503],3],[[66504,66511],2],[[66512,66517],2],[[66518,66559],3],[66560,1,"𐐨"],[66561,1,"𐐩"],[66562,1,"𐐪"],[66563,1,"𐐫"],[66564,1,"𐐬"],[66565,1,"𐐭"],[66566,1,"𐐮"],[66567,1,"𐐯"],[66568,1,"𐐰"],[66569,1,"𐐱"],[66570,1,"𐐲"],[66571,1,"𐐳"],[66572,1,"𐐴"],[66573,1,"𐐵"],[66574,1,"𐐶"],[66575,1,"𐐷"],[66576,1,"𐐸"],[66577,1,"𐐹"],[66578,1,"𐐺"],[66579,1,"𐐻"],[66580,1,"𐐼"],[66581,1,"𐐽"],[66582,1,"𐐾"],[66583,1,"𐐿"],[66584,1,"𐑀"],[66585,1,"𐑁"],[66586,1,"𐑂"],[66587,1,"𐑃"],[66588,1,"𐑄"],[66589,1,"𐑅"],[66590,1,"𐑆"],[66591,1,"𐑇"],[66592,1,"𐑈"],[66593,1,"𐑉"],[66594,1,"𐑊"],[66595,1,"𐑋"],[66596,1,"𐑌"],[66597,1,"𐑍"],[66598,1,"𐑎"],[66599,1,"𐑏"],[[66600,66637],2],[[66638,66717],2],[[66718,66719],3],[[66720,66729],2],[[66730,66735],3],[66736,1,"𐓘"],[66737,1,"𐓙"],[66738,1,"𐓚"],[66739,1,"𐓛"],[66740,1,"𐓜"],[66741,1,"𐓝"],[66742,1,"𐓞"],[66743,1,"𐓟"],[66744,1,"𐓠"],[66745,1,"𐓡"],[66746,1,"𐓢"],[66747,1,"𐓣"],[66748,1,"𐓤"],[66749,1,"𐓥"],[66750,1,"𐓦"],[66751,1,"𐓧"],[66752,1,"𐓨"],[66753,1,"𐓩"],[66754,1,"𐓪"],[66755,1,"𐓫"],[66756,1,"𐓬"],[66757,1,"𐓭"],[66758,1,"𐓮"],[66759,1,"𐓯"],[66760,1,"𐓰"],[66761,1,"𐓱"],[66762,1,"𐓲"],[66763,1,"𐓳"],[66764,1,"𐓴"],[66765,1,"𐓵"],[66766,1,"𐓶"],[66767,1,"𐓷"],[66768,1,"𐓸"],[66769,1,"𐓹"],[66770,1,"𐓺"],[66771,1,"𐓻"],[[66772,66775],3],[[66776,66811],2],[[66812,66815],3],[[66816,66855],2],[[66856,66863],3],[[66864,66915],2],[[66916,66926],3],[66927,2],[66928,1,"𐖗"],[66929,1,"𐖘"],[66930,1,"𐖙"],[66931,1,"𐖚"],[66932,1,"𐖛"],[66933,1,"𐖜"],[66934,1,"𐖝"],[66935,1,"𐖞"],[66936,1,"𐖟"],[66937,1,"𐖠"],[66938,1,"𐖡"],[66939,3],[66940,1,"𐖣"],[66941,1,"𐖤"],[66942,1,"𐖥"],[66943,1,"𐖦"],[66944,1,"𐖧"],[66945,1,"𐖨"],[66946,1,"𐖩"],[66947,1,"𐖪"],[66948,1,"𐖫"],[66949,1,"𐖬"],[66950,1,"𐖭"],[66951,1,"𐖮"],[66952,1,"𐖯"],[66953,1,"𐖰"],[66954,1,"𐖱"],[66955,3],[66956,1,"𐖳"],[66957,1,"𐖴"],[66958,1,"𐖵"],[66959,1,"𐖶"],[66960,1,"𐖷"],[66961,1,"𐖸"],[66962,1,"𐖹"],[66963,3],[66964,1,"𐖻"],[66965,1,"𐖼"],[66966,3],[[66967,66977],2],[66978,3],[[66979,66993],2],[66994,3],[[66995,67001],2],[67002,3],[[67003,67004],2],[[67005,67071],3],[[67072,67382],2],[[67383,67391],3],[[67392,67413],2],[[67414,67423],3],[[67424,67431],2],[[67432,67455],3],[67456,2],[67457,1,"ː"],[67458,1,"ˑ"],[67459,1,"æ"],[67460,1,"ʙ"],[67461,1,"ɓ"],[67462,3],[67463,1,"ʣ"],[67464,1,"ꭦ"],[67465,1,"ʥ"],[67466,1,"ʤ"],[67467,1,"ɖ"],[67468,1,"ɗ"],[67469,1,"ᶑ"],[67470,1,"ɘ"],[67471,1,"ɞ"],[67472,1,"ʩ"],[67473,1,"ɤ"],[67474,1,"ɢ"],[67475,1,"ɠ"],[67476,1,"ʛ"],[67477,1,"ħ"],[67478,1,"ʜ"],[67479,1,"ɧ"],[67480,1,"ʄ"],[67481,1,"ʪ"],[67482,1,"ʫ"],[67483,1,"ɬ"],[67484,1,"𝼄"],[67485,1,"ꞎ"],[67486,1,"ɮ"],[67487,1,"𝼅"],[67488,1,"ʎ"],[67489,1,"𝼆"],[67490,1,"ø"],[67491,1,"ɶ"],[67492,1,"ɷ"],[67493,1,"q"],[67494,1,"ɺ"],[67495,1,"𝼈"],[67496,1,"ɽ"],[67497,1,"ɾ"],[67498,1,"ʀ"],[67499,1,"ʨ"],[67500,1,"ʦ"],[67501,1,"ꭧ"],[67502,1,"ʧ"],[67503,1,"ʈ"],[67504,1,"ⱱ"],[67505,3],[67506,1,"ʏ"],[67507,1,"ʡ"],[67508,1,"ʢ"],[67509,1,"ʘ"],[67510,1,"ǀ"],[67511,1,"ǁ"],[67512,1,"ǂ"],[67513,1,"𝼊"],[67514,1,"𝼞"],[[67515,67583],3],[[67584,67589],2],[[67590,67591],3],[67592,2],[67593,3],[[67594,67637],2],[67638,3],[[67639,67640],2],[[67641,67643],3],[67644,2],[[67645,67646],3],[67647,2],[[67648,67669],2],[67670,3],[[67671,67679],2],[[67680,67702],2],[[67703,67711],2],[[67712,67742],2],[[67743,67750],3],[[67751,67759],2],[[67760,67807],3],[[67808,67826],2],[67827,3],[[67828,67829],2],[[67830,67834],3],[[67835,67839],2],[[67840,67861],2],[[67862,67865],2],[[67866,67867],2],[[67868,67870],3],[67871,2],[[67872,67897],2],[[67898,67902],3],[67903,2],[[67904,67967],3],[[67968,68023],2],[[68024,68027],3],[[68028,68029],2],[[68030,68031],2],[[68032,68047],2],[[68048,68049],3],[[68050,68095],2],[[68096,68099],2],[68100,3],[[68101,68102],2],[[68103,68107],3],[[68108,68115],2],[68116,3],[[68117,68119],2],[68120,3],[[68121,68147],2],[[68148,68149],2],[[68150,68151],3],[[68152,68154],2],[[68155,68158],3],[68159,2],[[68160,68167],2],[68168,2],[[68169,68175],3],[[68176,68184],2],[[68185,68191],3],[[68192,68220],2],[[68221,68223],2],[[68224,68252],2],[[68253,68255],2],[[68256,68287],3],[[68288,68295],2],[68296,2],[[68297,68326],2],[[68327,68330],3],[[68331,68342],2],[[68343,68351],3],[[68352,68405],2],[[68406,68408],3],[[68409,68415],2],[[68416,68437],2],[[68438,68439],3],[[68440,68447],2],[[68448,68466],2],[[68467,68471],3],[[68472,68479],2],[[68480,68497],2],[[68498,68504],3],[[68505,68508],2],[[68509,68520],3],[[68521,68527],2],[[68528,68607],3],[[68608,68680],2],[[68681,68735],3],[68736,1,"𐳀"],[68737,1,"𐳁"],[68738,1,"𐳂"],[68739,1,"𐳃"],[68740,1,"𐳄"],[68741,1,"𐳅"],[68742,1,"𐳆"],[68743,1,"𐳇"],[68744,1,"𐳈"],[68745,1,"𐳉"],[68746,1,"𐳊"],[68747,1,"𐳋"],[68748,1,"𐳌"],[68749,1,"𐳍"],[68750,1,"𐳎"],[68751,1,"𐳏"],[68752,1,"𐳐"],[68753,1,"𐳑"],[68754,1,"𐳒"],[68755,1,"𐳓"],[68756,1,"𐳔"],[68757,1,"𐳕"],[68758,1,"𐳖"],[68759,1,"𐳗"],[68760,1,"𐳘"],[68761,1,"𐳙"],[68762,1,"𐳚"],[68763,1,"𐳛"],[68764,1,"𐳜"],[68765,1,"𐳝"],[68766,1,"𐳞"],[68767,1,"𐳟"],[68768,1,"𐳠"],[68769,1,"𐳡"],[68770,1,"𐳢"],[68771,1,"𐳣"],[68772,1,"𐳤"],[68773,1,"𐳥"],[68774,1,"𐳦"],[68775,1,"𐳧"],[68776,1,"𐳨"],[68777,1,"𐳩"],[68778,1,"𐳪"],[68779,1,"𐳫"],[68780,1,"𐳬"],[68781,1,"𐳭"],[68782,1,"𐳮"],[68783,1,"𐳯"],[68784,1,"𐳰"],[68785,1,"𐳱"],[68786,1,"𐳲"],[[68787,68799],3],[[68800,68850],2],[[68851,68857],3],[[68858,68863],2],[[68864,68903],2],[[68904,68911],3],[[68912,68921],2],[[68922,69215],3],[[69216,69246],2],[69247,3],[[69248,69289],2],[69290,3],[[69291,69292],2],[69293,2],[[69294,69295],3],[[69296,69297],2],[[69298,69372],3],[[69373,69375],2],[[69376,69404],2],[[69405,69414],2],[69415,2],[[69416,69423],3],[[69424,69456],2],[[69457,69465],2],[[69466,69487],3],[[69488,69509],2],[[69510,69513],2],[[69514,69551],3],[[69552,69572],2],[[69573,69579],2],[[69580,69599],3],[[69600,69622],2],[[69623,69631],3],[[69632,69702],2],[[69703,69709],2],[[69710,69713],3],[[69714,69733],2],[[69734,69743],2],[[69744,69749],2],[[69750,69758],3],[69759,2],[[69760,69818],2],[[69819,69820],2],[69821,3],[[69822,69825],2],[69826,2],[[69827,69836],3],[69837,3],[[69838,69839],3],[[69840,69864],2],[[69865,69871],3],[[69872,69881],2],[[69882,69887],3],[[69888,69940],2],[69941,3],[[69942,69951],2],[[69952,69955],2],[[69956,69958],2],[69959,2],[[69960,69967],3],[[69968,70003],2],[[70004,70005],2],[70006,2],[[70007,70015],3],[[70016,70084],2],[[70085,70088],2],[[70089,70092],2],[70093,2],[[70094,70095],2],[[70096,70105],2],[70106,2],[70107,2],[70108,2],[[70109,70111],2],[70112,3],[[70113,70132],2],[[70133,70143],3],[[70144,70161],2],[70162,3],[[70163,70199],2],[[70200,70205],2],[70206,2],[[70207,70209],2],[[70210,70271],3],[[70272,70278],2],[70279,3],[70280,2],[70281,3],[[70282,70285],2],[70286,3],[[70287,70301],2],[70302,3],[[70303,70312],2],[70313,2],[[70314,70319],3],[[70320,70378],2],[[70379,70383],3],[[70384,70393],2],[[70394,70399],3],[70400,2],[[70401,70403],2],[70404,3],[[70405,70412],2],[[70413,70414],3],[[70415,70416],2],[[70417,70418],3],[[70419,70440],2],[70441,3],[[70442,70448],2],[70449,3],[[70450,70451],2],[70452,3],[[70453,70457],2],[70458,3],[70459,2],[[70460,70468],2],[[70469,70470],3],[[70471,70472],2],[[70473,70474],3],[[70475,70477],2],[[70478,70479],3],[70480,2],[[70481,70486],3],[70487,2],[[70488,70492],3],[[70493,70499],2],[[70500,70501],3],[[70502,70508],2],[[70509,70511],3],[[70512,70516],2],[[70517,70655],3],[[70656,70730],2],[[70731,70735],2],[[70736,70745],2],[70746,2],[70747,2],[70748,3],[70749,2],[70750,2],[70751,2],[[70752,70753],2],[[70754,70783],3],[[70784,70853],2],[70854,2],[70855,2],[[70856,70863],3],[[70864,70873],2],[[70874,71039],3],[[71040,71093],2],[[71094,71095],3],[[71096,71104],2],[[71105,71113],2],[[71114,71127],2],[[71128,71133],2],[[71134,71167],3],[[71168,71232],2],[[71233,71235],2],[71236,2],[[71237,71247],3],[[71248,71257],2],[[71258,71263],3],[[71264,71276],2],[[71277,71295],3],[[71296,71351],2],[71352,2],[71353,2],[[71354,71359],3],[[71360,71369],2],[[71370,71423],3],[[71424,71449],2],[71450,2],[[71451,71452],3],[[71453,71467],2],[[71468,71471],3],[[71472,71481],2],[[71482,71487],2],[[71488,71494],2],[[71495,71679],3],[[71680,71738],2],[71739,2],[[71740,71839],3],[71840,1,"𑣀"],[71841,1,"𑣁"],[71842,1,"𑣂"],[71843,1,"𑣃"],[71844,1,"𑣄"],[71845,1,"𑣅"],[71846,1,"𑣆"],[71847,1,"𑣇"],[71848,1,"𑣈"],[71849,1,"𑣉"],[71850,1,"𑣊"],[71851,1,"𑣋"],[71852,1,"𑣌"],[71853,1,"𑣍"],[71854,1,"𑣎"],[71855,1,"𑣏"],[71856,1,"𑣐"],[71857,1,"𑣑"],[71858,1,"𑣒"],[71859,1,"𑣓"],[71860,1,"𑣔"],[71861,1,"𑣕"],[71862,1,"𑣖"],[71863,1,"𑣗"],[71864,1,"𑣘"],[71865,1,"𑣙"],[71866,1,"𑣚"],[71867,1,"𑣛"],[71868,1,"𑣜"],[71869,1,"𑣝"],[71870,1,"𑣞"],[71871,1,"𑣟"],[[71872,71913],2],[[71914,71922],2],[[71923,71934],3],[71935,2],[[71936,71942],2],[[71943,71944],3],[71945,2],[[71946,71947],3],[[71948,71955],2],[71956,3],[[71957,71958],2],[71959,3],[[71960,71989],2],[71990,3],[[71991,71992],2],[[71993,71994],3],[[71995,72003],2],[[72004,72006],2],[[72007,72015],3],[[72016,72025],2],[[72026,72095],3],[[72096,72103],2],[[72104,72105],3],[[72106,72151],2],[[72152,72153],3],[[72154,72161],2],[72162,2],[[72163,72164],2],[[72165,72191],3],[[72192,72254],2],[[72255,72262],2],[72263,2],[[72264,72271],3],[[72272,72323],2],[[72324,72325],2],[[72326,72345],2],[[72346,72348],2],[72349,2],[[72350,72354],2],[[72355,72367],3],[[72368,72383],2],[[72384,72440],2],[[72441,72447],3],[[72448,72457],2],[[72458,72703],3],[[72704,72712],2],[72713,3],[[72714,72758],2],[72759,3],[[72760,72768],2],[[72769,72773],2],[[72774,72783],3],[[72784,72793],2],[[72794,72812],2],[[72813,72815],3],[[72816,72817],2],[[72818,72847],2],[[72848,72849],3],[[72850,72871],2],[72872,3],[[72873,72886],2],[[72887,72959],3],[[72960,72966],2],[72967,3],[[72968,72969],2],[72970,3],[[72971,73014],2],[[73015,73017],3],[73018,2],[73019,3],[[73020,73021],2],[73022,3],[[73023,73031],2],[[73032,73039],3],[[73040,73049],2],[[73050,73055],3],[[73056,73061],2],[73062,3],[[73063,73064],2],[73065,3],[[73066,73102],2],[73103,3],[[73104,73105],2],[73106,3],[[73107,73112],2],[[73113,73119],3],[[73120,73129],2],[[73130,73439],3],[[73440,73462],2],[[73463,73464],2],[[73465,73471],3],[[73472,73488],2],[73489,3],[[73490,73530],2],[[73531,73533],3],[[73534,73538],2],[[73539,73551],2],[[73552,73561],2],[[73562,73647],3],[73648,2],[[73649,73663],3],[[73664,73713],2],[[73714,73726],3],[73727,2],[[73728,74606],2],[[74607,74648],2],[74649,2],[[74650,74751],3],[[74752,74850],2],[[74851,74862],2],[74863,3],[[74864,74867],2],[74868,2],[[74869,74879],3],[[74880,75075],2],[[75076,77711],3],[[77712,77808],2],[[77809,77810],2],[[77811,77823],3],[[77824,78894],2],[78895,2],[[78896,78904],3],[[78905,78911],3],[[78912,78933],2],[[78934,82943],3],[[82944,83526],2],[[83527,92159],3],[[92160,92728],2],[[92729,92735],3],[[92736,92766],2],[92767,3],[[92768,92777],2],[[92778,92781],3],[[92782,92783],2],[[92784,92862],2],[92863,3],[[92864,92873],2],[[92874,92879],3],[[92880,92909],2],[[92910,92911],3],[[92912,92916],2],[92917,2],[[92918,92927],3],[[92928,92982],2],[[92983,92991],2],[[92992,92995],2],[[92996,92997],2],[[92998,93007],3],[[93008,93017],2],[93018,3],[[93019,93025],2],[93026,3],[[93027,93047],2],[[93048,93052],3],[[93053,93071],2],[[93072,93759],3],[93760,1,"𖹠"],[93761,1,"𖹡"],[93762,1,"𖹢"],[93763,1,"𖹣"],[93764,1,"𖹤"],[93765,1,"𖹥"],[93766,1,"𖹦"],[93767,1,"𖹧"],[93768,1,"𖹨"],[93769,1,"𖹩"],[93770,1,"𖹪"],[93771,1,"𖹫"],[93772,1,"𖹬"],[93773,1,"𖹭"],[93774,1,"𖹮"],[93775,1,"𖹯"],[93776,1,"𖹰"],[93777,1,"𖹱"],[93778,1,"𖹲"],[93779,1,"𖹳"],[93780,1,"𖹴"],[93781,1,"𖹵"],[93782,1,"𖹶"],[93783,1,"𖹷"],[93784,1,"𖹸"],[93785,1,"𖹹"],[93786,1,"𖹺"],[93787,1,"𖹻"],[93788,1,"𖹼"],[93789,1,"𖹽"],[93790,1,"𖹾"],[93791,1,"𖹿"],[[93792,93823],2],[[93824,93850],2],[[93851,93951],3],[[93952,94020],2],[[94021,94026],2],[[94027,94030],3],[94031,2],[[94032,94078],2],[[94079,94087],2],[[94088,94094],3],[[94095,94111],2],[[94112,94175],3],[94176,2],[94177,2],[94178,2],[94179,2],[94180,2],[[94181,94191],3],[[94192,94193],2],[[94194,94207],3],[[94208,100332],2],[[100333,100337],2],[[100338,100343],2],[[100344,100351],3],[[100352,101106],2],[[101107,101589],2],[[101590,101631],3],[[101632,101640],2],[[101641,110575],3],[[110576,110579],2],[110580,3],[[110581,110587],2],[110588,3],[[110589,110590],2],[110591,3],[[110592,110593],2],[[110594,110878],2],[[110879,110882],2],[[110883,110897],3],[110898,2],[[110899,110927],3],[[110928,110930],2],[[110931,110932],3],[110933,2],[[110934,110947],3],[[110948,110951],2],[[110952,110959],3],[[110960,111355],2],[[111356,113663],3],[[113664,113770],2],[[113771,113775],3],[[113776,113788],2],[[113789,113791],3],[[113792,113800],2],[[113801,113807],3],[[113808,113817],2],[[113818,113819],3],[113820,2],[[113821,113822],2],[113823,2],[[113824,113827],7],[[113828,118527],3],[[118528,118573],2],[[118574,118575],3],[[118576,118598],2],[[118599,118607],3],[[118608,118723],2],[[118724,118783],3],[[118784,119029],2],[[119030,119039],3],[[119040,119078],2],[[119079,119080],3],[119081,2],[[119082,119133],2],[119134,1,"𝅗𝅥"],[119135,1,"𝅘𝅥"],[119136,1,"𝅘𝅥𝅮"],[119137,1,"𝅘𝅥𝅯"],[119138,1,"𝅘𝅥𝅰"],[119139,1,"𝅘𝅥𝅱"],[119140,1,"𝅘𝅥𝅲"],[[119141,119154],2],[[119155,119162],3],[[119163,119226],2],[119227,1,"𝆹𝅥"],[119228,1,"𝆺𝅥"],[119229,1,"𝆹𝅥𝅮"],[119230,1,"𝆺𝅥𝅮"],[119231,1,"𝆹𝅥𝅯"],[119232,1,"𝆺𝅥𝅯"],[[119233,119261],2],[[119262,119272],2],[[119273,119274],2],[[119275,119295],3],[[119296,119365],2],[[119366,119487],3],[[119488,119507],2],[[119508,119519],3],[[119520,119539],2],[[119540,119551],3],[[119552,119638],2],[[119639,119647],3],[[119648,119665],2],[[119666,119672],2],[[119673,119807],3],[119808,1,"a"],[119809,1,"b"],[119810,1,"c"],[119811,1,"d"],[119812,1,"e"],[119813,1,"f"],[119814,1,"g"],[119815,1,"h"],[119816,1,"i"],[119817,1,"j"],[119818,1,"k"],[119819,1,"l"],[119820,1,"m"],[119821,1,"n"],[119822,1,"o"],[119823,1,"p"],[119824,1,"q"],[119825,1,"r"],[119826,1,"s"],[119827,1,"t"],[119828,1,"u"],[119829,1,"v"],[119830,1,"w"],[119831,1,"x"],[119832,1,"y"],[119833,1,"z"],[119834,1,"a"],[119835,1,"b"],[119836,1,"c"],[119837,1,"d"],[119838,1,"e"],[119839,1,"f"],[119840,1,"g"],[119841,1,"h"],[119842,1,"i"],[119843,1,"j"],[119844,1,"k"],[119845,1,"l"],[119846,1,"m"],[119847,1,"n"],[119848,1,"o"],[119849,1,"p"],[119850,1,"q"],[119851,1,"r"],[119852,1,"s"],[119853,1,"t"],[119854,1,"u"],[119855,1,"v"],[119856,1,"w"],[119857,1,"x"],[119858,1,"y"],[119859,1,"z"],[119860,1,"a"],[119861,1,"b"],[119862,1,"c"],[119863,1,"d"],[119864,1,"e"],[119865,1,"f"],[119866,1,"g"],[119867,1,"h"],[119868,1,"i"],[119869,1,"j"],[119870,1,"k"],[119871,1,"l"],[119872,1,"m"],[119873,1,"n"],[119874,1,"o"],[119875,1,"p"],[119876,1,"q"],[119877,1,"r"],[119878,1,"s"],[119879,1,"t"],[119880,1,"u"],[119881,1,"v"],[119882,1,"w"],[119883,1,"x"],[119884,1,"y"],[119885,1,"z"],[119886,1,"a"],[119887,1,"b"],[119888,1,"c"],[119889,1,"d"],[119890,1,"e"],[119891,1,"f"],[119892,1,"g"],[119893,3],[119894,1,"i"],[119895,1,"j"],[119896,1,"k"],[119897,1,"l"],[119898,1,"m"],[119899,1,"n"],[119900,1,"o"],[119901,1,"p"],[119902,1,"q"],[119903,1,"r"],[119904,1,"s"],[119905,1,"t"],[119906,1,"u"],[119907,1,"v"],[119908,1,"w"],[119909,1,"x"],[119910,1,"y"],[119911,1,"z"],[119912,1,"a"],[119913,1,"b"],[119914,1,"c"],[119915,1,"d"],[119916,1,"e"],[119917,1,"f"],[119918,1,"g"],[119919,1,"h"],[119920,1,"i"],[119921,1,"j"],[119922,1,"k"],[119923,1,"l"],[119924,1,"m"],[119925,1,"n"],[119926,1,"o"],[119927,1,"p"],[119928,1,"q"],[119929,1,"r"],[119930,1,"s"],[119931,1,"t"],[119932,1,"u"],[119933,1,"v"],[119934,1,"w"],[119935,1,"x"],[119936,1,"y"],[119937,1,"z"],[119938,1,"a"],[119939,1,"b"],[119940,1,"c"],[119941,1,"d"],[119942,1,"e"],[119943,1,"f"],[119944,1,"g"],[119945,1,"h"],[119946,1,"i"],[119947,1,"j"],[119948,1,"k"],[119949,1,"l"],[119950,1,"m"],[119951,1,"n"],[119952,1,"o"],[119953,1,"p"],[119954,1,"q"],[119955,1,"r"],[119956,1,"s"],[119957,1,"t"],[119958,1,"u"],[119959,1,"v"],[119960,1,"w"],[119961,1,"x"],[119962,1,"y"],[119963,1,"z"],[119964,1,"a"],[119965,3],[119966,1,"c"],[119967,1,"d"],[[119968,119969],3],[119970,1,"g"],[[119971,119972],3],[119973,1,"j"],[119974,1,"k"],[[119975,119976],3],[119977,1,"n"],[119978,1,"o"],[119979,1,"p"],[119980,1,"q"],[119981,3],[119982,1,"s"],[119983,1,"t"],[119984,1,"u"],[119985,1,"v"],[119986,1,"w"],[119987,1,"x"],[119988,1,"y"],[119989,1,"z"],[119990,1,"a"],[119991,1,"b"],[119992,1,"c"],[119993,1,"d"],[119994,3],[119995,1,"f"],[119996,3],[119997,1,"h"],[119998,1,"i"],[119999,1,"j"],[12e4,1,"k"],[120001,1,"l"],[120002,1,"m"],[120003,1,"n"],[120004,3],[120005,1,"p"],[120006,1,"q"],[120007,1,"r"],[120008,1,"s"],[120009,1,"t"],[120010,1,"u"],[120011,1,"v"],[120012,1,"w"],[120013,1,"x"],[120014,1,"y"],[120015,1,"z"],[120016,1,"a"],[120017,1,"b"],[120018,1,"c"],[120019,1,"d"],[120020,1,"e"],[120021,1,"f"],[120022,1,"g"],[120023,1,"h"],[120024,1,"i"],[120025,1,"j"],[120026,1,"k"],[120027,1,"l"],[120028,1,"m"],[120029,1,"n"],[120030,1,"o"],[120031,1,"p"],[120032,1,"q"],[120033,1,"r"],[120034,1,"s"],[120035,1,"t"],[120036,1,"u"],[120037,1,"v"],[120038,1,"w"],[120039,1,"x"],[120040,1,"y"],[120041,1,"z"],[120042,1,"a"],[120043,1,"b"],[120044,1,"c"],[120045,1,"d"],[120046,1,"e"],[120047,1,"f"],[120048,1,"g"],[120049,1,"h"],[120050,1,"i"],[120051,1,"j"],[120052,1,"k"],[120053,1,"l"],[120054,1,"m"],[120055,1,"n"],[120056,1,"o"],[120057,1,"p"],[120058,1,"q"],[120059,1,"r"],[120060,1,"s"],[120061,1,"t"],[120062,1,"u"],[120063,1,"v"],[120064,1,"w"],[120065,1,"x"],[120066,1,"y"],[120067,1,"z"],[120068,1,"a"],[120069,1,"b"],[120070,3],[120071,1,"d"],[120072,1,"e"],[120073,1,"f"],[120074,1,"g"],[[120075,120076],3],[120077,1,"j"],[120078,1,"k"],[120079,1,"l"],[120080,1,"m"],[120081,1,"n"],[120082,1,"o"],[120083,1,"p"],[120084,1,"q"],[120085,3],[120086,1,"s"],[120087,1,"t"],[120088,1,"u"],[120089,1,"v"],[120090,1,"w"],[120091,1,"x"],[120092,1,"y"],[120093,3],[120094,1,"a"],[120095,1,"b"],[120096,1,"c"],[120097,1,"d"],[120098,1,"e"],[120099,1,"f"],[120100,1,"g"],[120101,1,"h"],[120102,1,"i"],[120103,1,"j"],[120104,1,"k"],[120105,1,"l"],[120106,1,"m"],[120107,1,"n"],[120108,1,"o"],[120109,1,"p"],[120110,1,"q"],[120111,1,"r"],[120112,1,"s"],[120113,1,"t"],[120114,1,"u"],[120115,1,"v"],[120116,1,"w"],[120117,1,"x"],[120118,1,"y"],[120119,1,"z"],[120120,1,"a"],[120121,1,"b"],[120122,3],[120123,1,"d"],[120124,1,"e"],[120125,1,"f"],[120126,1,"g"],[120127,3],[120128,1,"i"],[120129,1,"j"],[120130,1,"k"],[120131,1,"l"],[120132,1,"m"],[120133,3],[120134,1,"o"],[[120135,120137],3],[120138,1,"s"],[120139,1,"t"],[120140,1,"u"],[120141,1,"v"],[120142,1,"w"],[120143,1,"x"],[120144,1,"y"],[120145,3],[120146,1,"a"],[120147,1,"b"],[120148,1,"c"],[120149,1,"d"],[120150,1,"e"],[120151,1,"f"],[120152,1,"g"],[120153,1,"h"],[120154,1,"i"],[120155,1,"j"],[120156,1,"k"],[120157,1,"l"],[120158,1,"m"],[120159,1,"n"],[120160,1,"o"],[120161,1,"p"],[120162,1,"q"],[120163,1,"r"],[120164,1,"s"],[120165,1,"t"],[120166,1,"u"],[120167,1,"v"],[120168,1,"w"],[120169,1,"x"],[120170,1,"y"],[120171,1,"z"],[120172,1,"a"],[120173,1,"b"],[120174,1,"c"],[120175,1,"d"],[120176,1,"e"],[120177,1,"f"],[120178,1,"g"],[120179,1,"h"],[120180,1,"i"],[120181,1,"j"],[120182,1,"k"],[120183,1,"l"],[120184,1,"m"],[120185,1,"n"],[120186,1,"o"],[120187,1,"p"],[120188,1,"q"],[120189,1,"r"],[120190,1,"s"],[120191,1,"t"],[120192,1,"u"],[120193,1,"v"],[120194,1,"w"],[120195,1,"x"],[120196,1,"y"],[120197,1,"z"],[120198,1,"a"],[120199,1,"b"],[120200,1,"c"],[120201,1,"d"],[120202,1,"e"],[120203,1,"f"],[120204,1,"g"],[120205,1,"h"],[120206,1,"i"],[120207,1,"j"],[120208,1,"k"],[120209,1,"l"],[120210,1,"m"],[120211,1,"n"],[120212,1,"o"],[120213,1,"p"],[120214,1,"q"],[120215,1,"r"],[120216,1,"s"],[120217,1,"t"],[120218,1,"u"],[120219,1,"v"],[120220,1,"w"],[120221,1,"x"],[120222,1,"y"],[120223,1,"z"],[120224,1,"a"],[120225,1,"b"],[120226,1,"c"],[120227,1,"d"],[120228,1,"e"],[120229,1,"f"],[120230,1,"g"],[120231,1,"h"],[120232,1,"i"],[120233,1,"j"],[120234,1,"k"],[120235,1,"l"],[120236,1,"m"],[120237,1,"n"],[120238,1,"o"],[120239,1,"p"],[120240,1,"q"],[120241,1,"r"],[120242,1,"s"],[120243,1,"t"],[120244,1,"u"],[120245,1,"v"],[120246,1,"w"],[120247,1,"x"],[120248,1,"y"],[120249,1,"z"],[120250,1,"a"],[120251,1,"b"],[120252,1,"c"],[120253,1,"d"],[120254,1,"e"],[120255,1,"f"],[120256,1,"g"],[120257,1,"h"],[120258,1,"i"],[120259,1,"j"],[120260,1,"k"],[120261,1,"l"],[120262,1,"m"],[120263,1,"n"],[120264,1,"o"],[120265,1,"p"],[120266,1,"q"],[120267,1,"r"],[120268,1,"s"],[120269,1,"t"],[120270,1,"u"],[120271,1,"v"],[120272,1,"w"],[120273,1,"x"],[120274,1,"y"],[120275,1,"z"],[120276,1,"a"],[120277,1,"b"],[120278,1,"c"],[120279,1,"d"],[120280,1,"e"],[120281,1,"f"],[120282,1,"g"],[120283,1,"h"],[120284,1,"i"],[120285,1,"j"],[120286,1,"k"],[120287,1,"l"],[120288,1,"m"],[120289,1,"n"],[120290,1,"o"],[120291,1,"p"],[120292,1,"q"],[120293,1,"r"],[120294,1,"s"],[120295,1,"t"],[120296,1,"u"],[120297,1,"v"],[120298,1,"w"],[120299,1,"x"],[120300,1,"y"],[120301,1,"z"],[120302,1,"a"],[120303,1,"b"],[120304,1,"c"],[120305,1,"d"],[120306,1,"e"],[120307,1,"f"],[120308,1,"g"],[120309,1,"h"],[120310,1,"i"],[120311,1,"j"],[120312,1,"k"],[120313,1,"l"],[120314,1,"m"],[120315,1,"n"],[120316,1,"o"],[120317,1,"p"],[120318,1,"q"],[120319,1,"r"],[120320,1,"s"],[120321,1,"t"],[120322,1,"u"],[120323,1,"v"],[120324,1,"w"],[120325,1,"x"],[120326,1,"y"],[120327,1,"z"],[120328,1,"a"],[120329,1,"b"],[120330,1,"c"],[120331,1,"d"],[120332,1,"e"],[120333,1,"f"],[120334,1,"g"],[120335,1,"h"],[120336,1,"i"],[120337,1,"j"],[120338,1,"k"],[120339,1,"l"],[120340,1,"m"],[120341,1,"n"],[120342,1,"o"],[120343,1,"p"],[120344,1,"q"],[120345,1,"r"],[120346,1,"s"],[120347,1,"t"],[120348,1,"u"],[120349,1,"v"],[120350,1,"w"],[120351,1,"x"],[120352,1,"y"],[120353,1,"z"],[120354,1,"a"],[120355,1,"b"],[120356,1,"c"],[120357,1,"d"],[120358,1,"e"],[120359,1,"f"],[120360,1,"g"],[120361,1,"h"],[120362,1,"i"],[120363,1,"j"],[120364,1,"k"],[120365,1,"l"],[120366,1,"m"],[120367,1,"n"],[120368,1,"o"],[120369,1,"p"],[120370,1,"q"],[120371,1,"r"],[120372,1,"s"],[120373,1,"t"],[120374,1,"u"],[120375,1,"v"],[120376,1,"w"],[120377,1,"x"],[120378,1,"y"],[120379,1,"z"],[120380,1,"a"],[120381,1,"b"],[120382,1,"c"],[120383,1,"d"],[120384,1,"e"],[120385,1,"f"],[120386,1,"g"],[120387,1,"h"],[120388,1,"i"],[120389,1,"j"],[120390,1,"k"],[120391,1,"l"],[120392,1,"m"],[120393,1,"n"],[120394,1,"o"],[120395,1,"p"],[120396,1,"q"],[120397,1,"r"],[120398,1,"s"],[120399,1,"t"],[120400,1,"u"],[120401,1,"v"],[120402,1,"w"],[120403,1,"x"],[120404,1,"y"],[120405,1,"z"],[120406,1,"a"],[120407,1,"b"],[120408,1,"c"],[120409,1,"d"],[120410,1,"e"],[120411,1,"f"],[120412,1,"g"],[120413,1,"h"],[120414,1,"i"],[120415,1,"j"],[120416,1,"k"],[120417,1,"l"],[120418,1,"m"],[120419,1,"n"],[120420,1,"o"],[120421,1,"p"],[120422,1,"q"],[120423,1,"r"],[120424,1,"s"],[120425,1,"t"],[120426,1,"u"],[120427,1,"v"],[120428,1,"w"],[120429,1,"x"],[120430,1,"y"],[120431,1,"z"],[120432,1,"a"],[120433,1,"b"],[120434,1,"c"],[120435,1,"d"],[120436,1,"e"],[120437,1,"f"],[120438,1,"g"],[120439,1,"h"],[120440,1,"i"],[120441,1,"j"],[120442,1,"k"],[120443,1,"l"],[120444,1,"m"],[120445,1,"n"],[120446,1,"o"],[120447,1,"p"],[120448,1,"q"],[120449,1,"r"],[120450,1,"s"],[120451,1,"t"],[120452,1,"u"],[120453,1,"v"],[120454,1,"w"],[120455,1,"x"],[120456,1,"y"],[120457,1,"z"],[120458,1,"a"],[120459,1,"b"],[120460,1,"c"],[120461,1,"d"],[120462,1,"e"],[120463,1,"f"],[120464,1,"g"],[120465,1,"h"],[120466,1,"i"],[120467,1,"j"],[120468,1,"k"],[120469,1,"l"],[120470,1,"m"],[120471,1,"n"],[120472,1,"o"],[120473,1,"p"],[120474,1,"q"],[120475,1,"r"],[120476,1,"s"],[120477,1,"t"],[120478,1,"u"],[120479,1,"v"],[120480,1,"w"],[120481,1,"x"],[120482,1,"y"],[120483,1,"z"],[120484,1,"ı"],[120485,1,"ȷ"],[[120486,120487],3],[120488,1,"α"],[120489,1,"β"],[120490,1,"γ"],[120491,1,"δ"],[120492,1,"ε"],[120493,1,"ζ"],[120494,1,"η"],[120495,1,"θ"],[120496,1,"ι"],[120497,1,"κ"],[120498,1,"λ"],[120499,1,"μ"],[120500,1,"ν"],[120501,1,"ξ"],[120502,1,"ο"],[120503,1,"π"],[120504,1,"ρ"],[120505,1,"θ"],[120506,1,"σ"],[120507,1,"τ"],[120508,1,"υ"],[120509,1,"φ"],[120510,1,"χ"],[120511,1,"ψ"],[120512,1,"ω"],[120513,1,"∇"],[120514,1,"α"],[120515,1,"β"],[120516,1,"γ"],[120517,1,"δ"],[120518,1,"ε"],[120519,1,"ζ"],[120520,1,"η"],[120521,1,"θ"],[120522,1,"ι"],[120523,1,"κ"],[120524,1,"λ"],[120525,1,"μ"],[120526,1,"ν"],[120527,1,"ξ"],[120528,1,"ο"],[120529,1,"π"],[120530,1,"ρ"],[[120531,120532],1,"σ"],[120533,1,"τ"],[120534,1,"υ"],[120535,1,"φ"],[120536,1,"χ"],[120537,1,"ψ"],[120538,1,"ω"],[120539,1,"∂"],[120540,1,"ε"],[120541,1,"θ"],[120542,1,"κ"],[120543,1,"φ"],[120544,1,"ρ"],[120545,1,"π"],[120546,1,"α"],[120547,1,"β"],[120548,1,"γ"],[120549,1,"δ"],[120550,1,"ε"],[120551,1,"ζ"],[120552,1,"η"],[120553,1,"θ"],[120554,1,"ι"],[120555,1,"κ"],[120556,1,"λ"],[120557,1,"μ"],[120558,1,"ν"],[120559,1,"ξ"],[120560,1,"ο"],[120561,1,"π"],[120562,1,"ρ"],[120563,1,"θ"],[120564,1,"σ"],[120565,1,"τ"],[120566,1,"υ"],[120567,1,"φ"],[120568,1,"χ"],[120569,1,"ψ"],[120570,1,"ω"],[120571,1,"∇"],[120572,1,"α"],[120573,1,"β"],[120574,1,"γ"],[120575,1,"δ"],[120576,1,"ε"],[120577,1,"ζ"],[120578,1,"η"],[120579,1,"θ"],[120580,1,"ι"],[120581,1,"κ"],[120582,1,"λ"],[120583,1,"μ"],[120584,1,"ν"],[120585,1,"ξ"],[120586,1,"ο"],[120587,1,"π"],[120588,1,"ρ"],[[120589,120590],1,"σ"],[120591,1,"τ"],[120592,1,"υ"],[120593,1,"φ"],[120594,1,"χ"],[120595,1,"ψ"],[120596,1,"ω"],[120597,1,"∂"],[120598,1,"ε"],[120599,1,"θ"],[120600,1,"κ"],[120601,1,"φ"],[120602,1,"ρ"],[120603,1,"π"],[120604,1,"α"],[120605,1,"β"],[120606,1,"γ"],[120607,1,"δ"],[120608,1,"ε"],[120609,1,"ζ"],[120610,1,"η"],[120611,1,"θ"],[120612,1,"ι"],[120613,1,"κ"],[120614,1,"λ"],[120615,1,"μ"],[120616,1,"ν"],[120617,1,"ξ"],[120618,1,"ο"],[120619,1,"π"],[120620,1,"ρ"],[120621,1,"θ"],[120622,1,"σ"],[120623,1,"τ"],[120624,1,"υ"],[120625,1,"φ"],[120626,1,"χ"],[120627,1,"ψ"],[120628,1,"ω"],[120629,1,"∇"],[120630,1,"α"],[120631,1,"β"],[120632,1,"γ"],[120633,1,"δ"],[120634,1,"ε"],[120635,1,"ζ"],[120636,1,"η"],[120637,1,"θ"],[120638,1,"ι"],[120639,1,"κ"],[120640,1,"λ"],[120641,1,"μ"],[120642,1,"ν"],[120643,1,"ξ"],[120644,1,"ο"],[120645,1,"π"],[120646,1,"ρ"],[[120647,120648],1,"σ"],[120649,1,"τ"],[120650,1,"υ"],[120651,1,"φ"],[120652,1,"χ"],[120653,1,"ψ"],[120654,1,"ω"],[120655,1,"∂"],[120656,1,"ε"],[120657,1,"θ"],[120658,1,"κ"],[120659,1,"φ"],[120660,1,"ρ"],[120661,1,"π"],[120662,1,"α"],[120663,1,"β"],[120664,1,"γ"],[120665,1,"δ"],[120666,1,"ε"],[120667,1,"ζ"],[120668,1,"η"],[120669,1,"θ"],[120670,1,"ι"],[120671,1,"κ"],[120672,1,"λ"],[120673,1,"μ"],[120674,1,"ν"],[120675,1,"ξ"],[120676,1,"ο"],[120677,1,"π"],[120678,1,"ρ"],[120679,1,"θ"],[120680,1,"σ"],[120681,1,"τ"],[120682,1,"υ"],[120683,1,"φ"],[120684,1,"χ"],[120685,1,"ψ"],[120686,1,"ω"],[120687,1,"∇"],[120688,1,"α"],[120689,1,"β"],[120690,1,"γ"],[120691,1,"δ"],[120692,1,"ε"],[120693,1,"ζ"],[120694,1,"η"],[120695,1,"θ"],[120696,1,"ι"],[120697,1,"κ"],[120698,1,"λ"],[120699,1,"μ"],[120700,1,"ν"],[120701,1,"ξ"],[120702,1,"ο"],[120703,1,"π"],[120704,1,"ρ"],[[120705,120706],1,"σ"],[120707,1,"τ"],[120708,1,"υ"],[120709,1,"φ"],[120710,1,"χ"],[120711,1,"ψ"],[120712,1,"ω"],[120713,1,"∂"],[120714,1,"ε"],[120715,1,"θ"],[120716,1,"κ"],[120717,1,"φ"],[120718,1,"ρ"],[120719,1,"π"],[120720,1,"α"],[120721,1,"β"],[120722,1,"γ"],[120723,1,"δ"],[120724,1,"ε"],[120725,1,"ζ"],[120726,1,"η"],[120727,1,"θ"],[120728,1,"ι"],[120729,1,"κ"],[120730,1,"λ"],[120731,1,"μ"],[120732,1,"ν"],[120733,1,"ξ"],[120734,1,"ο"],[120735,1,"π"],[120736,1,"ρ"],[120737,1,"θ"],[120738,1,"σ"],[120739,1,"τ"],[120740,1,"υ"],[120741,1,"φ"],[120742,1,"χ"],[120743,1,"ψ"],[120744,1,"ω"],[120745,1,"∇"],[120746,1,"α"],[120747,1,"β"],[120748,1,"γ"],[120749,1,"δ"],[120750,1,"ε"],[120751,1,"ζ"],[120752,1,"η"],[120753,1,"θ"],[120754,1,"ι"],[120755,1,"κ"],[120756,1,"λ"],[120757,1,"μ"],[120758,1,"ν"],[120759,1,"ξ"],[120760,1,"ο"],[120761,1,"π"],[120762,1,"ρ"],[[120763,120764],1,"σ"],[120765,1,"τ"],[120766,1,"υ"],[120767,1,"φ"],[120768,1,"χ"],[120769,1,"ψ"],[120770,1,"ω"],[120771,1,"∂"],[120772,1,"ε"],[120773,1,"θ"],[120774,1,"κ"],[120775,1,"φ"],[120776,1,"ρ"],[120777,1,"π"],[[120778,120779],1,"ϝ"],[[120780,120781],3],[120782,1,"0"],[120783,1,"1"],[120784,1,"2"],[120785,1,"3"],[120786,1,"4"],[120787,1,"5"],[120788,1,"6"],[120789,1,"7"],[120790,1,"8"],[120791,1,"9"],[120792,1,"0"],[120793,1,"1"],[120794,1,"2"],[120795,1,"3"],[120796,1,"4"],[120797,1,"5"],[120798,1,"6"],[120799,1,"7"],[120800,1,"8"],[120801,1,"9"],[120802,1,"0"],[120803,1,"1"],[120804,1,"2"],[120805,1,"3"],[120806,1,"4"],[120807,1,"5"],[120808,1,"6"],[120809,1,"7"],[120810,1,"8"],[120811,1,"9"],[120812,1,"0"],[120813,1,"1"],[120814,1,"2"],[120815,1,"3"],[120816,1,"4"],[120817,1,"5"],[120818,1,"6"],[120819,1,"7"],[120820,1,"8"],[120821,1,"9"],[120822,1,"0"],[120823,1,"1"],[120824,1,"2"],[120825,1,"3"],[120826,1,"4"],[120827,1,"5"],[120828,1,"6"],[120829,1,"7"],[120830,1,"8"],[120831,1,"9"],[[120832,121343],2],[[121344,121398],2],[[121399,121402],2],[[121403,121452],2],[[121453,121460],2],[121461,2],[[121462,121475],2],[121476,2],[[121477,121483],2],[[121484,121498],3],[[121499,121503],2],[121504,3],[[121505,121519],2],[[121520,122623],3],[[122624,122654],2],[[122655,122660],3],[[122661,122666],2],[[122667,122879],3],[[122880,122886],2],[122887,3],[[122888,122904],2],[[122905,122906],3],[[122907,122913],2],[122914,3],[[122915,122916],2],[122917,3],[[122918,122922],2],[[122923,122927],3],[122928,1,"а"],[122929,1,"б"],[122930,1,"в"],[122931,1,"г"],[122932,1,"д"],[122933,1,"е"],[122934,1,"ж"],[122935,1,"з"],[122936,1,"и"],[122937,1,"к"],[122938,1,"л"],[122939,1,"м"],[122940,1,"о"],[122941,1,"п"],[122942,1,"р"],[122943,1,"с"],[122944,1,"т"],[122945,1,"у"],[122946,1,"ф"],[122947,1,"х"],[122948,1,"ц"],[122949,1,"ч"],[122950,1,"ш"],[122951,1,"ы"],[122952,1,"э"],[122953,1,"ю"],[122954,1,"ꚉ"],[122955,1,"ә"],[122956,1,"і"],[122957,1,"ј"],[122958,1,"ө"],[122959,1,"ү"],[122960,1,"ӏ"],[122961,1,"а"],[122962,1,"б"],[122963,1,"в"],[122964,1,"г"],[122965,1,"д"],[122966,1,"е"],[122967,1,"ж"],[122968,1,"з"],[122969,1,"и"],[122970,1,"к"],[122971,1,"л"],[122972,1,"о"],[122973,1,"п"],[122974,1,"с"],[122975,1,"у"],[122976,1,"ф"],[122977,1,"х"],[122978,1,"ц"],[122979,1,"ч"],[122980,1,"ш"],[122981,1,"ъ"],[122982,1,"ы"],[122983,1,"ґ"],[122984,1,"і"],[122985,1,"ѕ"],[122986,1,"џ"],[122987,1,"ҫ"],[122988,1,"ꙑ"],[122989,1,"ұ"],[[122990,123022],3],[123023,2],[[123024,123135],3],[[123136,123180],2],[[123181,123183],3],[[123184,123197],2],[[123198,123199],3],[[123200,123209],2],[[123210,123213],3],[123214,2],[123215,2],[[123216,123535],3],[[123536,123566],2],[[123567,123583],3],[[123584,123641],2],[[123642,123646],3],[123647,2],[[123648,124111],3],[[124112,124153],2],[[124154,124895],3],[[124896,124902],2],[124903,3],[[124904,124907],2],[124908,3],[[124909,124910],2],[124911,3],[[124912,124926],2],[124927,3],[[124928,125124],2],[[125125,125126],3],[[125127,125135],2],[[125136,125142],2],[[125143,125183],3],[125184,1,"𞤢"],[125185,1,"𞤣"],[125186,1,"𞤤"],[125187,1,"𞤥"],[125188,1,"𞤦"],[125189,1,"𞤧"],[125190,1,"𞤨"],[125191,1,"𞤩"],[125192,1,"𞤪"],[125193,1,"𞤫"],[125194,1,"𞤬"],[125195,1,"𞤭"],[125196,1,"𞤮"],[125197,1,"𞤯"],[125198,1,"𞤰"],[125199,1,"𞤱"],[125200,1,"𞤲"],[125201,1,"𞤳"],[125202,1,"𞤴"],[125203,1,"𞤵"],[125204,1,"𞤶"],[125205,1,"𞤷"],[125206,1,"𞤸"],[125207,1,"𞤹"],[125208,1,"𞤺"],[125209,1,"𞤻"],[125210,1,"𞤼"],[125211,1,"𞤽"],[125212,1,"𞤾"],[125213,1,"𞤿"],[125214,1,"𞥀"],[125215,1,"𞥁"],[125216,1,"𞥂"],[125217,1,"𞥃"],[[125218,125258],2],[125259,2],[[125260,125263],3],[[125264,125273],2],[[125274,125277],3],[[125278,125279],2],[[125280,126064],3],[[126065,126132],2],[[126133,126208],3],[[126209,126269],2],[[126270,126463],3],[126464,1,"ا"],[126465,1,"ب"],[126466,1,"ج"],[126467,1,"د"],[126468,3],[126469,1,"و"],[126470,1,"ز"],[126471,1,"ح"],[126472,1,"ط"],[126473,1,"ي"],[126474,1,"ك"],[126475,1,"ل"],[126476,1,"م"],[126477,1,"ن"],[126478,1,"س"],[126479,1,"ع"],[126480,1,"ف"],[126481,1,"ص"],[126482,1,"ق"],[126483,1,"ر"],[126484,1,"ش"],[126485,1,"ت"],[126486,1,"ث"],[126487,1,"خ"],[126488,1,"ذ"],[126489,1,"ض"],[126490,1,"ظ"],[126491,1,"غ"],[126492,1,"ٮ"],[126493,1,"ں"],[126494,1,"ڡ"],[126495,1,"ٯ"],[126496,3],[126497,1,"ب"],[126498,1,"ج"],[126499,3],[126500,1,"ه"],[[126501,126502],3],[126503,1,"ح"],[126504,3],[126505,1,"ي"],[126506,1,"ك"],[126507,1,"ل"],[126508,1,"م"],[126509,1,"ن"],[126510,1,"س"],[126511,1,"ع"],[126512,1,"ف"],[126513,1,"ص"],[126514,1,"ق"],[126515,3],[126516,1,"ش"],[126517,1,"ت"],[126518,1,"ث"],[126519,1,"خ"],[126520,3],[126521,1,"ض"],[126522,3],[126523,1,"غ"],[[126524,126529],3],[126530,1,"ج"],[[126531,126534],3],[126535,1,"ح"],[126536,3],[126537,1,"ي"],[126538,3],[126539,1,"ل"],[126540,3],[126541,1,"ن"],[126542,1,"س"],[126543,1,"ع"],[126544,3],[126545,1,"ص"],[126546,1,"ق"],[126547,3],[126548,1,"ش"],[[126549,126550],3],[126551,1,"خ"],[126552,3],[126553,1,"ض"],[126554,3],[126555,1,"غ"],[126556,3],[126557,1,"ں"],[126558,3],[126559,1,"ٯ"],[126560,3],[126561,1,"ب"],[126562,1,"ج"],[126563,3],[126564,1,"ه"],[[126565,126566],3],[126567,1,"ح"],[126568,1,"ط"],[126569,1,"ي"],[126570,1,"ك"],[126571,3],[126572,1,"م"],[126573,1,"ن"],[126574,1,"س"],[126575,1,"ع"],[126576,1,"ف"],[126577,1,"ص"],[126578,1,"ق"],[126579,3],[126580,1,"ش"],[126581,1,"ت"],[126582,1,"ث"],[126583,1,"خ"],[126584,3],[126585,1,"ض"],[126586,1,"ظ"],[126587,1,"غ"],[126588,1,"ٮ"],[126589,3],[126590,1,"ڡ"],[126591,3],[126592,1,"ا"],[126593,1,"ب"],[126594,1,"ج"],[126595,1,"د"],[126596,1,"ه"],[126597,1,"و"],[126598,1,"ز"],[126599,1,"ح"],[126600,1,"ط"],[126601,1,"ي"],[126602,3],[126603,1,"ل"],[126604,1,"م"],[126605,1,"ن"],[126606,1,"س"],[126607,1,"ع"],[126608,1,"ف"],[126609,1,"ص"],[126610,1,"ق"],[126611,1,"ر"],[126612,1,"ش"],[126613,1,"ت"],[126614,1,"ث"],[126615,1,"خ"],[126616,1,"ذ"],[126617,1,"ض"],[126618,1,"ظ"],[126619,1,"غ"],[[126620,126624],3],[126625,1,"ب"],[126626,1,"ج"],[126627,1,"د"],[126628,3],[126629,1,"و"],[126630,1,"ز"],[126631,1,"ح"],[126632,1,"ط"],[126633,1,"ي"],[126634,3],[126635,1,"ل"],[126636,1,"م"],[126637,1,"ن"],[126638,1,"س"],[126639,1,"ع"],[126640,1,"ف"],[126641,1,"ص"],[126642,1,"ق"],[126643,1,"ر"],[126644,1,"ش"],[126645,1,"ت"],[126646,1,"ث"],[126647,1,"خ"],[126648,1,"ذ"],[126649,1,"ض"],[126650,1,"ظ"],[126651,1,"غ"],[[126652,126703],3],[[126704,126705],2],[[126706,126975],3],[[126976,127019],2],[[127020,127023],3],[[127024,127123],2],[[127124,127135],3],[[127136,127150],2],[[127151,127152],3],[[127153,127166],2],[127167,2],[127168,3],[[127169,127183],2],[127184,3],[[127185,127199],2],[[127200,127221],2],[[127222,127231],3],[127232,3],[127233,5,"0,"],[127234,5,"1,"],[127235,5,"2,"],[127236,5,"3,"],[127237,5,"4,"],[127238,5,"5,"],[127239,5,"6,"],[127240,5,"7,"],[127241,5,"8,"],[127242,5,"9,"],[[127243,127244],2],[[127245,127247],2],[127248,5,"(a)"],[127249,5,"(b)"],[127250,5,"(c)"],[127251,5,"(d)"],[127252,5,"(e)"],[127253,5,"(f)"],[127254,5,"(g)"],[127255,5,"(h)"],[127256,5,"(i)"],[127257,5,"(j)"],[127258,5,"(k)"],[127259,5,"(l)"],[127260,5,"(m)"],[127261,5,"(n)"],[127262,5,"(o)"],[127263,5,"(p)"],[127264,5,"(q)"],[127265,5,"(r)"],[127266,5,"(s)"],[127267,5,"(t)"],[127268,5,"(u)"],[127269,5,"(v)"],[127270,5,"(w)"],[127271,5,"(x)"],[127272,5,"(y)"],[127273,5,"(z)"],[127274,1,"〔s〕"],[127275,1,"c"],[127276,1,"r"],[127277,1,"cd"],[127278,1,"wz"],[127279,2],[127280,1,"a"],[127281,1,"b"],[127282,1,"c"],[127283,1,"d"],[127284,1,"e"],[127285,1,"f"],[127286,1,"g"],[127287,1,"h"],[127288,1,"i"],[127289,1,"j"],[127290,1,"k"],[127291,1,"l"],[127292,1,"m"],[127293,1,"n"],[127294,1,"o"],[127295,1,"p"],[127296,1,"q"],[127297,1,"r"],[127298,1,"s"],[127299,1,"t"],[127300,1,"u"],[127301,1,"v"],[127302,1,"w"],[127303,1,"x"],[127304,1,"y"],[127305,1,"z"],[127306,1,"hv"],[127307,1,"mv"],[127308,1,"sd"],[127309,1,"ss"],[127310,1,"ppv"],[127311,1,"wc"],[[127312,127318],2],[127319,2],[[127320,127326],2],[127327,2],[[127328,127337],2],[127338,1,"mc"],[127339,1,"md"],[127340,1,"mr"],[[127341,127343],2],[[127344,127352],2],[127353,2],[127354,2],[[127355,127356],2],[[127357,127358],2],[127359,2],[[127360,127369],2],[[127370,127373],2],[[127374,127375],2],[127376,1,"dj"],[[127377,127386],2],[[127387,127404],2],[127405,2],[[127406,127461],3],[[127462,127487],2],[127488,1,"ほか"],[127489,1,"ココ"],[127490,1,"サ"],[[127491,127503],3],[127504,1,"手"],[127505,1,"字"],[127506,1,"双"],[127507,1,"デ"],[127508,1,"二"],[127509,1,"多"],[127510,1,"解"],[127511,1,"天"],[127512,1,"交"],[127513,1,"映"],[127514,1,"無"],[127515,1,"料"],[127516,1,"前"],[127517,1,"後"],[127518,1,"再"],[127519,1,"新"],[127520,1,"初"],[127521,1,"終"],[127522,1,"生"],[127523,1,"販"],[127524,1,"声"],[127525,1,"吹"],[127526,1,"演"],[127527,1,"投"],[127528,1,"捕"],[127529,1,"一"],[127530,1,"三"],[127531,1,"遊"],[127532,1,"左"],[127533,1,"中"],[127534,1,"右"],[127535,1,"指"],[127536,1,"走"],[127537,1,"打"],[127538,1,"禁"],[127539,1,"空"],[127540,1,"合"],[127541,1,"満"],[127542,1,"有"],[127543,1,"月"],[127544,1,"申"],[127545,1,"割"],[127546,1,"営"],[127547,1,"配"],[[127548,127551],3],[127552,1,"〔本〕"],[127553,1,"〔三〕"],[127554,1,"〔二〕"],[127555,1,"〔安〕"],[127556,1,"〔点〕"],[127557,1,"〔打〕"],[127558,1,"〔盗〕"],[127559,1,"〔勝〕"],[127560,1,"〔敗〕"],[[127561,127567],3],[127568,1,"得"],[127569,1,"可"],[[127570,127583],3],[[127584,127589],2],[[127590,127743],3],[[127744,127776],2],[[127777,127788],2],[[127789,127791],2],[[127792,127797],2],[127798,2],[[127799,127868],2],[127869,2],[[127870,127871],2],[[127872,127891],2],[[127892,127903],2],[[127904,127940],2],[127941,2],[[127942,127946],2],[[127947,127950],2],[[127951,127955],2],[[127956,127967],2],[[127968,127984],2],[[127985,127991],2],[[127992,127999],2],[[128e3,128062],2],[128063,2],[128064,2],[128065,2],[[128066,128247],2],[128248,2],[[128249,128252],2],[[128253,128254],2],[128255,2],[[128256,128317],2],[[128318,128319],2],[[128320,128323],2],[[128324,128330],2],[[128331,128335],2],[[128336,128359],2],[[128360,128377],2],[128378,2],[[128379,128419],2],[128420,2],[[128421,128506],2],[[128507,128511],2],[128512,2],[[128513,128528],2],[128529,2],[[128530,128532],2],[128533,2],[128534,2],[128535,2],[128536,2],[128537,2],[128538,2],[128539,2],[[128540,128542],2],[128543,2],[[128544,128549],2],[[128550,128551],2],[[128552,128555],2],[128556,2],[128557,2],[[128558,128559],2],[[128560,128563],2],[128564,2],[[128565,128576],2],[[128577,128578],2],[[128579,128580],2],[[128581,128591],2],[[128592,128639],2],[[128640,128709],2],[[128710,128719],2],[128720,2],[[128721,128722],2],[[128723,128724],2],[128725,2],[[128726,128727],2],[[128728,128731],3],[128732,2],[[128733,128735],2],[[128736,128748],2],[[128749,128751],3],[[128752,128755],2],[[128756,128758],2],[[128759,128760],2],[128761,2],[128762,2],[[128763,128764],2],[[128765,128767],3],[[128768,128883],2],[[128884,128886],2],[[128887,128890],3],[[128891,128895],2],[[128896,128980],2],[[128981,128984],2],[128985,2],[[128986,128991],3],[[128992,129003],2],[[129004,129007],3],[129008,2],[[129009,129023],3],[[129024,129035],2],[[129036,129039],3],[[129040,129095],2],[[129096,129103],3],[[129104,129113],2],[[129114,129119],3],[[129120,129159],2],[[129160,129167],3],[[129168,129197],2],[[129198,129199],3],[[129200,129201],2],[[129202,129279],3],[[129280,129291],2],[129292,2],[[129293,129295],2],[[129296,129304],2],[[129305,129310],2],[129311,2],[[129312,129319],2],[[129320,129327],2],[129328,2],[[129329,129330],2],[[129331,129342],2],[129343,2],[[129344,129355],2],[129356,2],[[129357,129359],2],[[129360,129374],2],[[129375,129387],2],[[129388,129392],2],[129393,2],[129394,2],[[129395,129398],2],[[129399,129400],2],[129401,2],[129402,2],[129403,2],[[129404,129407],2],[[129408,129412],2],[[129413,129425],2],[[129426,129431],2],[[129432,129442],2],[[129443,129444],2],[[129445,129450],2],[[129451,129453],2],[[129454,129455],2],[[129456,129465],2],[[129466,129471],2],[129472,2],[[129473,129474],2],[[129475,129482],2],[129483,2],[129484,2],[[129485,129487],2],[[129488,129510],2],[[129511,129535],2],[[129536,129619],2],[[129620,129631],3],[[129632,129645],2],[[129646,129647],3],[[129648,129651],2],[129652,2],[[129653,129655],2],[[129656,129658],2],[[129659,129660],2],[[129661,129663],3],[[129664,129666],2],[[129667,129670],2],[[129671,129672],2],[[129673,129679],3],[[129680,129685],2],[[129686,129704],2],[[129705,129708],2],[[129709,129711],2],[[129712,129718],2],[[129719,129722],2],[[129723,129725],2],[129726,3],[129727,2],[[129728,129730],2],[[129731,129733],2],[[129734,129741],3],[[129742,129743],2],[[129744,129750],2],[[129751,129753],2],[[129754,129755],2],[[129756,129759],3],[[129760,129767],2],[129768,2],[[129769,129775],3],[[129776,129782],2],[[129783,129784],2],[[129785,129791],3],[[129792,129938],2],[129939,3],[[129940,129994],2],[[129995,130031],3],[130032,1,"0"],[130033,1,"1"],[130034,1,"2"],[130035,1,"3"],[130036,1,"4"],[130037,1,"5"],[130038,1,"6"],[130039,1,"7"],[130040,1,"8"],[130041,1,"9"],[[130042,131069],3],[[131070,131071],3],[[131072,173782],2],[[173783,173789],2],[[173790,173791],2],[[173792,173823],3],[[173824,177972],2],[[177973,177976],2],[177977,2],[[177978,177983],3],[[177984,178205],2],[[178206,178207],3],[[178208,183969],2],[[183970,183983],3],[[183984,191456],2],[[191457,191471],3],[[191472,192093],2],[[192094,194559],3],[194560,1,"丽"],[194561,1,"丸"],[194562,1,"乁"],[194563,1,"𠄢"],[194564,1,"你"],[194565,1,"侮"],[194566,1,"侻"],[194567,1,"倂"],[194568,1,"偺"],[194569,1,"備"],[194570,1,"僧"],[194571,1,"像"],[194572,1,"㒞"],[194573,1,"𠘺"],[194574,1,"免"],[194575,1,"兔"],[194576,1,"兤"],[194577,1,"具"],[194578,1,"𠔜"],[194579,1,"㒹"],[194580,1,"內"],[194581,1,"再"],[194582,1,"𠕋"],[194583,1,"冗"],[194584,1,"冤"],[194585,1,"仌"],[194586,1,"冬"],[194587,1,"况"],[194588,1,"𩇟"],[194589,1,"凵"],[194590,1,"刃"],[194591,1,"㓟"],[194592,1,"刻"],[194593,1,"剆"],[194594,1,"割"],[194595,1,"剷"],[194596,1,"㔕"],[194597,1,"勇"],[194598,1,"勉"],[194599,1,"勤"],[194600,1,"勺"],[194601,1,"包"],[194602,1,"匆"],[194603,1,"北"],[194604,1,"卉"],[194605,1,"卑"],[194606,1,"博"],[194607,1,"即"],[194608,1,"卽"],[[194609,194611],1,"卿"],[194612,1,"𠨬"],[194613,1,"灰"],[194614,1,"及"],[194615,1,"叟"],[194616,1,"𠭣"],[194617,1,"叫"],[194618,1,"叱"],[194619,1,"吆"],[194620,1,"咞"],[194621,1,"吸"],[194622,1,"呈"],[194623,1,"周"],[194624,1,"咢"],[194625,1,"哶"],[194626,1,"唐"],[194627,1,"啓"],[194628,1,"啣"],[[194629,194630],1,"善"],[194631,1,"喙"],[194632,1,"喫"],[194633,1,"喳"],[194634,1,"嗂"],[194635,1,"圖"],[194636,1,"嘆"],[194637,1,"圗"],[194638,1,"噑"],[194639,1,"噴"],[194640,1,"切"],[194641,1,"壮"],[194642,1,"城"],[194643,1,"埴"],[194644,1,"堍"],[194645,1,"型"],[194646,1,"堲"],[194647,1,"報"],[194648,1,"墬"],[194649,1,"𡓤"],[194650,1,"売"],[194651,1,"壷"],[194652,1,"夆"],[194653,1,"多"],[194654,1,"夢"],[194655,1,"奢"],[194656,1,"𡚨"],[194657,1,"𡛪"],[194658,1,"姬"],[194659,1,"娛"],[194660,1,"娧"],[194661,1,"姘"],[194662,1,"婦"],[194663,1,"㛮"],[194664,3],[194665,1,"嬈"],[[194666,194667],1,"嬾"],[194668,1,"𡧈"],[194669,1,"寃"],[194670,1,"寘"],[194671,1,"寧"],[194672,1,"寳"],[194673,1,"𡬘"],[194674,1,"寿"],[194675,1,"将"],[194676,3],[194677,1,"尢"],[194678,1,"㞁"],[194679,1,"屠"],[194680,1,"屮"],[194681,1,"峀"],[194682,1,"岍"],[194683,1,"𡷤"],[194684,1,"嵃"],[194685,1,"𡷦"],[194686,1,"嵮"],[194687,1,"嵫"],[194688,1,"嵼"],[194689,1,"巡"],[194690,1,"巢"],[194691,1,"㠯"],[194692,1,"巽"],[194693,1,"帨"],[194694,1,"帽"],[194695,1,"幩"],[194696,1,"㡢"],[194697,1,"𢆃"],[194698,1,"㡼"],[194699,1,"庰"],[194700,1,"庳"],[194701,1,"庶"],[194702,1,"廊"],[194703,1,"𪎒"],[194704,1,"廾"],[[194705,194706],1,"𢌱"],[194707,1,"舁"],[[194708,194709],1,"弢"],[194710,1,"㣇"],[194711,1,"𣊸"],[194712,1,"𦇚"],[194713,1,"形"],[194714,1,"彫"],[194715,1,"㣣"],[194716,1,"徚"],[194717,1,"忍"],[194718,1,"志"],[194719,1,"忹"],[194720,1,"悁"],[194721,1,"㤺"],[194722,1,"㤜"],[194723,1,"悔"],[194724,1,"𢛔"],[194725,1,"惇"],[194726,1,"慈"],[194727,1,"慌"],[194728,1,"慎"],[194729,1,"慌"],[194730,1,"慺"],[194731,1,"憎"],[194732,1,"憲"],[194733,1,"憤"],[194734,1,"憯"],[194735,1,"懞"],[194736,1,"懲"],[194737,1,"懶"],[194738,1,"成"],[194739,1,"戛"],[194740,1,"扝"],[194741,1,"抱"],[194742,1,"拔"],[194743,1,"捐"],[194744,1,"𢬌"],[194745,1,"挽"],[194746,1,"拼"],[194747,1,"捨"],[194748,1,"掃"],[194749,1,"揤"],[194750,1,"𢯱"],[194751,1,"搢"],[194752,1,"揅"],[194753,1,"掩"],[194754,1,"㨮"],[194755,1,"摩"],[194756,1,"摾"],[194757,1,"撝"],[194758,1,"摷"],[194759,1,"㩬"],[194760,1,"敏"],[194761,1,"敬"],[194762,1,"𣀊"],[194763,1,"旣"],[194764,1,"書"],[194765,1,"晉"],[194766,1,"㬙"],[194767,1,"暑"],[194768,1,"㬈"],[194769,1,"㫤"],[194770,1,"冒"],[194771,1,"冕"],[194772,1,"最"],[194773,1,"暜"],[194774,1,"肭"],[194775,1,"䏙"],[194776,1,"朗"],[194777,1,"望"],[194778,1,"朡"],[194779,1,"杞"],[194780,1,"杓"],[194781,1,"𣏃"],[194782,1,"㭉"],[194783,1,"柺"],[194784,1,"枅"],[194785,1,"桒"],[194786,1,"梅"],[194787,1,"𣑭"],[194788,1,"梎"],[194789,1,"栟"],[194790,1,"椔"],[194791,1,"㮝"],[194792,1,"楂"],[194793,1,"榣"],[194794,1,"槪"],[194795,1,"檨"],[194796,1,"𣚣"],[194797,1,"櫛"],[194798,1,"㰘"],[194799,1,"次"],[194800,1,"𣢧"],[194801,1,"歔"],[194802,1,"㱎"],[194803,1,"歲"],[194804,1,"殟"],[194805,1,"殺"],[194806,1,"殻"],[194807,1,"𣪍"],[194808,1,"𡴋"],[194809,1,"𣫺"],[194810,1,"汎"],[194811,1,"𣲼"],[194812,1,"沿"],[194813,1,"泍"],[194814,1,"汧"],[194815,1,"洖"],[194816,1,"派"],[194817,1,"海"],[194818,1,"流"],[194819,1,"浩"],[194820,1,"浸"],[194821,1,"涅"],[194822,1,"𣴞"],[194823,1,"洴"],[194824,1,"港"],[194825,1,"湮"],[194826,1,"㴳"],[194827,1,"滋"],[194828,1,"滇"],[194829,1,"𣻑"],[194830,1,"淹"],[194831,1,"潮"],[194832,1,"𣽞"],[194833,1,"𣾎"],[194834,1,"濆"],[194835,1,"瀹"],[194836,1,"瀞"],[194837,1,"瀛"],[194838,1,"㶖"],[194839,1,"灊"],[194840,1,"災"],[194841,1,"灷"],[194842,1,"炭"],[194843,1,"𠔥"],[194844,1,"煅"],[194845,1,"𤉣"],[194846,1,"熜"],[194847,3],[194848,1,"爨"],[194849,1,"爵"],[194850,1,"牐"],[194851,1,"𤘈"],[194852,1,"犀"],[194853,1,"犕"],[194854,1,"𤜵"],[194855,1,"𤠔"],[194856,1,"獺"],[194857,1,"王"],[194858,1,"㺬"],[194859,1,"玥"],[[194860,194861],1,"㺸"],[194862,1,"瑇"],[194863,1,"瑜"],[194864,1,"瑱"],[194865,1,"璅"],[194866,1,"瓊"],[194867,1,"㼛"],[194868,1,"甤"],[194869,1,"𤰶"],[194870,1,"甾"],[194871,1,"𤲒"],[194872,1,"異"],[194873,1,"𢆟"],[194874,1,"瘐"],[194875,1,"𤾡"],[194876,1,"𤾸"],[194877,1,"𥁄"],[194878,1,"㿼"],[194879,1,"䀈"],[194880,1,"直"],[194881,1,"𥃳"],[194882,1,"𥃲"],[194883,1,"𥄙"],[194884,1,"𥄳"],[194885,1,"眞"],[[194886,194887],1,"真"],[194888,1,"睊"],[194889,1,"䀹"],[194890,1,"瞋"],[194891,1,"䁆"],[194892,1,"䂖"],[194893,1,"𥐝"],[194894,1,"硎"],[194895,1,"碌"],[194896,1,"磌"],[194897,1,"䃣"],[194898,1,"𥘦"],[194899,1,"祖"],[194900,1,"𥚚"],[194901,1,"𥛅"],[194902,1,"福"],[194903,1,"秫"],[194904,1,"䄯"],[194905,1,"穀"],[194906,1,"穊"],[194907,1,"穏"],[194908,1,"𥥼"],[[194909,194910],1,"𥪧"],[194911,3],[194912,1,"䈂"],[194913,1,"𥮫"],[194914,1,"篆"],[194915,1,"築"],[194916,1,"䈧"],[194917,1,"𥲀"],[194918,1,"糒"],[194919,1,"䊠"],[194920,1,"糨"],[194921,1,"糣"],[194922,1,"紀"],[194923,1,"𥾆"],[194924,1,"絣"],[194925,1,"䌁"],[194926,1,"緇"],[194927,1,"縂"],[194928,1,"繅"],[194929,1,"䌴"],[194930,1,"𦈨"],[194931,1,"𦉇"],[194932,1,"䍙"],[194933,1,"𦋙"],[194934,1,"罺"],[194935,1,"𦌾"],[194936,1,"羕"],[194937,1,"翺"],[194938,1,"者"],[194939,1,"𦓚"],[194940,1,"𦔣"],[194941,1,"聠"],[194942,1,"𦖨"],[194943,1,"聰"],[194944,1,"𣍟"],[194945,1,"䏕"],[194946,1,"育"],[194947,1,"脃"],[194948,1,"䐋"],[194949,1,"脾"],[194950,1,"媵"],[194951,1,"𦞧"],[194952,1,"𦞵"],[194953,1,"𣎓"],[194954,1,"𣎜"],[194955,1,"舁"],[194956,1,"舄"],[194957,1,"辞"],[194958,1,"䑫"],[194959,1,"芑"],[194960,1,"芋"],[194961,1,"芝"],[194962,1,"劳"],[194963,1,"花"],[194964,1,"芳"],[194965,1,"芽"],[194966,1,"苦"],[194967,1,"𦬼"],[194968,1,"若"],[194969,1,"茝"],[194970,1,"荣"],[194971,1,"莭"],[194972,1,"茣"],[194973,1,"莽"],[194974,1,"菧"],[194975,1,"著"],[194976,1,"荓"],[194977,1,"菊"],[194978,1,"菌"],[194979,1,"菜"],[194980,1,"𦰶"],[194981,1,"𦵫"],[194982,1,"𦳕"],[194983,1,"䔫"],[194984,1,"蓱"],[194985,1,"蓳"],[194986,1,"蔖"],[194987,1,"𧏊"],[194988,1,"蕤"],[194989,1,"𦼬"],[194990,1,"䕝"],[194991,1,"䕡"],[194992,1,"𦾱"],[194993,1,"𧃒"],[194994,1,"䕫"],[194995,1,"虐"],[194996,1,"虜"],[194997,1,"虧"],[194998,1,"虩"],[194999,1,"蚩"],[195e3,1,"蚈"],[195001,1,"蜎"],[195002,1,"蛢"],[195003,1,"蝹"],[195004,1,"蜨"],[195005,1,"蝫"],[195006,1,"螆"],[195007,3],[195008,1,"蟡"],[195009,1,"蠁"],[195010,1,"䗹"],[195011,1,"衠"],[195012,1,"衣"],[195013,1,"𧙧"],[195014,1,"裗"],[195015,1,"裞"],[195016,1,"䘵"],[195017,1,"裺"],[195018,1,"㒻"],[195019,1,"𧢮"],[195020,1,"𧥦"],[195021,1,"䚾"],[195022,1,"䛇"],[195023,1,"誠"],[195024,1,"諭"],[195025,1,"變"],[195026,1,"豕"],[195027,1,"𧲨"],[195028,1,"貫"],[195029,1,"賁"],[195030,1,"贛"],[195031,1,"起"],[195032,1,"𧼯"],[195033,1,"𠠄"],[195034,1,"跋"],[195035,1,"趼"],[195036,1,"跰"],[195037,1,"𠣞"],[195038,1,"軔"],[195039,1,"輸"],[195040,1,"𨗒"],[195041,1,"𨗭"],[195042,1,"邔"],[195043,1,"郱"],[195044,1,"鄑"],[195045,1,"𨜮"],[195046,1,"鄛"],[195047,1,"鈸"],[195048,1,"鋗"],[195049,1,"鋘"],[195050,1,"鉼"],[195051,1,"鏹"],[195052,1,"鐕"],[195053,1,"𨯺"],[195054,1,"開"],[195055,1,"䦕"],[195056,1,"閷"],[195057,1,"𨵷"],[195058,1,"䧦"],[195059,1,"雃"],[195060,1,"嶲"],[195061,1,"霣"],[195062,1,"𩅅"],[195063,1,"𩈚"],[195064,1,"䩮"],[195065,1,"䩶"],[195066,1,"韠"],[195067,1,"𩐊"],[195068,1,"䪲"],[195069,1,"𩒖"],[[195070,195071],1,"頋"],[195072,1,"頩"],[195073,1,"𩖶"],[195074,1,"飢"],[195075,1,"䬳"],[195076,1,"餩"],[195077,1,"馧"],[195078,1,"駂"],[195079,1,"駾"],[195080,1,"䯎"],[195081,1,"𩬰"],[195082,1,"鬒"],[195083,1,"鱀"],[195084,1,"鳽"],[195085,1,"䳎"],[195086,1,"䳭"],[195087,1,"鵧"],[195088,1,"𪃎"],[195089,1,"䳸"],[195090,1,"𪄅"],[195091,1,"𪈎"],[195092,1,"𪊑"],[195093,1,"麻"],[195094,1,"䵖"],[195095,1,"黹"],[195096,1,"黾"],[195097,1,"鼅"],[195098,1,"鼏"],[195099,1,"鼖"],[195100,1,"鼻"],[195101,1,"𪘀"],[[195102,196605],3],[[196606,196607],3],[[196608,201546],2],[[201547,201551],3],[[201552,205743],2],[[205744,262141],3],[[262142,262143],3],[[262144,327677],3],[[327678,327679],3],[[327680,393213],3],[[393214,393215],3],[[393216,458749],3],[[458750,458751],3],[[458752,524285],3],[[524286,524287],3],[[524288,589821],3],[[589822,589823],3],[[589824,655357],3],[[655358,655359],3],[[655360,720893],3],[[720894,720895],3],[[720896,786429],3],[[786430,786431],3],[[786432,851965],3],[[851966,851967],3],[[851968,917501],3],[[917502,917503],3],[917504,3],[917505,3],[[917506,917535],3],[[917536,917631],3],[[917632,917759],3],[[917760,917999],7],[[918e3,983037],3],[[983038,983039],3],[[983040,1048573],3],[[1048574,1048575],3],[[1048576,1114109],3],[[1114110,1114111],3]],{STATUS_MAPPING:Ke}=dN;function $b(t){return/[^\x00-\x7F]/u.test(t)}function qb(t,{useSTD3ASCIIRules:e}){let r=0,n=yc.length-1;for(;r<=n;){const i=Math.floor((r+n)/2),u=yc[i],a=Array.isArray(u[0])?u[0][0]:u[0],o=Array.isArray(u[0])?u[0][1]:u[0];if(a<=t&&o>=t)return!e||u[1]!==Ke.disallowed_STD3_valid&&u[1]!==Ke.disallowed_STD3_mapped?u[1]===Ke.disallowed_STD3_valid?[Ke.valid,...u.slice(2)]:u[1]===Ke.disallowed_STD3_mapped?[Ke.mapped,...u.slice(2)]:u.slice(1):[Ke.disallowed,...u.slice(2)];a>t?n=i-1:r=i+1}return null}function hN(t,{checkHyphens:e,checkBidi:r,checkJoiners:n,transitionalProcessing:i,useSTD3ASCIIRules:u,isBidi:a}){if(t.length===0)return!0;if(t.normalize("NFC")!==t)return!1;const o=Array.from(t);if(e&&(o[2]==="-"&&o[3]==="-"||t.startsWith("-")||t.endsWith("-"))||t.includes(".")||Ft.combiningMarks.test(o[0]))return!1;for(const s of o){const[c]=qb(s.codePointAt(0),{useSTD3ASCIIRules:u});if(i){if(c!==Ke.valid)return!1}else if(c!==Ke.valid&&c!==Ke.deviation)return!1}if(n){let s=0;for(const[c,d]of o.entries())if(d==="‌"||d==="‍"){if(c>0){if(Ft.combiningClassVirama.test(o[c-1]))continue;if(d==="‌"){const y=o.indexOf("‌",c+1),A=y<0?o.slice(s):o.slice(s,y);if(Ft.validZWNJ.test(A.join(""))){s=c+1;continue}}}return!1}}if(r&&a){let s;if(Ft.bidiS1LTR.test(o[0]))s=!1;else{if(!Ft.bidiS1RTL.test(o[0]))return!1;s=!0}if(s){if(!Ft.bidiS2.test(t)||!Ft.bidiS3.test(t)||Ft.bidiS4EN.test(t)&&Ft.bidiS4AN.test(t))return!1}else if(!Ft.bidiS5.test(t)||!Ft.bidiS6.test(t))return!1}return!0}function gc(t,e){let r=function(a,{useSTD3ASCIIRules:o,transitionalProcessing:s}){let c="";for(const d of a){const[y,A]=qb(d.codePointAt(0),{useSTD3ASCIIRules:o});switch(y){case Ke.disallowed:c+=d;break;case Ke.ignored:break;case Ke.mapped:c+=s&&d==="ẞ"?"ss":A;break;case Ke.deviation:c+=s?A:d;break;case Ke.valid:c+=d}}return c}(t,e);r=r.normalize("NFC");const n=r.split("."),i=function(a){const o=a.map(s=>{if(s.startsWith("xn--"))try{return ms.decode(s.substring(4))}catch{return""}return s}).join(".");return Ft.bidiDomain.test(o)}(n);let u=!1;for(const[a,o]of n.entries()){let s=o,c=e.transitionalProcessing;if(s.startsWith("xn--")){if($b(s)){u=!0;continue}try{s=ms.decode(s.substring(4))}catch{if(!e.ignoreInvalidPunycode){u=!0;continue}}n[a]=s,c=!1}u||hN(s,{...e,transitionalProcessing:c,isBidi:i})||(u=!0)}return{string:n.join("."),error:u}}var pN=uN({toASCII:function(t,{checkHyphens:e=!1,checkBidi:r=!1,checkJoiners:n=!1,useSTD3ASCIIRules:i=!1,verifyDNSLength:u=!1,transitionalProcessing:a=!1,ignoreInvalidPunycode:o=!1}={}){const s=gc(t,{checkHyphens:e,checkBidi:r,checkJoiners:n,useSTD3ASCIIRules:i,transitionalProcessing:a,ignoreInvalidPunycode:o});let c=s.string.split(".");if(c=c.map(d=>{if($b(d))try{return`xn--${ms.encode(d)}`}catch{s.error=!0}return d}),u){const d=c.join(".").length;(d>253||d===0)&&(s.error=!0);for(let y=0;y63||c[y].length===0){s.error=!0;break}}return s.error?null:c.join(".")},toUnicode:function(t,{checkHyphens:e=!1,checkBidi:r=!1,checkJoiners:n=!1,useSTD3ASCIIRules:i=!1,transitionalProcessing:u=!1,ignoreInvalidPunycode:a=!1}={}){const o=gc(t,{checkHyphens:e,checkBidi:r,checkJoiners:n,useSTD3ASCIIRules:i,transitionalProcessing:u,ignoreInvalidPunycode:a});return{domain:o.string,error:o.error}}});function bN(t){return{transitionalProcessing:!t.match(/\.(?:be|ca|de|swiss|fr|pm|re|tf|wf|yt)\.?$/)}}function i3(t,e={}){const r=pN.toASCII(t,{...bN(t),...e});if(r!==null)return r;throw new Error(`Unable to translate ${t} to ASCII.`)}const{useAccount:mN}=Ot;function yN({name:t,setName:e,nameValidities:r,setNameValidities:n,nameWrapper:i,ensRegistry:u,triggerNameCheck:a}){const o=mN();console.log("userAddress",o);const s="Name must be a valid URL without subdomains (A-Z, a-z, 0-9, and punycode)",c="Name is not owned by your wallet",d="Unsupported punycode character",y=l0.useRef(null);l0.useEffect(()=>{y.current&&clearTimeout(y.current),y.current=setTimeout(async()=>{if(t.length==0)return;let C,T=[...r],U;C=T.indexOf(d);try{U=i3(t+".eth"),C!=-1&&T.splice(C,1)}catch{C==-1&&T.push(d)}if(U!==void 0&&(C=T.indexOf(s),t!=""&&!e3(U)?C==-1&&T.push(s):C!=-1&&T.splice(C,1),C=T.indexOf(c),T.length==0||C!=-1)){let P=await u.owner($u.hash(U));P==i.address&&(P=await i.ownerOf($u.hash(U))),P!=o?C==-1&&T.push(c):T.splice(C,1)}n(T)},500)},[t,a]);const A=C=>C.target.value.indexOf(".")==-1&&e(C.target.value);return X.jsxs("div",{className:"flex flex-col w-full place-items-center place-content-center",children:[X.jsxs("div",{className:"flex w-full place-items-center",children:[X.jsx("input",{value:t,onChange:A,type:"text",required:!0,name:"dot-os-name",placeholder:"e.g. myname",className:"grow"}),X.jsx("div",{className:"ml-2 text-lg",children:".eth"})]}),r.map((C,T)=>X.jsxs("div",{children:[X.jsx("br",{}),X.jsx("span",{className:"text-red-500",children:C})]},T))]})}function o2({msg:t}){return X.jsxs("div",{id:"loading",className:"flex flex-col text-center",children:[X.jsx("h3",{children:t}),X.jsxs("div",{id:"loader",children:[" ",X.jsx("div",{})," ",X.jsx("div",{})," ",X.jsx("div",{})," ",X.jsx("div",{})," "]})]})}function Hb(t){const e=t.split(".");if(e.length!==4)throw new Error("Invalid IP address");let r=0;for(let n=0;n<4;n++)r<<=8,r+=parseInt(e[n],10);return r>>>0}const gN="4902",xc={[yn]:{chainId:yn,chainName:"Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:["https://rpc.sepolia.org"],blockExplorerUrls:["https://sepolia.etherscan.io"]},[R2]:{chainId:R2,chainName:"Optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:["https://mainnet.optimism.io"],blockExplorerUrls:["https://optimistic.etherscan.io"]},[Z9]:{chainId:Z9,chainName:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:["https://ethereum-rpc.publicnode.com"],blockExplorerUrls:["https://etherscan.io"]}},H2=t=>{switch(t){case"1":case"0x1":return"Ethereum";case"10":case"a":case"0xa":return"Optimism";case"42161":return"Arbitrum";case"11155111":case"aa36a7":case"0xaa36a7":return"Sepolia";default:return"Unknown"}},a8=async t=>{var r,n,i;let e=await((r=window.ethereum)==null?void 0:r.request({method:"net_version"}).catch(()=>"1"));if(e="0x"+(typeof e=="string"?e.replace(/^0x/,""):e.toString(16)),!xc[t])throw new Error(`Invalid chain ID: ${t}`);if(t!==e)try{await((n=window.ethereum)==null?void 0:n.request({method:"wallet_switchEthereumChain",params:[{chainId:t}]}))}catch(u){if(String(u).includes(gN))await((i=window.ethereum)==null?void 0:i.request({method:"wallet_addEthereumChain",params:[xc[t]]}));else throw window.alert(`You must enable the ${H2(t)} network in your wallet.`),new Error(`User cancelled connection to ${t}`)}},i5=async({direct:t,kns:e,nodeChainId:r,chainName:n,nameToSet:i,setNetworkingKey:u,setIpAddress:a,setWsPort:o,setTcpPort:s,setRouters:c})=>{const{networking_key:d,routing:{Both:{ip:y,ports:{ws:A,tcp:C},routers:T}}}=await fetch("/generate-networking-info",{method:"POST"}).then(_=>_.json()),U=Hb(y);u(d),a(U),o(A||0),s(C||0),c(T);const P=[t?(await e.populateTransaction.setAllIp(i,U,A||0,0,C||0,0)).data:(await e.populateTransaction.setRouters(i,T.map(_=>Cr(_)))).data,(await e.populateTransaction.setKey(i,d)).data];try{await a8(r)}catch{throw window.alert(`You must connect to the ${n} network to continue. Please connect and try again.`),new Error(`${n} not set`)}return P},xN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIBAMAAABfdrOtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAG1BMVEVHcExhfelhfephfelifurBzPf///+Dme7i5/sS0DLNAAAABHRSTlMAgMg36TiFUwAABmNJREFUeNq9nO154joQhQlsASRxASxQAMmmgAXs6xRgRxXAQwEGp4GwW/bFLB+2LDTnjIj1O8kbnfnwSBqp18PH4OVxPI7jeLEYPz7Pet8wfj1Wf782Fo+/7ksYvDzFjvHznvN5Gcc3xs/nOyEenmLP+HmXybxMY+9YhE9m8BSLI3Qyg2kMjEUQ5QFiHCjDAHPE8HjugKGmvEzjb6c8cAyVXQYkQ0PhGQpPjmLFmHOM11g1JpTRY+UYfq9BaLM8xeox/3axCMH0YhGCvcZBY/LtYqGCRaGQ+V0mUgZPBbD6l2R7idGXGcmqEH5iFO6+nysT5sbAROKPVR7kxshE0vUqL0Kmgkzk/QCR9PJaBUkoHwhkERbs6foAEfXyxAoS7MkRkqnDHspauyPEqDPYGwLZHyGyXsuA78hBrSMkU35X+qBaR4is10if4/cnSK7L+JDZK7X+QQqV6SGzf14gsl4TZbQfwv0MkfVaKNVK11eIRi9IrfcaRHRiR6jgap0ghteLUOsEUej1BjvwBcLrNUXD/Qqh9cLKxn0DQuvVJ9QiICM+b+0siOHy14Bw4CsECPqZKjk2IJxRXvFwr0O4JBkxal0h1EdlQIR7AyLrNeNM8u6AZIRRflBq1SDMlz6i1KpBZL3mVOJKnJAMTl8DJtybEANbvk8kRwsi6zUiviU1tTjIkrD77gbEoJafUg7chOSg5QecA1uQArM8Eu+fNyEGi/k+qVYTkmPuFZFqWZACcq+ISY5tSAa515RzYBtiEPcCnCvdeyCiXjPMuZK1D5IB7vXAqmVDDAB5pZKjAyI58QRKj5ZaLUgm+3DEqtWCGNmHIy7cHZBchMgVarqWIIUUKAMy3A/jK+f0mgEQW60vU3J6zeQwsdTafOWmLCm9hjIksRkVpGSceCh/TRoOvDmaoLQpRvii9Jnk+De/QMotrNdIrIOTtlv9gzQoXr1+i1ll13bdE6ROMf688gYnx0t4nCF1ih8SoWpdQ/ACqZm/8OaVCFNrUwvzGqRE9BIhH21GA1ICes2FMiKthYcbUsp6LQTIu4NhQU7mz/SQD1fWtSAnig8iq9XO7KWLUmhnkrgYbciR4tGrJzlwm+GAVOY3Ski63zgYTkjp08sLSZwMN6T06OWFfOY5DimNDrKlIKXS8FsG4jG814VTAqIORjfFcAxpJm6KC1LE+tzlNIvhGADEQTEc4wCRi/qtCCmksl6GpFsJEodASrfxjZuR3ob4SqIkc1KMm5Hp6q50Xbgoxsm4nYWX/jJ1tzn9ZnITcv43tsZTpv7wfxnP7SPbG5Di4oKZuqrfuyjGxch9Vf2D+P1thYtxMYx+pVWVK3/scDG20Ut/cTeUFqZV4WUsFzMtx/KXqeLqtyohN1a4GMuxpIJ71kOKYcuRTdMgcincg8r6posZ2+hSUS9CTgfXdYppMzIB8gatfuuObGpG38oLrSWwqXZaa9Uc2ViOJaxLJ8D24HnVeHVkYzP8K2xoD/K8/r04srEZubgHKW4TXdam57gwDecVdz1myObzZZV9phR2Nsvksw3xK389Ki3cBQawjS5up17PNVZOhgEOBMTNqNq22p9rkYFuqY3AQ5raBqFxlK/IIQ211bkxLUaGHDfJlWp9G/KY91NqwxY8palvEVaOvOX2t3v8bv2q2JI79djJWfOUhjrTGuEHzDv1EeAMPypPbkKyGLI7dD63Vx7Lzpkmn/+UB8y/mUaMVHlUPqRaSj7ckBi1O3toumKPS+E2H123x4RsWFL1rQzJ1qtE0YHTbLUFjHJNLXgv0Zxuh9vxrVcjurGv3USWEQ6Mdnzs2Xa4haLZkm7sW+pa6rkWxaHuckADwqqF6fXOtY0utVcQmC7bofYyRQ3Cq8U0YIGdzxPtlY090cM91Dbv7/CW97n6GsK1eT/j8hbVagtfQ7h1LQhNLStdkHCpeJWH3NeJsFBZAWrNgy4efWLXdYZBV6iw202L0FttFUTnv/hUqhtnWcBEwCpvRdV0uqnsQq8aYpcmsxCLYFNJv4oQi3R2kbWTK7ndXC7u5Jp0Nxe+O7m63s0l/G6eE+jkYYRunnjo5rGKbp7d6OQBkW6eQmEfddG+HNTF8zTUXAJeQOriyaBuHj/CkuUd3qTq4EEq8U2q+zytVU3mJuZuj4R19NxZhWk93Da+98NttSfoKjcYk0/Q/Q/GcNFkXl2LdgAAAABJRU5ErkJggg==",Kb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIBAMAAABfdrOtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAG1BMVEVHcExhfelhfephfelifurBzPf///+Dme7i5/sS0DLNAAAABHRSTlMAgMg36TiFUwAABmNJREFUeNq9nO154joQhQlsASRxASxQAMmmgAXs6xRgRxXAQwEGp4GwW/bFLB+2LDTnjIj1O8kbnfnwSBqp18PH4OVxPI7jeLEYPz7Pet8wfj1Wf782Fo+/7ksYvDzFjvHznvN5Gcc3xs/nOyEenmLP+HmXybxMY+9YhE9m8BSLI3Qyg2kMjEUQ5QFiHCjDAHPE8HjugKGmvEzjb6c8cAyVXQYkQ0PhGQpPjmLFmHOM11g1JpTRY+UYfq9BaLM8xeox/3axCMH0YhGCvcZBY/LtYqGCRaGQ+V0mUgZPBbD6l2R7idGXGcmqEH5iFO6+nysT5sbAROKPVR7kxshE0vUqL0Kmgkzk/QCR9PJaBUkoHwhkERbs6foAEfXyxAoS7MkRkqnDHspauyPEqDPYGwLZHyGyXsuA78hBrSMkU35X+qBaR4is10if4/cnSK7L+JDZK7X+QQqV6SGzf14gsl4TZbQfwv0MkfVaKNVK11eIRi9IrfcaRHRiR6jgap0ghteLUOsEUej1BjvwBcLrNUXD/Qqh9cLKxn0DQuvVJ9QiICM+b+0siOHy14Bw4CsECPqZKjk2IJxRXvFwr0O4JBkxal0h1EdlQIR7AyLrNeNM8u6AZIRRflBq1SDMlz6i1KpBZL3mVOJKnJAMTl8DJtybEANbvk8kRwsi6zUiviU1tTjIkrD77gbEoJafUg7chOSg5QecA1uQArM8Eu+fNyEGi/k+qVYTkmPuFZFqWZACcq+ISY5tSAa515RzYBtiEPcCnCvdeyCiXjPMuZK1D5IB7vXAqmVDDAB5pZKjAyI58QRKj5ZaLUgm+3DEqtWCGNmHIy7cHZBchMgVarqWIIUUKAMy3A/jK+f0mgEQW60vU3J6zeQwsdTafOWmLCm9hjIksRkVpGSceCh/TRoOvDmaoLQpRvii9Jnk+De/QMotrNdIrIOTtlv9gzQoXr1+i1ll13bdE6ROMf688gYnx0t4nCF1ih8SoWpdQ/ACqZm/8OaVCFNrUwvzGqRE9BIhH21GA1ICes2FMiKthYcbUsp6LQTIu4NhQU7mz/SQD1fWtSAnig8iq9XO7KWLUmhnkrgYbciR4tGrJzlwm+GAVOY3Ski63zgYTkjp08sLSZwMN6T06OWFfOY5DimNDrKlIKXS8FsG4jG814VTAqIORjfFcAxpJm6KC1LE+tzlNIvhGADEQTEc4wCRi/qtCCmksl6GpFsJEodASrfxjZuR3ob4SqIkc1KMm5Hp6q50Xbgoxsm4nYWX/jJ1tzn9ZnITcv43tsZTpv7wfxnP7SPbG5Di4oKZuqrfuyjGxch9Vf2D+P1thYtxMYx+pVWVK3/scDG20Ut/cTeUFqZV4WUsFzMtx/KXqeLqtyohN1a4GMuxpIJ71kOKYcuRTdMgcincg8r6posZ2+hSUS9CTgfXdYppMzIB8gatfuuObGpG38oLrSWwqXZaa9Uc2ViOJaxLJ8D24HnVeHVkYzP8K2xoD/K8/r04srEZubgHKW4TXdam57gwDecVdz1myObzZZV9phR2Nsvksw3xK389Ki3cBQawjS5up17PNVZOhgEOBMTNqNq22p9rkYFuqY3AQ5raBqFxlK/IIQ211bkxLUaGHDfJlWp9G/KY91NqwxY8palvEVaOvOX2t3v8bv2q2JI79djJWfOUhjrTGuEHzDv1EeAMPypPbkKyGLI7dD63Vx7Lzpkmn/+UB8y/mUaMVHlUPqRaSj7ckBi1O3toumKPS+E2H123x4RsWFL1rQzJ1qtE0YHTbLUFjHJNLXgv0Zxuh9vxrVcjurGv3USWEQ6Mdnzs2Xa4haLZkm7sW+pa6rkWxaHuckADwqqF6fXOtY0utVcQmC7bofYyRQ3Cq8U0YIGdzxPtlY090cM91Dbv7/CW97n6GsK1eT/j8hbVagtfQ7h1LQhNLStdkHCpeJWH3NeJsFBZAWrNgy4efWLXdYZBV6iw202L0FttFUTnv/hUqhtnWcBEwCpvRdV0uqnsQq8aYpcmsxCLYFNJv4oQi3R2kbWTK7ndXC7u5Jp0Nxe+O7m63s0l/G6eE+jkYYRunnjo5rGKbp7d6OQBkW6eQmEfddG+HNTF8zTUXAJeQOriyaBuHj/CkuUd3qTq4EEq8U2q+zytVU3mJuZuj4R19NxZhWk93Da+98NttSfoKjcYk0/Q/Q/GcNFkXl2LdgAAAABJRU5ErkJggg==",Gb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIBAMAAABfdrOtAAAACXBIWXMAAAXnAAAF5wGk6LX5AAAAGFBMVEVHcEz/BCD/AyD/BCD/BCD/////aHn/w8p/uFjAAAAABHRSTlMAf8g2IKeBKAAABN1JREFUeNrFnO15mzAQgHHwAHbCAK7LAE4fBggg8AIGFgBngeCsX5qaWAhJdwLd5X41dh+9vk99KwjwEr7uj0cxyPG4fzkFBBLuYzGRbO+b8/osNJK9+ETEwiDeMOGzsMgvL0Z7FYD8JlbDjzJhLBCSraJsUIyBsiN0x0MWUzZCkFOcGAspjoxFlDB2hbjHmDtjASUSCyR1Y/wRi+Q3qdMXOH+JQ5zdEonFkpIby8Fgy43lYLBErJKc3FhYg0VrIQjfP4nVcgAh8XpIxqAIrErsA5IxKAKpEvuBZAyK2FWJfUEyBkVsqkT+IClZ1cJUsMQnxFCMQ+FVTtRuN7s+8gtJyd1ucn3iG5JTZrsl671bS2evxD8kp7eWxl4E1prbK6GA5PTWmtkrFCRyoqxb+voV0UCm9UsQCXkAq0G8pYK80btk4pRQCHqnbOggO3qXyE6J6CApbeFSyheh3x/l64kScqDsS9Q+JaKEpPR+//Y8qd9Hz29oITvqfH/kfEILyemDawyvmBaSYYOrvA6yJrzg4Cr76ktuk08/JblC4QVWrvdqlKZ9fFpUE7nZqxcUwb3c1oPSTSFVY41hIII7Q1N9haXkYASflabq8YtqJrUlhq0RXM6aao0QyZZukGLW0sVE//5KNyyyWmveUmOGNEZI6KbIaJRzhbfXyZ6LvaalDyP+/pUmGzcYtze367WfBNEd8pXvPeCUnTXhCznTywmk09nuYkr5LSIRWxnZyIacmrU2pfwWjq16ajwNpAAgCewSJf+kfzdTyMVUVxKwpDRKrEn8evo/jZAIdMlFgbRziF2TFAH50Gii/PTCmidWSK/ksQRRWu0ASAwGl+5vBdJby0pmgZRq2ZP+nuTiNLjdIGcl+EsjpLNX4SwQrpB6losl0DXaIGpcylD5p48jJpPfhw4FH8Fy2I6Vs/9seqg7wUBaMU8GXb9oGRQF+DSRNNP2i5clEDUuJc1cOl8MpNFpput8a7EAYsjFSjdGtSsCQ2pLwiMGEUDGI3IRZ6xBk3hJLs4gN/tcCw0p5rmom7e4QdSE72a52Fz/SwvOGiPHfrHVxQQ0/0VDqlnn6x8iD10KqI6okAQ5VumkX1+AqYEdd3Xa4eMFHjdoIFtotK0ZFndgIcGOhQs5l7/LrmYgjIA8gfPeYW7yPq0elRvkYJ4Elea5FNQTOsy0dHM5fX0GISFyLUKKZ8dc/LdMhF6MUGdv2Fy0z+N7Q6fhmPCZdUXirPWIcy5m9gWcTt/DOuZial+KKntt79e7QXJgUU2m3IRmMoRdGLYvD76P64+t/NkwAv78wCc8vNB5XbOSOi50Eu8H3HcEOBafeZbRWTYEtrSQN75NGpbtJpaNM54twITe70zbsiwbzCxb5Tyb/lt6vzMdxAjoIMyHY+ic8sZ9YInl6BXPITKW43AsB/tYjijyHLZkOTbKcgCW5ygvy6FkluPVPAfFN8SZyHd4n+caguf69YNXQ3guubBc1/GpyuFnr1DxXAZjudbGc0GP5aohz6VJluufPnIFvsjKciWX53IxyzXplb7H3pDnuLq+yvd5gJaY2lhcDyPwPPHA81gFz7MbLA+I8DyFwvOoC8/zNE6UFc/5cDwZxPP40SCYZ5wo39W6i5fXtTie1uJ5JOwLc9Qhjj4RTA+3rXuC7i9fKsPnoYG4swAAAABJRU5ErkJggg==",vN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIBAMAAABfdrOtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAJ1BMVEVHcEwwSGMsN0osN0orN0v9/v6YvNsqn+1igqEYHy9DZoeMoLXU2d+tI0ZHAAAABHRSTlMA/LJVwr+FbwAAChlJREFUeNq9XM1uG0cSlkU9gLQaR7SkAyPxAWjJD6ChGwZH8mWBjGHEvASwB7KZi4CFKPgmgBYdJBcCA8OSfBEgW3GUi4FI2Bh7MRAG2WAfaod/01Xd1b+kWIckdOj52F99VV3dU90zM/ZW2NxYC1hm1bX1zZmbsAyAIZs80OZgCNiqa5OEKZSZwqqVSUFsMI2tTwRmo8y0Vl0ffxhfM6P9o3JT3picZzatMDKUMWQ2a4kxjmNmmb2FJU+uAuZilZvzORhL5eYxfFDcMTLvu4LcZR523zGXMC9zEnKBeVrpZh3inGDuMm9bvIlI9yWsYIr0cALRssHGsvXxB5Iuv359Nn4S0yvrxySzz+mYga/3+oekb59ZMI7v9SFymQzt01jBovX6SpLb4Ti+1w3kbQLso79XdB7ZvoYgjXNfr+g8gjGSZPeOp1c0HgmPEsF2Az+vaAYiYfSE7OOVWQvx7p4tX1uglNwHEl1Cf3PvHKbOQykos24tx+grN/+YtJwz2F2zsA4H+aRoFvKio345xifJRY3ATcW3FF/vUI7mKKpwmXdxOw+Q3WP+s1P+py6uLxjFC5kJOkYhV+zdvqJif9uEsmjNVhGLl4+EBSeGvF+1jfZtXUTURmNptCyj/p4pQLRUntvV3xRbJybaLxVkKvgqaDPvC2NuJvO+qK85IkDy3/lv5fwU/qgb65aZLXPq6HntSINSNbK1o+WbSmypga9b6gBJWh1tvVfThMu8XsAG8dLxeqYXcWDO7hY1nxQuVa1LuDtTZtyYiD7kKJHGKXN0Xa3O41St3xd7oBZx2Sa7M5ui7PMdFV8Fy+xuI2QhXFQgeeZt/GC/iONprqXIxLg65eLt2IMEXMiKevUeSdYhc7IaKfr7tN8/mGtQeiwrVMquki4JR2J0X1yPhBxQkTJLjHo3cAcZCblFeR6F4leO4iU08x3lFOiSaPBrPoZeIINw2U0NIIMf84l52o4sYpXfG/47K9cKz+OKSxrvEPz4uP/v3j+PuYlfDI4kkJIMEtLFSRRd/ifOrP6/7AFH1z3r++6p+D0VyD0zSLTSjQdWz3776L8z+52ciAJZXmaQ6DJ/7pfMuRzjUWoLUjaCnPLH/sbYO/7pW2YGGSQWZgR5lj+1HrCIf4qfWoAweTKhQB7ypz5OWY1/igMbkIqkYAoEOPo5Y6v805OUiWUGAVKSiggCBPz0TFvRFf/43+z7e0aQLamuI0AwWyEYVzY9Fw8CE8h9CxDo6D8YewMEnP3fi+a5DUjZAAL0G39k0Ssk4LDdPDSBVC1AbmNH43DfbjZfBmYQYa9ZBsFsgXCvZzXpUrOJ+SJAMg0LhZ0EAsMim1d/RSoI2hnI3vgg7xBbURcJOGNL4IsGmdWDQG1lyfEEsHXOwmIPBPFFgZRIkF0lWzDc+wLu2aEXCBjJKg53MK5/Dl2S8WUEmdODXKGnbseigPsW6EG2DCAnOCweoHEN2UJ8USD3xSWpAAK0VWdEuDdFvjxAYMp9zNgdOK6ALTdHFgTuILm6oA+eouSYCZgVc5Bzw0jKupE8QGyx90jA4UUO8lILUiVB8pG8QkmEEeE+sINgDBD8VBiY2XxV4yCcL3cQwQeruOACI+F8USDhDFODQMU+wVL7wpBPmgc6EKYDgdN5NpW8BWz91ntOEfIVeILsYB/AwOw/BvK15zmS6D2eeK+w1EDEA305g3SRD0IsNcZ47gL6cgV5E6M6+xSXpwsMi3jPD+QVTo4CeT8HAl+qRZAeBNDzLQ73HnntFsmXG0h4iieoHXG+yuJvoSjFoxtIdFuZHHsfl/p6CpsiXzSIKq1Abf2VohpvOF+dU3y55a5TPJXAcH8+iMOXQtAfuoPcRnW2GO7FYfxJSdIN5BmKb5gc84LrHCfJPl80iGL6hXNHb0EVo1y5MIq/EPEVOM7x73B8P6TmqwMm8+UCAkvFJ1jAj3jBdYaDvqkcyRwJAsX0hcnhPnjov9hghQL0RVeQt0iQVUzPKc6V2yC/C3zRIGRVD8XUq7OF6C8CfgS+HJYOJ1hMkK3efNWG8XeB+HIAEcUUKwouMehfKkCo5dx3Vyi+Q4iJfX2Ok2QzsF8zJjHKhijcU0SQNKkoQIgl9vd47uhgPS+0kZ5CNAlT6/gKuVnQxWudh3jduN3E8Qc/H9jvSMQ4OcLJPghRupL42qdB5A0cga1QmOzhM/uLeIia2O4SdbG2hMkePbN5sID52qdB5E21GG9CvMcewj7pTyJt7Ui2qO3B73G4w8n+sVQ49uNxSTuSErXRCdn6iGf3we7pEuIre+KydiQVasu2i0MPJuRWyii+QJLcp7dsxc1nka0reUMb8bXHQvAHiWLzWdhG7wqh10UbHwRfaGz7Nnv1DGqrjvck8u1/DV+JAgS/2oBsfSOEe/6ldlNYNFyoQYj3J3B+6hfWMbX9L+mrqKarRLxuEpLjm5ja/pf42m4rR1KR2wpgFfc3roVivoOC+QKTcH8gjZR4ZVpWgDzH+0LwjcySGPRFMJBdCmROARLgWugP+EJR4otj4JeZW8Rr2Q5O60L9xX9LU+SrnWPQr2UL9Eie4+T4CIlQSpIXOQb9ghk5pQujohYr3l+hiX04Ce9rX5WjmK91QZ39MFa97cP6asFeDMVLf9i+EO3QybEuLDZFvoztCyjmowe5n+X5itsy5os3lqoaMfCUEv00iop3sbSdotDXL6rWI2VzTPrTkK1XZLhTfCWgLUjVTCQsUjpX/YfCPPZEboYSaxSqe2Ne07B0/KwOJADnKzLocwzpHXtF12Bb+1sI99/l9/sXEobUWRFqm8giYeOjnjIlX/u2TWRUP+fbWPe6mvOVO13ShtAOR7VBruKsr+JL16FaMbYo/qoTcM5Xoumbq5obeQdBmRd5si2jACG+MG/TNppvS/xFt/W0gXgZ0ZtXsWqAHemLPjsTLl1r++aqVq280TDv1xU9OZeurbxkU3I0mOP/pPuOa4bu+ople3X01RCEiALQZkfqomrdKH7ckxj5c42NpYv2Le9Z3q+PMlNIdIy5tbwr2tHD46s/RxKKRhoKQ968/yKiG86qnscQXhDCUvbNzbudZwvlds0V3wMVdkdDBlmLizdl9m7XH/rEp1rA2YCW8q9U3I/rFCd2XMfq4FHjbOHIoiu65HWE6oN8hOqFukG26ncYrCMfBrsTKL+97nmsrSMca2v4HmvTeCWc2AE9ncACdNSw8YPm0KzpAKj20GRxQocm9cc/i4lNx7L5rLT+IOulTVe0xSHmshlF3xVtcxZff7g4XH79+hctht056THOlNt4XXGEw8lsr0eYxtH16RzCn851Av6EOd1XMY0rHjzdsjjjaB5ucb52w8P5PpfUbJZvHmM6l7o4Ctnzehqni3a8MaZzZdB0Lj/KzOIap7Xx76TaMAxmAhdSTelqrelcEqa87oytTfxWNeHitvAGb4j72gfg/10bKABRXI7XAAAAAElFTkSuQmCC",AN="/assets/unknown-C4Y5qjv5.png";var s2=function(t){t==null&&(t=new Date().getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,t.constructor==Array?this.init_by_array(t,t.length):this.init_seed(t)};s2.prototype.init_seed=function(t){for(this.mt[0]=t>>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(((t&4294901760)>>>16)*1812433253<<16)+(t&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};s2.prototype.init_by_array=function(t,e){var r,n,i;for(this.init_seed(19650218),r=1,n=0,i=this.N>e?this.N:e;i;i--){var u=this.mt[r-1]^this.mt[r-1]>>>30;this.mt[r]=(this.mt[r]^(((u&4294901760)>>>16)*1664525<<16)+(u&65535)*1664525)+t[n]+n,this.mt[r]>>>=0,r++,n++,r>=this.N&&(this.mt[0]=this.mt[this.N-1],r=1),n>=e&&(n=0)}for(i=this.N-1;i;i--){var u=this.mt[r-1]^this.mt[r-1]>>>30;this.mt[r]=(this.mt[r]^(((u&4294901760)>>>16)*1566083941<<16)+(u&65535)*1566083941)-r,this.mt[r]>>>=0,r++,r>=this.N&&(this.mt[0]=this.mt[this.N-1],r=1)}this.mt[0]=2147483648};s2.prototype.random_int=function(){var t,e=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var r;for(this.mti==this.N+1&&this.init_seed(5489),r=0;r>>1^e[t&1];for(;r>>1^e[t&1];t=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^t>>>1^e[t&1],this.mti=0}return t=this.mt[this.mti++],t^=t>>>11,t^=t<<7&2636928640,t^=t<<15&4022730752,t^=t>>>18,t>>>0};s2.prototype.random_int31=function(){return this.random_int()>>>1};s2.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};s2.prototype.random=function(){return this.random_int()*(1/4294967296)};s2.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};s2.prototype.random_long=function(){var t=this.random_int()>>>5,e=this.random_int()>>>6;return(t*67108864+e)*(1/9007199254740992)};var wN=s2,Wb={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(window,function(){return function(r){var n={};function i(u){if(n[u])return n[u].exports;var a=n[u]={i:u,l:!1,exports:{}};return r[u].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=r,i.c=n,i.d=function(u,a,o){i.o(u,a)||Object.defineProperty(u,a,{enumerable:!0,get:o})},i.r=function(u){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},i.t=function(u,a){if(1&a&&(u=i(u)),8&a||4&a&&typeof u=="object"&&u&&u.__esModule)return u;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:u}),2&a&&typeof u!="string")for(var s in u)i.d(o,s,(function(c){return u[c]}).bind(null,s));return o},i.n=function(u){var a=u&&u.__esModule?function(){return u.default}:function(){return u};return i.d(a,"a",a),a},i.o=function(u,a){return Object.prototype.hasOwnProperty.call(u,a)},i.p="",i(i.s=1)}([function(r,n,i){var u,a;u=[i(2)],(a=(function(o){function s(h){if(s.is(h,"function"))return c?h():o.on("raphael.DOMload",h);if(s.is(h,z))return s._engine.create[B](s,h.splice(0,3+s.is(h[0],I))).add(h);var g=Array.prototype.slice.call(arguments,0);if(s.is(g[g.length-1],"function")){var E=g.pop();return c?E.call(s._engine.create[B](s,g)):o.on("raphael.DOMload",function(){E.call(s._engine.create[B](s,g))})}return s._engine.create[B](s,arguments)}s.version="2.3.0",s.eve=o;var c,d,y=/[, ]+/,A={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},C=/\{(\d+)\}/g,T="hasOwnProperty",U={doc:document,win:window},P={was:Object.prototype[T].call(U.win,"Raphael"),is:U.win.Raphael},_=function(){this.ca=this.customAttributes={}},B="apply",N="concat",W="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,G="",t0=" ",Z=String,e0="split",o0="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[e0](t0),d0={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},c0=Z.prototype.toLowerCase,h0=Math,j=h0.max,p=h0.min,v=h0.abs,M=h0.pow,k=h0.PI,I="number",z="array",V=Object.prototype.toString,b=(s._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),l={NaN:1,Infinity:1,"-Infinity":1},m=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,D=h0.round,f=parseFloat,S=parseInt,O=Z.prototype.toUpperCase,$=s._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},H=s._availableAnimAttrs={blur:I,"clip-rect":"csv",cx:I,cy:I,fill:"colour","fill-opacity":I,"font-size":I,height:I,opacity:I,path:"path",r:I,rx:I,ry:I,stroke:"colour","stroke-opacity":I,"stroke-width":I,transform:"transform",width:I,x:I,y:I},n0=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,u0={hs:1,rg:1},s0=/,?([achlmqrstvxz]),?/gi,g0=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,y0=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,_0=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,z0=(s._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),M0=function(h,g){return f(h)-f(g)},I0=function(h){return h},R0=s._rectPath=function(h,g,E,F,R){return R?[["M",h+R,g],["l",E-2*R,0],["a",R,R,0,0,1,R,R],["l",0,F-2*R],["a",R,R,0,0,1,-R,R],["l",2*R-E,0],["a",R,R,0,0,1,-R,-R],["l",0,2*R-F],["a",R,R,0,0,1,R,-R],["z"]]:[["M",h,g],["l",E,0],["l",0,F],["l",-E,0],["z"]]},V0=function(h,g,E,F){return F==null&&(F=E),[["M",h,g],["m",0,-F],["a",E,F,0,1,1,0,2*F],["a",E,F,0,1,1,0,-2*F],["z"]]},G0=s._getPath={path:function(h){return h.attr("path")},circle:function(h){var g=h.attrs;return V0(g.cx,g.cy,g.r)},ellipse:function(h){var g=h.attrs;return V0(g.cx,g.cy,g.rx,g.ry)},rect:function(h){var g=h.attrs;return R0(g.x,g.y,g.width,g.height,g.r)},image:function(h){var g=h.attrs;return R0(g.x,g.y,g.width,g.height)},text:function(h){var g=h._getBBox();return R0(g.x,g.y,g.width,g.height)},set:function(h){var g=h._getBBox();return R0(g.x,g.y,g.width,g.height)}},X0=s.mapPath=function(h,g){if(!g)return h;var E,F,R,K,Q,J,Y;for(R=0,Q=(h=me(h)).length;R',($0=Z0.firstChild).style.behavior="url(#default#VML)",!$0||typeof $0.adj!="object")return s.type=G;Z0=null}function p1(h){if(typeof h=="function"||Object(h)!==h)return h;var g=new h.constructor;for(var E in h)h[T](E)&&(g[E]=p1(h[E]));return g}s.svg=!(s.vml=s.type=="VML"),s._Paper=_,s.fn=d=_.prototype=s.prototype,s._id=0,s.is=function(h,g){return(g=c0.call(g))=="finite"?!l[T](+h):g=="array"?h instanceof Array:g=="null"&&h===null||g==typeof h&&h!==null||g=="object"&&h===Object(h)||g=="array"&&Array.isArray&&Array.isArray(h)||V.call(h).slice(8,-1).toLowerCase()==g},s.angle=function(h,g,E,F,R,K){if(R==null){var Q=h-E,J=g-F;return Q||J?(180+180*h0.atan2(-J,-Q)/k+360)%360:0}return s.angle(h,g,R,K)-s.angle(E,F,R,K)},s.rad=function(h){return h%360*k/180},s.deg=function(h){return Math.round(180*h/k%360*1e3)/1e3},s.snapTo=function(h,g,E){if(E=s.is(E,"finite")?E:10,s.is(h,z)){for(var F=h.length;F--;)if(v(h[F]-g)<=E)return h[F]}else{var R=g%(h=+h);if(Rh-E)return g-R+h}return g};var f1,L;s.createUUID=(f1=/[xy]/g,L=function(h){var g=16*h0.random()|0;return(h=="x"?g:3&g|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(f1,L).toUpperCase()}),s.setWindow=function(h){o("raphael.setWindow",s,U.win,h),U.win=h,U.doc=U.win.document,s._engine.initWin&&s._engine.initWin(U.win)};var x=function(h){if(s.vml){var g,E=/^\s+|\s+$/g;try{var F=new ActiveXObject("htmlfile");F.write(""),F.close(),g=F.body}catch{g=createPopup().document.body}var R=g.createTextRange();x=O0(function(Q){try{g.style.color=Z(Q).replace(E,G);var J=R.queryCommandValue("ForeColor");return"#"+("000000"+(J=(255&J)<<16|65280&J|(16711680&J)>>>16).toString(16)).slice(-6)}catch{return"none"}})}else{var K=U.doc.createElement("i");K.title="Raphaël Colour Picker",K.style.display="none",U.doc.body.appendChild(K),x=O0(function(Q){return K.style.color=Q,U.doc.defaultView.getComputedStyle(K,G).getPropertyValue("color")})}return x(h)},w=function(){return"hsb("+[this.h,this.s,this.b]+")"},q=function(){return"hsl("+[this.h,this.s,this.l]+")"},i0=function(){return this.hex},f0=function(h,g,E){if(g==null&&s.is(h,"object")&&"r"in h&&"g"in h&&"b"in h&&(E=h.b,g=h.g,h=h.r),g==null&&s.is(h,"string")){var F=s.getRGB(h);h=F.r,g=F.g,E=F.b}return(h>1||g>1||E>1)&&(h/=255,g/=255,E/=255),[h,g,E]},p0=function(h,g,E,F){var R={r:h*=255,g:g*=255,b:E*=255,hex:s.rgb(h,g,E),toString:i0};return s.is(F,"finite")&&(R.opacity=F),R};function O0(h,g,E){return function F(){var R=Array.prototype.slice.call(arguments,0),K=R.join("␀"),Q=F.cache=F.cache||{},J=F.count=F.count||[];return Q[T](K)?(function(Y,a0){for(var x0=0,C0=Y.length;x0=1e3&&delete Q[J.shift()],J.push(K),Q[K]=h[B](g,R),E?E(Q[K]):Q[K])}}s.color=function(h){var g;return s.is(h,"object")&&"h"in h&&"s"in h&&"b"in h?(g=s.hsb2rgb(h),h.r=g.r,h.g=g.g,h.b=g.b,h.hex=g.hex):s.is(h,"object")&&"h"in h&&"s"in h&&"l"in h?(g=s.hsl2rgb(h),h.r=g.r,h.g=g.g,h.b=g.b,h.hex=g.hex):(s.is(h,"string")&&(h=s.getRGB(h)),s.is(h,"object")&&"r"in h&&"g"in h&&"b"in h?(g=s.rgb2hsl(h),h.h=g.h,h.s=g.s,h.l=g.l,g=s.rgb2hsb(h),h.v=g.b):(h={hex:"none"}).r=h.g=h.b=h.h=h.s=h.v=h.l=-1),h.toString=i0,h},s.hsb2rgb=function(h,g,E,F){var R,K,Q,J,Y;return this.is(h,"object")&&"h"in h&&"s"in h&&"b"in h&&(E=h.b,g=h.s,F=h.o,h=h.h),J=(Y=E*g)*(1-v((h=(h*=360)%360/60)%2-1)),R=K=Q=E-Y,p0(R+=[Y,J,0,0,J,Y][h=~~h],K+=[J,Y,Y,J,0,0][h],Q+=[0,0,J,Y,Y,J][h],F)},s.hsl2rgb=function(h,g,E,F){var R,K,Q,J,Y;return this.is(h,"object")&&"h"in h&&"s"in h&&"l"in h&&(E=h.l,g=h.s,h=h.h),(h>1||g>1||E>1)&&(h/=360,g/=100,E/=100),J=(Y=2*g*(E<.5?E:1-E))*(1-v((h=(h*=360)%360/60)%2-1)),R=K=Q=E-Y/2,p0(R+=[Y,J,0,0,J,Y][h=~~h],K+=[J,Y,Y,J,0,0][h],Q+=[0,0,J,Y,Y,J][h],F)},s.rgb2hsb=function(h,g,E){var F,R;return h=(E=f0(h,g,E))[0],g=E[1],E=E[2],{h:(((R=(F=j(h,g,E))-p(h,g,E))==0?null:F==h?(g-E)/R:F==g?(E-h)/R+2:(h-g)/R+4)+360)%6*60/360,s:R==0?0:R/F,b:F,toString:w}},s.rgb2hsl=function(h,g,E){var F,R,K,Q;return h=(E=f0(h,g,E))[0],g=E[1],E=E[2],F=((R=j(h,g,E))+(K=p(h,g,E)))/2,{h:(((Q=R-K)==0?null:R==h?(g-E)/Q:R==g?(E-h)/Q+2:(h-g)/Q+4)+360)%6*60/360,s:Q==0?0:F<.5?Q/(2*F):Q/(2-2*F),l:F,toString:q}},s._path2string=function(){return this.join(",").replace(s0,"$1")},s._preload=function(h,g){var E=U.doc.createElement("img");E.style.cssText="position:absolute;left:-9999em;top:-9999em",E.onload=function(){g.call(this),this.onload=null,U.doc.body.removeChild(this)},E.onerror=function(){U.doc.body.removeChild(this)},U.doc.body.appendChild(E),E.src=h};function H0(){return this.hex}function K0(h,g){for(var E=[],F=0,R=h.length;R-2*!g>F;F+=2){var K=[{x:+h[F-2],y:+h[F-1]},{x:+h[F],y:+h[F+1]},{x:+h[F+2],y:+h[F+3]},{x:+h[F+4],y:+h[F+5]}];g?F?R-4==F?K[3]={x:+h[0],y:+h[1]}:R-2==F&&(K[2]={x:+h[0],y:+h[1]},K[3]={x:+h[2],y:+h[3]}):K[0]={x:+h[R-2],y:+h[R-1]}:R-4==F?K[3]=K[2]:F||(K[0]={x:+h[F],y:+h[F+1]}),E.push(["C",(-K[0].x+6*K[1].x+K[2].x)/6,(-K[0].y+6*K[1].y+K[2].y)/6,(K[1].x+6*K[2].x-K[3].x)/6,(K[1].y+6*K[2].y-K[3].y)/6,K[2].x,K[2].y])}return E}s.getRGB=O0(function(h){if(!h||(h=Z(h)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:H0};if(h=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:H0};!u0[T](h.toLowerCase().substring(0,2))&&h.charAt()!="#"&&(h=x(h));var g,E,F,R,K,Q,J=h.match(b);return J?(J[2]&&(F=S(J[2].substring(5),16),E=S(J[2].substring(3,5),16),g=S(J[2].substring(1,3),16)),J[3]&&(F=S((K=J[3].charAt(3))+K,16),E=S((K=J[3].charAt(2))+K,16),g=S((K=J[3].charAt(1))+K,16)),J[4]&&(Q=J[4][e0](n0),g=f(Q[0]),Q[0].slice(-1)=="%"&&(g*=2.55),E=f(Q[1]),Q[1].slice(-1)=="%"&&(E*=2.55),F=f(Q[2]),Q[2].slice(-1)=="%"&&(F*=2.55),J[1].toLowerCase().slice(0,4)=="rgba"&&(R=f(Q[3])),Q[3]&&Q[3].slice(-1)=="%"&&(R/=100)),J[5]?(Q=J[5][e0](n0),g=f(Q[0]),Q[0].slice(-1)=="%"&&(g*=2.55),E=f(Q[1]),Q[1].slice(-1)=="%"&&(E*=2.55),F=f(Q[2]),Q[2].slice(-1)=="%"&&(F*=2.55),(Q[0].slice(-3)=="deg"||Q[0].slice(-1)=="°")&&(g/=360),J[1].toLowerCase().slice(0,4)=="hsba"&&(R=f(Q[3])),Q[3]&&Q[3].slice(-1)=="%"&&(R/=100),s.hsb2rgb(g,E,F,R)):J[6]?(Q=J[6][e0](n0),g=f(Q[0]),Q[0].slice(-1)=="%"&&(g*=2.55),E=f(Q[1]),Q[1].slice(-1)=="%"&&(E*=2.55),F=f(Q[2]),Q[2].slice(-1)=="%"&&(F*=2.55),(Q[0].slice(-3)=="deg"||Q[0].slice(-1)=="°")&&(g/=360),J[1].toLowerCase().slice(0,4)=="hsla"&&(R=f(Q[3])),Q[3]&&Q[3].slice(-1)=="%"&&(R/=100),s.hsl2rgb(g,E,F,R)):((J={r:g,g:E,b:F,toString:H0}).hex="#"+(16777216|F|E<<8|g<<16).toString(16).slice(1),s.is(R,"finite")&&(J.opacity=R),J)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:H0}},s),s.hsb=O0(function(h,g,E){return s.hsb2rgb(h,g,E).hex}),s.hsl=O0(function(h,g,E){return s.hsl2rgb(h,g,E).hex}),s.rgb=O0(function(h,g,E){function F(R){return R+.5|0}return"#"+(16777216|F(E)|F(g)<<8|F(h)<<16).toString(16).slice(1)}),s.getColor=function(h){var g=this.getColor.start=this.getColor.start||{h:0,s:1,b:h||.75},E=this.hsb2rgb(g.h,g.s,g.b);return g.h+=.075,g.h>1&&(g.h=0,g.s-=.2,g.s<=0&&(this.getColor.start={h:0,s:1,b:g.b})),E.hex},s.getColor.reset=function(){delete this.start},s.parsePathString=function(h){if(!h)return null;var g=Y0(h);if(g.arr)return e1(g.arr);var E={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},F=[];return s.is(h,z)&&s.is(h[0],z)&&(F=e1(h)),F.length||Z(h).replace(g0,function(R,K,Q){var J=[],Y=K.toLowerCase();if(Q.replace(_0,function(a0,x0){x0&&J.push(+x0)}),Y=="m"&&J.length>2&&(F.push([K][N](J.splice(0,2))),Y="l",K=K=="m"?"l":"L"),Y=="r")F.push([K][N](J));else for(;J.length>=E[Y]&&(F.push([K][N](J.splice(0,E[Y]))),E[Y]););}),F.toString=s._path2string,g.arr=e1(F),F},s.parseTransformString=O0(function(h){if(!h)return null;var g=[];return s.is(h,z)&&s.is(h[0],z)&&(g=e1(h)),g.length||Z(h).replace(y0,function(E,F,R){var K=[];c0.call(F),R.replace(_0,function(Q,J){J&&K.push(+J)}),g.push([F][N](K))}),g.toString=s._path2string,g},this,function(h){if(!h)return h;for(var g=[],E=0;E1?1:Y<0?0:Y)/2,x0=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],C0=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],A0=0,m0=0;m0<12;m0++){var w0=a0*x0[m0]+a0,F0=j0(w0,h,E,R,Q),E0=j0(w0,g,F,K,J),v0=F0*F0+E0*E0;A0+=C0[m0]*h0.sqrt(v0)}return a0*A0}function be(h,g,E,F,R,K,Q,J){if(!(j(h,E)j(R,Q)||j(g,F)j(K,J))){var Y=(h-E)*(K-J)-(g-F)*(R-Q);if(Y){var a0=((h*F-g*E)*(R-Q)-(h-E)*(R*J-K*Q))/Y,x0=((h*F-g*E)*(K-J)-(g-F)*(R*J-K*Q))/Y,C0=+a0.toFixed(2),A0=+x0.toFixed(2);if(!(C0<+p(h,E).toFixed(2)||C0>+j(h,E).toFixed(2)||C0<+p(R,Q).toFixed(2)||C0>+j(R,Q).toFixed(2)||A0<+p(g,F).toFixed(2)||A0>+j(g,F).toFixed(2)||A0<+p(K,J).toFixed(2)||A0>+j(K,J).toFixed(2)))return{x:a0,y:x0}}}}function b1(h,g,E){var F=s.bezierBBox(h),R=s.bezierBBox(g);if(!s.isBBoxIntersect(F,R))return E?0:[];for(var K=o1.apply(0,h),Q=o1.apply(0,g),J=j(~~(K/5),1),Y=j(~~(Q/5),1),a0=[],x0=[],C0={},A0=E?0:[],m0=0;m0=0&&J0<=1.001&&n1>=0&&n1<=1.001&&(E?A0++:A0.push({x:r1.x,y:r1.y,t1:p(J0,1),t2:p(n1,1)}))}}return A0}function g1(h,g,E){h=s._path2curve(h),g=s._path2curve(g);for(var F,R,K,Q,J,Y,a0,x0,C0,A0,m0=E?0:[],w0=0,F0=h.length;w0U0||v0=h.x&&g<=h.x2&&E>=h.y&&E<=h.y2},s.isBBoxIntersect=function(h,g){var E=s.isPointInsideBBox;return E(g,h.x,h.y)||E(g,h.x2,h.y)||E(g,h.x,h.y2)||E(g,h.x2,h.y2)||E(h,g.x,g.y)||E(h,g.x2,g.y)||E(h,g.x,g.y2)||E(h,g.x2,g.y2)||(h.xg.x||g.xh.x)&&(h.yg.y||g.yh.y)},s.pathIntersection=function(h,g){return g1(h,g)},s.pathIntersectionNumber=function(h,g){return g1(h,g,1)},s.isPointInsidePath=function(h,g,E){var F=s.pathBBox(h);return s.isPointInsideBBox(F,g,E)&&g1(h,[["M",g,E],["H",F.x2+10]],1)%2==1},s._removedFactory=function(h){return function(){o("raphael.log",null,"Raphaël: you are calling to method “"+h+"” of removed object",h)}};var ne=s.pathBBox=function(h){var g=Y0(h);if(g.bbox)return p1(g.bbox);if(!h)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var E,F=0,R=0,K=[],Q=[],J=0,Y=(h=me(h)).length;J1&&(E*=v0=h0.sqrt(v0),F*=v0);var U0=E*E,B0=F*F,S0=(K==Q?-1:1)*h0.sqrt(v((U0*B0-U0*E0*E0-B0*F0*F0)/(U0*E0*E0+B0*F0*F0))),D0=S0*E*E0/F+(h+J)/2,r1=S0*-F*F0/E+(g+Y)/2,J0=h0.asin(((g-r1)/F).toFixed(9)),n1=h0.asin(((Y-r1)/F).toFixed(9));(J0=hn1&&(J0-=2*k),!Q&&n1>J0&&(n1-=2*k)}var Gn=n1-J0;if(v(Gn)>C0){var mi=n1,et=J,ur=Y;n1=J0+C0*(Q&&n1>J0?1:-1),J=D0+E*h0.cos(n1),Y=r1+F*h0.sin(n1),m0=ve(J,Y,E,F,R,0,Q,et,ur,[n1,mi,D0,r1])}Gn=n1-J0;var Wn=h0.cos(J0),Vn=h0.sin(J0),u5=h0.cos(n1),Ir=h0.sin(n1),on=h0.tan(Gn/4),a5=4/3*E*on,p3=4/3*F*on,b3=[h,g],Jn=[h+a5*Vn,g-p3*Wn],m3=[J+a5*Ir,Y-p3*u5],y3=[J,Y];if(Jn[0]=2*b3[0]-Jn[0],Jn[1]=2*b3[1]-Jn[1],a0)return[Jn,m3,y3][N](m0);for(var g3=[],l2=0,dm=(m0=[Jn,m3,y3][N](m0).join()[e0](",")).length;l2"1e12"&&(A0=.5),v(m0)>"1e12"&&(m0=.5),A0>0&&A0<1&&(Y=d1(h,g,E,F,R,K,Q,J,A0),F0.push(Y.x),w0.push(Y.y)),m0>0&&m0<1&&(Y=d1(h,g,E,F,R,K,Q,J,m0),F0.push(Y.x),w0.push(Y.y)),a0=K-2*F+g-(J-2*K+F),C0=g-F,A0=(-(x0=2*(F-g)-2*(K-F))+h0.sqrt(x0*x0-4*a0*C0))/2/a0,m0=(-x0-h0.sqrt(x0*x0-4*a0*C0))/2/a0,v(A0)>"1e12"&&(A0=.5),v(m0)>"1e12"&&(m0=.5),A0>0&&A0<1&&(Y=d1(h,g,E,F,R,K,Q,J,A0),F0.push(Y.x),w0.push(Y.y)),m0>0&&m0<1&&(Y=d1(h,g,E,F,R,K,Q,J,m0),F0.push(Y.x),w0.push(Y.y)),{min:{x:p[B](0,F0),y:p[B](0,w0)},max:{x:j[B](0,F0),y:j[B](0,w0)}}}),me=s._path2curve=O0(function(h,g){var E=!g&&Y0(h);if(!g&&E.curve)return e1(E.curve);for(var F=ce(h),R=g&&ce(g),K={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},Q={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},J=function(S0,D0,r1){var J0,n1;if(!S0)return["C",D0.x,D0.y,D0.x,D0.y,D0.x,D0.y];switch(!(S0[0]in{T:1,Q:1})&&(D0.qx=D0.qy=null),S0[0]){case"M":D0.X=S0[1],D0.Y=S0[2];break;case"A":S0=["C"][N](ve[B](0,[D0.x,D0.y][N](S0.slice(1))));break;case"S":r1=="C"||r1=="S"?(J0=2*D0.x-D0.bx,n1=2*D0.y-D0.by):(J0=D0.x,n1=D0.y),S0=["C",J0,n1][N](S0.slice(1));break;case"T":r1=="Q"||r1=="T"?(D0.qx=2*D0.x-D0.qx,D0.qy=2*D0.y-D0.qy):(D0.qx=D0.x,D0.qy=D0.y),S0=["C"][N](l1(D0.x,D0.y,D0.qx,D0.qy,S0[1],S0[2]));break;case"Q":D0.qx=S0[1],D0.qy=S0[2],S0=["C"][N](l1(D0.x,D0.y,S0[1],S0[2],S0[3],S0[4]));break;case"L":S0=["C"][N](m1(D0.x,D0.y,S0[1],S0[2]));break;case"H":S0=["C"][N](m1(D0.x,D0.y,S0[1],D0.y));break;case"V":S0=["C"][N](m1(D0.x,D0.y,D0.x,S0[1]));break;case"Z":S0=["C"][N](m1(D0.x,D0.y,D0.X,D0.Y))}return S0},Y=function(S0,D0){if(S0[D0].length>7){S0[D0].shift();for(var r1=S0[D0];r1.length;)x0[D0]="A",R&&(C0[D0]="A"),S0.splice(D0++,0,["C"][N](r1.splice(0,6)));S0.splice(D0,1),F0=j(F.length,R&&R.length||0)}},a0=function(S0,D0,r1,J0,n1){S0&&D0&&S0[n1][0]=="M"&&D0[n1][0]!="M"&&(D0.splice(n1,0,["M",J0.x,J0.y]),r1.bx=0,r1.by=0,r1.x=S0[n1][1],r1.y=S0[n1][2],F0=j(F.length,R&&R.length||0))},x0=[],C0=[],A0="",m0="",w0=0,F0=j(F.length,R&&R.length||0);w0.01;)U0=o1(a0,x0,C0,A0,m0,w0,F0,E0,S0+=(U0F){if(g&&!C0.start){if(x0+=["C"+(a0=en(K,Q,J[1],J[2],J[3],J[4],J[5],J[6],F-A0)).start.x,a0.start.y,a0.m.x,a0.m.y,a0.x,a0.y],R)return x0;C0.start=x0,x0=["M"+a0.x,a0.y+"C"+a0.n.x,a0.n.y,a0.end.x,a0.end.y,J[5],J[6]].join(),A0+=Y,K=+J[5],Q=+J[6];continue}if(!h&&!g)return{x:(a0=en(K,Q,J[1],J[2],J[3],J[4],J[5],J[6],F-A0)).x,y:a0.y,alpha:a0.alpha}}A0+=Y,K=+J[5],Q=+J[6]}x0+=J.shift()+J}return C0.end=x0,(a0=h?A0:g?C0:s.findDotsAtSegment(K,Q,J[0],J[1],J[2],J[3],J[4],J[5],1)).alpha&&(a0={x:a0.x,y:a0.y,alpha:a0.alpha}),a0}},qn=tn(1),Hn=tn(),rn=tn(0,1);s.getTotalLength=qn,s.getPointAtLength=Hn,s.getSubpath=function(h,g,E){if(this.getTotalLength(h)-E<1e-6)return rn(h,g).end;var F=rn(h,E,1);return g?rn(F,g).end:F},t1.getTotalLength=function(){var h=this.getPath();if(h)return this.node.getTotalLength?this.node.getTotalLength():qn(h)},t1.getPointAtLength=function(h){var g=this.getPath();if(g)return Hn(g,h)},t1.getPath=function(){var h,g=s._getPath[this.type];if(this.type!="text"&&this.type!="set")return g&&(h=g(this)),h},t1.getSubpath=function(h,g){var E=this.getPath();if(E)return s.getSubpath(E,h,g)};var Ee=s.easing_formulas={linear:function(h){return h},"<":function(h){return M(h,1.7)},">":function(h){return M(h,.48)},"<>":function(h){var g=.48-h/1.04,E=h0.sqrt(.1734+g*g),F=E-g,R=-E-g,K=M(v(F),1/3)*(F<0?-1:1)+M(v(R),1/3)*(R<0?-1:1)+.5;return 3*(1-K)*K*K+K*K*K},backIn:function(h){var g=1.70158;return h*h*((g+1)*h-g)},backOut:function(h){var g=1.70158;return(h-=1)*h*((g+1)*h+g)+1},elastic:function(h){return h==!!h?h:M(2,-10*h)*h0.sin(2*k*(h-.075)/.3)+1},bounce:function(h){var g=7.5625,E=2.75;return h<1/E?g*h*h:h<2/E?g*(h-=1.5/E)*h+.75:h<2.5/E?g*(h-=2.25/E)*h+.9375:g*(h-=2.625/E)*h+.984375}};Ee.easeIn=Ee["ease-in"]=Ee["<"],Ee.easeOut=Ee["ease-out"]=Ee[">"],Ee.easeInOut=Ee["ease-in-out"]=Ee["<>"],Ee["back-in"]=Ee.backIn,Ee["back-out"]=Ee.backOut;var c1=[],Kn=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(h){setTimeout(h,16)},nn=function(){for(var h=+new Date,g=0;g1&&!E.next){for(R in x0)x0[T](R)&&(m0[R]=E.totalOrigin[R]);E.el.attr(m0),pi(E.anim,E.el,E.anim.percents[0],null,E.totalOrigin,E.repeat-1)}E.next&&!E.stop&&pi(E.anim,E.el,E.next,null,E.totalOrigin,E.repeat)}}}c1.length&&Kn(nn)},un=function(h){return h>255?255:h<0?0:h};function hi(h,g,E,F,R,K){var Q=3*g,J=3*(F-g)-Q,Y=1-Q-J,a0=3*E,x0=3*(R-E)-a0,C0=1-a0-x0;function A0(m0){return((Y*m0+J)*m0+Q)*m0}return function(m0,w0){var F0=function(E0,v0){var U0,B0,S0,D0,r1,J0;for(S0=E0,J0=0;J0<8;J0++){if(D0=A0(S0)-E0,v(D0)B0)return B0;for(;U0D0?U0=S0:B0=S0,S0=(B0-U0)/2+U0}return S0}(m0,w0);return((C0*F0+x0)*F0+a0)*F0}(h,1/(200*K))}function Ur(h,g){var E=[],F={};if(this.ms=g,this.times=1,h){for(var R in h)h[T](R)&&(F[f(R)]=h[R],E.push(f(R)));E.sort(M0)}this.anim=F,this.top=E[E.length-1],this.percents=E}function pi(h,g,E,F,R,K){E=f(E);var Q,J,Y,a0,x0,C0,A0=h.ms,m0={},w0={},F0={};if(F)for(v0=0,U0=c1.length;v0F*h.top){E=h.percents[v0],x0=h.percents[v0-1]||0,A0=A0/h.top*(E-x0),a0=h.percents[v0+1],Q=h.anim[E];break}F&&g.attr(h.anim[h.percents[v0]])}if(Q){if(J)J.initstatus=F,J.start=new Date-J.ms*F;else{for(var B0 in Q)if(Q[T](B0)&&(H[T](B0)||g.paper.customAttributes[T](B0)))switch(m0[B0]=g.attr(B0),m0[B0]==null&&(m0[B0]=$[B0]),w0[B0]=Q[B0],H[B0]){case I:F0[B0]=(w0[B0]-m0[B0])/A0;break;case"colour":m0[B0]=s.getRGB(m0[B0]);var S0=s.getRGB(w0[B0]);F0[B0]={r:(S0.r-m0[B0].r)/A0,g:(S0.g-m0[B0].g)/A0,b:(S0.b-m0[B0].b)/A0};break;case"path":var D0=me(m0[B0],w0[B0]),r1=D0[1];for(m0[B0]=D0[0],F0[B0]=[],v0=0,U0=m0[B0].length;v0J&&(J=a0)}!h[J+="%"].callback&&(h[J].callback=F)}return new Ur(h,g)},t1.animate=function(h,g,E,F){if(this.removed)return F&&F.call(this),this;var R=h instanceof Ur?h:s.animation(h,g,E,F);return pi(R,this,R.percents[0],null,this.attr()),this},t1.setTime=function(h,g){return h&&g!=null&&this.status(h,p(g,h.ms)/h.ms),this},t1.status=function(h,g){var E,F,R=[],K=0;if(g!=null)return pi(h,this,-1,p(g,1)),this;for(E=c1.length;K1)for(var t0=0,Z=G.length;t0.5)-1;U(l-.5,2)+U(S-.5,2)>.25&&(S=A.sqrt(.25-U(l-.5,2))*V0+.5)&&S!=.5&&(S=S.toFixed(5)-1e-5*V0)}return B})).split(/\s*\-\s*/),m=="linear"){var u0=f.shift();if(u0=-d(u0),isNaN(u0))return null;var s0=[0,0,A.cos(o.rad(u0)),A.sin(o.rad(u0))],g0=1/(C(T(s0[2]),T(s0[3]))||1);s0[2]*=g0,s0[3]*=g0,s0[2]<0&&(s0[0]=-s0[2],s0[2]=0),s0[3]<0&&(s0[1]=-s0[3],s0[3]=0)}var y0=o._parseDots(f);if(!y0)return null;if(D=D.replace(/[\(\)\s,\xb0#]/g,"_"),b.gradient&&D!=b.gradient.id&&($.defs.removeChild(b.gradient),delete b.gradient),!b.gradient){n0=Z(m+"Gradient",{id:D}),b.gradient=n0,Z(n0,m=="radial"?{fx:l,fy:S}:{x1:s0[0],y1:s0[1],x2:s0[2],y2:s0[3],gradientTransform:b.matrix.invert()}),$.defs.appendChild(n0);for(var _0=0,z0=y0.length;_01?R0.opacity/100:R0.opacity});case"stroke":R0=o.getRGB(O),m.setAttribute(S,R0.hex),S=="stroke"&&R0[s]("opacity")&&Z(m,{"stroke-opacity":R0.opacity>1?R0.opacity/100:R0.opacity}),S=="stroke"&&b._.arrows&&("startString"in b._.arrows&&c0(b,b._.arrows.startString),"endString"in b._.arrows&&c0(b,b._.arrows.endString,1));break;case"gradient":(b.type=="circle"||b.type=="ellipse"||c(O).charAt()!="r")&&e0(b,O);break;case"opacity":D.gradient&&!D[s]("stroke-opacity")&&Z(m,{"stroke-opacity":O>1?O/100:O});case"fill-opacity":if(D.gradient){(V0=o._g.doc.getElementById(m.getAttribute("fill").replace(/^url\(#|\)$/g,B)))&&(G0=V0.getElementsByTagName("stop"),Z(G0[G0.length-1],{"stop-opacity":O}));break}default:S=="font-size"&&(O=y(O,10)+"px");var X0=S.replace(/(\-.)/g,function($0){return $0.substring(1).toUpperCase()});m.style[X0]=O,b._.dirty=1,m.setAttribute(S,O)}}v(b,f),m.style.visibility=l},v=function(b,f){if(b.type=="text"&&(f[s]("text")||f[s]("font")||f[s]("font-size")||f[s]("x")||f[s]("y"))){var m=b.attrs,D=b.node,l=D.firstChild?y(o._g.doc.defaultView.getComputedStyle(D.firstChild,B).getPropertyValue("font-size"),10):10;if(f[s]("text")){for(m.text=f.text;D.firstChild;)D.removeChild(D.firstChild);for(var S,O=c(f.text).split(` -`),$=[],H=0,n0=O.length;H"));var q=x.getBoundingClientRect();H.W=l.w=(q.right-q.left)/100,H.H=l.h=(q.bottom-q.top)/100,H.X=l.x,H.Y=l.y+H.H/2,("x"in m||"y"in m)&&(H.path.v=o.format("m{0},{1}l{2},{1}",A(l.x*o0),A(l.y*o0),A(l.x*o0)+1));for(var i0=["x","y","text","font","font-family","font-weight","font-style","font-size"],l0=0,p0=i0.length;l0.25&&(_0=y.sqrt(.25-l(y0-.5,2))*(2*(_0>.5)-1)+.5),O=y0+B+_0),N})).split(/\s*\-\s*/),S=="linear"){var $=m.shift();if($=-d($),isNaN($))return null}var H=o._parseDots(m);if(!H)return null;if(f=f.shape||f.node,H.length){f.removeChild(D),D.on=!0,D.method="none",D.color=H[0].color,D.color2=H[H.length-1].color;for(var n0=[],u0=0,s0=H.length;u0')}}catch{p=function(l){return m.createElement("<"+l+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},o._engine.initWin(o._g.win),o._engine.create=function(){var f=o._getContainer.apply(0,arguments),m=f.container,D=f.height,l=f.width,S=f.x,O=f.y;if(!m)throw new Error("VML container not found.");var $=new o._Paper,H=$.canvas=o._g.doc.createElement("div"),n0=H.style;return S=S||0,O=O||0,l=l||512,D=D||342,$.width=l,$.height=D,l==+l&&(l+="px"),D==+D&&(D+="px"),$.coordsize=216e5+B+216e5,$.coordorigin="0 0",$.span=o._g.doc.createElement("span"),$.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",H.appendChild($.span),n0.cssText=o.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",l,D),m==1?(o._g.doc.body.appendChild(H),n0.left=S+"px",n0.top=O+"px",n0.position="absolute"):m.firstChild?m.insertBefore(H,m.firstChild):m.appendChild(H),$.renderfix=function(){},$},o.prototype.clear=function(){o.eve("raphael.clear",this),this.canvas.innerHTML=N,this.span=o._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},o.prototype.remove=function(){for(var f in o.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[f]=typeof this[f]=="function"?o._removedFactory(f):null;return!0};var V=o.st;for(var b in z)z[s](b)&&!V[s](b)&&(V[b]=function(f){return function(){var m=arguments;return this.forEach(function(D){D[f].apply(D,m)})}}(b))}}).apply(n,u))===void 0||(r.exports=a)}])})})(Wb);var EN=Wb.exports,CN=EN;function FN(t){var e=document.createElement("div");e.style.borderRadius="50px",e.style.overflow="hidden",e.style.padding="0px",e.style.margin="0px",e.style.width=""+t+"px",e.style.height=""+t+"px",e.style.display="inline-block";var r=CN(e,100,100);return{paper:r,container:e}}var BN=FN,Vb={exports:{}};(function(t){var e=function(){function r(s,c,d,y){typeof c=="object"&&(d=c.depth,y=c.prototype,c.filter,c=c.circular);var A=[],C=[],T=typeof Buffer<"u";typeof c>"u"&&(c=!0),typeof d>"u"&&(d=1/0);function U(P,_){if(P===null)return null;if(_==0)return P;var B,N;if(typeof P!="object")return P;if(r.__isArray(P))B=[];else if(r.__isRegExp(P))B=new RegExp(P.source,o(P)),P.lastIndex&&(B.lastIndex=P.lastIndex);else if(r.__isDate(P))B=new Date(P.getTime());else{if(T&&Buffer.isBuffer(P))return Buffer.allocUnsafe?B=Buffer.allocUnsafe(P.length):B=new Buffer(P.length),P.copy(B),B;typeof y>"u"?(N=Object.getPrototypeOf(P),B=Object.create(N)):(B=Object.create(y),N=y)}if(c){var W=A.indexOf(P);if(W!=-1)return C[W];A.push(P),C.push(B)}for(var G in P){var t0;N&&(t0=Object.getOwnPropertyDescriptor(N,G)),!(t0&&t0.set==null)&&(B[G]=U(P[G],_-1))}return B}return U(s,d)}r.clonePrototype=function(c){if(c===null)return null;var d=function(){};return d.prototype=c,new d};function n(s){return Object.prototype.toString.call(s)}r.__objToStr=n;function i(s){return typeof s=="object"&&n(s)==="[object Date]"}r.__isDate=i;function u(s){return typeof s=="object"&&n(s)==="[object Array]"}r.__isArray=u;function a(s){return typeof s=="object"&&n(s)==="[object RegExp]"}r.__isRegExp=a;function o(s){var c="";return s.global&&(c+="g"),s.ignoreCase&&(c+="i"),s.multiline&&(c+="m"),c}return r.__getRegExpFlags=o,r}();t.exports&&(t.exports=e)})(Vb);var DN=Vb.exports,Jb={exports:{}},_N={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},En=_N,Qb={};for(var Wa in En)En.hasOwnProperty(Wa)&&(Qb[En[Wa]]=Wa);var W0=Jb.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var rt in W0)if(W0.hasOwnProperty(rt)){if(!("channels"in W0[rt]))throw new Error("missing channels property: "+rt);if(!("labels"in W0[rt]))throw new Error("missing channel labels property: "+rt);if(W0[rt].labels.length!==W0[rt].channels)throw new Error("channel and label counts mismatch: "+rt);var kN=W0[rt].channels,SN=W0[rt].labels;delete W0[rt].channels,delete W0[rt].labels,Object.defineProperty(W0[rt],"channels",{value:kN}),Object.defineProperty(W0[rt],"labels",{value:SN})}W0.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),u=Math.max(e,r,n),a=u-i,o,s,c;return u===i?o=0:e===u?o=(r-n)/a:r===u?o=2+(n-e)/a:n===u&&(o=4+(e-r)/a),o=Math.min(o*60,360),o<0&&(o+=360),c=(i+u)/2,u===i?s=0:c<=.5?s=a/(u+i):s=a/(2-u-i),[o,s*100,c*100]};W0.rgb.hsv=function(t){var e,r,n,i,u,a=t[0]/255,o=t[1]/255,s=t[2]/255,c=Math.max(a,o,s),d=c-Math.min(a,o,s),y=function(A){return(c-A)/6/d+1/2};return d===0?i=u=0:(u=d/c,e=y(a),r=y(o),n=y(s),a===c?i=n-r:o===c?i=1/3+e-n:s===c&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,u*100,c*100]};W0.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=W0.rgb.hsl(t)[0],u=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,u*100,n*100]};W0.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,u,a,o;return o=Math.min(1-e,1-r,1-n),i=(1-e-o)/(1-o)||0,u=(1-r-o)/(1-o)||0,a=(1-n-o)/(1-o)||0,[i*100,u*100,a*100,o*100]};function TN(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}W0.rgb.keyword=function(t){var e=Qb[t];if(e)return e;var r=1/0,n;for(var i in En)if(En.hasOwnProperty(i)){var u=En[i],a=TN(t,u);a.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,u=e*.2126+r*.7152+n*.0722,a=e*.0193+r*.1192+n*.9505;return[i*100,u*100,a*100]};W0.rgb.lab=function(t){var e=W0.rgb.xyz(t),r=e[0],n=e[1],i=e[2],u,a,o;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,u=116*n-16,a=500*(r-n),o=200*(n-i),[u,a,o]};W0.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,u,a,o,s;if(r===0)return s=n*255,[s,s,s];n<.5?u=n*(1+r):u=n+r-n*r,i=2*n-u,o=[0,0,0];for(var c=0;c<3;c++)a=e+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?s=i+(u-i)*6*a:2*a<1?s=u:3*a<2?s=i+(u-i)*(2/3-a)*6:s=i,o[c]=s*255;return o};W0.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,u=Math.max(n,.01),a,o;return n*=2,r*=n<=1?n:2-n,i*=u<=1?u:2-u,o=(n+r)/2,a=n===0?2*i/(u+i):2*r/(n+r),[e,a*100,o*100]};W0.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,u=e-Math.floor(e),a=255*n*(1-r),o=255*n*(1-r*u),s=255*n*(1-r*(1-u));switch(n*=255,i){case 0:return[n,s,a];case 1:return[o,n,a];case 2:return[a,n,s];case 3:return[a,o,n];case 4:return[s,a,n];case 5:return[n,a,o]}};W0.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),u,a,o;return o=(2-r)*n,u=(2-r)*i,a=r*i,a/=u<=1?u:2-u,a=a||0,o/=2,[e,a*100,o*100]};W0.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,u,a,o,s;i>1&&(r/=i,n/=i),u=Math.floor(6*e),a=1-n,o=6*e-u,u&1&&(o=1-o),s=r+o*(a-r);var c,d,y;switch(u){default:case 6:case 0:c=a,d=s,y=r;break;case 1:c=s,d=a,y=r;break;case 2:c=r,d=a,y=s;break;case 3:c=r,d=s,y=a;break;case 4:c=s,d=r,y=a;break;case 5:c=a,d=r,y=s;break}return[c*255,d*255,y*255]};W0.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,u,a,o;return u=1-Math.min(1,e*(1-i)+i),a=1-Math.min(1,r*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),[u*255,a*255,o*255]};W0.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,u,a;return i=e*3.2406+r*-1.5372+n*-.4986,u=e*-.9689+r*1.8758+n*.0415,a=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,u=u>.0031308?1.055*Math.pow(u,1/2.4)-.055:u*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),u=Math.min(Math.max(0,u),1),a=Math.min(Math.max(0,a),1),[i*255,u*255,a*255]};W0.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,u,a;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,u=500*(e-r),a=200*(r-n),[i,u,a]};W0.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,u,a;u=(e+16)/116,i=r/500+u,a=u-n/200;var o=Math.pow(u,3),s=Math.pow(i,3),c=Math.pow(a,3);return u=o>.008856?o:(u-16/116)/7.787,i=s>.008856?s:(i-16/116)/7.787,a=c>.008856?c:(a-16/116)/7.787,i*=95.047,u*=100,a*=108.883,[i,u,a]};W0.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,u,a;return i=Math.atan2(n,r),u=i*360/2/Math.PI,u<0&&(u+=360),a=Math.sqrt(r*r+n*n),[e,a,u]};W0.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,u,a;return a=n/360*2*Math.PI,i=r*Math.cos(a),u=r*Math.sin(a),[e,i,u]};W0.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:W0.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var u=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(u+=60),u};W0.hsv.ansi16=function(t){return W0.rgb.ansi16(W0.hsv.rgb(t),t[2])};W0.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};W0.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,u=(e>>2&1)*r*255;return[n,i,u]};W0.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,u=r%6/5*255;return[n,i,u]};W0.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};W0.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(o){return o+o}).join(""));var n=parseInt(r,16),i=n>>16&255,u=n>>8&255,a=n&255;return[i,u,a]};W0.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),u=Math.min(Math.min(e,r),n),a=i-u,o,s;return a<1?o=u/(1-a):o=0,a<=0?s=0:i===e?s=(r-n)/a%6:i===r?s=2+(n-e)/a:s=4+(e-r)/a+4,s/=6,s%=1,[s*360,a*100,o*100]};W0.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};W0.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};W0.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],u=e%1*6,a=u%1,o=1-a,s=0;switch(Math.floor(u)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return s=(1-r)*n,[(r*i[0]+s)*255,(r*i[1]+s)*255,(r*i[2]+s)*255]};W0.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};W0.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};W0.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};W0.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,u=0;return i<1&&(u=(n-i)/(1-i)),[t[0],i*100,u*100]};W0.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};W0.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};W0.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};W0.gray.hsl=W0.gray.hsv=function(t){return[0,0,t[0]]};W0.gray.hwb=function(t){return[0,100,t[0]]};W0.gray.cmyk=function(t){return[0,0,0,t[0]]};W0.gray.lab=function(t){return[t[0],0,0]};W0.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};W0.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]};var Yb=Jb.exports,o8=Yb;function PN(){for(var t={},e=Object.keys(o8),r=e.length,n=0;n1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function jN(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,u=0;ur?(e+.05)/(r+.05):(r+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb,e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){return this.values.hsl[2]+=this.values.hsl[2]*t,this.setValues("hsl",this.values.hsl),this},darken:function(t){return this.values.hsl[2]-=this.values.hsl[2]*t,this.setValues("hsl",this.values.hsl),this},saturate:function(t){return this.values.hsl[1]+=this.values.hsl[1]*t,this.setValues("hsl",this.values.hsl),this},desaturate:function(t){return this.values.hsl[1]-=this.values.hsl[1]*t,this.setValues("hsl",this.values.hsl),this},whiten:function(t){return this.values.hwb[1]+=this.values.hwb[1]*t,this.setValues("hwb",this.values.hwb),this},blacken:function(t){return this.values.hwb[2]+=this.values.hwb[2]*t,this.setValues("hwb",this.values.hwb),this},greyscale:function(){var t=this.values.rgb,e=t[0]*.3+t[1]*.59+t[2]*.11;return this.setValues("rgb",[e,e,e]),this},clearer:function(t){return this.setValues("alpha",this.values.alpha-this.values.alpha*t),this},opaquer:function(t){return this.setValues("alpha",this.values.alpha+this.values.alpha*t),this},rotate:function(t){var e=this.values.hsl[0];return e=(e+t)%360,e=e<0?360+e:e,this.values.hsl[0]=e,this.setValues("hsl",this.values.hsl),this},mix:function(t,e){var r=this,n=t,i=e===void 0?.5:e,u=2*i-1,a=r.alpha()-n.alpha(),o=((u*a===-1?u:(u+a)/(1+u*a))+1)/2,s=1-o;return this.rgb(o*r.red()+s*n.red(),o*r.green()+s*n.green(),o*r.blue()+s*n.blue()).alpha(r.alpha()*i+n.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var t=new _r;return t.values=ZN(this.values),t}};_r.prototype.getValues=function(t){for(var e={},r=0;r{const n=f0.useRef(null);return f0.useEffect(()=>{if(t&&n.current){const i=parseInt(t.slice(2,10),16),u=dM(e,i);n.current.innerHTML="",n.current.appendChild(u)}},[t,e]),X.jsx("div",{...r,ref:n})},{useChainId:pM}=Ot;function bM({account:t,networkName:e,changeConnectedAccount:r,changeToNodeChain:n}){const i=pM(),u=s=>`${s.substring(0,6)}...${s.substring(s.length-4)}`,a=s=>{switch(s){case"Ethereum":return X.jsx("img",{className:"network-icon",src:xN,alt:s});case"Optimism":return X.jsx("img",{className:"network-icon",src:Gb,alt:s});case"Arbitrum":return X.jsx("img",{className:"network-icon",src:vN,alt:s});case"Sepolia":return X.jsx("img",{className:"network-icon",src:Kb,alt:s});default:return X.jsx("img",{className:"network-icon",src:AN,alt:s})}},o=f0.useCallback(()=>{window.alert(`The KNS Contract Address is: ${Oi[i||""]||"unavailable on "+e}`)},[i,e]);return X.jsxs("div",{className:"flex gap-4",children:[X.jsxs("button",{onClick:r,className:"font-mono clear flex place-items-center max-w-1/3",children:[X.jsx(hM,{address:t||"",diameter:24,className:"mr-4"})," ",u(t||"")]}),X.jsxs("button",{onClick:n,className:"clear max-w-1/3 z-10",children:[a(e),X.jsx("div",{className:"ml-2",children:e})]}),X.jsx("button",{onClick:o,className:"clear max-w-1/3",children:"KNS Contract"})]})}var im={exports:{}};/*! +You are running Raphaël `+this.version};var Z=function(b,l){if(l)for(var m in typeof b=="string"&&(b=Z(b)),l)l[s](m)&&(m.substring(0,6)=="xlink:"?b.setAttributeNS(W,m.substring(6),c(l[m])):b.setAttribute(m,c(l[m])));else(b=o._g.doc.createElementNS("http://www.w3.org/2000/svg",b)).style&&(b.style.webkitTapHighlightColor="rgba(0,0,0,0)");return b},e0=function(b,l){var m="linear",D=b.id+l,f=.5,S=.5,O=b.node,$=b.paper,H=O.style,n0=o._g.doc.getElementById(D);if(!n0){if(l=(l=c(l).replace(o._radial_gradient,function(M0,I0,R0){if(m="radial",I0&&R0){f=d(I0);var V0=2*((S=d(R0))>.5)-1;U(f-.5,2)+U(S-.5,2)>.25&&(S=A.sqrt(.25-U(f-.5,2))*V0+.5)&&S!=.5&&(S=S.toFixed(5)-1e-5*V0)}return B})).split(/\s*\-\s*/),m=="linear"){var u0=l.shift();if(u0=-d(u0),isNaN(u0))return null;var s0=[0,0,A.cos(o.rad(u0)),A.sin(o.rad(u0))],g0=1/(C(T(s0[2]),T(s0[3]))||1);s0[2]*=g0,s0[3]*=g0,s0[2]<0&&(s0[0]=-s0[2],s0[2]=0),s0[3]<0&&(s0[1]=-s0[3],s0[3]=0)}var y0=o._parseDots(l);if(!y0)return null;if(D=D.replace(/[\(\)\s,\xb0#]/g,"_"),b.gradient&&D!=b.gradient.id&&($.defs.removeChild(b.gradient),delete b.gradient),!b.gradient){n0=Z(m+"Gradient",{id:D}),b.gradient=n0,Z(n0,m=="radial"?{fx:f,fy:S}:{x1:s0[0],y1:s0[1],x2:s0[2],y2:s0[3],gradientTransform:b.matrix.invert()}),$.defs.appendChild(n0);for(var _0=0,z0=y0.length;_01?R0.opacity/100:R0.opacity});case"stroke":R0=o.getRGB(O),m.setAttribute(S,R0.hex),S=="stroke"&&R0[s]("opacity")&&Z(m,{"stroke-opacity":R0.opacity>1?R0.opacity/100:R0.opacity}),S=="stroke"&&b._.arrows&&("startString"in b._.arrows&&c0(b,b._.arrows.startString),"endString"in b._.arrows&&c0(b,b._.arrows.endString,1));break;case"gradient":(b.type=="circle"||b.type=="ellipse"||c(O).charAt()!="r")&&e0(b,O);break;case"opacity":D.gradient&&!D[s]("stroke-opacity")&&Z(m,{"stroke-opacity":O>1?O/100:O});case"fill-opacity":if(D.gradient){(V0=o._g.doc.getElementById(m.getAttribute("fill").replace(/^url\(#|\)$/g,B)))&&(G0=V0.getElementsByTagName("stop"),Z(G0[G0.length-1],{"stop-opacity":O}));break}default:S=="font-size"&&(O=y(O,10)+"px");var X0=S.replace(/(\-.)/g,function($0){return $0.substring(1).toUpperCase()});m.style[X0]=O,b._.dirty=1,m.setAttribute(S,O)}}v(b,l),m.style.visibility=f},v=function(b,l){if(b.type=="text"&&(l[s]("text")||l[s]("font")||l[s]("font-size")||l[s]("x")||l[s]("y"))){var m=b.attrs,D=b.node,f=D.firstChild?y(o._g.doc.defaultView.getComputedStyle(D.firstChild,B).getPropertyValue("font-size"),10):10;if(l[s]("text")){for(m.text=l.text;D.firstChild;)D.removeChild(D.firstChild);for(var S,O=c(l.text).split(` +`),$=[],H=0,n0=O.length;H"));var q=x.getBoundingClientRect();H.W=f.w=(q.right-q.left)/100,H.H=f.h=(q.bottom-q.top)/100,H.X=f.x,H.Y=f.y+H.H/2,("x"in m||"y"in m)&&(H.path.v=o.format("m{0},{1}l{2},{1}",A(f.x*o0),A(f.y*o0),A(f.x*o0)+1));for(var i0=["x","y","text","font","font-family","font-weight","font-style","font-size"],f0=0,p0=i0.length;f0.25&&(_0=y.sqrt(.25-f(y0-.5,2))*(2*(_0>.5)-1)+.5),O=y0+B+_0),N})).split(/\s*\-\s*/),S=="linear"){var $=m.shift();if($=-d($),isNaN($))return null}var H=o._parseDots(m);if(!H)return null;if(l=l.shape||l.node,H.length){l.removeChild(D),D.on=!0,D.method="none",D.color=H[0].color,D.color2=H[H.length-1].color;for(var n0=[],u0=0,s0=H.length;u0')}}catch{p=function(f){return m.createElement("<"+f+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},o._engine.initWin(o._g.win),o._engine.create=function(){var l=o._getContainer.apply(0,arguments),m=l.container,D=l.height,f=l.width,S=l.x,O=l.y;if(!m)throw new Error("VML container not found.");var $=new o._Paper,H=$.canvas=o._g.doc.createElement("div"),n0=H.style;return S=S||0,O=O||0,f=f||512,D=D||342,$.width=f,$.height=D,f==+f&&(f+="px"),D==+D&&(D+="px"),$.coordsize=216e5+B+216e5,$.coordorigin="0 0",$.span=o._g.doc.createElement("span"),$.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",H.appendChild($.span),n0.cssText=o.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",f,D),m==1?(o._g.doc.body.appendChild(H),n0.left=S+"px",n0.top=O+"px",n0.position="absolute"):m.firstChild?m.insertBefore(H,m.firstChild):m.appendChild(H),$.renderfix=function(){},$},o.prototype.clear=function(){o.eve("raphael.clear",this),this.canvas.innerHTML=N,this.span=o._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},o.prototype.remove=function(){for(var l in o.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[l]=typeof this[l]=="function"?o._removedFactory(l):null;return!0};var V=o.st;for(var b in z)z[s](b)&&!V[s](b)&&(V[b]=function(l){return function(){var m=arguments;return this.forEach(function(D){D[l].apply(D,m)})}}(b))}}).apply(n,u))===void 0||(r.exports=a)}])})})(Wb);var EN=Wb.exports,CN=EN;function FN(t){var e=document.createElement("div");e.style.borderRadius="50px",e.style.overflow="hidden",e.style.padding="0px",e.style.margin="0px",e.style.width=""+t+"px",e.style.height=""+t+"px",e.style.display="inline-block";var r=CN(e,100,100);return{paper:r,container:e}}var BN=FN,Vb={exports:{}};(function(t){var e=function(){function r(s,c,d,y){typeof c=="object"&&(d=c.depth,y=c.prototype,c.filter,c=c.circular);var A=[],C=[],T=typeof Buffer<"u";typeof c>"u"&&(c=!0),typeof d>"u"&&(d=1/0);function U(P,_){if(P===null)return null;if(_==0)return P;var B,N;if(typeof P!="object")return P;if(r.__isArray(P))B=[];else if(r.__isRegExp(P))B=new RegExp(P.source,o(P)),P.lastIndex&&(B.lastIndex=P.lastIndex);else if(r.__isDate(P))B=new Date(P.getTime());else{if(T&&Buffer.isBuffer(P))return Buffer.allocUnsafe?B=Buffer.allocUnsafe(P.length):B=new Buffer(P.length),P.copy(B),B;typeof y>"u"?(N=Object.getPrototypeOf(P),B=Object.create(N)):(B=Object.create(y),N=y)}if(c){var W=A.indexOf(P);if(W!=-1)return C[W];A.push(P),C.push(B)}for(var G in P){var t0;N&&(t0=Object.getOwnPropertyDescriptor(N,G)),!(t0&&t0.set==null)&&(B[G]=U(P[G],_-1))}return B}return U(s,d)}r.clonePrototype=function(c){if(c===null)return null;var d=function(){};return d.prototype=c,new d};function n(s){return Object.prototype.toString.call(s)}r.__objToStr=n;function i(s){return typeof s=="object"&&n(s)==="[object Date]"}r.__isDate=i;function u(s){return typeof s=="object"&&n(s)==="[object Array]"}r.__isArray=u;function a(s){return typeof s=="object"&&n(s)==="[object RegExp]"}r.__isRegExp=a;function o(s){var c="";return s.global&&(c+="g"),s.ignoreCase&&(c+="i"),s.multiline&&(c+="m"),c}return r.__getRegExpFlags=o,r}();t.exports&&(t.exports=e)})(Vb);var DN=Vb.exports,Jb={exports:{}},_N={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},En=_N,Qb={};for(var Wa in En)En.hasOwnProperty(Wa)&&(Qb[En[Wa]]=Wa);var W0=Jb.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var rt in W0)if(W0.hasOwnProperty(rt)){if(!("channels"in W0[rt]))throw new Error("missing channels property: "+rt);if(!("labels"in W0[rt]))throw new Error("missing channel labels property: "+rt);if(W0[rt].labels.length!==W0[rt].channels)throw new Error("channel and label counts mismatch: "+rt);var kN=W0[rt].channels,SN=W0[rt].labels;delete W0[rt].channels,delete W0[rt].labels,Object.defineProperty(W0[rt],"channels",{value:kN}),Object.defineProperty(W0[rt],"labels",{value:SN})}W0.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),u=Math.max(e,r,n),a=u-i,o,s,c;return u===i?o=0:e===u?o=(r-n)/a:r===u?o=2+(n-e)/a:n===u&&(o=4+(e-r)/a),o=Math.min(o*60,360),o<0&&(o+=360),c=(i+u)/2,u===i?s=0:c<=.5?s=a/(u+i):s=a/(2-u-i),[o,s*100,c*100]};W0.rgb.hsv=function(t){var e,r,n,i,u,a=t[0]/255,o=t[1]/255,s=t[2]/255,c=Math.max(a,o,s),d=c-Math.min(a,o,s),y=function(A){return(c-A)/6/d+1/2};return d===0?i=u=0:(u=d/c,e=y(a),r=y(o),n=y(s),a===c?i=n-r:o===c?i=1/3+e-n:s===c&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,u*100,c*100]};W0.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=W0.rgb.hsl(t)[0],u=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,u*100,n*100]};W0.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,u,a,o;return o=Math.min(1-e,1-r,1-n),i=(1-e-o)/(1-o)||0,u=(1-r-o)/(1-o)||0,a=(1-n-o)/(1-o)||0,[i*100,u*100,a*100,o*100]};function TN(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}W0.rgb.keyword=function(t){var e=Qb[t];if(e)return e;var r=1/0,n;for(var i in En)if(En.hasOwnProperty(i)){var u=En[i],a=TN(t,u);a.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,u=e*.2126+r*.7152+n*.0722,a=e*.0193+r*.1192+n*.9505;return[i*100,u*100,a*100]};W0.rgb.lab=function(t){var e=W0.rgb.xyz(t),r=e[0],n=e[1],i=e[2],u,a,o;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,u=116*n-16,a=500*(r-n),o=200*(n-i),[u,a,o]};W0.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,u,a,o,s;if(r===0)return s=n*255,[s,s,s];n<.5?u=n*(1+r):u=n+r-n*r,i=2*n-u,o=[0,0,0];for(var c=0;c<3;c++)a=e+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?s=i+(u-i)*6*a:2*a<1?s=u:3*a<2?s=i+(u-i)*(2/3-a)*6:s=i,o[c]=s*255;return o};W0.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,u=Math.max(n,.01),a,o;return n*=2,r*=n<=1?n:2-n,i*=u<=1?u:2-u,o=(n+r)/2,a=n===0?2*i/(u+i):2*r/(n+r),[e,a*100,o*100]};W0.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,u=e-Math.floor(e),a=255*n*(1-r),o=255*n*(1-r*u),s=255*n*(1-r*(1-u));switch(n*=255,i){case 0:return[n,s,a];case 1:return[o,n,a];case 2:return[a,n,s];case 3:return[a,o,n];case 4:return[s,a,n];case 5:return[n,a,o]}};W0.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),u,a,o;return o=(2-r)*n,u=(2-r)*i,a=r*i,a/=u<=1?u:2-u,a=a||0,o/=2,[e,a*100,o*100]};W0.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,u,a,o,s;i>1&&(r/=i,n/=i),u=Math.floor(6*e),a=1-n,o=6*e-u,u&1&&(o=1-o),s=r+o*(a-r);var c,d,y;switch(u){default:case 6:case 0:c=a,d=s,y=r;break;case 1:c=s,d=a,y=r;break;case 2:c=r,d=a,y=s;break;case 3:c=r,d=s,y=a;break;case 4:c=s,d=r,y=a;break;case 5:c=a,d=r,y=s;break}return[c*255,d*255,y*255]};W0.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,u,a,o;return u=1-Math.min(1,e*(1-i)+i),a=1-Math.min(1,r*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),[u*255,a*255,o*255]};W0.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,u,a;return i=e*3.2406+r*-1.5372+n*-.4986,u=e*-.9689+r*1.8758+n*.0415,a=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,u=u>.0031308?1.055*Math.pow(u,1/2.4)-.055:u*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),u=Math.min(Math.max(0,u),1),a=Math.min(Math.max(0,a),1),[i*255,u*255,a*255]};W0.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,u,a;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,u=500*(e-r),a=200*(r-n),[i,u,a]};W0.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,u,a;u=(e+16)/116,i=r/500+u,a=u-n/200;var o=Math.pow(u,3),s=Math.pow(i,3),c=Math.pow(a,3);return u=o>.008856?o:(u-16/116)/7.787,i=s>.008856?s:(i-16/116)/7.787,a=c>.008856?c:(a-16/116)/7.787,i*=95.047,u*=100,a*=108.883,[i,u,a]};W0.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,u,a;return i=Math.atan2(n,r),u=i*360/2/Math.PI,u<0&&(u+=360),a=Math.sqrt(r*r+n*n),[e,a,u]};W0.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,u,a;return a=n/360*2*Math.PI,i=r*Math.cos(a),u=r*Math.sin(a),[e,i,u]};W0.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:W0.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var u=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(u+=60),u};W0.hsv.ansi16=function(t){return W0.rgb.ansi16(W0.hsv.rgb(t),t[2])};W0.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};W0.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,u=(e>>2&1)*r*255;return[n,i,u]};W0.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,u=r%6/5*255;return[n,i,u]};W0.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};W0.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(o){return o+o}).join(""));var n=parseInt(r,16),i=n>>16&255,u=n>>8&255,a=n&255;return[i,u,a]};W0.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),u=Math.min(Math.min(e,r),n),a=i-u,o,s;return a<1?o=u/(1-a):o=0,a<=0?s=0:i===e?s=(r-n)/a%6:i===r?s=2+(n-e)/a:s=4+(e-r)/a+4,s/=6,s%=1,[s*360,a*100,o*100]};W0.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};W0.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};W0.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],u=e%1*6,a=u%1,o=1-a,s=0;switch(Math.floor(u)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return s=(1-r)*n,[(r*i[0]+s)*255,(r*i[1]+s)*255,(r*i[2]+s)*255]};W0.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};W0.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};W0.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};W0.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,u=0;return i<1&&(u=(n-i)/(1-i)),[t[0],i*100,u*100]};W0.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};W0.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};W0.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};W0.gray.hsl=W0.gray.hsv=function(t){return[0,0,t[0]]};W0.gray.hwb=function(t){return[0,100,t[0]]};W0.gray.cmyk=function(t){return[0,0,0,t[0]]};W0.gray.lab=function(t){return[t[0],0,0]};W0.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};W0.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]};var Yb=Jb.exports,o8=Yb;function PN(){for(var t={},e=Object.keys(o8),r=e.length,n=0;n1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function jN(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,u=0;ur?(e+.05)/(r+.05):(r+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb,e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){return this.values.hsl[2]+=this.values.hsl[2]*t,this.setValues("hsl",this.values.hsl),this},darken:function(t){return this.values.hsl[2]-=this.values.hsl[2]*t,this.setValues("hsl",this.values.hsl),this},saturate:function(t){return this.values.hsl[1]+=this.values.hsl[1]*t,this.setValues("hsl",this.values.hsl),this},desaturate:function(t){return this.values.hsl[1]-=this.values.hsl[1]*t,this.setValues("hsl",this.values.hsl),this},whiten:function(t){return this.values.hwb[1]+=this.values.hwb[1]*t,this.setValues("hwb",this.values.hwb),this},blacken:function(t){return this.values.hwb[2]+=this.values.hwb[2]*t,this.setValues("hwb",this.values.hwb),this},greyscale:function(){var t=this.values.rgb,e=t[0]*.3+t[1]*.59+t[2]*.11;return this.setValues("rgb",[e,e,e]),this},clearer:function(t){return this.setValues("alpha",this.values.alpha-this.values.alpha*t),this},opaquer:function(t){return this.setValues("alpha",this.values.alpha+this.values.alpha*t),this},rotate:function(t){var e=this.values.hsl[0];return e=(e+t)%360,e=e<0?360+e:e,this.values.hsl[0]=e,this.setValues("hsl",this.values.hsl),this},mix:function(t,e){var r=this,n=t,i=e===void 0?.5:e,u=2*i-1,a=r.alpha()-n.alpha(),o=((u*a===-1?u:(u+a)/(1+u*a))+1)/2,s=1-o;return this.rgb(o*r.red()+s*n.red(),o*r.green()+s*n.green(),o*r.blue()+s*n.blue()).alpha(r.alpha()*i+n.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var t=new _r;return t.values=ZN(this.values),t}};_r.prototype.getValues=function(t){for(var e={},r=0;r{const n=l0.useRef(null);return l0.useEffect(()=>{if(t&&n.current){const i=parseInt(t.slice(2,10),16),u=dM(e,i);n.current.innerHTML="",n.current.appendChild(u)}},[t,e]),X.jsx("div",{...r,ref:n})},{useChainId:pM}=Ot;function bM({account:t,networkName:e,changeConnectedAccount:r,changeToNodeChain:n}){const i=pM(),u=s=>`${s.substring(0,6)}...${s.substring(s.length-4)}`,a=s=>{switch(s){case"Ethereum":return X.jsx("img",{className:"network-icon",src:xN,alt:s});case"Optimism":return X.jsx("img",{className:"network-icon",src:Gb,alt:s});case"Arbitrum":return X.jsx("img",{className:"network-icon",src:vN,alt:s});case"Sepolia":return X.jsx("img",{className:"network-icon",src:Kb,alt:s});default:return X.jsx("img",{className:"network-icon",src:AN,alt:s})}},o=l0.useCallback(()=>{window.alert(`The KNS Contract Address is: ${Oi[i||""]||"unavailable on "+e}`)},[i,e]);return X.jsxs("div",{className:"flex gap-4",children:[X.jsxs("button",{onClick:r,className:"font-mono clear flex place-items-center max-w-1/3",children:[X.jsx(hM,{address:t||"",diameter:24,className:"mr-4"})," ",u(t||"")]}),X.jsxs("button",{onClick:n,className:"clear max-w-1/3 z-10",children:[a(e),X.jsx("div",{className:"ml-2",children:e})]}),X.jsx("button",{onClick:o,className:"clear max-w-1/3",children:"KNS Contract"})]})}var im={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(t){(function(){var e={}.hasOwnProperty;function r(){for(var u="",a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function xM(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,u;for(u=0;u=0)&&(r[i]=t[i]);return r}function s8(){return s8=Object.assign?Object.assign.bind():function(t){for(var e=1;eGr.createElement(e.tag,l8({key:r},e.attr),am(e.child)))}function om(t){return e=>Gr.createElement(EM,s8({attr:l8({},t.attr)},e),am(t.child))}function EM(t){var e=r=>{var{attr:n,size:i,title:u}=t,a=gM(t,yM),o=i||r.size||"1em",s;return r.className&&(s=r.className),t.className&&(s=(s?s+" ":"")+t.className),Gr.createElement("svg",s8({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:s,style:l8(l8({color:t.color||r.color},r.style),t.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),u&&Gr.createElement("title",null,u),t.children)};return wc!==void 0?Gr.createElement(wc.Consumer,null,r=>e(r)):e(um)}function CM(t){return om({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"},child:[]}]})(t)}function FM(t){return om({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"},child:[]}]})(t)}const jn=({text:t,button:e,className:r,position:n})=>{const[i,u]=f0.useState(!1);return X.jsxs("div",{className:O2("flex place-items-center place-content-center text-sm relative cursor-pointer shrink",r),children:[X.jsx("div",{onClick:()=>u(!i),children:e||X.jsx("button",{className:"icon ml-4",type:"button",children:X.jsx(CM,{})})}),X.jsx("div",{className:O2("absolute rounded bg-black p-2 min-w-[200px] z-10",{"!hidden":!i,"top-8":n==="top"||!n,"bottom-8":n==="bottom","right-8":n==="left","left-8":n==="right"}),children:t}),X.jsx("button",{type:"button",className:O2("absolute bg-black icon right-0 top-0",{"!hidden":!i}),onClick:()=>u(!1),children:X.jsx(FM,{})})]})},o3=()=>window.innerWidth<=600,{useIsActivating:BM,useChainId:DM}=Ot;function l2({header:t,closeConnect:e,nodeChainId:r,hideConnect:n=!1}){const{account:i,isActive:u}=D8.useWeb3React(),a=BM(),o=DM(),[s,c]=f0.useState("");f0.useEffect(()=>{c(H2(o==null?void 0:o.toString()))},[o]);const d=f0.useCallback(async()=>{e(),await j4.activate(),a8(r)},[e,r]),y=f0.useCallback(async()=>{if(o){if("0x"+o.toString(16)===r)return alert(`You are already connected to ${H2(o.toString())}`);a8(r)}},[o,r]),A=f0.useCallback(async()=>{alert("You can change your connected account in your wallet.")},[]),C=o3();return X.jsx(X.Fragment,{children:X.jsxs("div",{id:"signup-form-header",className:"flex flex-col",children:[(r===yn||r===R2)&&X.jsx(jn,{position:"left",className:O2("!absolute z-10",{"top-8 right-8":!C,"top-2 right-2":C}),button:r===yn?X.jsx("img",{alt:"sepolia",className:"network-icon",src:Kb}):r===R2?X.jsx("img",{alt:"optimism",className:"network-icon",src:Gb}):"Not connected",text:r===yn?'Your Kinode is currently pointed at Sepolia. To point at Optimism, boot without the "--testnet" flag.':r===R2?'Your Kinode is currently pointed at Optimism. To point at Sepolia, boot with the "--testnet" flag.':"Your Kinode is not pointed at a chain."}),X.jsx("div",{className:"flex flex-col gap-4 c",children:t}),!n&&X.jsx("div",{className:"flex c w-[99vw] mb-8 absolute top-2 left-2",children:u&&i?X.jsx(bM,{account:i,networkName:s,changeToNodeChain:y,changeConnectedAccount:A}):X.jsxs("div",{className:"flex flex-col gap-8 my-4",children:[X.jsxs("h5",{className:O2("flex c",{"flex-wrap text-center max-w-3/4 gap-2":C}),children:[!a&&"You must connect to a browser wallet to continue.",a?X.jsx(o2,{msg:"Approve connection in your wallet"}):X.jsx("button",{onClick:d,className:"ml-2",children:" Connect Wallet "})]}),r===yn&&X.jsxs("h5",{className:"text-center max-w-[450px] leading-6 flex c",children:["Kinode is currently on the Sepolia Testnet.",X.jsx("a",{href:"https://sepoliafaucet.com/",target:"_blank",rel:"noreferrer",className:"button alt ml-2",children:"Get Testnet ETH"})]})]})})]})})}const _M=()=>X.jsx(jn,{text:"A direct node publishes its own networking information on-chain: IP, port, so on. An indirect node relies on the service of routers, which are themselves direct nodes. Only register a direct node if you know what you’re doing and have a public, static IP address."});function ci({direct:t,setDirect:e}){return X.jsxs("div",{className:"flex place-items-center",children:[X.jsxs("div",{className:"relative flex place-items-center mr-2",children:[X.jsx("input",{type:"checkbox",id:"direct",name:"direct",checked:t,onChange:r=>e(r.target.checked),autoFocus:!0}),t&&X.jsx("span",{onClick:()=>e(!1),className:"checkmark",children:"✓"})]}),X.jsx("label",{htmlFor:"direct",className:"flex place-items-center cursor-pointer",children:"Register as a direct node. If you are unsure leave unchecked."}),X.jsx(_M,{})]})}const kM="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20width='779'%20height='514'%20viewBox='0%200%20779%20514'%20fill='none'%20version='1.1'%20id='svg2'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs2'%20/%3e%3cpath%20d='M753.092%205.91932C756.557%205.09976%20755.962%20-0.00012207%20752.401%20-0.00012207H426.001C424.755%20-0.00012207%20423.639%200.77027%20423.197%201.93535L236.968%20492.6C235.729%20495.865%20240.123%20498.255%20242.191%20495.441L569.357%2050.1132C569.778%2049.5392%20570.391%2049.1339%20571.084%2048.97L753.092%205.91932Z'%20fill='%23FFF5D9'%20id='path1'%20/%3e%3cpath%20d='M%2012.054907,40.2288%20C%209.0444768,38.777%2010.207772,34.4583%2013.582982,34.5557%20l%20411.845088,11.881%20c%202.17167,0.0626%203.63105,2.1382%202.85869,4.0656%20l%20-62.7457,156.4787%20c%20-0.66805,1.666%20-2.71117,2.415%20-4.38655,1.607%20z'%20fill='%23fff5d9'%20id='path2'%20style='stroke-width:1.0265'%20/%3e%3c/svg%3e",di=({prefix:t,showLogo:e})=>{const r=o3();return X.jsxs("div",{className:"mb-4 flex flex-col c",children:[X.jsx("h1",{children:t}),e&&X.jsxs(X.Fragment,{children:[X.jsxs("h1",{className:O2("display",{"text-5xl mt-10 mb-8 ml-4":!r,"text-3xl mt-5 mb-4 ml-2":r}),children:["Kinode",X.jsx("span",{className:"text-xs",children:"®"})]}),X.jsx("img",{src:kM,className:O2({"w-32 h-32":!r,"w-16 h-16":r})})]})]})},{useAccounts:SM}=Ot;function TM({direct:t,setDirect:e,setOsName:r,nameWrapper:n,ensRegistry:i,knsEnsEntry:u,kns:a,openConnect:o,provider:s,closeConnect:c,setNetworkingKey:d,setIpAddress:y,setWsPort:A,setTcpPort:C,setRouters:T,nodeChainId:U}){let P=SM(),_=i2();const B=H2(U),[N,W]=f0.useState(""),[G,t0]=f0.useState(""),[Z,e0]=f0.useState([]),[o0,d0]=f0.useState(!1);f0.useEffect(()=>{document.title="Register"},[]),f0.useEffect(()=>d0(!o0),[s]);const c0={name:G,setName:t0,nameValidities:Z,setNameValidities:e0,nameWrapper:n,ensRegistry:i,triggerNameCheck:o0};let h0=f0.useCallback(async j=>{if(j.preventDefault(),j.stopPropagation(),!s)return o();W("Please confirm the transaction in your wallet");try{const p=G.trim().replace(".eth",""),v=Cr(`${p}.eth`),k=await i5({direct:t,kns:a,nodeChainId:U===R2?Z9:U,chainName:B,nameToSet:v,setNetworkingKey:d,setIpAddress:y,setWsPort:A,setTcpPort:C,setRouters:T});W("Please confirm the transaction in your wallet");const I=Bb(`${p}.eth`),z=$u.hash(`${p}.eth`),V=await u.setKNSRecords(I,k,{gasLimit:3e5}),b=(f,m)=>{f===z&&(a.off("NodeRegistered",b),W(""),r(`${p}.eth`),_("/set-password"))};await a8(U),W(`Registering ${p}.eth on Kinode... this may take a few minutes.`),a.on("NodeRegistered",b),await V.wait()}catch(p){console.error("Registration Error:",p),W(""),alert("There was an error linking your ENS name, please try again.")}},[G,t,P,a,_,r,s,o,d,y,A,C,T,U,B]);return X.jsxs(X.Fragment,{children:[X.jsx(l2,{header:X.jsx(di,{prefix:"Register via ENS"}),openConnect:o,closeConnect:c,nodeChainId:U===R2?Z9:U}),!!s&&X.jsx("form",{id:"signup-form",className:"flex flex-col",onSubmit:h0,children:N?X.jsx(o2,{msg:N}):X.jsxs(X.Fragment,{children:[X.jsxs("h3",{className:"w-full flex flex-col c mb-2",children:[X.jsx("label",{className:"flex leading-6 mb-2",children:"Set up your Kinode with a .eth name"}),X.jsx(yN,{...c0})]}),X.jsx(ci,{direct:t,setDirect:e}),X.jsx("button",{disabled:Z.length!==0,type:"submit",className:"mt-2",children:"Register .eth name"})]})})]})}function s3({name:t,setName:e,nameValidities:r,setNameValidities:n,dotOs:i,triggerNameCheck:u,isReset:a=!1}){const o="Name must be a valid URL without subdomains (A-Z, a-z, 0-9, and punycode)",s="Name must be 9 characters or more",c="Name is already claimed",d="Unsupported punycode character",y=f0.useRef(null);f0.useEffect(()=>{a||(y.current&&clearTimeout(y.current),y.current=setTimeout(async()=>{let C,T=[...r];const U=[...t].length;C=T.indexOf(s),U<9&&U!==0?C===-1&&T.push(s):C!==-1&&T.splice(C,1);let P="";C=T.indexOf(d);try{P=i3(t+".os"),C!==-1&&T.splice(C,1)}catch{C===-1&&T.push(d)}if(P&&P!==".os"&&(C=T.indexOf(o),t!==""&&!e3(P)?C===-1&&T.push(o):C!==-1&&T.splice(C,1),C=T.indexOf(c),T.length===0||C!==-1&&P.length>2))try{const _=iN.hash(P);await(i==null?void 0:i.ownerOf(_))&&C===-1&&T.push(c)}catch(_){console.error({e:_}),C!==-1&&T.splice(C,1)}n(T)},500))},[t,u,a]);const A=C=>C.target.value.indexOf(".")===-1&&e(C.target.value);return X.jsxs("div",{className:"flex flex-col w-full place-items-center place-content-center",children:[X.jsxs("div",{className:"flex w-full place-items-center",children:[X.jsx("input",{value:t,onChange:A,type:"text",required:!0,name:"dot-os-name",placeholder:"e.g. myname",className:"grow"}),X.jsx("div",{className:"ml-2 text-lg",children:".os"})]}),r.map((C,T)=>X.jsxs("div",{children:[X.jsx("br",{}),X.jsx("span",{className:"text-red-500",children:C})]},T))]})}const{useAccounts:PM}=Ot;function NM({direct:t,setDirect:e,setOsName:r,dotOs:n,kns:i,openConnect:u,provider:a,closeConnect:o,setNetworkingKey:s,setIpAddress:c,setWsPort:d,setTcpPort:y,setRouters:A,nodeChainId:C}){let T=PM(),U=i2();const P=H2(C),[_,B]=f0.useState(""),[N,W]=f0.useState(""),[G,t0]=f0.useState([]),[Z,e0]=f0.useState(!1);f0.useEffect(()=>{document.title="Register"},[]),f0.useEffect(()=>e0(!Z),[a]);const o0={name:N,setName:W,nameValidities:G,setNameValidities:t0,dotOs:n,triggerNameCheck:Z};let d0=f0.useCallback(async c0=>{if(c0.preventDefault(),c0.stopPropagation(),!a||!i)return u();B("Please confirm the transaction in your wallet");try{const h0=Cr(`${N}.os`),j=await i5({direct:t,kns:i,nodeChainId:C,chainName:P,nameToSet:h0,setNetworkingKey:s,setIpAddress:c,setWsPort:d,setTcpPort:y,setRouters:A}),p=Bb(`${N}.os`),v=await(n==null?void 0:n.register(p,T[0],j));B("Registering KNS ID..."),await(v==null?void 0:v.wait()),B(""),r(`${N}.os`),U("/set-password")}catch(h0){console.error("Registration Error:",h0),B(""),alert("There was an error registering your dot-os-name, please try again.")}},[N,t,T,n,i,U,r,a,u,s,c,d,y,A,C,P]);return X.jsxs(X.Fragment,{children:[X.jsx(l2,{header:X.jsx("h1",{className:"flex place-content-center place-items-center mb-4",children:"Register Kinode Name (KNS)"}),openConnect:u,closeConnect:o,nodeChainId:C}),!!a&&X.jsx("form",{id:"signup-form",className:"flex flex-col w-full max-w-[450px]",onSubmit:d0,children:_?X.jsx(o2,{msg:_}):X.jsxs(X.Fragment,{children:[X.jsxs("h3",{className:"flex flex-col w-full place-items-center my-8",children:[X.jsxs("label",{className:"flex leading-6 place-items-center mt-2 cursor-pointer mb-2",children:["Choose a name for your Kinode",X.jsx(jn,{text:"Kinodes need an onchain node identity in order to communicate with other nodes in the network."})]}),X.jsx(s3,{...o0})]}),X.jsx(ci,{direct:t,setDirect:e}),X.jsx("button",{disabled:G.length!==0,type:"submit",className:"mt-2",children:"Register .os name"}),X.jsx(y4,{to:"/reset",className:"flex self-stretch mt-2",children:X.jsx("button",{className:"clear grow",children:"already have a dot-os-name?"})})]})})]})}function Ve(t){return t.replace(/^\/api/,"")}var Ja={};const{useAccounts:MM,useProvider:UM}=Ot;function IM({direct:t,setDirect:e,setOsName:r,dotOs:n,openConnect:i,setNetworkingKey:u,setIpAddress:a,setWsPort:o,setTcpPort:s,setRouters:c,closeConnect:d,nodeChainId:y}){const A=MM(),C=UM(),T=i2(),[U,P]=f0.useState(!1),[_,B]=f0.useState(""),[N,W]=f0.useState(!1),[G,t0]=f0.useState(""),[Z,e0]=f0.useState(""),[o0,d0]=f0.useState(""),[c0,h0]=f0.useState([]);f0.useEffect(()=>{document.title="Claim Invite"},[]),f0.useEffect(()=>W(!N),[C]),f0.useEffect(()=>{(async()=>{if(G!==""){const v=Ja.REACT_APP_INVITE_GET+G,M=await fetch(Ve(v),{method:"GET",credentials:"include"});M.status===200?e0(""):e0(await M.text())}})()},[G]);let j=async v=>{if(v.preventDefault(),v.stopPropagation(),!C)return i();const{networking_key:M,routing:{Both:{ip:k,ports:{ws:I,tcp:z},routers:V}}}=await fetch(Ve("/generate-networking-info"),{method:"POST",credentials:"include"}).then(O=>O.json()),b=Hb(k);if(u(M),a(b),o(I||0),s(z||0),c(V),c0.length!==0||Z!=="")return;if(!o0||!G)return window.alert("Please enter a name and invite code"),!1;let f;B("...Building EIP-4337 User Operation"),P(!0),console.log("BUILDING",M,b,I,z,V);try{f=await fetch(Ve(Ja.REACT_APP_BUILD_USER_OP_POST),{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({name:o0+".os",address:A[0],networkingKey:M,wsIp:b,wsPort:I,tcpPort:z,routers:V,direct:t})})}catch(O){B(""),P(!1),alert(O),console.error("error from fetching userOp:",O);return}B("...Signing EIP-4337 User Operation");const m=await f.json(),D=new Uint8Array(Object.values(m.message)),l=await(C==null?void 0:C.getSigner()),S=await(l==null?void 0:l.signMessage(D));m.userOperation.signature=S;try{f=await fetch(Ve(Ja.REACT_APP_BROADCAST_USER_OP_POST),{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({userOp:m.userOperation,code:G,name:o0+".os",eoa:A[0]})})}catch(O){alert(O),console.error("error from broadcasting userOp:",O);return}finally{B(""),P(!1)}r(`${o0}.os`),T("/set-password")};const p={name:o0,setName:d0,nameValidities:c0,setNameValidities:h0,dotOs:n,triggerNameCheck:N};return X.jsxs(X.Fragment,{children:[X.jsx(l2,{header:X.jsx(di,{prefix:"Claim Invite"}),openConnect:i,closeConnect:d,nodeChainId:y}),!!C&&X.jsx("form",{id:"signup-form",className:"flex flex-col",onSubmit:j,children:U?X.jsx(o2,{msg:_}):X.jsxs(X.Fragment,{children:[X.jsxs("div",{className:"flex c mb-2",children:[X.jsx("h5",{children:"Set up your Kinode with a .os name"}),X.jsx(jn,{text:"Kinodes use a .os name in order to identify themselves to other nodes in the network."})]}),X.jsxs("div",{className:"flex flex-col mb-2",children:[X.jsx("input",{value:G,onChange:v=>t0(v.target.value),type:"text",required:!0,name:"nec-invite",placeholder:"invite code",className:"self-stretch"}),Z!==""&&X.jsx("div",{className:"invite-validity",children:Z})]}),X.jsx("h3",{className:"mb-2",children:X.jsx(s3,{...p})}),X.jsx(ci,{direct:t,setDirect:e}),X.jsx("button",{disabled:c0.length!==0||Z!=="",type:"submit",className:"self-stretch mt-2",children:"Register .os name"}),X.jsx(y4,{to:"/reset",className:"button clear",children:"already have a .os?"})]})})]})}const sm=(t,e)=>{let r=new Blob([e],{type:"text/plain;charset=utf-8"});const n=window.URL.createObjectURL(r),i=document.createElement("a");i.href=n,i.setAttribute("download",`${t}.keyfile`),document.body.appendChild(i),i.click()};function RM({knsName:t,direct:e,pw:r,reset:n,provider:i,setPw:u,appSizeOnLoad:a,closeConnect:o,nodeChainId:s}){const[c,d]=f0.useState(""),[y,A]=f0.useState(""),[C,T]=f0.useState(!1);f0.useEffect(()=>{document.title="Set Password"},[]),f0.useEffect(()=>{A("")},[r,c]);const U=f0.useCallback(async P=>{if(P.preventDefault(),r!==c)return A("Passwords do not match"),!1;setTimeout(async()=>{T(!0);let _=gt(H1(r)),B=await(i==null?void 0:i.getSigner()),N=await(B==null?void 0:B.getAddress()),W=await(B==null?void 0:B.getChainId()),G=Date.now(),t0=JSON.stringify({username:t,password_hash:_,timestamp:G,direct:e,reset:n,chain_id:W}),Z=await(B==null?void 0:B.signMessage(H1(t0)));try{const o0=await(await fetch(Ve("/boot"),{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({password_hash:_,reset:n,username:t,direct:e,owner:N,timestamp:G,signature:Z,chain_id:W})})).json();sm(t,o0);const d0=setInterval(async()=>{const c0=await fetch(Ve("/"),{credentials:"include"});c0.status<300&&Number(c0.headers.get("content-length"))!==a&&(console.log("WE GOOD, ROUTING"),clearInterval(d0),window.location.replace("/"))},2e3)}catch{alert("There was an error setting your password, please try again."),T(!1)}},500)},[a,e,r,c,n,t]);return X.jsxs(X.Fragment,{children:[X.jsx(l2,{header:X.jsx(di,{prefix:"Set Password",showLogo:!0}),openConnect:()=>{},closeConnect:o,nodeChainId:s}),C?X.jsx(o2,{msg:"Setting up node..."}):X.jsxs("form",{id:"signup-form",className:"flex flex-col w-full max-w-[450px] gap-4",onSubmit:U,children:[X.jsxs("div",{className:"flex flex-col w-full place-items-center place-content-center",children:[X.jsxs("div",{className:"flex w-full place-items-center mb-2",children:[X.jsx("label",{className:"flex leading-6 place-items-center mt-2 cursor-pointer mb-2",style:{fontSize:20},htmlFor:"password",children:"New Password"}),X.jsx(jn,{text:"This password will be used to log in if you restart your node or switch browsers."})]}),X.jsx("div",{className:"flex w-full place-items-center",children:X.jsx("input",{className:"grow",type:"password",id:"password",required:!0,minLength:6,name:"password",placeholder:"Min 6 characters",value:r,onChange:P=>u(P.target.value),autoFocus:!0})})]}),X.jsxs("div",{className:"flex flex-col w-full place-items-center place-content-center",children:[X.jsx("div",{className:"flex w-full place-items-center",children:X.jsx("label",{className:"flex leading-6 place-items-center mt-2 cursor-pointer mb-4",style:{fontSize:20},htmlFor:"confirm-password",children:"Confirm Password"})}),X.jsx("div",{className:"flex w-full place-items-center",children:X.jsx("input",{className:"grow",type:"password",id:"confirm-password",required:!0,minLength:6,name:"confirm-password",placeholder:"Min 6 characters",value:c,onChange:P=>d(P.target.value)})}),!!y&&X.jsx("p",{style:{color:"red"},children:y})]}),X.jsx("button",{type:"submit",children:"Submit"})]})]})}var lm={};const OM=z1(WF),LM=z1(Qv),jM=z1(Xv),zM=z1(Kx),$M=z1(tw),qM=z1(cB),HM=z1(wB),KM=z1(rv),GM=z1(qx),Cc=z1(PE),WM=z1(IB),VM=z1(UC),JM=z1(qv),QM=z1(iv),YM=z1(iC),Fc=z1(wA),XM=z1(dC),ZM=z1(zB),eU=z1(_B),tU=z1(OE);(function(t){var e=y1&&y1.__createBinding||(Object.create?function(c0,h0,j,p){p===void 0&&(p=j),Object.defineProperty(c0,p,{enumerable:!0,get:function(){return h0[j]}})}:function(c0,h0,j,p){p===void 0&&(p=j),c0[p]=h0[j]}),r=y1&&y1.__setModuleDefault||(Object.create?function(c0,h0){Object.defineProperty(c0,"default",{enumerable:!0,value:h0})}:function(c0,h0){c0.default=h0}),n=y1&&y1.__importStar||function(c0){if(c0&&c0.__esModule)return c0;var h0={};if(c0!=null)for(var j in c0)j!=="default"&&Object.prototype.hasOwnProperty.call(c0,j)&&e(h0,c0,j);return r(h0,c0),h0};Object.defineProperty(t,"__esModule",{value:!0}),t.formatBytes32String=t.Utf8ErrorFuncs=t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t._toEscapedUtf8String=t.nameprep=t.hexDataSlice=t.hexDataLength=t.hexZeroPad=t.hexValue=t.hexStripZeros=t.hexConcat=t.isHexString=t.hexlify=t.base64=t.base58=t.TransactionDescription=t.LogDescription=t.Interface=t.SigningKey=t.HDNode=t.defaultPath=t.isBytesLike=t.isBytes=t.zeroPad=t.stripZeros=t.concat=t.arrayify=t.shallowCopy=t.resolveProperties=t.getStatic=t.defineReadOnly=t.deepCopy=t.checkProperties=t.poll=t.fetchJson=t._fetchData=t.RLP=t.Logger=t.checkResultErrors=t.FormatTypes=t.ParamType=t.FunctionFragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.Fragment=t.defaultAbiCoder=t.AbiCoder=void 0,t.Indexed=t.Utf8ErrorReason=t.UnicodeNormalizationForm=t.SupportedAlgorithm=t.mnemonicToSeed=t.isValidMnemonic=t.entropyToMnemonic=t.mnemonicToEntropy=t.getAccountPath=t.verifyTypedData=t.verifyMessage=t.recoverPublicKey=t.computePublicKey=t.recoverAddress=t.computeAddress=t.getJsonWalletAddress=t.TransactionTypes=t.serializeTransaction=t.parseTransaction=t.accessListify=t.joinSignature=t.splitSignature=t.soliditySha256=t.solidityKeccak256=t.solidityPack=t.shuffled=t.randomBytes=t.sha512=t.sha256=t.ripemd160=t.keccak256=t.computeHmac=t.commify=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.isAddress=t.getCreate2Address=t.getContractAddress=t.getIcapAddress=t.getAddress=t._TypedDataEncoder=t.id=t.isValidName=t.namehash=t.hashMessage=t.dnsEncode=t.parseBytes32String=void 0;var i=OM;Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return i.AbiCoder}}),Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return i.checkResultErrors}}),Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return i.ConstructorFragment}}),Object.defineProperty(t,"defaultAbiCoder",{enumerable:!0,get:function(){return i.defaultAbiCoder}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return i.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return i.EventFragment}}),Object.defineProperty(t,"FormatTypes",{enumerable:!0,get:function(){return i.FormatTypes}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return i.Fragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return i.FunctionFragment}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return i.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return i.Interface}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return i.LogDescription}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return i.ParamType}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return i.TransactionDescription}});var u=lh;Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return u.getAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return u.getCreate2Address}}),Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return u.getContractAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return u.getIcapAddress}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return u.isAddress}});var a=n(LM);t.base64=a;var o=jM;Object.defineProperty(t,"base58",{enumerable:!0,get:function(){return o.Base58}});var s=zM;Object.defineProperty(t,"arrayify",{enumerable:!0,get:function(){return s.arrayify}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return s.concat}}),Object.defineProperty(t,"hexConcat",{enumerable:!0,get:function(){return s.hexConcat}}),Object.defineProperty(t,"hexDataSlice",{enumerable:!0,get:function(){return s.hexDataSlice}}),Object.defineProperty(t,"hexDataLength",{enumerable:!0,get:function(){return s.hexDataLength}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return s.hexlify}}),Object.defineProperty(t,"hexStripZeros",{enumerable:!0,get:function(){return s.hexStripZeros}}),Object.defineProperty(t,"hexValue",{enumerable:!0,get:function(){return s.hexValue}}),Object.defineProperty(t,"hexZeroPad",{enumerable:!0,get:function(){return s.hexZeroPad}}),Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return s.isBytes}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return s.isBytesLike}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return s.isHexString}}),Object.defineProperty(t,"joinSignature",{enumerable:!0,get:function(){return s.joinSignature}}),Object.defineProperty(t,"zeroPad",{enumerable:!0,get:function(){return s.zeroPad}}),Object.defineProperty(t,"splitSignature",{enumerable:!0,get:function(){return s.splitSignature}}),Object.defineProperty(t,"stripZeros",{enumerable:!0,get:function(){return s.stripZeros}});var c=$M;Object.defineProperty(t,"_TypedDataEncoder",{enumerable:!0,get:function(){return c._TypedDataEncoder}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return c.dnsEncode}}),Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return c.hashMessage}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return c.id}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return c.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return c.namehash}});var d=qM;Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return d.defaultPath}}),Object.defineProperty(t,"entropyToMnemonic",{enumerable:!0,get:function(){return d.entropyToMnemonic}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return d.getAccountPath}}),Object.defineProperty(t,"HDNode",{enumerable:!0,get:function(){return d.HDNode}}),Object.defineProperty(t,"isValidMnemonic",{enumerable:!0,get:function(){return d.isValidMnemonic}}),Object.defineProperty(t,"mnemonicToEntropy",{enumerable:!0,get:function(){return d.mnemonicToEntropy}}),Object.defineProperty(t,"mnemonicToSeed",{enumerable:!0,get:function(){return d.mnemonicToSeed}});var y=HM;Object.defineProperty(t,"getJsonWalletAddress",{enumerable:!0,get:function(){return y.getJsonWalletAddress}});var A=KM;Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return A.keccak256}});var C=GM;Object.defineProperty(t,"Logger",{enumerable:!0,get:function(){return C.Logger}});var T=Cc;Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return T.computeHmac}}),Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return T.ripemd160}}),Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return T.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return T.sha512}});var U=WM;Object.defineProperty(t,"solidityKeccak256",{enumerable:!0,get:function(){return U.keccak256}}),Object.defineProperty(t,"solidityPack",{enumerable:!0,get:function(){return U.pack}}),Object.defineProperty(t,"soliditySha256",{enumerable:!0,get:function(){return U.sha256}});var P=VM;Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return P.randomBytes}}),Object.defineProperty(t,"shuffled",{enumerable:!0,get:function(){return P.shuffled}});var _=JM;Object.defineProperty(t,"checkProperties",{enumerable:!0,get:function(){return _.checkProperties}}),Object.defineProperty(t,"deepCopy",{enumerable:!0,get:function(){return _.deepCopy}}),Object.defineProperty(t,"defineReadOnly",{enumerable:!0,get:function(){return _.defineReadOnly}}),Object.defineProperty(t,"getStatic",{enumerable:!0,get:function(){return _.getStatic}}),Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return _.resolveProperties}}),Object.defineProperty(t,"shallowCopy",{enumerable:!0,get:function(){return _.shallowCopy}});var B=n(QM);t.RLP=B;var N=YM;Object.defineProperty(t,"computePublicKey",{enumerable:!0,get:function(){return N.computePublicKey}}),Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return N.recoverPublicKey}}),Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return N.SigningKey}});var W=Fc;Object.defineProperty(t,"formatBytes32String",{enumerable:!0,get:function(){return W.formatBytes32String}}),Object.defineProperty(t,"nameprep",{enumerable:!0,get:function(){return W.nameprep}}),Object.defineProperty(t,"parseBytes32String",{enumerable:!0,get:function(){return W.parseBytes32String}}),Object.defineProperty(t,"_toEscapedUtf8String",{enumerable:!0,get:function(){return W._toEscapedUtf8String}}),Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return W.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return W.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return W.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return W.Utf8ErrorFuncs}});var G=XM;Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return G.accessListify}}),Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return G.computeAddress}}),Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return G.parse}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return G.recoverAddress}}),Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return G.serialize}}),Object.defineProperty(t,"TransactionTypes",{enumerable:!0,get:function(){return G.TransactionTypes}});var t0=ZM;Object.defineProperty(t,"commify",{enumerable:!0,get:function(){return t0.commify}}),Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return t0.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return t0.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return t0.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return t0.parseUnits}});var Z=eU;Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return Z.verifyMessage}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return Z.verifyTypedData}});var e0=tU;Object.defineProperty(t,"_fetchData",{enumerable:!0,get:function(){return e0._fetchData}}),Object.defineProperty(t,"fetchJson",{enumerable:!0,get:function(){return e0.fetchJson}}),Object.defineProperty(t,"poll",{enumerable:!0,get:function(){return e0.poll}});var o0=Cc;Object.defineProperty(t,"SupportedAlgorithm",{enumerable:!0,get:function(){return o0.SupportedAlgorithm}});var d0=Fc;Object.defineProperty(t,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return d0.UnicodeNormalizationForm}}),Object.defineProperty(t,"Utf8ErrorReason",{enumerable:!0,get:function(){return d0.Utf8ErrorReason}})})(lm);const{useProvider:rU}=Ot;function nU({direct:t,setDirect:e,pw:r,setPw:n,kns:i,openConnect:u,appSizeOnLoad:a,closeConnect:o,routers:s,setNetworkingKey:c,setIpAddress:d,setWsPort:y,setTcpPort:A,setRouters:C,knsName:T,setOsName:U,nodeChainId:P}){const _=rU(),B=i2(),[N,W]=f0.useState([]),[G,t0]=f0.useState(""),[Z,e0]=f0.useState(!1),[o0,d0]=f0.useState(!1),[c0,h0]=f0.useState(!1);f0.useEffect(()=>{document.title="Login",(async()=>{try{const M=await fetch(Ve("/info"),{method:"GET",credentials:"include"}).then(k=>k.json());C(M.allowed_routers),U(M.name)}catch{}})()},[]);const j=f0.useCallback(async M=>{M==null||M.preventDefault(),M==null||M.stopPropagation();try{if(o0){if(!_)return W(["Please connect your wallet and try again"]),h0(!0),u();t0("Checking password...");let V=gt(H1(r));if((await fetch(Ve("/vet-keyfile"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({password_hash:V,keyfile:""})})).status>399)throw new Error("Incorrect password");const f=await i5({direct:t,kns:i,nodeChainId:P,chainName:H2(P),nameToSet:lm.namehash(T),setNetworkingKey:c,setIpAddress:d,setWsPort:y,setTcpPort:A,setRouters:C});t0("Please confirm the transaction");const m=await i.multicall(f);t0("Resetting Networking Information..."),await m.wait()}t0("Logging in...");let k=gt(H1(r));const I=await fetch(Ve(o0?"confirm-change-network-keys":"login"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(o0?{password_hash:k,direct:t}:{password_hash:k})});if(I.status>399)throw new Error(await I.text());if(o0){const V=await I.json();sm(T,V)}const z=setInterval(async()=>{const V=await fetch(Ve("/"),{credentials:"include"});V.status<300&&Number(V.headers.get("content-length"))!==a&&(clearInterval(z),window.location.replace("/"))},2e3)}catch(k){const I=String(k);I.includes("Object")?W(["There was an error with the transaction, or it was cancelled."]):W([I]),t0("")}},[r,a,o0,t,T,_,u,i]),p=(s==null?void 0:s.length)===0,v=o3();return X.jsxs(X.Fragment,{children:[X.jsx(l2,{header:X.jsx(di,{prefix:"Login to",showLogo:!0}),openConnect:u,closeConnect:o,hideConnect:!Z,nodeChainId:P}),G?X.jsx(o2,{msg:G}):X.jsxs("form",{id:"signup-form",className:O2("flex flex-col w-full max-w-[450px]",{"p-2":v}),onSubmit:j,children:[X.jsxs("div",{className:"self-stretch mb-2 flex flex-col",children:[X.jsxs("div",{className:"flex text-lg mb-2 place-items-center place-content-center",children:[X.jsx("h3",{className:"font-bold",children:T}),X.jsxs("span",{className:"ml-2 mt-1 text-sm",children:["(",p?"direct":"indirect"," node)"]})]}),X.jsx("input",{type:"password",id:"password",required:!0,minLength:6,name:"password",placeholder:"Password",value:r,onChange:M=>n(M.target.value),autoFocus:!0,className:"self-stretch"})]}),N.length>0&&X.jsx("div",{className:"flex flex-col w-full leading-6 mb-2",children:N.map((M,k)=>X.jsx("div",{className:"text-red-500",children:M},k))}),X.jsxs("button",{type:"submit",className:"w-full mb-2",children:[" ",o0?"Reset & ":""," Login "]}),X.jsxs("div",{className:"flex flex-col w-full self-stretch place-content-center place-items-center",children:[X.jsx("button",{className:"clear self-stretch mb-1",onClick:()=>{e0(!Z),d0(!Z)},children:Z?"Cancel":"Reset Networking Info"}),X.jsx("button",{className:"clear self-stretch",onClick:()=>{B("/reset-node")},children:"Reset Node & Password"}),Z&&X.jsxs("div",{className:"flex flex-col w-full gap-2 mt-4",children:[X.jsxs("div",{className:"flex w-full place-items-center",children:[X.jsxs("div",{className:"relative flex",children:[X.jsx("input",{type:"checkbox",id:"reset",name:"reset",checked:o0,onChange:M=>d0(M.target.checked),autoFocus:!0,className:"mr-2"}),o0&&X.jsx("span",{onClick:()=>d0(!1),className:"checkmark",children:"✓"})]}),X.jsx("label",{htmlFor:"reset",className:"direct-node-message",children:"Reset networking keys and publish on-chain"}),X.jsx(jn,{text:"This will update your networking keys and publish the new info on-chain"})]}),X.jsx(ci,{direct:t,setDirect:e})]})]})]})]})}const Bc="Unsupported punycode character",Dc="Name does not belong to this wallet",Qa="Name is not registered",_c="Name must be a valid URL without subdomains (A-Z, a-z, 0-9, and punycode)",{useAccounts:iU,useProvider:uU}=Ot;function aU({direct:t,setDirect:e,setReset:r,knsName:n,setOsName:i,dotOs:u,kns:a,openConnect:o,closeConnect:s,setNetworkingKey:c,setIpAddress:d,setWsPort:y,setTcpPort:A,setRouters:C,nodeChainId:T}){const U=iU(),P=uU(),_=i2(),B=H2(T),[N,W]=f0.useState(n.slice(0,-3)),[G,t0]=f0.useState([]),[Z,e0]=f0.useState([]),[o0,d0]=f0.useState(""),[c0,h0]=f0.useState(!1);f0.useEffect(()=>{document.title="Reset"},[]),f0.useEffect(()=>h0(!c0),[P]);const j=f0.useRef(null);f0.useEffect(()=>{j.current&&clearTimeout(j.current),j.current=setTimeout(async()=>{if(t0([]),!P||N==="")return;let v,M=[...G],k;v=M.indexOf(Bc);try{k=i3(N+".os"),v!==-1&&M.splice(v,1)}catch{v===-1&&M.push(Bc)}if(k!==void 0){v=M.indexOf(_c),N!==""&&!e3(k)?v===-1&&M.push(_c):v!==-1&&M.splice(v,1);try{const I=await(u==null?void 0:u.ownerOf($u.hash(k)));v=M.indexOf(Dc),I===U[0]&&v!==-1?M.splice(v,1):v===-1&&I!==U[0]&&M.push(Dc),v=M.indexOf(Qa),v!==-1&&M.splice(v,1)}catch{v=M.indexOf(Qa),v===-1&&M.push(Qa)}G.length===0&&i(k)}t0(M)},500)},[N,c0]);const p=f0.useCallback(async v=>{if(v.preventDefault(),v.stopPropagation(),!P||!a)return o();d0("Please confirm the transaction in your wallet");try{const M=Cr(n),k=await i5({direct:t,kns:a,nodeChainId:T,chainName:B,nameToSet:M,setNetworkingKey:c,setIpAddress:d,setWsPort:y,setTcpPort:A,setRouters:C}),I=await a.multicall(k);d0("Resetting Networking Information..."),await I.wait(),r(!0),e(t),_("/set-password")}catch{alert("An error occurred, please try again.")}finally{d0("")}},[P,n,r,e,_,o,a,t,c,d,y,A,C,T,B]);return X.jsxs(X.Fragment,{children:[X.jsx(l2,{header:X.jsx(di,{prefix:"Reset KNS Name"}),openConnect:o,closeConnect:s,nodeChainId:T}),!!P&&X.jsx("form",{id:"signup-form",className:"flex flex-col",onSubmit:p,children:o0?X.jsx(o2,{msg:o0}):X.jsxs(X.Fragment,{children:[X.jsxs("h3",{className:"flex flex-col w-full place-items-center mb-2",children:[X.jsxs("label",{className:"flex leading-6 place-items-center mt-2 cursor-pointer mb-2",children:["Specify the node ID to reset",X.jsx(jn,{text:"Kinodes use a .os name in order to identify themselves to other nodes in the network."})]}),X.jsx(s3,{name:N,setName:W,nameVets:G,dotOs:u,triggerNameCheck:c0,nameValidities:Z,setNameValidities:e0,isReset:!0})]}),X.jsx(ci,{direct:t,setDirect:e}),X.jsx("button",{type:"submit",className:"mt-2",children:" Reset Node "})]})})]})}function oU({openConnect:t,knsName:e,closeConnect:r,nodeChainId:n}){const i=i2(),u=()=>i("/claim-invite"),a=()=>i("/register-eth-name"),o=()=>i("/register-name"),s=()=>i("/reset"),c=()=>i("/import-keyfile"),d=()=>i("/login"),y=!!e,A=!!window.ethereum;return f0.useEffect(()=>{document.title="Welcome | Kinode"},[]),X.jsxs(X.Fragment,{children:[X.jsx(l2,{header:X.jsx(di,{prefix:"Welcome to",showLogo:!0}),openConnect:t,closeConnect:r,hideConnect:!0,nodeChainId:n,nameLogo:!0}),X.jsx("div",{className:"flex flex-col max-w-[460px] w-full gap-4 mt-8",children:y?X.jsx("button",{onClick:d,children:" Login "}):X.jsxs(X.Fragment,{children:[!A&&X.jsx("h4",{className:"self-start mx-auto",children:"You must install a Web3 wallet extension like Metamask in order to register or reset a username."}),A&&X.jsx("h4",{className:"self-start mx-auto",children:"New here? Register a username to get started"}),X.jsx("button",{disabled:!A,onClick:o,children:"Register Kinode Name"}),X.jsx("h4",{className:"self-start mx-auto",children:"Other options"}),n!==R2&&X.jsx("button",{disabled:!A,onClick:a,className:"alt",children:"Register ENS Name"}),X.jsx("button",{disabled:!A,onClick:u,className:"alt",children:"Claim Kinode Invite"}),X.jsx("button",{disabled:!A,onClick:s,className:"alt",children:"Reset Kinode Name"}),X.jsx("button",{onClick:c,className:"alt",children:"Import Keyfile"})]})})]})}const{useProvider:sU}=Ot;function lU({direct:t,setDirect:e,setReset:r,knsName:n,kns:i,openConnect:u,closeConnect:a,setNetworkingKey:o,setIpAddress:s,setWsPort:c,setTcpPort:d,setRouters:y,nodeChainId:A}){const C=sU(),T=i2(),U=H2(A),[P,_]=f0.useState("");f0.useEffect(()=>{document.title="Reset"},[]);const B=f0.useCallback(async N=>{if(N.preventDefault(),N.stopPropagation(),!C)return u();_("Please confirm the transaction in your wallet");try{const W=await i5({direct:t,kns:i,nodeChainId:A,chainName:U,nameToSet:Cr(n),setNetworkingKey:o,setIpAddress:s,setWsPort:c,setTcpPort:d,setRouters:y}),G=await i.multicall(W);_("Resetting Networking Information..."),await G.wait(),r(!0),e(t),T("/set-password")}catch{alert("An error occurred, please try again.")}finally{_("")}},[C,n,r,e,T,u,i,t,o,s,c,d,y,A,U]);return X.jsxs(X.Fragment,{children:[X.jsx(l2,{header:X.jsx("h1",{className:"flex c mb-8",children:"Reset Kinode Name"}),openConnect:u,closeConnect:a,nodeChainId:A}),C?X.jsx("form",{id:"signup-form",className:"flex flex-col",onSubmit:B,children:P?X.jsx(o2,{msg:P}):X.jsxs(X.Fragment,{children:[X.jsx(ci,{direct:t,setDirect:e}),X.jsxs("button",{type:"submit",className:"self-stretch mt-2 text-2xl",children:["Reset ",n]}),X.jsx(y4,{to:"/",className:"button alt mt-2",children:"Back"})]})}):X.jsx("div",{children:"Please connect a wallet to continue."})]})}function fU({pw:t,setPw:e,openConnect:r,appSizeOnLoad:n,closeConnect:i,nodeChainId:u}){const[a,o]=f0.useState(""),[s,c]=f0.useState(""),[d,y]=f0.useState([]),[A,C]=f0.useState(""),[T,U]=f0.useState(!1),[P,_]=f0.useState(!1),[B,N]=f0.useState(!1);f0.useEffect(()=>{document.title="Import Keyfile"},[]);const W=f0.useCallback(e0=>{e0.preventDefault();const o0=e0.target.files[0];if(!o0)return;const d0=new FileReader;d0.onloadend=()=>{o(d0.result),c(o0.name)},d0.readAsText(o0)},[]),G=f0.useRef(null),t0=f0.useCallback(async e0=>{var o0;e0.preventDefault(),e0.stopPropagation(),(o0=G.current)==null||o0.click()},[]),Z=f0.useCallback(async e0=>{e0.preventDefault(),e0.stopPropagation(),N(!0);try{if(d.length===0&&a!==""){let o0=gt(H1(t));if((await fetch(Ve("/vet-keyfile"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({keyfile:a,password_hash:o0})})).status>399)throw new Error("Incorrect password");if((await fetch(Ve("/import-keyfile"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({keyfile:a,password_hash:o0})})).status>399)throw new Error("Incorrect password");const h0=setInterval(async()=>{const j=await fetch(Ve("/"),{credentials:"include"});j.status<300&&Number(j.headers.get("content-length"))!==n&&(clearInterval(h0),window.location.replace("/"))},2e3)}}catch{window.alert("An error occurred, please try again."),N(!1)}},[a,t,d,n]);return X.jsxs(X.Fragment,{children:[X.jsx(l2,{header:X.jsx("h1",{children:"Import Keyfile"}),openConnect:r,closeConnect:i,hideConnect:!0,nodeChainId:u}),B?X.jsx(o2,{msg:"Setting up node..."}):X.jsxs("form",{id:"signup-form",className:"flex flex-col max-w-[450px]",onSubmit:Z,children:[X.jsxs("div",{className:"flex flex-col self-start place-content-center w-full",children:[X.jsxs("h4",{className:"my-2 flex",children:[" ","1. Upload Keyfile"," "]}),!!s&&X.jsxs("h5",{className:"underline mb-2",children:[" ",s||".keyfile"," "]}),X.jsxs("button",{type:"button",onClick:t0,children:[s?"Change":"Select"," Keyfile"]}),X.jsx("input",{ref:G,className:"hidden",type:"file",onChange:W})]}),X.jsxs("div",{className:"flex flex-col w-full",children:[X.jsxs("h4",{className:"my-2 flex",children:[" ","2. Enter Password"," "]}),X.jsx("input",{type:"password",id:"password",required:!0,minLength:6,name:"password",placeholder:"Min 6 characters",value:t,onChange:e0=>e(e0.target.value),className:"mb-2"}),A&&X.jsxs("div",{className:"flex",children:[" ",X.jsxs("p",{className:"text-red-500",children:[" ",A," "]})," "]}),P&&!T&&6<=t.length&&X.jsxs("div",{className:"flex",children:[" ",X.jsx("p",{className:"text-red-500",children:" Password is incorrect "})," "]})]}),X.jsxs("div",{className:"flex flex-col w-full mb-2",children:[d.map((e0,o0)=>X.jsx("span",{className:"key-err",children:e0},o0)),X.jsx("button",{type:"submit",children:" Import Keyfile "})]}),X.jsx("p",{className:"text-sm",children:'Please note: if the original node was booted as a direct node (static IP), then you must run this node from the same IP. If not, you will have networking issues. If you need to change the network options, please go back and select "Reset OsName".'})]})]})}var t6={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useProvider:cU}=Ot;function dU(){const t=cU(),e=bx(),[r,n]=f0.useState(""),[i,u]=f0.useState(""),[a,o]=f0.useState(""),[s,c]=f0.useState(!1),[d,y]=f0.useState(!1),[A,C]=f0.useState(""),[T,U]=f0.useState(0),[P,_]=f0.useState(""),[B,N]=f0.useState(0),[W,G]=f0.useState(0),[t0,Z]=f0.useState(0),[e0,o0]=f0.useState([]),[d0,c0]=f0.useState(""),[h0,j]=f0.useState(!1),[p,v]=f0.useState(!(e!=null&&e.initial)),[M,k]=f0.useState(!1),I=()=>k(!0),z=()=>k(!1),V=f0.useMemo(()=>{var z0;return((z0=t==null?void 0:t.network)==null?void 0:z0.chainId)===Q0.SEPOLIA?t6.REACT_APP_SEPOLIA_RPC_URL:t6.REACT_APP_OPTIMISM_RPC_URL},[t]),[b,f]=f0.useState(),[m,D]=f0.useState(),[l,S]=f0.useState(),[O,$]=f0.useState(),[H,n0]=f0.useState(),[u0,s0]=f0.useState();f0.useEffect(()=>{var z0,M0,I0,R0,V0,G0,X0;V&&(f(tu.connect(((z0=t==null?void 0:t.network)==null?void 0:z0.chainId)===Q0.SEPOLIA?M5[Q0.SEPOLIA]:M5[Q0.OPTIMISM],new He(V))),D(uu.connect(((M0=t==null?void 0:t.network)==null?void 0:M0.chainId)===Q0.SEPOLIA?Oi[Q0.SEPOLIA]:Oi[Q0.OPTIMISM],new He(V))),S(nu.connect(((I0=t==null?void 0:t.network)==null?void 0:I0.chainId)===Q0.SEPOLIA?R5[Q0.SEPOLIA]:R5[Q0.MAINNET],new He(((R0=t==null?void 0:t.network)==null?void 0:R0.chainId)===Q0.SEPOLIA?t6.REACT_APP_SEPOLIA_RPC_URL:t6.REACT_APP_MAINNET_RPC_URL))),$(iu.connect(((V0=t==null?void 0:t.network)==null?void 0:V0.chainId)===Q0.SEPOLIA?O5[Q0.SEPOLIA]:O5[Q0.OPTIMISM],new He(V))),n0(au.connect(((G0=t==null?void 0:t.network)==null?void 0:G0.chainId)===Q0.SEPOLIA?U5[Q0.SEPOLIA]:U5[Q0.MAINNET],new He(V))),s0(ru.connect(((X0=t==null?void 0:t.network)==null?void 0:X0.chainId)===Q0.SEPOLIA?I5[Q0.SEPOLIA]:I5[Q0.MAINNET],new He(V))))},[V,t]),f0.useEffect(()=>U(window.performance.getEntriesByType("navigation")[0].transferSize),[]),f0.useEffect(()=>{(async()=>{try{const z0=await fetch(Ve("/info"),{method:"GET",credentials:"include"});if(z0.status>399)console.log("no info, unbooted");else{const M0=await z0.json();p&&(C(M0.name),o0(M0.allowed_routers),j(!0),v(!1))}}catch{console.log("no info, unbooted")}try{const z0=await fetch(Ve("/current-chain"),{method:"GET",credentials:"include"});if(z0.status<400){const M0=await z0.json();c0(M0.toLowerCase()),console.log("Node Chain ID:",M0)}else console.error("error processing chain response",z0)}catch(z0){console.error("error getting current chain",z0)}})()},[]),f0.useEffect(()=>j(!1),[p]),f0.useEffect(()=>{t==null||t.getNetwork().then(z0=>{z0.chainId===Q0.SEPOLIA?(f(tu.connect(M5[Q0.SEPOLIA],t.getSigner())),D(uu.connect(Oi[Q0.SEPOLIA],t.getSigner())),S(nu.connect(R5[Q0.SEPOLIA],t.getSigner())),$(iu.connect(O5[Q0.SEPOLIA],t.getSigner())),n0(au.connect(U5[Q0.SEPOLIA],t.getSigner())),s0(ru.connect(I5[Q0.SEPOLIA],t.getSigner()))):(z0.chainId===Q0.OPTIMISM||z0.chainId===Q0.MAINNET)&&(f(tu.connect(M5[Q0.OPTIMISM],t.getSigner())),D(uu.connect(Oi[Q0.OPTIMISM],t.getSigner())),$(iu.connect(O5[Q0.OPTIMISM],t.getSigner())),S(nu.connect(R5[Q0.MAINNET],t.getSigner())),n0(au.connect(U5[Q0.MAINNET],new He(t6.REACT_APP_MAINNET_RPC_URL))),s0(ru.connect(I5[Q0.MAINNET],new He(t6.REACT_APP_MAINNET_RPC_URL))))})},[t]);const g0=Q0.SEPOLIA,y0=Q0.SEPOLIA,_0={direct:d,setDirect:y,key:i,keyFileName:a,setKeyFileName:o,reset:s,setReset:c,pw:r,setPw:n,knsName:A,setOsName:C,dotOs:b,kns:m,knsEnsEntry:l,knsEnsExit:O,nameWrapper:H,ensRegistry:u0,knsEnsEntryNetwork:g0,knsEnsExitNetwork:y0,connectOpen:M,openConnect:I,closeConnect:z,provider:t,appSizeOnLoad:T,networkingKey:P,setNetworkingKey:_,ipAddress:B,setIpAddress:N,ws_port:W,setWsPort:G,tcp_port:t0,setTcpPort:Z,routers:e0,setRouters:o0,nodeChainId:d0};return X.jsxs(X.Fragment,{children:[X.jsx(a_,{..._0}),X.jsx(Rx,{children:X.jsxs(Sx,{children:[X.jsx(or,{path:"/",element:h0?X.jsx(_x,{to:"/login",replace:!0}):X.jsx(oU,{..._0})}),X.jsx(or,{path:"/claim-invite",element:X.jsx(IM,{..._0})}),X.jsx(or,{path:"/register-name",element:X.jsx(NM,{..._0})}),X.jsx(or,{path:"/register-eth-name",element:X.jsx(TM,{..._0})}),X.jsx(or,{path:"/set-password",element:X.jsx(RM,{..._0})}),X.jsx(or,{path:"/reset",element:X.jsx(aU,{..._0})}),X.jsx(or,{path:"/reset-node",element:X.jsx(lU,{..._0})}),X.jsx(or,{path:"/import-keyfile",element:X.jsx(fU,{..._0})}),X.jsx(or,{path:"/login",element:X.jsx(nU,{..._0})})]})})]})}var fm={},W8={};W8.byteLength=bU;W8.toByteArray=yU;W8.fromByteArray=vU;var pr=[],Bt=[],hU=typeof Uint8Array<"u"?Uint8Array:Array,Ya="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var r6=0,pU=Ya.length;r60)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 bU(t){var e=cm(t),r=e[0],n=e[1];return(r+n)*3/4-n}function mU(t,e,r){return(e+r)*3/4-r}function yU(t){var e,r=cm(t),n=r[0],i=r[1],u=new hU(mU(t,n,i)),a=0,o=i>0?n-4:n,s;for(s=0;s>16&255,u[a++]=e>>8&255,u[a++]=e&255;return i===2&&(e=Bt[t.charCodeAt(s)]<<2|Bt[t.charCodeAt(s+1)]>>4,u[a++]=e&255),i===1&&(e=Bt[t.charCodeAt(s)]<<10|Bt[t.charCodeAt(s+1)]<<4|Bt[t.charCodeAt(s+2)]>>2,u[a++]=e>>8&255,u[a++]=e&255),u}function gU(t){return pr[t>>18&63]+pr[t>>12&63]+pr[t>>6&63]+pr[t&63]}function xU(t,e,r){for(var n,i=[],u=e;uo?o:a+u));return n===1?(e=t[r-1],i.push(pr[e>>2]+pr[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(pr[e>>10]+pr[e>>4&63]+pr[e<<2&63]+"=")),i.join("")}var l3={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */l3.read=function(t,e,r,n,i){var u,a,o=i*8-n-1,s=(1<>1,d=-7,y=r?i-1:0,A=r?-1:1,C=t[e+y];for(y+=A,u=C&(1<<-d)-1,C>>=-d,d+=o;d>0;u=u*256+t[e+y],y+=A,d-=8);for(a=u&(1<<-d)-1,u>>=-d,d+=n;d>0;a=a*256+t[e+y],y+=A,d-=8);if(u===0)u=1-c;else{if(u===s)return a?NaN:(C?-1:1)*(1/0);a=a+Math.pow(2,n),u=u-c}return(C?-1:1)*a*Math.pow(2,u-n)};l3.write=function(t,e,r,n,i,u){var a,o,s,c=u*8-i-1,d=(1<>1,A=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=n?0:u-1,T=n?1:-1,U=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,a=d):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),a+y>=1?e+=A/s:e+=A*Math.pow(2,1-y),e*s>=2&&(a++,s/=2),a+y>=d?(o=0,a=d):a+y>=1?(o=(e*s-1)*Math.pow(2,i),a=a+y):(o=e*Math.pow(2,y-1)*Math.pow(2,i),a=0));i>=8;t[r+C]=o&255,C+=T,o/=256,i-=8);for(a=a<0;t[r+C]=a&255,C+=T,a/=256,c-=8);t[r+C-T]|=U*128};/*! +*/(function(t){(function(){var e={}.hasOwnProperty;function r(){for(var u="",a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function xM(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,u;for(u=0;u=0)&&(r[i]=t[i]);return r}function s8(){return s8=Object.assign?Object.assign.bind():function(t){for(var e=1;eGr.createElement(e.tag,f8({key:r},e.attr),am(e.child)))}function om(t){return e=>Gr.createElement(EM,s8({attr:f8({},t.attr)},e),am(t.child))}function EM(t){var e=r=>{var{attr:n,size:i,title:u}=t,a=gM(t,yM),o=i||r.size||"1em",s;return r.className&&(s=r.className),t.className&&(s=(s?s+" ":"")+t.className),Gr.createElement("svg",s8({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:s,style:f8(f8({color:t.color||r.color},r.style),t.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),u&&Gr.createElement("title",null,u),t.children)};return wc!==void 0?Gr.createElement(wc.Consumer,null,r=>e(r)):e(um)}function CM(t){return om({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"},child:[]}]})(t)}function FM(t){return om({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"},child:[]}]})(t)}const jn=({text:t,button:e,className:r,position:n})=>{const[i,u]=l0.useState(!1);return X.jsxs("div",{className:O2("flex place-items-center place-content-center text-sm relative cursor-pointer shrink",r),children:[X.jsx("div",{onClick:()=>u(!i),children:e||X.jsx("button",{className:"icon ml-4",type:"button",children:X.jsx(CM,{})})}),X.jsx("div",{className:O2("absolute rounded bg-black p-2 min-w-[200px] z-10",{"!hidden":!i,"top-8":n==="top"||!n,"bottom-8":n==="bottom","right-8":n==="left","left-8":n==="right"}),children:t}),X.jsx("button",{type:"button",className:O2("absolute bg-black icon right-0 top-0",{"!hidden":!i}),onClick:()=>u(!1),children:X.jsx(FM,{})})]})},o3=()=>window.innerWidth<=600,{useIsActivating:BM,useChainId:DM}=Ot;function f2({header:t,closeConnect:e,nodeChainId:r,hideConnect:n=!1}){const{account:i,isActive:u}=D8.useWeb3React(),a=BM(),o=DM(),[s,c]=l0.useState("");l0.useEffect(()=>{c(H2(o==null?void 0:o.toString()))},[o]);const d=l0.useCallback(async()=>{e(),await j4.activate(),a8(r)},[e,r]),y=l0.useCallback(async()=>{if(o){if("0x"+o.toString(16)===r)return alert(`You are already connected to ${H2(o.toString())}`);a8(r)}},[o,r]),A=l0.useCallback(async()=>{alert("You can change your connected account in your wallet.")},[]),C=o3();return X.jsx(X.Fragment,{children:X.jsxs("div",{id:"signup-form-header",className:"flex flex-col",children:[(r===yn||r===R2)&&X.jsx(jn,{position:"left",className:O2("!absolute z-10",{"top-8 right-8":!C,"top-2 right-2":C}),button:r===yn?X.jsx("img",{alt:"sepolia",className:"network-icon",src:Kb}):r===R2?X.jsx("img",{alt:"optimism",className:"network-icon",src:Gb}):"Not connected",text:r===yn?'Your Kinode is currently pointed at Sepolia. To point at Optimism, boot without the "--testnet" flag.':r===R2?'Your Kinode is currently pointed at Optimism. To point at Sepolia, boot with the "--testnet" flag.':"Your Kinode is not pointed at a chain."}),X.jsx("div",{className:"flex flex-col gap-4 c",children:t}),!n&&X.jsx("div",{className:"flex c w-[99vw] mb-8 absolute top-2 left-2",children:u&&i?X.jsx(bM,{account:i,networkName:s,changeToNodeChain:y,changeConnectedAccount:A}):X.jsxs("div",{className:"flex flex-col gap-8 my-4",children:[X.jsxs("h5",{className:O2("flex c",{"flex-wrap text-center max-w-3/4 gap-2":C}),children:[!a&&"You must connect to a browser wallet to continue.",a?X.jsx(o2,{msg:"Approve connection in your wallet"}):X.jsx("button",{onClick:d,className:"ml-2",children:" Connect Wallet "})]}),r===yn&&X.jsxs("h5",{className:"text-center max-w-[450px] leading-6 flex c",children:["Kinode is currently on the Sepolia Testnet.",X.jsx("a",{href:"https://sepoliafaucet.com/",target:"_blank",rel:"noreferrer",className:"button alt ml-2",children:"Get Testnet ETH"})]})]})})]})})}const _M=()=>X.jsx(jn,{text:"A direct node publishes its own networking information on-chain: IP, port, so on. An indirect node relies on the service of routers, which are themselves direct nodes. Only register a direct node if you know what you’re doing and have a public, static IP address."});function ci({direct:t,setDirect:e}){return X.jsxs("div",{className:"flex place-items-center",children:[X.jsxs("div",{className:"relative flex place-items-center mr-2",children:[X.jsx("input",{type:"checkbox",id:"direct",name:"direct",checked:t,onChange:r=>e(r.target.checked),autoFocus:!0}),t&&X.jsx("span",{onClick:()=>e(!1),className:"checkmark",children:"✓"})]}),X.jsx("label",{htmlFor:"direct",className:"flex place-items-center cursor-pointer",children:"Register as a direct node. If you are unsure leave unchecked."}),X.jsx(_M,{})]})}const kM="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20width='779'%20height='514'%20viewBox='0%200%20779%20514'%20fill='none'%20version='1.1'%20id='svg2'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs2'%20/%3e%3cpath%20d='M753.092%205.91932C756.557%205.09976%20755.962%20-0.00012207%20752.401%20-0.00012207H426.001C424.755%20-0.00012207%20423.639%200.77027%20423.197%201.93535L236.968%20492.6C235.729%20495.865%20240.123%20498.255%20242.191%20495.441L569.357%2050.1132C569.778%2049.5392%20570.391%2049.1339%20571.084%2048.97L753.092%205.91932Z'%20fill='%23FFF5D9'%20id='path1'%20/%3e%3cpath%20d='M%2012.054907,40.2288%20C%209.0444768,38.777%2010.207772,34.4583%2013.582982,34.5557%20l%20411.845088,11.881%20c%202.17167,0.0626%203.63105,2.1382%202.85869,4.0656%20l%20-62.7457,156.4787%20c%20-0.66805,1.666%20-2.71117,2.415%20-4.38655,1.607%20z'%20fill='%23fff5d9'%20id='path2'%20style='stroke-width:1.0265'%20/%3e%3c/svg%3e",di=({prefix:t,showLogo:e})=>{const r=o3();return X.jsxs("div",{className:"mb-4 flex flex-col c",children:[X.jsx("h1",{children:t}),e&&X.jsxs(X.Fragment,{children:[X.jsxs("h1",{className:O2("display",{"text-5xl mt-10 mb-8 ml-4":!r,"text-3xl mt-5 mb-4 ml-2":r}),children:["Kinode",X.jsx("span",{className:"text-xs",children:"®"})]}),X.jsx("img",{src:kM,className:O2({"w-32 h-32":!r,"w-16 h-16":r})})]})]})},{useAccounts:SM}=Ot;function TM({direct:t,setDirect:e,setOsName:r,nameWrapper:n,ensRegistry:i,knsEnsEntry:u,kns:a,openConnect:o,provider:s,closeConnect:c,setNetworkingKey:d,setIpAddress:y,setWsPort:A,setTcpPort:C,setRouters:T,nodeChainId:U}){let P=SM(),_=i2();const B=H2(U),[N,W]=l0.useState(""),[G,t0]=l0.useState(""),[Z,e0]=l0.useState([]),[o0,d0]=l0.useState(!1);l0.useEffect(()=>{document.title="Register"},[]),l0.useEffect(()=>d0(!o0),[s]);const c0={name:G,setName:t0,nameValidities:Z,setNameValidities:e0,nameWrapper:n,ensRegistry:i,triggerNameCheck:o0};let h0=l0.useCallback(async j=>{if(j.preventDefault(),j.stopPropagation(),!s)return o();W("Please confirm the transaction in your wallet");try{const p=G.trim().replace(".eth",""),v=Cr(`${p}.eth`),k=await i5({direct:t,kns:a,nodeChainId:U===R2?Z9:U,chainName:B,nameToSet:v,setNetworkingKey:d,setIpAddress:y,setWsPort:A,setTcpPort:C,setRouters:T});W("Please confirm the transaction in your wallet");const I=Bb(`${p}.eth`),z=$u.hash(`${p}.eth`),V=await u.setKNSRecords(I,k,{gasLimit:3e5}),b=(l,m)=>{l===z&&(a.off("NodeRegistered",b),W(""),r(`${p}.eth`),_("/set-password"))};await a8(U),W(`Registering ${p}.eth on Kinode... this may take a few minutes.`),a.on("NodeRegistered",b),await V.wait()}catch(p){console.error("Registration Error:",p),W(""),alert("There was an error linking your ENS name, please try again.")}},[G,t,P,a,_,r,s,o,d,y,A,C,T,U,B]);return X.jsxs(X.Fragment,{children:[X.jsx(f2,{header:X.jsx(di,{prefix:"Register via ENS"}),openConnect:o,closeConnect:c,nodeChainId:U===R2?Z9:U}),!!s&&X.jsx("form",{id:"signup-form",className:"flex flex-col",onSubmit:h0,children:N?X.jsx(o2,{msg:N}):X.jsxs(X.Fragment,{children:[X.jsxs("h3",{className:"w-full flex flex-col c mb-2",children:[X.jsx("label",{className:"flex leading-6 mb-2",children:"Set up your Kinode with a .eth name"}),X.jsx(yN,{...c0})]}),X.jsx(ci,{direct:t,setDirect:e}),X.jsx("button",{disabled:Z.length!==0,type:"submit",className:"mt-2",children:"Register .eth name"})]})})]})}function s3({name:t,setName:e,nameValidities:r,setNameValidities:n,dotOs:i,triggerNameCheck:u,isReset:a=!1}){const o="Name must be a valid URL without subdomains (A-Z, a-z, 0-9, and punycode)",s="Name must be 9 characters or more",c="Name is already claimed",d="Unsupported punycode character",y=l0.useRef(null);l0.useEffect(()=>{a||(y.current&&clearTimeout(y.current),y.current=setTimeout(async()=>{let C,T=[...r];const U=[...t].length;C=T.indexOf(s),U<9&&U!==0?C===-1&&T.push(s):C!==-1&&T.splice(C,1);let P="";C=T.indexOf(d);try{P=i3(t+".os"),C!==-1&&T.splice(C,1)}catch{C===-1&&T.push(d)}if(P&&P!==".os"&&(C=T.indexOf(o),t!==""&&!e3(P)?C===-1&&T.push(o):C!==-1&&T.splice(C,1),C=T.indexOf(c),T.length===0||C!==-1&&P.length>2))try{const _=iN.hash(P);await(i==null?void 0:i.ownerOf(_))&&C===-1&&T.push(c)}catch(_){console.error({e:_}),C!==-1&&T.splice(C,1)}n(T)},500))},[t,u,a]);const A=C=>C.target.value.indexOf(".")===-1&&e(C.target.value);return X.jsxs("div",{className:"flex flex-col w-full place-items-center place-content-center",children:[X.jsxs("div",{className:"flex w-full place-items-center",children:[X.jsx("input",{value:t,onChange:A,type:"text",required:!0,name:"dot-os-name",placeholder:"e.g. myname",className:"grow"}),X.jsx("div",{className:"ml-2 text-lg",children:".os"})]}),r.map((C,T)=>X.jsxs("div",{children:[X.jsx("br",{}),X.jsx("span",{className:"text-red-500",children:C})]},T))]})}const{useAccounts:PM}=Ot;function NM({direct:t,setDirect:e,setOsName:r,dotOs:n,kns:i,openConnect:u,provider:a,closeConnect:o,setNetworkingKey:s,setIpAddress:c,setWsPort:d,setTcpPort:y,setRouters:A,nodeChainId:C}){let T=PM(),U=i2();const P=H2(C),[_,B]=l0.useState(""),[N,W]=l0.useState(""),[G,t0]=l0.useState([]),[Z,e0]=l0.useState(!1);l0.useEffect(()=>{document.title="Register"},[]),l0.useEffect(()=>e0(!Z),[a]);const o0={name:N,setName:W,nameValidities:G,setNameValidities:t0,dotOs:n,triggerNameCheck:Z};let d0=l0.useCallback(async c0=>{if(c0.preventDefault(),c0.stopPropagation(),!a||!i)return u();B("Please confirm the transaction in your wallet");try{const h0=Cr(`${N}.os`),j=await i5({direct:t,kns:i,nodeChainId:C,chainName:P,nameToSet:h0,setNetworkingKey:s,setIpAddress:c,setWsPort:d,setTcpPort:y,setRouters:A}),p=Bb(`${N}.os`),v=await(n==null?void 0:n.register(p,T[0],j));B("Registering KNS ID..."),await(v==null?void 0:v.wait()),B(""),r(`${N}.os`),U("/set-password")}catch(h0){console.error("Registration Error:",h0),B(""),alert("There was an error registering your dot-os-name, please try again.")}},[N,t,T,n,i,U,r,a,u,s,c,d,y,A,C,P]);return X.jsxs(X.Fragment,{children:[X.jsx(f2,{header:X.jsx("h1",{className:"flex place-content-center place-items-center mb-4",children:"Register Kinode Name (KNS)"}),openConnect:u,closeConnect:o,nodeChainId:C}),!!a&&X.jsx("form",{id:"signup-form",className:"flex flex-col w-full max-w-[450px]",onSubmit:d0,children:_?X.jsx(o2,{msg:_}):X.jsxs(X.Fragment,{children:[X.jsxs("h3",{className:"flex flex-col w-full place-items-center my-8",children:[X.jsxs("label",{className:"flex leading-6 place-items-center mt-2 cursor-pointer mb-2",children:["Choose a name for your Kinode",X.jsx(jn,{text:"Kinodes need an onchain node identity in order to communicate with other nodes in the network."})]}),X.jsx(s3,{...o0})]}),X.jsx(ci,{direct:t,setDirect:e}),X.jsx("button",{disabled:G.length!==0,type:"submit",className:"mt-2",children:"Register .os name"}),X.jsx(y4,{to:"/reset",className:"flex self-stretch mt-2",children:X.jsx("button",{className:"clear grow",children:"already have a dot-os-name?"})})]})})]})}function Ve(t){return t.replace(/^\/api/,"")}var Ja={};const{useAccounts:MM,useProvider:UM}=Ot;function IM({direct:t,setDirect:e,setOsName:r,dotOs:n,openConnect:i,setNetworkingKey:u,setIpAddress:a,setWsPort:o,setTcpPort:s,setRouters:c,closeConnect:d,nodeChainId:y}){const A=MM(),C=UM(),T=i2(),[U,P]=l0.useState(!1),[_,B]=l0.useState(""),[N,W]=l0.useState(!1),[G,t0]=l0.useState(""),[Z,e0]=l0.useState(""),[o0,d0]=l0.useState(""),[c0,h0]=l0.useState([]);l0.useEffect(()=>{document.title="Claim Invite"},[]),l0.useEffect(()=>W(!N),[C]),l0.useEffect(()=>{(async()=>{if(G!==""){const v=Ja.REACT_APP_INVITE_GET+G,M=await fetch(Ve(v),{method:"GET",credentials:"include"});M.status===200?e0(""):e0(await M.text())}})()},[G]);let j=async v=>{if(v.preventDefault(),v.stopPropagation(),!C)return i();const{networking_key:M,routing:{Both:{ip:k,ports:{ws:I,tcp:z},routers:V}}}=await fetch(Ve("/generate-networking-info"),{method:"POST",credentials:"include"}).then(O=>O.json()),b=Hb(k);if(u(M),a(b),o(I||0),s(z||0),c(V),c0.length!==0||Z!=="")return;if(!o0||!G)return window.alert("Please enter a name and invite code"),!1;let l;B("...Building EIP-4337 User Operation"),P(!0),console.log("BUILDING",M,b,I,z,V);try{l=await fetch(Ve(Ja.REACT_APP_BUILD_USER_OP_POST),{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({name:o0+".os",address:A[0],networkingKey:M,wsIp:b,wsPort:I,tcpPort:z,routers:V,direct:t})})}catch(O){B(""),P(!1),alert(O),console.error("error from fetching userOp:",O);return}B("...Signing EIP-4337 User Operation");const m=await l.json(),D=new Uint8Array(Object.values(m.message)),f=await(C==null?void 0:C.getSigner()),S=await(f==null?void 0:f.signMessage(D));m.userOperation.signature=S;try{l=await fetch(Ve(Ja.REACT_APP_BROADCAST_USER_OP_POST),{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({userOp:m.userOperation,code:G,name:o0+".os",eoa:A[0]})})}catch(O){alert(O),console.error("error from broadcasting userOp:",O);return}finally{B(""),P(!1)}r(`${o0}.os`),T("/set-password")};const p={name:o0,setName:d0,nameValidities:c0,setNameValidities:h0,dotOs:n,triggerNameCheck:N};return X.jsxs(X.Fragment,{children:[X.jsx(f2,{header:X.jsx(di,{prefix:"Claim Invite"}),openConnect:i,closeConnect:d,nodeChainId:y}),!!C&&X.jsx("form",{id:"signup-form",className:"flex flex-col",onSubmit:j,children:U?X.jsx(o2,{msg:_}):X.jsxs(X.Fragment,{children:[X.jsxs("div",{className:"flex c mb-2",children:[X.jsx("h5",{children:"Set up your Kinode with a .os name"}),X.jsx(jn,{text:"Kinodes use a .os name in order to identify themselves to other nodes in the network."})]}),X.jsxs("div",{className:"flex flex-col mb-2",children:[X.jsx("input",{value:G,onChange:v=>t0(v.target.value),type:"text",required:!0,name:"nec-invite",placeholder:"invite code",className:"self-stretch"}),Z!==""&&X.jsx("div",{className:"invite-validity",children:Z})]}),X.jsx("h3",{className:"mb-2",children:X.jsx(s3,{...p})}),X.jsx(ci,{direct:t,setDirect:e}),X.jsx("button",{disabled:c0.length!==0||Z!=="",type:"submit",className:"self-stretch mt-2",children:"Register .os name"}),X.jsx(y4,{to:"/reset",className:"button clear",children:"already have a .os?"})]})})]})}const sm=(t,e)=>{let r=new Blob([e],{type:"text/plain;charset=utf-8"});const n=window.URL.createObjectURL(r),i=document.createElement("a");i.href=n,i.setAttribute("download",`${t}.keyfile`),document.body.appendChild(i),i.click()};function RM({knsName:t,direct:e,pw:r,reset:n,provider:i,setPw:u,appSizeOnLoad:a,closeConnect:o,nodeChainId:s}){const[c,d]=l0.useState(""),[y,A]=l0.useState(""),[C,T]=l0.useState(!1);l0.useEffect(()=>{document.title="Set Password"},[]),l0.useEffect(()=>{A("")},[r,c]);const U=l0.useCallback(async P=>{if(P.preventDefault(),r!==c)return A("Passwords do not match"),!1;setTimeout(async()=>{T(!0);let _=gt(H1(r)),B=await(i==null?void 0:i.getSigner()),N=await(B==null?void 0:B.getAddress()),W=await(B==null?void 0:B.getChainId()),G=Date.now(),t0=JSON.stringify({username:t,password_hash:_,timestamp:G,direct:e,reset:n,chain_id:W}),Z=await(B==null?void 0:B.signMessage(H1(t0)));try{const o0=await(await fetch(Ve("/boot"),{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({password_hash:_,reset:n,username:t,direct:e,owner:N,timestamp:G,signature:Z,chain_id:W})})).json();sm(t,o0);const d0=setInterval(async()=>{const c0=await fetch(Ve("/"),{credentials:"include"});c0.status<300&&Number(c0.headers.get("content-length"))!==a&&(console.log("WE GOOD, ROUTING"),clearInterval(d0),window.location.replace("/"))},2e3)}catch{alert("There was an error setting your password, please try again."),T(!1)}},500)},[a,e,r,c,n,t]);return X.jsxs(X.Fragment,{children:[X.jsx(f2,{header:X.jsx(di,{prefix:"Set Password",showLogo:!0}),openConnect:()=>{},closeConnect:o,nodeChainId:s}),C?X.jsx(o2,{msg:"Setting up node..."}):X.jsxs("form",{id:"signup-form",className:"flex flex-col w-full max-w-[450px] gap-4",onSubmit:U,children:[X.jsxs("div",{className:"flex flex-col w-full place-items-center place-content-center",children:[X.jsxs("div",{className:"flex w-full place-items-center mb-2",children:[X.jsx("label",{className:"flex leading-6 place-items-center mt-2 cursor-pointer mb-2",style:{fontSize:20},htmlFor:"password",children:"New Password"}),X.jsx(jn,{text:"This password will be used to log in if you restart your node or switch browsers."})]}),X.jsx("div",{className:"flex w-full place-items-center",children:X.jsx("input",{className:"grow",type:"password",id:"password",required:!0,minLength:6,name:"password",placeholder:"Min 6 characters",value:r,onChange:P=>u(P.target.value),autoFocus:!0})})]}),X.jsxs("div",{className:"flex flex-col w-full place-items-center place-content-center",children:[X.jsx("div",{className:"flex w-full place-items-center",children:X.jsx("label",{className:"flex leading-6 place-items-center mt-2 cursor-pointer mb-4",style:{fontSize:20},htmlFor:"confirm-password",children:"Confirm Password"})}),X.jsx("div",{className:"flex w-full place-items-center",children:X.jsx("input",{className:"grow",type:"password",id:"confirm-password",required:!0,minLength:6,name:"confirm-password",placeholder:"Min 6 characters",value:c,onChange:P=>d(P.target.value)})}),!!y&&X.jsx("p",{style:{color:"red"},children:y})]}),X.jsx("button",{type:"submit",children:"Submit"})]})]})}var fm={};const OM=z1(WF),LM=z1(Qv),jM=z1(Xv),zM=z1(Kx),$M=z1(tw),qM=z1(cB),HM=z1(wB),KM=z1(rv),GM=z1(qx),Cc=z1(PE),WM=z1(IB),VM=z1(UC),JM=z1(qv),QM=z1(iv),YM=z1(iC),Fc=z1(wA),XM=z1(dC),ZM=z1(zB),eU=z1(_B),tU=z1(OE);(function(t){var e=y1&&y1.__createBinding||(Object.create?function(c0,h0,j,p){p===void 0&&(p=j),Object.defineProperty(c0,p,{enumerable:!0,get:function(){return h0[j]}})}:function(c0,h0,j,p){p===void 0&&(p=j),c0[p]=h0[j]}),r=y1&&y1.__setModuleDefault||(Object.create?function(c0,h0){Object.defineProperty(c0,"default",{enumerable:!0,value:h0})}:function(c0,h0){c0.default=h0}),n=y1&&y1.__importStar||function(c0){if(c0&&c0.__esModule)return c0;var h0={};if(c0!=null)for(var j in c0)j!=="default"&&Object.prototype.hasOwnProperty.call(c0,j)&&e(h0,c0,j);return r(h0,c0),h0};Object.defineProperty(t,"__esModule",{value:!0}),t.formatBytes32String=t.Utf8ErrorFuncs=t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t._toEscapedUtf8String=t.nameprep=t.hexDataSlice=t.hexDataLength=t.hexZeroPad=t.hexValue=t.hexStripZeros=t.hexConcat=t.isHexString=t.hexlify=t.base64=t.base58=t.TransactionDescription=t.LogDescription=t.Interface=t.SigningKey=t.HDNode=t.defaultPath=t.isBytesLike=t.isBytes=t.zeroPad=t.stripZeros=t.concat=t.arrayify=t.shallowCopy=t.resolveProperties=t.getStatic=t.defineReadOnly=t.deepCopy=t.checkProperties=t.poll=t.fetchJson=t._fetchData=t.RLP=t.Logger=t.checkResultErrors=t.FormatTypes=t.ParamType=t.FunctionFragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.Fragment=t.defaultAbiCoder=t.AbiCoder=void 0,t.Indexed=t.Utf8ErrorReason=t.UnicodeNormalizationForm=t.SupportedAlgorithm=t.mnemonicToSeed=t.isValidMnemonic=t.entropyToMnemonic=t.mnemonicToEntropy=t.getAccountPath=t.verifyTypedData=t.verifyMessage=t.recoverPublicKey=t.computePublicKey=t.recoverAddress=t.computeAddress=t.getJsonWalletAddress=t.TransactionTypes=t.serializeTransaction=t.parseTransaction=t.accessListify=t.joinSignature=t.splitSignature=t.soliditySha256=t.solidityKeccak256=t.solidityPack=t.shuffled=t.randomBytes=t.sha512=t.sha256=t.ripemd160=t.keccak256=t.computeHmac=t.commify=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.isAddress=t.getCreate2Address=t.getContractAddress=t.getIcapAddress=t.getAddress=t._TypedDataEncoder=t.id=t.isValidName=t.namehash=t.hashMessage=t.dnsEncode=t.parseBytes32String=void 0;var i=OM;Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return i.AbiCoder}}),Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return i.checkResultErrors}}),Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return i.ConstructorFragment}}),Object.defineProperty(t,"defaultAbiCoder",{enumerable:!0,get:function(){return i.defaultAbiCoder}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return i.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return i.EventFragment}}),Object.defineProperty(t,"FormatTypes",{enumerable:!0,get:function(){return i.FormatTypes}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return i.Fragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return i.FunctionFragment}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return i.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return i.Interface}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return i.LogDescription}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return i.ParamType}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return i.TransactionDescription}});var u=fh;Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return u.getAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return u.getCreate2Address}}),Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return u.getContractAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return u.getIcapAddress}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return u.isAddress}});var a=n(LM);t.base64=a;var o=jM;Object.defineProperty(t,"base58",{enumerable:!0,get:function(){return o.Base58}});var s=zM;Object.defineProperty(t,"arrayify",{enumerable:!0,get:function(){return s.arrayify}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return s.concat}}),Object.defineProperty(t,"hexConcat",{enumerable:!0,get:function(){return s.hexConcat}}),Object.defineProperty(t,"hexDataSlice",{enumerable:!0,get:function(){return s.hexDataSlice}}),Object.defineProperty(t,"hexDataLength",{enumerable:!0,get:function(){return s.hexDataLength}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return s.hexlify}}),Object.defineProperty(t,"hexStripZeros",{enumerable:!0,get:function(){return s.hexStripZeros}}),Object.defineProperty(t,"hexValue",{enumerable:!0,get:function(){return s.hexValue}}),Object.defineProperty(t,"hexZeroPad",{enumerable:!0,get:function(){return s.hexZeroPad}}),Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return s.isBytes}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return s.isBytesLike}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return s.isHexString}}),Object.defineProperty(t,"joinSignature",{enumerable:!0,get:function(){return s.joinSignature}}),Object.defineProperty(t,"zeroPad",{enumerable:!0,get:function(){return s.zeroPad}}),Object.defineProperty(t,"splitSignature",{enumerable:!0,get:function(){return s.splitSignature}}),Object.defineProperty(t,"stripZeros",{enumerable:!0,get:function(){return s.stripZeros}});var c=$M;Object.defineProperty(t,"_TypedDataEncoder",{enumerable:!0,get:function(){return c._TypedDataEncoder}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return c.dnsEncode}}),Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return c.hashMessage}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return c.id}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return c.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return c.namehash}});var d=qM;Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return d.defaultPath}}),Object.defineProperty(t,"entropyToMnemonic",{enumerable:!0,get:function(){return d.entropyToMnemonic}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return d.getAccountPath}}),Object.defineProperty(t,"HDNode",{enumerable:!0,get:function(){return d.HDNode}}),Object.defineProperty(t,"isValidMnemonic",{enumerable:!0,get:function(){return d.isValidMnemonic}}),Object.defineProperty(t,"mnemonicToEntropy",{enumerable:!0,get:function(){return d.mnemonicToEntropy}}),Object.defineProperty(t,"mnemonicToSeed",{enumerable:!0,get:function(){return d.mnemonicToSeed}});var y=HM;Object.defineProperty(t,"getJsonWalletAddress",{enumerable:!0,get:function(){return y.getJsonWalletAddress}});var A=KM;Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return A.keccak256}});var C=GM;Object.defineProperty(t,"Logger",{enumerable:!0,get:function(){return C.Logger}});var T=Cc;Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return T.computeHmac}}),Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return T.ripemd160}}),Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return T.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return T.sha512}});var U=WM;Object.defineProperty(t,"solidityKeccak256",{enumerable:!0,get:function(){return U.keccak256}}),Object.defineProperty(t,"solidityPack",{enumerable:!0,get:function(){return U.pack}}),Object.defineProperty(t,"soliditySha256",{enumerable:!0,get:function(){return U.sha256}});var P=VM;Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return P.randomBytes}}),Object.defineProperty(t,"shuffled",{enumerable:!0,get:function(){return P.shuffled}});var _=JM;Object.defineProperty(t,"checkProperties",{enumerable:!0,get:function(){return _.checkProperties}}),Object.defineProperty(t,"deepCopy",{enumerable:!0,get:function(){return _.deepCopy}}),Object.defineProperty(t,"defineReadOnly",{enumerable:!0,get:function(){return _.defineReadOnly}}),Object.defineProperty(t,"getStatic",{enumerable:!0,get:function(){return _.getStatic}}),Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return _.resolveProperties}}),Object.defineProperty(t,"shallowCopy",{enumerable:!0,get:function(){return _.shallowCopy}});var B=n(QM);t.RLP=B;var N=YM;Object.defineProperty(t,"computePublicKey",{enumerable:!0,get:function(){return N.computePublicKey}}),Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return N.recoverPublicKey}}),Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return N.SigningKey}});var W=Fc;Object.defineProperty(t,"formatBytes32String",{enumerable:!0,get:function(){return W.formatBytes32String}}),Object.defineProperty(t,"nameprep",{enumerable:!0,get:function(){return W.nameprep}}),Object.defineProperty(t,"parseBytes32String",{enumerable:!0,get:function(){return W.parseBytes32String}}),Object.defineProperty(t,"_toEscapedUtf8String",{enumerable:!0,get:function(){return W._toEscapedUtf8String}}),Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return W.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return W.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return W.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return W.Utf8ErrorFuncs}});var G=XM;Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return G.accessListify}}),Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return G.computeAddress}}),Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return G.parse}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return G.recoverAddress}}),Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return G.serialize}}),Object.defineProperty(t,"TransactionTypes",{enumerable:!0,get:function(){return G.TransactionTypes}});var t0=ZM;Object.defineProperty(t,"commify",{enumerable:!0,get:function(){return t0.commify}}),Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return t0.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return t0.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return t0.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return t0.parseUnits}});var Z=eU;Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return Z.verifyMessage}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return Z.verifyTypedData}});var e0=tU;Object.defineProperty(t,"_fetchData",{enumerable:!0,get:function(){return e0._fetchData}}),Object.defineProperty(t,"fetchJson",{enumerable:!0,get:function(){return e0.fetchJson}}),Object.defineProperty(t,"poll",{enumerable:!0,get:function(){return e0.poll}});var o0=Cc;Object.defineProperty(t,"SupportedAlgorithm",{enumerable:!0,get:function(){return o0.SupportedAlgorithm}});var d0=Fc;Object.defineProperty(t,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return d0.UnicodeNormalizationForm}}),Object.defineProperty(t,"Utf8ErrorReason",{enumerable:!0,get:function(){return d0.Utf8ErrorReason}})})(fm);const{useProvider:rU}=Ot;function nU({direct:t,setDirect:e,pw:r,setPw:n,kns:i,openConnect:u,appSizeOnLoad:a,closeConnect:o,routers:s,setNetworkingKey:c,setIpAddress:d,setWsPort:y,setTcpPort:A,setRouters:C,knsName:T,setOsName:U,nodeChainId:P}){const _=rU(),B=i2(),[N,W]=l0.useState([]),[G,t0]=l0.useState(""),[Z,e0]=l0.useState(!1),[o0,d0]=l0.useState(!1),[c0,h0]=l0.useState(!1);l0.useEffect(()=>{document.title="Login",(async()=>{try{const M=await fetch(Ve("/info"),{method:"GET",credentials:"include"}).then(k=>k.json());C(M.allowed_routers),U(M.name)}catch{}})()},[]);const j=l0.useCallback(async M=>{M==null||M.preventDefault(),M==null||M.stopPropagation();try{if(o0){if(!_)return W(["Please connect your wallet and try again"]),h0(!0),u();t0("Checking password...");let V=gt(H1(r));if((await fetch(Ve("/vet-keyfile"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({password_hash:V,keyfile:""})})).status>399)throw new Error("Incorrect password");const l=await i5({direct:t,kns:i,nodeChainId:P,chainName:H2(P),nameToSet:fm.namehash(T),setNetworkingKey:c,setIpAddress:d,setWsPort:y,setTcpPort:A,setRouters:C});t0("Please confirm the transaction");const m=await i.multicall(l);t0("Resetting Networking Information..."),await m.wait()}t0("Logging in...");let k=gt(H1(r));const I=await fetch(Ve(o0?"confirm-change-network-keys":"login"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(o0?{password_hash:k,direct:t}:{password_hash:k})});if(I.status>399)throw new Error(await I.text());if(o0){const V=await I.json();sm(T,V)}const z=setInterval(async()=>{const V=await fetch(Ve("/"),{credentials:"include"});V.status<300&&Number(V.headers.get("content-length"))!==a&&(clearInterval(z),window.location.replace("/"))},2e3)}catch(k){const I=String(k);I.includes("Object")?W(["There was an error with the transaction, or it was cancelled."]):W([I]),t0("")}},[r,a,o0,t,T,_,u,i]),p=(s==null?void 0:s.length)===0,v=o3();return X.jsxs(X.Fragment,{children:[X.jsx(f2,{header:X.jsx(di,{prefix:"Login to",showLogo:!0}),openConnect:u,closeConnect:o,hideConnect:!Z,nodeChainId:P}),G?X.jsx(o2,{msg:G}):X.jsxs("form",{id:"signup-form",className:O2("flex flex-col w-full max-w-[450px]",{"p-2":v}),onSubmit:j,children:[X.jsxs("div",{className:"self-stretch mb-2 flex flex-col",children:[X.jsxs("div",{className:"flex text-lg mb-2 place-items-center place-content-center",children:[X.jsx("h3",{className:"font-bold",children:T}),X.jsxs("span",{className:"ml-2 mt-1 text-sm",children:["(",p?"direct":"indirect"," node)"]})]}),X.jsx("input",{type:"password",id:"password",required:!0,minLength:6,name:"password",placeholder:"Password",value:r,onChange:M=>n(M.target.value),autoFocus:!0,className:"self-stretch"})]}),N.length>0&&X.jsx("div",{className:"flex flex-col w-full leading-6 mb-2",children:N.map((M,k)=>X.jsx("div",{className:"text-red-500",children:M},k))}),X.jsxs("button",{type:"submit",className:"w-full mb-2",children:[" ",o0?"Reset & ":""," Login "]}),X.jsxs("div",{className:"flex flex-col w-full self-stretch place-content-center place-items-center",children:[X.jsx("button",{className:"clear self-stretch mb-1",onClick:()=>{e0(!Z),d0(!Z)},children:Z?"Cancel":"Reset Networking Info"}),X.jsx("button",{className:"clear self-stretch",onClick:()=>{B("/reset-node")},children:"Reset Node & Password"}),Z&&X.jsxs("div",{className:"flex flex-col w-full gap-2 mt-4",children:[X.jsxs("div",{className:"flex w-full place-items-center",children:[X.jsxs("div",{className:"relative flex",children:[X.jsx("input",{type:"checkbox",id:"reset",name:"reset",checked:o0,onChange:M=>d0(M.target.checked),autoFocus:!0,className:"mr-2"}),o0&&X.jsx("span",{onClick:()=>d0(!1),className:"checkmark",children:"✓"})]}),X.jsx("label",{htmlFor:"reset",className:"direct-node-message",children:"Reset networking keys and publish on-chain"}),X.jsx(jn,{text:"This will update your networking keys and publish the new info on-chain"})]}),X.jsx(ci,{direct:t,setDirect:e})]})]})]})]})}const Bc="Unsupported punycode character",Dc="Name does not belong to this wallet",Qa="Name is not registered",_c="Name must be a valid URL without subdomains (A-Z, a-z, 0-9, and punycode)",{useAccounts:iU,useProvider:uU}=Ot;function aU({direct:t,setDirect:e,setReset:r,knsName:n,setOsName:i,dotOs:u,kns:a,openConnect:o,closeConnect:s,setNetworkingKey:c,setIpAddress:d,setWsPort:y,setTcpPort:A,setRouters:C,nodeChainId:T}){const U=iU(),P=uU(),_=i2(),B=H2(T),[N,W]=l0.useState(n.slice(0,-3)),[G,t0]=l0.useState([]),[Z,e0]=l0.useState([]),[o0,d0]=l0.useState(""),[c0,h0]=l0.useState(!1);l0.useEffect(()=>{document.title="Reset"},[]),l0.useEffect(()=>h0(!c0),[P]);const j=l0.useRef(null);l0.useEffect(()=>{j.current&&clearTimeout(j.current),j.current=setTimeout(async()=>{if(t0([]),!P||N==="")return;let v,M=[...G],k;v=M.indexOf(Bc);try{k=i3(N+".os"),v!==-1&&M.splice(v,1)}catch{v===-1&&M.push(Bc)}if(k!==void 0){v=M.indexOf(_c),N!==""&&!e3(k)?v===-1&&M.push(_c):v!==-1&&M.splice(v,1);try{const I=await(u==null?void 0:u.ownerOf($u.hash(k)));v=M.indexOf(Dc),I===U[0]&&v!==-1?M.splice(v,1):v===-1&&I!==U[0]&&M.push(Dc),v=M.indexOf(Qa),v!==-1&&M.splice(v,1)}catch{v=M.indexOf(Qa),v===-1&&M.push(Qa)}G.length===0&&i(k)}t0(M)},500)},[N,c0]);const p=l0.useCallback(async v=>{if(v.preventDefault(),v.stopPropagation(),!P||!a)return o();d0("Please confirm the transaction in your wallet");try{const M=Cr(n),k=await i5({direct:t,kns:a,nodeChainId:T,chainName:B,nameToSet:M,setNetworkingKey:c,setIpAddress:d,setWsPort:y,setTcpPort:A,setRouters:C}),I=await a.multicall(k);d0("Resetting Networking Information..."),await I.wait(),r(!0),e(t),_("/set-password")}catch{alert("An error occurred, please try again.")}finally{d0("")}},[P,n,r,e,_,o,a,t,c,d,y,A,C,T,B]);return X.jsxs(X.Fragment,{children:[X.jsx(f2,{header:X.jsx(di,{prefix:"Reset KNS Name"}),openConnect:o,closeConnect:s,nodeChainId:T}),!!P&&X.jsx("form",{id:"signup-form",className:"flex flex-col",onSubmit:p,children:o0?X.jsx(o2,{msg:o0}):X.jsxs(X.Fragment,{children:[X.jsxs("h3",{className:"flex flex-col w-full place-items-center mb-2",children:[X.jsxs("label",{className:"flex leading-6 place-items-center mt-2 cursor-pointer mb-2",children:["Specify the node ID to reset",X.jsx(jn,{text:"Kinodes use a .os name in order to identify themselves to other nodes in the network."})]}),X.jsx(s3,{name:N,setName:W,nameVets:G,dotOs:u,triggerNameCheck:c0,nameValidities:Z,setNameValidities:e0,isReset:!0})]}),X.jsx(ci,{direct:t,setDirect:e}),X.jsx("button",{type:"submit",className:"mt-2",children:" Reset Node "})]})})]})}function oU({openConnect:t,knsName:e,closeConnect:r,nodeChainId:n}){const i=i2(),u=()=>i("/claim-invite"),a=()=>i("/register-eth-name"),o=()=>i("/register-name"),s=()=>i("/reset"),c=()=>i("/import-keyfile"),d=()=>i("/login"),y=!!e,A=!!window.ethereum;return l0.useEffect(()=>{document.title="Welcome | Kinode"},[]),X.jsxs(X.Fragment,{children:[X.jsx(f2,{header:X.jsx(di,{prefix:"Welcome to",showLogo:!0}),openConnect:t,closeConnect:r,hideConnect:!0,nodeChainId:n,nameLogo:!0}),X.jsx("div",{className:"flex flex-col max-w-[460px] w-full gap-4 mt-8",children:y?X.jsx("button",{onClick:d,children:" Login "}):X.jsxs(X.Fragment,{children:[!A&&X.jsx("h4",{className:"self-start mx-auto",children:"You must install a Web3 wallet extension like Metamask in order to register or reset a username."}),A&&X.jsx("h4",{className:"self-start mx-auto",children:"New here? Register a username to get started"}),X.jsx("button",{disabled:!A,onClick:o,children:"Register Kinode Name"}),X.jsx("h4",{className:"self-start mx-auto",children:"Other options"}),n!==R2&&X.jsx("button",{disabled:!A,onClick:a,className:"alt",children:"Register ENS Name"}),X.jsx("button",{disabled:!A,onClick:u,className:"alt",children:"Claim Kinode Invite"}),X.jsx("button",{disabled:!A,onClick:s,className:"alt",children:"Reset Kinode Name"}),X.jsx("button",{onClick:c,className:"alt",children:"Import Keyfile"})]})})]})}const{useProvider:sU}=Ot;function fU({direct:t,setDirect:e,setReset:r,knsName:n,kns:i,openConnect:u,closeConnect:a,setNetworkingKey:o,setIpAddress:s,setWsPort:c,setTcpPort:d,setRouters:y,nodeChainId:A}){const C=sU(),T=i2(),U=H2(A),[P,_]=l0.useState("");l0.useEffect(()=>{document.title="Reset"},[]);const B=l0.useCallback(async N=>{if(N.preventDefault(),N.stopPropagation(),!C)return u();_("Please confirm the transaction in your wallet");try{const W=await i5({direct:t,kns:i,nodeChainId:A,chainName:U,nameToSet:Cr(n),setNetworkingKey:o,setIpAddress:s,setWsPort:c,setTcpPort:d,setRouters:y}),G=await i.multicall(W);_("Resetting Networking Information..."),await G.wait(),r(!0),e(t),T("/set-password")}catch{alert("An error occurred, please try again.")}finally{_("")}},[C,n,r,e,T,u,i,t,o,s,c,d,y,A,U]);return X.jsxs(X.Fragment,{children:[X.jsx(f2,{header:X.jsx("h1",{className:"flex c mb-8",children:"Reset Kinode Name"}),openConnect:u,closeConnect:a,nodeChainId:A}),C?X.jsx("form",{id:"signup-form",className:"flex flex-col",onSubmit:B,children:P?X.jsx(o2,{msg:P}):X.jsxs(X.Fragment,{children:[X.jsx(ci,{direct:t,setDirect:e}),X.jsxs("button",{type:"submit",className:"self-stretch mt-2 text-2xl",children:["Reset ",n]}),X.jsx(y4,{to:"/",className:"button alt mt-2",children:"Back"})]})}):X.jsx("div",{children:"Please connect a wallet to continue."})]})}function lU({pw:t,setPw:e,openConnect:r,appSizeOnLoad:n,closeConnect:i,nodeChainId:u}){const[a,o]=l0.useState(null),[s,c]=l0.useState(""),[d,y]=l0.useState([]),[A,C]=l0.useState(""),[T,U]=l0.useState(!1),[P,_]=l0.useState(!1),[B,N]=l0.useState(!1);l0.useEffect(()=>{document.title="Import Keyfile"},[]);const W=l0.useCallback(e0=>{var c0;e0.preventDefault();const o0=(c0=e0.target.files)==null?void 0:c0[0];if(!o0)return;const d0=new FileReader;d0.onloadend=()=>{d0.result instanceof ArrayBuffer&&(o(new Uint8Array(d0.result)),c(o0.name))},d0.readAsArrayBuffer(o0)},[]),G=l0.useRef(null),t0=l0.useCallback(async e0=>{var o0;e0.preventDefault(),e0.stopPropagation(),(o0=G.current)==null||o0.click()},[]),Z=l0.useCallback(async e0=>{e0.preventDefault(),e0.stopPropagation(),N(!0);try{if(d.length===0&&a!==null){let o0=gt(H1(t));if((await fetch(Ve("/vet-keyfile"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({keyfile:Buffer.from(a).toString("base64"),password_hash:o0})})).status>399)throw new Error("Incorrect password");if((await fetch(Ve("/import-keyfile"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({keyfile:Buffer.from(a).toString("base64"),password_hash:o0})})).status>399)throw new Error("Incorrect password");const h0=setInterval(async()=>{const j=await fetch(Ve("/"),{credentials:"include"});j.status<300&&Number(j.headers.get("content-length"))!==n&&(clearInterval(h0),window.location.replace("/"))},2e3)}}catch{window.alert("An error occurred, please try again."),N(!1)}},[a,t,d,n]);return X.jsxs(X.Fragment,{children:[X.jsx(f2,{header:X.jsx("h1",{children:"Import Keyfile"}),openConnect:r,closeConnect:i,hideConnect:!0,nodeChainId:u}),B?X.jsx(o2,{msg:"Setting up node..."}):X.jsxs("form",{id:"signup-form",className:"flex flex-col max-w-[450px]",onSubmit:Z,children:[X.jsxs("div",{className:"flex flex-col self-start place-content-center w-full",children:[X.jsxs("h4",{className:"my-2 flex",children:[" ","1. Upload Keyfile"," "]}),!!s&&X.jsxs("h5",{className:"underline mb-2",children:[" ",s||".keyfile"," "]}),X.jsxs("button",{type:"button",onClick:t0,children:[s?"Change":"Select"," Keyfile"]}),X.jsx("input",{ref:G,className:"hidden",type:"file",onChange:W})]}),X.jsxs("div",{className:"flex flex-col w-full",children:[X.jsxs("h4",{className:"my-2 flex",children:[" ","2. Enter Password"," "]}),X.jsx("input",{type:"password",id:"password",required:!0,minLength:6,name:"password",placeholder:"Min 6 characters",value:t,onChange:e0=>e(e0.target.value),className:"mb-2"}),A&&X.jsxs("div",{className:"flex",children:[" ",X.jsxs("p",{className:"text-red-500",children:[" ",A," "]})," "]}),P&&!T&&6<=t.length&&X.jsxs("div",{className:"flex",children:[" ",X.jsx("p",{className:"text-red-500",children:" Password is incorrect "})," "]})]}),X.jsxs("div",{className:"flex flex-col w-full mb-2",children:[d.map((e0,o0)=>X.jsx("span",{className:"key-err",children:e0},o0)),X.jsx("button",{type:"submit",children:" Import Keyfile "})]}),X.jsx("p",{className:"text-sm",children:'Please note: if the original node was booted as a direct node (static IP), then you must run this node from the same IP. If not, you will have networking issues. If you need to change the network options, please go back and select "Reset OsName".'})]})]})}var t6={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useProvider:cU}=Ot;function dU(){const t=cU(),e=bx(),[r,n]=l0.useState(""),[i,u]=l0.useState(""),[a,o]=l0.useState(""),[s,c]=l0.useState(!1),[d,y]=l0.useState(!1),[A,C]=l0.useState(""),[T,U]=l0.useState(0),[P,_]=l0.useState(""),[B,N]=l0.useState(0),[W,G]=l0.useState(0),[t0,Z]=l0.useState(0),[e0,o0]=l0.useState([]),[d0,c0]=l0.useState(""),[h0,j]=l0.useState(!1),[p,v]=l0.useState(!(e!=null&&e.initial)),[M,k]=l0.useState(!1),I=()=>k(!0),z=()=>k(!1),V=l0.useMemo(()=>{var z0;return((z0=t==null?void 0:t.network)==null?void 0:z0.chainId)===Q0.SEPOLIA?t6.REACT_APP_SEPOLIA_RPC_URL:t6.REACT_APP_OPTIMISM_RPC_URL},[t]),[b,l]=l0.useState(),[m,D]=l0.useState(),[f,S]=l0.useState(),[O,$]=l0.useState(),[H,n0]=l0.useState(),[u0,s0]=l0.useState();l0.useEffect(()=>{var z0,M0,I0,R0,V0,G0,X0;V&&(l(tu.connect(((z0=t==null?void 0:t.network)==null?void 0:z0.chainId)===Q0.SEPOLIA?M5[Q0.SEPOLIA]:M5[Q0.OPTIMISM],new He(V))),D(uu.connect(((M0=t==null?void 0:t.network)==null?void 0:M0.chainId)===Q0.SEPOLIA?Oi[Q0.SEPOLIA]:Oi[Q0.OPTIMISM],new He(V))),S(nu.connect(((I0=t==null?void 0:t.network)==null?void 0:I0.chainId)===Q0.SEPOLIA?R5[Q0.SEPOLIA]:R5[Q0.MAINNET],new He(((R0=t==null?void 0:t.network)==null?void 0:R0.chainId)===Q0.SEPOLIA?t6.REACT_APP_SEPOLIA_RPC_URL:t6.REACT_APP_MAINNET_RPC_URL))),$(iu.connect(((V0=t==null?void 0:t.network)==null?void 0:V0.chainId)===Q0.SEPOLIA?O5[Q0.SEPOLIA]:O5[Q0.OPTIMISM],new He(V))),n0(au.connect(((G0=t==null?void 0:t.network)==null?void 0:G0.chainId)===Q0.SEPOLIA?U5[Q0.SEPOLIA]:U5[Q0.MAINNET],new He(V))),s0(ru.connect(((X0=t==null?void 0:t.network)==null?void 0:X0.chainId)===Q0.SEPOLIA?I5[Q0.SEPOLIA]:I5[Q0.MAINNET],new He(V))))},[V,t]),l0.useEffect(()=>U(window.performance.getEntriesByType("navigation")[0].transferSize),[]),l0.useEffect(()=>{(async()=>{try{const z0=await fetch(Ve("/info"),{method:"GET",credentials:"include"});if(z0.status>399)console.log("no info, unbooted");else{const M0=await z0.json();p&&(C(M0.name),o0(M0.allowed_routers),j(!0),v(!1))}}catch{console.log("no info, unbooted")}try{const z0=await fetch(Ve("/current-chain"),{method:"GET",credentials:"include"});if(z0.status<400){const M0=await z0.json();c0(M0.toLowerCase()),console.log("Node Chain ID:",M0)}else console.error("error processing chain response",z0)}catch(z0){console.error("error getting current chain",z0)}})()},[]),l0.useEffect(()=>j(!1),[p]),l0.useEffect(()=>{t==null||t.getNetwork().then(z0=>{z0.chainId===Q0.SEPOLIA?(l(tu.connect(M5[Q0.SEPOLIA],t.getSigner())),D(uu.connect(Oi[Q0.SEPOLIA],t.getSigner())),S(nu.connect(R5[Q0.SEPOLIA],t.getSigner())),$(iu.connect(O5[Q0.SEPOLIA],t.getSigner())),n0(au.connect(U5[Q0.SEPOLIA],t.getSigner())),s0(ru.connect(I5[Q0.SEPOLIA],t.getSigner()))):(z0.chainId===Q0.OPTIMISM||z0.chainId===Q0.MAINNET)&&(l(tu.connect(M5[Q0.OPTIMISM],t.getSigner())),D(uu.connect(Oi[Q0.OPTIMISM],t.getSigner())),$(iu.connect(O5[Q0.OPTIMISM],t.getSigner())),S(nu.connect(R5[Q0.MAINNET],t.getSigner())),n0(au.connect(U5[Q0.MAINNET],new He(t6.REACT_APP_MAINNET_RPC_URL))),s0(ru.connect(I5[Q0.MAINNET],new He(t6.REACT_APP_MAINNET_RPC_URL))))})},[t]);const g0=Q0.SEPOLIA,y0=Q0.SEPOLIA,_0={direct:d,setDirect:y,key:i,keyFileName:a,setKeyFileName:o,reset:s,setReset:c,pw:r,setPw:n,knsName:A,setOsName:C,dotOs:b,kns:m,knsEnsEntry:f,knsEnsExit:O,nameWrapper:H,ensRegistry:u0,knsEnsEntryNetwork:g0,knsEnsExitNetwork:y0,connectOpen:M,openConnect:I,closeConnect:z,provider:t,appSizeOnLoad:T,networkingKey:P,setNetworkingKey:_,ipAddress:B,setIpAddress:N,ws_port:W,setWsPort:G,tcp_port:t0,setTcpPort:Z,routers:e0,setRouters:o0,nodeChainId:d0};return X.jsxs(X.Fragment,{children:[X.jsx(a_,{..._0}),X.jsx(Rx,{children:X.jsxs(Sx,{children:[X.jsx(or,{path:"/",element:h0?X.jsx(_x,{to:"/login",replace:!0}):X.jsx(oU,{..._0})}),X.jsx(or,{path:"/claim-invite",element:X.jsx(IM,{..._0})}),X.jsx(or,{path:"/register-name",element:X.jsx(NM,{..._0})}),X.jsx(or,{path:"/register-eth-name",element:X.jsx(TM,{..._0})}),X.jsx(or,{path:"/set-password",element:X.jsx(RM,{..._0})}),X.jsx(or,{path:"/reset",element:X.jsx(aU,{..._0})}),X.jsx(or,{path:"/reset-node",element:X.jsx(fU,{..._0})}),X.jsx(or,{path:"/import-keyfile",element:X.jsx(lU,{..._0})}),X.jsx(or,{path:"/login",element:X.jsx(nU,{..._0})})]})})]})}var lm={},W8={};W8.byteLength=bU;W8.toByteArray=yU;W8.fromByteArray=vU;var pr=[],Bt=[],hU=typeof Uint8Array<"u"?Uint8Array:Array,Ya="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var r6=0,pU=Ya.length;r60)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 bU(t){var e=cm(t),r=e[0],n=e[1];return(r+n)*3/4-n}function mU(t,e,r){return(e+r)*3/4-r}function yU(t){var e,r=cm(t),n=r[0],i=r[1],u=new hU(mU(t,n,i)),a=0,o=i>0?n-4:n,s;for(s=0;s>16&255,u[a++]=e>>8&255,u[a++]=e&255;return i===2&&(e=Bt[t.charCodeAt(s)]<<2|Bt[t.charCodeAt(s+1)]>>4,u[a++]=e&255),i===1&&(e=Bt[t.charCodeAt(s)]<<10|Bt[t.charCodeAt(s+1)]<<4|Bt[t.charCodeAt(s+2)]>>2,u[a++]=e>>8&255,u[a++]=e&255),u}function gU(t){return pr[t>>18&63]+pr[t>>12&63]+pr[t>>6&63]+pr[t&63]}function xU(t,e,r){for(var n,i=[],u=e;uo?o:a+u));return n===1?(e=t[r-1],i.push(pr[e>>2]+pr[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(pr[e>>10]+pr[e>>4&63]+pr[e<<2&63]+"=")),i.join("")}var f3={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */f3.read=function(t,e,r,n,i){var u,a,o=i*8-n-1,s=(1<>1,d=-7,y=r?i-1:0,A=r?-1:1,C=t[e+y];for(y+=A,u=C&(1<<-d)-1,C>>=-d,d+=o;d>0;u=u*256+t[e+y],y+=A,d-=8);for(a=u&(1<<-d)-1,u>>=-d,d+=n;d>0;a=a*256+t[e+y],y+=A,d-=8);if(u===0)u=1-c;else{if(u===s)return a?NaN:(C?-1:1)*(1/0);a=a+Math.pow(2,n),u=u-c}return(C?-1:1)*a*Math.pow(2,u-n)};f3.write=function(t,e,r,n,i,u){var a,o,s,c=u*8-i-1,d=(1<>1,A=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=n?0:u-1,T=n?1:-1,U=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,a=d):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),a+y>=1?e+=A/s:e+=A*Math.pow(2,1-y),e*s>=2&&(a++,s/=2),a+y>=d?(o=0,a=d):a+y>=1?(o=(e*s-1)*Math.pow(2,i),a=a+y):(o=e*Math.pow(2,y-1)*Math.pow(2,i),a=0));i>=8;t[r+C]=o&255,C+=T,o/=256,i-=8);for(a=a<0;t[r+C]=a&255,C+=T,a/=256,c-=8);t[r+C-T]|=U*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */(function(t){const e=W8,r=l3,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=o,t.SlowBuffer=B,t.INSPECT_MAX_BYTES=50;const i=2147483647;t.kMaxLength=i,o.TYPED_ARRAY_SUPPORT=u(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function u(){try{const L=new Uint8Array(1),x={foo:function(){return 42}};return Object.setPrototypeOf(x,Uint8Array.prototype),Object.setPrototypeOf(L,x),L.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(L){if(L>i)throw new RangeError('The value "'+L+'" is invalid for option "size"');const x=new Uint8Array(L);return Object.setPrototypeOf(x,o.prototype),x}function o(L,x,w){if(typeof L=="number"){if(typeof x=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(L)}return s(L,x,w)}o.poolSize=8192;function s(L,x,w){if(typeof L=="string")return A(L,x);if(ArrayBuffer.isView(L))return T(L);if(L==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L);if(X0(L,ArrayBuffer)||L&&X0(L.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(X0(L,SharedArrayBuffer)||L&&X0(L.buffer,SharedArrayBuffer)))return U(L,x,w);if(typeof L=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const q=L.valueOf&&L.valueOf();if(q!=null&&q!==L)return o.from(q,x,w);const i0=P(L);if(i0)return i0;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof L[Symbol.toPrimitive]=="function")return o.from(L[Symbol.toPrimitive]("string"),x,w);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L)}o.from=function(L,x,w){return s(L,x,w)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function c(L){if(typeof L!="number")throw new TypeError('"size" argument must be of type number');if(L<0)throw new RangeError('The value "'+L+'" is invalid for option "size"')}function d(L,x,w){return c(L),L<=0?a(L):x!==void 0?typeof w=="string"?a(L).fill(x,w):a(L).fill(x):a(L)}o.alloc=function(L,x,w){return d(L,x,w)};function y(L){return c(L),a(L<0?0:_(L)|0)}o.allocUnsafe=function(L){return y(L)},o.allocUnsafeSlow=function(L){return y(L)};function A(L,x){if((typeof x!="string"||x==="")&&(x="utf8"),!o.isEncoding(x))throw new TypeError("Unknown encoding: "+x);const w=N(L,x)|0;let q=a(w);const i0=q.write(L,x);return i0!==w&&(q=q.slice(0,i0)),q}function C(L){const x=L.length<0?0:_(L.length)|0,w=a(x);for(let q=0;q=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return L|0}function B(L){return+L!=L&&(L=0),o.alloc(+L)}o.isBuffer=function(x){return x!=null&&x._isBuffer===!0&&x!==o.prototype},o.compare=function(x,w){if(X0(x,Uint8Array)&&(x=o.from(x,x.offset,x.byteLength)),X0(w,Uint8Array)&&(w=o.from(w,w.offset,w.byteLength)),!o.isBuffer(x)||!o.isBuffer(w))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(x===w)return 0;let q=x.length,i0=w.length;for(let l0=0,p0=Math.min(q,i0);l0i0.length?(o.isBuffer(p0)||(p0=o.from(p0)),p0.copy(i0,l0)):Uint8Array.prototype.set.call(i0,p0,l0);else if(o.isBuffer(p0))p0.copy(i0,l0);else throw new TypeError('"list" argument must be an Array of Buffers');l0+=p0.length}return i0};function N(L,x){if(o.isBuffer(L))return L.length;if(ArrayBuffer.isView(L)||X0(L,ArrayBuffer))return L.byteLength;if(typeof L!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof L);const w=L.length,q=arguments.length>2&&arguments[2]===!0;if(!q&&w===0)return 0;let i0=!1;for(;;)switch(x){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return M0(L).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return V0(L).length;default:if(i0)return q?-1:M0(L).length;x=(""+x).toLowerCase(),i0=!0}}o.byteLength=N;function W(L,x,w){let q=!1;if((x===void 0||x<0)&&(x=0),x>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0,x>>>=0,w<=x))return"";for(L||(L="utf8");;)switch(L){case"hex":return z(this,x,w);case"utf8":case"utf-8":return p(this,x,w);case"ascii":return k(this,x,w);case"latin1":case"binary":return I(this,x,w);case"base64":return j(this,x,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,x,w);default:if(q)throw new TypeError("Unknown encoding: "+L);L=(L+"").toLowerCase(),q=!0}}o.prototype._isBuffer=!0;function G(L,x,w){const q=L[x];L[x]=L[w],L[w]=q}o.prototype.swap16=function(){const x=this.length;if(x%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let w=0;ww&&(x+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(x,w,q,i0,l0){if(X0(x,Uint8Array)&&(x=o.from(x,x.offset,x.byteLength)),!o.isBuffer(x))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof x);if(w===void 0&&(w=0),q===void 0&&(q=x?x.length:0),i0===void 0&&(i0=0),l0===void 0&&(l0=this.length),w<0||q>x.length||i0<0||l0>this.length)throw new RangeError("out of range index");if(i0>=l0&&w>=q)return 0;if(i0>=l0)return-1;if(w>=q)return 1;if(w>>>=0,q>>>=0,i0>>>=0,l0>>>=0,this===x)return 0;let p0=l0-i0,O0=q-w;const H0=Math.min(p0,O0),K0=this.slice(i0,l0),Y0=x.slice(w,q);for(let j0=0;j02147483647?w=2147483647:w<-2147483648&&(w=-2147483648),w=+w,$0(w)&&(w=i0?0:L.length-1),w<0&&(w=L.length+w),w>=L.length){if(i0)return-1;w=L.length-1}else if(w<0)if(i0)w=0;else return-1;if(typeof x=="string"&&(x=o.from(x,q)),o.isBuffer(x))return x.length===0?-1:Z(L,x,w,q,i0);if(typeof x=="number")return x=x&255,typeof Uint8Array.prototype.indexOf=="function"?i0?Uint8Array.prototype.indexOf.call(L,x,w):Uint8Array.prototype.lastIndexOf.call(L,x,w):Z(L,[x],w,q,i0);throw new TypeError("val must be string, number or Buffer")}function Z(L,x,w,q,i0){let l0=1,p0=L.length,O0=x.length;if(q!==void 0&&(q=String(q).toLowerCase(),q==="ucs2"||q==="ucs-2"||q==="utf16le"||q==="utf-16le")){if(L.length<2||x.length<2)return-1;l0=2,p0/=2,O0/=2,w/=2}function H0(Y0,j0){return l0===1?Y0[j0]:Y0.readUInt16BE(j0*l0)}let K0;if(i0){let Y0=-1;for(K0=w;K0p0&&(w=p0-O0),K0=w;K0>=0;K0--){let Y0=!0;for(let j0=0;j0i0&&(q=i0)):q=i0;const l0=x.length;q>l0/2&&(q=l0/2);let p0;for(p0=0;p0>>0,isFinite(q)?(q=q>>>0,i0===void 0&&(i0="utf8")):(i0=q,q=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const l0=this.length-w;if((q===void 0||q>l0)&&(q=l0),x.length>0&&(q<0||w<0)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");i0||(i0="utf8");let p0=!1;for(;;)switch(i0){case"hex":return e0(this,x,w,q);case"utf8":case"utf-8":return o0(this,x,w,q);case"ascii":case"latin1":case"binary":return d0(this,x,w,q);case"base64":return c0(this,x,w,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h0(this,x,w,q);default:if(p0)throw new TypeError("Unknown encoding: "+i0);i0=(""+i0).toLowerCase(),p0=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(L,x,w){return x===0&&w===L.length?e.fromByteArray(L):e.fromByteArray(L.slice(x,w))}function p(L,x,w){w=Math.min(L.length,w);const q=[];let i0=x;for(;i0239?4:l0>223?3:l0>191?2:1;if(i0+O0<=w){let H0,K0,Y0,j0;switch(O0){case 1:l0<128&&(p0=l0);break;case 2:H0=L[i0+1],(H0&192)===128&&(j0=(l0&31)<<6|H0&63,j0>127&&(p0=j0));break;case 3:H0=L[i0+1],K0=L[i0+2],(H0&192)===128&&(K0&192)===128&&(j0=(l0&15)<<12|(H0&63)<<6|K0&63,j0>2047&&(j0<55296||j0>57343)&&(p0=j0));break;case 4:H0=L[i0+1],K0=L[i0+2],Y0=L[i0+3],(H0&192)===128&&(K0&192)===128&&(Y0&192)===128&&(j0=(l0&15)<<18|(H0&63)<<12|(K0&63)<<6|Y0&63,j0>65535&&j0<1114112&&(p0=j0))}}p0===null?(p0=65533,O0=1):p0>65535&&(p0-=65536,q.push(p0>>>10&1023|55296),p0=56320|p0&1023),q.push(p0),i0+=O0}return M(q)}const v=4096;function M(L){const x=L.length;if(x<=v)return String.fromCharCode.apply(String,L);let w="",q=0;for(;qq)&&(w=q);let i0="";for(let l0=x;l0q&&(x=q),w<0?(w+=q,w<0&&(w=0)):w>q&&(w=q),ww)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(x,w,q){x=x>>>0,w=w>>>0,q||b(x,w,this.length);let i0=this[x],l0=1,p0=0;for(;++p0>>0,w=w>>>0,q||b(x,w,this.length);let i0=this[x+--w],l0=1;for(;w>0&&(l0*=256);)i0+=this[x+--w]*l0;return i0},o.prototype.readUint8=o.prototype.readUInt8=function(x,w){return x=x>>>0,w||b(x,1,this.length),this[x]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(x,w){return x=x>>>0,w||b(x,2,this.length),this[x]|this[x+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(x,w){return x=x>>>0,w||b(x,2,this.length),this[x]<<8|this[x+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(x,w){return x=x>>>0,w||b(x,4,this.length),(this[x]|this[x+1]<<8|this[x+2]<<16)+this[x+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(x,w){return x=x>>>0,w||b(x,4,this.length),this[x]*16777216+(this[x+1]<<16|this[x+2]<<8|this[x+3])},o.prototype.readBigUInt64LE=p1(function(x){x=x>>>0,g0(x,"offset");const w=this[x],q=this[x+7];(w===void 0||q===void 0)&&y0(x,this.length-8);const i0=w+this[++x]*2**8+this[++x]*2**16+this[++x]*2**24,l0=this[++x]+this[++x]*2**8+this[++x]*2**16+q*2**24;return BigInt(i0)+(BigInt(l0)<>>0,g0(x,"offset");const w=this[x],q=this[x+7];(w===void 0||q===void 0)&&y0(x,this.length-8);const i0=w*2**24+this[++x]*2**16+this[++x]*2**8+this[++x],l0=this[++x]*2**24+this[++x]*2**16+this[++x]*2**8+q;return(BigInt(i0)<>>0,w=w>>>0,q||b(x,w,this.length);let i0=this[x],l0=1,p0=0;for(;++p0=l0&&(i0-=Math.pow(2,8*w)),i0},o.prototype.readIntBE=function(x,w,q){x=x>>>0,w=w>>>0,q||b(x,w,this.length);let i0=w,l0=1,p0=this[x+--i0];for(;i0>0&&(l0*=256);)p0+=this[x+--i0]*l0;return l0*=128,p0>=l0&&(p0-=Math.pow(2,8*w)),p0},o.prototype.readInt8=function(x,w){return x=x>>>0,w||b(x,1,this.length),this[x]&128?(255-this[x]+1)*-1:this[x]},o.prototype.readInt16LE=function(x,w){x=x>>>0,w||b(x,2,this.length);const q=this[x]|this[x+1]<<8;return q&32768?q|4294901760:q},o.prototype.readInt16BE=function(x,w){x=x>>>0,w||b(x,2,this.length);const q=this[x+1]|this[x]<<8;return q&32768?q|4294901760:q},o.prototype.readInt32LE=function(x,w){return x=x>>>0,w||b(x,4,this.length),this[x]|this[x+1]<<8|this[x+2]<<16|this[x+3]<<24},o.prototype.readInt32BE=function(x,w){return x=x>>>0,w||b(x,4,this.length),this[x]<<24|this[x+1]<<16|this[x+2]<<8|this[x+3]},o.prototype.readBigInt64LE=p1(function(x){x=x>>>0,g0(x,"offset");const w=this[x],q=this[x+7];(w===void 0||q===void 0)&&y0(x,this.length-8);const i0=this[x+4]+this[x+5]*2**8+this[x+6]*2**16+(q<<24);return(BigInt(i0)<>>0,g0(x,"offset");const w=this[x],q=this[x+7];(w===void 0||q===void 0)&&y0(x,this.length-8);const i0=(w<<24)+this[++x]*2**16+this[++x]*2**8+this[++x];return(BigInt(i0)<>>0,w||b(x,4,this.length),r.read(this,x,!0,23,4)},o.prototype.readFloatBE=function(x,w){return x=x>>>0,w||b(x,4,this.length),r.read(this,x,!1,23,4)},o.prototype.readDoubleLE=function(x,w){return x=x>>>0,w||b(x,8,this.length),r.read(this,x,!0,52,8)},o.prototype.readDoubleBE=function(x,w){return x=x>>>0,w||b(x,8,this.length),r.read(this,x,!1,52,8)};function f(L,x,w,q,i0,l0){if(!o.isBuffer(L))throw new TypeError('"buffer" argument must be a Buffer instance');if(x>i0||xL.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(x,w,q,i0){if(x=+x,w=w>>>0,q=q>>>0,!i0){const O0=Math.pow(2,8*q)-1;f(this,x,w,q,O0,0)}let l0=1,p0=0;for(this[w]=x&255;++p0>>0,q=q>>>0,!i0){const O0=Math.pow(2,8*q)-1;f(this,x,w,q,O0,0)}let l0=q-1,p0=1;for(this[w+l0]=x&255;--l0>=0&&(p0*=256);)this[w+l0]=x/p0&255;return w+q},o.prototype.writeUint8=o.prototype.writeUInt8=function(x,w,q){return x=+x,w=w>>>0,q||f(this,x,w,1,255,0),this[w]=x&255,w+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(x,w,q){return x=+x,w=w>>>0,q||f(this,x,w,2,65535,0),this[w]=x&255,this[w+1]=x>>>8,w+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(x,w,q){return x=+x,w=w>>>0,q||f(this,x,w,2,65535,0),this[w]=x>>>8,this[w+1]=x&255,w+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(x,w,q){return x=+x,w=w>>>0,q||f(this,x,w,4,4294967295,0),this[w+3]=x>>>24,this[w+2]=x>>>16,this[w+1]=x>>>8,this[w]=x&255,w+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(x,w,q){return x=+x,w=w>>>0,q||f(this,x,w,4,4294967295,0),this[w]=x>>>24,this[w+1]=x>>>16,this[w+2]=x>>>8,this[w+3]=x&255,w+4};function m(L,x,w,q,i0){s0(x,q,i0,L,w,7);let l0=Number(x&BigInt(4294967295));L[w++]=l0,l0=l0>>8,L[w++]=l0,l0=l0>>8,L[w++]=l0,l0=l0>>8,L[w++]=l0;let p0=Number(x>>BigInt(32)&BigInt(4294967295));return L[w++]=p0,p0=p0>>8,L[w++]=p0,p0=p0>>8,L[w++]=p0,p0=p0>>8,L[w++]=p0,w}function D(L,x,w,q,i0){s0(x,q,i0,L,w,7);let l0=Number(x&BigInt(4294967295));L[w+7]=l0,l0=l0>>8,L[w+6]=l0,l0=l0>>8,L[w+5]=l0,l0=l0>>8,L[w+4]=l0;let p0=Number(x>>BigInt(32)&BigInt(4294967295));return L[w+3]=p0,p0=p0>>8,L[w+2]=p0,p0=p0>>8,L[w+1]=p0,p0=p0>>8,L[w]=p0,w+8}o.prototype.writeBigUInt64LE=p1(function(x,w=0){return m(this,x,w,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=p1(function(x,w=0){return D(this,x,w,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(x,w,q,i0){if(x=+x,w=w>>>0,!i0){const H0=Math.pow(2,8*q-1);f(this,x,w,q,H0-1,-H0)}let l0=0,p0=1,O0=0;for(this[w]=x&255;++l0>0)-O0&255;return w+q},o.prototype.writeIntBE=function(x,w,q,i0){if(x=+x,w=w>>>0,!i0){const H0=Math.pow(2,8*q-1);f(this,x,w,q,H0-1,-H0)}let l0=q-1,p0=1,O0=0;for(this[w+l0]=x&255;--l0>=0&&(p0*=256);)x<0&&O0===0&&this[w+l0+1]!==0&&(O0=1),this[w+l0]=(x/p0>>0)-O0&255;return w+q},o.prototype.writeInt8=function(x,w,q){return x=+x,w=w>>>0,q||f(this,x,w,1,127,-128),x<0&&(x=255+x+1),this[w]=x&255,w+1},o.prototype.writeInt16LE=function(x,w,q){return x=+x,w=w>>>0,q||f(this,x,w,2,32767,-32768),this[w]=x&255,this[w+1]=x>>>8,w+2},o.prototype.writeInt16BE=function(x,w,q){return x=+x,w=w>>>0,q||f(this,x,w,2,32767,-32768),this[w]=x>>>8,this[w+1]=x&255,w+2},o.prototype.writeInt32LE=function(x,w,q){return x=+x,w=w>>>0,q||f(this,x,w,4,2147483647,-2147483648),this[w]=x&255,this[w+1]=x>>>8,this[w+2]=x>>>16,this[w+3]=x>>>24,w+4},o.prototype.writeInt32BE=function(x,w,q){return x=+x,w=w>>>0,q||f(this,x,w,4,2147483647,-2147483648),x<0&&(x=4294967295+x+1),this[w]=x>>>24,this[w+1]=x>>>16,this[w+2]=x>>>8,this[w+3]=x&255,w+4},o.prototype.writeBigInt64LE=p1(function(x,w=0){return m(this,x,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=p1(function(x,w=0){return D(this,x,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function l(L,x,w,q,i0,l0){if(w+q>L.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function S(L,x,w,q,i0){return x=+x,w=w>>>0,i0||l(L,x,w,4),r.write(L,x,w,q,23,4),w+4}o.prototype.writeFloatLE=function(x,w,q){return S(this,x,w,!0,q)},o.prototype.writeFloatBE=function(x,w,q){return S(this,x,w,!1,q)};function O(L,x,w,q,i0){return x=+x,w=w>>>0,i0||l(L,x,w,8),r.write(L,x,w,q,52,8),w+8}o.prototype.writeDoubleLE=function(x,w,q){return O(this,x,w,!0,q)},o.prototype.writeDoubleBE=function(x,w,q){return O(this,x,w,!1,q)},o.prototype.copy=function(x,w,q,i0){if(!o.isBuffer(x))throw new TypeError("argument should be a Buffer");if(q||(q=0),!i0&&i0!==0&&(i0=this.length),w>=x.length&&(w=x.length),w||(w=0),i0>0&&i0=this.length)throw new RangeError("Index out of range");if(i0<0)throw new RangeError("sourceEnd out of bounds");i0>this.length&&(i0=this.length),x.length-w>>0,q=q===void 0?this.length:q>>>0,x||(x=0);let l0;if(typeof x=="number")for(l0=w;l02**32?i0=n0(String(w)):typeof w=="bigint"&&(i0=String(w),(w>BigInt(2)**BigInt(32)||w<-(BigInt(2)**BigInt(32)))&&(i0=n0(i0)),i0+="n"),q+=` It must be ${x}. Received ${i0}`,q},RangeError);function n0(L){let x="",w=L.length;const q=L[0]==="-"?1:0;for(;w>=q+4;w-=3)x=`_${L.slice(w-3,w)}${x}`;return`${L.slice(0,w)}${x}`}function u0(L,x,w){g0(x,"offset"),(L[x]===void 0||L[x+w]===void 0)&&y0(x,L.length-(w+1))}function s0(L,x,w,q,i0,l0){if(L>w||L= 0${p0} and < 2${p0} ** ${(l0+1)*8}${p0}`:O0=`>= -(2${p0} ** ${(l0+1)*8-1}${p0}) and < 2 ** ${(l0+1)*8-1}${p0}`,new $.ERR_OUT_OF_RANGE("value",O0,L)}u0(q,i0,l0)}function g0(L,x){if(typeof L!="number")throw new $.ERR_INVALID_ARG_TYPE(x,"number",L)}function y0(L,x,w){throw Math.floor(L)!==L?(g0(L,w),new $.ERR_OUT_OF_RANGE("offset","an integer",L)):x<0?new $.ERR_BUFFER_OUT_OF_BOUNDS:new $.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${x}`,L)}const _0=/[^+/0-9A-Za-z-_]/g;function z0(L){if(L=L.split("=")[0],L=L.trim().replace(_0,""),L.length<2)return"";for(;L.length%4!==0;)L=L+"=";return L}function M0(L,x){x=x||1/0;let w;const q=L.length;let i0=null;const l0=[];for(let p0=0;p055295&&w<57344){if(!i0){if(w>56319){(x-=3)>-1&&l0.push(239,191,189);continue}else if(p0+1===q){(x-=3)>-1&&l0.push(239,191,189);continue}i0=w;continue}if(w<56320){(x-=3)>-1&&l0.push(239,191,189),i0=w;continue}w=(i0-55296<<10|w-56320)+65536}else i0&&(x-=3)>-1&&l0.push(239,191,189);if(i0=null,w<128){if((x-=1)<0)break;l0.push(w)}else if(w<2048){if((x-=2)<0)break;l0.push(w>>6|192,w&63|128)}else if(w<65536){if((x-=3)<0)break;l0.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((x-=4)<0)break;l0.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw new Error("Invalid code point")}return l0}function I0(L){const x=[];for(let w=0;w>8,i0=w%256,l0.push(i0),l0.push(q);return l0}function V0(L){return e.toByteArray(z0(L))}function G0(L,x,w,q){let i0;for(i0=0;i0=x.length||i0>=L.length);++i0)x[i0+w]=L[i0];return i0}function X0(L,x){return L instanceof x||L!=null&&L.constructor!=null&&L.constructor.name!=null&&L.constructor.name===x.name}function $0(L){return L!==L}const Z0=function(){const L="0123456789abcdef",x=new Array(256);for(let w=0;w<16;++w){const q=w*16;for(let i0=0;i0<16;++i0)x[q+i0]=L[w]+L[i0]}return x}();function p1(L){return typeof BigInt>"u"?l1:L}function l1(){throw new Error("BigInt not supported")}})(fm);window.Buffer=fm.Buffer;const AU=[[j4,Ot]],wU=Xa.createRoot(document.getElementById("root"));wU.render(X.jsx(Gr.StrictMode,{children:X.jsx(D8.Web3ReactProvider,{connectors:AU,children:X.jsx("div",{id:"signup-page",className:"flex flex-col place-items-center place-content-center h-screen w-screen",children:X.jsx(dU,{})})})})); + */(function(t){const e=W8,r=f3,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=o,t.SlowBuffer=B,t.INSPECT_MAX_BYTES=50;const i=2147483647;t.kMaxLength=i,o.TYPED_ARRAY_SUPPORT=u(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function u(){try{const L=new Uint8Array(1),x={foo:function(){return 42}};return Object.setPrototypeOf(x,Uint8Array.prototype),Object.setPrototypeOf(L,x),L.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(L){if(L>i)throw new RangeError('The value "'+L+'" is invalid for option "size"');const x=new Uint8Array(L);return Object.setPrototypeOf(x,o.prototype),x}function o(L,x,w){if(typeof L=="number"){if(typeof x=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(L)}return s(L,x,w)}o.poolSize=8192;function s(L,x,w){if(typeof L=="string")return A(L,x);if(ArrayBuffer.isView(L))return T(L);if(L==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L);if(X0(L,ArrayBuffer)||L&&X0(L.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(X0(L,SharedArrayBuffer)||L&&X0(L.buffer,SharedArrayBuffer)))return U(L,x,w);if(typeof L=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const q=L.valueOf&&L.valueOf();if(q!=null&&q!==L)return o.from(q,x,w);const i0=P(L);if(i0)return i0;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof L[Symbol.toPrimitive]=="function")return o.from(L[Symbol.toPrimitive]("string"),x,w);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L)}o.from=function(L,x,w){return s(L,x,w)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function c(L){if(typeof L!="number")throw new TypeError('"size" argument must be of type number');if(L<0)throw new RangeError('The value "'+L+'" is invalid for option "size"')}function d(L,x,w){return c(L),L<=0?a(L):x!==void 0?typeof w=="string"?a(L).fill(x,w):a(L).fill(x):a(L)}o.alloc=function(L,x,w){return d(L,x,w)};function y(L){return c(L),a(L<0?0:_(L)|0)}o.allocUnsafe=function(L){return y(L)},o.allocUnsafeSlow=function(L){return y(L)};function A(L,x){if((typeof x!="string"||x==="")&&(x="utf8"),!o.isEncoding(x))throw new TypeError("Unknown encoding: "+x);const w=N(L,x)|0;let q=a(w);const i0=q.write(L,x);return i0!==w&&(q=q.slice(0,i0)),q}function C(L){const x=L.length<0?0:_(L.length)|0,w=a(x);for(let q=0;q=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return L|0}function B(L){return+L!=L&&(L=0),o.alloc(+L)}o.isBuffer=function(x){return x!=null&&x._isBuffer===!0&&x!==o.prototype},o.compare=function(x,w){if(X0(x,Uint8Array)&&(x=o.from(x,x.offset,x.byteLength)),X0(w,Uint8Array)&&(w=o.from(w,w.offset,w.byteLength)),!o.isBuffer(x)||!o.isBuffer(w))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(x===w)return 0;let q=x.length,i0=w.length;for(let f0=0,p0=Math.min(q,i0);f0i0.length?(o.isBuffer(p0)||(p0=o.from(p0)),p0.copy(i0,f0)):Uint8Array.prototype.set.call(i0,p0,f0);else if(o.isBuffer(p0))p0.copy(i0,f0);else throw new TypeError('"list" argument must be an Array of Buffers');f0+=p0.length}return i0};function N(L,x){if(o.isBuffer(L))return L.length;if(ArrayBuffer.isView(L)||X0(L,ArrayBuffer))return L.byteLength;if(typeof L!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof L);const w=L.length,q=arguments.length>2&&arguments[2]===!0;if(!q&&w===0)return 0;let i0=!1;for(;;)switch(x){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return M0(L).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return V0(L).length;default:if(i0)return q?-1:M0(L).length;x=(""+x).toLowerCase(),i0=!0}}o.byteLength=N;function W(L,x,w){let q=!1;if((x===void 0||x<0)&&(x=0),x>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0,x>>>=0,w<=x))return"";for(L||(L="utf8");;)switch(L){case"hex":return z(this,x,w);case"utf8":case"utf-8":return p(this,x,w);case"ascii":return k(this,x,w);case"latin1":case"binary":return I(this,x,w);case"base64":return j(this,x,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,x,w);default:if(q)throw new TypeError("Unknown encoding: "+L);L=(L+"").toLowerCase(),q=!0}}o.prototype._isBuffer=!0;function G(L,x,w){const q=L[x];L[x]=L[w],L[w]=q}o.prototype.swap16=function(){const x=this.length;if(x%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let w=0;ww&&(x+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(x,w,q,i0,f0){if(X0(x,Uint8Array)&&(x=o.from(x,x.offset,x.byteLength)),!o.isBuffer(x))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof x);if(w===void 0&&(w=0),q===void 0&&(q=x?x.length:0),i0===void 0&&(i0=0),f0===void 0&&(f0=this.length),w<0||q>x.length||i0<0||f0>this.length)throw new RangeError("out of range index");if(i0>=f0&&w>=q)return 0;if(i0>=f0)return-1;if(w>=q)return 1;if(w>>>=0,q>>>=0,i0>>>=0,f0>>>=0,this===x)return 0;let p0=f0-i0,O0=q-w;const H0=Math.min(p0,O0),K0=this.slice(i0,f0),Y0=x.slice(w,q);for(let j0=0;j02147483647?w=2147483647:w<-2147483648&&(w=-2147483648),w=+w,$0(w)&&(w=i0?0:L.length-1),w<0&&(w=L.length+w),w>=L.length){if(i0)return-1;w=L.length-1}else if(w<0)if(i0)w=0;else return-1;if(typeof x=="string"&&(x=o.from(x,q)),o.isBuffer(x))return x.length===0?-1:Z(L,x,w,q,i0);if(typeof x=="number")return x=x&255,typeof Uint8Array.prototype.indexOf=="function"?i0?Uint8Array.prototype.indexOf.call(L,x,w):Uint8Array.prototype.lastIndexOf.call(L,x,w):Z(L,[x],w,q,i0);throw new TypeError("val must be string, number or Buffer")}function Z(L,x,w,q,i0){let f0=1,p0=L.length,O0=x.length;if(q!==void 0&&(q=String(q).toLowerCase(),q==="ucs2"||q==="ucs-2"||q==="utf16le"||q==="utf-16le")){if(L.length<2||x.length<2)return-1;f0=2,p0/=2,O0/=2,w/=2}function H0(Y0,j0){return f0===1?Y0[j0]:Y0.readUInt16BE(j0*f0)}let K0;if(i0){let Y0=-1;for(K0=w;K0p0&&(w=p0-O0),K0=w;K0>=0;K0--){let Y0=!0;for(let j0=0;j0i0&&(q=i0)):q=i0;const f0=x.length;q>f0/2&&(q=f0/2);let p0;for(p0=0;p0>>0,isFinite(q)?(q=q>>>0,i0===void 0&&(i0="utf8")):(i0=q,q=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const f0=this.length-w;if((q===void 0||q>f0)&&(q=f0),x.length>0&&(q<0||w<0)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");i0||(i0="utf8");let p0=!1;for(;;)switch(i0){case"hex":return e0(this,x,w,q);case"utf8":case"utf-8":return o0(this,x,w,q);case"ascii":case"latin1":case"binary":return d0(this,x,w,q);case"base64":return c0(this,x,w,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h0(this,x,w,q);default:if(p0)throw new TypeError("Unknown encoding: "+i0);i0=(""+i0).toLowerCase(),p0=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(L,x,w){return x===0&&w===L.length?e.fromByteArray(L):e.fromByteArray(L.slice(x,w))}function p(L,x,w){w=Math.min(L.length,w);const q=[];let i0=x;for(;i0239?4:f0>223?3:f0>191?2:1;if(i0+O0<=w){let H0,K0,Y0,j0;switch(O0){case 1:f0<128&&(p0=f0);break;case 2:H0=L[i0+1],(H0&192)===128&&(j0=(f0&31)<<6|H0&63,j0>127&&(p0=j0));break;case 3:H0=L[i0+1],K0=L[i0+2],(H0&192)===128&&(K0&192)===128&&(j0=(f0&15)<<12|(H0&63)<<6|K0&63,j0>2047&&(j0<55296||j0>57343)&&(p0=j0));break;case 4:H0=L[i0+1],K0=L[i0+2],Y0=L[i0+3],(H0&192)===128&&(K0&192)===128&&(Y0&192)===128&&(j0=(f0&15)<<18|(H0&63)<<12|(K0&63)<<6|Y0&63,j0>65535&&j0<1114112&&(p0=j0))}}p0===null?(p0=65533,O0=1):p0>65535&&(p0-=65536,q.push(p0>>>10&1023|55296),p0=56320|p0&1023),q.push(p0),i0+=O0}return M(q)}const v=4096;function M(L){const x=L.length;if(x<=v)return String.fromCharCode.apply(String,L);let w="",q=0;for(;qq)&&(w=q);let i0="";for(let f0=x;f0q&&(x=q),w<0?(w+=q,w<0&&(w=0)):w>q&&(w=q),ww)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(x,w,q){x=x>>>0,w=w>>>0,q||b(x,w,this.length);let i0=this[x],f0=1,p0=0;for(;++p0>>0,w=w>>>0,q||b(x,w,this.length);let i0=this[x+--w],f0=1;for(;w>0&&(f0*=256);)i0+=this[x+--w]*f0;return i0},o.prototype.readUint8=o.prototype.readUInt8=function(x,w){return x=x>>>0,w||b(x,1,this.length),this[x]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(x,w){return x=x>>>0,w||b(x,2,this.length),this[x]|this[x+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(x,w){return x=x>>>0,w||b(x,2,this.length),this[x]<<8|this[x+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(x,w){return x=x>>>0,w||b(x,4,this.length),(this[x]|this[x+1]<<8|this[x+2]<<16)+this[x+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(x,w){return x=x>>>0,w||b(x,4,this.length),this[x]*16777216+(this[x+1]<<16|this[x+2]<<8|this[x+3])},o.prototype.readBigUInt64LE=p1(function(x){x=x>>>0,g0(x,"offset");const w=this[x],q=this[x+7];(w===void 0||q===void 0)&&y0(x,this.length-8);const i0=w+this[++x]*2**8+this[++x]*2**16+this[++x]*2**24,f0=this[++x]+this[++x]*2**8+this[++x]*2**16+q*2**24;return BigInt(i0)+(BigInt(f0)<>>0,g0(x,"offset");const w=this[x],q=this[x+7];(w===void 0||q===void 0)&&y0(x,this.length-8);const i0=w*2**24+this[++x]*2**16+this[++x]*2**8+this[++x],f0=this[++x]*2**24+this[++x]*2**16+this[++x]*2**8+q;return(BigInt(i0)<>>0,w=w>>>0,q||b(x,w,this.length);let i0=this[x],f0=1,p0=0;for(;++p0=f0&&(i0-=Math.pow(2,8*w)),i0},o.prototype.readIntBE=function(x,w,q){x=x>>>0,w=w>>>0,q||b(x,w,this.length);let i0=w,f0=1,p0=this[x+--i0];for(;i0>0&&(f0*=256);)p0+=this[x+--i0]*f0;return f0*=128,p0>=f0&&(p0-=Math.pow(2,8*w)),p0},o.prototype.readInt8=function(x,w){return x=x>>>0,w||b(x,1,this.length),this[x]&128?(255-this[x]+1)*-1:this[x]},o.prototype.readInt16LE=function(x,w){x=x>>>0,w||b(x,2,this.length);const q=this[x]|this[x+1]<<8;return q&32768?q|4294901760:q},o.prototype.readInt16BE=function(x,w){x=x>>>0,w||b(x,2,this.length);const q=this[x+1]|this[x]<<8;return q&32768?q|4294901760:q},o.prototype.readInt32LE=function(x,w){return x=x>>>0,w||b(x,4,this.length),this[x]|this[x+1]<<8|this[x+2]<<16|this[x+3]<<24},o.prototype.readInt32BE=function(x,w){return x=x>>>0,w||b(x,4,this.length),this[x]<<24|this[x+1]<<16|this[x+2]<<8|this[x+3]},o.prototype.readBigInt64LE=p1(function(x){x=x>>>0,g0(x,"offset");const w=this[x],q=this[x+7];(w===void 0||q===void 0)&&y0(x,this.length-8);const i0=this[x+4]+this[x+5]*2**8+this[x+6]*2**16+(q<<24);return(BigInt(i0)<>>0,g0(x,"offset");const w=this[x],q=this[x+7];(w===void 0||q===void 0)&&y0(x,this.length-8);const i0=(w<<24)+this[++x]*2**16+this[++x]*2**8+this[++x];return(BigInt(i0)<>>0,w||b(x,4,this.length),r.read(this,x,!0,23,4)},o.prototype.readFloatBE=function(x,w){return x=x>>>0,w||b(x,4,this.length),r.read(this,x,!1,23,4)},o.prototype.readDoubleLE=function(x,w){return x=x>>>0,w||b(x,8,this.length),r.read(this,x,!0,52,8)},o.prototype.readDoubleBE=function(x,w){return x=x>>>0,w||b(x,8,this.length),r.read(this,x,!1,52,8)};function l(L,x,w,q,i0,f0){if(!o.isBuffer(L))throw new TypeError('"buffer" argument must be a Buffer instance');if(x>i0||xL.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(x,w,q,i0){if(x=+x,w=w>>>0,q=q>>>0,!i0){const O0=Math.pow(2,8*q)-1;l(this,x,w,q,O0,0)}let f0=1,p0=0;for(this[w]=x&255;++p0>>0,q=q>>>0,!i0){const O0=Math.pow(2,8*q)-1;l(this,x,w,q,O0,0)}let f0=q-1,p0=1;for(this[w+f0]=x&255;--f0>=0&&(p0*=256);)this[w+f0]=x/p0&255;return w+q},o.prototype.writeUint8=o.prototype.writeUInt8=function(x,w,q){return x=+x,w=w>>>0,q||l(this,x,w,1,255,0),this[w]=x&255,w+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(x,w,q){return x=+x,w=w>>>0,q||l(this,x,w,2,65535,0),this[w]=x&255,this[w+1]=x>>>8,w+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(x,w,q){return x=+x,w=w>>>0,q||l(this,x,w,2,65535,0),this[w]=x>>>8,this[w+1]=x&255,w+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(x,w,q){return x=+x,w=w>>>0,q||l(this,x,w,4,4294967295,0),this[w+3]=x>>>24,this[w+2]=x>>>16,this[w+1]=x>>>8,this[w]=x&255,w+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(x,w,q){return x=+x,w=w>>>0,q||l(this,x,w,4,4294967295,0),this[w]=x>>>24,this[w+1]=x>>>16,this[w+2]=x>>>8,this[w+3]=x&255,w+4};function m(L,x,w,q,i0){s0(x,q,i0,L,w,7);let f0=Number(x&BigInt(4294967295));L[w++]=f0,f0=f0>>8,L[w++]=f0,f0=f0>>8,L[w++]=f0,f0=f0>>8,L[w++]=f0;let p0=Number(x>>BigInt(32)&BigInt(4294967295));return L[w++]=p0,p0=p0>>8,L[w++]=p0,p0=p0>>8,L[w++]=p0,p0=p0>>8,L[w++]=p0,w}function D(L,x,w,q,i0){s0(x,q,i0,L,w,7);let f0=Number(x&BigInt(4294967295));L[w+7]=f0,f0=f0>>8,L[w+6]=f0,f0=f0>>8,L[w+5]=f0,f0=f0>>8,L[w+4]=f0;let p0=Number(x>>BigInt(32)&BigInt(4294967295));return L[w+3]=p0,p0=p0>>8,L[w+2]=p0,p0=p0>>8,L[w+1]=p0,p0=p0>>8,L[w]=p0,w+8}o.prototype.writeBigUInt64LE=p1(function(x,w=0){return m(this,x,w,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=p1(function(x,w=0){return D(this,x,w,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(x,w,q,i0){if(x=+x,w=w>>>0,!i0){const H0=Math.pow(2,8*q-1);l(this,x,w,q,H0-1,-H0)}let f0=0,p0=1,O0=0;for(this[w]=x&255;++f0>0)-O0&255;return w+q},o.prototype.writeIntBE=function(x,w,q,i0){if(x=+x,w=w>>>0,!i0){const H0=Math.pow(2,8*q-1);l(this,x,w,q,H0-1,-H0)}let f0=q-1,p0=1,O0=0;for(this[w+f0]=x&255;--f0>=0&&(p0*=256);)x<0&&O0===0&&this[w+f0+1]!==0&&(O0=1),this[w+f0]=(x/p0>>0)-O0&255;return w+q},o.prototype.writeInt8=function(x,w,q){return x=+x,w=w>>>0,q||l(this,x,w,1,127,-128),x<0&&(x=255+x+1),this[w]=x&255,w+1},o.prototype.writeInt16LE=function(x,w,q){return x=+x,w=w>>>0,q||l(this,x,w,2,32767,-32768),this[w]=x&255,this[w+1]=x>>>8,w+2},o.prototype.writeInt16BE=function(x,w,q){return x=+x,w=w>>>0,q||l(this,x,w,2,32767,-32768),this[w]=x>>>8,this[w+1]=x&255,w+2},o.prototype.writeInt32LE=function(x,w,q){return x=+x,w=w>>>0,q||l(this,x,w,4,2147483647,-2147483648),this[w]=x&255,this[w+1]=x>>>8,this[w+2]=x>>>16,this[w+3]=x>>>24,w+4},o.prototype.writeInt32BE=function(x,w,q){return x=+x,w=w>>>0,q||l(this,x,w,4,2147483647,-2147483648),x<0&&(x=4294967295+x+1),this[w]=x>>>24,this[w+1]=x>>>16,this[w+2]=x>>>8,this[w+3]=x&255,w+4},o.prototype.writeBigInt64LE=p1(function(x,w=0){return m(this,x,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=p1(function(x,w=0){return D(this,x,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function f(L,x,w,q,i0,f0){if(w+q>L.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function S(L,x,w,q,i0){return x=+x,w=w>>>0,i0||f(L,x,w,4),r.write(L,x,w,q,23,4),w+4}o.prototype.writeFloatLE=function(x,w,q){return S(this,x,w,!0,q)},o.prototype.writeFloatBE=function(x,w,q){return S(this,x,w,!1,q)};function O(L,x,w,q,i0){return x=+x,w=w>>>0,i0||f(L,x,w,8),r.write(L,x,w,q,52,8),w+8}o.prototype.writeDoubleLE=function(x,w,q){return O(this,x,w,!0,q)},o.prototype.writeDoubleBE=function(x,w,q){return O(this,x,w,!1,q)},o.prototype.copy=function(x,w,q,i0){if(!o.isBuffer(x))throw new TypeError("argument should be a Buffer");if(q||(q=0),!i0&&i0!==0&&(i0=this.length),w>=x.length&&(w=x.length),w||(w=0),i0>0&&i0=this.length)throw new RangeError("Index out of range");if(i0<0)throw new RangeError("sourceEnd out of bounds");i0>this.length&&(i0=this.length),x.length-w>>0,q=q===void 0?this.length:q>>>0,x||(x=0);let f0;if(typeof x=="number")for(f0=w;f02**32?i0=n0(String(w)):typeof w=="bigint"&&(i0=String(w),(w>BigInt(2)**BigInt(32)||w<-(BigInt(2)**BigInt(32)))&&(i0=n0(i0)),i0+="n"),q+=` It must be ${x}. Received ${i0}`,q},RangeError);function n0(L){let x="",w=L.length;const q=L[0]==="-"?1:0;for(;w>=q+4;w-=3)x=`_${L.slice(w-3,w)}${x}`;return`${L.slice(0,w)}${x}`}function u0(L,x,w){g0(x,"offset"),(L[x]===void 0||L[x+w]===void 0)&&y0(x,L.length-(w+1))}function s0(L,x,w,q,i0,f0){if(L>w||L= 0${p0} and < 2${p0} ** ${(f0+1)*8}${p0}`:O0=`>= -(2${p0} ** ${(f0+1)*8-1}${p0}) and < 2 ** ${(f0+1)*8-1}${p0}`,new $.ERR_OUT_OF_RANGE("value",O0,L)}u0(q,i0,f0)}function g0(L,x){if(typeof L!="number")throw new $.ERR_INVALID_ARG_TYPE(x,"number",L)}function y0(L,x,w){throw Math.floor(L)!==L?(g0(L,w),new $.ERR_OUT_OF_RANGE("offset","an integer",L)):x<0?new $.ERR_BUFFER_OUT_OF_BOUNDS:new $.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${x}`,L)}const _0=/[^+/0-9A-Za-z-_]/g;function z0(L){if(L=L.split("=")[0],L=L.trim().replace(_0,""),L.length<2)return"";for(;L.length%4!==0;)L=L+"=";return L}function M0(L,x){x=x||1/0;let w;const q=L.length;let i0=null;const f0=[];for(let p0=0;p055295&&w<57344){if(!i0){if(w>56319){(x-=3)>-1&&f0.push(239,191,189);continue}else if(p0+1===q){(x-=3)>-1&&f0.push(239,191,189);continue}i0=w;continue}if(w<56320){(x-=3)>-1&&f0.push(239,191,189),i0=w;continue}w=(i0-55296<<10|w-56320)+65536}else i0&&(x-=3)>-1&&f0.push(239,191,189);if(i0=null,w<128){if((x-=1)<0)break;f0.push(w)}else if(w<2048){if((x-=2)<0)break;f0.push(w>>6|192,w&63|128)}else if(w<65536){if((x-=3)<0)break;f0.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((x-=4)<0)break;f0.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw new Error("Invalid code point")}return f0}function I0(L){const x=[];for(let w=0;w>8,i0=w%256,f0.push(i0),f0.push(q);return f0}function V0(L){return e.toByteArray(z0(L))}function G0(L,x,w,q){let i0;for(i0=0;i0=x.length||i0>=L.length);++i0)x[i0+w]=L[i0];return i0}function X0(L,x){return L instanceof x||L!=null&&L.constructor!=null&&L.constructor.name!=null&&L.constructor.name===x.name}function $0(L){return L!==L}const Z0=function(){const L="0123456789abcdef",x=new Array(256);for(let w=0;w<16;++w){const q=w*16;for(let i0=0;i0<16;++i0)x[q+i0]=L[w]+L[i0]}return x}();function p1(L){return typeof BigInt>"u"?f1:L}function f1(){throw new Error("BigInt not supported")}})(lm);window.Buffer=lm.Buffer;const AU=[[j4,Ot]],wU=Xa.createRoot(document.getElementById("root"));wU.render(X.jsx(Gr.StrictMode,{children:X.jsx(D8.Web3ReactProvider,{connectors:AU,children:X.jsx("div",{id:"signup-page",className:"flex flex-col place-items-center place-content-center h-screen w-screen",children:X.jsx(dU,{})})})})); diff --git a/kinode/src/register-ui/build/index.html b/kinode/src/register-ui/build/index.html index fa3b290e8..2ff41ba9d 100644 --- a/kinode/src/register-ui/build/index.html +++ b/kinode/src/register-ui/build/index.html @@ -11,7 +11,7 @@ - + diff --git a/kinode/src/register-ui/src/pages/ImportKeyfile.tsx b/kinode/src/register-ui/src/pages/ImportKeyfile.tsx index 6074252ed..2bdd534d7 100644 --- a/kinode/src/register-ui/src/pages/ImportKeyfile.tsx +++ b/kinode/src/register-ui/src/pages/ImportKeyfile.tsx @@ -22,7 +22,7 @@ function ImportKeyfile({ nodeChainId, }: ImportKeyfileProps) { - const [localKey, setLocalKey] = useState(""); + const [localKey, setLocalKey] = useState(null); const [localKeyFileName, setLocalKeyFileName] = useState(""); const [keyErrs, _setKeyErrs] = useState([]); @@ -35,84 +35,23 @@ function ImportKeyfile({ document.title = "Import Keyfile"; }, []); - // const handlePassword = useCallback(async () => { - // try { - // const response = await fetch(getFetchUrl("/vet-keyfile"), { - // method: "POST", - // credentials: 'include', - // headers: { "Content-Type": "application/json" }, - // body: JSON.stringify({ - // keyfile: localKey, - // password: pw, - // }), - // }); - - // const data = await response.json(); - - // setOsName(data.username); - - // setPwVet(true); - - // const errs = [...keyErrs]; - - // const ws = await kns.ws(namehash(data.username)); - - // let index = errs.indexOf(KEY_WRONG_NET_KEY); - // if (ws.publicKey !== data.networking_key) { - // if (index === -1) errs.push(KEY_WRONG_NET_KEY); - // } else if (index !== -1) errs.splice(index, 1); - - // index = errs.indexOf(KEY_WRONG_IP); - // if(ws.ip === 0) - // setDirect(false) - // else { - // setDirect(true) - // if (ws.ip !== ipAddress && index === -1) - // errs.push(KEY_WRONG_IP); - // } - - // setKeyErrs(errs); - // } catch { - // setPwVet(false); - // } - // setPwDebounced(true); - // }, [localKey, pw, keyErrs, ipAddress, kns, setOsName, setDirect]); - - // const pwDebouncer = useRef(null); - // useEffect(() => { - // if (pwDebouncer.current) clearTimeout(pwDebouncer.current); - - // pwDebouncer.current = setTimeout(async () => { - // if (pw !== "") { - // if (pw.length < 6) - // setPwErr("Password must be at least 6 characters") - // else { - // setPwErr("") - // handlePassword() - // } - // } - // }, 500) - - // }, [pw]) - - // for if we check router validity in future - // const KEY_BAD_ROUTERS = "Routers from records are offline" - - const handleKeyfile = useCallback((e: any) => { + const handleKeyfile = useCallback((e: React.ChangeEvent) => { e.preventDefault(); - const file = e.target.files[0]; + const file = e.target.files?.[0]; if (!file) return; const reader = new FileReader(); reader.onloadend = () => { - setLocalKey(reader.result as string); - setLocalKeyFileName(file.name); + if (reader.result instanceof ArrayBuffer) { + setLocalKey(new Uint8Array(reader.result)); + setLocalKeyFileName(file.name); + } }; - reader.readAsText(file); + reader.readAsArrayBuffer(file); }, []); const keyfileInputRef = useRef(null); - const handleKeyUploadClick = useCallback(async (e: any) => { + const handleKeyUploadClick = useCallback(async (e: React.MouseEvent) => { e.preventDefault(); e.stopPropagation(); keyfileInputRef.current?.click(); @@ -126,7 +65,7 @@ function ImportKeyfile({ setLoading(true); try { - if (keyErrs.length === 0 && localKey !== "") { + if (keyErrs.length === 0 && localKey !== null) { let hashed_password = utils.sha256(utils.toUtf8Bytes(pw)); const response = await fetch(getFetchUrl("/vet-keyfile"), { @@ -134,7 +73,7 @@ function ImportKeyfile({ credentials: 'include', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ - keyfile: localKey, + keyfile: Buffer.from(localKey).toString('base64'), password_hash: hashed_password, }), }); @@ -148,7 +87,7 @@ function ImportKeyfile({ credentials: 'include', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ - keyfile: localKey, + keyfile: Buffer.from(localKey).toString('base64'), password_hash: hashed_password, }), }); diff --git a/kinode/src/register.rs b/kinode/src/register.rs index 954c99c71..a61be210f 100644 --- a/kinode/src/register.rs +++ b/kinode/src/register.rs @@ -327,9 +327,10 @@ async fn handle_keyfile_vet( // additional checks? let encoded_keyfile = match payload.keyfile.is_empty() { true => keyfile.ok_or(warp::reject())?, - false => base64_standard - .decode(payload.keyfile) - .map_err(|_| warp::reject())?, + false => base64_standard.decode(payload.keyfile).map_err(|e| { + println!("Error decoding keyfile: {e}"); + warp::reject() + })?, }; let decoded_keyfile = keygen::decode_keyfile(&encoded_keyfile, &payload.password_hash) @@ -505,7 +506,7 @@ async fn handle_import_keyfile( provider: Arc>, ) -> Result { // if keyfile was not present in node and is present from user upload - let encoded_keyfile = match base64_standard.decode(info.keyfile.clone()) { + let encoded_keyfile = match base64_standard.decode(info.keyfile) { Ok(k) => k, Err(_) => { return Ok(warp::reply::with_status( @@ -732,7 +733,9 @@ pub async fn assign_routing( if format!("0x{}", hex::encode(&public_key)) != our.networking_key { return Err(anyhow::anyhow!( - "Networking key from PKI does not match our saved networking key" + "Networking key from PKI ({}) does not match our saved networking key ({})", + format!("0x{}", hex::encode(&public_key)), + our.networking_key )); } diff --git a/lib/Cargo.toml b/lib/Cargo.toml index e6685e04f..8c6367db7 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "lib" authors = ["KinodeDAO"] -version = "0.8.4" +version = "0.8.5" edition = "2021" description = "A general-purpose sovereign cloud computing platform" homepage = "https://kinode.org" @@ -11,7 +11,7 @@ license = "Apache-2.0" [lib] [build-dependencies] -kit = { git = "https://github.com/kinode-dao/kit", tag = "v0.6.2" } +kit = { git = "https://github.com/kinode-dao/kit", tag = "v0.6.8" } tokio = "1.28" [dependencies]